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.

lastcall/v4 package

Overview

Package lastcall is a synthetic stocks desk on gno.land.

It is self-contained: it runs its own price feed (off-chain updaters push quotes, trusted by caller address, see feed.gno), issues a test-USD collateral token and synthetic stock tokens, and lets users trade them spot against the desk. There is no external oracle and no external liquidity — the desk is always the counterparty at its own quoted price.

All amounts are integers. USD values are micro-USD (6 decimals): $190.42 -> 190420000. Token amounts use 6 decimals too, so one whole share is 1_000000 units and lines up 1:1 with the price scale.

Function

MarketVoteOf

func MarketVoteOf(u address) string
Ask AI Claude ChatGPT

MarketVoteOf returns an updater's recorded view of the market: "open", "closed" or "none".

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1p8v5lkq5mqp7r8h8stcv4fgrwrx3zupvww9m85/lastcall/v4.MarketVoteOf()"

Result

Gno Expression Evaluator

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