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.

fees package

Overview

Package fees is the entry-fee rate each account pays on Mimir's pool and VS markets (the gno.land port of contracts/MimirFees.sol).

Everyone pays BaseBps (0.5%) of what they put in. A lower rate needs a fee ticket signed by the signer: "this account is tier T until `expires`". The account submits it with ApplyTicket, normally in the same transaction as its stake. Mimir's server signs no tickets.

Signatures are ed25519 over TicketMessage(account, tier, expires), which binds the chain id and this realm's path, so a ticket cannot be replayed on another network or another deployment.

Trust: the signer can only lower an account's rate (BaseBps is the most anyone pays), so a stolen signer key costs the protocol revenue, never a user money. The owner revokes it at once (RevokeSigner); a new signer waits SignerTimelock, so a stolen owner key cannot install one quietly. Both retire every ticket the old signer issued (each ticket carries the signer epoch it was applied under).

Function

RevokeSigner

func RevokeSigner(cur realm)
Ask AI Claude ChatGPT

RevokeSigner is the emergency stop: no ticket verifies any more, and the ones applied stop counting.

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

Gno Expression Evaluator

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