• 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
..
actions Loading commit data...
config Loading commit data...
e2eutils Loading commit data...
external Loading commit data...
external_geth Loading commit data...
faultproofs Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
bridge_test.go Loading commit data...
build_helper.go Loading commit data...
custom_gas_token_test.go Loading commit data...
deposit_test.go Loading commit data...
eip4844_test.go Loading commit data...
external.go Loading commit data...
helper.go Loading commit data...
l1_beacon_client_test.go Loading commit data...
l2_gossip_test.go Loading commit data...
op_geth.go Loading commit data...
op_geth_test.go Loading commit data...
sequencer_failover_setup.go Loading commit data...
sequencer_failover_test.go Loading commit data...
setup.go Loading commit data...
system_adminrpc_test.go Loading commit data...
system_fpp_test.go Loading commit data...
system_test.go Loading commit data...
system_tob_test.go Loading commit data...
tracer.go Loading commit data...
tx_helper.go Loading commit data...
withdrawal_helper.go Loading commit data...