Dagora ERC20 Wizard
Below is the technical documentation for the Dagora ERC20 wizard contract.
Last updated
Below is the technical documentation for the Dagora ERC20 wizard contract.
Last updated
a template for creating new ERC20 contracts.
Boolean to determine if the contract is paused.
default value is false, contract is not paused on deployment.
The maximum number of tokens that can be minted.
The Contract that will be used to check if the user is a member.
Name | Type | Description |
---|---|---|
OnlyOwner function to mint tokens.
OnlyOwner function to burn tokens.
OnlyOwner function to toggle the paused state of the contract.
check before every token transfer if the contract is paused.
_This function overrides the beforeTokenTransfer function from the ERC20 contract, and will fail if the contract is paused.
Function to get the type of the contract.
Function to get the version of the contract.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_name
string
The name of the token.
_symbol
string
The symbol of the token.
_newOwner
address
The address that will be the owner of the contract.
initialSupply
uint256
The initial supply of the token to be minted to the _newOwner.
_maxSupply
uint256
The maximum supply of the token.
to
address
The address that will receive the tokens.
amount
uint256
The amount of tokens to be minted.
from
address
The address that will have the tokens burned.
amount
uint256
The amount of tokens to be burned.
from
address
The address that will send the tokens.
to
address
The address that will receive the tokens.
amount
uint256
The amount of tokens to be transferred.
[0]
string
string The type of the contract.
[0]
string
string The version of the contract.