Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
custom-gas-token: add e2e test (ethereum-optimism#10440)
* 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: Mark Tyneway <[email protected]>
- Loading branch information