getter.gno
GetCurrentDepositId
func GetCurrentDepositId() int64
GetCurrentDepositId returns the current deposit counter value.
Return Values
depositId
int64
current deposit counter
GetDepositCount
GetDepositCount returns the total number of deposits.
Return Values
count
int
total number of deposits
GetDepositAmount
GetDepositAmount returns the deposit amount of a deposit by its ID.
Parameters
depositId
string
ID of the deposit
Return Values
amount
int64
deposit amount
err
error
error if not found
GetDepositCreatedAt
GetDepositCreatedAt returns the created time of a deposit by its ID.
Parameters
depositId
string
ID of the deposit
Return Values
timestamp
int64
creation timestamp
err
error
error if not found
GetDepositCreatedHeight
GetDepositCreatedHeight returns the created height of a deposit by its ID.
Parameters
depositId
string
ID of the deposit
Return Values
height
int64
block height at creation
err
error
error if not found
GetDepositEndTime
GetDepositEndTime returns the end time of a deposit by its ID.
Parameters
depositId
string
ID of the deposit
Return Values
timestamp
int64
end timestamp
err
error
error if not found
GetDepositProjectID
GetDepositProjectID returns the project ID of a deposit by its ID.
Parameters
depositId
string
ID of the deposit
Return Values
projectId
string
project ID
err
error
error if not found
GetDepositProjectTierID
GetDepositProjectTierID returns the project tier ID of a deposit by its ID.
Parameters
depositId
string
ID of the deposit
Return Values
projectTierId
string
project tier ID
err
error
error if not found
GetDepositTier
GetDepositTier returns the tier of a deposit by its ID.
Parameters
depositId
string
ID of the deposit
Return Values
tier
int64
tier level
err
error
error if not found
GetDepositWithdrawnHeight
GetDepositWithdrawnHeight returns the withdrawn height of a deposit by its ID.
Parameters
depositId
string
ID of the deposit
Return Values
height
int64
block height at withdrawal
err
error
error if not found
GetDepositWithdrawnTime
GetDepositWithdrawnTime returns the withdrawn time of a deposit by its ID.
Parameters
depositId
string
ID of the deposit
Return Values
timestamp
int64
withdrawal timestamp
err
error
error if not found
GetProjectCount
GetProjectCount returns the total number of projects.
Return Values
count
int
total number of projects
GetProjectIDs
GetProjectIDs returns a paginated list of project IDs.
Parameters
offset
int
starting index
count
int
number of IDs to return
Return Values
projectIds
[]string
list of project IDs
GetProjectActiveStatus
GetProjectActiveStatus returns whether a project is currently active.
Parameters
projectId
string
ID of the project
Return Values
active
bool
true if project is active
err
error
error if not found
GetProjectCreatedAt
GetProjectCreatedAt returns the created time of a project by its ID.
Parameters
projectId
string
ID of the project
Return Values
timestamp
int64
creation timestamp
err
error
error if not found
GetProjectCreatedHeight
GetProjectCreatedHeight returns the created height of a project by its ID.
Parameters
projectId
string
ID of the project
Return Values
height
int64
block height at creation
err
error
error if not found
GetProjectDepositAmount
GetProjectDepositAmount returns the deposit amount of a project by its ID.
Parameters
projectId
string
ID of the project
Return Values
amount
int64
deposit amount
err
error
error if not found
GetProjectName
GetProjectName returns the name of a project by its ID.
Parameters
projectId
string
ID of the project
Return Values
name
string
project name
err
error
error if not found
GetProjectRecipient
GetProjectRecipient returns the recipient address of a project by its ID.
Parameters
projectId
string
ID of the project
Return Values
recipient
address
recipient address
err
error
error if not found
GetProjectTokenPath
GetProjectTokenPath returns the token path of a project by its ID.
Parameters
projectId
string
ID of the project
Return Values
tokenPath
string
project token path
err
error
error if not found
GetProjectTiersRatios
GetProjectTiersRatios returns the tiers ratios map of a project by its ID.
Parameters
projectId
string
ID of the project
Return Values
ratios
map[int64]int64
map of tier to ratio
err
error
error if not found
GetProjectTierDepositCount
GetProjectTierDepositCount returns the total number of deposits for a project tier.
Parameters
projectId
string
ID of the project
tier
int64
tier level
Return Values
count
int
number of deposits
GetProjectTierDepositIDs
GetProjectTierDepositIDs returns a paginated list of deposit IDs for a project tier.
Parameters
projectId
string
ID of the project
tier
int64
tier level
offset
int
starting index
count
int
number of IDs to return
Return Values
depositIds
[]string
list of deposit IDs
GetProjectTierStartTime
GetProjectTierStartTime returns the start time of a project tier.
Parameters
projectId
string
ID of the project
tier
int64
tier level
Return Values
timestamp
int64
start timestamp
err
error
error if not found
GetProjectTierEndTime
GetProjectTierEndTime returns the end time of a project tier.
Parameters
projectId
string
ID of the project
tier
int64
tier level
Return Values
timestamp
int64
end timestamp
err
error
error if not found
GetProjectTierDistributeAmountPerSecondX128
GetProjectTierDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a project tier.
Parameters
projectId
string
ID of the project
tier
int64
tier level
Return Values
amount
*u256.Uint
distribute amount per second in Q128 format
err
error
error if not found
GetProjectTierTotalCollectedAmount
GetProjectTierTotalCollectedAmount returns the total collected amount of a project tier.
Parameters
projectId
string
ID of the project
tier
int64
tier level
Return Values
amount
int64
total collected amount
err
error
error if not found
GetProjectTierTotalDepositAmount
GetProjectTierTotalDepositAmount returns the total deposit amount of a project tier.
Parameters
projectId
string
ID of the project
tier
int64
tier level
Return Values
amount
int64
total deposit amount
err
error
error if not found
GetProjectTierTotalDepositCount
GetProjectTierTotalDepositCount returns the total deposit count of a project tier.
Parameters
projectId
string
ID of the project
tier
int64
tier level
Return Values
count
int64
total deposit count
err
error
error if not found
GetProjectTierTotalDistributeAmount
GetProjectTierTotalDistributeAmount returns the total distribute amount of a project tier.
Parameters
projectId
string
ID of the project
tier
int64
tier level
Return Values
amount
int64
total distribute amount
err
error
error if not found
GetProjectTierTotalWithdrawAmount
GetProjectTierTotalWithdrawAmount returns the total withdraw amount of a project tier.
Parameters
projectId
string
ID of the project
tier
int64
tier level
Return Values
amount
int64
total withdraw amount
err
error
error if not found
GetProjectTierTotalWithdrawCount
GetProjectTierTotalWithdrawCount returns the total withdraw count of a project tier.
Parameters
projectId
string
ID of the project
tier
int64
tier level
Return Values
count
int64
total withdraw count
err
error
error if not found
GetProjectTierRewardManagerCount
GetProjectTierRewardManagerCount returns the total number of reward managers.
Return Values
count
int
total number of reward managers
GetProjectTierRewardAccumulatedDistributeAmount
GetProjectTierRewardAccumulatedDistributeAmount returns the accumulated distribute amount of a reward manager.
Parameters
projectTierId
string
ID of the project tier
Return Values
amount
int64
accumulated distribute amount
err
error
error if not found
GetProjectTierRewardAccumulatedHeight
GetProjectTierRewardAccumulatedHeight returns the accumulated height of a reward manager.
Parameters
projectTierId
string
ID of the project tier
Return Values
height
int64
accumulated block height
err
error
error if not found
GetProjectTierRewardAccumulatedRewardPerDepositX128
GetProjectTierRewardAccumulatedRewardPerDepositX128 returns the accumulated reward per deposit (Q128) of a reward manager.
Parameters
projectTierId
string
ID of the project tier
Return Values
amount
*u256.Uint
accumulated reward per deposit in Q128 format
err
error
error if not found
GetProjectTierRewardAccumulatedTime
GetProjectTierRewardAccumulatedTime returns the accumulated time of a reward manager.
Parameters
projectTierId
string
ID of the project tier
Return Values
timestamp
int64
accumulated timestamp
err
error
error if not found
GetProjectTierRewardClaimableDuration
GetProjectTierRewardClaimableDuration returns the reward claimable duration of a reward manager.
Parameters
projectTierId
string
ID of the project tier
Return Values
duration
int64
claimable duration in seconds
err
error
error if not found
GetProjectTierRewardDistributeAmountPerSecondX128
GetProjectTierRewardDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a reward manager.
Parameters
projectTierId
string
ID of the project tier
Return Values
amount
*u256.Uint
distribute amount per second in Q128 format
err
error
error if not found
GetProjectTierRewardDistributeEndTime
GetProjectTierRewardDistributeEndTime returns the distribute end time of a reward manager.
Parameters
projectTierId
string
ID of the project tier
Return Values
timestamp
int64
distribute end timestamp
err
error
error if not found
GetProjectTierRewardDistributeStartTime
GetProjectTierRewardDistributeStartTime returns the distribute start time of a reward manager.
Parameters
projectTierId
string
ID of the project tier
Return Values
timestamp
int64
distribute start timestamp
err
error
error if not found
GetProjectTierRewardTotalClaimedAmount
GetProjectTierRewardTotalClaimedAmount returns the total claimed amount of a reward manager.
Parameters
projectTierId
string
ID of the project tier
Return Values
amount
int64
total claimed amount
err
error
error if not found
GetProjectTierRewardTotalDistributeAmount
GetProjectTierRewardTotalDistributeAmount returns the total distribute amount of a reward manager.
Parameters
projectTierId
string
ID of the project tier
Return Values
amount
int64
total distribute amount
err
error
error if not found
Last updated