@@ -18,22 +18,22 @@ function requireEnvVariables(envVars: string[]){
1818 }
1919}
2020
21- requireEnvVariables ( [ 'ROPSTEN_PRIVATE_KEY' , 'GOERLI_API_URL' , 'ARBITRUM_GOERLI_API_URL' ] )
21+ requireEnvVariables ( [ 'ROPSTEN_PRIVATE_KEY' ] )
2222
2323/**
2424 * Set up: instantiate L1 / L2 wallets connected to providers
2525 */
2626const walletPrivateKey = process . env . ROPSTEN_PRIVATE_KEY
2727
28- const l1Provider = new ethers . providers . JsonRpcProvider ( process . env . GOERLI_API_URL )
29- const l2Provider = new ethers . providers . JsonRpcProvider ( process . env . ARBITRUM_GOERLI_API_URL )
28+ const l1Provider = new ethers . providers . JsonRpcProvider ( process . env . MAINNET_RPC_URL )
29+ const l2Provider = new ethers . providers . JsonRpcProvider ( process . env . ARBITRUM_RPC_URL )
3030
3131const l1Wallet = new ethers . Wallet ( walletPrivateKey , l1Provider )
3232const l2Wallet = new ethers . Wallet ( walletPrivateKey , l2Provider )
3333
34- const WETH_VAULT_HANDLER_ADDRESS = "0x4bda6668Cc3680702ab937E278e2d40c5263a424 "
35- const ORCHESTRATOR_ADDRESS = "0x521c1911376950581f661d1Ee1422d2D892f1003 "
36- const TCAP_ADDRESS = "0xe5e50fb466237cEDc26443E7Dd59763CeC62A4E9 "
34+ const WETH_VAULT_HANDLER_ADDRESS = "0xe30C148Ca3cCe47341aB9bEbD7A8db031aB207D0 "
35+ const ORCHESTRATOR_ADDRESS = "0x60f5C89C26cd424DF5E8513FDe150D2CA8F0eB9f "
36+ const TCAP_ADDRESS = "0xD5536c80191c624F6bFD5590A45b9E93B16DEA97 "
3737
3838const main = async ( ) => {
3939 console . log ( 'vault setter script' ) ;
@@ -56,14 +56,16 @@ const main = async () => {
5656 await hre . ethers . getContractFactory ( 'L1MessageRelayer' )
5757 ) . connect ( l1Wallet ) //
5858 const l1MessageRelayer = L1MessageRelayer . attach (
59- process . env . GOERLI_ARBITRUM_MESSAGE_RELAYER_ADDRESS
59+ "0x209c23DB16298504354112fa4210d368e1d564dA"
6060 )
6161
62- const L2MessageExecutor = await (
63- await hre . ethers . getContractFactory ( 'L2MessageExecutor' )
62+ let l2MessageExecutorProxyAddress = "0x3769b6aA269995297a539BEd7a463105466733A5" ;
63+
64+ const L2MessageExecutorProxy = await (
65+ await hre . ethers . getContractFactory ( 'L2MessageExecutorProxy' )
6466 ) . connect ( l2Wallet )
65- const l2MessageExecutor = L2MessageExecutor . attach (
66- process . env . GOERLI_ARBITRUM_MESSAGE_EXECUTOR_ADDRESS
67+ const l2MessageExecutorProxy = L2MessageExecutorProxy . attach (
68+ l2MessageExecutorProxyAddress
6769 )
6870
6971 const WETHVaultHandler = await (
@@ -154,7 +156,7 @@ const main = async () => {
154156 const maxGas = await l1ToL2MessageGasEstimate . estimateRetryableTicketGasLimit (
155157 {
156158 from : await l1MessageRelayer . address ,
157- to : await l2MessageExecutor . address ,
159+ to : l2MessageExecutorProxyAddress ,
158160 l2CallValue : 0 ,
159161 excessFeeRefundAddress : await l2Wallet . address ,
160162 callValueRefundAddress : await l2Wallet . address ,
@@ -171,6 +173,12 @@ const main = async () => {
171173 `Sending Message to L2 with ${ callValue . toString ( ) } callValue for L2 fees:`
172174 )
173175
176+ console . log ( "payLoad " , payLoad ) ;
177+ console . log ( "submissionPriceWei " , submissionPriceWei ) ;
178+ console . log ( "maxGas " , maxGas ) ;
179+ console . log ( "gasPriceBid " , gasPriceBid ) ;
180+ console . log ( "callValue " , callValue ) ;
181+
174182 const setMessageTx = await l1MessageRelayer . relayMessage (
175183 payLoad ,
176184 submissionPriceWei ,
0 commit comments