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

pixelsandbox package

Overview

Package pixelsandbox is a deliberately generic/throwaway practice deployment of the GNO Pixels design -- not the final intended realm name, so redeploying while the design is still changing (which it will be, more than once, on the way to something we're satisfied with) never collides with whatever the real, permanent realm ends up being called.

Design itself matches this project's local pixelgame3 iteration: expandable bounds instead of a fixed size, per-pixel provenance (who placed it, at what block), and an owner-gated import hook for a possible future migration to a fresh, permanently-named deployment.

Function

SetPixel

func SetPixel(cur realm, x, y, colorIndex int64)

Params

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