CashBalanceAsMetricsObserver |
class CashBalanceAsMetricsObserver This class observes the wallet and reflect current cash balances as exposed metrics in the monitoring service. |
NodeWalletService |
class NodeWalletService : SingletonSerializeAsToken, WalletService This class implements a simple, in memory wallet that tracks states that are owned by us, and also has a convenience method to auto-generate some self-issued cash states that can be used for test trading. A real wallet would persist states relevant to us into a database and once such a wallet is implemented, this scaffolding can be removed. |
WalletImpl |
class WalletImpl : Wallet A wallet (name may be temporary) wraps a set of states that are useful for us to keep track of, for instance, because we own them. This class represents an immutable, stable state of a wallet: it is guaranteed not to change out from underneath you, even though the canonical currently-best-known wallet may change as we learn about new transactions from our peers and generate new transactions that consume states ourselves. |