Documentation ¶
Index ¶
- Constants
- func ParseBalanceKey(key []byte) (sdk.AccAddress, batchDenomT)
- func ParseSupplyKey(key []byte) batchDenomT
- func RegisterServices(configurator server.Configurator, paramSpace paramtypes.Subspace, ...)
- func RetiredBalanceKey(acc sdk.AccAddress, batchDenom batchDenomT) []byte
- func RetiredSupplyKey(batchDenom batchDenomT) []byte
- func TradableBalanceKey(acc sdk.AccAddress, denom batchDenomT) []byte
- func TradableSupplyKey(batchDenom batchDenomT) []byte
Constants ¶
View Source
const ( TradableBalancePrefix byte = 0x0 TradableSupplyPrefix byte = 0x1 RetiredBalancePrefix byte = 0x2 RetiredSupplyPrefix byte = 0x3 CreditTypeSeqTablePrefix byte = 0x4 ClassInfoTablePrefix byte = 0x5 BatchInfoTablePrefix byte = 0x6 SellOrderTablePrefix byte = 0x7 SellOrderTableSeqPrefix byte = 0x8 BuyOrderTablePrefix byte = 0x9 BuyOrderTableSeqPrefix byte = 0x10 AskDenomTablePrefix byte = 0x11 )
Variables ¶
This section is empty.
Functions ¶
func ParseBalanceKey ¶
func ParseBalanceKey(key []byte) (sdk.AccAddress, batchDenomT)
ParseBalanceKey parses the recipient address and batch-denom from tradable or retired balance key.
func ParseSupplyKey ¶
func ParseSupplyKey(key []byte) batchDenomT
ParseSupplyKey parses the batch-denom from tradable or retired supply key
func RegisterServices ¶
func RegisterServices(configurator server.Configurator, paramSpace paramtypes.Subspace, accountKeeper ecocredit.AccountKeeper, bankKeeper ecocredit.BankKeeper)
func RetiredBalanceKey ¶
func RetiredBalanceKey(acc sdk.AccAddress, batchDenom batchDenomT) []byte
RetiredBalanceKey creates the index key for recipient address and batch-denom
func RetiredSupplyKey ¶
func RetiredSupplyKey(batchDenom batchDenomT) []byte
RetiredSupplyKey creates the retired supply key for a given batch-denom
func TradableBalanceKey ¶
func TradableBalanceKey(acc sdk.AccAddress, denom batchDenomT) []byte
TradableBalanceKey creates the index key for recipient address and batch-denom
func TradableSupplyKey ¶
func TradableSupplyKey(batchDenom batchDenomT) []byte
TradableSupplyKey creates the tradable supply key for a given batch-denom
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.