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

launchpad_project_deposits.gno

Types

LaunchpadProjectDeposits

LaunchpadProjectDeposits manages deposit amounts for launchpad projects. It tracks the total staked amount for each project identified by owner address.

source

Methods

GetDeposit

GetDeposit looks up a project's deposit by owner address.

Parameters

Name
Type
Description

ownerAddress

string

owner address string used as the deposit key.

Return Values

Name
Type
Description

int64

int64

stored deposit amount in the smallest token unit, or zero when absent.

bool

bool

true when an int64 deposit is stored for the owner.

source

GetDeposits

GetDeposits returns the owner-to-deposit tree managed by this instance.

Return Values

Name
Type
Description

*bptree.BPTree

*bptree.BPTree

tree keyed by owner address string and storing int64 amounts.

source

RemoveDeposit

RemoveDeposit removes an owner's deposit entry.

Parameters

Name
Type
Description

ownerAddress

string

owner address string whose deposit entry should be removed.

Return Values

Name
Type
Description

bool

bool

true when an entry was removed; false when no entry existed.

source

SetDeposit

SetDeposit stores or replaces an owner's deposit amount.

Parameters

Name
Type
Description

ownerAddress

string

owner address string used as the deposit key.

amount

int64

deposit amount in the smallest token unit.

source

SetDeposits

SetDeposits replaces the owner-to-deposit tree.

Parameters

Name
Type
Description

deposits

*bptree.BPTree

tree keyed by owner address string and storing int64 amounts.

source

Constructors

  • func NewLaunchpadProjectDeposits() *LaunchpadProjectDeposits (source)

Last updated