Documentation
¶
Overview ¶
Package core contains common interfaces used for RPC method implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallFactoryReturns ¶ added in v0.6.0
CallFactoryReturns is the interface that wraps the basic Returns method.
type CallFactoryReturnsRAW ¶ added in v0.6.0
CallFactoryReturnsRAW is the interface that wraps the basic ReturnsRAW method.
type Caller ¶ added in v0.5.0
type Caller interface {
RequestCreator
ResponseHandler
}
Caller is the interface that groups the basic CreateRequest and HandleResponse methods.
type Func ¶
type Func interface {
// EncodeArgs ABI-encodes the given args and prepends the Func's 4-byte
// selector.
EncodeArgs(args ...any) (input []byte, err error)
// DecodeArgs ABI-decodes the given input to the given args.
DecodeArgs(input []byte, args ...any) (err error)
// DecodeReturns ABI-decodes the given output to the given returns.
DecodeReturns(output []byte, returns ...any) (err error)
}
Func is the interface that wraps the methods for ABI encoding and decoding.
type RequestCreator ¶ added in v0.3.1
RequestCreator is the interface that wraps the basic CreateRequest method.
type ResponseHandler ¶
ResponseHandler is the interface that wraps the basic HandleResponse method.
Click to show internal directories.
Click to hide internal directories.