server

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL