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.

adstation package

Overview

Package adstation sells the panels of gno.world's ad station by the week, for GNOT, to ads an approver has passed (jae, his terminal, 2026-10-14: "lets make a site for the ad station, maybe ads.gno.world, where you can bid in gnot for your ad to show after approval" … "if somebody comes in and says i want this this this this panel, well, if they pay, they get it right? so make it flexible, market based, interesting").

THE UNIT is a panel, by index 0 … Panels()-1; the page maps an index to the station (face, row, column) and offers its colour groups as ready-made selections, so the groups can change without this realm knowing. A bid names any set of panels ("0-8,27-35"), one ad and one week, and carries its GNOT with it.

THE WEEK starts Monday 00:00 UTC and is named by that unix time. Bids for a week close a day before it starts; weeks up to AheadWeeks ahead are open. An approver passes or turns down each ad; a turned-down ad's open bids are refunded at once. From the week's start anyone may Settle it: the open bids whose ad is approved are ranked two ways — by price per panel, and by the whole amount — each in turn winning if none of its panels is taken yet, and the way that pays more decides the week (see allocate); the winners' GNOT goes to the ad station's treasury (r/…/adtreasury), everyone else's back to them. Refunds are credited and paid by Withdraw (the owner of the money) or PayOut (anyone, for them).

THE ROLES: an owner (two-step hand-off) names the approvers and sets the minimum bid, the panel count of weeks not yet bid on, and a pause on new bids; neither the owner nor an approver can move a bid's GNOT anywhere but back to its bidder or, by settling, to the treasury. The owner and first approver is Jae's cold key.

Immutable, not private (gnomod.toml).

Function

AddApprover

func AddApprover(cur realm, a address)
Ask AI Claude ChatGPT

AddApprover and RemoveApprover name who may pass or turn down ads.

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