Deploying HRC20
This tutorial will take you though creating your own HRC20 token. HRC20 is nothing but an ERC20 token deployed on Harmony.
Last updated
This tutorial will take you though creating your own HRC20 token. HRC20 is nothing but an ERC20 token deployed on Harmony.
Last updated
Let us first create a simple HRC20 token with name "Gold" and symbol "GLD" with default 18 decimals.
1. Launch Remix and create a new file with name GLDToken.sol and copy paste the code below.
2. Compile the GLDToken.sol
3. Deploy the GLDToken.sol
4. Interacting with the deployed GLDToken.
5. Changing decimals from default 18 to e.g., 16 can be done by adding the following function to GLDToken.sol file and repeating steps 2-4.
6. Deploying a Preset HRC20 contract: A preset HRC20 contract allow for token minting, stop all token transfers (pause), and allow holders to burn their tokens. More info here. Copy and paste the code below to your GLDToken.sol and repeat the steps 2-4.