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.
Methods
GetDeposit
GetDeposit looks up a project's deposit by owner address.
Parameters
ownerAddress
string
owner address string used as the deposit key.
Return Values
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.
GetDeposits
GetDeposits returns the owner-to-deposit tree managed by this instance.
Return Values
*bptree.BPTree
*bptree.BPTree
tree keyed by owner address string and storing int64 amounts.
RemoveDeposit
RemoveDeposit removes an owner's deposit entry.
Parameters
ownerAddress
string
owner address string whose deposit entry should be removed.
Return Values
bool
bool
true when an entry was removed; false when no entry existed.
SetDeposit
SetDeposit stores or replaces an owner's deposit amount.
Parameters
ownerAddress
string
owner address string used as the deposit key.
amount
int64
deposit amount in the smallest token unit.
SetDeposits
SetDeposits replaces the owner-to-deposit tree.
Parameters
deposits
*bptree.BPTree
tree keyed by owner address string and storing int64 amounts.
Constructors
func NewLaunchpadProjectDeposits() *LaunchpadProjectDeposits(source)
Last updated