0g-chain/contracts/scripts/deploy.ts

28 lines
629 B
TypeScript
Raw Normal View History

import { ethers } from "hardhat";
async function main() {
2024-04-24 11:41:25 +00:00
const tokenName = "0g-chain-wrapped ATOM";
const tokenSymbol = "kATOM";
const tokenDecimals = 6;
2024-04-24 11:41:25 +00:00
const ERC200gChainWrappedCosmosCoin = await ethers.getContractFactory(
"ERC200gChainWrappedCosmosCoin"
);
2024-04-24 11:41:25 +00:00
const token = await ERC200gChainWrappedCosmosCoin.deploy(
tokenName,
tokenSymbol,
tokenDecimals
);
await token.deployed();
console.log(
`Token "${tokenName}" (${tokenSymbol}) with ${tokenDecimals} decimals is deployed to ${token.address}!`
);
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});