ws

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 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

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