getter.gno
GetCurrentDepositId
GetCurrentDepositId returns the current deposit counter value.
Return Values
depositId
int64
current deposit counter value; it is not incremented by this read.
GetDepositAmount
GetDepositAmount returns the deposit amount of a deposit by its ID.
Parameters
depositId
string
unique identifier of the deposit to inspect.
Return Values
amount
int64
GNS principal deposited, in base units.
err
error
non-nil when depositId does not identify a stored deposit.
GetDepositCount
GetDepositCount returns the total number of deposits.
Return Values
count
int
number of deposit records currently stored.
GetDepositCreatedAt
GetDepositCreatedAt returns the created time of a deposit by its ID.
Parameters
depositId
string
unique identifier of the deposit to inspect.
Return Values
createdAt
int64
deposit creation Unix timestamp in seconds.
err
error
non-nil when depositId does not identify a stored deposit.
GetDepositCreatedHeight
GetDepositCreatedHeight returns the created height of a deposit by its ID.
Parameters
depositId
string
unique identifier of the deposit to inspect.
Return Values
height
int64
creation block height of the deposit.
err
error
non-nil when depositId does not identify a stored deposit.
GetDepositEndTime
GetDepositEndTime returns the end time of a deposit by its ID.
Parameters
depositId
string
unique identifier of the deposit to inspect.
Return Values
endTime
int64
deposit lock/end Unix timestamp in seconds.
err
error
non-nil when depositId does not identify a stored deposit.
GetDepositProjectID
GetDepositProjectID returns the project ID of a deposit by its ID.
Parameters
depositId
string
unique identifier of the deposit to inspect.
Return Values
projectId
string
project identifier associated with the deposit.
err
error
non-nil when depositId does not identify a stored deposit.
GetDepositProjectTierID
GetDepositProjectTierID returns the project tier ID of a deposit by its ID.
Parameters
depositId
string
unique identifier of the deposit to inspect.
Return Values
projectTierId
string
composite project-tier identifier derived from the deposit's project and tier.
err
error
non-nil when depositId does not identify a stored deposit.
GetDepositTier
GetDepositTier returns the tier of a deposit by its ID.
Parameters
depositId
string
unique identifier of the deposit to inspect.
Return Values
tier
int64
tier duration key selected by the deposit.
err
error
non-nil when depositId does not identify a stored deposit.
GetDepositWithdrawnHeight
GetDepositWithdrawnHeight returns the withdrawn height of a deposit by its ID.
Parameters
depositId
string
unique identifier of the deposit to inspect.
Return Values
height
int64
withdrawal block height; zero when the deposit has not been withdrawn.
err
error
non-nil when depositId does not identify a stored deposit.
GetDepositWithdrawnTime
GetDepositWithdrawnTime returns the withdrawn time of a deposit by its ID.
Parameters
depositId
string
unique identifier of the deposit to inspect.
Return Values
withdrawnAt
int64
withdrawal Unix timestamp in seconds; zero when the deposit has not been withdrawn.
err
error
non-nil when depositId does not identify a stored deposit.
GetProjectActiveStatus
GetProjectActiveStatus returns whether a project is currently active.
Parameters
projectId
string
unique identifier of the project to inspect.
Return Values
active
bool
true when the project is active at the current Unix time; false when it is inactive.
err
error
non-nil when projectId does not identify a stored project.
GetProjectCreatedAt
GetProjectCreatedAt returns the created time of a project by its ID.
Parameters
projectId
string
unique identifier of the launchpad project to inspect.
Return Values
createdAt
int64
Unix timestamp in seconds at which the project was created.
err
error
non-nil when projectId does not identify a stored project.
GetProjectCreatedHeight
GetProjectCreatedHeight returns the created height of a project by its ID.
Parameters
projectId
string
unique identifier of the launchpad project to inspect.
Return Values
height
int64
block height at which the project was created.
err
error
non-nil when projectId does not identify a stored project.
GetProjectDepositAmount
GetProjectDepositAmount returns the deposit amount of a project by its ID.
Parameters
projectId
string
unique identifier of the launchpad project to inspect.
Return Values
amount
int64
project-token amount initially allocated to the project, in token base units.
err
error
non-nil when projectId does not identify a stored project.
GetProjectName
GetProjectName returns the name of a project by its ID.
Parameters
projectId
string
unique identifier of the launchpad project to inspect.
Return Values
name
string
stored project name.
err
error
non-nil when projectId does not identify a stored project.
GetProjectRecipient
GetProjectRecipient returns the recipient address of a project by its ID.
Parameters
projectId
string
unique identifier of the launchpad project to inspect.
Return Values
recipient
address
address configured to receive the project's launchpad proceeds.
err
error
non-nil when projectId does not identify a stored project.
GetProjectTierDistributeAmountPerSecondX128
GetProjectTierDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a project tier.
Parameters
projectId
string
unique identifier of the project containing the tier.
tier
int64
tier duration key, such as 30, 90, or 180.
Return Values
amountPerSecondX128
*u256.Uint
project-token distribution rate per second in Q128 fixed-point units; nil when no value is available.
err
error
non-nil when the project or tier cannot be found.
GetProjectTierEndTime
GetProjectTierEndTime returns the end time of a project tier.
Parameters
projectId
string
unique identifier of the project containing the tier.
tier
int64
tier duration key, such as 30, 90, or 180.
Return Values
endTime
int64
tier end timestamp in Unix seconds.
err
error
non-nil when the project or tier cannot be found.
GetProjectTierRewardAccumulatedDistributeAmount
GetProjectTierRewardAccumulatedDistributeAmount returns a legacy reward-manager field. The v1 reward paths do not maintain it, so normal reads return zero unless it was explicitly set.
Parameters
projectTierId
string
composite project-tier identifier whose manager is requested.
Return Values
amount
int64
legacy accumulated distribution amount in token base units; v1 accounting normally leaves it at zero unless explicitly set.
err
error
non-nil when projectTierId does not identify a stored reward manager.
GetProjectTierRewardAccumulatedRewardPerDepositX128
GetProjectTierRewardAccumulatedRewardPerDepositX128 returns the accumulated reward per deposit (Q128) of a reward manager.
Parameters
projectTierId
string
composite project-tier identifier whose manager is requested.
Return Values
accumulatedRewardPerDepositX128
*u256.Uint
accumulated reward index per deposited GNS unit in Q128 fixed-point units; nil when no value is available.
err
error
non-nil when projectTierId does not identify a stored reward manager.
GetProjectTierRewardAccumulatedTime
GetProjectTierRewardAccumulatedTime returns the accumulated time of a reward manager.
Parameters
projectTierId
string
composite project-tier identifier whose manager is requested.
Return Values
time
int64
last reward-accumulation timestamp in Unix seconds, or zero before accumulation.
err
error
non-nil when projectTierId does not identify a stored reward manager.
GetProjectTierRewardClaimableDuration
GetProjectTierRewardClaimableDuration returns the reward claimable duration of a reward manager.
Parameters
projectTierId
string
composite project-tier identifier whose manager is requested.
Return Values
duration
int64
reward claimable window in seconds.
err
error
non-nil when projectTierId does not identify a stored reward manager.
GetProjectTierRewardDistributeAmountPerSecondX128
GetProjectTierRewardDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a reward manager.
Parameters
projectTierId
string
composite project-tier identifier whose manager is requested.
Return Values
amountPerSecondX128
*u256.Uint
reward distribution rate per second in Q128 fixed-point token units; nil when no value is available.
err
error
non-nil when projectTierId does not identify a stored reward manager.
GetProjectTierRewardDistributeEndTime
GetProjectTierRewardDistributeEndTime returns the distribute end time of a reward manager.
Parameters
projectTierId
string
composite project-tier identifier whose manager is requested.
Return Values
endTime
int64
reward distribution end timestamp in Unix seconds.
err
error
non-nil when projectTierId does not identify a stored reward manager.
GetProjectTierRewardDistributeStartTime
GetProjectTierRewardDistributeStartTime returns the distribute start time of a reward manager.
Parameters
projectTierId
string
composite project-tier identifier whose manager is requested.
Return Values
startTime
int64
reward distribution start timestamp in Unix seconds.
err
error
non-nil when projectTierId does not identify a stored reward manager.
GetProjectTierRewardManagerCount
GetProjectTierRewardManagerCount returns the total number of reward managers.
Return Values
count
int
number of project-tier reward managers currently stored.
GetProjectTierRewardTotalClaimedAmount
GetProjectTierRewardTotalClaimedAmount returns the total claimed amount of a reward manager.
Parameters
projectTierId
string
composite project-tier identifier whose manager is requested.
Return Values
amount
int64
total reward amount claimed from the manager, in token base units.
err
error
non-nil when projectTierId does not identify a stored reward manager.
GetProjectTierRewardTotalDistributeAmount
GetProjectTierRewardTotalDistributeAmount returns the total distribute amount of a reward manager.
Parameters
projectTierId
string
composite project-tier identifier whose manager is requested.
Return Values
amount
int64
total reward allocation managed for the project tier, in token base units.
err
error
non-nil when projectTierId does not identify a stored reward manager.
GetProjectTierRewards
GetProjectTierRewards returns a read-only view of a project tier's reward states, keyed by deposit ID. Reading an entry yields a clone, so the view cannot mutate realm state. nil is returned when the project tier does not exist.
Parameters
projectId
string
unique identifier of the project containing the tier.
tier
int64
tier duration key, such as 30, 90, or 180.
Return Values
rewards
*rotree.ReadOnlyTree
read-only tree of reward states keyed by deposit ID; nil when the tier's reward manager is unavailable.
GetProjectTierStartTime
GetProjectTierStartTime returns the start time of a project tier.
Parameters
projectId
string
unique identifier of the project containing the tier.
tier
int64
tier duration key, such as 30, 90, or 180.
Return Values
startTime
int64
tier start timestamp in Unix seconds.
err
error
non-nil when the project or tier cannot be found.
GetProjectTierTotalCollectedAmount
GetProjectTierTotalCollectedAmount returns the total collected amount of a project tier.
Parameters
projectId
string
unique identifier of the project containing the tier.
tier
int64
tier duration key, such as 30, 90, or 180.
Return Values
amount
int64
cumulative project-token reward collected from the tier, in token base units.
err
error
non-nil when the project or tier cannot be found.
GetProjectTierTotalDepositAmount
GetProjectTierTotalDepositAmount returns the total deposit amount of a project tier.
Parameters
projectId
string
unique identifier of the project containing the tier.
tier
int64
tier duration key, such as 30, 90, or 180.
Return Values
amount
int64
cumulative GNS principal deposited into the tier, in base units.
err
error
non-nil when the project or tier cannot be found.
GetProjectTierTotalDepositCount
GetProjectTierTotalDepositCount returns the total deposit count of a project tier.
Parameters
projectId
string
unique identifier of the project containing the tier.
tier
int64
tier duration key, such as 30, 90, or 180.
Return Values
count
int64
cumulative number of deposits created in the tier.
err
error
non-nil when the project or tier cannot be found.
GetProjectTierTotalDistributeAmount
GetProjectTierTotalDistributeAmount returns the total distribute amount of a project tier.
Parameters
projectId
string
unique identifier of the project containing the tier.
tier
int64
tier duration key, such as 30, 90, or 180.
Return Values
amount
int64
total project-token allocation for the tier, in token base units.
err
error
non-nil when the project or tier cannot be found.
GetProjectTierTotalWithdrawAmount
GetProjectTierTotalWithdrawAmount returns the total withdraw amount of a project tier.
Parameters
projectId
string
unique identifier of the project containing the tier.
tier
int64
tier duration key, such as 30, 90, or 180.
Return Values
amount
int64
cumulative GNS principal withdrawn from the tier, in base units.
err
error
non-nil when the project or tier cannot be found.
GetProjectTierTotalWithdrawCount
GetProjectTierTotalWithdrawCount returns the total withdraw count of a project tier.
Parameters
projectId
string
unique identifier of the project containing the tier.
tier
int64
tier duration key, such as 30, 90, or 180.
Return Values
count
int64
cumulative number of withdrawals completed in the tier.
err
error
non-nil when the project or tier cannot be found.
GetProjectTiersRatios
GetProjectTiersRatios returns the tiers ratios map of a project by its ID.
Parameters
projectId
string
unique identifier of the launchpad project to inspect.
Return Values
tiersRatios
map[int64]int64
cloned map from tier duration to its allocation ratio.
err
error
non-nil when projectId does not identify a stored project.
GetProjectTokenPath
GetProjectTokenPath returns the token path of a project by its ID.
Parameters
projectId
string
unique identifier of the launchpad project to inspect.
Return Values
tokenPath
string
reward-token contract path configured for the project.
err
error
non-nil when projectId does not identify a stored project.
GetProjects
GetProjects returns a read-only view of every project, keyed by project ID. Callers paginate it themselves through IterateByOffset. Reading an entry yields a clone, so the view cannot mutate realm state.
Return Values
projects
*rotree.ReadOnlyTree
read-only tree keyed by project ID; reading an entry yields a clone.
GetTotalGNSStakedAmount
GetTotalGNSStakedAmount returns the total amount of GNS currently staked across all launchpad deposits.
Return Values
amount
int64
total GNS principal currently staked across launchpad deposits, in base units.
Last updated