Skip to content

Commit

Permalink
Merge pull request #21 from mantlenetworkio/feature/bridge-erc-721
Browse files Browse the repository at this point in the history
feature: add bridge erc721 tutorial for mantle sdk
  • Loading branch information
rlverside authored Dec 25, 2024
2 parents a654baa + d29f7e0 commit 32697b8
Show file tree
Hide file tree
Showing 9 changed files with 2,806 additions and 16 deletions.
32 changes: 17 additions & 15 deletions .env.local.tmp
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# local ENV
EXEC_ENV=local
# testnet ENV
EXEC_ENV=mainnet
# rpc url
L1_RPC=http://127.0.0.1:8545
L2_RPC=http://127.0.0.1:9545

L1_RPC=https://eth-mainnet.g.alchemy.com/v2/
# Need to be changed, fill with your own RPC url which can be applied in Alchemy
L2_RPC=https://rpc.mantle.xyz
# chain id
L1_CHAINID=900
L2_CHAINID=901

L1_CHAINID=1
L2_CHAINID=5000
# bridge address
L1_BRIDGE=0x6900000000000000000000000000000000000003
L1_BRIDGE=0x21F308067241B2028503c07bd7cB3751FFab0Fb2
L2_BRIDGE=0x4200000000000000000000000000000000000010

# erc721 l2 factory address
L2_OPTIMISM_MINT_FACTORY=0x4200000000000000000000000000000000000017
# CrossDomainMessenger address
L1_CDM=0x6900000000000000000000000000000000000002
L1_CDM=0x37dAC5312e31Adb8BB0802Fc72Ca84DA5cDfcb4c
L2_CDM=0x4200000000000000000000000000000000000007

L1_CROSS_DOMAIN_MESSENGER_ADDRESS=0x37dAC5312e31Adb8BB0802Fc72Ca84DA5cDfcb4c
L2OutputOracle=0x4121dc8e48Bc6196795eb4867772A5e259fecE07
OptimismPortal=0xB3db4bd5bc225930eD674494F9A4F6a11B8EFBc8
# token address
L1_MNT=0x6900000000000000000000000000000000000020
L1_MNT=0x65e37B558F64E2Be5768DB46DF22F93d85741A9E
L2_MNT=0x0000000000000000000000000000000000000000
L2_ETH=0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111
L2_LEGACY_MNT=0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000

# local test key
PRIV_KEY="" # Fill in your private key
# test key
PRIV_KEY="" # Fill in your private key
4 changes: 3 additions & 1 deletion .env.testnet.tmp
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# testnet ENV
EXEC_ENV=testnet
# rpc url
L1_RPC=https://eth-sepolia.g.alchemy.com/v2/ # Need to be changed, fill with your own RPC url which can be applied in Alchemy
L1_RPC=https://eth-sepolia.g.alchemy.com/v2/ # Need to be changed, fill with your own RPC url which can be applied in Alchemy
L2_RPC=https://rpc.sepolia.mantle.xyz
# chain id
L1_CHAINID=11155111
L2_CHAINID=5003
# bridge address
L1_BRIDGE=0x21F308067241B2028503c07bd7cB3751FFab0Fb2
L2_BRIDGE=0x4200000000000000000000000000000000000010
# erc721 l2 factory address
L2_OPTIMISM_MINT_FACTORY=0x4200000000000000000000000000000000000017
# CrossDomainMessenger address
L1_CDM=0x37dAC5312e31Adb8BB0802Fc72Ca84DA5cDfcb4c
L2_CDM=0x4200000000000000000000000000000000000007
Expand Down
Loading

0 comments on commit 32697b8

Please sign in to comment.