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.

z_pages_filetest.gno

21.01 Kb · 290 lines
  1// PKGPATH: gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate/filetests/z_pages_filetest
  2
  3// Golden copies of every page, built through the exported API only.
  4package z_pages_filetest
  5
  6import (
  7	"testing"
  8	"time"
  9
 10	"gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate"
 11)
 12
 13const (
 14	payee  = address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // test1
 15	payer  = address("g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj") // test2
 16	payer2 = address("g1rzuwh5frve732k4futyw45y78rzuty4626zy6h") // test3
 17	gpub   = "gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pqfp0696ldln2nm7kd33zfpgypg6u0e7upl03hyeexa6mccn4ce8mkswg65c"
 18	sess   = address("g1psdsf789f4xw3qrpjue54g2h28syd09yfkrxdh")
 19	sess2  = address("g1valkxsym77y3qlj5fq9h4p64y73l3masvuxav0")
 20)
 21
 22func main(cur realm) {
 23	testing.SetRealm(testing.NewUserRealm(payee))
 24	id := mandate.Offer(cross(cur), "Weekly *coffee* for g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 $5", 1_000_000, 604800)
 25	testing.SetRealm(testing.NewUserRealm(payee))
 26	mandate.Offer(cross(cur), "Demo | one minute", 250_000, 60)
 27	testing.SetRealm(testing.NewUserRealm(payee))
 28	mandate.SetCollectorKey(cross(cur), gpub)
 29	testing.SetRealm(testing.NewUserRealm(payer))
 30	mandate.Subscribe(cross(cur), id, sess, time.Now().Unix()+30*86400)
 31	testing.SetRealm(testing.NewUserRealm(payer2))
 32	mandate.Subscribe(cross(cur), id, sess2, time.Now().Unix()+30*86400)
 33	testing.SetRealm(testing.NewUserRealm(payer2))
 34	mandate.Cancel(cross(cur), payer2, sess2)
 35
 36	for _, p := range []string{"", "plan/1", "plan/2", "payer/" + payer.String(), "payer/" + payer2.String(), "payee/" + payee.String(), "help", "nope"} {
 37		println("==== Render(\"" + p + "\")")
 38		println(mandate.Render(p))
 39	}
 40}
 41
 42// Output:
 43// ==== Render("")
 44// # Mandate
 45//
 46// **Subscriptions and direct debit on native GNOT.** A creator publishes a plan, such as 1 GNOT every week. A supporter signs one permission from their own wallet: *at most this much, every period, through this realm only, until I cancel or it expires*. The creator's collector then pulls each payment at the start of the period, and this realm checks who, how much and when before it forwards the coins.
 47//
 48// ## The honest limits
 49//
 50// - **It is direct debit, not escrow.** Nothing is locked up front. A supporter can stop at any time, and a creator is only paid when a pull succeeds.
 51// - **A hard cap the supporter sets.** The chain never lets a pull take more than the session's spend limit per period: the plan's amount plus a fee allowance of 0.1 GNOT. A dishonest creator could at worst burn that allowance as network fees; they can never take more, or pull more often.
 52// - **At most 16 mandates per wallet**, because the chain allows 16 session keys per account.
 53// - **Revoke any time.** Revoking the session on chain stops every pull at once. The realm cannot see a revoke, so a mandate still shows here as active until it is cancelled or expires: [how to stop a mandate](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:help).
 54// - **One realm, nothing under it.** A session for this realm also covers any realm deployed under its path, so nothing will ever be deployed there.
 55// - No admin, no pause, no upgrade. The realm never holds funds: each payment goes straight to the creator in the same transaction.
 56//
 57// [How to use it, with every command](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:help)
 58//
 59// ## Numbers
 60//
 61// | Plans | Mandates ever recorded | Payments | Paid out |
 62// |---|---|---|---|
 63// | 2 | 2 | 0 | 0 GNOT |
 64//
 65// ## Supporter pages
 66//
 67// No plan has been paid for in its current or last period.
 68//
 69// Only plans that someone has paid for are listed here. [All plans, newest first](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:plans)
 70//
 71// ---
 72//
 73// Built on [gno.land](https://gno.land) · source code: [github.com/elangrr/mandate](https://github.com/elangrr/mandate)
 74//
 75// ==== Render("plan/1")
 76// # Plan #1: Weekly \*coffee\* for g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 \$5
 77//
 78// **1 GNOT every week** to [g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:payee/g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5)
 79//
 80// Plan 1 · published 2009-02-13 23:31 UTC · 0 payments in the current period (since 2009-02-12 00:00 UTC), 0 in the one before · 0 payments, 0 GNOT in total · last payment: never
 81//
 82// Plans never change. New terms are published as a new plan.
 83//
 84// ## Supporters
 85//
 86// No paying supporters.
 87//
 88// Supporters are listed and counted from their first payment on, newest first, while their mandate is active. Cancelled and expired mandates are not listed or counted; a supporter who revoked the session on chain stays listed until the mandate is cancelled or expires. 1 active mandate has not paid yet (not listed).
 89//
 90// ## Support this plan
 91//
 92// You need [gnokey](https://docs.gno.land) and a key with some GNOT on onyx-1. Replace `YOUR_KEY` with your key's name. You can support one plan of each creator at a time: every plan of a creator is collected by the same key, and the chain allows one session per key. To switch plans, cancel and revoke first (time you paid for carries over to the same plan only). These two commands give the creator's collector key (`g1psdsf789f4xw3qrpjue54g2h28syd09yfkrxdh`) the right to take **at most 1.1 GNOT every week** (the price plus a fee allowance), through this realm only, for one year.
 93//
 94// 1. Create the session (your own key; it cannot be done with a session). If the chain answers `session key address collides with existing account`, this collector key can no longer be used for new sessions: ask the creator to publish a new one.
 95//
 96// ```
 97// gnokey maketx session create -pubkey gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pqfp0696ldln2nm7kd33zfpgypg6u0e7upl03hyeexa6mccn4ce8mkswg65c -allow-paths vm/exec:gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate -spend-limit 1100000ugnot -spend-period 604800 -expires-at 1266103890 -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
 98// ```
 99//
100// 2. Record the terms here:
101//
102// ```
103// gnokey maketx call -pkgpath gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate -func Subscribe -args 1 -args g1psdsf789f4xw3qrpjue54g2h28syd09yfkrxdh -args 1266103890 -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
104// ```
105//
106// The first payment is collected right after, then one every week. If you paid for this plan before and that period has not ended (you cancelled, the creator cancelled, or your mandate expired), the new mandate's first payment waits until it ends, so time you paid for is not charged twice. The one exception: a wallet keeps paid time for at most 16 plans it has left; beyond that, a creator's cancel keeps nothing for that creator's plan, and your own cancel or expiry lets the period that ends soonest go. Your page at `/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:payer/<your address>` shows how to stop.
107//
108// ---
109//
110// Built on [gno.land](https://gno.land) · source code: [github.com/elangrr/mandate](https://github.com/elangrr/mandate)
111//
112// ==== Render("plan/2")
113// # Plan #2: Demo | one minute
114//
115// **0.25 GNOT every minute** to [g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:payee/g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5) (a test plan: the period is under a day)
116//
117// Plan 2 · published 2009-02-13 23:31 UTC · 0 payments in the current period (since 2009-02-13 23:31 UTC), 0 in the one before · 0 payments, 0 GNOT in total · last payment: never
118//
119// Plans never change. New terms are published as a new plan.
120//
121// ## Supporters
122//
123// No paying supporters.
124//
125// Supporters are listed and counted from their first payment on, newest first, while their mandate is active. Cancelled and expired mandates are not listed or counted; a supporter who revoked the session on chain stays listed until the mandate is cancelled or expires. 0 active mandates have not paid yet (not listed).
126//
127// ## Support this plan
128//
129// You need [gnokey](https://docs.gno.land) and a key with some GNOT on onyx-1. Replace `YOUR_KEY` with your key's name. You can support one plan of each creator at a time: every plan of a creator is collected by the same key, and the chain allows one session per key. To switch plans, cancel and revoke first (time you paid for carries over to the same plan only). These two commands give the creator's collector key (`g1psdsf789f4xw3qrpjue54g2h28syd09yfkrxdh`) the right to take **at most 0.35 GNOT every minute** (the price plus a fee allowance), through this realm only, for one year.
130//
131// 1. Create the session (your own key; it cannot be done with a session). If the chain answers `session key address collides with existing account`, this collector key can no longer be used for new sessions: ask the creator to publish a new one.
132//
133// ```
134// gnokey maketx session create -pubkey gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pqfp0696ldln2nm7kd33zfpgypg6u0e7upl03hyeexa6mccn4ce8mkswg65c -allow-paths vm/exec:gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate -spend-limit 350000ugnot -spend-period 60 -expires-at 1266103890 -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
135// ```
136//
137// 2. Record the terms here:
138//
139// ```
140// gnokey maketx call -pkgpath gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate -func Subscribe -args 2 -args g1psdsf789f4xw3qrpjue54g2h28syd09yfkrxdh -args 1266103890 -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
141// ```
142//
143// The first payment is collected right after, then one every minute. If you paid for this plan before and that period has not ended (you cancelled, the creator cancelled, or your mandate expired), the new mandate's first payment waits until it ends, so time you paid for is not charged twice. The one exception: a wallet keeps paid time for at most 16 plans it has left; beyond that, a creator's cancel keeps nothing for that creator's plan, and your own cancel or expiry lets the period that ends soonest go. Your page at `/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:payer/<your address>` shows how to stop.
144//
145// ---
146//
147// Built on [gno.land](https://gno.land) · source code: [github.com/elangrr/mandate](https://github.com/elangrr/mandate)
148//
149// ==== Render("payer/g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj")
150// # Mandates of g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj
151//
152// Each mandate lets one creator's collector key pull a fixed amount once per period. To stop one completely, run both commands shown under it: **revoke** removes the session on chain (no pull can be signed any more) and **cancel** ends the mandate here. Revoke alone already stops every payment.
153//
154// ## Mandate 1: [plan #1 Weekly \*coffee\* for&#32;g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 \$5](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:plan/1)
155//
156// - Status here: **active** (if you revoked the session on chain, no payment can be taken)
157// - Price: 1 GNOT every week to [g1jg8mtu…sqf5](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:payee/g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5)
158// - Session key: `g1psdsf789f4xw3qrpjue54g2h28syd09yfkrxdh`
159// - Payments: 0, 0 GNOT in total, last: never
160// - Next payment allowed from: 2009-02-13 23:31 UTC · ends: 2009-03-15 23:31 UTC
161//
162// Revoke the session (your own key):
163//
164// ```
165// gnokey maketx session revoke -pubkey gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pqfp0696ldln2nm7kd33zfpgypg6u0e7upl03hyeexa6mccn4ce8mkswg65c -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
166// ```
167//
168// Cancel the mandate (your own key):
169//
170// ```
171// gnokey maketx call -pkgpath gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate -func Cancel -args g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj -args g1psdsf789f4xw3qrpjue54g2h28syd09yfkrxdh -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
172// ```
173//
174//
175// ---
176//
177// Built on [gno.land](https://gno.land) · source code: [github.com/elangrr/mandate](https://github.com/elangrr/mandate)
178//
179// ==== Render("payer/g1rzuwh5frve732k4futyw45y78rzuty4626zy6h")
180// # Mandates of g1rzuwh5frve732k4futyw45y78rzuty4626zy6h
181//
182// Each mandate lets one creator's collector key pull a fixed amount once per period. To stop one completely, run both commands shown under it: **revoke** removes the session on chain (no pull can be signed any more) and **cancel** ends the mandate here. Revoke alone already stops every payment.
183//
184// ## Mandate 2: [plan #1 Weekly \*coffee\* for&#32;g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 \$5](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:plan/1)
185//
186// - Status here: **cancelled**
187// - Price: 1 GNOT every week to [g1jg8mtu…sqf5](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:payee/g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5)
188// - Session key: `g1valkxsym77y3qlj5fq9h4p64y73l3masvuxav0`
189// - Payments: 0, 0 GNOT in total, last: never
190//
191//
192// ---
193//
194// Built on [gno.land](https://gno.land) · source code: [github.com/elangrr/mandate](https://github.com/elangrr/mandate)
195//
196// ==== Render("payee/g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5")
197// # Creator g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5
198//
199// | Plans | Payments | Received | Last payment |
200// |---|---|---|---|
201// | 2 | 0 | 0 GNOT | never |
202//
203// Collector key: `g1psdsf789f4xw3qrpjue54g2h28syd09yfkrxdh` (`gpub1pgfj7ard9eg82cjtv4u4xetrwqer2dntxyfzxz3pqfp0696ldln2nm7kd33zfpgypg6u0e7upl03hyeexa6mccn4ce8mkswg65c`)
204//
205// ## Plans
206//
207// | Plan | Price | Payments this / last period | All payments | Last payment |
208// |---|---|---|---|---|
209// | [#1 Weekly \*coffee\* for&#32;g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5 \$5](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:plan/1) | 1 GNOT every week | 0 / 0 | 0 | never |
210// | [#2 Demo \| one minute](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:plan/2) | 0.25 GNOT every minute | 0 / 0 | 0 | never |
211//
212// ---
213//
214// Built on [gno.land](https://gno.land) · source code: [github.com/elangrr/mandate](https://github.com/elangrr/mandate)
215//
216// ==== Render("help")
217// # How to use Mandate
218//
219// Every command is for the **onyx-1** test network and uses test GNOT. Replace the words in capitals. Amounts are in ugnot (1 GNOT = 1,000,000 ugnot); periods and times are in seconds and unix seconds.
220//
221// ## For creators
222//
223// 1. Publish a plan with your own key: a title (one line, at most 80 characters, no invisible formatting characters: direction controls and zero-width characters, the joiner included, are refused, so emoji joined into one, such as families, cannot be used), the amount (at least 0.1 GNOT) and the period (60 seconds to 30 days). Plans cannot be changed.
224//
225// ```
226// gnokey maketx call -pkgpath gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate -func Offer -args "TITLE" -args 1000000 -args 604800 -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
227// ```
228//
229// 2. Make a separate key for collecting (`gnokey add COLLECTOR_KEY`) and publish its public key (the `gpub1...` value `gnokey list` shows), signed with your own key. **Never send coins to the collector key's address**, not even for fees (the supporter pays every fee): an address that has received coins is an account, and the chain refuses to create a session for it, so nobody new could subscribe. Anyone can do this to a published key with a 1 ugnot send, and a realm can even make the address an account that holds nothing. In most cases the plan page then says so; in every case supporters get the chain error `session key address collides with existing account` when they create the session, and the collector script warns. Then the key can no longer be used for new sessions: make a new key and publish it (this command again). New supporters then use the new key, and existing mandates keep being collected with the old one: run one collector per key. `Subscribe` accepts any session key you hand out, so you can also give supporters a fresh key privately:
230//
231// ```
232// gnokey maketx call -pkgpath gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate -func SetCollectorKey -args GPUB_OF_COLLECTOR_KEY -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
233// ```
234//
235// 3. Collect each payment when it is due, signed with the collector key on behalf of the supporter. Only the exact price is accepted, at most once per period. The fee counts against the supporter's fee allowance, so keep it small. The command below uses today's minimum fee on onyx-1 (1 ugnot per 1,000 gas); when the chain raises its gas price, raise `-gas-fee` with it (`gnokey query auth/gasprice`), within the allowance. The collector script does this itself:
236//
237// ```
238// gnokey maketx call -pkgpath gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate -func Pull -send AMOUNTugnot -master SUPPORTER_ADDRESS -gas-fee 20000ugnot -gas-wanted 20000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 COLLECTOR_KEY
239// ```
240//
241// The repository has a collector script that finds what is due through free queries and pulls it.
242//
243// ## For supporters
244//
245// Open a plan's page: it shows the two exact commands, with the creator's collector key, the spend limit (price plus 0.1 GNOT for fees) and the period filled in. The general form:
246//
247// ```
248// gnokey maketx session create -pubkey COLLECTOR_GPUB -allow-paths vm/exec:gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate -spend-limit PRICE_PLUS_100000ugnot -spend-period PERIOD_SECONDS -expires-at UNIX_TIME -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
249// gnokey maketx call -pkgpath gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate -func Subscribe -args PLAN_ID -args COLLECTOR_ADDRESS -args UNIX_TIME -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
250// ```
251//
252// Use the same UNIX_TIME for both, at most 366 days ahead. The session must allow exactly `vm/exec:gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate` and nothing else, or Pull refuses it. PERIOD_SECONDS is the plan's period, at most 30 days (the chain's limit on a spend period). You can support one plan of each creator at a time: all of a creator's plans are collected by one key, and the chain allows one session per key.
253//
254// ### Stop a mandate
255//
256// Do both, with your own key. Your page (`/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate:payer/YOUR_ADDRESS`) shows them filled in.
257//
258// ```
259// gnokey maketx session revoke -pubkey COLLECTOR_GPUB -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
260// gnokey maketx call -pkgpath gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate -func Cancel -args YOUR_ADDRESS -args COLLECTOR_ADDRESS -gas-fee 100000ugnot -gas-wanted 60000000 -broadcast -chainid onyx-1 -remote https://rpc.onyx.testnets.gno.land:443 YOUR_KEY
261// ```
262//
263// ## Checking a supporter (free)
264//
265// To decide whether to deliver something to a supporter, ask how long their latest payment covers them: `PaidThrough` returns a unix time (0 if they never paid); deliver while now is before it. Paid time stays the supporter's after a cancel or an expiry. Do not rely on a mandate merely existing: anyone can record one without paying. A realm cannot see a session revoked on chain either, but a revoked supporter stops paying, so `PaidThrough` stops moving and runs out within one period. It runs out at the due time and moves on only when the creator's collector takes the next payment, so allow a grace equal to how often the collector runs (an hour, say) before treating someone as lapsed. The second query shows the chain's view of the session.
266//
267// ```
268// gnokey query vm/qeval -data 'gno.land/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate.PaidThrough(address("PAYER"), PLAN_ID)' -remote https://rpc.onyx.testnets.gno.land:443
269// gnokey query auth/accounts/PAYER/session/COLLECTOR_ADDRESS -remote https://rpc.onyx.testnets.gno.land:443
270// ```
271//
272// ## Rules the realm enforces
273//
274// - Pull: signed with a session key as a direct call; the session allows exactly this realm; a recorded, active mandate for that payer and key; exactly the price in ugnot; at most once per period (the next one is due one period after the last); not after the expiry.
275// - Every other function refuses session keys and coins.
276// - The first payment can be pulled as soon as the mandate is recorded (billing in advance). A missed period is never collected later.
277// - A wallet can have at most 16 sessions, so at most 16 mandates at a time.
278//
279// ---
280//
281// Built on [gno.land](https://gno.land) · source code: [github.com/elangrr/mandate](https://github.com/elangrr/mandate)
282//
283// ==== Render("nope")
284// # Not found
285//
286// There is no such page. [Back to Mandate](/r/g1llc3lq3zmjtjdk29dk52munrzxt5ne746cl7r8/mandate)
287//
288// ---
289//
290// Built on [gno.land](https://gno.land) · source code: [github.com/elangrr/mandate](https://github.com/elangrr/mandate)