store

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidToken is returned when the token is not found in the merkle tree
	ErrInvalidToken = errors.New("invalid token")
)

Functions

This section is empty.

Types

type Proof

type Proof struct {
	Address sdk.AccAddress `json:"address"`
	Denom   string         `json:"denom"`
	Amount  int64          `json:"amount"`
	Proof   [][]byte       `json:"proof"`
}

Proof is a merkle proof of an account

func (*Proof) Serialize

func (p *Proof) Serialize() ([]byte, error)

Serialize implements merkle tree data Serialize method.

type Store

type Store interface {
	GetAccountAssetProof(address sdk.AccAddress, symbol string) (proofs *Proof, err error)
	CountAccountAssetProofs() (count int64, err error)
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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