Get
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
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.
Get reads the shared counter. Same number every version sees.
gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/upgrade/store/logic/v0.Get()"
Inc applies this version's rule to the shared counter.
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/moul/x/upgrade/store/logic/v0" -func "Inc" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "gnoland-1" -remote "https://rpc.gno.land" ADDRESSgnokey query -remote "https://rpc.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/moul/x/upgrade/store/logic/v0" -func "Inc" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "gnoland-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land" call.tx
gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/upgrade/store/logic/v0.Render()"