mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-08 03:43:56 -05:00
Chore/goerli removal (#342)
* replaced 'goerli' with 'sepolia' in *.md files in /contracts * change 'goerli' to 'sepolia' in comments in /contracts
This commit is contained in:
@@ -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/<infura_key>"
|
||||
L2_BLOCKCHAIN_NODE=="https://linea-goerli.infura.io/v3/<infura_key>"
|
||||
BLOCKCHAIN_NODE="https://sepolia.infura.io/v3/<infura_key>"
|
||||
L2_BLOCKCHAIN_NODE=="https://linea-sepolia.infura.io/v3/<infura_key>"
|
||||
DEPLOYMOCKVERIFIER="FALSE"
|
||||
PRIVATE_KEY=<secret>
|
||||
|
||||
|
||||
@@ -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/<network_name>/ folder which stores the contract address, abi and transaction hash.
|
||||
<br />
|
||||
@@ -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=<key> INFURA_API_KEY=<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=<key> INFURA_API_KEY=<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
|
||||
<possible CLI environment arguments> npx hardhat deploy --network goerli --tags <contract tags, comma delimitted list>
|
||||
<possible CLI environment arguments> npx hardhat deploy --network sepolia --tags <contract tags, comma delimitted list>
|
||||
```
|
||||
|
||||
<br />
|
||||
@@ -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=<key> ETHERSCAN_API_KEY=<key> INFURA_API_KEY=<key> PLONKVERIFIER_NAME=PlonkVerifierForMultiTypeDataAggregation npx hardhat deploy --network goerli --tags PlonkVerifier
|
||||
SAVE_ADDRESS=true VERIFY_CONTRACT=true SEPOLIA_PRIVATE_KEY=<key> ETHERSCAN_API_KEY=<key> INFURA_API_KEY=<key> PLONKVERIFIER_NAME=PlonkVerifierForMultiTypeDataAggregation npx hardhat deploy --network sepolia --tags PlonkVerifier
|
||||
```
|
||||
|
||||
(make sure to replace `<key>` 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=<key> ETHERSCAN_API_KEY=<key> INFURA_API_KEY=<key> LINEA_ROLLUP_INITIAL_STATE_ROOT_HASH=<bytes> LINEA_ROLLUP_INITIAL_L2_BLOCK_NUMBER=<value> LINEA_ROLLUP_SECURITY_COUNCIL=<address> LINEA_ROLLUP_OPERATORS=<address> LINEA_ROLLUP_RATE_LIMIT_PERIOD=<value> LINEA_ROLLUP_RATE_LIMIT_AMOUNT=<value> npx hardhat deploy --network goerli --tags LineaRollup
|
||||
SAVE_ADDRESS=true VERIFY_CONTRACT=true SEPOLIA_PRIVATE_KEY=<key> ETHERSCAN_API_KEY=<key> INFURA_API_KEY=<key> LINEA_ROLLUP_INITIAL_STATE_ROOT_HASH=<bytes> LINEA_ROLLUP_INITIAL_L2_BLOCK_NUMBER=<value> LINEA_ROLLUP_SECURITY_COUNCIL=<address> LINEA_ROLLUP_OPERATORS=<address> LINEA_ROLLUP_RATE_LIMIT_PERIOD=<value> LINEA_ROLLUP_RATE_LIMIT_AMOUNT=<value> npx hardhat deploy --network sepolia --tags LineaRollup
|
||||
```
|
||||
|
||||
(make sure to replace `<value>` `<key>` `<bytes>` `<address>` 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=<key> ETHERSCAN_API_KEY=<key> INFURA_API_KEY=<key> TIMELOCK_PROPOSERS=<address> TIMELOCK_EXECUTORS=<address> TIMELOCK_ADMIN_ADDRESS=<address> MIN_DELAY=<value> npx hardhat deploy --network goerli --tags Timelock
|
||||
SAVE_ADDRESS=true VERIFY_CONTRACT=true SEPOLIA_PRIVATE_KEY=<key> ETHERSCAN_API_KEY=<key> INFURA_API_KEY=<key> TIMELOCK_PROPOSERS=<address> TIMELOCK_EXECUTORS=<address> TIMELOCK_ADMIN_ADDRESS=<address> MIN_DELAY=<value> npx hardhat deploy --network sepolia --tags Timelock
|
||||
```
|
||||
|
||||
(make sure to replace `<value>` `<key>` `<address>` 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=<key> LINEASCAN_API_KEY=<key> INFURA_API_KEY=<key> L2MSGSERVICE_SECURITY_COUNCIL=<address> L2MSGSERVICE_L1L2_MESSAGE_SETTER=<address> L2MSGSERVICE_RATE_LIMIT_PERIOD=<value> L2MSGSERVICE_RATE_LIMIT_AMOUNT=<value> npx hardhat deploy --network linea_goerli --tags L2MessageService
|
||||
SAVE_ADDRESS=true VERIFY_CONTRACT=true SEPOLIA_PRIVATE_KEY=<key> LINEASCAN_API_KEY=<key> INFURA_API_KEY=<key> L2MSGSERVICE_SECURITY_COUNCIL=<address> L2MSGSERVICE_L1L2_MESSAGE_SETTER=<address> L2MSGSERVICE_RATE_LIMIT_PERIOD=<value> L2MSGSERVICE_RATE_LIMIT_AMOUNT=<value> npx hardhat deploy --network linea_sepolia --tags L2MessageService
|
||||
```
|
||||
|
||||
(make sure to replace `<value>` `<key>` `<address>` 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=<key> LINEA_GOERLI_PRIVATE_KEY=<key> INFURA_API_KEY=<key> npx hardhat deploy --network linea_goerli --tags BridgedToken
|
||||
SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY=<key> LINEA_SEPOLIA_PRIVATE_KEY=<key> INFURA_API_KEY=<key> npx hardhat deploy --network linea_sepolia --tags BridgedToken
|
||||
```
|
||||
|
||||
(make sure to replace `<value>` `<key>` `<address>` 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=<key> LINEA_GOERLI_PRIVATE_KEY=<key> INFURA_API_KEY=<key> CUSTOMTOKENBRIDGE_NAME=<name> CUSTOMTOKENBRIDGE_SYMBOL=<symbol> CUSTOMTOKENBRIDGE_DECIMALS=<decimals> CUSTOMTOKENBRIDGE_BRIDGE_ADDRESS=<address> npx hardhat deploy --network linea_goerli --tags CustomBridgedToken
|
||||
SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY=<key> LINEA_SEPOLIA_PRIVATE_KEY=<key> INFURA_API_KEY=<key> CUSTOMTOKENBRIDGE_NAME=<name> CUSTOMTOKENBRIDGE_SYMBOL=<symbol> CUSTOMTOKENBRIDGE_DECIMALS=<decimals> CUSTOMTOKENBRIDGE_BRIDGE_ADDRESS=<address> npx hardhat deploy --network linea_sepolia --tags CustomBridgedToken
|
||||
```
|
||||
|
||||
(make sure to replace `<key>` `<address>` `<name>` `<symbol>` `<decimals>` 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=<key> LINEA_GOERLI_PRIVATE_KEY=<key> INFURA_API_KEY=<key> REMOTE_CHAIN_ID=<uint256> TOKEN_BRIDGE_L1=true L1_RESERVED_TOKEN_ADDRESSES=<address> L2_MESSAGE_SERVICE_ADDRESS=<address> LINEA_ROLLUP_ADDRESS=<address> npx hardhat deploy --network linea_goerli --tags TokenBridge
|
||||
SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY=<key> LINEA_SEPOLIA_PRIVATE_KEY=<key> INFURA_API_KEY=<key> REMOTE_CHAIN_ID=<uint256> TOKEN_BRIDGE_L1=true L1_RESERVED_TOKEN_ADDRESSES=<address> L2_MESSAGE_SERVICE_ADDRESS=<address> LINEA_ROLLUP_ADDRESS=<address> npx hardhat deploy --network linea_sepolia --tags TokenBridge
|
||||
```
|
||||
|
||||
(make sure to replace `<value>` `<key>` `<address>` 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=<key> ETHERSCAN_API_KEY=<key> INFURA_API_KEY=<key> LINEA_ROLLUP_INITIAL_STATE_ROOT_HASH=<bytes> LINEA_ROLLUP_INITIAL_L2_BLOCK_NUMBER=<value> LINEA_ROLLUP_SECURITY_COUNCIL=<address> LINEA_ROLLUP_OPERATORS=<address> LINEA_ROLLUP_RATE_LIMIT_PERIOD=<value> LINEA_ROLLUP_RATE_LIMIT_AMOUNT=<value> TIMELOCK_PROPOSERS=<address> TIMELOCK_EXECUTORS=<address> TIMELOCK_ADMIN_ADDRESS=<address> MIN_DELAY=<value> PLONKVERIFIER_NAME=PlonkVerifierForMultiTypeDataAggregation npx hardhat deploy --network goerli --tags PlonkVerifier,LineaRollup,Timelock
|
||||
SAVE_ADDRESS=true VERIFY_CONTRACT=true SEPOLIA_PRIVATE_KEY=<key> ETHERSCAN_API_KEY=<key> INFURA_API_KEY=<key> LINEA_ROLLUP_INITIAL_STATE_ROOT_HASH=<bytes> LINEA_ROLLUP_INITIAL_L2_BLOCK_NUMBER=<value> LINEA_ROLLUP_SECURITY_COUNCIL=<address> LINEA_ROLLUP_OPERATORS=<address> LINEA_ROLLUP_RATE_LIMIT_PERIOD=<value> LINEA_ROLLUP_RATE_LIMIT_AMOUNT=<value> TIMELOCK_PROPOSERS=<address> TIMELOCK_EXECUTORS=<address> TIMELOCK_ADMIN_ADDRESS=<address> MIN_DELAY=<value> PLONKVERIFIER_NAME=PlonkVerifierForMultiTypeDataAggregation npx hardhat deploy --network sepolia --tags PlonkVerifier,LineaRollup,Timelock
|
||||
```
|
||||
|
||||
(make sure to replace `<value>` `<bytes>` `<key>` `<address>` 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=<key> LINEASCAN_API_KEY=<key> INFURA_API_KEY=<key> L2MSGSERVICE_SECURITY_COUNCIL=<address> L2MSGSERVICE_L1L2_MESSAGE_SETTER=<address> L2MSGSERVICE_RATE_LIMIT_PERIOD=<value> L2MSGSERVICE_RATE_LIMIT_AMOUNT=<value> TIMELOCK_PROPOSERS=<address> TIMELOCK_EXECUTORS=<address> TIMELOCK_ADMIN_ADDRESS=<address> MIN_DELAY=<value> npx hardhat deploy --network linea_goerli --tags L2MessageService_Timelock
|
||||
SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEA_SEPOLIA_PRIVATE_KEY=<key> LINEASCAN_API_KEY=<key> INFURA_API_KEY=<key> L2MSGSERVICE_SECURITY_COUNCIL=<address> L2MSGSERVICE_L1L2_MESSAGE_SETTER=<address> L2MSGSERVICE_RATE_LIMIT_PERIOD=<value> L2MSGSERVICE_RATE_LIMIT_AMOUNT=<value> TIMELOCK_PROPOSERS=<address> TIMELOCK_EXECUTORS=<address> TIMELOCK_ADMIN_ADDRESS=<address> MIN_DELAY=<value> npx hardhat deploy --network linea_sepolia --tags L2MessageService_Timelock
|
||||
```
|
||||
|
||||
(make sure to replace `<value>` `<key>` `<address>` 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=<key> LINEA_GOERLI_PRIVATE_KEY=<key> INFURA_API_KEY=<key> REMOTE_CHAIN_ID=<uint256> TOKEN_BRIDGE_L1=true L1_RESERVED_TOKEN_ADDRESSES=<address> L2_MESSAGE_SERVICE_ADDRESS=<address> LINEA_ROLLUP_ADDRESS=<address> npx hardhat deploy --network linea_goerli --tags BridgedToken,TokenBridge
|
||||
SAVE_ADDRESS=true VERIFY_CONTRACT=true LINEASCAN_API_KEY=<key> LINEA_SEPOLIA_PRIVATE_KEY=<key> INFURA_API_KEY=<key> REMOTE_CHAIN_ID=<uint256> TOKEN_BRIDGE_L1=true L1_RESERVED_TOKEN_ADDRESSES=<address> L2_MESSAGE_SERVICE_ADDRESS=<address> LINEA_ROLLUP_ADDRESS=<address> npx hardhat deploy --network linea_sepolia --tags BridgedToken,TokenBridge
|
||||
```
|
||||
(make sure to replace `<value>` `<key>` `<address>` with actual values)
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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=<key> INFURA_API_KEY=<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=<key> INFURA_API_KEY=<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=<key> \
|
||||
SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat getCurrentFinalizedBlockNumber \
|
||||
--contract-type <string> \
|
||||
--proxy-address <address> \
|
||||
--network goerli
|
||||
--network sepolia
|
||||
```
|
||||
|
||||
(make sure to replace `<key>` 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=<key> \
|
||||
SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat grantContractRoles \
|
||||
--admin-address <address> \
|
||||
--proxy-address <address> \
|
||||
--contract-type <string> \
|
||||
--contract-roles <bytes> \
|
||||
--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=<key> \
|
||||
SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat renounceContractRoles \
|
||||
--old-admin-address <address> \
|
||||
@@ -135,7 +135,7 @@ npx hardhat renounceContractRoles \
|
||||
--proxy-address <address> \
|
||||
--contract-type <string> \
|
||||
--contract-roles <bytes> \
|
||||
--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=<key> \
|
||||
LINEA_SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat setRateLimit \
|
||||
--message-service-address <address> \
|
||||
--message-service-type <string> \
|
||||
--withdraw-limit <uint256> \
|
||||
--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=<key> \
|
||||
SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat setVerifierAddress \
|
||||
--verifier-proof-type <uint256> \
|
||||
--proxy-address <address> \
|
||||
--verifier-address <address> \
|
||||
--verifier-name <string> \
|
||||
--network goerli
|
||||
--network sepolia
|
||||
```
|
||||
|
||||
(make sure to replace `<key>` with actual values)
|
||||
@@ -245,27 +245,27 @@ Parameters that should be filled either in .env or passed as CLI arguments:
|
||||
<br />
|
||||
|
||||
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.
|
||||
<br />
|
||||
|
||||
Base command:
|
||||
|
||||
```shell
|
||||
npx hardhat transferOwnershipAndSetRemoteTokenBridge --safe-address <address> --remote-network goerli --network linea_goerli
|
||||
npx hardhat transferOwnershipAndSetRemoteTokenBridge --safe-address <address> --remote-network sepolia --network linea_sepolia
|
||||
```
|
||||
|
||||
Base command with cli arguments:
|
||||
|
||||
```shell
|
||||
GOERLI_PRIVATE_KEY=<key> \
|
||||
SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat transferOwnershipAndSetRemoteTokenBridge \
|
||||
--safe-address <address> \
|
||||
--remote-token-bridge-address <address> \
|
||||
--token-bridge-address <address> \
|
||||
--token-bridge-proxy-admin-address <address> \
|
||||
--remote-network goerli \
|
||||
--network linea_goerli
|
||||
--remote-network sepolia \
|
||||
--network linea_sepolia
|
||||
```
|
||||
|
||||
(make sure to replace `<key>` with actual values)
|
||||
|
||||
@@ -2,15 +2,15 @@ import { ethers } from "hardhat";
|
||||
import { LineaRollupInit__factory, LineaRollup__factory, TimeLock__factory } from "../../typechain-types";
|
||||
|
||||
/*******************************USAGE******************************************************************
|
||||
GOERLI_PRIVATE_KEY=<your_private_key> \
|
||||
SEPOLIA_PRIVATE_KEY=<your_private_key> \
|
||||
INFURA_API_KEY=<your_infura_key> \
|
||||
npx hardhat run scripts/gnosis/encodingTX2.ts --network goerli
|
||||
npx hardhat run scripts/gnosis/encodingTX2.ts --network sepolia
|
||||
|
||||
or
|
||||
|
||||
LINEA_GOERLI_PRIVATE_KEY=<your_private_key> \
|
||||
LINEA_SEPOLIA_PRIVATE_KEY=<your_private_key> \
|
||||
INFURA_API_KEY=<your_infura_key> \
|
||||
npx hardhat run scripts/gnosis/encodingTX2.ts --network linea_goerli
|
||||
npx hardhat run scripts/gnosis/encodingTX2.ts --network linea_sepolia
|
||||
*******************************************************************************************************/
|
||||
|
||||
//--------------------------------------Config------------------------------------
|
||||
|
||||
@@ -8,12 +8,12 @@ import { getTaskCliOrEnvValue } from "../../common/helpers/environmentHelper";
|
||||
*******************************************************************************************
|
||||
|
||||
*******************************************************************************************
|
||||
GOERLI_PRIVATE_KEY=<key> \
|
||||
SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat getCurrentFinalizedBlockNumber \
|
||||
--contract-type <string> \
|
||||
--proxy-address <address> \
|
||||
--network goerli
|
||||
--network sepolia
|
||||
*******************************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
@@ -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=<key> \
|
||||
SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat grantContractRoles \
|
||||
--admin-address <address> \
|
||||
--proxy-address <address> \
|
||||
--contract-type <string> \
|
||||
--contract-roles <bytes> \
|
||||
--network goerli
|
||||
--network sepolia
|
||||
*******************************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
@@ -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=<key> \
|
||||
SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat renounceContractRoles \
|
||||
--old-admin-address <address> \
|
||||
@@ -23,7 +23,7 @@ import { getTaskCliOrEnvValue } from "../../common/helpers/environmentHelper";
|
||||
--proxy-address <address> \
|
||||
--contract-type <string> \
|
||||
--contract-roles <bytes> \
|
||||
--network goerli
|
||||
--network sepolia
|
||||
*******************************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
@@ -9,13 +9,13 @@ import { getTaskCliOrEnvValue } from "../../common/helpers/environmentHelper";
|
||||
*******************************************************************************************
|
||||
|
||||
*******************************************************************************************
|
||||
LINEA_GOERLI_PRIVATE_KEY=<key> \
|
||||
LINEA_SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat setRateLimit \
|
||||
--message-service-address <address> \
|
||||
--message-service-type <string> \
|
||||
--withdraw-limit <uint256> \
|
||||
--network linea_goerli
|
||||
--network linea_sepolia
|
||||
*******************************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
@@ -8,14 +8,14 @@ import { getTaskCliOrEnvValue } from "../../common/helpers/environmentHelper";
|
||||
*******************************************************************************************
|
||||
|
||||
*******************************************************************************************
|
||||
GOERLI_PRIVATE_KEY=<key> \
|
||||
SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat setVerifierAddress \
|
||||
--verifier-proof-type <uint256> \
|
||||
--proxy-address <address> \
|
||||
--verifier-address <address> \
|
||||
--verifier-name <string> \
|
||||
--network goerli
|
||||
--network sepolia
|
||||
*******************************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
@@ -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=<key> \
|
||||
SEPOLIA_PRIVATE_KEY=<key> \
|
||||
INFURA_API_KEY=<key> \
|
||||
npx hardhat transferOwnershipAndSetRemoteTokenBridge \
|
||||
--safe-address <address> \
|
||||
--remote-token-bridge-address <address> \
|
||||
--token-bridge-address <address> \
|
||||
--token-bridge-proxy-admin-address <address> \
|
||||
--remote-network goerli \
|
||||
--network linea_goerli
|
||||
--remote-network sepolia \
|
||||
--network linea_sepolia
|
||||
*******************************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user