fedimint_dummy_client

Module db

Source

Structs§

DbKeyPrefixIter
An iterator over the variants of DbKeyPrefix
DummyClientFundsKeyV0
DummyClientFundsKeyV1
DummyClientNameKey
Unreachable 🔒

Enums§

DbKeyPrefix

Functions§

get_v1_migrated_state 🔒
Maps all Unreachable states in the state machine to OutputDone
migrate_to_v1
Migrates the database from version 0 to version 1 by removing DummyClientFundsKeyV0 and inserting DummyClientFundsKeyV1. The new key/value pair has an Amount as the value.