mapper

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvariantCheckKey = []byte("0x10") // 数据检查
	LockInfoKey       = []byte("0x11") // 锁定-释放信息
)

Functions

func AccountInvariant

func AccountInvariant(module string) qtypes.Invariant

账户数据检查

func BuildInvariantCheckKey

func BuildInvariantCheckKey(height uint64) []byte

func ClearInvariantCheck

func ClearInvariantCheck(ctx context.Context)

清空数据检查

func DelLockInfo added in v0.0.8

func DelLockInfo(ctx context.Context)

删除锁定账户信息

func GetAccount

func GetAccount(ctx context.Context, addr btypes.AccAddress) *qtypes.QOSAccount

获取QOS账户信息

func GetAccounts

func GetAccounts(ctx context.Context) []*qtypes.QOSAccount

获取QOS账户列表

func GetLockInfo added in v0.0.8

func GetLockInfo(ctx context.Context) (info types.LockInfo, exists bool)

获取锁定账户信息

func GetMapper

func GetMapper(ctx context.Context) *account.AccountMapper

基于qbase中定义的AccountMapper,扩展qos所需操作

func NeedInvariantCheck

func NeedInvariantCheck(ctx context.Context) bool

某一高度是否需要执行数据检查

func SetInvariantCheck

func SetInvariantCheck(ctx context.Context)

保存某以高度执行检查信息

func SetLockInfo added in v0.0.8

func SetLockInfo(ctx context.Context, info types.LockInfo)

保存锁定账户信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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