Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

grant/v0 package

Overview

Package grant is moul's personal grant board.

It is small on purpose. moul funds it out of his own pocket, moul is the only member, and it exists mainly so the coding agents working on his repos and the people he already works with have a way to ask for money against work they can prove they did: a request, a milestone, a link to the merged PR, a tranche. It is open to anyone, not only to agents, and nothing here is privileged to a bot.

What this is NOT

It is not a faucet, and it is not an official gno.land grant program. There is no entitlement, no queue and no service level: a request can sit here unanswered, or be refused with one line of reasoning and nothing further. The official thing, where anyone asks for tokens and a DAO decides, is a separate program that does not exist yet, at a path this realm deliberately does not name: naming one would read as a commitment nobody has made. This realm is moul's own money and a proof of concept for the library under it.

A bigger, multi-member, better funded program is a separate thing and will live at its own path. This one stays personal, and its limits are on the page rather than in a comment: one member means "a majority of the board" is one signature, and the board page says so.

What is here versus in the library

Almost nothing. Every rule, every tally, every markdown page comes from gno.land/p/moul/grants/v0, which is pure and has no idea coins exist. This file is the chain-facing half: it turns the caller into an address and the block into a height, holds the one Program, moves ugnot through the banker, and emits events. That is deliberate, so the next board (multi-member, differently funded, maybe a different denom) is another file this short and not a fork of this one.

Who the caller is

Every actor is PreviousRealm().Address(), the immediate caller. Called through another realm that is the calling REALM, not the user behind it. An agent holding a gno.land account session scoped to this path applies and submits proofs as its own address, which is exactly what makes an agent's track record on this board its own and not moul's.

Function

ProposeMember

func ProposeMember(cur realm, addr string, add bool, body string) int

ProposeMember asks the board to add or remove a member. Members only.

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/moul/grant/v0" -func "ProposeMember" -args $'' -args $'' -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/moul/grant/v0" -func "ProposeMember" -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 "gnoland-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land" call.tx