utils

package
v0.0.0-...-93ae5c1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeTransaction

func EncodeTransaction(
	client *client.Client,
	from common.Address,
	to common.Address,
	value *big.Int,
	calldata []byte,
	gasMultiplier float64,
) (*types.Transaction, error)

func GenerateMerkleProof

func GenerateMerkleProof(
	treeData [][]byte, leaf []byte,
) ([][32]byte, error)

func ReadFileLinesIntoBytes

func ReadFileLinesIntoBytes(filepath string) ([][]byte, error)

func WriteBytesInfoFileLines

func WriteBytesInfoFileLines(data [][]byte, filepath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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