utils

package
v0.1.0-a1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPrefix

func AddPrefix(value string) string

Add a prefix to a hex string if not present

func IsWalletReady

func IsWalletReady(status types.WalletStatus) bool

Check if the node wallet is ready for transacting

func RemovePrefix

func RemovePrefix(value string) string

Remove a prefix from a hex string if present

Types

type Resources

type Resources struct {

	// The address of the multicall contract
	MulticallAddress common.Address

	// The chain ID for the current network
	ChainID uint

	// The URL for transaction monitoring on the network's chain explorer
	TxWatchUrl string
	// contains filtered or unexported fields
}

A collection of network-specific resources and getters for them

func NewResources

func NewResources(network types.Network) *Resources

Creates a new resource collection for the given network

Directories

Path Synopsis
gas

Jump to

Keyboard shortcuts

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