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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproveInvariant

func ApproveInvariant(module string) qtypes.Invariant

数据检查

Types

type Mapper

type Mapper struct {
	*mapper.BaseMapper
}

预授权模块存储操作

func GetMapper

func GetMapper(ctx context.Context) *Mapper

func NewApproveMapper

func NewApproveMapper() *Mapper

func (*Mapper) Copy

func (mapper *Mapper) Copy() mapper.IMapper

func (*Mapper) DeleteApprove

func (mapper *Mapper) DeleteApprove(from btypes.AccAddress, to btypes.AccAddress)

删除授权

func (*Mapper) GetApprove

func (mapper *Mapper) GetApprove(from btypes.AccAddress, to btypes.AccAddress) (types.Approve, bool)

获取授权

func (*Mapper) GetApproves

func (mapper *Mapper) GetApproves() []types.Approve

所有预授权

func (*Mapper) SaveApprove

func (mapper *Mapper) SaveApprove(approve types.Approve)

保存授权

Jump to

Keyboard shortcuts

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