0g-chain/contracts/scripts/deploy.ts
Robert Pirtle d4cbc759f8
update new names, NativeCoin -> CosmosCoin (#1596)
* rename contract NativeCoin -> CosmosCoin

* rename all entities NativeCoin -> CosmosCoin

* update changelog

* update protonet genesis.json
2023-05-23 12:32:27 -07:00

28 lines
616 B
TypeScript

import { ethers } from "hardhat";
async function main() {
const tokenName = "Kava-wrapped ATOM";
const tokenSymbol = "kATOM";
const tokenDecimals = 6;
const ERC20KavaWrappedCosmosCoin = await ethers.getContractFactory(
"ERC20KavaWrappedCosmosCoin"
);
const token = await ERC20KavaWrappedCosmosCoin.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;
});