• George C. Knee's avatar
    custom-gas-token: add e2e test (#10440) · 4854ed90
    George C. Knee authored
    * add tests for activating custom gas token and bridging tokens to l2
    
    * update test following concurrent change in SystemConfig ABI
    
    * update systemconfig bindings
    
    steps to reproduce:
    
    git checkout  v1.7.3 -- op-bindings
    
    remove WETH9 from artifacts.json
    
    cd op-bindings
    
    make bindgen-generate-local
    
    select this one file discard the others
    
    * use require.NoError instead of require.Nil
    
    * build: fix
    
    * refactor using setup + subtests
    
    * add assertions for WETH name and symbol getters
    
    * minor changes in response to review
    
    * devnet-allocs: use sender with known private key
    
    some e2e tests require the ability to transact as the system owner safe owner, so we can't use the foundry default sender (private key unknown)
    
    This uses the same address as "Deployer"
    
    * use deployer as Safe owner
    
    * WIP refactor test
    
    * add most of the remaining test assertions
    
    * rename file
    
    * flatten out subtests
    
    we want to specify a strict ordering of operations
    
    * complete checkWithdrawal step
    
    * reorder test steps
    
    * check both ETH and token balances on l1 during withdraw
    
    * simplify callViaSafe helper
    
    * factor out expectations
    
    * add some extra boilerplate to track TransactionDeposited event
    
    and GasPayingTokenSet event on L2
    
    * remove comments
    
    * remove wayward line
    
    * flatten out sub test
    
    * add comment to devnet forge script command
    
    * remove version check on systemConfig
    
    * update systemconfig bindings
    
    steps to reproduce:
    
    git checkout  v1.7.3 -- op-bindings
    
    remove WETH9 from artifacts.json
    
    cd op-bindings
    
    make bindgen-generate-local
    
    select this one file discard the others
    
    * skip TestCustomGasToken when UseFPAC is true
    
    * use differente helper to skip test
    
    * harmonize use of context.Background{}
    
    * tidy up and add comments
    
    * remove cfg.DeployConfig.FinalizationPeriodSeconds = 2
    
    * remove log lines
    
    * use decimal instead of hex
    
    ---------
    Co-authored-by: default avatarMark Tyneway <mark.tyneway@gmail.com>
    4854ed90
Name
Last commit
Last update
.changeset Loading commit data...
.circleci Loading commit data...
.github Loading commit data...
.husky Loading commit data...
.vscode Loading commit data...
bedrock-devnet Loading commit data...
cannon Loading commit data...
docs Loading commit data...
endpoint-monitor Loading commit data...
indexer Loading commit data...
op-batcher Loading commit data...
op-bindings Loading commit data...
op-bootnode Loading commit data...
op-chain-ops Loading commit data...
op-challenger Loading commit data...
op-conductor Loading commit data...
op-dispute-mon Loading commit data...
op-e2e Loading commit data...
op-heartbeat Loading commit data...
op-node Loading commit data...
op-plasma Loading commit data...
op-preimage Loading commit data...
op-program Loading commit data...
op-proposer Loading commit data...
op-service Loading commit data...
op-ufm Loading commit data...
op-wheel Loading commit data...
ops Loading commit data...
ops-bedrock Loading commit data...
packages Loading commit data...
proxyd Loading commit data...
specs Loading commit data...
ufm-test-services Loading commit data...
.coderabbit.yml Loading commit data...
.dockerignore Loading commit data...
.editorconfig Loading commit data...
.envrc.example Loading commit data...
.eslintrc.js Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.npmrc Loading commit data...
.nvmrc Loading commit data...
.pnpmfile.cjs Loading commit data...
.prettierrc.js Loading commit data...
.semgrepignore Loading commit data...
.shellcheckrc Loading commit data...
.snyk Loading commit data...
CITATION.cff Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
cloudbuild.yaml Loading commit data...
codecov.yml Loading commit data...
docker-bake.hcl Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...
nx.json Loading commit data...
package.json Loading commit data...
pnpm-lock.yaml Loading commit data...
pnpm-workspace.yaml Loading commit data...
tsconfig.json Loading commit data...
versions.json Loading commit data...