For the complete documentation index, see llms.txt. This page is also available as Markdown.

getter.gno

GetCurrentDepositId

GetCurrentDepositId returns the current deposit counter value.

Return Values

Name
Type
Description

depositId

int64

current deposit counter value; it is not incremented by this read.

source

GetDepositAmount

GetDepositAmount returns the deposit amount of a deposit by its ID.

Parameters

Name
Type
Description

depositId

string

unique identifier of the deposit to inspect.

Return Values

Name
Type
Description

amount

int64

GNS principal deposited, in base units.

err

error

non-nil when depositId does not identify a stored deposit.

source

GetDepositCount

GetDepositCount returns the total number of deposits.

Return Values

Name
Type
Description

count

int

number of deposit records currently stored.

source

GetDepositCreatedAt

GetDepositCreatedAt returns the created time of a deposit by its ID.

Parameters

Name
Type
Description

depositId

string

unique identifier of the deposit to inspect.

Return Values

Name
Type
Description

createdAt

int64

deposit creation Unix timestamp in seconds.

err

error

non-nil when depositId does not identify a stored deposit.

source

GetDepositCreatedHeight

GetDepositCreatedHeight returns the created height of a deposit by its ID.

Parameters

Name
Type
Description

depositId

string

unique identifier of the deposit to inspect.

Return Values

Name
Type
Description

height

int64

creation block height of the deposit.

err

error

non-nil when depositId does not identify a stored deposit.

source

GetDepositEndTime

GetDepositEndTime returns the end time of a deposit by its ID.

Parameters

Name
Type
Description

depositId

string

unique identifier of the deposit to inspect.

Return Values

Name
Type
Description

endTime

int64

deposit lock/end Unix timestamp in seconds.

err

error

non-nil when depositId does not identify a stored deposit.

source

GetDepositProjectID

GetDepositProjectID returns the project ID of a deposit by its ID.

Parameters

Name
Type
Description

depositId

string

unique identifier of the deposit to inspect.

Return Values

Name
Type
Description

projectId

string

project identifier associated with the deposit.

err

error

non-nil when depositId does not identify a stored deposit.

source

GetDepositProjectTierID

GetDepositProjectTierID returns the project tier ID of a deposit by its ID.

Parameters

Name
Type
Description

depositId

string

unique identifier of the deposit to inspect.

Return Values

Name
Type
Description

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.

source

GetDepositTier

GetDepositTier returns the tier of a deposit by its ID.

Parameters

Name
Type
Description

depositId

string

unique identifier of the deposit to inspect.

Return Values

Name
Type
Description

tier

int64

tier duration key selected by the deposit.

err

error

non-nil when depositId does not identify a stored deposit.

source

GetDepositWithdrawnHeight

GetDepositWithdrawnHeight returns the withdrawn height of a deposit by its ID.

Parameters

Name
Type
Description

depositId

string

unique identifier of the deposit to inspect.

Return Values

Name
Type
Description

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.

source

GetDepositWithdrawnTime

GetDepositWithdrawnTime returns the withdrawn time of a deposit by its ID.

Parameters

Name
Type
Description

depositId

string

unique identifier of the deposit to inspect.

Return Values

Name
Type
Description

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.

source

GetProjectActiveStatus

GetProjectActiveStatus returns whether a project is currently active.

Parameters

Name
Type
Description

projectId

string

unique identifier of the project to inspect.

Return Values

Name
Type
Description

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.

source

GetProjectCreatedAt

GetProjectCreatedAt returns the created time of a project by its ID.

Parameters

Name
Type
Description

projectId

string

unique identifier of the launchpad project to inspect.

Return Values

Name
Type
Description

createdAt

int64

Unix timestamp in seconds at which the project was created.

err

error

non-nil when projectId does not identify a stored project.

source

GetProjectCreatedHeight

GetProjectCreatedHeight returns the created height of a project by its ID.

Parameters

Name
Type
Description

projectId

string

unique identifier of the launchpad project to inspect.

Return Values

Name
Type
Description

height

int64

block height at which the project was created.

err

error

non-nil when projectId does not identify a stored project.

source

GetProjectDepositAmount

GetProjectDepositAmount returns the deposit amount of a project by its ID.

Parameters

Name
Type
Description

projectId

string

unique identifier of the launchpad project to inspect.

Return Values

Name
Type
Description

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.

source

GetProjectName

GetProjectName returns the name of a project by its ID.

Parameters

Name
Type
Description

projectId

string

unique identifier of the launchpad project to inspect.

Return Values

Name
Type
Description

name

string

stored project name.

err

error

non-nil when projectId does not identify a stored project.

source

GetProjectRecipient

GetProjectRecipient returns the recipient address of a project by its ID.

Parameters

Name
Type
Description

projectId

string

unique identifier of the launchpad project to inspect.

Return Values

Name
Type
Description

recipient

address

address configured to receive the project's launchpad proceeds.

err

error

non-nil when projectId does not identify a stored project.

source

GetProjectTierDistributeAmountPerSecondX128

GetProjectTierDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a project tier.

Parameters

Name
Type
Description

projectId

string

unique identifier of the project containing the tier.

tier

int64

tier duration key, such as 30, 90, or 180.

Return Values

Name
Type
Description

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.

source

GetProjectTierEndTime

GetProjectTierEndTime returns the end time of a project tier.

Parameters

Name
Type
Description

projectId

string

unique identifier of the project containing the tier.

tier

int64

tier duration key, such as 30, 90, or 180.

Return Values

Name
Type
Description

endTime

int64

tier end timestamp in Unix seconds.

err

error

non-nil when the project or tier cannot be found.

source

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

Name
Type
Description

projectTierId

string

composite project-tier identifier whose manager is requested.

Return Values

Name
Type
Description

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.

source

GetProjectTierRewardAccumulatedRewardPerDepositX128

GetProjectTierRewardAccumulatedRewardPerDepositX128 returns the accumulated reward per deposit (Q128) of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

composite project-tier identifier whose manager is requested.

Return Values

Name
Type
Description

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.

source

GetProjectTierRewardAccumulatedTime

GetProjectTierRewardAccumulatedTime returns the accumulated time of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

composite project-tier identifier whose manager is requested.

Return Values

Name
Type
Description

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.

source

GetProjectTierRewardClaimableDuration

GetProjectTierRewardClaimableDuration returns the reward claimable duration of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

composite project-tier identifier whose manager is requested.

Return Values

Name
Type
Description

duration

int64

reward claimable window in seconds.

err

error

non-nil when projectTierId does not identify a stored reward manager.

source

GetProjectTierRewardDistributeAmountPerSecondX128

GetProjectTierRewardDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

composite project-tier identifier whose manager is requested.

Return Values

Name
Type
Description

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.

source

GetProjectTierRewardDistributeEndTime

GetProjectTierRewardDistributeEndTime returns the distribute end time of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

composite project-tier identifier whose manager is requested.

Return Values

Name
Type
Description

endTime

int64

reward distribution end timestamp in Unix seconds.

err

error

non-nil when projectTierId does not identify a stored reward manager.

source

GetProjectTierRewardDistributeStartTime

GetProjectTierRewardDistributeStartTime returns the distribute start time of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

composite project-tier identifier whose manager is requested.

Return Values

Name
Type
Description

startTime

int64

reward distribution start timestamp in Unix seconds.

err

error

non-nil when projectTierId does not identify a stored reward manager.

source

GetProjectTierRewardManagerCount

GetProjectTierRewardManagerCount returns the total number of reward managers.

Return Values

Name
Type
Description

count

int

number of project-tier reward managers currently stored.

source

GetProjectTierRewardTotalClaimedAmount

GetProjectTierRewardTotalClaimedAmount returns the total claimed amount of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

composite project-tier identifier whose manager is requested.

Return Values

Name
Type
Description

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.

source

GetProjectTierRewardTotalDistributeAmount

GetProjectTierRewardTotalDistributeAmount returns the total distribute amount of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

composite project-tier identifier whose manager is requested.

Return Values

Name
Type
Description

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.

source

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

Name
Type
Description

projectId

string

unique identifier of the project containing the tier.

tier

int64

tier duration key, such as 30, 90, or 180.

Return Values

Name
Type
Description

rewards

*rotree.ReadOnlyTree

read-only tree of reward states keyed by deposit ID; nil when the tier's reward manager is unavailable.

source

GetProjectTierStartTime

GetProjectTierStartTime returns the start time of a project tier.

Parameters

Name
Type
Description

projectId

string

unique identifier of the project containing the tier.

tier

int64

tier duration key, such as 30, 90, or 180.

Return Values

Name
Type
Description

startTime

int64

tier start timestamp in Unix seconds.

err

error

non-nil when the project or tier cannot be found.

source

GetProjectTierTotalCollectedAmount

GetProjectTierTotalCollectedAmount returns the total collected amount of a project tier.

Parameters

Name
Type
Description

projectId

string

unique identifier of the project containing the tier.

tier

int64

tier duration key, such as 30, 90, or 180.

Return Values

Name
Type
Description

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.

source

GetProjectTierTotalDepositAmount

GetProjectTierTotalDepositAmount returns the total deposit amount of a project tier.

Parameters

Name
Type
Description

projectId

string

unique identifier of the project containing the tier.

tier

int64

tier duration key, such as 30, 90, or 180.

Return Values

Name
Type
Description

amount

int64

cumulative GNS principal deposited into the tier, in base units.

err

error

non-nil when the project or tier cannot be found.

source

GetProjectTierTotalDepositCount

GetProjectTierTotalDepositCount returns the total deposit count of a project tier.

Parameters

Name
Type
Description

projectId

string

unique identifier of the project containing the tier.

tier

int64

tier duration key, such as 30, 90, or 180.

Return Values

Name
Type
Description

count

int64

cumulative number of deposits created in the tier.

err

error

non-nil when the project or tier cannot be found.

source

GetProjectTierTotalDistributeAmount

GetProjectTierTotalDistributeAmount returns the total distribute amount of a project tier.

Parameters

Name
Type
Description

projectId

string

unique identifier of the project containing the tier.

tier

int64

tier duration key, such as 30, 90, or 180.

Return Values

Name
Type
Description

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.

source

GetProjectTierTotalWithdrawAmount

GetProjectTierTotalWithdrawAmount returns the total withdraw amount of a project tier.

Parameters

Name
Type
Description

projectId

string

unique identifier of the project containing the tier.

tier

int64

tier duration key, such as 30, 90, or 180.

Return Values

Name
Type
Description

amount

int64

cumulative GNS principal withdrawn from the tier, in base units.

err

error

non-nil when the project or tier cannot be found.

source

GetProjectTierTotalWithdrawCount

GetProjectTierTotalWithdrawCount returns the total withdraw count of a project tier.

Parameters

Name
Type
Description

projectId

string

unique identifier of the project containing the tier.

tier

int64

tier duration key, such as 30, 90, or 180.

Return Values

Name
Type
Description

count

int64

cumulative number of withdrawals completed in the tier.

err

error

non-nil when the project or tier cannot be found.

source

GetProjectTiersRatios

GetProjectTiersRatios returns the tiers ratios map of a project by its ID.

Parameters

Name
Type
Description

projectId

string

unique identifier of the launchpad project to inspect.

Return Values

Name
Type
Description

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.

source

GetProjectTokenPath

GetProjectTokenPath returns the token path of a project by its ID.

Parameters

Name
Type
Description

projectId

string

unique identifier of the launchpad project to inspect.

Return Values

Name
Type
Description

tokenPath

string

reward-token contract path configured for the project.

err

error

non-nil when projectId does not identify a stored project.

source

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

Name
Type
Description

projects

*rotree.ReadOnlyTree

read-only tree keyed by project ID; reading an entry yields a clone.

source

GetTotalGNSStakedAmount

GetTotalGNSStakedAmount returns the total amount of GNS currently staked across all launchpad deposits.

Return Values

Name
Type
Description

amount

int64

total GNS principal currently staked across launchpad deposits, in base units.

source

Last updated