Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Store native token in json #18

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Cargo.lock
!/etc/env/ext-node.toml
!/etc/env/ext-node-docker.toml
/etc/tokens/localhost.json
/etc/tokens/native_erc20.json
/etc/zksolc-bin/*
/etc/zkvyper-bin/*
/etc/solc-bin/*
Expand Down
3 changes: 2 additions & 1 deletion infrastructure/zk/src/run/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ export async function deployERC20(
const WETH = getTokens(destinationFile).find((token) => token.symbol === 'WETH')!;
env.modify('CONTRACTS_L1_WETH_TOKEN_ADDR', `CONTRACTS_L1_WETH_TOKEN_ADDR=${WETH.address}`);
} else if (command == 'new') {
let destinationFile = 'native_erc20';
await utils.spawn(
`yarn --silent --cwd contracts/ethereum deploy-erc20 add --token-name ${name} --symbol ${symbol} --decimals ${decimals}`
`yarn --silent --cwd contracts/ethereum deploy-erc20 add --token-name ${name} --symbol ${symbol} --decimals ${decimals} > ./etc/tokens/${destinationFile}.json`
);
}
}
Expand Down
Loading