module_ocr3_base

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 (
	MAX_NUM_ORACLES                   uint64 = 256
	OCR_PLUGIN_TYPE_COMMIT            byte   = 0
	OCR_PLUGIN_TYPE_EXECUTION         byte   = 1
	E_BIG_F_MUST_BE_POSITIVE          uint64 = 1
	E_STATIC_CONFIG_CANNOT_BE_CHANGED uint64 = 2
	E_TOO_MANY_SIGNERS                uint64 = 3
	E_BIG_F_TOO_HIGH                  uint64 = 4
	E_TOO_MANY_TRANSMITTERS           uint64 = 5
	E_NO_TRANSMITTERS                 uint64 = 6
	E_REPEATED_SIGNERS                uint64 = 7
	E_REPEATED_TRANSMITTERS           uint64 = 8
	E_FORKED_CHAIN                    uint64 = 9
	E_CONFIG_DIGEST_MISMATCH          uint64 = 10
	E_UNAUTHORIZED_TRANSMITTER        uint64 = 11
	E_WRONG_NUMBER_OF_SIGNATURES      uint64 = 12
	E_COULD_NOT_VALIDATE_SIGNER_KEY   uint64 = 13
	E_INVALID_REPORT_CONTEXT_LENGTH   uint64 = 14
	E_INVALID_CONFIG_DIGEST_LENGTH    uint64 = 15
	E_INVALID_SEQUENCE_LENGTH         uint64 = 16
	E_UNAUTHORIZED_SIGNER             uint64 = 17
	E_NON_UNIQUE_SIGNATURES           uint64 = 18
	E_INVALID_SIGNATURE               uint64 = 19
	E_ZERO_ADDRESS_NOT_ALLOWED        uint64 = 20
	E_INVALID_SIGNATURE_LENGTH        uint64 = 21
)

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigInfo

type ConfigInfo struct {
	ConfigDigest                   []byte `move:"vector<u8>"`
	BigF                           byte   `move:"u8"`
	N                              byte   `move:"u8"`
	IsSignatureVerificationEnabled bool   `move:"bool"`
}

type ConfigSet

type ConfigSet struct {
	OcrPluginType byte                   `move:"u8"`
	ConfigDigest  []byte                 `move:"vector<u8>"`
	Signers       [][]byte               `move:"vector<vector<u8>>"`
	Transmitters  []aptos.AccountAddress `move:"vector<address>"`
	BigF          byte                   `move:"u8"`
}

type OCR3BaseState

type OCR3BaseState struct {
	ChainId byte `move:"u8"`
}

type OCRConfig

type OCRConfig struct {
	ConfigInfo   ConfigInfo             `move:"ConfigInfo"`
	Signers      [][]byte               `move:"vector<vector<u8>>"`
	Transmitters []aptos.AccountAddress `move:"vector<address>"`
}

type Ocr3BaseContract

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

func (Ocr3BaseContract) DeserializeSequenceBytes

func (c Ocr3BaseContract) DeserializeSequenceBytes(sequenceBytes []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (Ocr3BaseContract) Encoder

func (c Ocr3BaseContract) Encoder() Ocr3BaseEncoder

func (Ocr3BaseContract) HashReport

func (c Ocr3BaseContract) HashReport(report []byte, configDigest []byte, sequenceBytes []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (Ocr3BaseContract) New

func (c Ocr3BaseContract) New() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (Ocr3BaseContract) OcrPluginTypeCommit

func (c Ocr3BaseContract) OcrPluginTypeCommit() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (Ocr3BaseContract) OcrPluginTypeExecution

func (c Ocr3BaseContract) OcrPluginTypeExecution() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

type Ocr3BaseEncoder

type Ocr3BaseEncoder interface {
	New() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	OcrPluginTypeCommit() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	OcrPluginTypeExecution() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	DeserializeSequenceBytes(sequenceBytes []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	HashReport(report []byte, configDigest []byte, sequenceBytes []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
}

type Ocr3BaseInterface

type Ocr3BaseInterface interface {

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

func NewOcr3Base

func NewOcr3Base(address aptos.AccountAddress, client aptos.AptosRpcClient) Ocr3BaseInterface

type Oracle

type Oracle struct {
	Index byte `move:"u8"`
	Role  byte `move:"u8"`
}

type Transmitted

type Transmitted struct {
	OcrPluginType  byte   `move:"u8"`
	ConfigDigest   []byte `move:"vector<u8>"`
	SequenceNumber uint64 `move:"u64"`
}

Jump to

Keyboard shortcuts

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