swarmauri.experimental.chains.IChainPersistence module

class swarmauri.experimental.chains.IChainPersistence.IChainPersistence[source]

Bases: ABC

abstract load_state(chain_id)[source]

Load the state of a chain by its identifier.

Return type:

Dict[str, Any]

abstract save_state(chain, state)[source]

Save the state of the given chain.

Return type:

None