token

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	TokenTypeMapbased = iota
	TokenTypeMinime
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token interface {
	DiscoverSlot(ctx context.Context, holder common.Address) (int, *big.Rat, error)
	GetProof(ctx context.Context, holder common.Address, block *big.Int,
		indexSlot int) (*ethstorageproof.StorageProof, error)
	VerifyProof(holder common.Address, storageRoot common.Hash,
		proofs []ethstorageproof.StorageResult, indexSlot int, targetBalance,
		targetBlock *big.Int) error
}

func New

func New(ctx context.Context, rpcCli *rpc.Client, tokenType int,
	address common.Address) (Token, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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