diff --git a/.env.mainnet b/.env.mainnet index 6f164bd7..0713efb7 100644 --- a/.env.mainnet +++ b/.env.mainnet @@ -43,6 +43,9 @@ DETERMINISTIC_ADDRESS_SALT="lisk_l2_token_deterministic_salt" # L1 standard bridge address (Mainnet, Goerli, Sepolia or custom) L1_STANDARD_BRIDGE_ADDR=0x2658723Bf70c7667De6B25F99fcce13A16D25d08 +# L1 USDT token contract address to be bridged to L2 +REMOTE_TOKEN_ADDR_USDT=0xdAC17F958D2ee523a2206206994597C13D831ec7 + # L1 RPC URL, e.g. Infura, Alchemy, or your own node L1_RPC_URL=https://eth.drpc.org diff --git a/.env.testnet b/.env.testnet index 78d3087f..1d0b5520 100644 --- a/.env.testnet +++ b/.env.testnet @@ -43,6 +43,9 @@ DETERMINISTIC_ADDRESS_SALT="lisk_l2_token_salt_test_network" # L1 standard bridge address (Mainnet, Goerli, Sepolia or custom) L1_STANDARD_BRIDGE_ADDR=0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5 +# L1 USDT token contract address to be bridged to L2 +REMOTE_TOKEN_ADDR_USDT=0x7169d38820dfd117c3fa1f22a697dba58d90ba06 + # L1 RPC URL, e.g. Infura, Alchemy, or your own node L1_RPC_URL=https://sepolia.drpc.org diff --git a/script/6_deployUSDTContract.sh b/script/6_deployUSDTContract.sh new file mode 100644 index 00000000..04b02b11 --- /dev/null +++ b/script/6_deployUSDTContract.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +echo "Instructing the shell to exit immediately if any command returns a non-zero exit status..." +set -e +echo "Done." + +echo "Navigating to the root directory of the project..." +cd ../ +echo "Done." + +echo "Setting environment variables..." +source .env +echo "Done." + +echo "Deploying OptimismMintableERC20 USDT token smart contract..." +# Use flag --nonce to specify suitable nonce in case of nonce mismatch +cast send --rpc-url $L2_RPC_URL "0x4200000000000000000000000000000000000012" "createOptimismMintableERC20WithDecimals(address,string,string,uint8)" $REMOTE_TOKEN_ADDR_USDT "Tether USD" "USDT" 6 -i \ No newline at end of file