Hilbert Hollow is best on a desktop.
You walk the town with the arrow keys, so it needs a keyboard and a wider screen than this one.
Nine politicians, three ministries, and a founder who was killed by a pumpkin. Check in with a passkey. The town makes you a wallet, which is a small contract of your own, and gives you 10 test XLM a day to spend on politicians. No extension, no seed phrase. Test XLM has no value.
More than one citizen on this device?
Want the story again? Six short pages from Midge, Edmund, Mateo and Tansy, then a short walk round the town.
Learn how the general election works at the notice board in the town square.
This politician's address:
Same Town Hall, different number on the end. Donating with the button below calls the Town Hall, and that is what counts.
One politician wins per ministry per day. Donating here locks in your pick for this ministry until the day closes; you can donate more to them, but not switch.
This board doesn't read the Stellar ledger directly. It asks the town's register, which keeps a copy of every donation event.
1. Events on the ledger
Every donation made at a lectern creates two events on Stellar:
A transfer: Written by the XLM token contract. It shows the XLM arriving at the Town Hall, with the politician's number beside the amount.
A receipt: Written by the Town Hall's donate function. It records the day, the citizen, the politician, the ministry, and the amount.
A payment sent straight to a politician's W address creates only the transfer.
2. The register
Every minute, the register checks Stellar for new events using an RPC call called getEvents. It's looking for two things: money transfers and donation receipts.
The difference matters:
Transfer + matching receipt: A valid campaign donation. The money was transferred, and the Town Hall confirmed the donation in the same transaction. It counts toward the election.
Transfer without a receipt: Money reached the Town Hall, tagged with a politician's number, but no donation was recorded. It doesn't count toward the election. These are listed under "Donations that didn't count."
The register keeps track of the valid donations and uses them to determine the winners.
At the end of each day, it names a winner for each ministry. At the end of each week, it works out each citizen's champion and the winner of the general election.
3. This board
When you open the board, the register adds up today's valid donations for each politician and counts their backers. It also totals the donations that didn't count.
The general election tab does the same for the whole week. The prizes next to each name come from the register too.
The house is where you live. The yard is what democracy does to it. Pick a home and a yard; both are free to change any time. Everything else out there is earned at the ministries.
Drag anything you have collected around the yard. Put things away here when the lawn gets crowded; nothing is ever lost.
Your wallet is a contract that answers to your passkey; this is its address.
Pick how the town will see you, then press Save look. You can come back and change it any time.