datasource

package
v0.73.7-preview.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 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 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