IRegenerationCredit
IRegenerationCredit
Interface for token interaction with the RegenerationCredit contract.
balanceOf
function balanceOf(address tokenOwner) external view returns (uint256)
allowance
function allowance(address owner, address delegate) external view returns (uint256)
transfer
function transfer(address to, uint256 amount) external returns (bool)
transferFrom
function transferFrom(address owner, address to, uint256 numTokens) external returns (bool)
burnFrom
function burnFrom(address account, uint256 amount) external
decreaseLocked
function decreaseLocked(uint256 numTokens) external
totalSupply
function totalSupply() external view returns (uint256)
Returns the total supply of tokens in existence.
Standard ERC-20 function.
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | uint256 | The total number of tokens. |
totalCertified_
function totalCertified_() external view returns (uint256)
Returns the total amount of credits that have been certified.
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | uint256 | The total certified amount. |
totalLocked_
function totalLocked_() external view returns (uint256)
Returns the total amount of tokens currently locked in the protocol.
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | uint256 | The total locked amount. |