marshallers

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 10 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 MarshalDepositStatus

func MarshalDepositStatus(s vega.Deposit_Status) graphql.Marshaler

func MarshalDispatchMetric

func MarshalDispatchMetric(s vega.DispatchMetric) 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 MarshalProposalRejectionReason

func MarshalProposalRejectionReason(s vega.ProposalError) graphql.Marshaler

func MarshalProposalState

func MarshalProposalState(s vega.Proposal_State) graphql.Marshaler

func MarshalSide

func MarshalSide(s vega.Side) graphql.Marshaler

func MarshalStakeLinkingType

func MarshalStakeLinkingType(s eventspb.StakeLinking_Type) 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 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{}) (oraclespb.Condition_Operator, error)

func UnmarshalDepositStatus

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

func UnmarshalDispatchMetric

func UnmarshalDispatchMetric(v interface{}) (vega.DispatchMetric, 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{}) (oraclespb.OracleSpec_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 UnmarshalPropertyKeyType

func UnmarshalPropertyKeyType(v interface{}) (oraclespb.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 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 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 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