utils

package
v0.0.0-...-b6fa669 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeChainID

func EncodeChainID(chainID *big.Int) ([]byte, error)

func EncodeChainIDAsString

func EncodeChainIDAsString(chainID *big.Int) (string, error)

encodeChainIDAsString converts a *big.Int chain ID to its string representation

func LoadAbi

func LoadAbi(path string) (*abi.ABI, error)

Load contract abi at the given path

func LoadPrivateKey

func LoadPrivateKey(cfg *config.Config, chainId int) (*bind.TransactOpts, error)

Load and unlock the keystore with XCHAIN_PASSPHRASE env var return a transaction authorizer

Types

This section is empty.

Jump to

Keyboard shortcuts

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