Crate governance_os_pallet_tokens[−][src]
This pallet implements the code to support a multi currency runtime.
Along with compatibility with the Currency
trait through the use
of NativeCurrencyAdapter
.
Caveats:
- for now, we do not support
reasons
andexistence_requirements
- for now, we do not support
ExistentialDeposit
- for now, we do not support locking or reserving funds
Re-exports
pub use $crate::traits::GetPalletVersion as _; |
Structs
AccountCurrencyData | All balance information for an account and an associated currency. |
Balances | Store the balances holded by an account. By storing the balances under an account (VS storing the accounts under the currency ids) we can enumerate the tokens holded by an account if needed. |
CurrencyDetails | This structure is used to encode metadata about a currency, for instance, which account is its “owner” and thus can mint or burn units. |
GenesisConfig | Genesis config for the module, allow to build genesis storage. |
Locks | |
Module | |
NativeCurrencyAdapter | This struct is useful to implement the |
NegativeImbalance | Opaque, move-only struct with private fields that serves as a token denoting that funds have been destroyed without any equal and opposite accounting. |
PositiveImbalance | Opaque, move-only struct with private fields that serves as a token denoting that funds have been created without any equal and opposite accounting. |
TotalIssuances |
Enums
Call | Dispatchable calls. |
Error | |
RawEvent | Events for this module. |
Traits
Config | |
RoleBuilder | |
WeightInfo |
Type Definitions
Event |