diff --git a/standard-bridge-custom-token/README.md b/standard-bridge-custom-token/README.md index 030f77f..23b7c37 100644 --- a/standard-bridge-custom-token/README.md +++ b/standard-bridge-custom-token/README.md @@ -10,6 +10,8 @@ cd ./standard-bridge-custom-token # step 3: npx hardhat run scripts/deploy.js --network manta-mainnet +# or +npx hardhat run scripts/deploy_l1.js --network eth-mainnet # step 4: # configure the l2TokenAddress address in the console into config diff --git a/standard-bridge-custom-token/config.js b/standard-bridge-custom-token/config.js index 70e2414..2216771 100644 --- a/standard-bridge-custom-token/config.js +++ b/standard-bridge-custom-token/config.js @@ -9,14 +9,21 @@ const TOKENS = { l2TokenAddress: "0xA2B0b1DF7FbD966560A302E9E2cFB9d0f115FfD6", isTestnet: true, }, - TestTT: { - name: "TestToken", - symbol: "TT", + TestManta: { + name: "Manta Token", + symbol: "MANTA", decimals: 18, - l1TokenAddress: "0x8D7090DdDa057f48FdBbb2ABCeA22D1113AB566a", - l2TokenAddress: "0x8D7090DdDa057f48FdBbb2ABCeA22D1113AB566a", + l1TokenAddress: "0x9758962A46ffbE3Ae02Dc5a850b0e5A3A985EAdD", + l2TokenAddress: "0x7c75A32F38D493802254e9C7356621e20668c762", isTestnet: true, }, + MANTA: { + name: "Manta", + symbol: "MANTA", + decimals: 18, + l1TokenAddress: "", + l2TokenAddress: "0x95CeF13441Be50d20cA4558CC0a27B601aC544E5", + }, MATIC: { name: "Matic Token", symbol: "MATIC", diff --git a/standard-bridge-custom-token/scripts/deploy_l1.js b/standard-bridge-custom-token/scripts/deploy_l1.js index 2b73f1b..cf4f77d 100644 --- a/standard-bridge-custom-token/scripts/deploy_l1.js +++ b/standard-bridge-custom-token/scripts/deploy_l1.js @@ -7,8 +7,10 @@ async function main(token) { const l2CustomERC20Factory = await ethers.getContractFactory( "MantaMintableERC20" ); + // l1StandardBridge (goerli): 0x4638aC6b5727a8b9586D3eba5B44Be4b74ED41Fc + // l1StandardBridge (ethereum mainnet): 0x3B95bC951EE0f553ba487327278cAc44f29715E5 const args = [ - "0x4638aC6b5727a8b9586D3eba5B44Be4b74ED41Fc", + "0x3B95bC951EE0f553ba487327278cAc44f29715E5", token.l2TokenAddress, token.name, token.symbol,