Documentation
¶
Index ¶
- Constants
- Variables
- func AccountStoreKey(account []byte) []byte
- func BadLiquidationTxStoreKey(address []byte) []byte
- func BorrowerNumberKey() []byte
- func BorrowersStoreKey(address []byte) []byte
- func LastHandledHeightStoreKey() []byte
- func LiquidationAbove2P0StoreKey(address []byte) []byte
- func LiquidationBelow1P0StoreKey(address []byte) []byte
- func LiquidationBelow1P1StoreKey(address []byte) []byte
- func LiquidationBelow1P5StoreKey(address []byte) []byte
- func LiquidationBelow2P0StoreKey(address []byte) []byte
- func LiquidationNonProfitStoreKey(address []byte) []byte
- func MarketStoreKey(symbol []byte, account []byte) []byte
- func NewDB(path string) (*leveldb.DB, error)
- func PendingLiquidationTxStoreKey(address []byte) []byte
- type Hash
Constants ¶
View Source
const HashLength = 32
Variables ¶
View Source
var ( KeyLastHandledHeight = []byte("last_handled_height") KeyBorrowerNumber = []byte("number_of_borrowers") BorrowersPrefix = []byte("borrowers") //prefix with all borrowers PricesPrefix = []byte("prices") AccountPrefix = []byte("account") MarketPrefix = []byte("market") LiquidationBelow1P0Prefix = []byte("liquidation_below_1p0") LiquidationBelow1P1Prefix = []byte("liquidation_below_1p1") LiquidationBelow1P5Prefix = []byte("liquidation_below_1p5") LiquidationBelow2P0Prefix = []byte("liquidation_below_2p0") LiquidationAbove2P0Prefix = []byte("liquidation_above_2p0") LiquidationNonProfitPrefix = []byte("liquidation_non_profit") // BadLiquidationTxPrefix = []byte("bad_liquidation_tx") PendingLiquidationTxPrefix = []byte("pending_liquidation_tx") )
Functions ¶
func AccountStoreKey ¶
func BorrowerNumberKey ¶
func BorrowerNumberKey() []byte
func BorrowersStoreKey ¶
func LastHandledHeightStoreKey ¶
func LastHandledHeightStoreKey() []byte
func MarketStoreKey ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.