statestore

package
v0.0.0-...-9fdd194 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Overview

Package statestore provides statestore implementation and mock. It uses leveldb under the hood.

Index

Constants

This section is empty.

Variables

View Source
var (
	TotalReceivedKey      = "swap_vault_total_received"       // 收到支票总额度
	TotalReceivedCountKey = "swap_vault_total_received_count" // 收到支票总数量

	TotalReceivedCashedKey      = "swap_vault_total_received_cashed"       // 收到支票兑现总额度
	TotalReceivedCashedCountKey = "swap_vault_total_received_cashed_count" // 收到支票兑现总数量

	TotalDailyReceivedKey       = "swap_vault_total_daily_received_"        // 单日收到支票总额度+总数量
	TotalDailyReceivedCashedKey = "swap_vault_total_daily_received_cashed_" // 单日收到支票兑现总额度
	TotalDailySentKey           = "swap_vault_total_daily_sent_"            // 单日发出支票总额度/总数量

	PeerReceivedUncashRecordsCountKeyPrefix = "swap_vault_peer_received_uncashed_records_count_" // 每个peer收到支票未兑现数量
)

Functions

func CashoutResultKey

func CashoutResultKey(vault common.Address) string

func CashoutResultPrefixAllKey

func CashoutResultPrefixAllKey() string

func CashoutResultPrefixKey

func CashoutResultPrefixKey() string

func GetTodayTotalDailyReceivedCashedKey

func GetTodayTotalDailyReceivedCashedKey(token common.Address) string

func GetTodayTotalDailyReceivedKey

func GetTodayTotalDailyReceivedKey(token common.Address) string

func GetTodayTotalDailySentKey

func GetTodayTotalDailySentKey(token common.Address) string

func GetTotalDailyReceivedCashedKeyByTime

func GetTotalDailyReceivedCashedKeyByTime(timestamp int64, token common.Address) string

func GetTotalDailyReceivedKeyByTime

func GetTotalDailyReceivedKeyByTime(timestamp int64, token common.Address) string

func GetTotalDailySentKeyByTime

func GetTotalDailySentKeyByTime(timestamp int64, token common.Address) string

func PeerReceivedUncashRecordsCountKey

func PeerReceivedUncashRecordsCountKey(vault common.Address, token common.Address) string

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