oraclevm

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

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

Constants

This section is empty.

Variables

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.

func (*AccelHost) Close

func (h *AccelHost) Close() error

Close releases the GPU session. The wrapped VM is left untouched.

func (*AccelHost) Session

func (h *AccelHost) Session() *accel.VMSession

Session returns the per-VM GPU session.

type AggregatedValue

type AggregatedValue = oraclevm.AggregatedValue

Re-exported public surface.

type Block

type Block = oraclevm.Block

Re-exported public surface.

type Config

type Config = oraclevm.Config

Re-exported public surface.

type Factory

type Factory = oraclevm.Factory

Re-exported public surface.

type Feed

type Feed = oraclevm.Feed

Re-exported public surface.

type FeedRoundKey

type FeedRoundKey = oraclevm.FeedRoundKey

Re-exported public surface.

type Genesis

type Genesis = oraclevm.Genesis

Re-exported public surface.

type GetAttestationArgs

type GetAttestationArgs = oraclevm.GetAttestationArgs

Service args/replies — re-exported.

type GetAttestationReply

type GetAttestationReply = oraclevm.GetAttestationReply

Service args/replies — re-exported.

type GetFeedArgs

type GetFeedArgs = oraclevm.GetFeedArgs

Service args/replies — re-exported.

type GetFeedReply

type GetFeedReply = oraclevm.GetFeedReply

Service args/replies — re-exported.

type GetValueArgs

type GetValueArgs = oraclevm.GetValueArgs

Service args/replies — re-exported.

type GetValueReply

type GetValueReply = oraclevm.GetValueReply

Service args/replies — re-exported.

type HealthArgs

type HealthArgs = oraclevm.HealthArgs

Service args/replies — re-exported.

type HealthReply

type HealthReply = oraclevm.HealthReply

Service args/replies — re-exported.

type Observation

type Observation = oraclevm.Observation

Re-exported public surface.

type OracleCommit

type OracleCommit = oraclevm.OracleCommit

Re-exported public surface.

type OracleRecord

type OracleRecord = oraclevm.OracleRecord

Re-exported public surface.

type OracleRequest

type OracleRequest = oraclevm.OracleRequest

Re-exported public surface.

type OracleVertex

type OracleVertex = oraclevm.OracleVertex

Re-exported public surface.

type RegisterFeedArgs

type RegisterFeedArgs = oraclevm.RegisterFeedArgs

Service args/replies — re-exported.

type RegisterFeedReply

type RegisterFeedReply = oraclevm.RegisterFeedReply

Service args/replies — re-exported.

type RequestKind

type RequestKind = oraclevm.RequestKind

Re-exported public surface.

type RequestStatus

type RequestStatus = oraclevm.RequestStatus

Re-exported public surface.

type Service

type Service = oraclevm.Service

Re-exported public surface.

type SubmitObservationArgs

type SubmitObservationArgs = oraclevm.SubmitObservationArgs

Service args/replies — re-exported.

type SubmitObservationReply

type SubmitObservationReply = oraclevm.SubmitObservationReply

Service args/replies — re-exported.

type VM

type VM = oraclevm.VM

Re-exported public surface.

Directories

Path Synopsis
cmd
plugin command

Jump to

Keyboard shortcuts

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