diff --git a/contracts/.env.template.uat b/contracts/.env.template.uat index 9961fdd9..2784382b 100644 --- a/contracts/.env.template.uat +++ b/contracts/.env.template.uat @@ -11,8 +11,8 @@ L2MSGSERVICE_L1L2_MESSAGE_SETTER="0x90F79bf6EB2c4f870365E785982E1f101E93b906" L2MSGSERVICE_RATE_LIMIT_PERIOD="86400" #24Hours in seconds L2MSGSERVICE_RATE_LIMIT_AMOUNT="1000000000000000000000" #1000ETH -BLOCKCHAIN_NODE="https://goerli.infura.io/v3/" -L2_BLOCKCHAIN_NODE=="https://linea-goerli.infura.io/v3/" +BLOCKCHAIN_NODE="https://sepolia.infura.io/v3/" +L2_BLOCKCHAIN_NODE=="https://linea-sepolia.infura.io/v3/" DEPLOYMOCKVERIFIER="FALSE" PRIVATE_KEY= diff --git a/contracts/docs/deployment.md b/contracts/docs/deployment.md index e881a76b..6b44b55c 100644 --- a/contracts/docs/deployment.md +++ b/contracts/docs/deployment.md @@ -13,7 +13,7 @@ Running the script with an .env file set, you will need to make sure that the co Running the script without an .env file will require you to place the variables as command-line arguments. The command-line arguments will create or replace existing .env (only in memory) environment variables. If the variables are provided in the terminal as command-line arguments, they will have priority over the same variables if they are defined in the .env file. These need not exist in the .env file. -Furthermore, you can also specify a general set of variables in the .env file (SAVE_ADDRESS, VERIFY_CONTRACT, GOERLI_PRIVATE_KEY, LINEA_GOERLI_PRIVATE_KEY, MAINNET_PRIVATE_KEY, LINEA_MAINNET_PRIVATE_KEY, ETHERSCAN_API_KEY, LINEASCAN_API_KEY, INFURA_API_KEY) and provide only the script-specific variables as command-line arguments, when you run each script. +Furthermore, you can also specify a general set of variables in the .env file (SAVE_ADDRESS, VERIFY_CONTRACT, SEPOLIA_PRIVATE_KEY, LINEA_SEPOLIA_PRIVATE_KEY, MAINNET_PRIVATE_KEY, LINEA_MAINNET_PRIVATE_KEY, ETHERSCAN_API_KEY, LINEASCAN_API_KEY, INFURA_API_KEY) and provide only the script-specific variables as command-line arguments, when you run each script. Setting `SAVE_ADDRESS=true` will make the script write a file in the deployments// folder which stores the contract address, abi and transaction hash.
@@ -23,12 +23,12 @@ Setting `VERIFY_CONTRACT=true` will start the verifying stage after the contract ## Network Specific Variables -Dependant on which network you are using, a specific network private key needs to be used, as well as the corresponding API Key or RPC URL. Also, dependant on which network you choose, the block explorer used could be different, so the block explorer parameter name might need to be adjusted. The following table highlights which private key variable will be used per network. Please use the variable that pertains to the network. e.g. for `linea_goerli` use `LINEA_GOERLI_PRIVATE_KEY` (`LINEA_GOERLI_PRIVATE_KEY= INFURA_API_KEY=`) +Dependant on which network you are using, a specific network private key needs to be used, as well as the corresponding API Key or RPC URL. Also, dependant on which network you choose, the block explorer used could be different, so the block explorer parameter name might need to be adjusted. The following table highlights which private key variable will be used per network. Please use the variable that pertains to the network. e.g. for `linea_sepolia` use `LINEA_SEPOLIA_PRIVATE_KEY` (`LINEA_SEPOLIA_PRIVATE_KEY= INFURA_API_KEY=`) | Network | Private key parameter name | API Key / RPC URL | Block explorer parameter name | | ------------- | ----------------- | ---- | ----------------- | -| goerli | GOERLI_PRIVATE_KEY | INFURA_API_KEY | ETHERSCAN_API_KEY | -| linea_goerli | LINEA_GOERLI_PRIVATE_KEY | INFURA_API_KEY | LINEASCAN_API_KEY | +| sepolia | SEPOLIA_PRIVATE_KEY | INFURA_API_KEY | ETHERSCAN_API_KEY | +| linea_sepolia | LINEA_SEPOLIA_PRIVATE_KEY | INFURA_API_KEY | LINEASCAN_API_KEY | | mainnet | MAINNET_PRIVATE_KEY | INFURA_API_KEY | ETHERSCAN_API_KEY | | linea_mainnet | LINEA_MAINNET_PRIVATE_KEY | INFURA_API_KEY | LINEASCAN_API_KEY | | custom | CUSTOM_PRIVATE_KEY | CUSTOM_BLOCKCHAIN_URL | ETHERSCAN_API_KEY | @@ -39,7 +39,7 @@ Dependant on which network you are using, a specific network private key needs t ## Generalized Command Format ```shell - npx hardhat deploy --network goerli --tags + npx hardhat deploy --network sepolia --tags ```
@@ -73,13 +73,13 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat deploy --network goerli --tags PlonkVerifier +npx hardhat deploy --network sepolia --tags PlonkVerifier ``` Base command with cli arguments: ```shell -SAVE_ADDRESS=true VERIFY_CONTRACT=true GOERLI_PRIVATE_KEY= ETHERSCAN_API_KEY= INFURA_API_KEY= PLONKVERIFIER_NAME=PlonkVerifierForMultiTypeDataAggregation npx hardhat deploy --network goerli --tags PlonkVerifier +SAVE_ADDRESS=true VERIFY_CONTRACT=true SEPOLIA_PRIVATE_KEY= ETHERSCAN_API_KEY= INFURA_API_KEY= PLONKVERIFIER_NAME=PlonkVerifierForMultiTypeDataAggregation npx hardhat deploy --network sepolia --tags PlonkVerifier ``` (make sure to replace `` with actual values) @@ -109,12 +109,12 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat deploy --network goerli --tags LineaRollup +npx hardhat deploy --network sepolia --tags LineaRollup ``` Base command with cli arguments: ```shell -SAVE_ADDRESS=true VERIFY_CONTRACT=true GOERLI_PRIVATE_KEY= ETHERSCAN_API_KEY= INFURA_API_KEY= LINEA_ROLLUP_INITIAL_STATE_ROOT_HASH= LINEA_ROLLUP_INITIAL_L2_BLOCK_NUMBER= LINEA_ROLLUP_SECURITY_COUNCIL=
LINEA_ROLLUP_OPERATORS=
LINEA_ROLLUP_RATE_LIMIT_PERIOD= LINEA_ROLLUP_RATE_LIMIT_AMOUNT= npx hardhat deploy --network goerli --tags LineaRollup +SAVE_ADDRESS=true VERIFY_CONTRACT=true SEPOLIA_PRIVATE_KEY= ETHERSCAN_API_KEY= INFURA_API_KEY= LINEA_ROLLUP_INITIAL_STATE_ROOT_HASH= LINEA_ROLLUP_INITIAL_L2_BLOCK_NUMBER= LINEA_ROLLUP_SECURITY_COUNCIL=
LINEA_ROLLUP_OPERATORS=
LINEA_ROLLUP_RATE_LIMIT_PERIOD= LINEA_ROLLUP_RATE_LIMIT_AMOUNT= npx hardhat deploy --network sepolia --tags LineaRollup ``` (make sure to replace `` `` `` `
` with actual values). @@ -141,7 +141,7 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat deploy --network linea_goerli --tags LineaVoyageXPToken +npx hardhat deploy --network linea_sepolia --tags LineaVoyageXPToken ``` ### Timelock @@ -166,12 +166,12 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat deploy --network goerli --tags Timelock +npx hardhat deploy --network sepolia --tags Timelock ``` Base command with cli arguments: ```shell -SAVE_ADDRESS=true VERIFY_CONTRACT=true GOERLI_PRIVATE_KEY= ETHERSCAN_API_KEY= INFURA_API_KEY= TIMELOCK_PROPOSERS=
TIMELOCK_EXECUTORS=
TIMELOCK_ADMIN_ADDRESS=
MIN_DELAY= npx hardhat deploy --network goerli --tags Timelock +SAVE_ADDRESS=true VERIFY_CONTRACT=true SEPOLIA_PRIVATE_KEY= ETHERSCAN_API_KEY= INFURA_API_KEY= TIMELOCK_PROPOSERS=
TIMELOCK_EXECUTORS=
TIMELOCK_ADMIN_ADDRESS=
MIN_DELAY= npx hardhat deploy --network sepolia --tags Timelock ``` (make sure to replace `` `` `
` with actual values) @@ -200,12 +200,12 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat deploy --network linea_goerli --tags L2MessageService +npx hardhat deploy --network linea_sepolia --tags L2MessageService ``` Base command with cli arguments: ```shell -SAVE_ADDRESS=true VERIFY_CONTRACT=true GOERLI_PRIVATE_KEY= LINEASCAN_API_KEY= INFURA_API_KEY= L2MSGSERVICE_SECURITY_COUNCIL=
L2MSGSERVICE_L1L2_MESSAGE_SETTER=
L2MSGSERVICE_RATE_LIMIT_PERIOD= L2MSGSERVICE_RATE_LIMIT_AMOUNT= npx hardhat deploy --network linea_goerli --tags L2MessageService +SAVE_ADDRESS=true VERIFY_CONTRACT=true SEPOLIA_PRIVATE_KEY= LINEASCAN_API_KEY= INFURA_API_KEY= L2MSGSERVICE_SECURITY_COUNCIL=
L2MSGSERVICE_L1L2_MESSAGE_SETTER=
L2MSGSERVICE_RATE_LIMIT_PERIOD= L2MSGSERVICE_RATE_LIMIT_AMOUNT= npx hardhat deploy --network linea_sepolia --tags L2MessageService ``` (make sure to replace `` `` `
` with actual values) @@ -230,12 +230,12 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat deploy --network linea_goerli --tags BridgedToken +npx hardhat deploy --network linea_sepolia --tags BridgedToken ``` Base command with cli arguments: ```shell -SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY= LINEA_GOERLI_PRIVATE_KEY= INFURA_API_KEY= npx hardhat deploy --network linea_goerli --tags BridgedToken +SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY= LINEA_SEPOLIA_PRIVATE_KEY= INFURA_API_KEY= npx hardhat deploy --network linea_sepolia --tags BridgedToken ``` (make sure to replace `` `` `
` with actual values) @@ -264,12 +264,12 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat deploy --network linea_goerli --tags CustomBridgedToken +npx hardhat deploy --network linea_sepolia --tags CustomBridgedToken ``` Base command with cli arguments: ```shell -SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY= LINEA_GOERLI_PRIVATE_KEY= INFURA_API_KEY= CUSTOMTOKENBRIDGE_NAME= CUSTOMTOKENBRIDGE_SYMBOL= CUSTOMTOKENBRIDGE_DECIMALS= CUSTOMTOKENBRIDGE_BRIDGE_ADDRESS=
npx hardhat deploy --network linea_goerli --tags CustomBridgedToken +SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY= LINEA_SEPOLIA_PRIVATE_KEY= INFURA_API_KEY= CUSTOMTOKENBRIDGE_NAME= CUSTOMTOKENBRIDGE_SYMBOL= CUSTOMTOKENBRIDGE_DECIMALS= CUSTOMTOKENBRIDGE_BRIDGE_ADDRESS=
npx hardhat deploy --network linea_sepolia --tags CustomBridgedToken ``` (make sure to replace `` `
` `` `` `` with actual values) @@ -300,12 +300,12 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat deploy --network linea_goerli --tags TokenBridge +npx hardhat deploy --network linea_sepolia --tags TokenBridge ``` Base command with cli arguments: ```shell -SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY= LINEA_GOERLI_PRIVATE_KEY= INFURA_API_KEY= REMOTE_CHAIN_ID= TOKEN_BRIDGE_L1=true L1_RESERVED_TOKEN_ADDRESSES=
L2_MESSAGE_SERVICE_ADDRESS=
LINEA_ROLLUP_ADDRESS=
npx hardhat deploy --network linea_goerli --tags TokenBridge +SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY= LINEA_SEPOLIA_PRIVATE_KEY= INFURA_API_KEY= REMOTE_CHAIN_ID= TOKEN_BRIDGE_L1=true L1_RESERVED_TOKEN_ADDRESSES=
L2_MESSAGE_SERVICE_ADDRESS=
LINEA_ROLLUP_ADDRESS=
npx hardhat deploy --network linea_sepolia --tags TokenBridge ``` (make sure to replace `` `` `
` with actual values) @@ -351,12 +351,12 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat deploy --network goerli --tags PlonkVerifier,LineaRollup,Timelock +npx hardhat deploy --network sepolia --tags PlonkVerifier,LineaRollup,Timelock ``` Base command with cli arguments: ```shell -SAVE_ADDRESS=true VERIFY_CONTRACT=true GOERLI_PRIVATE_KEY= ETHERSCAN_API_KEY= INFURA_API_KEY= LINEA_ROLLUP_INITIAL_STATE_ROOT_HASH= LINEA_ROLLUP_INITIAL_L2_BLOCK_NUMBER= LINEA_ROLLUP_SECURITY_COUNCIL=
LINEA_ROLLUP_OPERATORS=
LINEA_ROLLUP_RATE_LIMIT_PERIOD= LINEA_ROLLUP_RATE_LIMIT_AMOUNT= TIMELOCK_PROPOSERS=
TIMELOCK_EXECUTORS=
TIMELOCK_ADMIN_ADDRESS=
MIN_DELAY= PLONKVERIFIER_NAME=PlonkVerifierForMultiTypeDataAggregation npx hardhat deploy --network goerli --tags PlonkVerifier,LineaRollup,Timelock +SAVE_ADDRESS=true VERIFY_CONTRACT=true SEPOLIA_PRIVATE_KEY= ETHERSCAN_API_KEY= INFURA_API_KEY= LINEA_ROLLUP_INITIAL_STATE_ROOT_HASH= LINEA_ROLLUP_INITIAL_L2_BLOCK_NUMBER= LINEA_ROLLUP_SECURITY_COUNCIL=
LINEA_ROLLUP_OPERATORS=
LINEA_ROLLUP_RATE_LIMIT_PERIOD= LINEA_ROLLUP_RATE_LIMIT_AMOUNT= TIMELOCK_PROPOSERS=
TIMELOCK_EXECUTORS=
TIMELOCK_ADMIN_ADDRESS=
MIN_DELAY= PLONKVERIFIER_NAME=PlonkVerifierForMultiTypeDataAggregation npx hardhat deploy --network sepolia --tags PlonkVerifier,LineaRollup,Timelock ``` (make sure to replace `` `` `` `
` with actual values) @@ -389,12 +389,12 @@ This will run the script that deploys Timelock, L2MessageService contracts. Base command: ```shell -npx hardhat deploy --network linea_goerli --tags L2MessageService,Timelock +npx hardhat deploy --network linea_sepolia --tags L2MessageService,Timelock ``` Base command with cli arguments: ```shell -SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEA_GOERLI_PRIVATE_KEY= LINEASCAN_API_KEY= INFURA_API_KEY= L2MSGSERVICE_SECURITY_COUNCIL=
L2MSGSERVICE_L1L2_MESSAGE_SETTER=
L2MSGSERVICE_RATE_LIMIT_PERIOD= L2MSGSERVICE_RATE_LIMIT_AMOUNT= TIMELOCK_PROPOSERS=
TIMELOCK_EXECUTORS=
TIMELOCK_ADMIN_ADDRESS=
MIN_DELAY= npx hardhat deploy --network linea_goerli --tags L2MessageService_Timelock +SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEA_SEPOLIA_PRIVATE_KEY= LINEASCAN_API_KEY= INFURA_API_KEY= L2MSGSERVICE_SECURITY_COUNCIL=
L2MSGSERVICE_L1L2_MESSAGE_SETTER=
L2MSGSERVICE_RATE_LIMIT_PERIOD= L2MSGSERVICE_RATE_LIMIT_AMOUNT= TIMELOCK_PROPOSERS=
TIMELOCK_EXECUTORS=
TIMELOCK_ADMIN_ADDRESS=
MIN_DELAY= npx hardhat deploy --network linea_sepolia --tags L2MessageService_Timelock ``` (make sure to replace `` `` `
` with actual values) @@ -423,12 +423,12 @@ This will run the script that deploys the TokenBridge and BridgedToken contracts Base command: ```shell -npx hardhat deploy --network linea_goerli --tags BridgedToken,TokenBridge +npx hardhat deploy --network linea_sepolia --tags BridgedToken,TokenBridge ``` Base command with cli arguments: ```shell -SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY= LINEA_GOERLI_PRIVATE_KEY= INFURA_API_KEY= REMOTE_CHAIN_ID= TOKEN_BRIDGE_L1=true L1_RESERVED_TOKEN_ADDRESSES=
L2_MESSAGE_SERVICE_ADDRESS=
LINEA_ROLLUP_ADDRESS=
npx hardhat deploy --network linea_goerli --tags BridgedToken,TokenBridge +SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY= LINEA_SEPOLIA_PRIVATE_KEY= INFURA_API_KEY= REMOTE_CHAIN_ID= TOKEN_BRIDGE_L1=true L1_RESERVED_TOKEN_ADDRESSES=
L2_MESSAGE_SERVICE_ADDRESS=
LINEA_ROLLUP_ADDRESS=
npx hardhat deploy --network linea_sepolia --tags BridgedToken,TokenBridge ``` (make sure to replace `` `` `
` with actual values) diff --git a/contracts/docs/linea-token-bridge.md b/contracts/docs/linea-token-bridge.md index 0835d17d..78c99f67 100644 --- a/contracts/docs/linea-token-bridge.md +++ b/contracts/docs/linea-token-bridge.md @@ -46,15 +46,15 @@ In a second terminal, run: npx hardhat run --network localhost scripts/tokenBridge/test/deployMock.ts ``` -### On a Goerli Testnet network with mocked messaging service +### On a Sepolia Testnet network with mocked messaging service In a terminal, run: ```shell -npx hardhat run --network goerli scripts/tokenBridge/test/deployMock.ts +npx hardhat run --network sepolia scripts/tokenBridge/test/deployMock.ts ``` -### On Goerli Testnet and Goerli Linea Testnet +### On Sepolia Testnet and Sepolia Linea Testnet To deploy the contracts, you will need to run the Bridged Token, Token Bridge, and Token Bridge operational scripts. diff --git a/contracts/docs/operational.md b/contracts/docs/operational.md index ff469b0e..00b4b9a2 100644 --- a/contracts/docs/operational.md +++ b/contracts/docs/operational.md @@ -12,12 +12,12 @@ The command-line arguments will create or replace existing .env (only in memory) ## Network specific variables -Dependant on which network you are using, a specific network private key needs to be used, as well as the corresponding API Key or RPC URL. The following table highlights which private key variable will be used per network. Please use the variable that pertains to the network. e.g. for `linea_goerli` use `LINEA_GOERLI_PRIVATE_KEY` (`LINEA_GOERLI_PRIVATE_KEY= INFURA_API_KEY=`) +Dependant on which network you are using, a specific network private key needs to be used, as well as the corresponding API Key or RPC URL. The following table highlights which private key variable will be used per network. Please use the variable that pertains to the network. e.g. for `linea_sepolia` use `LINEA_SEPOLIA_PRIVATE_KEY` (`LINEA_SEPOLIA_PRIVATE_KEY= INFURA_API_KEY=`) | Network | Private key parameter name | API Key / RPC URL | | ------------- | ----------------- | ---- | -| goerli | GOERLI_PRIVATE_KEY | INFURA_API_KEY | -| linea_goerli | LINEA_GOERLI_PRIVATE_KEY | INFURA_API_KEY | +| sepolia | SEPOLIA_PRIVATE_KEY | INFURA_API_KEY | +| linea_sepolia | LINEA_SEPOLIA_PRIVATE_KEY | INFURA_API_KEY | | mainnet | MAINNET_PRIVATE_KEY | INFURA_API_KEY | | linea_mainnet | LINEA_MAINNET_PRIVATE_KEY | INFURA_API_KEY | | custom | CUSTOM_PRIVATE_KEY | CUSTOM_BLOCKCHAIN_URL | @@ -44,18 +44,18 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat getCurrentFinalizedBlockNumber --network goerli +npx hardhat getCurrentFinalizedBlockNumber --network sepolia ``` Base command with cli arguments: ```shell -GOERLI_PRIVATE_KEY= \ +SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat getCurrentFinalizedBlockNumber \ --contract-type \ --proxy-address
\ ---network goerli +--network sepolia ``` (make sure to replace `` with actual values) @@ -81,20 +81,20 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat grantContractRoles --network goerli +npx hardhat grantContractRoles --network sepolia ``` Base command with cli arguments: ```shell -GOERLI_PRIVATE_KEY= \ +SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat grantContractRoles \ --admin-address
\ --proxy-address
\ --contract-type \ --contract-roles \ ---network goerli +--network sepolia ``` @@ -121,13 +121,13 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat renounceContractRoles --network goerli +npx hardhat renounceContractRoles --network sepolia ``` Base command with cli arguments: ```shell -GOERLI_PRIVATE_KEY= \ +SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat renounceContractRoles \ --old-admin-address
\ @@ -135,7 +135,7 @@ npx hardhat renounceContractRoles \ --proxy-address
\ --contract-type \ --contract-roles \ ---network goerli +--network sepolia ``` @@ -165,19 +165,19 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat setRateLimit --network linea_goerli +npx hardhat setRateLimit --network linea_sepolia ``` Base command with cli arguments: ```shell -LINEA_GOERLI_PRIVATE_KEY= \ +LINEA_SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat setRateLimit \ --message-service-address
\ --message-service-type \ --withdraw-limit \ ---network linea_goerli +--network linea_sepolia ``` @@ -205,20 +205,20 @@ Parameters that should be filled either in .env or passed as CLI arguments: Base command: ```shell -npx hardhat setVerifierAddress --network goerli +npx hardhat setVerifierAddress --network sepolia ``` Base command with cli arguments: ```shell -GOERLI_PRIVATE_KEY= \ +SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat setVerifierAddress \ --verifier-proof-type \ --proxy-address
\ --verifier-address
\ --verifier-name \ ---network goerli +--network sepolia ``` (make sure to replace `` with actual values) @@ -245,27 +245,27 @@ Parameters that should be filled either in .env or passed as CLI arguments:
It should be noted that the `--remote-network` and `--network` fields should point to complementary networks. -e.g. `--remote-network linea_goerli --network goerli` or vice-versa. +e.g. `--remote-network linea_sepolia --network sepolia` or vice-versa.
Base command: ```shell -npx hardhat transferOwnershipAndSetRemoteTokenBridge --safe-address
--remote-network goerli --network linea_goerli +npx hardhat transferOwnershipAndSetRemoteTokenBridge --safe-address
--remote-network sepolia --network linea_sepolia ``` Base command with cli arguments: ```shell -GOERLI_PRIVATE_KEY= \ +SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat transferOwnershipAndSetRemoteTokenBridge \ --safe-address
\ --remote-token-bridge-address
\ --token-bridge-address
\ --token-bridge-proxy-admin-address
\ ---remote-network goerli \ ---network linea_goerli +--remote-network sepolia \ +--network linea_sepolia ``` (make sure to replace `` with actual values) diff --git a/contracts/scripts/gnosis/encodingTx2.ts b/contracts/scripts/gnosis/encodingTx2.ts index 05d9ea06..b80c22cb 100644 --- a/contracts/scripts/gnosis/encodingTx2.ts +++ b/contracts/scripts/gnosis/encodingTx2.ts @@ -2,15 +2,15 @@ import { ethers } from "hardhat"; import { LineaRollupInit__factory, LineaRollup__factory, TimeLock__factory } from "../../typechain-types"; /*******************************USAGE****************************************************************** -GOERLI_PRIVATE_KEY= \ +SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ -npx hardhat run scripts/gnosis/encodingTX2.ts --network goerli +npx hardhat run scripts/gnosis/encodingTX2.ts --network sepolia or -LINEA_GOERLI_PRIVATE_KEY= \ +LINEA_SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ -npx hardhat run scripts/gnosis/encodingTX2.ts --network linea_goerli +npx hardhat run scripts/gnosis/encodingTX2.ts --network linea_sepolia *******************************************************************************************************/ //--------------------------------------Config------------------------------------ diff --git a/contracts/scripts/operational/getCurrentFinalizedBlockNumberTask.ts b/contracts/scripts/operational/getCurrentFinalizedBlockNumberTask.ts index e0e0a71b..342c9501 100644 --- a/contracts/scripts/operational/getCurrentFinalizedBlockNumberTask.ts +++ b/contracts/scripts/operational/getCurrentFinalizedBlockNumberTask.ts @@ -8,12 +8,12 @@ import { getTaskCliOrEnvValue } from "../../common/helpers/environmentHelper"; ******************************************************************************************* ******************************************************************************************* - GOERLI_PRIVATE_KEY= \ + SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat getCurrentFinalizedBlockNumber \ --contract-type \ --proxy-address
\ - --network goerli + --network sepolia ******************************************************************************************* */ diff --git a/contracts/scripts/operational/grantContractRolesTask.ts b/contracts/scripts/operational/grantContractRolesTask.ts index 0e11e708..d46e52c4 100644 --- a/contracts/scripts/operational/grantContractRolesTask.ts +++ b/contracts/scripts/operational/grantContractRolesTask.ts @@ -10,14 +10,14 @@ import { getTaskCliOrEnvValue } from "../../common/helpers/environmentHelper"; ******************************************************************************************* NB: Be sure to have use the roles initially set to the security council EOA before changing ******************************************************************************************* - GOERLI_PRIVATE_KEY= \ + SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat grantContractRoles \ --admin-address
\ --proxy-address
\ --contract-type \ --contract-roles \ - --network goerli + --network sepolia ******************************************************************************************* */ diff --git a/contracts/scripts/operational/renounceContractRolesTask.ts b/contracts/scripts/operational/renounceContractRolesTask.ts index 059052aa..6e3b6c18 100644 --- a/contracts/scripts/operational/renounceContractRolesTask.ts +++ b/contracts/scripts/operational/renounceContractRolesTask.ts @@ -15,7 +15,7 @@ import { getTaskCliOrEnvValue } from "../../common/helpers/environmentHelper"; MAKE SURE THAT THE DEFAULT ADMIN ROLE IS LAST AS IT IS REVOKING/RENOUNCING FROM SELF ******************************************************************************************* - GOERLI_PRIVATE_KEY= \ + SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat renounceContractRoles \ --old-admin-address
\ @@ -23,7 +23,7 @@ import { getTaskCliOrEnvValue } from "../../common/helpers/environmentHelper"; --proxy-address
\ --contract-type \ --contract-roles \ - --network goerli + --network sepolia ******************************************************************************************* */ diff --git a/contracts/scripts/operational/setRateLimitTask.ts b/contracts/scripts/operational/setRateLimitTask.ts index 04c8fffc..c5263945 100644 --- a/contracts/scripts/operational/setRateLimitTask.ts +++ b/contracts/scripts/operational/setRateLimitTask.ts @@ -9,13 +9,13 @@ import { getTaskCliOrEnvValue } from "../../common/helpers/environmentHelper"; ******************************************************************************************* ******************************************************************************************* - LINEA_GOERLI_PRIVATE_KEY= \ + LINEA_SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat setRateLimit \ --message-service-address
\ --message-service-type \ --withdraw-limit \ - --network linea_goerli + --network linea_sepolia ******************************************************************************************* */ diff --git a/contracts/scripts/operational/setVerifierAddressTask.ts b/contracts/scripts/operational/setVerifierAddressTask.ts index 62f2888b..200e8262 100644 --- a/contracts/scripts/operational/setVerifierAddressTask.ts +++ b/contracts/scripts/operational/setVerifierAddressTask.ts @@ -8,14 +8,14 @@ import { getTaskCliOrEnvValue } from "../../common/helpers/environmentHelper"; ******************************************************************************************* ******************************************************************************************* - GOERLI_PRIVATE_KEY= \ + SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat setVerifierAddress \ --verifier-proof-type \ --proxy-address
\ --verifier-address
\ --verifier-name \ - --network goerli + --network sepolia ******************************************************************************************* */ diff --git a/contracts/scripts/operational/transferOwnershipAndSetRemoteTokenBridgeTask.ts b/contracts/scripts/operational/transferOwnershipAndSetRemoteTokenBridgeTask.ts index 90726cf7..ca88d019 100644 --- a/contracts/scripts/operational/transferOwnershipAndSetRemoteTokenBridgeTask.ts +++ b/contracts/scripts/operational/transferOwnershipAndSetRemoteTokenBridgeTask.ts @@ -9,15 +9,15 @@ import { getDeployedContractOnNetwork } from "../../common/helpers/readAddress"; 1. Deploy the TokenBridge and BridgedToken contracts on both networks and get the addresses 2. Run this script on both addresses with the correct variables set. ******************************************************************************************* - GOERLI_PRIVATE_KEY= \ + SEPOLIA_PRIVATE_KEY= \ INFURA_API_KEY= \ npx hardhat transferOwnershipAndSetRemoteTokenBridge \ --safe-address
\ --remote-token-bridge-address
\ --token-bridge-address
\ --token-bridge-proxy-admin-address
\ - --remote-network goerli \ - --network linea_goerli + --remote-network sepolia \ + --network linea_sepolia ******************************************************************************************* */