marshallers

package
v0.73.6-preview.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidLedgerEntryField = errors.New("invalid ledger entry field")
View Source
var ErrUnimplemented = errors.New("unmarshaller not implemented as this API is query only")

Functions

func MarshalAccountField

func MarshalAccountField(*v2.AccountField) graphql.Marshaler

func MarshalAccountType

func MarshalAccountType(t vega.AccountType) graphql.Marshaler

func MarshalAssetStatus

func MarshalAssetStatus(s vega.Asset_Status) graphql.Marshaler

func MarshalAuctionTrigger

func MarshalAuctionTrigger(s vega.AuctionTrigger) graphql.Marshaler

func MarshalConditionOperator

func MarshalConditionOperator(s datapb.Condition_Operator) graphql.Marshaler

func MarshalDepositStatus

func MarshalDepositStatus(s vega.Deposit_Status) graphql.Marshaler

func MarshalDispatchMetric

func MarshalDispatchMetric(s vega.DispatchMetric) graphql.Marshaler

func MarshalDistributionStrategy added in v0.73.0

func MarshalDistributionStrategy(t vega.DistributionStrategy) graphql.Marshaler

func MarshalEntityScope added in v0.73.0

func MarshalEntityScope(t vega.EntityScope) graphql.Marshaler

func MarshalFundingPeriodDataPointSource added in v0.73.0

func MarshalFundingPeriodDataPointSource(s eventspb.FundingPeriodDataPoint_Source) graphql.Marshaler

func MarshalIndividualScope added in v0.73.0

func MarshalIndividualScope(t vega.IndividualScope) graphql.Marshaler

func MarshalInterval

func MarshalInterval(s vega.Interval) graphql.Marshaler

func MarshalLedgerEntryField added in v0.58.0

func MarshalLedgerEntryField(*v2.LedgerEntryField) graphql.Marshaler

func MarshalLiquidityProvisionStatus

func MarshalLiquidityProvisionStatus(s vega.LiquidityProvision_Status) graphql.Marshaler

func MarshalMarketState

func MarshalMarketState(s vega.Market_State) graphql.Marshaler

func MarshalMarketTradingMode

func MarshalMarketTradingMode(s vega.Market_TradingMode) graphql.Marshaler

func MarshalNodeStatus

func MarshalNodeStatus(s vega.NodeStatus) graphql.Marshaler

func MarshalOrderRejectionReason

func MarshalOrderRejectionReason(s vega.OrderError) graphql.Marshaler

func MarshalOrderStatus

func MarshalOrderStatus(s vega.Order_Status) graphql.Marshaler

func MarshalOrderTimeInForce

func MarshalOrderTimeInForce(s vega.Order_TimeInForce) graphql.Marshaler

func MarshalOrderType

func MarshalOrderType(s vega.Order_Type) graphql.Marshaler

func MarshalPeggedReference

func MarshalPeggedReference(s vega.PeggedReference) graphql.Marshaler

func MarshalPositionStatus added in v0.68.0

func MarshalPositionStatus(s vega.PositionStatus) graphql.Marshaler

func MarshalPropertyKeyType

func MarshalPropertyKeyType(s datapb.PropertyKey_Type) graphql.Marshaler

func MarshalProposalRejectionReason

func MarshalProposalRejectionReason(s vega.ProposalError) graphql.Marshaler

func MarshalProposalState

func MarshalProposalState(s vega.Proposal_State) graphql.Marshaler

func MarshalProtocolUpgradeProposalStatus added in v0.61.0

func MarshalProtocolUpgradeProposalStatus(s eventspb.ProtocolUpgradeProposalStatus) graphql.Marshaler

func MarshalSide

func MarshalSide(s vega.Side) graphql.Marshaler

func MarshalStakeLinkingType

func MarshalStakeLinkingType(s eventspb.StakeLinking_Type) graphql.Marshaler

func MarshalStopOrderExpiryStrategy added in v0.72.0

func MarshalStopOrderExpiryStrategy(s vega.StopOrder_ExpiryStrategy) graphql.Marshaler

func MarshalStopOrderRejectionReason added in v0.73.0

func MarshalStopOrderRejectionReason(s vega.StopOrder_RejectionReason) graphql.Marshaler

func MarshalStopOrderStatus added in v0.72.0

func MarshalStopOrderStatus(s vega.StopOrder_Status) graphql.Marshaler

func MarshalStopOrderTriggerDirection added in v0.72.0

func MarshalStopOrderTriggerDirection(s vega.StopOrder_TriggerDirection) graphql.Marshaler

func MarshalTimestamp

func MarshalTimestamp(t int64) graphql.Marshaler

func MarshalTradeType

func MarshalTradeType(s vega.Trade_Type) graphql.Marshaler

func MarshalTransferStatus

func MarshalTransferStatus(s eventspb.Transfer_Status) graphql.Marshaler

func MarshalTransferType added in v0.61.0

func MarshalTransferType(t vega.TransferType) graphql.Marshaler

func MarshalUint32

func MarshalUint32(t uint32) graphql.Marshaler

func MarshalValidatorStatus

func MarshalValidatorStatus(s vega.ValidatorNodeStatus) graphql.Marshaler

func MarshalVoteValue

func MarshalVoteValue(s vega.Vote_Value) graphql.Marshaler

func MarshalWithdrawalStatus

func MarshalWithdrawalStatus(s vega.Withdrawal_Status) graphql.Marshaler

func UnmarshalAccountField

func UnmarshalAccountField(i interface{}) (*v2.AccountField, error)

func UnmarshalAccountType

func UnmarshalAccountType(v interface{}) (vega.AccountType, error)

func UnmarshalAssetStatus

func UnmarshalAssetStatus(v interface{}) (vega.Asset_Status, error)

func UnmarshalAuctionTrigger

func UnmarshalAuctionTrigger(v interface{}) (vega.AuctionTrigger, error)

func UnmarshalConditionOperator

func UnmarshalConditionOperator(v interface{}) (datapb.Condition_Operator, error)

func UnmarshalDepositStatus

func UnmarshalDepositStatus(v interface{}) (vega.Deposit_Status, error)

func UnmarshalDispatchMetric

func UnmarshalDispatchMetric(v interface{}) (vega.DispatchMetric, error)

func UnmarshalDistributionStrategy added in v0.73.0

func UnmarshalDistributionStrategy(v interface{}) (vega.DistributionStrategy, error)

func UnmarshalEntityScope added in v0.73.0

func UnmarshalEntityScope(v interface{}) (vega.EntityScope, error)

func UnmarshalFundingPeriodDataPointSource added in v0.73.0

func UnmarshalFundingPeriodDataPointSource(v interface{}) (eventspb.FundingPeriodDataPoint_Source, error)

func UnmarshalIndividualScope added in v0.73.0

func UnmarshalIndividualScope(v interface{}) (vega.IndividualScope, error)

func UnmarshalInterval

func UnmarshalInterval(v interface{}) (vega.Interval, error)

func UnmarshalLedgerEntryField added in v0.58.0

func UnmarshalLedgerEntryField(i interface{}) (*v2.LedgerEntryField, error)

func UnmarshalLiquidityProvisionStatus

func UnmarshalLiquidityProvisionStatus(v interface{}) (vega.LiquidityProvision_Status, error)

func UnmarshalMarketState

func UnmarshalMarketState(v interface{}) (vega.Market_State, error)

func UnmarshalMarketTradingMode

func UnmarshalMarketTradingMode(v interface{}) (vega.Market_TradingMode, error)

func UnmarshalNodeSignatureKind

func UnmarshalNodeSignatureKind(v interface{}) (commandspb.NodeSignatureKind, error)

func UnmarshalNodeStatus

func UnmarshalNodeStatus(v interface{}) (vega.NodeStatus, error)

func UnmarshalOracleSpecStatus

func UnmarshalOracleSpecStatus(v interface{}) (vegapb.DataSourceSpec_Status, error)

func UnmarshalOrderRejectionReason

func UnmarshalOrderRejectionReason(v interface{}) (vega.OrderError, error)

func UnmarshalOrderStatus

func UnmarshalOrderStatus(v interface{}) (vega.Order_Status, error)

func UnmarshalOrderTimeInForce

func UnmarshalOrderTimeInForce(v interface{}) (vega.Order_TimeInForce, error)

func UnmarshalOrderType

func UnmarshalOrderType(v interface{}) (vega.Order_Type, error)

func UnmarshalPeggedReference

func UnmarshalPeggedReference(v interface{}) (vega.PeggedReference, error)

func UnmarshalPositionStatus added in v0.68.0

func UnmarshalPositionStatus(v interface{}) (vega.PositionStatus, error)

func UnmarshalPropertyKeyType

func UnmarshalPropertyKeyType(v interface{}) (datapb.PropertyKey_Type, error)

func UnmarshalProposalRejectionReason

func UnmarshalProposalRejectionReason(v interface{}) (vega.ProposalError, error)

func UnmarshalProposalState

func UnmarshalProposalState(v interface{}) (vega.Proposal_State, error)

func UnmarshalProposalType

func UnmarshalProposalType(v interface{}) (v2.ListGovernanceDataRequest_Type, error)

func UnmarshalProtocolUpgradeProposalStatus added in v0.61.0

func UnmarshalProtocolUpgradeProposalStatus(v interface{}) (eventspb.ProtocolUpgradeProposalStatus, error)

func UnmarshalSide

func UnmarshalSide(v interface{}) (vega.Side, error)

func UnmarshalStakeLinkingStatus

func UnmarshalStakeLinkingStatus(v interface{}) (eventspb.StakeLinking_Status, error)

func UnmarshalStakeLinkingType

func UnmarshalStakeLinkingType(v interface{}) (eventspb.StakeLinking_Type, error)

func UnmarshalStopOrderExpiryStrategy added in v0.72.0

func UnmarshalStopOrderExpiryStrategy(v interface{}) (vega.StopOrder_ExpiryStrategy, error)

func UnmarshalStopOrderRejectionReason added in v0.73.0

func UnmarshalStopOrderRejectionReason(v interface{}) (vega.StopOrder_RejectionReason, error)

func UnmarshalStopOrderStatus added in v0.72.0

func UnmarshalStopOrderStatus(v interface{}) (vega.StopOrder_Status, error)

func UnmarshalStopOrderTriggerDirection added in v0.72.0

func UnmarshalStopOrderTriggerDirection(v interface{}) (vega.StopOrder_TriggerDirection, error)

func UnmarshalTimestamp

func UnmarshalTimestamp(v interface{}) (int64, error)

func UnmarshalTradeType

func UnmarshalTradeType(v interface{}) (vega.Trade_Type, error)

func UnmarshalTransferStatus

func UnmarshalTransferStatus(v interface{}) (eventspb.Transfer_Status, error)

func UnmarshalTransferType added in v0.61.0

func UnmarshalTransferType(v interface{}) (vega.TransferType, error)

func UnmarshalUint32

func UnmarshalUint32(v interface{}) (uint32, error)

func UnmarshalValidatorStatus

func UnmarshalValidatorStatus(v interface{}) (vega.ValidatorNodeStatus, error)

func UnmarshalVoteValue

func UnmarshalVoteValue(v interface{}) (vega.Vote_Value, error)

func UnmarshalWithdrawalStatus

func UnmarshalWithdrawalStatus(v interface{}) (vega.Withdrawal_Status, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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