eth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0, MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v0.1.0

type Option func(cli *ReverseHashCli) error

func WithNeedWaitReceipt added in v0.1.0

func WithNeedWaitReceipt(needWaitReceipt bool) Option

func WithRPCTimeout added in v0.1.0

func WithRPCTimeout(timeout time.Duration) Option

func WithTxReceiptTimeout added in v0.1.0

func WithTxReceiptTimeout(timeout time.Duration) Option

func WithWaitReceiptCycleTime added in v0.1.0

func WithWaitReceiptCycleTime(cycleTime time.Duration) Option

type ReverseHashCli

type ReverseHashCli struct {
	// contains filtered or unexported fields
}

func NewReverseHashCli

func NewReverseHashCli(ethClient *ethclient.Client,
	contractAddress ethcommon.Address, from ethcommon.Address, signerFn bind.SignerFn,
	opts ...Option) (*ReverseHashCli, error)

func (*ReverseHashCli) GenerateProof

func (cli *ReverseHashCli) GenerateProof(ctx context.Context,
	treeRoot *merkletree.Hash,
	key *merkletree.Hash) (*merkletree.Proof, error)

func (*ReverseHashCli) GetNode

func (cli *ReverseHashCli) GetNode(ctx context.Context,
	hash *merkletree.Hash) (merkletree_proof.Node, error)

func (*ReverseHashCli) SaveNodes

func (cli *ReverseHashCli) SaveNodes(ctx context.Context,
	nodes []merkletree_proof.Node) error

Jump to

Keyboard shortcuts

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