module_mock_forwarder

package
v0.0.0-...-d57db48 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Dispatch

func (c MockForwarderContract) Dispatch(receiver aptos.AccountAddress, metadata []byte, data []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (MockForwarderContract) Encoder

func (MockForwarderContract) Initialize

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL