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

IsApprover

func IsApprover(a address) bool
Ask AI Claude ChatGPT

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/g1leu8d2vsplhehcfkjg50mwgdpxdkt8tztu95wr/adstation.IsApprover()"

Result