ws

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

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 added in v1.14.1

type Command struct {
}

type ContractCaller added in v1.14.1

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

func NewContractCaller added in v1.14.1

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

func NewContractCallerByABI added in v1.14.1

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

func (*ContractCaller) Call added in v1.14.1

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

func (*ContractCaller) CallAndRetrieveResult added in v1.14.1

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 added in v1.14.1

func (c *ContractCaller) Close()

func (*ContractCaller) IsSender added in v1.14.1

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

func (*ContractCaller) Read added in v1.14.1

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

func (*ContractCaller) Sender added in v1.14.1

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

func (*ContractCaller) SetAmount added in v1.14.1

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

func (*ContractCaller) SetPassword added in v1.14.1

func (c *ContractCaller) SetPassword(password string)

type ContractResult added in v1.14.1

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

func NewContractResult added in v1.14.1

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

func (*ContractResult) Result added in v1.14.1

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