Skip to content

Commit

Permalink
feat: add deploy l1 token
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielZhangReal committed Jan 23, 2024
1 parent 1d827e2 commit d28dcc4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 2 additions & 0 deletions standard-bridge-custom-token/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 12 additions & 5 deletions standard-bridge-custom-token/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion standard-bridge-custom-token/scripts/deploy_l1.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d28dcc4

Please sign in to comment.