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 ¶
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) 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)
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
- wsrouter.go
- wsrouterbinddapp.go
- wsrouterunbinddapp.go
- wsutil.go
- wsvmtype.go
- wsvmtypequery.go
- wsvmtyperegister.go
- wsvmtypestate.go
Click to show internal directories.
Click to hide internal directories.