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

delegation_withdraw.gno

Types

DelegationWithdraw

DelegationWithdraw represents a pending withdrawal from a delegation. This struct tracks undelegated amounts that are subject to lockup periods and manages the collection process once the lockup period expires.

source

Methods

Clone

Clone creates a deep copy of the delegation withdraw.

Return Values

Name
Type
Description

DelegationWithdraw

DelegationWithdraw

independent copy of the withdrawal state.

source

CollectableTime

CollectableTime returns the timestamp when collection becomes available.

Return Values

Name
Type
Description

int64

int64

collectable time

source

CollectedAmount

CollectedAmount returns the amount that has already been collected.

Return Values

Name
Type
Description

int64

int64

collected amount

source

CollectedAt

CollectedAt returns the timestamp when collection occurred.

Return Values

Name
Type
Description

int64

int64

collection timestamp

source

DelegationID

DelegationID returns the unique identifier of the associated delegation.

Return Values

Name
Type
Description

int64

int64

delegation ID

source

IsCollected

IsCollected returns whether the withdrawal has been fully collected.

Return Values

Name
Type
Description

bool

bool

true if fully collected, false otherwise

source

SetCollected

SetCollected sets the collected status.

Parameters

Name
Type
Description

collected

bool

new collected status

source

SetCollectedAmount

SetCollectedAmount sets the collected amount.

Parameters

Name
Type
Description

amount

int64

collected amount

source

SetCollectedAt

SetCollectedAt sets the collection timestamp.

Parameters

Name
Type
Description

collectedAt

int64

collection timestamp

source

UnDelegateAmount

UnDelegateAmount returns the total amount that was undelegated.

Return Values

Name
Type
Description

int64

int64

undelegated amount

source

UnDelegatedAt

UnDelegatedAt returns the timestamp when the undelegation occurred.

Return Values

Name
Type
Description

int64

int64

undelegation timestamp

source

UnDelegatedHeight

UnDelegatedHeight returns the height when the undelegation occurred.

Return Values

Name
Type
Description

int64

int64

undelegation height

source

Constructors

  • func GetDelegationWithdraws(delegationID int64, offset int, count int) ([]DelegationWithdraw, error) (source)

  • func NewDelegationWithdraw(delegationID int64, unDelegateAmount int64, createdHeight int64, createdAt int64, unDelegationLockupPeriod int64) DelegationWithdraw (source)

  • func NewDelegationWithdrawWithoutLockup(delegationID int64, unDelegateAmount int64, createdHeight int64, createdAt int64) DelegationWithdraw (source)

Last updated