IAccountant
The interface defines the functions and their signatures for the IAccountant
contract.
Functions
isSubscribed
isSubscribed
Checks if a given UID is subscribed.
Parameters
uid_
uint32
The UID to check
Returns
true
if the UID is subscribed, otherwisefalse
.
decimals
decimals
Gets the number of decimals of the token.
Returns
The number of decimals.
balanceOf
balanceOf
Gets the balance of the token for a given owner and ID.
Parameters
owner
address
The owner's address
id
uint256
The ID of the token
Returns
The balance of the token for the owner and ID.
subtractMP
subtractMP
Subtracts membership points from an account for a specific era.
Parameters
account
address
The account's address
nthEra
uint256
The nth era
amount
uint256
The amount to subtract
pointOf
pointOf
Gets the membership points of an account for a specific era.
Parameters
account
address
The account's address
nthEra
uint256
The nth era
Returns
The membership points of the account for the specific era.
Last updated