Documentation
¶
Overview ¶
Package oraclevm is a thin re-export of the canonical O-Chain VM implementation in github.com/luxfi/oracle/vm. The canonical source lives in luxfi/oracle so the standalone `oracled` operator daemon and the in-luxd plugin share one code path.
Index ¶
- Variables
- type AccelHost
- type AggregatedValue
- type Block
- type Config
- type Factory
- type Feed
- type FeedRoundKey
- type Genesis
- type GetAttestationArgs
- type GetAttestationReply
- type GetFeedArgs
- type GetFeedReply
- type GetValueArgs
- type GetValueReply
- type HealthArgs
- type HealthReply
- type Observation
- type OracleCommit
- type OracleRecord
- type OracleRequest
- type OracleVertex
- type RegisterFeedArgs
- type RegisterFeedReply
- type RequestKind
- type RequestStatus
- type Service
- type SubmitObservationArgs
- type SubmitObservationReply
- type VM
Constants ¶
This section is empty.
Variables ¶
var VMID = oraclevm.VMID
VMID is the canonical O-Chain VM identifier.
Functions ¶
This section is empty.
Types ¶
type AccelHost ¶
type AccelHost struct {
*VM
// contains filtered or unexported fields
}
AccelHost wraps an O-Chain VM with a per-VM GPU acceleration session. O-Chain is currently CPU-only; the session is allocated for future batch verification of oracle aggregation signatures, threshold commitments, and feed proofs.
chains/oraclevm re-exports luxfi/oracle/vm.VM as a type alias, so we cannot add a field to VM directly. AccelHost gives the operator an explicit composition point: build the VM, wrap it with NewAccelHost, and route GPU ops via host.Session().
func NewAccelHost ¶
func NewAccelHost(vm *VM, opts ...accel.VMSessionOption) (*AccelHost, error)
NewAccelHost creates a per-VM GPU session and binds it to vm. Returns ErrEmptyVMID when vm is nil. The session is created with PriorityNormal and no memory cap; tune via opts.
type GetAttestationArgs ¶
type GetAttestationArgs = oraclevm.GetAttestationArgs
Service args/replies — re-exported.
type GetAttestationReply ¶
type GetAttestationReply = oraclevm.GetAttestationReply
Service args/replies — re-exported.
type GetValueReply ¶
type GetValueReply = oraclevm.GetValueReply
Service args/replies — re-exported.
type RegisterFeedArgs ¶
type RegisterFeedArgs = oraclevm.RegisterFeedArgs
Service args/replies — re-exported.
type RegisterFeedReply ¶
type RegisterFeedReply = oraclevm.RegisterFeedReply
Service args/replies — re-exported.
type SubmitObservationArgs ¶
type SubmitObservationArgs = oraclevm.SubmitObservationArgs
Service args/replies — re-exported.
type SubmitObservationReply ¶
type SubmitObservationReply = oraclevm.SubmitObservationReply
Service args/replies — re-exported.