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.

markets/v2 package

Overview

Package markets is realm v2 of 67: fully collateralized markets on Gno with a service fee, two-sided expiring quotes, limits, pauses, a resolution window, void refunds and an abandonment exit. It does not discover outcomes: each market trusts its pinned oracle, and a guardian can cancel a proposal for 24 hours before anyone can make it final.

Money only leaves through Claim (to the holder who calls) and WithdrawSurplus (to the market's fixed treasury, after it is final). Nothing can pause them.

Function

MarketsJSON

func MarketsJSON() string
Ask AI Claude ChatGPT

MarketsJSON returns every market in creation order as one JSON array.

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-sixseven067/markets/v2.MarketsJSON()"

Result