datasource

package
v0.77.5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeInvalid                        = definition.ContentTypeInvalid
	ContentTypeOracle                         = definition.ContentTypeOracle
	ContentTypeEthOracle                      = definition.ContentTypeEthOracle
	ContentTypeInternalTimeTermination        = definition.ContentTypeInternalTimeTermination
	ContentTypeInternalTimeTriggerTermination = definition.ContentTypeInternalTimeTriggerTermination
)

Variables

This section is empty.

Functions

func DefinitionFromProto

func DefinitionFromProto(protoConfig *vegapb.DataSourceDefinition) (common.DataSourceType, error)

func NewDefinitionWith

func NewDefinitionWith(tp common.DataSourceType) *definition.Definition

Types

type Spec

type Spec struct {
	ID        string
	CreatedAt int64
	UpdatedAt int64
	Data      *definition.Definition
	Status    common.SpecStatus
}

func FromOracleSpecProto

func FromOracleSpecProto(specProto *vegapb.OracleSpec) *Spec

func SpecFromDefinition

func SpecFromDefinition(d definition.Definition) *Spec

func SpecFromProto

func SpecFromProto(specProto *vegapb.DataSourceSpec) *Spec

func (*Spec) FromDefinition

func (s *Spec) FromDefinition(d *definition.Definition) *Spec

func (Spec) GetDefinition

func (s Spec) GetDefinition() definition.Definition

func (*Spec) IntoProto

func (s *Spec) IntoProto() *vegapb.DataSourceSpec

func (*Spec) String

func (s *Spec) String() string

type SpecBindingForCompositePrice added in v0.74.0

type SpecBindingForCompositePrice struct {
	PriceSourceProperty string
}

func SpecBindingForCompositePriceFromProto added in v0.74.0

func SpecBindingForCompositePriceFromProto(o *vegapb.SpecBindingForCompositePrice) *SpecBindingForCompositePrice

func (SpecBindingForCompositePrice) DeepClone added in v0.74.0

func (SpecBindingForCompositePrice) IntoProto added in v0.74.0

func (SpecBindingForCompositePrice) String added in v0.74.0

type SpecBindingForFuture

type SpecBindingForFuture struct {
	SettlementDataProperty     string
	TradingTerminationProperty string
}

func (SpecBindingForFuture) DeepClone

func (SpecBindingForFuture) IntoProto

func (SpecBindingForFuture) String

func (b SpecBindingForFuture) String() string

type SpecBindingForPerps

type SpecBindingForPerps struct {
	SettlementDataProperty     string
	SettlementScheduleProperty string
}

func (SpecBindingForPerps) DeepClone

func (SpecBindingForPerps) IntoProto

func (SpecBindingForPerps) String

func (b SpecBindingForPerps) String() string

Directories

Path Synopsis
external
ethcall/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
ethverifier/mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
internal
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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