Documentation ¶
Index ¶
- Constants
- func DefinitionFromProto(protoConfig *vegapb.DataSourceDefinition) (common.DataSourceType, error)
- func NewDefinition(tp definition.ContentType) *definition.Definition
- func NewDefinitionWith(tp common.DataSourceType) *definition.Definition
- type Spec
- type SpecBindingForCompositePrice
- type SpecBindingForFuture
- type SpecBindingForPerps
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 NewDefinition ¶
func NewDefinition(tp definition.ContentType) *definition.Definition
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
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 (b SpecBindingForCompositePrice) DeepClone() *SpecBindingForCompositePrice
func (SpecBindingForCompositePrice) IntoProto ¶ added in v0.74.0
func (b SpecBindingForCompositePrice) IntoProto() *vegapb.SpecBindingForCompositePrice
func (SpecBindingForCompositePrice) String ¶ added in v0.74.0
func (b SpecBindingForCompositePrice) String() string
type SpecBindingForFuture ¶
type SpecBindingForFuture struct { SettlementDataProperty string TradingTerminationProperty string }
func SpecBindingForFutureFromProto ¶
func SpecBindingForFutureFromProto(o *vegapb.DataSourceSpecToFutureBinding) *SpecBindingForFuture
func (SpecBindingForFuture) DeepClone ¶
func (b SpecBindingForFuture) DeepClone() *SpecBindingForFuture
func (SpecBindingForFuture) IntoProto ¶
func (b SpecBindingForFuture) IntoProto() *vegapb.DataSourceSpecToFutureBinding
func (SpecBindingForFuture) String ¶
func (b SpecBindingForFuture) String() string
type SpecBindingForPerps ¶
func SpecBindingForPerpsFromProto ¶
func SpecBindingForPerpsFromProto(o *vegapb.DataSourceSpecToPerpetualBinding) *SpecBindingForPerps
func (SpecBindingForPerps) DeepClone ¶
func (b SpecBindingForPerps) DeepClone() *SpecBindingForPerps
func (SpecBindingForPerps) IntoProto ¶
func (b SpecBindingForPerps) IntoProto() *vegapb.DataSourceSpecToPerpetualBinding
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. |
Click to show internal directories.
Click to hide internal directories.