Documentation ¶
Index ¶
- Variables
- type Command
- type ContractCaller
- func (c *ContractCaller) Call(method string, arguments ...any) (string, error)
- func (c *ContractCaller) CallAndRetrieveResult(method string, arguments []any, results ...*ContractResult) (string, error)
- func (c *ContractCaller) Close()
- func (c *ContractCaller) IsSender(cmp common.Address) bool
- func (c *ContractCaller) Read(method string, arguments []any, result *ContractResult) error
- func (c *ContractCaller) Sender() address.Address
- func (c *ContractCaller) SetAmount(amount *big.Int)
- func (c *ContractCaller) SetPassword(password string)
- type ContractResult
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 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)
Source Files ¶
- ws.go
- wsdevice.go
- wsdeviceapprove.go
- wsdeviceapproved.go
- wsdeviceunapprove.go
- wsmessage.go
- wsmessagequery.go
- wsmessagesend.go
- wsproject.go
- wsprojectattribute.go
- wsprojectconfig.go
- wsprojectquery.go
- wsprojectregister.go
- wsprojectstate.go
- wsprojectupdate.go
- wsprover.go
- wsproverquery.go
- wsproverregister.go
- wsproverstate.go
- wsprovertransfer.go
- wsproverupdate.go
- wsutil.go
Click to show internal directories.
Click to hide internal directories.