sheaf

The ledger

Every basket, every share created or redeemed, every dollar order and every plan run, read from the events the program wrote into its own transactions. There is no database of record: the server keeps a cache of the decoded history in a storage bucket, refreshed from the chain every half minute, and anyone can rebuild it from the chain.

Reading the program’s transactions…