Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.

vs package

Overview

Package vs is Mimir's VS (duel) market, settled by an AI oracle: the gno.land port of contracts/MimirV3Erc20.sol. Stakes are mUSD.

A creator opens a claim with a stake on their position. Challengers take the other side, each once, up to the claim's maxChallengers (at most 100):

  • pool odds: challengers share the creator's stake pro rata, and together may stake at most MaxPoolMultiple times the creator's stake;
  • fixed odds: each challenger is paid challengerPayoutBps of their stake (2x by default, at most 10x), and the creator's unreserved stake must cover every challenger's profit when they join.

After the deadline the oracle proposes CREATOR, CHALLENGERS, DRAW or UNRESOLVABLE with a confidence and the hash of its evidence. A participant may dispute within the dispute window by posting DisputeBond; the arbiter rules. An undisputed proposal is finalized by anyone. Settlement pays every participant in the same transaction. Draws, unresolvable questions and claims nobody challenged before the cutoff refund every stake.

Fees: an entry fee on every stake that opens or joins a claim (fees.EntryBps, 0.5% by default), kept on refunds. No fee on winnings, except copy trades: ReferrerFeeBps of the profit to the referrer and CopyFeeBps to the platform.

Private claims: only wallets the creator invites may challenge. Market data and transactions stay public.

Differences from the EVM contract come from the transport, as in the pool realm: mUSD with an approve in the same transaction (no permit variants), payouts sent directly (mUSD cannot refuse or re-enter), block-time seconds. SetInvited takes a comma-separated address list.

Functions

AcceptOwnership

func AcceptOwnership(cur realm)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "AcceptOwnership" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "AcceptOwnership" -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
  

AccruedFees

func AccruedFees(a address) int64
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.AccruedFees()"

Result

CancelClaim

func CancelClaim(cur realm, claimID int64)
Ask AI Claude ChatGPT

CancelClaim refunds the creator of a claim nobody has challenged yet.

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CancelClaim" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CancelClaim" -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
  

CancelFeeRecipient

func CancelFeeRecipient(cur realm)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CancelFeeRecipient" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CancelFeeRecipient" -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
  

CancelOracle

func CancelOracle(cur realm)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CancelOracle" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CancelOracle" -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
  

CancelOwnershipTransfer

func CancelOwnershipTransfer(cur realm)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CancelOwnershipTransfer" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CancelOwnershipTransfer" -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
  

ChallengeClaim

func ChallengeClaim(cur realm, claimID, stakeAmount int64, referrer string)
Ask AI Claude ChatGPT

ChallengeClaim takes the counter position with `stakeAmount` mUSD (less the entry fee).

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ChallengeClaim" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ChallengeClaim" -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
  

ChallengersJSON

func ChallengersJSON(id int64) string
Ask AI Claude ChatGPT

ChallengersJSON lists a claim's challengers in the order they joined.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.ChallengersJSON()"

Result

ClaimCount

func ClaimCount() int64
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.ClaimCount()"

Result

ClaimFees

func ClaimFees(cur realm)
Ask AI Claude ChatGPT

ClaimFees pays the caller's accrued fees (entry fees, copy fees, forfeited bonds).

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ClaimFees" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ClaimFees" -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
  

ClaimFeesTo

func ClaimFeesTo(cur realm, to address)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ClaimFeesTo" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ClaimFeesTo" -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
  

ClaimJSON

func ClaimJSON(id int64) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.ClaimJSON()"

Result

ClaimsJSON

func ClaimsJSON(offset, limit int) string
Ask AI Claude ChatGPT

ClaimsJSON lists claims newest first: `offset` skips that many from the newest.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.ClaimsJSON(,)"

Result

ConfigJSON

func ConfigJSON() string
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.ConfigJSON()"

Result

CreateClaim

func CreateClaim(cur realm, question, creatorPosition, counterPosition, resolutionURL string, deadline, stakeAmount int64, category string, parentID int64, marketType, oddsMode string, challengerPayoutBps int64, handicapLine, settlementRule string, maxChallengers int, isPrivate bool, referrer string) int64
Ask AI Claude ChatGPT

CreateClaim opens a claim with `stakeAmount` mUSD (less the entry fee) on the creator's position. oddsMode is "pool" or "fixed"; challengerPayoutBps applies to fixed odds (below 10000 means the 2x default). maxChallengers 0 means the maximum. referrer is the copied basket's creator, or "".

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CreateClaim" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CreateClaim" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -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
  

CreateRematch

func CreateRematch(cur realm, parentID, deadline, stakeAmount int64) int64
Ask AI Claude ChatGPT

CreateRematch opens a new claim inheriting its terms from a parent. The caller is the creator and pays the stake. The parent's referrer carries over only to the parent's own creator.

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CreateRematch" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "CreateRematch" -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
  

DisputeResolution

func DisputeResolution(cur realm, claimID int64)
Ask AI Claude ChatGPT

DisputeResolution escalates a proposed verdict to the arbiter by posting DisputeBond. The bond comes back if the arbiter changes the verdict and is forfeited otherwise. Open to the creator, challengers, the audit agent and the arbiter.

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "DisputeResolution" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "DisputeResolution" -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
  

DisputeWindow

func DisputeWindow() int64
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.DisputeWindow()"

Result

EligibleTotals

func EligibleTotals(claimID int64) (int64, int64)
Ask AI Claude ChatGPT

EligibleTotals are the creator's and the challengers' stakes that compete under the settlement cutoff.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.EligibleTotals()"

Result

ExecuteFeeRecipient

func ExecuteFeeRecipient(cur realm)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ExecuteFeeRecipient" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ExecuteFeeRecipient" -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
  

ExecuteOracle

func ExecuteOracle(cur realm)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ExecuteOracle" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ExecuteOracle" -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
  

FeeStats

func FeeStats() (int64, int64, int64)
Ask AI Claude ChatGPT

FeeStats: accrued, claimed and outstanding fees. Outstanding is always covered by the realm's balance.

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.FeeStats()"

Result

FinalizeResolution

func FinalizeResolution(cur realm, claimID int64)
Ask AI Claude ChatGPT

FinalizeResolution settles an undisputed proposal once its window has closed. Anyone may call it.

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "FinalizeResolution" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "FinalizeResolution" -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
  

HasChallenged

func HasChallenged(id int64, a address) bool
Ask AI Claude ChatGPT

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.HasChallenged(,)"

Result

Invited

func Invited(id int64, a address) bool
Ask AI Claude ChatGPT

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.Invited(,)"

Result

Paused

func Paused() bool
Ask AI Claude ChatGPT

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.Paused()"

Result

PlatformStats

func PlatformStats() (int64, int64)
Ask AI Claude ChatGPT

PlatformStats: claims opened, claims resolved.

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.PlatformStats()"

Result

QueueFeeRecipient

func QueueFeeRecipient(cur realm, next address)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "QueueFeeRecipient" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "QueueFeeRecipient" -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
  

QueueOracle

func QueueOracle(cur realm, next address)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "QueueOracle" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "QueueOracle" -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
  

RefundExpired

func RefundExpired(cur realm, claimID int64)
Ask AI Claude ChatGPT

RefundExpired is the escape hatch, open to anyone once the grace has passed:

  • an active claim the oracle never resolved refunds every stake;
  • a disputed claim the arbiter never ruled on settles to the proposal and the bond is forfeited, unless the owner vetoed it or the realm is paused: then every stake is refunded and the bond goes back;
  • a paused, undisputed proposal refunds after the grace from its proposal.

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "RefundExpired" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "RefundExpired" -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
  

Render

func Render(path string) string
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.Render()"

Result

ResolveClaimWithCutoff

func ResolveClaimWithCutoff(cur realm, claimID int64, winnerSide int, summary string, confidence int, evidenceHash string, cutoff int64)
Ask AI Claude ChatGPT

ResolveClaimWithCutoff is the oracle's verdict on an active claim. With a dispute window it is a proposal; only stakes made strictly before `cutoff` (0 = all) compete, later ones are refunded.

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ResolveClaimWithCutoff" -args $'' -args $'' -args $'' -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ResolveClaimWithCutoff" -args $'' -args $'' -args $'' -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
  

ResolveDisputeWithCutoff

func ResolveDisputeWithCutoff(cur realm, claimID int64, winnerSide int, summary string, confidence int, evidenceHash string, cutoff int64)
Ask AI Claude ChatGPT

ResolveDisputeWithCutoff is the arbiter's final word on a disputed claim.

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ResolveDisputeWithCutoff" -args $'' -args $'' -args $'' -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "ResolveDisputeWithCutoff" -args $'' -args $'' -args $'' -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
  

RevokeOracle

func RevokeOracle(cur realm)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "RevokeOracle" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "RevokeOracle" -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
  

SetArbiter

func SetArbiter(cur realm, next address)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetArbiter" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetArbiter" -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
  

SetAuditAgent

func SetAuditAgent(cur realm, next string)
Ask AI Claude ChatGPT

SetAuditAgent appoints the reviewer that may dispute with a bond; "" disables it.

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetAuditAgent" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetAuditAgent" -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
  

SetCaps

func SetCaps(cur realm, market, account int64)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetCaps" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetCaps" -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
  

SetInvited

func SetInvited(cur realm, claimID int64, accounts string, allowed bool)
Ask AI Claude ChatGPT

SetInvited grants or revokes wallets on a private claim, up to MaxChallengers per call, as a comma-separated list. Revocation only blocks future entry. Rematches have their own empty list.

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetInvited" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetInvited" -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
  

SetLockAt

func SetLockAt(cur realm, claimID, at int64)
Ask AI Claude ChatGPT

SetLockAt closes a claim to new challengers early, by its creator or the owner. Only ever earlier.

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetLockAt" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetLockAt" -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
  

SetPaused

func SetPaused(cur realm, p bool)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetPaused" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "SetPaused" -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
  

TransferOwnership

func TransferOwnership(cur realm, next address)
Ask AI Claude ChatGPT

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "TransferOwnership" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "TransferOwnership" -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
  

UserStats

func UserStats(a address) (int64, int64)
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs.UserStats()"

Result

VetoProposal

func VetoProposal(cur realm, claimID int64)
Ask AI Claude ChatGPT

VetoProposal sends a proposal the owner believes wrong to the arbiter, inside the window. No bond; if the arbiter never rules, RefundExpired refunds.

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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "VetoProposal" -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/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs" -func "VetoProposal" -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
  

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/g12dcsmwccgdxasqde2eumua88tlrkw83kqf6tcz/vs, for example a function call with arguments.