Documentation
¶
Index ¶
- Constants
- type Config
- type ConfigId
- type ConfigSet
- type ForwarderContract
- func (c ForwarderContract) AcceptOwnership(opts *bind.TransactOpts) (*api.PendingTransaction, error)
- func (c ForwarderContract) ClearConfig(opts *bind.TransactOpts, donId uint32, configVersion uint32) (*api.PendingTransaction, error)
- func (c ForwarderContract) Dispatch(receiver aptos.AccountAddress, metadata []byte, data []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
- func (c ForwarderContract) Encoder() ForwarderEncoder
- func (c ForwarderContract) GetConfig(opts *bind.CallOpts, donId uint32, configVersion uint32) (Config, error)
- func (c ForwarderContract) GetOwner(opts *bind.CallOpts) (aptos.AccountAddress, error)
- func (c ForwarderContract) GetStateAddr() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
- func (c ForwarderContract) GetTransmissionState(opts *bind.CallOpts, receiver aptos.AccountAddress, workflowExecutionId []byte, ...) (bool, error)
- func (c ForwarderContract) GetTransmitter(opts *bind.CallOpts, receiver aptos.AccountAddress, workflowExecutionId []byte, ...) (*aptos.AccountAddress, error)
- func (c ForwarderContract) Report(opts *bind.TransactOpts, receiver aptos.AccountAddress, rawReport []byte, ...) (*api.PendingTransaction, error)
- func (c ForwarderContract) SetConfig(opts *bind.TransactOpts, donId uint32, configVersion uint32, f byte, ...) (*api.PendingTransaction, error)
- func (c ForwarderContract) SignatureFromBytes(bytes []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
- func (c ForwarderContract) ToU16be(data []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
- func (c ForwarderContract) ToU32be(data []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
- func (c ForwarderContract) TransferOwnership(opts *bind.TransactOpts, to aptos.AccountAddress) (*api.PendingTransaction, error)
- func (c ForwarderContract) TransmissionId(receiver aptos.AccountAddress, workflowExecutionId []byte, reportId uint16) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
- func (c ForwarderContract) ValidateAndProcessReport(receiver aptos.AccountAddress, rawReport []byte, signatures []Signature) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
- type ForwarderEncoder
- type ForwarderInterface
- type OracleSet
- type OwnershipTransferRequested
- type OwnershipTransferred
- type ReportProcessed
- type Signature
- type State
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 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) Encoder ¶
func (c ForwarderContract) Encoder() ForwarderEncoder
func (ForwarderContract) GetOwner ¶
func (c ForwarderContract) GetOwner(opts *bind.CallOpts) (aptos.AccountAddress, error)
func (ForwarderContract) GetStateAddr ¶
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 (ForwarderContract) TransferOwnership ¶
func (c ForwarderContract) TransferOwnership(opts *bind.TransactOpts, to aptos.AccountAddress) (*api.PendingTransaction, error)
func (ForwarderContract) TransmissionId ¶
func (ForwarderContract) ValidateAndProcessReport ¶
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 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 State ¶
type State struct {
OwnerAddress aptos.AccountAddress `move:"address"`
PendingOwnerAddress aptos.AccountAddress `move:"address"`
}
Click to show internal directories.
Click to hide internal directories.