enumerated

package
v0.0.0-...-0ff5682 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tree

type Tree interface {
	Root() common.Hash
	Transfer(minted bool, eventTransfer *model.ERC721Transfer) error
	Mint(tokenId *big.Int, owner common.Address) error
	TokenOfOwnerByIndex(owner common.Address, idx uint64) (*big.Int, error)
	SetTokenToOwnerToIndex(owner common.Address, idx uint64, token *big.Int) error
	SetBalanceToOwner(owner common.Address, balance uint64) error
	BalanceOfOwner(owner common.Address) (uint64, error)
	SetRoot(root common.Hash)
}

Tree is used to store enumerated tokens of each owner

func NewTree

func NewTree(contract common.Address, root common.Hash, store storage.Tx) (Tree, error)

NewTree creates a new merkleTree with a custom storage

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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