ownership

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenData

type TokenData struct {
	SlotOwner common.Address
	TokenURI  string
	Minted    bool
	Idx       int
}

TokenData defines token data placed in data of the leaf of the tree

type Tree

type Tree interface {
	Root() common.Hash
	Transfer(eventTransfer *model.ERC721Transfer) error
	Mint(mintEvent *model.MintedWithExternalURI, idx int) error
	TokenData(tokenId *big.Int) (*TokenData, error)
	SetTokenData(tokenData *TokenData, tokenId *big.Int) error
	OwnerOf(tokenId *big.Int) (common.Address, error)
	SetRoot(root common.Hash)
}

Tree defines interface for ownership tree

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