Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

fishduel package

Overview

Package fishduel is a two-person trial. Swim stays off chain. Settle pays one covered stake from three sealed samples. Each player binds an ed25519 mark key at Register. The realm cannot check a loose secp256k1 wallet signature. There is no machine fish and no FISH draw. shoal/fish stays the live collection. Mint is 1 GNOT and the stake floor is 1 GNOT. A sample note is bout:seq:height:id:x:z:time:secret:sig The mark signs the sha256 of bout,seq,height,id,x,z,time,secret joined by commas. secret is 32 lowercase hex chars. sig is 128 lowercase hex chars. The public key is 64.

Function

Init

func Init(cur realm, lp, crew, ash address)
Ask AI Claude ChatGPT

Init records three GNOT sinks. They must be distinct. Call once, from an EOA, with no coins. The mint fee is 60/20/10 and the last tenth joins team. Kill cheer also joins team.

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/g10ragdr3cjqkael8rslpw4y6rlelhev4h0fswcx/fishduel" -func "Init" -args $'' -args $'' -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/g10ragdr3cjqkael8rslpw4y6rlelhev4h0fswcx/fishduel" -func "Init" -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 "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx