ws

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 36 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// WsCmd represents the w3bstream command
	WsCmd = &cobra.Command{
		Use:   "ws",
		Short: config.TranslateInLang(wsCmdShorts, config.UILanguage),
	}
)

Functions

This section is empty.

Types

type Command

type Command struct {
}

type ContractCaller

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

func NewContractCaller

func NewContractCaller(contractabi abi.ABI, contractaddress string) (*ContractCaller, error)

func NewContractCallerByABI

func NewContractCallerByABI(content []byte, address string) (*ContractCaller, error)

func (*ContractCaller) Call

func (c *ContractCaller) Call(method string, arguments ...any) (string, error)

func (*ContractCaller) CallAndRetrieveResult

func (c *ContractCaller) CallAndRetrieveResult(method string, arguments []any, results ...*ContractResult) (string, error)

CallAndRetrieveResult will call contract with `method` and `arguments` and parse result from `targetABI` and `eventName`

func (*ContractCaller) Close

func (c *ContractCaller) Close()

func (*ContractCaller) IsSender

func (c *ContractCaller) IsSender(cmp common.Address) bool

func (*ContractCaller) Read

func (c *ContractCaller) Read(method string, arguments []any, result *ContractResult) error

func (*ContractCaller) Sender

func (c *ContractCaller) Sender() address.Address

func (*ContractCaller) SetAmount

func (c *ContractCaller) SetAmount(amount *big.Int)

func (*ContractCaller) SetPassword

func (c *ContractCaller) SetPassword(password string)

type ContractResult

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

func NewContractResult

func NewContractResult(target *abi.ABI, name string, value any) *ContractResult

func (*ContractResult) Result

func (r *ContractResult) Result() (any, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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