staker_delegate.gno

Delegates/Undeleates GNS for governance.

Delegate

Delegate delegates GNS to a delegate.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

to

address

The address to delegate.

amount

int64

The amount of GNS.

referrer

string

The referrer address for reward tracking.

Return Values

Name
Type
Description

delegationId

int64

The ID of the delegation.

Undelegate

Undelegate undelegates xGNS from the existing delegate.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

from

address

The address to undelegate.

amount

int64

The amount of xGNS.

Return Values

Name
Type
Description

tokenId

int64

The ID of the position.

Redelegate

Redelegate redelegates xGNS from the existing delegate to another.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

delegatee

address

The address to undelegate.

newDelegatee

address

The address to delegate.

amount

int64

The amount of xGNS.

Return Values

Name
Type
Description

resultCode

int64

The redelegation result code.

CollectUndelegatedGns

CollectUndelegatedGns collects the amount of the undelegated GNS.

Parameters

Name
Type
Description

cur

realm

Pass cross as argument.

Return Values

Name
Type
Description

amount

int64

The amount of GNS token collected.

Last updated