Documentation
¶
Index ¶
- Constants
- type MockForwarderContract
- func (c MockForwarderContract) Dispatch(receiver aptos.AccountAddress, metadata []byte, data []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
- func (c MockForwarderContract) Encoder() MockForwarderEncoder
- func (c MockForwarderContract) Initialize(opts *bind.TransactOpts) (*api.PendingTransaction, error)
- func (c MockForwarderContract) Report(opts *bind.TransactOpts, receiver aptos.AccountAddress, rawReport []byte, ...) (*api.PendingTransaction, error)
- type MockForwarderEncoder
- type MockForwarderInterface
- type ReportProcessed
- type State
Constants ¶
View Source
const ( E_NOT_INITIALIZED uint64 = 1 E_INVALID_REPORT_VERSION uint64 = 2 E_CALLBACK_DATA_NOT_CONSUMED uint64 = 3 E_RECEIVER_NOT_REGISTERED uint64 = 4 )
Constants
View Source
const FunctionInfo = `` /* 558-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockForwarderContract ¶
type MockForwarderContract struct {
*bind.BoundContract
// contains filtered or unexported fields
}
func (MockForwarderContract) Encoder ¶
func (c MockForwarderContract) Encoder() MockForwarderEncoder
func (MockForwarderContract) Initialize ¶
func (c MockForwarderContract) Initialize(opts *bind.TransactOpts) (*api.PendingTransaction, error)
func (MockForwarderContract) Report ¶
func (c MockForwarderContract) Report(opts *bind.TransactOpts, receiver aptos.AccountAddress, rawReport []byte, Signatures [][]byte) (*api.PendingTransaction, error)
type MockForwarderEncoder ¶
type MockForwarderEncoder interface {
Initialize() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
Report(receiver aptos.AccountAddress, rawReport []byte, Signatures [][]byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
Dispatch(receiver aptos.AccountAddress, metadata []byte, data []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
}
type MockForwarderInterface ¶
type MockForwarderInterface interface {
Initialize(opts *bind.TransactOpts) (*api.PendingTransaction, error)
Report(opts *bind.TransactOpts, receiver aptos.AccountAddress, rawReport []byte, Signatures [][]byte) (*api.PendingTransaction, error)
// Encoder returns the encoder implementation of this module.
Encoder() MockForwarderEncoder
}
func NewMockForwarder ¶
func NewMockForwarder(address aptos.AccountAddress, client aptos.AptosRpcClient) MockForwarderInterface
type ReportProcessed ¶
type ReportProcessed struct {
Receiver aptos.AccountAddress `move:"address"`
WorkflowExecutionId []byte `move:"vector<u8>"`
ReportId []byte `move:"vector<u8>"`
}
type State ¶
type State struct {
Owner aptos.AccountAddress `move:"address"`
}
Click to show internal directories.
Click to hide internal directories.