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

counter/v0 package

Overview

Package counter implements "Counter Club": a single shared integer counter with a rolling history of the last 20 mutations. Anyone may Inc, Dec, or Reset the value; every change records the caller, the delta applied, the resulting value, and the block height it happened at.

Function

Total

func Total() int

Total returns the total number of mutations ever applied.

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/moul/x/daily/counter/v0.Total()"

Result