Custom ERC20 Token Contract
The following assumes the use of node@>=10
.
npm install
npx hardhat compile
npx hardhat test
npx hardhat run scripts/deploy.js --network NETWORK
NETWORK
can be mainnet
, rinkeby
or ropsten
, any network you want to deploy to.
Here are custom methods of our Token
contract.
Register backup address for a token holder.
Transfer tokens from from
to its registered backup address using his signature.
Any user with the signature can call this method.
Transfer amount
of tokens to to
address.
If the to
is blacklisted, the tokens are then transferred to previously used backup address.