How to deploy an ERC-20 Token that hooks into the Forte Rules Engine
.env
Filesample.env
to get you started. Copy that to a new file named .env
and fill in the values.
Environment variable details
PRIV_KEY
variable above.ETHERSCAN_API_KEY - This is optional, but is easy to obtain and enables some easier website based interaction with your token contract. You can create a free API key by logging into https://basescan.org/ and navigating to the API Keys section.QuickstartERC20.sol
is available in the /src
directory. You can open it up to take a closer look and even apply customizations to meet your needs. Once you’re ready to deploy the contract you can do so with the following command (run from the same terminal window you sourced the .env file within).
TOKEN_ADMIN
you previously set in the environment file. Test out calling this function and minting yourself some test tokens.