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

pilotdemo/v0 package

Overview

Package pilotdemo is a power for a realm-driven account: a payout module installed into gno.land/p/moul/pilot/v0 after the account was deployed.

It shows both delegation modes side by side:

  • Pay goes through the account's revocable pilot.Purse. Revoking the module stops it on the next call, even though this realm still holds the purse object.
  • Act is only reachable under an identity grant: the account lends its sub-identity, this realm acts as "<account>#<subpath>" toward another realm, and spends the sub-treasury through a banker it mints. That banker is KEPT on purpose, which is what makes an identity grant permanent: revoking stops Exec, not this.

Demo of gno.land/p/moul/pilot/v0. Account instance: r/moul/pilot.

Function

Paid

func Paid() int64

Paid is what this module has moved in total.

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/pilotdemo/v0.Paid()"

Result