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/v0 package

Overview

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

It owns no state at all. Everything it writes lands in the root data realm, which is what makes replacing this realm cheap: there is nothing here to migrate.

Function

Get

func Get() int

Get reads the shared counter. Same number every version sees.

Command

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

Result