Skip to the page

Demo chain: example blocks

—

Teapot Club Dues

Members pay by the period; anyone can ask how far a member is paid up. It is a made-up contract, running in your browser so you can try the page without a node. It is not deployed on any chain.

BuiltThe node runs EVM contracts on the main line behind a genesis switch; these six contracts are examples in your browser, not deployed ones. Status

Address
893cb1…98672d
Kind
Subscription
Deployed at
43,015
Calls
96
Design preview: example data, not from a chain
The contract, as a machineDesign preview: example data, not from a chain
Price per period
5 BUN
Period, in blocks
600
Paid until
mossy-otterblock 49,800paper-cometblock 48,650velvet-gearblock 47,900
Collected
135 BUN
Storage, 4 cellswired, waiting

Out tray

Press a key above. A question answers at once; a call is signed first.

Call a method

You are north-window (you) with 12,500 example BUN, at block 48,210.

The block a membership runs to.

One of the example accounts.

Answers at once. Nothing is signed.

What it offers, and what it holds

The interface is every way in. The storage is everything it remembers. A call can only change the cells its method is wired to.

Design preview: example data, not from a chain

Interface

  • paidUntil(account: account)question

    The block a membership runs to.

  • subscribe(periods: number)call

    Pay for one or more periods. Time is added to what you already have.

  • cancel(call

    End your membership now. Dues already paid stay with the club.

Storage

Price per periodSet at deploy.
5 BUN
Period, in blocksSet at deploy.
600
Paid untilThe block each membership runs to.
mossy-otterblock 49,800paper-cometblock 48,650velvet-gearblock 47,900
CollectedAll dues ever paid in.
135 BUN

Call history

Calls that became final, newest first. Questions are not listed: they change nothing and are never put in a block.

Design preview: example data, not from a chain
CallMethodArgumentsCallerBlockWhat it did
96subscribe3 periodsmossy-otter48,000mossy-otter is paid up to block 49,800
95subscribe1 periodpaper-comet48,050paper-comet is paid up to block 48,650
94cancelnonequiet-abacus47,310quiet-abacus is no longer a member

Showing the latest 3 of 96 example calls.

Source

Nobody has shown that a sketch matches this contract’s code yet. Until then, the page shows no source.

Design preview: example data, not from a chain

Verifying takes a sketch, rebuilds it, and compares the result with the code at this address. Try it with this contract.

Verify Teapot Club Dues