JBToken
An ERC-20 token that can be used by a project in the JBTokenStore
.
Code
https://github.com/jbx-protocol/juice-contracts-v2/blob/main/contracts/JBToken.sol
Interfaces
Name | Description |
---|---|
IJBToken | Allows this contract to be used by projects in the JBTokenStore. |
Inheritance
Contract | Description |
---|---|
ERC20Permit | General token standard for fungible accounting. |
Ownable | Includes convenience functionality for specifying an address that owns the contract, with modifiers that only allow access by the owner. |
Constructor
/**
@param _name The name of the token.
@param _symbol The symbol that the token should be represented by.
*/
constructor(string memory _name, string memory _symbol)
ERC20(_name, _symbol) ERC20Permit(_name) {}
_name
is the name of the token._symbol
is the symbol that the token should be represented by.
Read
Function | Definition |
---|---|
decimals | Returns
|
totalSupply | Params
Returns
|
balanceOf | Params
Returns
|
Write
Function | Definition |
---|---|
mint | Traits Params
|
burn | Traits Params
|
approve | Params
|
transfer | Params
|
transferFrom | Params
|
transferOwnership | Traits Params
|