staker_delegate.gno
Delegates/Undeleates GNS for governance.
Delegate
Delegate delegates GNS to a delegate.
Parameters
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
delegationId
int64
The ID of the delegation.
Undelegate
Undelegate undelegates xGNS from the existing delegate.
Parameters
cur
realm
Pass cross as argument.
from
address
The address to undelegate.
amount
int64
The amount of xGNS.
Return Values
tokenId
int64
The ID of the position.
Redelegate
Redelegate redelegates xGNS from the existing delegate to another.
Parameters
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
resultCode
int64
The redelegation result code.
CollectUndelegatedGns
CollectUndelegatedGns collects the amount of the undelegated GNS.
Parameters
cur
realm
Pass cross as argument.
Return Values
amount
int64
The amount of GNS token collected.
Last updated