mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-28 01:05:19 +00:00
28 lines
616 B
TypeScript
28 lines
616 B
TypeScript
|
import { ethers } from "hardhat";
|
||
|
|
||
|
async function main() {
|
||
|
const tokenName = "Kava-wrapped ATOM";
|
||
|
const tokenSymbol = "kATOM";
|
||
|
const tokenDecimals = 6;
|
||
|
|
||
|
const ERC20KavaWrappedNativeCoin = await ethers.getContractFactory(
|
||
|
"ERC20KavaWrappedNativeCoin"
|
||
|
);
|
||
|
const token = await ERC20KavaWrappedNativeCoin.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;
|
||
|
});
|