Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

staker/v1 package

Overview

Package v1 manages GNS delegation and xGNS accounting. It maintains timestamped delegation history, distributes GNS emission and protocol-fee rewards, and enforces a configurable undelegation lockup (7 days by default; xGNS is burned when undelegated GNS is collected).

Function

NewProtocolFeeRewardStateResolver

func NewProtocolFeeRewardStateResolver(protocolFeeRewardState *staker.ProtocolFeeRewardState) *ProtocolFeeRewardStateResolver

NewProtocolFeeRewardStateResolver wraps one staker's protocol fee reward state with settlement operations.

Parameters:

  • protocolFeeRewardState: staker reward state to resolve and mutate.

Returns:

  • *ProtocolFeeRewardStateResolver: resolver backed by protocolFeeRewardState.

Param

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/gov/staker/v1.NewProtocolFeeRewardStateResolver()"

Result