Namespace Libplanet.State
Classes
CurrencyPermissionException
The exception that is thrown when a TransactionSigner has no rights to mint a Currency or burn assets of a Currency.
InsufficientBalanceException
The exception that is thrown when a sender has less Balance than amount to transfer or an owner has less Balance than amount to burn.
SupplyOverflowException
The exception thrown when a minter tries to mint a currency such that the resulting total supply exceed the maximum amount.
TotalSupplyNotTrackableException
The exception thrown when GetTotalSupply(Currency) was called on a legacy untracked currency with TotalSupplyTrackable set to false.
ValidatorStateExtensions
Interfaces
IAccountStateDelta
An interface to manipulate account states with maintaining the set of UpdatedAddresses.
It is like a map which is virtually initialized such that every possible Address exists and is mapped to null. That means that:
- it does not have length,
- its index getter never throws KeyNotFoundException, but returns null instead, and
- filling an Address with null state cannot be distinguished from the Address having never been set to any state.
IAccountStateView
An interface to fetch account states.
It is like a readonly map which is virtually initialized such that every possible Address exists and is mapped to null. That means that:
- it does not have length,
- its index getter never throws KeyNotFoundException, but returns null instead, and
- filling an Address with null state cannot be distinguished from the Address having never been set to any state.
IValidatorSupportStateDelta
Delegates
AccountBalanceGetter
An delegate to provide read-only view of account balances.
Gets address
' balance of the given currency
.
AccountStateGetter
An delegate to provide read-only view of account states.
Gets states associated with the specified account addresses
.
If some states associated with the specified account addresses
have
never been set these absent states are represented as null.
TotalSupplyGetter
An delegate to provide a view of total supply of a currency.
Gets the total supply of the given currency
.
ValidatorSetGetter
An delegate to provide a view of the ValidatorSet.