EngenCredits
Last updated
Last updated
Deployment Address:
Mainnet: 0xD1295F0d8789c3E0931A04F91049dB33549E9C8F
Interface: IEngenCredits.sol
This contracts holds Engen Credits minting and setup mechanisms
These are the key state variables used in the contract.
Name | Type |
---|---|
Using the following call method, you can check if transfers are enabled:
Each wallet can earn credits based on their activity. These credits can be managed using the setCredits
method.
For example, to set the earned credits for multiple wallets:
Privileged roles can call the following functions.
1. mint
This function mints Engen tokens to a specified address. Only the contract owner can call this function.
Function Interface:
2. setTransfersEnabled
This function enables or disables the transfer of Engen tokens. Only the contract owner can call this function.
Function Interface:
3. setBurnsEnabled
This function enables or disables the burning of Engen tokens. Only the contract owner can call this function.
Function Interface:
4. setCredits
This function sets the earned credits for multiple wallets. Only the contract owner can call this function.
Function Interface:
Anyone can call the following functions without a transaction to retrieve information from the contract.
1. transfersEnabled
This function checks if transfers are enabled.
Function Interface:
2. burnsEnabled
This function checks if burning is enabled.
Function Interface:
3. earnedCredits
This function returns the earned credits of a specific wallet.
Function Interface:
4. totalCredits
This function returns the total credits earned by all wallets.
Function Interface:
5. getPastVotes
This function returns the past votes of a user at a specific timepoint.
Function Interface:
6. getPastTotalSupply
This function returns the total supply of votes at a specific timepoint.
Function Interface:
7. clock
This function returns the current timepoint.
Function Interface:
8. CLOCK_MODE
This function returns the clock mode.
Function Interface:
Parameter | Type | Explanation |
---|---|---|
Parameter | Type | Explanation |
---|---|---|
Parameter | Type | Explanation |
---|---|---|
Parameter | Type | Explanation |
---|---|---|
Parameter | Type | Explanation |
---|---|---|
Parameter | Type | Explanation |
---|---|---|
Parameter | Type | Explanation |
---|---|---|
Parameter | Type | Explanation |
---|---|---|
Parameter | Type | Explanation |
---|---|---|
Parameter | Type | Explanation |
---|---|---|
Parameter | Type | Explanation |
---|---|---|
Parameter | Type | Explanation |
---|---|---|
transfersEnabled
bool
burnsEnabled
bool
earnedCredits
mapping
totalCredits
uint256
to
address
The address to mint tokens to
amount
uint256
The amount of tokens to mint
_transfersEnabled
bool
True if transfers should be enabled
_burnsEnabled
bool
True if burning should be enabled
_wallets
address[] calldata
The wallet addresses of the users
_points
uint256[] calldata
The credits earned by each user
Returns true if transfers are enabled
Returns true if burning is enabled
account
address
The address of the wallet
Returns the total credits
account
address
The address of the user
timepoint
uint256
The timepoint to get the votes at
timepoint
uint256
The timepoint to get the votes at
Returns the current timepoint
Returns the clock mode