account

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountData

type AccountData struct {
	EnumeratedRoot        common.Hash
	EnumeratedTotalRoot   common.Hash
	OwnershipRoot         common.Hash
	TotalSupply           int64
	LastProcessedEvoBlock uint64
}

AccountData defines the roots from enumerated, enumerated total and ownership merkle trees placed in data of the leaf of the tree

type Tree

type Tree interface {
	Root() common.Hash
	AccountData(contract common.Address) (*AccountData, error)
	SetAccountData(data *AccountData, accountAddress common.Address) error
	TagRoot(blockNumber int64) error
	GetLastTaggedBlock() (int64, error)
	Checkout(blockNumber int64) error
	DeleteRootTag(blockNumber int64) error
}

Tree defines interface for the account tree

func NewTree

func NewTree(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