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

logic/v1 package

Overview

Package logic is version 1 of the logic realm of the "state realm + swappable logic" upgrade pattern (pattern C of the exploration; see ../../README.md).

Same shape as v0, different rule. The counter it reads and writes is the same one v0 was using: the upgrade changed the code without touching the data.

Function

Get

func Get() int

Get reads the shared counter, including everything v0 wrote.

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/upgrade/store/logic/v1.Get()"

Result