ERC20SignatureMint
The SignatureMintERC20
smart contract is an extension meant for distributing ERC20 tokens.
The 'signature minting' mechanism in the SignatureMintERC20
extension uses EIP-712, and is a way for a contract admin to authorize an external party's request to mint tokens on the admin's contract. At a high level, this means you can authorize some external party to mint tokens on your contract and specify what exactly will be minted by that external party.
View on GitHub
Usage
The SignatureMintERC20
extension is an abstract contract, and expects you to implement the following functions by yourself:
This is an example smart contract demonstrating how to inherit from this extension and override the functions to add (optional) custom functionality.