2023-05-19 23:39:50 +00:00
|
|
|
import { ethers } from "hardhat";
|
|
|
|
|
|
|
|
async function main() {
|
|
|
|
const tokenName = "Kava-wrapped ATOM";
|
|
|
|
const tokenSymbol = "kATOM";
|
|
|
|
const tokenDecimals = 6;
|
|
|
|
|
2023-05-23 19:32:27 +00:00
|
|
|
const ERC20KavaWrappedCosmosCoin = await ethers.getContractFactory(
|
|
|
|
"ERC20KavaWrappedCosmosCoin"
|
2023-05-19 23:39:50 +00:00
|
|
|
);
|
2023-05-23 19:32:27 +00:00
|
|
|
const token = await ERC20KavaWrappedCosmosCoin.deploy(
|
2023-05-19 23:39:50 +00:00
|
|
|
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;
|
|
|
|
});
|