getter.gno

GetCurrentDepositId

func GetCurrentDepositId() int64

GetCurrentDepositId returns the current deposit counter value.

Return Values

Name
Type
Description

depositId

int64

current deposit counter


GetDepositCount

GetDepositCount returns the total number of deposits.

Return Values

Name
Type
Description

count

int

total number of deposits


GetDepositAmount

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

Parameters

Name
Type
Description

depositId

string

ID of the deposit

Return Values

Name
Type
Description

amount

int64

deposit amount

err

error

error if not found


GetDepositCreatedAt

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

Parameters

Name
Type
Description

depositId

string

ID of the deposit

Return Values

Name
Type
Description

timestamp

int64

creation timestamp

err

error

error if not found


GetDepositCreatedHeight

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

Parameters

Name
Type
Description

depositId

string

ID of the deposit

Return Values

Name
Type
Description

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

Name
Type
Description

depositId

string

ID of the deposit

Return Values

Name
Type
Description

timestamp

int64

end timestamp

err

error

error if not found


GetDepositProjectID

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

Parameters

Name
Type
Description

depositId

string

ID of the deposit

Return Values

Name
Type
Description

projectId

string

project ID

err

error

error if not found


GetDepositProjectTierID

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

Parameters

Name
Type
Description

depositId

string

ID of the deposit

Return Values

Name
Type
Description

projectTierId

string

project tier ID

err

error

error if not found


GetDepositTier

GetDepositTier returns the tier of a deposit by its ID.

Parameters

Name
Type
Description

depositId

string

ID of the deposit

Return Values

Name
Type
Description

tier

int64

tier level

err

error

error if not found


GetDepositWithdrawnHeight

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

Parameters

Name
Type
Description

depositId

string

ID of the deposit

Return Values

Name
Type
Description

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

Name
Type
Description

depositId

string

ID of the deposit

Return Values

Name
Type
Description

timestamp

int64

withdrawal timestamp

err

error

error if not found


GetProjectCount

GetProjectCount returns the total number of projects.

Return Values

Name
Type
Description

count

int

total number of projects


GetProjectIDs

GetProjectIDs returns a paginated list of project IDs.

Parameters

Name
Type
Description

offset

int

starting index

count

int

number of IDs to return

Return Values

Name
Type
Description

projectIds

[]string

list of project IDs


GetProjectActiveStatus

GetProjectActiveStatus returns whether a project is currently active.

Parameters

Name
Type
Description

projectId

string

ID of the project

Return Values

Name
Type
Description

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

Name
Type
Description

projectId

string

ID of the project

Return Values

Name
Type
Description

timestamp

int64

creation timestamp

err

error

error if not found


GetProjectCreatedHeight

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

Parameters

Name
Type
Description

projectId

string

ID of the project

Return Values

Name
Type
Description

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

Name
Type
Description

projectId

string

ID of the project

Return Values

Name
Type
Description

amount

int64

deposit amount

err

error

error if not found


GetProjectName

GetProjectName returns the name of a project by its ID.

Parameters

Name
Type
Description

projectId

string

ID of the project

Return Values

Name
Type
Description

name

string

project name

err

error

error if not found


GetProjectRecipient

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

Parameters

Name
Type
Description

projectId

string

ID of the project

Return Values

Name
Type
Description

recipient

address

recipient address

err

error

error if not found


GetProjectTokenPath

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

Parameters

Name
Type
Description

projectId

string

ID of the project

Return Values

Name
Type
Description

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

Name
Type
Description

projectId

string

ID of the project

Return Values

Name
Type
Description

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

Name
Type
Description

projectId

string

ID of the project

tier

int64

tier level

Return Values

Name
Type
Description

count

int

number of deposits


GetProjectTierDepositIDs

GetProjectTierDepositIDs returns a paginated list of deposit IDs for a project tier.

Parameters

Name
Type
Description

projectId

string

ID of the project

tier

int64

tier level

offset

int

starting index

count

int

number of IDs to return

Return Values

Name
Type
Description

depositIds

[]string

list of deposit IDs


GetProjectTierStartTime

GetProjectTierStartTime returns the start time of a project tier.

Parameters

Name
Type
Description

projectId

string

ID of the project

tier

int64

tier level

Return Values

Name
Type
Description

timestamp

int64

start timestamp

err

error

error if not found


GetProjectTierEndTime

GetProjectTierEndTime returns the end time of a project tier.

Parameters

Name
Type
Description

projectId

string

ID of the project

tier

int64

tier level

Return Values

Name
Type
Description

timestamp

int64

end timestamp

err

error

error if not found


GetProjectTierDistributeAmountPerSecondX128

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

Parameters

Name
Type
Description

projectId

string

ID of the project

tier

int64

tier level

Return Values

Name
Type
Description

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

Name
Type
Description

projectId

string

ID of the project

tier

int64

tier level

Return Values

Name
Type
Description

amount

int64

total collected amount

err

error

error if not found


GetProjectTierTotalDepositAmount

GetProjectTierTotalDepositAmount returns the total deposit amount of a project tier.

Parameters

Name
Type
Description

projectId

string

ID of the project

tier

int64

tier level

Return Values

Name
Type
Description

amount

int64

total deposit amount

err

error

error if not found


GetProjectTierTotalDepositCount

GetProjectTierTotalDepositCount returns the total deposit count of a project tier.

Parameters

Name
Type
Description

projectId

string

ID of the project

tier

int64

tier level

Return Values

Name
Type
Description

count

int64

total deposit count

err

error

error if not found


GetProjectTierTotalDistributeAmount

GetProjectTierTotalDistributeAmount returns the total distribute amount of a project tier.

Parameters

Name
Type
Description

projectId

string

ID of the project

tier

int64

tier level

Return Values

Name
Type
Description

amount

int64

total distribute amount

err

error

error if not found


GetProjectTierTotalWithdrawAmount

GetProjectTierTotalWithdrawAmount returns the total withdraw amount of a project tier.

Parameters

Name
Type
Description

projectId

string

ID of the project

tier

int64

tier level

Return Values

Name
Type
Description

amount

int64

total withdraw amount

err

error

error if not found


GetProjectTierTotalWithdrawCount

GetProjectTierTotalWithdrawCount returns the total withdraw count of a project tier.

Parameters

Name
Type
Description

projectId

string

ID of the project

tier

int64

tier level

Return Values

Name
Type
Description

count

int64

total withdraw count

err

error

error if not found


GetProjectTierRewardManagerCount

GetProjectTierRewardManagerCount returns the total number of reward managers.

Return Values

Name
Type
Description

count

int

total number of reward managers


GetProjectTierRewardAccumulatedDistributeAmount

GetProjectTierRewardAccumulatedDistributeAmount returns the accumulated distribute amount of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

ID of the project tier

Return Values

Name
Type
Description

amount

int64

accumulated distribute amount

err

error

error if not found


GetProjectTierRewardAccumulatedHeight

GetProjectTierRewardAccumulatedHeight returns the accumulated height of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

ID of the project tier

Return Values

Name
Type
Description

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

Name
Type
Description

projectTierId

string

ID of the project tier

Return Values

Name
Type
Description

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

Name
Type
Description

projectTierId

string

ID of the project tier

Return Values

Name
Type
Description

timestamp

int64

accumulated timestamp

err

error

error if not found


GetProjectTierRewardClaimableDuration

GetProjectTierRewardClaimableDuration returns the reward claimable duration of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

ID of the project tier

Return Values

Name
Type
Description

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

Name
Type
Description

projectTierId

string

ID of the project tier

Return Values

Name
Type
Description

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

Name
Type
Description

projectTierId

string

ID of the project tier

Return Values

Name
Type
Description

timestamp

int64

distribute end timestamp

err

error

error if not found


GetProjectTierRewardDistributeStartTime

GetProjectTierRewardDistributeStartTime returns the distribute start time of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

ID of the project tier

Return Values

Name
Type
Description

timestamp

int64

distribute start timestamp

err

error

error if not found


GetProjectTierRewardTotalClaimedAmount

GetProjectTierRewardTotalClaimedAmount returns the total claimed amount of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

ID of the project tier

Return Values

Name
Type
Description

amount

int64

total claimed amount

err

error

error if not found


GetProjectTierRewardTotalDistributeAmount

GetProjectTierRewardTotalDistributeAmount returns the total distribute amount of a reward manager.

Parameters

Name
Type
Description

projectTierId

string

ID of the project tier

Return Values

Name
Type
Description

amount

int64

total distribute amount

err

error

error if not found

Last updated