package
0.7.6
Repository: https://github.com/dfinance/dnode.git
Documentation: pkg.go.dev

# Functions

DefaultGenesisState returns default genesis state (validation is done on module init).
GetCurrencyBalancePathKey returns storage key for currencyBalance VM path.
GetCurrencyInfoPathKey returns storage key for currencyInfo VM path.
GetCurrencyKey returns Key for storing currency.
GetCurrencyKeyPrefix return currency storage key prefix (used for iteration).
NewBalance creates a new balance object.
NewCCCreatedEvent creates an Event on currency creation.
NewCurrency creates a new Currency object.
No description provided by the author
NewResBalance unmarshals lcs representation to balance resource.
NewResCurrencyInfo converts Currency to VM's ResCurrencyInfo checking if owner is stdlib.
RequestVMStoragePerms returns module perms used by this module.

# Constants

No description provided by the author
.
No description provided by the author
No description provided by the author
No description provided by the author
Create a new currency.
Init genesis.
Read currency and resources.
Update currency VM resources.
Update currency supply.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Balance is a wrapped ResBalance with extra meta-data.
Currency is an info object with currency params.
CurrencyParams defines currency genesis params and currency cration params.
GenesisState is module's genesis (initial state).
ResBalance is a DVM resource, containing an account coins balance.
ResCurrencyInfo is a DVM resource, containing Currency meta-data.

# Type aliases

Balances is a slice type for balance.
Currencies is a slice of Currency objects.
CurrenciesParams slice of CurrencyParams objects.