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 package

Function

NewProtocolFeeRewardState

func NewProtocolFeeRewardState() *ProtocolFeeRewardState

NewProtocolFeeRewardState creates an empty state for a staker with no stake.

Returns:

  • *ProtocolFeeRewardState: initialized reward state with empty event and token trees

Command

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

Result