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

data package

Overview

Package data keeps GnoRadio's state apart from its rules. It knows nothing of music: ordered collections of string keys to string values, and a vault for the coins of promo budgets (vault.gno).

Each collection belongs to a role, the prefix of its name ("catalog/…"). Only that role's writer realm writes it; anyone reads. A release (new writers for one or more roles) takes over DELAY after every new realm said Ready, all at once, and no data moves. The owner proposes and cancels releases, pauses and resumes roles, passes the role on or renounces it, and can replace the guardian 2x DELAY after saying so. The guardian can only pause and cancel a release. This realm is never replaced: keep it small.

Function

Batch

func Batch(cur realm, ops []string)

Batch applies up to 64 ops of four strings (store.Ops): "set" or "del", collection, key, value. It reads the strings and keeps nothing else of the caller's slice.

Param

Command

# 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/nym-alexiscolin000/gnoradio/data" -func "Batch" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/nym-alexiscolin000/gnoradio/data" -func "Batch" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx