module_forwarder

package
v0.0.0-...-268577f Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	E_INVALID_DATA_LENGTH              uint64 = 1
	E_INVALID_SIGNER                   uint64 = 2
	E_DUPLICATE_SIGNER                 uint64 = 3
	E_INVALID_SIGNATURE_COUNT          uint64 = 4
	E_INVALID_SIGNATURE                uint64 = 5
	E_ALREADY_PROCESSED                uint64 = 6
	E_NOT_OWNER                        uint64 = 7
	E_MALFORMED_SIGNATURE              uint64 = 8
	E_FAULT_TOLERANCE_MUST_BE_POSITIVE uint64 = 9
	E_EXCESS_SIGNERS                   uint64 = 10
	E_INSUFFICIENT_SIGNERS             uint64 = 11
	E_CALLBACK_DATA_NOT_CONSUMED       uint64 = 12
	E_CANNOT_TRANSFER_TO_SELF          uint64 = 13
	E_NOT_PROPOSED_OWNER               uint64 = 14
	E_CONFIG_ID_NOT_FOUND              uint64 = 15
	E_INVALID_REPORT_VERSION           uint64 = 16
	MAX_ORACLES                        uint64 = 31
)

Constants

View Source
const FunctionInfo = `` /* 1973-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	F byte `move:"u8"`
}

type ConfigId

type ConfigId struct {
	DonId         uint32 `move:"u32"`
	ConfigVersion uint32 `move:"u32"`
}

type ConfigSet

type ConfigSet struct {
	DonId         uint32   `move:"u32"`
	ConfigVersion uint32   `move:"u32"`
	F             byte     `move:"u8"`
	Signers       [][]byte `move:"vector<vector<u8>>"`
}

type ForwarderContract

type ForwarderContract struct {
	*bind.BoundContract
	// contains filtered or unexported fields
}

func (ForwarderContract) AcceptOwnership

func (c ForwarderContract) AcceptOwnership(opts *bind.TransactOpts) (*api.PendingTransaction, error)

func (ForwarderContract) ClearConfig

func (c ForwarderContract) ClearConfig(opts *bind.TransactOpts, donId uint32, configVersion uint32) (*api.PendingTransaction, error)

func (ForwarderContract) Dispatch

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

func (ForwarderContract) Encoder

func (c ForwarderContract) Encoder() ForwarderEncoder

func (ForwarderContract) GetConfig

func (c ForwarderContract) GetConfig(opts *bind.CallOpts, donId uint32, configVersion uint32) (Config, error)

func (ForwarderContract) GetOwner

func (ForwarderContract) GetStateAddr

func (c ForwarderContract) GetStateAddr() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (ForwarderContract) GetTransmissionState

func (c ForwarderContract) GetTransmissionState(opts *bind.CallOpts, receiver aptos.AccountAddress, workflowExecutionId []byte, reportId uint16) (bool, error)

func (ForwarderContract) GetTransmitter

func (c ForwarderContract) GetTransmitter(opts *bind.CallOpts, receiver aptos.AccountAddress, workflowExecutionId []byte, reportId uint16) (*aptos.AccountAddress, error)

func (ForwarderContract) Report

func (c ForwarderContract) Report(opts *bind.TransactOpts, receiver aptos.AccountAddress, rawReport []byte, signatures [][]byte) (*api.PendingTransaction, error)

func (ForwarderContract) SetConfig

func (c ForwarderContract) SetConfig(opts *bind.TransactOpts, donId uint32, configVersion uint32, f byte, oracles [][]byte) (*api.PendingTransaction, error)

func (ForwarderContract) SignatureFromBytes

func (c ForwarderContract) SignatureFromBytes(bytes []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (ForwarderContract) ToU16be

func (c ForwarderContract) ToU16be(data []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (ForwarderContract) ToU32be

func (c ForwarderContract) ToU32be(data []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (ForwarderContract) TransferOwnership

func (ForwarderContract) TransmissionId

func (c ForwarderContract) TransmissionId(receiver aptos.AccountAddress, workflowExecutionId []byte, reportId uint16) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (ForwarderContract) ValidateAndProcessReport

func (c ForwarderContract) ValidateAndProcessReport(receiver aptos.AccountAddress, rawReport []byte, signatures []Signature) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

type ForwarderEncoder

type ForwarderEncoder interface {
	GetTransmissionState(receiver aptos.AccountAddress, workflowExecutionId []byte, reportId uint16) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	GetTransmitter(receiver aptos.AccountAddress, workflowExecutionId []byte, reportId uint16) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	GetOwner() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	GetConfig(donId uint32, configVersion uint32) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	SetConfig(donId uint32, configVersion uint32, f byte, oracles [][]byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	ClearConfig(donId uint32, configVersion uint32) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	Report(receiver aptos.AccountAddress, rawReport []byte, signatures [][]byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	TransferOwnership(to aptos.AccountAddress) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	AcceptOwnership() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	GetStateAddr() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	SignatureFromBytes(bytes []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	TransmissionId(receiver aptos.AccountAddress, workflowExecutionId []byte, reportId uint16) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	Dispatch(receiver aptos.AccountAddress, metadata []byte, data []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	ToU16be(data []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	ToU32be(data []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	ValidateAndProcessReport(receiver aptos.AccountAddress, rawReport []byte, signatures []Signature) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
}

type ForwarderInterface

type ForwarderInterface interface {
	GetTransmissionState(opts *bind.CallOpts, receiver aptos.AccountAddress, workflowExecutionId []byte, reportId uint16) (bool, error)
	GetTransmitter(opts *bind.CallOpts, receiver aptos.AccountAddress, workflowExecutionId []byte, reportId uint16) (*aptos.AccountAddress, error)
	GetOwner(opts *bind.CallOpts) (aptos.AccountAddress, error)
	GetConfig(opts *bind.CallOpts, donId uint32, configVersion uint32) (Config, error)

	SetConfig(opts *bind.TransactOpts, donId uint32, configVersion uint32, f byte, oracles [][]byte) (*api.PendingTransaction, error)
	ClearConfig(opts *bind.TransactOpts, donId uint32, configVersion uint32) (*api.PendingTransaction, error)
	Report(opts *bind.TransactOpts, receiver aptos.AccountAddress, rawReport []byte, signatures [][]byte) (*api.PendingTransaction, error)
	TransferOwnership(opts *bind.TransactOpts, to aptos.AccountAddress) (*api.PendingTransaction, error)
	AcceptOwnership(opts *bind.TransactOpts) (*api.PendingTransaction, error)

	// Encoder returns the encoder implementation of this module.
	Encoder() ForwarderEncoder
}

func NewForwarder

func NewForwarder(address aptos.AccountAddress, client aptos.AptosRpcClient) ForwarderInterface

type OracleSet

type OracleSet struct {
	DonId         uint32   `move:"u32"`
	ConfigVersion uint32   `move:"u32"`
	F             byte     `move:"u8"`
	Oracles       [][]byte `move:"vector<vector<u8>>"`
}

type OwnershipTransferRequested

type OwnershipTransferRequested struct {
	From aptos.AccountAddress `move:"address"`
	To   aptos.AccountAddress `move:"address"`
}

type OwnershipTransferred

type OwnershipTransferred struct {
	From aptos.AccountAddress `move:"address"`
	To   aptos.AccountAddress `move:"address"`
}

type ReportProcessed

type ReportProcessed struct {
	Receiver            aptos.AccountAddress `move:"address"`
	WorkflowExecutionId []byte               `move:"vector<u8>"`
	ReportId            uint16               `move:"u16"`
}

type Signature

type Signature struct {
}

type State

type State struct {
	OwnerAddress        aptos.AccountAddress `move:"address"`
	PendingOwnerAddress aptos.AccountAddress `move:"address"`
}

Jump to

Keyboard shortcuts

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