chain

Data structures responsible for keeping track of mutations to a Value or Collection

class tinychain.chain.Block(form)[source]

Bases: Chain

A Chain which keeps track of the entire update history of its subject.

class tinychain.chain.Chain(form)[source]

Bases: State

Data structure responsible for keeping track of mutations to a Value or Collection.

set(value)[source]

Update the value of this Chain.

class tinychain.chain.Sync(form)[source]

Bases: Chain

A Chain which keeps track of only the current transaction’s operations, in order to recover from a transaction failure (e.g. if the host crashes).