vega

package
v0.78.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: AGPL-3.0 Imports: 10 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Asset_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_PROPOSED",
		2: "STATUS_REJECTED",
		3: "STATUS_PENDING_LISTING",
		4: "STATUS_ENABLED",
	}
	Asset_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED":     0,
		"STATUS_PROPOSED":        1,
		"STATUS_REJECTED":        2,
		"STATUS_PENDING_LISTING": 3,
		"STATUS_ENABLED":         4,
	}
)

Enum value maps for Asset_Status.

View Source
var (
	DataSourceSpec_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_ACTIVE",
		2: "STATUS_DEACTIVATED",
	}
	DataSourceSpec_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_ACTIVE":      1,
		"STATUS_DEACTIVATED": 2,
	}
)

Enum value maps for DataSourceSpec_Status.

View Source
var (
	ErrInvalidMarketID                             = OrderError_ORDER_ERROR_INVALID_MARKET_ID
	ErrInvalidOrderID                              = OrderError_ORDER_ERROR_INVALID_ORDER_ID
	ErrOrderOutOfSequence                          = OrderError_ORDER_ERROR_OUT_OF_SEQUENCE
	ErrInvalidRemainingSize                        = OrderError_ORDER_ERROR_INVALID_REMAINING_SIZE
	ErrOrderRemovalFailure                         = OrderError_ORDER_ERROR_REMOVAL_FAILURE
	ErrInvalidExpirationDatetime                   = OrderError_ORDER_ERROR_INVALID_EXPIRATION_DATETIME
	ErrEditNotAllowed                              = OrderError_ORDER_ERROR_EDIT_NOT_ALLOWED
	ErrOrderAmendFailure                           = OrderError_ORDER_ERROR_AMEND_FAILURE
	ErrOrderNotFound                               = OrderError_ORDER_ERROR_NOT_FOUND
	ErrInvalidPartyID                              = OrderError_ORDER_ERROR_INVALID_PARTY_ID
	ErrInvalidSize                                 = OrderError_ORDER_ERROR_INVALID_SIZE
	ErrInvalidPersistence                          = OrderError_ORDER_ERROR_INVALID_PERSISTENCE
	ErrInvalidType                                 = OrderError_ORDER_ERROR_INVALID_TYPE
	ErrInvalidTimeInForce                          = OrderError_ORDER_ERROR_INVALID_TIME_IN_FORCE
	ErrPeggedOrderMustBeLimitOrder                 = OrderError_ORDER_ERROR_MUST_BE_LIMIT_ORDER
	ErrPeggedOrderMustBeGTTOrGTC                   = OrderError_ORDER_ERROR_MUST_BE_GTT_OR_GTC
	ErrPeggedOrderWithoutReferencePrice            = OrderError_ORDER_ERROR_WITHOUT_REFERENCE_PRICE
	ErrPeggedOrderBuyCannotReferenceBestAskPrice   = OrderError_ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE
	ErrPeggedOrderOffsetMustBeGreaterOrEqualToZero = OrderError_ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO
	ErrPeggedOrderSellCannotReferenceBestBidPrice  = OrderError_ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE
	ErrPeggedOrderOffsetMustBeGreaterThanZero      = OrderError_ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO
	ErrNonPersistentOrderOutOfBounds               = OrderError_ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS
)
View Source
var (
	ProposalError_name = map[int32]string{
		0:  "PROPOSAL_ERROR_UNSPECIFIED",
		1:  "PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON",
		2:  "PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE",
		3:  "PROPOSAL_ERROR_ENACT_TIME_TOO_SOON",
		4:  "PROPOSAL_ERROR_ENACT_TIME_TOO_LATE",
		5:  "PROPOSAL_ERROR_INSUFFICIENT_TOKENS",
		6:  "PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY",
		7:  "PROPOSAL_ERROR_NO_PRODUCT",
		8:  "PROPOSAL_ERROR_UNSUPPORTED_PRODUCT",
		11: "PROPOSAL_ERROR_NO_TRADING_MODE",
		12: "PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE",
		13: "PROPOSAL_ERROR_NODE_VALIDATION_FAILED",
		14: "PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD",
		15: "PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS",
		16: "PROPOSAL_ERROR_INVALID_ASSET",
		17: "PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS",
		18: "PROPOSAL_ERROR_NO_RISK_PARAMETERS",
		19: "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY",
		20: "PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE",
		21: "PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED",
		22: "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL",
		23: "PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE",
		25: "PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET",
		26: "PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT",
		30: "PROPOSAL_ERROR_INVALID_RISK_PARAMETER",
		31: "PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED",
		32: "PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED",
		33: "PROPOSAL_ERROR_INVALID_ASSET_DETAILS",
		34: "PROPOSAL_ERROR_UNKNOWN_TYPE",
		35: "PROPOSAL_ERROR_UNKNOWN_RISK_PARAMETER_TYPE",
		36: "PROPOSAL_ERROR_INVALID_FREEFORM",
		37: "PROPOSAL_ERROR_INSUFFICIENT_EQUITY_LIKE_SHARE",
		38: "PROPOSAL_ERROR_INVALID_MARKET",
		39: "PROPOSAL_ERROR_TOO_MANY_MARKET_DECIMAL_PLACES",
		40: "PROPOSAL_ERROR_TOO_MANY_PRICE_MONITORING_TRIGGERS",
		41: "PROPOSAL_ERROR_ERC20_ADDRESS_ALREADY_IN_USE",
		42: "PROPOSAL_ERROR_LP_PRICE_RANGE_NONPOSITIVE",
		43: "PROPOSAL_ERROR_LP_PRICE_RANGE_TOO_LARGE",
		44: "PROPOSAL_ERROR_LINEAR_SLIPPAGE_FACTOR_OUT_OF_RANGE",
		45: "PROPOSAL_ERROR_QUADRATIC_SLIPPAGE_FACTOR_OUT_OF_RANGE",
		46: "PROPOSAL_ERROR_INVALID_SPOT",
		47: "PROPOSAL_ERROR_SPOT_PRODUCT_DISABLED",
		48: "PROPOSAL_ERROR_INVALID_SUCCESSOR_MARKET",
		49: "PROPOSAL_ERROR_GOVERNANCE_TRANSFER_PROPOSAL_FAILED",
		50: "PROPOSAL_ERROR_GOVERNANCE_TRANSFER_PROPOSAL_INVALID",
		51: "PROPOSAL_ERROR_GOVERNANCE_CANCEL_TRANSFER_PROPOSAL_INVALID",
		52: "PROPOSAL_ERROR_INVALID_MARKET_STATE_UPDATE",
		53: "PROPOSAL_ERROR_INVALID_SLA_PARAMS",
		54: "PROPOSAL_ERROR_MISSING_SLA_PARAMS",
		55: "PROPOSAL_ERROR_INVALID_PERPETUAL_PRODUCT",
		56: "PROPOSAL_ERROR_INVALID_REFERRAL_PROGRAM",
		57: "PROPOSAL_ERROR_INVALID_VOLUME_DISCOUNT_PROGRAM",
		58: "PROPOSAL_ERROR_PROPOSAL_IN_BATCH_REJECTED",
		59: "PROPOSAL_ERROR_PROPOSAL_IN_BATCH_DECLINED",
		60: "PROPOSAL_ERROR_INVALID_SIZE_DECIMAL_PLACES",
		61: "PROPOSAL_ERROR_INVALID_VOLUME_REBATE_PROGRAM",
	}
	ProposalError_value = map[string]int32{
		"PROPOSAL_ERROR_UNSPECIFIED":                                 0,
		"PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON":                         1,
		"PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE":                         2,
		"PROPOSAL_ERROR_ENACT_TIME_TOO_SOON":                         3,
		"PROPOSAL_ERROR_ENACT_TIME_TOO_LATE":                         4,
		"PROPOSAL_ERROR_INSUFFICIENT_TOKENS":                         5,
		"PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY":                 6,
		"PROPOSAL_ERROR_NO_PRODUCT":                                  7,
		"PROPOSAL_ERROR_UNSUPPORTED_PRODUCT":                         8,
		"PROPOSAL_ERROR_NO_TRADING_MODE":                             11,
		"PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE":                    12,
		"PROPOSAL_ERROR_NODE_VALIDATION_FAILED":                      13,
		"PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD":                 14,
		"PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS":              15,
		"PROPOSAL_ERROR_INVALID_ASSET":                               16,
		"PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS":                     17,
		"PROPOSAL_ERROR_NO_RISK_PARAMETERS":                          18,
		"PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY":               19,
		"PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE":             20,
		"PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED":         21,
		"PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL":          22,
		"PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE":          23,
		"PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET":                25,
		"PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT":                      26,
		"PROPOSAL_ERROR_INVALID_RISK_PARAMETER":                      30,
		"PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED":              31,
		"PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED":         32,
		"PROPOSAL_ERROR_INVALID_ASSET_DETAILS":                       33,
		"PROPOSAL_ERROR_UNKNOWN_TYPE":                                34,
		"PROPOSAL_ERROR_UNKNOWN_RISK_PARAMETER_TYPE":                 35,
		"PROPOSAL_ERROR_INVALID_FREEFORM":                            36,
		"PROPOSAL_ERROR_INSUFFICIENT_EQUITY_LIKE_SHARE":              37,
		"PROPOSAL_ERROR_INVALID_MARKET":                              38,
		"PROPOSAL_ERROR_TOO_MANY_MARKET_DECIMAL_PLACES":              39,
		"PROPOSAL_ERROR_TOO_MANY_PRICE_MONITORING_TRIGGERS":          40,
		"PROPOSAL_ERROR_ERC20_ADDRESS_ALREADY_IN_USE":                41,
		"PROPOSAL_ERROR_LP_PRICE_RANGE_NONPOSITIVE":                  42,
		"PROPOSAL_ERROR_LP_PRICE_RANGE_TOO_LARGE":                    43,
		"PROPOSAL_ERROR_LINEAR_SLIPPAGE_FACTOR_OUT_OF_RANGE":         44,
		"PROPOSAL_ERROR_QUADRATIC_SLIPPAGE_FACTOR_OUT_OF_RANGE":      45,
		"PROPOSAL_ERROR_INVALID_SPOT":                                46,
		"PROPOSAL_ERROR_SPOT_PRODUCT_DISABLED":                       47,
		"PROPOSAL_ERROR_INVALID_SUCCESSOR_MARKET":                    48,
		"PROPOSAL_ERROR_GOVERNANCE_TRANSFER_PROPOSAL_FAILED":         49,
		"PROPOSAL_ERROR_GOVERNANCE_TRANSFER_PROPOSAL_INVALID":        50,
		"PROPOSAL_ERROR_GOVERNANCE_CANCEL_TRANSFER_PROPOSAL_INVALID": 51,
		"PROPOSAL_ERROR_INVALID_MARKET_STATE_UPDATE":                 52,
		"PROPOSAL_ERROR_INVALID_SLA_PARAMS":                          53,
		"PROPOSAL_ERROR_MISSING_SLA_PARAMS":                          54,
		"PROPOSAL_ERROR_INVALID_PERPETUAL_PRODUCT":                   55,
		"PROPOSAL_ERROR_INVALID_REFERRAL_PROGRAM":                    56,
		"PROPOSAL_ERROR_INVALID_VOLUME_DISCOUNT_PROGRAM":             57,
		"PROPOSAL_ERROR_PROPOSAL_IN_BATCH_REJECTED":                  58,
		"PROPOSAL_ERROR_PROPOSAL_IN_BATCH_DECLINED":                  59,
		"PROPOSAL_ERROR_INVALID_SIZE_DECIMAL_PLACES":                 60,
		"PROPOSAL_ERROR_INVALID_VOLUME_REBATE_PROGRAM":               61,
	}
)

Enum value maps for ProposalError.

View Source
var (
	MarketStateUpdateType_name = map[int32]string{
		0: "MARKET_STATE_UPDATE_TYPE_UNSPECIFIED",
		1: "MARKET_STATE_UPDATE_TYPE_TERMINATE",
		2: "MARKET_STATE_UPDATE_TYPE_SUSPEND",
		3: "MARKET_STATE_UPDATE_TYPE_RESUME",
	}
	MarketStateUpdateType_value = map[string]int32{
		"MARKET_STATE_UPDATE_TYPE_UNSPECIFIED": 0,
		"MARKET_STATE_UPDATE_TYPE_TERMINATE":   1,
		"MARKET_STATE_UPDATE_TYPE_SUSPEND":     2,
		"MARKET_STATE_UPDATE_TYPE_RESUME":      3,
	}
)

Enum value maps for MarketStateUpdateType.

View Source
var (
	GovernanceTransferType_name = map[int32]string{
		0: "GOVERNANCE_TRANSFER_TYPE_UNSPECIFIED",
		1: "GOVERNANCE_TRANSFER_TYPE_ALL_OR_NOTHING",
		2: "GOVERNANCE_TRANSFER_TYPE_BEST_EFFORT",
	}
	GovernanceTransferType_value = map[string]int32{
		"GOVERNANCE_TRANSFER_TYPE_UNSPECIFIED":    0,
		"GOVERNANCE_TRANSFER_TYPE_ALL_OR_NOTHING": 1,
		"GOVERNANCE_TRANSFER_TYPE_BEST_EFFORT":    2,
	}
)

Enum value maps for GovernanceTransferType.

View Source
var (
	GovernanceData_Type_name = map[int32]string{
		0: "TYPE_SINGLE_OR_UNSPECIFIED",
		1: "TYPE_BATCH",
	}
	GovernanceData_Type_value = map[string]int32{
		"TYPE_SINGLE_OR_UNSPECIFIED": 0,
		"TYPE_BATCH":                 1,
	}
)

Enum value maps for GovernanceData_Type.

View Source
var (
	Proposal_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_FAILED",
		2: "STATE_OPEN",
		3: "STATE_PASSED",
		4: "STATE_REJECTED",
		5: "STATE_DECLINED",
		6: "STATE_ENACTED",
		7: "STATE_WAITING_FOR_NODE_VOTE",
	}
	Proposal_State_value = map[string]int32{
		"STATE_UNSPECIFIED":           0,
		"STATE_FAILED":                1,
		"STATE_OPEN":                  2,
		"STATE_PASSED":                3,
		"STATE_REJECTED":              4,
		"STATE_DECLINED":              5,
		"STATE_ENACTED":               6,
		"STATE_WAITING_FOR_NODE_VOTE": 7,
	}
)

Enum value maps for Proposal_State.

View Source
var (
	Vote_Value_name = map[int32]string{
		0: "VALUE_UNSPECIFIED",
		1: "VALUE_NO",
		2: "VALUE_YES",
	}
	Vote_Value_value = map[string]int32{
		"VALUE_UNSPECIFIED": 0,
		"VALUE_NO":          1,
		"VALUE_YES":         2,
	}
)

Enum value maps for Vote_Value.

View Source
var (
	ErrNilTradableInstrument = errors.New("nil tradable instrument")
	ErrNilInstrument         = errors.New("nil instrument")
	ErrNilProduct            = errors.New("nil product")
	ErrUnknownAsset          = errors.New("unknown asset")
)
View Source
var (
	CompositePriceType_name = map[int32]string{
		0: "COMPOSITE_PRICE_TYPE_UNSPECIFIED",
		1: "COMPOSITE_PRICE_TYPE_WEIGHTED",
		2: "COMPOSITE_PRICE_TYPE_MEDIAN",
		3: "COMPOSITE_PRICE_TYPE_LAST_TRADE",
	}
	CompositePriceType_value = map[string]int32{
		"COMPOSITE_PRICE_TYPE_UNSPECIFIED": 0,
		"COMPOSITE_PRICE_TYPE_WEIGHTED":    1,
		"COMPOSITE_PRICE_TYPE_MEDIAN":      2,
		"COMPOSITE_PRICE_TYPE_LAST_TRADE":  3,
	}
)

Enum value maps for CompositePriceType.

View Source
var (
	LiquidityFeeSettings_Method_name = map[int32]string{
		0: "METHOD_UNSPECIFIED",
		1: "METHOD_MARGINAL_COST",
		2: "METHOD_WEIGHTED_AVERAGE",
		3: "METHOD_CONSTANT",
	}
	LiquidityFeeSettings_Method_value = map[string]int32{
		"METHOD_UNSPECIFIED":      0,
		"METHOD_MARGINAL_COST":    1,
		"METHOD_WEIGHTED_AVERAGE": 2,
		"METHOD_CONSTANT":         3,
	}
)

Enum value maps for LiquidityFeeSettings_Method.

View Source
var (
	Market_State_name = map[int32]string{
		0:  "STATE_UNSPECIFIED",
		1:  "STATE_PROPOSED",
		2:  "STATE_REJECTED",
		3:  "STATE_PENDING",
		4:  "STATE_CANCELLED",
		5:  "STATE_ACTIVE",
		6:  "STATE_SUSPENDED",
		7:  "STATE_CLOSED",
		8:  "STATE_TRADING_TERMINATED",
		9:  "STATE_SETTLED",
		10: "STATE_SUSPENDED_VIA_GOVERNANCE",
	}
	Market_State_value = map[string]int32{
		"STATE_UNSPECIFIED":              0,
		"STATE_PROPOSED":                 1,
		"STATE_REJECTED":                 2,
		"STATE_PENDING":                  3,
		"STATE_CANCELLED":                4,
		"STATE_ACTIVE":                   5,
		"STATE_SUSPENDED":                6,
		"STATE_CLOSED":                   7,
		"STATE_TRADING_TERMINATED":       8,
		"STATE_SETTLED":                  9,
		"STATE_SUSPENDED_VIA_GOVERNANCE": 10,
	}
)

Enum value maps for Market_State.

View Source
var (
	Market_TradingMode_name = map[int32]string{
		0: "TRADING_MODE_UNSPECIFIED",
		1: "TRADING_MODE_CONTINUOUS",
		2: "TRADING_MODE_BATCH_AUCTION",
		3: "TRADING_MODE_OPENING_AUCTION",
		4: "TRADING_MODE_MONITORING_AUCTION",
		5: "TRADING_MODE_NO_TRADING",
		6: "TRADING_MODE_SUSPENDED_VIA_GOVERNANCE",
		7: "TRADING_MODE_LONG_BLOCK_AUCTION",
	}
	Market_TradingMode_value = map[string]int32{
		"TRADING_MODE_UNSPECIFIED":              0,
		"TRADING_MODE_CONTINUOUS":               1,
		"TRADING_MODE_BATCH_AUCTION":            2,
		"TRADING_MODE_OPENING_AUCTION":          3,
		"TRADING_MODE_MONITORING_AUCTION":       4,
		"TRADING_MODE_NO_TRADING":               5,
		"TRADING_MODE_SUSPENDED_VIA_GOVERNANCE": 6,
		"TRADING_MODE_LONG_BLOCK_AUCTION":       7,
	}
)

Enum value maps for Market_TradingMode.

View Source
var (
	Side_name = map[int32]string{
		0: "SIDE_UNSPECIFIED",
		1: "SIDE_BUY",
		2: "SIDE_SELL",
	}
	Side_value = map[string]int32{
		"SIDE_UNSPECIFIED": 0,
		"SIDE_BUY":         1,
		"SIDE_SELL":        2,
	}
)

Enum value maps for Side.

View Source
var (
	Interval_name = map[int32]string{
		0:      "INTERVAL_UNSPECIFIED",
		-1:     "INTERVAL_BLOCK",
		60:     "INTERVAL_I1M",
		300:    "INTERVAL_I5M",
		900:    "INTERVAL_I15M",
		1800:   "INTERVAL_I30M",
		3600:   "INTERVAL_I1H",
		14400:  "INTERVAL_I4H",
		21600:  "INTERVAL_I6H",
		28800:  "INTERVAL_I8H",
		43200:  "INTERVAL_I12H",
		86400:  "INTERVAL_I1D",
		604800: "INTERVAL_I7D",
	}
	Interval_value = map[string]int32{
		"INTERVAL_UNSPECIFIED": 0,
		"INTERVAL_BLOCK":       -1,
		"INTERVAL_I1M":         60,
		"INTERVAL_I5M":         300,
		"INTERVAL_I15M":        900,
		"INTERVAL_I30M":        1800,
		"INTERVAL_I1H":         3600,
		"INTERVAL_I4H":         14400,
		"INTERVAL_I6H":         21600,
		"INTERVAL_I8H":         28800,
		"INTERVAL_I12H":        43200,
		"INTERVAL_I1D":         86400,
		"INTERVAL_I7D":         604800,
	}
)

Enum value maps for Interval.

View Source
var (
	PositionStatus_name = map[int32]string{
		0: "POSITION_STATUS_UNSPECIFIED",
		1: "POSITION_STATUS_ORDERS_CLOSED",
		2: "POSITION_STATUS_CLOSED_OUT",
		4: "POSITION_STATUS_DISTRESSED",
	}
	PositionStatus_value = map[string]int32{
		"POSITION_STATUS_UNSPECIFIED":   0,
		"POSITION_STATUS_ORDERS_CLOSED": 1,
		"POSITION_STATUS_CLOSED_OUT":    2,
		"POSITION_STATUS_DISTRESSED":    4,
	}
)

Enum value maps for PositionStatus.

View Source
var (
	AuctionTrigger_name = map[int32]string{
		0: "AUCTION_TRIGGER_UNSPECIFIED",
		1: "AUCTION_TRIGGER_BATCH",
		2: "AUCTION_TRIGGER_OPENING",
		3: "AUCTION_TRIGGER_PRICE",
		4: "AUCTION_TRIGGER_LIQUIDITY",
		5: "AUCTION_TRIGGER_LIQUIDITY_TARGET_NOT_MET",
		6: "AUCTION_TRIGGER_UNABLE_TO_DEPLOY_LP_ORDERS",
		7: "AUCTION_TRIGGER_GOVERNANCE_SUSPENSION",
		8: "AUCTION_TRIGGER_LONG_BLOCK",
	}
	AuctionTrigger_value = map[string]int32{
		"AUCTION_TRIGGER_UNSPECIFIED":                0,
		"AUCTION_TRIGGER_BATCH":                      1,
		"AUCTION_TRIGGER_OPENING":                    2,
		"AUCTION_TRIGGER_PRICE":                      3,
		"AUCTION_TRIGGER_LIQUIDITY":                  4,
		"AUCTION_TRIGGER_LIQUIDITY_TARGET_NOT_MET":   5,
		"AUCTION_TRIGGER_UNABLE_TO_DEPLOY_LP_ORDERS": 6,
		"AUCTION_TRIGGER_GOVERNANCE_SUSPENSION":      7,
		"AUCTION_TRIGGER_LONG_BLOCK":                 8,
	}
)

Enum value maps for AuctionTrigger.

View Source
var (
	PeggedReference_name = map[int32]string{
		0: "PEGGED_REFERENCE_UNSPECIFIED",
		1: "PEGGED_REFERENCE_MID",
		2: "PEGGED_REFERENCE_BEST_BID",
		3: "PEGGED_REFERENCE_BEST_ASK",
	}
	PeggedReference_value = map[string]int32{
		"PEGGED_REFERENCE_UNSPECIFIED": 0,
		"PEGGED_REFERENCE_MID":         1,
		"PEGGED_REFERENCE_BEST_BID":    2,
		"PEGGED_REFERENCE_BEST_ASK":    3,
	}
)

Enum value maps for PeggedReference.

View Source
var (
	OrderError_name = map[int32]string{
		0:  "ORDER_ERROR_UNSPECIFIED",
		1:  "ORDER_ERROR_INVALID_MARKET_ID",
		2:  "ORDER_ERROR_INVALID_ORDER_ID",
		3:  "ORDER_ERROR_OUT_OF_SEQUENCE",
		4:  "ORDER_ERROR_INVALID_REMAINING_SIZE",
		5:  "ORDER_ERROR_TIME_FAILURE",
		6:  "ORDER_ERROR_REMOVAL_FAILURE",
		7:  "ORDER_ERROR_INVALID_EXPIRATION_DATETIME",
		8:  "ORDER_ERROR_INVALID_ORDER_REFERENCE",
		9:  "ORDER_ERROR_EDIT_NOT_ALLOWED",
		10: "ORDER_ERROR_AMEND_FAILURE",
		11: "ORDER_ERROR_NOT_FOUND",
		12: "ORDER_ERROR_INVALID_PARTY_ID",
		13: "ORDER_ERROR_MARKET_CLOSED",
		14: "ORDER_ERROR_MARGIN_CHECK_FAILED",
		15: "ORDER_ERROR_MISSING_GENERAL_ACCOUNT",
		16: "ORDER_ERROR_INTERNAL_ERROR",
		17: "ORDER_ERROR_INVALID_SIZE",
		18: "ORDER_ERROR_INVALID_PERSISTENCE",
		19: "ORDER_ERROR_INVALID_TYPE",
		20: "ORDER_ERROR_SELF_TRADING",
		21: "ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES",
		22: "ORDER_ERROR_INCORRECT_MARKET_TYPE",
		23: "ORDER_ERROR_INVALID_TIME_IN_FORCE",
		24: "ORDER_ERROR_CANNOT_SEND_GFN_ORDER_DURING_AN_AUCTION",
		25: "ORDER_ERROR_CANNOT_SEND_GFA_ORDER_DURING_CONTINUOUS_TRADING",
		26: "ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT",
		27: "ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT",
		28: "ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT",
		29: "ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC",
		30: "ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN",
		31: "ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN",
		32: "ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION",
		33: "ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION",
		34: "ORDER_ERROR_MUST_BE_LIMIT_ORDER",
		35: "ORDER_ERROR_MUST_BE_GTT_OR_GTC",
		36: "ORDER_ERROR_WITHOUT_REFERENCE_PRICE",
		37: "ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE",
		40: "ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO",
		41: "ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE",
		42: "ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO",
		43: "ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE",
		44: "ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER",
		45: "ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER",
		46: "ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER",
		47: "ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS",
		48: "ORDER_ERROR_TOO_MANY_PEGGED_ORDERS",
		49: "ORDER_ERROR_POST_ONLY_ORDER_WOULD_TRADE",
		50: "ORDER_ERROR_REDUCE_ONLY_ORDER_WOULD_NOT_REDUCE_POSITION",
		51: "ORDER_ERROR_ISOLATED_MARGIN_CHECK_FAILED",
		52: "ORDER_ERROR_PEGGED_ORDERS_NOT_ALLOWED_IN_ISOLATED_MARGIN_MODE",
		53: "ORDER_ERROR_PRICE_NOT_IN_TICK_SIZE",
		54: "ORDER_ERROR_PRICE_MUST_BE_LESS_THAN_OR_EQUAL_TO_MAX_PRICE",
	}
	OrderError_value = map[string]int32{
		"ORDER_ERROR_UNSPECIFIED":                                           0,
		"ORDER_ERROR_INVALID_MARKET_ID":                                     1,
		"ORDER_ERROR_INVALID_ORDER_ID":                                      2,
		"ORDER_ERROR_OUT_OF_SEQUENCE":                                       3,
		"ORDER_ERROR_INVALID_REMAINING_SIZE":                                4,
		"ORDER_ERROR_TIME_FAILURE":                                          5,
		"ORDER_ERROR_REMOVAL_FAILURE":                                       6,
		"ORDER_ERROR_INVALID_EXPIRATION_DATETIME":                           7,
		"ORDER_ERROR_INVALID_ORDER_REFERENCE":                               8,
		"ORDER_ERROR_EDIT_NOT_ALLOWED":                                      9,
		"ORDER_ERROR_AMEND_FAILURE":                                         10,
		"ORDER_ERROR_NOT_FOUND":                                             11,
		"ORDER_ERROR_INVALID_PARTY_ID":                                      12,
		"ORDER_ERROR_MARKET_CLOSED":                                         13,
		"ORDER_ERROR_MARGIN_CHECK_FAILED":                                   14,
		"ORDER_ERROR_MISSING_GENERAL_ACCOUNT":                               15,
		"ORDER_ERROR_INTERNAL_ERROR":                                        16,
		"ORDER_ERROR_INVALID_SIZE":                                          17,
		"ORDER_ERROR_INVALID_PERSISTENCE":                                   18,
		"ORDER_ERROR_INVALID_TYPE":                                          19,
		"ORDER_ERROR_SELF_TRADING":                                          20,
		"ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES":                        21,
		"ORDER_ERROR_INCORRECT_MARKET_TYPE":                                 22,
		"ORDER_ERROR_INVALID_TIME_IN_FORCE":                                 23,
		"ORDER_ERROR_CANNOT_SEND_GFN_ORDER_DURING_AN_AUCTION":               24,
		"ORDER_ERROR_CANNOT_SEND_GFA_ORDER_DURING_CONTINUOUS_TRADING":       25,
		"ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT":                  26,
		"ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT":                             27,
		"ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT":                          28,
		"ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC":                            29,
		"ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN":                            30,
		"ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN":                          31,
		"ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION":                  32,
		"ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION":                  33,
		"ORDER_ERROR_MUST_BE_LIMIT_ORDER":                                   34,
		"ORDER_ERROR_MUST_BE_GTT_OR_GTC":                                    35,
		"ORDER_ERROR_WITHOUT_REFERENCE_PRICE":                               36,
		"ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE":                   37,
		"ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO":               40,
		"ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE":                  41,
		"ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO":                      42,
		"ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE":                            43,
		"ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER": 44,
		"ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER":                        45,
		"ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER":                 46,
		"ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS":              47,
		"ORDER_ERROR_TOO_MANY_PEGGED_ORDERS":                                48,
		"ORDER_ERROR_POST_ONLY_ORDER_WOULD_TRADE":                           49,
		"ORDER_ERROR_REDUCE_ONLY_ORDER_WOULD_NOT_REDUCE_POSITION":           50,
		"ORDER_ERROR_ISOLATED_MARGIN_CHECK_FAILED":                          51,
		"ORDER_ERROR_PEGGED_ORDERS_NOT_ALLOWED_IN_ISOLATED_MARGIN_MODE":     52,
		"ORDER_ERROR_PRICE_NOT_IN_TICK_SIZE":                                53,
		"ORDER_ERROR_PRICE_MUST_BE_LESS_THAN_OR_EQUAL_TO_MAX_PRICE":         54,
	}
)

Enum value maps for OrderError.

View Source
var (
	ChainStatus_name = map[int32]string{
		0: "CHAIN_STATUS_UNSPECIFIED",
		1: "CHAIN_STATUS_DISCONNECTED",
		2: "CHAIN_STATUS_REPLAYING",
		3: "CHAIN_STATUS_CONNECTED",
	}
	ChainStatus_value = map[string]int32{
		"CHAIN_STATUS_UNSPECIFIED":  0,
		"CHAIN_STATUS_DISCONNECTED": 1,
		"CHAIN_STATUS_REPLAYING":    2,
		"CHAIN_STATUS_CONNECTED":    3,
	}
)

Enum value maps for ChainStatus.

View Source
var (
	AccountType_name = map[int32]string{
		0:  "ACCOUNT_TYPE_UNSPECIFIED",
		1:  "ACCOUNT_TYPE_INSURANCE",
		2:  "ACCOUNT_TYPE_SETTLEMENT",
		3:  "ACCOUNT_TYPE_MARGIN",
		4:  "ACCOUNT_TYPE_GENERAL",
		5:  "ACCOUNT_TYPE_FEES_INFRASTRUCTURE",
		6:  "ACCOUNT_TYPE_FEES_LIQUIDITY",
		7:  "ACCOUNT_TYPE_FEES_MAKER",
		9:  "ACCOUNT_TYPE_BOND",
		10: "ACCOUNT_TYPE_EXTERNAL",
		11: "ACCOUNT_TYPE_GLOBAL_INSURANCE",
		12: "ACCOUNT_TYPE_GLOBAL_REWARD",
		13: "ACCOUNT_TYPE_PENDING_TRANSFERS",
		14: "ACCOUNT_TYPE_REWARD_MAKER_PAID_FEES",
		15: "ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES",
		16: "ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES",
		17: "ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS",
		18: "ACCOUNT_TYPE_HOLDING",
		19: "ACCOUNT_TYPE_LP_LIQUIDITY_FEES",
		20: "ACCOUNT_TYPE_LIQUIDITY_FEES_BONUS_DISTRIBUTION",
		21: "ACCOUNT_TYPE_NETWORK_TREASURY",
		22: "ACCOUNT_TYPE_VESTING_REWARDS",
		23: "ACCOUNT_TYPE_VESTED_REWARDS",
		25: "ACCOUNT_TYPE_REWARD_RELATIVE_RETURN",
		26: "ACCOUNT_TYPE_REWARD_RETURN_VOLATILITY",
		27: "ACCOUNT_TYPE_REWARD_VALIDATOR_RANKING",
		28: "ACCOUNT_TYPE_PENDING_FEE_REFERRAL_REWARD",
		29: "ACCOUNT_TYPE_ORDER_MARGIN",
		30: "ACCOUNT_TYPE_REWARD_REALISED_RETURN",
		31: "ACCOUNT_TYPE_BUY_BACK_FEES",
		32: "ACCOUNT_TYPE_REWARD_AVERAGE_NOTIONAL",
		33: "ACCOUNT_TYPE_REWARD_ELIGIBLE_ENTITIES",
	}
	AccountType_value = map[string]int32{
		"ACCOUNT_TYPE_UNSPECIFIED":                       0,
		"ACCOUNT_TYPE_INSURANCE":                         1,
		"ACCOUNT_TYPE_SETTLEMENT":                        2,
		"ACCOUNT_TYPE_MARGIN":                            3,
		"ACCOUNT_TYPE_GENERAL":                           4,
		"ACCOUNT_TYPE_FEES_INFRASTRUCTURE":               5,
		"ACCOUNT_TYPE_FEES_LIQUIDITY":                    6,
		"ACCOUNT_TYPE_FEES_MAKER":                        7,
		"ACCOUNT_TYPE_BOND":                              9,
		"ACCOUNT_TYPE_EXTERNAL":                          10,
		"ACCOUNT_TYPE_GLOBAL_INSURANCE":                  11,
		"ACCOUNT_TYPE_GLOBAL_REWARD":                     12,
		"ACCOUNT_TYPE_PENDING_TRANSFERS":                 13,
		"ACCOUNT_TYPE_REWARD_MAKER_PAID_FEES":            14,
		"ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES":        15,
		"ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES":           16,
		"ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS":           17,
		"ACCOUNT_TYPE_HOLDING":                           18,
		"ACCOUNT_TYPE_LP_LIQUIDITY_FEES":                 19,
		"ACCOUNT_TYPE_LIQUIDITY_FEES_BONUS_DISTRIBUTION": 20,
		"ACCOUNT_TYPE_NETWORK_TREASURY":                  21,
		"ACCOUNT_TYPE_VESTING_REWARDS":                   22,
		"ACCOUNT_TYPE_VESTED_REWARDS":                    23,
		"ACCOUNT_TYPE_REWARD_RELATIVE_RETURN":            25,
		"ACCOUNT_TYPE_REWARD_RETURN_VOLATILITY":          26,
		"ACCOUNT_TYPE_REWARD_VALIDATOR_RANKING":          27,
		"ACCOUNT_TYPE_PENDING_FEE_REFERRAL_REWARD":       28,
		"ACCOUNT_TYPE_ORDER_MARGIN":                      29,
		"ACCOUNT_TYPE_REWARD_REALISED_RETURN":            30,
		"ACCOUNT_TYPE_BUY_BACK_FEES":                     31,
		"ACCOUNT_TYPE_REWARD_AVERAGE_NOTIONAL":           32,
		"ACCOUNT_TYPE_REWARD_ELIGIBLE_ENTITIES":          33,
	}
)

Enum value maps for AccountType.

View Source
var (
	TransferType_name = map[int32]string{
		0:  "TRANSFER_TYPE_UNSPECIFIED",
		1:  "TRANSFER_TYPE_LOSS",
		2:  "TRANSFER_TYPE_WIN",
		4:  "TRANSFER_TYPE_MTM_LOSS",
		5:  "TRANSFER_TYPE_MTM_WIN",
		6:  "TRANSFER_TYPE_MARGIN_LOW",
		7:  "TRANSFER_TYPE_MARGIN_HIGH",
		8:  "TRANSFER_TYPE_MARGIN_CONFISCATED",
		9:  "TRANSFER_TYPE_MAKER_FEE_PAY",
		10: "TRANSFER_TYPE_MAKER_FEE_RECEIVE",
		11: "TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY",
		12: "TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE",
		13: "TRANSFER_TYPE_LIQUIDITY_FEE_PAY",
		14: "TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE",
		15: "TRANSFER_TYPE_BOND_LOW",
		16: "TRANSFER_TYPE_BOND_HIGH",
		18: "TRANSFER_TYPE_WITHDRAW",
		19: "TRANSFER_TYPE_DEPOSIT",
		20: "TRANSFER_TYPE_BOND_SLASHING",
		21: "TRANSFER_TYPE_REWARD_PAYOUT",
		22: "TRANSFER_TYPE_TRANSFER_FUNDS_SEND",
		23: "TRANSFER_TYPE_TRANSFER_FUNDS_DISTRIBUTE",
		24: "TRANSFER_TYPE_CLEAR_ACCOUNT",
		25: "TRANSFER_TYPE_CHECKPOINT_BALANCE_RESTORE",
		26: "TRANSFER_TYPE_SPOT",
		27: "TRANSFER_TYPE_HOLDING_LOCK",
		28: "TRANSFER_TYPE_HOLDING_RELEASE",
		29: "TRANSFER_TYPE_SUCCESSOR_INSURANCE_FRACTION",
		30: "TRANSFER_TYPE_LIQUIDITY_FEE_ALLOCATE",
		31: "TRANSFER_TYPE_LIQUIDITY_FEE_NET_DISTRIBUTE",
		32: "TRANSFER_TYPE_SLA_PENALTY_BOND_APPLY",
		33: "TRANSFER_TYPE_SLA_PENALTY_LP_FEE_APPLY",
		34: "TRANSFER_TYPE_LIQUIDITY_FEE_UNPAID_COLLECT",
		35: "TRANSFER_TYPE_SLA_PERFORMANCE_BONUS_DISTRIBUTE",
		36: "TRANSFER_TYPE_PERPETUALS_FUNDING_LOSS",
		37: "TRANSFER_TYPE_PERPETUALS_FUNDING_WIN",
		38: "TRANSFER_TYPE_REWARDS_VESTED",
		39: "TRANSFER_TYPE_FEE_REFERRER_REWARD_PAY",
		44: "TRANSFER_TYPE_FEE_REFERRER_REWARD_DISTRIBUTE",
		45: "TRANSFER_TYPE_ORDER_MARGIN_LOW",
		46: "TRANSFER_TYPE_ORDER_MARGIN_HIGH",
		47: "TRANSFER_TYPE_ISOLATED_MARGIN_LOW",
		48: "TRANSFER_TYPE_ISOLATED_MARGIN_HIGH",
		49: "TRANSFER_TYPE_AMM_LOW",
		50: "TRANSFER_TYPE_AMM_HIGH",
		51: "TRANSFER_TYPE_AMM_RELEASE",
		52: "TRANSFER_TYPE_TREASURY_FEE_PAY",
		53: "TRANSFER_TYPE_BUY_BACK_FEE_PAY",
		54: "TRANSFER_TYPE_HIGH_MAKER_FEE_REBATE_PAY",
		55: "TRANSFER_TYPE_HIGH_MAKER_FEE_REBATE_RECEIVE",
	}
	TransferType_value = map[string]int32{
		"TRANSFER_TYPE_UNSPECIFIED":                      0,
		"TRANSFER_TYPE_LOSS":                             1,
		"TRANSFER_TYPE_WIN":                              2,
		"TRANSFER_TYPE_MTM_LOSS":                         4,
		"TRANSFER_TYPE_MTM_WIN":                          5,
		"TRANSFER_TYPE_MARGIN_LOW":                       6,
		"TRANSFER_TYPE_MARGIN_HIGH":                      7,
		"TRANSFER_TYPE_MARGIN_CONFISCATED":               8,
		"TRANSFER_TYPE_MAKER_FEE_PAY":                    9,
		"TRANSFER_TYPE_MAKER_FEE_RECEIVE":                10,
		"TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY":           11,
		"TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE":    12,
		"TRANSFER_TYPE_LIQUIDITY_FEE_PAY":                13,
		"TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE":         14,
		"TRANSFER_TYPE_BOND_LOW":                         15,
		"TRANSFER_TYPE_BOND_HIGH":                        16,
		"TRANSFER_TYPE_WITHDRAW":                         18,
		"TRANSFER_TYPE_DEPOSIT":                          19,
		"TRANSFER_TYPE_BOND_SLASHING":                    20,
		"TRANSFER_TYPE_REWARD_PAYOUT":                    21,
		"TRANSFER_TYPE_TRANSFER_FUNDS_SEND":              22,
		"TRANSFER_TYPE_TRANSFER_FUNDS_DISTRIBUTE":        23,
		"TRANSFER_TYPE_CLEAR_ACCOUNT":                    24,
		"TRANSFER_TYPE_CHECKPOINT_BALANCE_RESTORE":       25,
		"TRANSFER_TYPE_SPOT":                             26,
		"TRANSFER_TYPE_HOLDING_LOCK":                     27,
		"TRANSFER_TYPE_HOLDING_RELEASE":                  28,
		"TRANSFER_TYPE_SUCCESSOR_INSURANCE_FRACTION":     29,
		"TRANSFER_TYPE_LIQUIDITY_FEE_ALLOCATE":           30,
		"TRANSFER_TYPE_LIQUIDITY_FEE_NET_DISTRIBUTE":     31,
		"TRANSFER_TYPE_SLA_PENALTY_BOND_APPLY":           32,
		"TRANSFER_TYPE_SLA_PENALTY_LP_FEE_APPLY":         33,
		"TRANSFER_TYPE_LIQUIDITY_FEE_UNPAID_COLLECT":     34,
		"TRANSFER_TYPE_SLA_PERFORMANCE_BONUS_DISTRIBUTE": 35,
		"TRANSFER_TYPE_PERPETUALS_FUNDING_LOSS":          36,
		"TRANSFER_TYPE_PERPETUALS_FUNDING_WIN":           37,
		"TRANSFER_TYPE_REWARDS_VESTED":                   38,
		"TRANSFER_TYPE_FEE_REFERRER_REWARD_PAY":          39,
		"TRANSFER_TYPE_FEE_REFERRER_REWARD_DISTRIBUTE":   44,
		"TRANSFER_TYPE_ORDER_MARGIN_LOW":                 45,
		"TRANSFER_TYPE_ORDER_MARGIN_HIGH":                46,
		"TRANSFER_TYPE_ISOLATED_MARGIN_LOW":              47,
		"TRANSFER_TYPE_ISOLATED_MARGIN_HIGH":             48,
		"TRANSFER_TYPE_AMM_LOW":                          49,
		"TRANSFER_TYPE_AMM_HIGH":                         50,
		"TRANSFER_TYPE_AMM_RELEASE":                      51,
		"TRANSFER_TYPE_TREASURY_FEE_PAY":                 52,
		"TRANSFER_TYPE_BUY_BACK_FEE_PAY":                 53,
		"TRANSFER_TYPE_HIGH_MAKER_FEE_REBATE_PAY":        54,
		"TRANSFER_TYPE_HIGH_MAKER_FEE_REBATE_RECEIVE":    55,
	}
)

Enum value maps for TransferType.

View Source
var (
	DispatchMetric_name = map[int32]string{
		0:  "DISPATCH_METRIC_UNSPECIFIED",
		1:  "DISPATCH_METRIC_MAKER_FEES_PAID",
		2:  "DISPATCH_METRIC_MAKER_FEES_RECEIVED",
		3:  "DISPATCH_METRIC_LP_FEES_RECEIVED",
		4:  "DISPATCH_METRIC_MARKET_VALUE",
		6:  "DISPATCH_METRIC_RELATIVE_RETURN",
		7:  "DISPATCH_METRIC_RETURN_VOLATILITY",
		8:  "DISPATCH_METRIC_VALIDATOR_RANKING",
		9:  "DISPATCH_METRIC_REALISED_RETURN",
		10: "DISPATCH_METRIC_AVERAGE_NOTIONAL",
		11: "DISPATCH_METRIC_ELIGIBLE_ENTITIES",
	}
	DispatchMetric_value = map[string]int32{
		"DISPATCH_METRIC_UNSPECIFIED":         0,
		"DISPATCH_METRIC_MAKER_FEES_PAID":     1,
		"DISPATCH_METRIC_MAKER_FEES_RECEIVED": 2,
		"DISPATCH_METRIC_LP_FEES_RECEIVED":    3,
		"DISPATCH_METRIC_MARKET_VALUE":        4,
		"DISPATCH_METRIC_RELATIVE_RETURN":     6,
		"DISPATCH_METRIC_RETURN_VOLATILITY":   7,
		"DISPATCH_METRIC_VALIDATOR_RANKING":   8,
		"DISPATCH_METRIC_REALISED_RETURN":     9,
		"DISPATCH_METRIC_AVERAGE_NOTIONAL":    10,
		"DISPATCH_METRIC_ELIGIBLE_ENTITIES":   11,
	}
)

Enum value maps for DispatchMetric.

View Source
var (
	EntityScope_name = map[int32]string{
		0: "ENTITY_SCOPE_UNSPECIFIED",
		1: "ENTITY_SCOPE_INDIVIDUALS",
		2: "ENTITY_SCOPE_TEAMS",
	}
	EntityScope_value = map[string]int32{
		"ENTITY_SCOPE_UNSPECIFIED": 0,
		"ENTITY_SCOPE_INDIVIDUALS": 1,
		"ENTITY_SCOPE_TEAMS":       2,
	}
)

Enum value maps for EntityScope.

View Source
var (
	IndividualScope_name = map[int32]string{
		0: "INDIVIDUAL_SCOPE_UNSPECIFIED",
		1: "INDIVIDUAL_SCOPE_ALL",
		2: "INDIVIDUAL_SCOPE_IN_TEAM",
		3: "INDIVIDUAL_SCOPE_NOT_IN_TEAM",
		4: "INDIVIDUAL_SCOPE_AMM",
	}
	IndividualScope_value = map[string]int32{
		"INDIVIDUAL_SCOPE_UNSPECIFIED": 0,
		"INDIVIDUAL_SCOPE_ALL":         1,
		"INDIVIDUAL_SCOPE_IN_TEAM":     2,
		"INDIVIDUAL_SCOPE_NOT_IN_TEAM": 3,
		"INDIVIDUAL_SCOPE_AMM":         4,
	}
)

Enum value maps for IndividualScope.

View Source
var (
	DistributionStrategy_name = map[int32]string{
		0: "DISTRIBUTION_STRATEGY_UNSPECIFIED",
		1: "DISTRIBUTION_STRATEGY_PRO_RATA",
		2: "DISTRIBUTION_STRATEGY_RANK",
		3: "DISTRIBUTION_STRATEGY_RANK_LOTTERY",
	}
	DistributionStrategy_value = map[string]int32{
		"DISTRIBUTION_STRATEGY_UNSPECIFIED":  0,
		"DISTRIBUTION_STRATEGY_PRO_RATA":     1,
		"DISTRIBUTION_STRATEGY_RANK":         2,
		"DISTRIBUTION_STRATEGY_RANK_LOTTERY": 3,
	}
)

Enum value maps for DistributionStrategy.

View Source
var (
	NodeStatus_name = map[int32]string{
		0: "NODE_STATUS_UNSPECIFIED",
		1: "NODE_STATUS_VALIDATOR",
		2: "NODE_STATUS_NON_VALIDATOR",
	}
	NodeStatus_value = map[string]int32{
		"NODE_STATUS_UNSPECIFIED":   0,
		"NODE_STATUS_VALIDATOR":     1,
		"NODE_STATUS_NON_VALIDATOR": 2,
	}
)

Enum value maps for NodeStatus.

View Source
var (
	EpochAction_name = map[int32]string{
		0: "EPOCH_ACTION_UNSPECIFIED",
		1: "EPOCH_ACTION_START",
		2: "EPOCH_ACTION_END",
	}
	EpochAction_value = map[string]int32{
		"EPOCH_ACTION_UNSPECIFIED": 0,
		"EPOCH_ACTION_START":       1,
		"EPOCH_ACTION_END":         2,
	}
)

Enum value maps for EpochAction.

View Source
var (
	ValidatorNodeStatus_name = map[int32]string{
		0: "VALIDATOR_NODE_STATUS_UNSPECIFIED",
		1: "VALIDATOR_NODE_STATUS_TENDERMINT",
		2: "VALIDATOR_NODE_STATUS_ERSATZ",
		3: "VALIDATOR_NODE_STATUS_PENDING",
	}
	ValidatorNodeStatus_value = map[string]int32{
		"VALIDATOR_NODE_STATUS_UNSPECIFIED": 0,
		"VALIDATOR_NODE_STATUS_TENDERMINT":  1,
		"VALIDATOR_NODE_STATUS_ERSATZ":      2,
		"VALIDATOR_NODE_STATUS_PENDING":     3,
	}
)

Enum value maps for ValidatorNodeStatus.

View Source
var (
	MarginMode_name = map[int32]string{
		0: "MARGIN_MODE_UNSPECIFIED",
		1: "MARGIN_MODE_CROSS_MARGIN",
		2: "MARGIN_MODE_ISOLATED_MARGIN",
	}
	MarginMode_value = map[string]int32{
		"MARGIN_MODE_UNSPECIFIED":     0,
		"MARGIN_MODE_CROSS_MARGIN":    1,
		"MARGIN_MODE_ISOLATED_MARGIN": 2,
	}
)

Enum value maps for MarginMode.

View Source
var (
	StopOrder_SizeOverrideSetting_name = map[int32]string{
		0: "SIZE_OVERRIDE_SETTING_UNSPECIFIED",
		1: "SIZE_OVERRIDE_SETTING_NONE",
		2: "SIZE_OVERRIDE_SETTING_POSITION",
	}
	StopOrder_SizeOverrideSetting_value = map[string]int32{
		"SIZE_OVERRIDE_SETTING_UNSPECIFIED": 0,
		"SIZE_OVERRIDE_SETTING_NONE":        1,
		"SIZE_OVERRIDE_SETTING_POSITION":    2,
	}
)

Enum value maps for StopOrder_SizeOverrideSetting.

View Source
var (
	StopOrder_ExpiryStrategy_name = map[int32]string{
		0: "EXPIRY_STRATEGY_UNSPECIFIED",
		1: "EXPIRY_STRATEGY_CANCELS",
		2: "EXPIRY_STRATEGY_SUBMIT",
	}
	StopOrder_ExpiryStrategy_value = map[string]int32{
		"EXPIRY_STRATEGY_UNSPECIFIED": 0,
		"EXPIRY_STRATEGY_CANCELS":     1,
		"EXPIRY_STRATEGY_SUBMIT":      2,
	}
)

Enum value maps for StopOrder_ExpiryStrategy.

View Source
var (
	StopOrder_TriggerDirection_name = map[int32]string{
		0: "TRIGGER_DIRECTION_UNSPECIFIED",
		1: "TRIGGER_DIRECTION_RISES_ABOVE",
		2: "TRIGGER_DIRECTION_FALLS_BELOW",
	}
	StopOrder_TriggerDirection_value = map[string]int32{
		"TRIGGER_DIRECTION_UNSPECIFIED": 0,
		"TRIGGER_DIRECTION_RISES_ABOVE": 1,
		"TRIGGER_DIRECTION_FALLS_BELOW": 2,
	}
)

Enum value maps for StopOrder_TriggerDirection.

View Source
var (
	StopOrder_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_PENDING",
		2: "STATUS_CANCELLED",
		3: "STATUS_STOPPED",
		4: "STATUS_TRIGGERED",
		5: "STATUS_EXPIRED",
		6: "STATUS_REJECTED",
	}
	StopOrder_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_PENDING":     1,
		"STATUS_CANCELLED":   2,
		"STATUS_STOPPED":     3,
		"STATUS_TRIGGERED":   4,
		"STATUS_EXPIRED":     5,
		"STATUS_REJECTED":    6,
	}
)

Enum value maps for StopOrder_Status.

View Source
var (
	StopOrder_RejectionReason_name = map[int32]string{
		0:  "REJECTION_REASON_UNSPECIFIED",
		1:  "REJECTION_REASON_TRADING_NOT_ALLOWED",
		2:  "REJECTION_REASON_EXPIRY_IN_THE_PAST",
		3:  "REJECTION_REASON_MUST_BE_REDUCE_ONLY",
		4:  "REJECTION_REASON_MAX_STOP_ORDERS_PER_PARTY_REACHED",
		5:  "REJECTION_REASON_STOP_ORDER_NOT_ALLOWED_WITHOUT_A_POSITION",
		6:  "REJECTION_REASON_STOP_ORDER_NOT_CLOSING_THE_POSITION",
		7:  "REJECTION_REASON_STOP_ORDER_LINKED_PERCENTAGE_INVALID",
		8:  "REJECTION_REASON_STOP_ORDER_NOT_ALLOWED_DURING_OPENING_AUCTION",
		9:  "REJECTION_REASON_STOP_ORDER_CANNOT_MATCH_OCO_EXPIRY_TIMES",
		10: "REJECTION_REASON_STOP_ORDER_SIZE_OVERRIDE_UNSUPPORTED_FOR_SPOT",
	}
	StopOrder_RejectionReason_value = map[string]int32{
		"REJECTION_REASON_UNSPECIFIED":                                   0,
		"REJECTION_REASON_TRADING_NOT_ALLOWED":                           1,
		"REJECTION_REASON_EXPIRY_IN_THE_PAST":                            2,
		"REJECTION_REASON_MUST_BE_REDUCE_ONLY":                           3,
		"REJECTION_REASON_MAX_STOP_ORDERS_PER_PARTY_REACHED":             4,
		"REJECTION_REASON_STOP_ORDER_NOT_ALLOWED_WITHOUT_A_POSITION":     5,
		"REJECTION_REASON_STOP_ORDER_NOT_CLOSING_THE_POSITION":           6,
		"REJECTION_REASON_STOP_ORDER_LINKED_PERCENTAGE_INVALID":          7,
		"REJECTION_REASON_STOP_ORDER_NOT_ALLOWED_DURING_OPENING_AUCTION": 8,
		"REJECTION_REASON_STOP_ORDER_CANNOT_MATCH_OCO_EXPIRY_TIMES":      9,
		"REJECTION_REASON_STOP_ORDER_SIZE_OVERRIDE_UNSUPPORTED_FOR_SPOT": 10,
	}
)

Enum value maps for StopOrder_RejectionReason.

View Source
var (
	Order_TimeInForce_name = map[int32]string{
		0: "TIME_IN_FORCE_UNSPECIFIED",
		1: "TIME_IN_FORCE_GTC",
		2: "TIME_IN_FORCE_GTT",
		3: "TIME_IN_FORCE_IOC",
		4: "TIME_IN_FORCE_FOK",
		5: "TIME_IN_FORCE_GFA",
		6: "TIME_IN_FORCE_GFN",
	}
	Order_TimeInForce_value = map[string]int32{
		"TIME_IN_FORCE_UNSPECIFIED": 0,
		"TIME_IN_FORCE_GTC":         1,
		"TIME_IN_FORCE_GTT":         2,
		"TIME_IN_FORCE_IOC":         3,
		"TIME_IN_FORCE_FOK":         4,
		"TIME_IN_FORCE_GFA":         5,
		"TIME_IN_FORCE_GFN":         6,
	}
)

Enum value maps for Order_TimeInForce.

View Source
var (
	Order_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_LIMIT",
		2: "TYPE_MARKET",
		3: "TYPE_NETWORK",
	}
	Order_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TYPE_LIMIT":       1,
		"TYPE_MARKET":      2,
		"TYPE_NETWORK":     3,
	}
)

Enum value maps for Order_Type.

View Source
var (
	Order_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_ACTIVE",
		2: "STATUS_EXPIRED",
		3: "STATUS_CANCELLED",
		4: "STATUS_STOPPED",
		5: "STATUS_FILLED",
		6: "STATUS_REJECTED",
		7: "STATUS_PARTIALLY_FILLED",
		8: "STATUS_PARKED",
	}
	Order_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED":      0,
		"STATUS_ACTIVE":           1,
		"STATUS_EXPIRED":          2,
		"STATUS_CANCELLED":        3,
		"STATUS_STOPPED":          4,
		"STATUS_FILLED":           5,
		"STATUS_REJECTED":         6,
		"STATUS_PARTIALLY_FILLED": 7,
		"STATUS_PARKED":           8,
	}
)

Enum value maps for Order_Status.

View Source
var (
	Trade_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_DEFAULT",
		2: "TYPE_NETWORK_CLOSE_OUT_GOOD",
		3: "TYPE_NETWORK_CLOSE_OUT_BAD",
	}
	Trade_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED":            0,
		"TYPE_DEFAULT":                1,
		"TYPE_NETWORK_CLOSE_OUT_GOOD": 2,
		"TYPE_NETWORK_CLOSE_OUT_BAD":  3,
	}
)

Enum value maps for Trade_Type.

View Source
var (
	Deposit_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_OPEN",
		2: "STATUS_CANCELLED",
		3: "STATUS_FINALIZED",
		4: "STATUS_DUPLICATE_REJECTED",
	}
	Deposit_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED":        0,
		"STATUS_OPEN":               1,
		"STATUS_CANCELLED":          2,
		"STATUS_FINALIZED":          3,
		"STATUS_DUPLICATE_REJECTED": 4,
	}
)

Enum value maps for Deposit_Status.

View Source
var (
	Withdrawal_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_OPEN",
		2: "STATUS_REJECTED",
		3: "STATUS_FINALIZED",
	}
	Withdrawal_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_OPEN":        1,
		"STATUS_REJECTED":    2,
		"STATUS_FINALIZED":   3,
	}
)

Enum value maps for Withdrawal_Status.

View Source
var (
	LiquidityProvision_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_ACTIVE",
		2: "STATUS_STOPPED",
		3: "STATUS_CANCELLED",
		4: "STATUS_REJECTED",
		5: "STATUS_UNDEPLOYED",
		6: "STATUS_PENDING",
	}
	LiquidityProvision_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_ACTIVE":      1,
		"STATUS_STOPPED":     2,
		"STATUS_CANCELLED":   3,
		"STATUS_REJECTED":    4,
		"STATUS_UNDEPLOYED":  5,
		"STATUS_PENDING":     6,
	}
)

Enum value maps for LiquidityProvision_Status.

View Source
var File_vega_assets_proto protoreflect.FileDescriptor
View Source
var File_vega_chain_events_proto protoreflect.FileDescriptor
View Source
var File_vega_data_source_proto protoreflect.FileDescriptor
View Source
var File_vega_governance_proto protoreflect.FileDescriptor
View Source
var File_vega_markets_proto protoreflect.FileDescriptor
View Source
var File_vega_oracle_proto protoreflect.FileDescriptor
View Source
var File_vega_vega_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Account

type Account struct {

	// Unique account ID, used internally by Vega.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Party that the account belongs to, special values include `network`, which represents the Vega network and is
	// most commonly seen during liquidation of distressed trading positions.
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// Balance of the asset, the balance is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places
	// and importantly balances cannot be negative.
	Balance string `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"`
	// Asset ID for the account.
	Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"`
	// Market ID for the account, if `AccountType.ACCOUNT_TYPE_GENERAL` this will be empty.
	MarketId string `protobuf:"bytes,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Account type related to this account.
	Type AccountType `protobuf:"varint,6,opt,name=type,proto3,enum=vega.AccountType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Represents an account for an asset on Vega for a particular owner or party

func (*Account) Descriptor deprecated

func (*Account) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAsset

func (x *Account) GetAsset() string

func (*Account) GetBalance

func (x *Account) GetBalance() string

func (*Account) GetId

func (x *Account) GetId() string

func (*Account) GetMarketId

func (x *Account) GetMarketId() string

func (*Account) GetOwner

func (x *Account) GetOwner() string

func (*Account) GetType

func (x *Account) GetType() AccountType

func (Account) IsEvent

func (Account) IsEvent()

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

func (x *Account) ProtoReflect() protoreflect.Message

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountDetails added in v0.56.0

type AccountDetails struct {

	// Asset ID of the asset for this account.
	AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// Type of the account.
	Type AccountType `protobuf:"varint,2,opt,name=type,proto3,enum=vega.AccountType" json:"type,omitempty"`
	// Not specified if network account.
	Owner *string `protobuf:"bytes,3,opt,name=owner,proto3,oneof" json:"owner,omitempty"`
	// Not specified if account is not related to a market.
	MarketId *string `protobuf:"bytes,4,opt,name=market_id,json=marketId,proto3,oneof" json:"market_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountDetails) Descriptor deprecated added in v0.56.0

func (*AccountDetails) Descriptor() ([]byte, []int)

Deprecated: Use AccountDetails.ProtoReflect.Descriptor instead.

func (*AccountDetails) GetAssetId added in v0.56.0

func (x *AccountDetails) GetAssetId() string

func (*AccountDetails) GetMarketId added in v0.56.0

func (x *AccountDetails) GetMarketId() string

func (*AccountDetails) GetOwner added in v0.56.0

func (x *AccountDetails) GetOwner() string

func (*AccountDetails) GetType added in v0.56.0

func (x *AccountDetails) GetType() AccountType

func (*AccountDetails) ID added in v0.56.0

func (ad *AccountDetails) ID() string

func (*AccountDetails) ProtoMessage added in v0.56.0

func (*AccountDetails) ProtoMessage()

func (*AccountDetails) ProtoReflect added in v0.56.0

func (x *AccountDetails) ProtoReflect() protoreflect.Message

func (*AccountDetails) Reset added in v0.56.0

func (x *AccountDetails) Reset()

func (*AccountDetails) String added in v0.56.0

func (x *AccountDetails) String() string

type AccountType

type AccountType int32

Various collateral/account types as used by Vega

const (
	// Default value
	AccountType_ACCOUNT_TYPE_UNSPECIFIED AccountType = 0
	// Insurance pool accounts contain insurance pool funds for a market
	AccountType_ACCOUNT_TYPE_INSURANCE AccountType = 1
	// Settlement accounts exist only during settlement or mark-to-market
	AccountType_ACCOUNT_TYPE_SETTLEMENT AccountType = 2
	// Margin accounts contain funds set aside for the margin needed to support a party's open positions.
	// Each party will have a margin account for each market they have traded in.
	// Required initial margin is allocated to each market from user's general account.
	// Collateral in the margin account can't be withdrawn or used as margin on another market until
	// it is released back to the general account.
	// Vega protocol uses an internal accounting system to segregate funds held as
	// margin from other funds to ensure they are never lost or 'double spent'
	//
	// Margin account funds will vary as margin requirements on positions change
	AccountType_ACCOUNT_TYPE_MARGIN AccountType = 3
	// General accounts contain the collateral for a party that is not otherwise allocated. A party will
	// have multiple general accounts, one for each asset they want
	// to trade with
	//
	// General accounts are where funds are initially deposited or withdrawn from,
	// it is also the account where funds are taken to fulfil fees and initial margin requirements
	AccountType_ACCOUNT_TYPE_GENERAL AccountType = 4
	// Infrastructure accounts contain fees earned by providing infrastructure on Vega
	AccountType_ACCOUNT_TYPE_FEES_INFRASTRUCTURE AccountType = 5
	// Liquidity accounts contain fees earned by providing liquidity on Vega markets
	AccountType_ACCOUNT_TYPE_FEES_LIQUIDITY AccountType = 6
	// This account is created to hold fees earned by placing orders that sit on the book
	// and are then matched with an incoming order to create a trade - These fees reward parties
	// who provide the best priced liquidity that actually allows trading to take place
	AccountType_ACCOUNT_TYPE_FEES_MAKER AccountType = 7
	// This account is created to maintain liquidity providers funds commitments
	AccountType_ACCOUNT_TYPE_BOND AccountType = 9
	// External account represents an external source (deposit/withdrawal)
	AccountType_ACCOUNT_TYPE_EXTERNAL AccountType = 10
	// Global insurance account for the asset
	AccountType_ACCOUNT_TYPE_GLOBAL_INSURANCE AccountType = 11
	// Global reward account for the asset
	AccountType_ACCOUNT_TYPE_GLOBAL_REWARD AccountType = 12
	// Per asset account used to store pending transfers (if any)
	AccountType_ACCOUNT_TYPE_PENDING_TRANSFERS AccountType = 13
	// Per asset reward account for fees paid to makers
	AccountType_ACCOUNT_TYPE_REWARD_MAKER_PAID_FEES AccountType = 14
	// Per asset reward account for fees received by makers
	AccountType_ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES AccountType = 15
	// Per asset reward account for fees received by liquidity providers
	AccountType_ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES AccountType = 16
	// Per asset reward account for market proposers when the market goes above some trading threshold
	AccountType_ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS AccountType = 17
	// Per asset account for holding in-flight unfilled orders' funds
	AccountType_ACCOUNT_TYPE_HOLDING AccountType = 18
	// Network controlled liquidity provider's account, per market, to hold accrued liquidity fees.
	AccountType_ACCOUNT_TYPE_LP_LIQUIDITY_FEES AccountType = 19
	// Network controlled liquidity fees bonus distribution account, per market.
	AccountType_ACCOUNT_TYPE_LIQUIDITY_FEES_BONUS_DISTRIBUTION AccountType = 20
	// Network controlled treasury
	AccountType_ACCOUNT_TYPE_NETWORK_TREASURY AccountType = 21
	// Account holding user's rewards for the vesting period
	AccountType_ACCOUNT_TYPE_VESTING_REWARDS AccountType = 22
	// Account holding user's rewards after the vesting period
	AccountType_ACCOUNT_TYPE_VESTED_REWARDS AccountType = 23
	// Per asset market reward account given for relative return
	AccountType_ACCOUNT_TYPE_REWARD_RELATIVE_RETURN AccountType = 25
	// Per asset market reward account given for return volatility
	AccountType_ACCOUNT_TYPE_REWARD_RETURN_VOLATILITY AccountType = 26
	// Per asset market reward account given to validators by their ranking
	AccountType_ACCOUNT_TYPE_REWARD_VALIDATOR_RANKING AccountType = 27
	// Per asset account for pending fee referral reward payouts
	AccountType_ACCOUNT_TYPE_PENDING_FEE_REFERRAL_REWARD AccountType = 28
	// Per asset market account for party in isolated margin mode
	AccountType_ACCOUNT_TYPE_ORDER_MARGIN AccountType = 29
	// Per asset market reward account for realised return
	AccountType_ACCOUNT_TYPE_REWARD_REALISED_RETURN AccountType = 30
	// Per asset account for paid buy-back fees
	AccountType_ACCOUNT_TYPE_BUY_BACK_FEES AccountType = 31
	// Per asset market reward account given for average notional
	AccountType_ACCOUNT_TYPE_REWARD_AVERAGE_NOTIONAL AccountType = 32
	// Reward account for the eligible entities metric.
	AccountType_ACCOUNT_TYPE_REWARD_ELIGIBLE_ENTITIES AccountType = 33
)

func (AccountType) Descriptor

func (AccountType) Enum

func (x AccountType) Enum() *AccountType

func (AccountType) EnumDescriptor deprecated

func (AccountType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccountType.Descriptor instead.

func (AccountType) Number

func (x AccountType) Number() protoreflect.EnumNumber

func (AccountType) String

func (x AccountType) String() string

func (AccountType) Type

type ActivityStreakBenefitTier added in v0.73.0

type ActivityStreakBenefitTier struct {

	// Number of epochs a party must be active to receive the multiplier.
	MinimumActivityStreak uint64 `` /* 127-byte string literal not displayed */
	// Reward multiplier applicable to this tier.
	RewardMultiplier string `protobuf:"bytes,2,opt,name=reward_multiplier,json=rewardMultiplier,proto3" json:"reward_multiplier,omitempty"`
	// Vesting bonus applicable to this tier.
	VestingMultiplier string `protobuf:"bytes,3,opt,name=vesting_multiplier,json=vestingMultiplier,proto3" json:"vesting_multiplier,omitempty"`
	// contains filtered or unexported fields
}

An activity streak benefit tier

func (*ActivityStreakBenefitTier) Descriptor deprecated added in v0.73.0

func (*ActivityStreakBenefitTier) Descriptor() ([]byte, []int)

Deprecated: Use ActivityStreakBenefitTier.ProtoReflect.Descriptor instead.

func (*ActivityStreakBenefitTier) GetMinimumActivityStreak added in v0.73.0

func (x *ActivityStreakBenefitTier) GetMinimumActivityStreak() uint64

func (*ActivityStreakBenefitTier) GetRewardMultiplier added in v0.73.0

func (x *ActivityStreakBenefitTier) GetRewardMultiplier() string

func (*ActivityStreakBenefitTier) GetVestingMultiplier added in v0.73.0

func (x *ActivityStreakBenefitTier) GetVestingMultiplier() string

func (*ActivityStreakBenefitTier) ProtoMessage added in v0.73.0

func (*ActivityStreakBenefitTier) ProtoMessage()

func (*ActivityStreakBenefitTier) ProtoReflect added in v0.73.0

func (*ActivityStreakBenefitTier) Reset added in v0.73.0

func (x *ActivityStreakBenefitTier) Reset()

func (*ActivityStreakBenefitTier) String added in v0.73.0

func (x *ActivityStreakBenefitTier) String() string

type ActivityStreakBenefitTiers added in v0.73.0

type ActivityStreakBenefitTiers struct {

	// Defined benefit tiers ordered by increasing reward multipliers.
	Tiers []*ActivityStreakBenefitTier `protobuf:"bytes,1,rep,name=tiers,proto3" json:"tiers,omitempty"`
	// contains filtered or unexported fields
}

A list of activity streak benefit tiers

func (*ActivityStreakBenefitTiers) Descriptor deprecated added in v0.73.0

func (*ActivityStreakBenefitTiers) Descriptor() ([]byte, []int)

Deprecated: Use ActivityStreakBenefitTiers.ProtoReflect.Descriptor instead.

func (*ActivityStreakBenefitTiers) GetTiers added in v0.73.0

func (*ActivityStreakBenefitTiers) ProtoMessage added in v0.73.0

func (*ActivityStreakBenefitTiers) ProtoMessage()

func (*ActivityStreakBenefitTiers) ProtoReflect added in v0.73.0

func (*ActivityStreakBenefitTiers) Reset added in v0.73.0

func (x *ActivityStreakBenefitTiers) Reset()

func (*ActivityStreakBenefitTiers) String added in v0.73.0

func (x *ActivityStreakBenefitTiers) String() string

type Asset

type Asset struct {

	// Internal identifier of the asset.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Definition of the external source for this asset.
	Details *AssetDetails `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
	// Status of the asset.
	Status Asset_Status `protobuf:"varint,3,opt,name=status,proto3,enum=vega.Asset_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Vega representation of an external asset

func (*Asset) Descriptor deprecated

func (*Asset) Descriptor() ([]byte, []int)

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetDetails

func (x *Asset) GetDetails() *AssetDetails

func (*Asset) GetId

func (x *Asset) GetId() string

func (*Asset) GetStatus

func (x *Asset) GetStatus() Asset_Status

func (Asset) IsEvent

func (Asset) IsEvent()

IsEvent methods needs to be implemented so we can used mapped types in GQL union.

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect

func (x *Asset) ProtoReflect() protoreflect.Message

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

type AssetDetails

type AssetDetails struct {

	// Name of the asset (e.g: Great British Pound).
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Symbol of the asset (e.g: GBP).
	Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// Number of decimal / precision handled by this asset.
	Decimals uint64 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// Minimum economically meaningful amount in the asset.
	Quantum string `protobuf:"bytes,5,opt,name=quantum,proto3" json:"quantum,omitempty"`
	// Source of the asset
	//
	// Types that are assignable to Source:
	//
	//	*AssetDetails_BuiltinAsset
	//	*AssetDetails_Erc20
	Source isAssetDetails_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

Vega representation of an external asset

func (*AssetDetails) Descriptor deprecated

func (*AssetDetails) Descriptor() ([]byte, []int)

Deprecated: Use AssetDetails.ProtoReflect.Descriptor instead.

func (*AssetDetails) GetBuiltinAsset

func (x *AssetDetails) GetBuiltinAsset() *BuiltinAsset

func (*AssetDetails) GetDecimals

func (x *AssetDetails) GetDecimals() uint64

func (*AssetDetails) GetErc20

func (x *AssetDetails) GetErc20() *ERC20

func (*AssetDetails) GetName

func (x *AssetDetails) GetName() string

func (*AssetDetails) GetQuantum

func (x *AssetDetails) GetQuantum() string

func (*AssetDetails) GetSource

func (m *AssetDetails) GetSource() isAssetDetails_Source

func (*AssetDetails) GetSymbol

func (x *AssetDetails) GetSymbol() string

func (*AssetDetails) ProtoMessage

func (*AssetDetails) ProtoMessage()

func (*AssetDetails) ProtoReflect

func (x *AssetDetails) ProtoReflect() protoreflect.Message

func (*AssetDetails) Reset

func (x *AssetDetails) Reset()

func (*AssetDetails) String

func (x *AssetDetails) String() string

type AssetDetailsUpdate

type AssetDetailsUpdate struct {

	// Minimum economically meaningful amount in the asset.
	Quantum string `protobuf:"bytes,5,opt,name=quantum,proto3" json:"quantum,omitempty"`
	// Source of the asset update
	//
	// Types that are assignable to Source:
	//
	//	*AssetDetailsUpdate_Erc20
	Source isAssetDetailsUpdate_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

Changes to apply on an existing asset.

func (*AssetDetailsUpdate) Descriptor deprecated

func (*AssetDetailsUpdate) Descriptor() ([]byte, []int)

Deprecated: Use AssetDetailsUpdate.ProtoReflect.Descriptor instead.

func (*AssetDetailsUpdate) GetErc20

func (x *AssetDetailsUpdate) GetErc20() *ERC20Update

func (*AssetDetailsUpdate) GetQuantum

func (x *AssetDetailsUpdate) GetQuantum() string

func (*AssetDetailsUpdate) GetSource

func (m *AssetDetailsUpdate) GetSource() isAssetDetailsUpdate_Source

func (*AssetDetailsUpdate) ProtoMessage

func (*AssetDetailsUpdate) ProtoMessage()

func (*AssetDetailsUpdate) ProtoReflect

func (x *AssetDetailsUpdate) ProtoReflect() protoreflect.Message

func (*AssetDetailsUpdate) Reset

func (x *AssetDetailsUpdate) Reset()

func (*AssetDetailsUpdate) String

func (x *AssetDetailsUpdate) String() string

type AssetDetailsUpdate_Erc20

type AssetDetailsUpdate_Erc20 struct {
	// Ethereum ERC20 asset update.
	Erc20 *ERC20Update `protobuf:"bytes,101,opt,name=erc20,proto3,oneof"`
}

type AssetDetails_BuiltinAsset

type AssetDetails_BuiltinAsset struct {
	// Vega built-in asset.
	BuiltinAsset *BuiltinAsset `protobuf:"bytes,101,opt,name=builtin_asset,json=builtinAsset,proto3,oneof"`
}

type AssetDetails_Erc20

type AssetDetails_Erc20 struct {
	// Ethereum ERC20 asset.
	Erc20 *ERC20 `protobuf:"bytes,102,opt,name=erc20,proto3,oneof"`
}

type Asset_Status

type Asset_Status int32
const (
	// Default value, always invalid
	Asset_STATUS_UNSPECIFIED Asset_Status = 0
	// Asset is proposed and under vote
	Asset_STATUS_PROPOSED Asset_Status = 1
	// Asset has been rejected from governance
	Asset_STATUS_REJECTED Asset_Status = 2
	// Asset is pending listing from the bridge
	Asset_STATUS_PENDING_LISTING Asset_Status = 3
	// Asset is fully usable in the network
	Asset_STATUS_ENABLED Asset_Status = 4
)

func (Asset_Status) Descriptor

func (Asset_Status) Enum

func (x Asset_Status) Enum() *Asset_Status

func (Asset_Status) EnumDescriptor deprecated

func (Asset_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Asset_Status.Descriptor instead.

func (Asset_Status) GetEnums added in v0.76.0

func (Asset_Status) GetEnums() map[int32]string

func (Asset_Status) Number

func (Asset_Status) String

func (x Asset_Status) String() string

func (Asset_Status) Type

type AuctionDuration

type AuctionDuration struct {

	// Duration of the auction in seconds.
	Duration int64 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"`
	// Target uncrossing trading volume.
	Volume uint64 `protobuf:"varint,2,opt,name=volume,proto3" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

Auction duration is used to configure 3 auction periods:

  1. `duration > 0`, `volume == 0`: The auction will last for at least N seconds
  2. `duration == 0`, `volume > 0`: The auction will end once the given volume will match at uncrossing
  3. `duration > 0`, `volume > 0`: The auction will take at least N seconds, but can end sooner if the market can trade a certain volume

func (*AuctionDuration) Descriptor deprecated

func (*AuctionDuration) Descriptor() ([]byte, []int)

Deprecated: Use AuctionDuration.ProtoReflect.Descriptor instead.

func (*AuctionDuration) GetDuration

func (x *AuctionDuration) GetDuration() int64

func (*AuctionDuration) GetVolume

func (x *AuctionDuration) GetVolume() uint64

func (*AuctionDuration) ProtoMessage

func (*AuctionDuration) ProtoMessage()

func (*AuctionDuration) ProtoReflect

func (x *AuctionDuration) ProtoReflect() protoreflect.Message

func (*AuctionDuration) Reset

func (x *AuctionDuration) Reset()

func (*AuctionDuration) String

func (x *AuctionDuration) String() string

type AuctionIndicativeState

type AuctionIndicativeState struct {

	// Market ID for which this state relates to.
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Indicative uncrossing price is the price at which all trades would occur if the auction uncrossed now.
	IndicativePrice string `protobuf:"bytes,2,opt,name=indicative_price,json=indicativePrice,proto3" json:"indicative_price,omitempty"`
	// Indicative uncrossing volume is the volume available at the indicative crossing price if the auction uncrossed now.
	IndicativeVolume uint64 `protobuf:"varint,3,opt,name=indicative_volume,json=indicativeVolume,proto3" json:"indicative_volume,omitempty"`
	// Timestamp at which the auction started.
	AuctionStart int64 `protobuf:"varint,4,opt,name=auction_start,json=auctionStart,proto3" json:"auction_start,omitempty"`
	// Timestamp at which the auction is meant to stop.
	AuctionEnd int64 `protobuf:"varint,5,opt,name=auction_end,json=auctionEnd,proto3" json:"auction_end,omitempty"`
	// contains filtered or unexported fields
}

AuctionIndicativeState is used to emit an event with the indicative price/volume per market during an auction

func (*AuctionIndicativeState) Descriptor deprecated

func (*AuctionIndicativeState) Descriptor() ([]byte, []int)

Deprecated: Use AuctionIndicativeState.ProtoReflect.Descriptor instead.

func (*AuctionIndicativeState) GetAuctionEnd

func (x *AuctionIndicativeState) GetAuctionEnd() int64

func (*AuctionIndicativeState) GetAuctionStart

func (x *AuctionIndicativeState) GetAuctionStart() int64

func (*AuctionIndicativeState) GetIndicativePrice

func (x *AuctionIndicativeState) GetIndicativePrice() string

func (*AuctionIndicativeState) GetIndicativeVolume

func (x *AuctionIndicativeState) GetIndicativeVolume() uint64

func (*AuctionIndicativeState) GetMarketId

func (x *AuctionIndicativeState) GetMarketId() string

func (*AuctionIndicativeState) ProtoMessage

func (*AuctionIndicativeState) ProtoMessage()

func (*AuctionIndicativeState) ProtoReflect

func (x *AuctionIndicativeState) ProtoReflect() protoreflect.Message

func (*AuctionIndicativeState) Reset

func (x *AuctionIndicativeState) Reset()

func (*AuctionIndicativeState) String

func (x *AuctionIndicativeState) String() string

type AuctionTrigger

type AuctionTrigger int32

Auction triggers indicate what condition triggered an auction (if market is in auction mode)

const (
	// Default value for AuctionTrigger, no auction triggered
	AuctionTrigger_AUCTION_TRIGGER_UNSPECIFIED AuctionTrigger = 0
	// Batch auction
	AuctionTrigger_AUCTION_TRIGGER_BATCH AuctionTrigger = 1
	// Opening auction
	AuctionTrigger_AUCTION_TRIGGER_OPENING AuctionTrigger = 2
	// Price monitoring trigger
	AuctionTrigger_AUCTION_TRIGGER_PRICE AuctionTrigger = 3
	// Deprecated
	AuctionTrigger_AUCTION_TRIGGER_LIQUIDITY AuctionTrigger = 4
	// Liquidity auction due to not enough committed liquidity
	AuctionTrigger_AUCTION_TRIGGER_LIQUIDITY_TARGET_NOT_MET AuctionTrigger = 5
	// Deprecated
	//
	// Deprecated: Do not use.
	AuctionTrigger_AUCTION_TRIGGER_UNABLE_TO_DEPLOY_LP_ORDERS AuctionTrigger = 6
	// Market is suspended and put into auction via governance
	AuctionTrigger_AUCTION_TRIGGER_GOVERNANCE_SUSPENSION AuctionTrigger = 7
	// Market is suspended in response to a long block
	AuctionTrigger_AUCTION_TRIGGER_LONG_BLOCK AuctionTrigger = 8
)

func (AuctionTrigger) Descriptor

func (AuctionTrigger) Enum

func (x AuctionTrigger) Enum() *AuctionTrigger

func (AuctionTrigger) EnumDescriptor deprecated

func (AuctionTrigger) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuctionTrigger.Descriptor instead.

func (AuctionTrigger) GetEnums added in v0.76.0

func (AuctionTrigger) GetEnums() map[int32]string

func (AuctionTrigger) Number

func (AuctionTrigger) String

func (x AuctionTrigger) String() string

func (AuctionTrigger) Type

type BatchProposalTerms added in v0.74.0

type BatchProposalTerms struct {

	// Closing timestamp in Unix time; adheres to `minClose` and `maxClose` limits.
	ClosingTimestamp int64 `protobuf:"varint,1,opt,name=closing_timestamp,json=closingTimestamp,proto3" json:"closing_timestamp,omitempty"`
	// Specific parameters defining the proposal's characteristics used for validation.
	ProposalParams *ProposalParameters `protobuf:"bytes,2,opt,name=proposal_params,json=proposalParams,proto3" json:"proposal_params,omitempty"`
	// List of individual changes included in the batch proposal.
	Changes []*BatchProposalTermsChange `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

Terms for a batch governance proposal on Vega

func (*BatchProposalTerms) Descriptor deprecated added in v0.74.0

func (*BatchProposalTerms) Descriptor() ([]byte, []int)

Deprecated: Use BatchProposalTerms.ProtoReflect.Descriptor instead.

func (*BatchProposalTerms) GetChanges added in v0.74.0

func (x *BatchProposalTerms) GetChanges() []*BatchProposalTermsChange

func (*BatchProposalTerms) GetClosingTimestamp added in v0.74.0

func (x *BatchProposalTerms) GetClosingTimestamp() int64

func (*BatchProposalTerms) GetProposalParams added in v0.74.0

func (x *BatchProposalTerms) GetProposalParams() *ProposalParameters

func (*BatchProposalTerms) ProtoMessage added in v0.74.0

func (*BatchProposalTerms) ProtoMessage()

func (*BatchProposalTerms) ProtoReflect added in v0.74.0

func (x *BatchProposalTerms) ProtoReflect() protoreflect.Message

func (*BatchProposalTerms) Reset added in v0.74.0

func (x *BatchProposalTerms) Reset()

func (*BatchProposalTerms) String added in v0.74.0

func (x *BatchProposalTerms) String() string

type BatchProposalTermsChange added in v0.74.0

type BatchProposalTermsChange struct {

	// Timestamp as Unix time in seconds when proposal terms gets enacted if proposal passed the vote,
	// constrained by `minEnact` and `maxEnact` network parameters.
	EnactmentTimestamp int64 `protobuf:"varint,1,opt,name=enactment_timestamp,json=enactmentTimestamp,proto3" json:"enactment_timestamp,omitempty"`
	// Validation timestamp as Unix time in seconds.
	ValidationTimestamp int64 `protobuf:"varint,2,opt,name=validation_timestamp,json=validationTimestamp,proto3" json:"validation_timestamp,omitempty"`
	// Changes being proposed.
	//
	// Types that are assignable to Change:
	//
	//	*BatchProposalTermsChange_UpdateMarket
	//	*BatchProposalTermsChange_NewMarket
	//	*BatchProposalTermsChange_UpdateNetworkParameter
	//	*BatchProposalTermsChange_NewFreeform
	//	*BatchProposalTermsChange_UpdateAsset
	//	*BatchProposalTermsChange_NewSpotMarket
	//	*BatchProposalTermsChange_UpdateSpotMarket
	//	*BatchProposalTermsChange_NewTransfer
	//	*BatchProposalTermsChange_CancelTransfer
	//	*BatchProposalTermsChange_UpdateMarketState
	//	*BatchProposalTermsChange_UpdateReferralProgram
	//	*BatchProposalTermsChange_UpdateVolumeDiscountProgram
	//	*BatchProposalTermsChange_NewAsset
	//	*BatchProposalTermsChange_UpdateVolumeRebateProgram
	Change isBatchProposalTermsChange_Change `protobuf_oneof:"change"`
	// contains filtered or unexported fields
}

Terms change for a batch governance proposal

func (*BatchProposalTermsChange) Descriptor deprecated added in v0.74.0

func (*BatchProposalTermsChange) Descriptor() ([]byte, []int)

Deprecated: Use BatchProposalTermsChange.ProtoReflect.Descriptor instead.

func (*BatchProposalTermsChange) GetCancelTransfer added in v0.74.0

func (x *BatchProposalTermsChange) GetCancelTransfer() *CancelTransfer

func (*BatchProposalTermsChange) GetChange added in v0.74.0

func (m *BatchProposalTermsChange) GetChange() isBatchProposalTermsChange_Change

func (*BatchProposalTermsChange) GetEnactmentTimestamp added in v0.74.0

func (x *BatchProposalTermsChange) GetEnactmentTimestamp() int64

func (*BatchProposalTermsChange) GetNewAsset added in v0.76.0

func (x *BatchProposalTermsChange) GetNewAsset() *NewAsset

func (*BatchProposalTermsChange) GetNewFreeform added in v0.74.0

func (x *BatchProposalTermsChange) GetNewFreeform() *NewFreeform

func (*BatchProposalTermsChange) GetNewMarket added in v0.74.0

func (x *BatchProposalTermsChange) GetNewMarket() *NewMarket

func (*BatchProposalTermsChange) GetNewSpotMarket added in v0.74.0

func (x *BatchProposalTermsChange) GetNewSpotMarket() *NewSpotMarket

func (*BatchProposalTermsChange) GetNewTransfer added in v0.74.0

func (x *BatchProposalTermsChange) GetNewTransfer() *NewTransfer

func (*BatchProposalTermsChange) GetUpdateAsset added in v0.74.0

func (x *BatchProposalTermsChange) GetUpdateAsset() *UpdateAsset

func (*BatchProposalTermsChange) GetUpdateMarket added in v0.74.0

func (x *BatchProposalTermsChange) GetUpdateMarket() *UpdateMarket

func (*BatchProposalTermsChange) GetUpdateMarketState added in v0.74.0

func (x *BatchProposalTermsChange) GetUpdateMarketState() *UpdateMarketState

func (*BatchProposalTermsChange) GetUpdateNetworkParameter added in v0.74.0

func (x *BatchProposalTermsChange) GetUpdateNetworkParameter() *UpdateNetworkParameter

func (*BatchProposalTermsChange) GetUpdateReferralProgram added in v0.74.0

func (x *BatchProposalTermsChange) GetUpdateReferralProgram() *UpdateReferralProgram

func (*BatchProposalTermsChange) GetUpdateSpotMarket added in v0.74.0

func (x *BatchProposalTermsChange) GetUpdateSpotMarket() *UpdateSpotMarket

func (*BatchProposalTermsChange) GetUpdateVolumeDiscountProgram added in v0.74.0

func (x *BatchProposalTermsChange) GetUpdateVolumeDiscountProgram() *UpdateVolumeDiscountProgram

func (*BatchProposalTermsChange) GetUpdateVolumeRebateProgram added in v0.77.8

func (x *BatchProposalTermsChange) GetUpdateVolumeRebateProgram() *UpdateVolumeRebateProgram

func (*BatchProposalTermsChange) GetValidationTimestamp added in v0.76.0

func (x *BatchProposalTermsChange) GetValidationTimestamp() int64

func (*BatchProposalTermsChange) ProtoMessage added in v0.74.0

func (*BatchProposalTermsChange) ProtoMessage()

func (*BatchProposalTermsChange) ProtoReflect added in v0.74.0

func (x *BatchProposalTermsChange) ProtoReflect() protoreflect.Message

func (*BatchProposalTermsChange) Reset added in v0.74.0

func (x *BatchProposalTermsChange) Reset()

func (*BatchProposalTermsChange) String added in v0.74.0

func (x *BatchProposalTermsChange) String() string

type BatchProposalTermsChange_CancelTransfer added in v0.74.0

type BatchProposalTermsChange_CancelTransfer struct {
	// Proposal change to cancel a governance initiated transfe.
	CancelTransfer *CancelTransfer `protobuf:"bytes,109,opt,name=cancel_transfer,json=cancelTransfer,proto3,oneof"`
}

type BatchProposalTermsChange_NewAsset added in v0.76.0

type BatchProposalTermsChange_NewAsset struct {
	// Proposal change for adding a new asset.
	NewAsset *NewAsset `protobuf:"bytes,113,opt,name=new_asset,json=newAsset,proto3,oneof"`
}

type BatchProposalTermsChange_NewFreeform added in v0.74.0

type BatchProposalTermsChange_NewFreeform struct {
	// Proposal change for a freeform request, which can be voted on but does not change the behaviour of the system,
	// and can be used to gauge community sentiment.
	NewFreeform *NewFreeform `protobuf:"bytes,104,opt,name=new_freeform,json=newFreeform,proto3,oneof"`
}

type BatchProposalTermsChange_NewMarket added in v0.74.0

type BatchProposalTermsChange_NewMarket struct {
	// Proposal change for creating new futures market.
	NewMarket *NewMarket `protobuf:"bytes,102,opt,name=new_market,json=newMarket,proto3,oneof"`
}

type BatchProposalTermsChange_NewSpotMarket added in v0.74.0

type BatchProposalTermsChange_NewSpotMarket struct {
	// Proposal change for creating new spot market.
	NewSpotMarket *NewSpotMarket `protobuf:"bytes,106,opt,name=new_spot_market,json=newSpotMarket,proto3,oneof"`
}

type BatchProposalTermsChange_NewTransfer added in v0.74.0

type BatchProposalTermsChange_NewTransfer struct {
	// Proposal change for a governance initiated transfer.
	NewTransfer *NewTransfer `protobuf:"bytes,108,opt,name=new_transfer,json=newTransfer,proto3,oneof"`
}

type BatchProposalTermsChange_UpdateAsset added in v0.74.0

type BatchProposalTermsChange_UpdateAsset struct {
	// Proposal change for updating an asset.
	UpdateAsset *UpdateAsset `protobuf:"bytes,105,opt,name=update_asset,json=updateAsset,proto3,oneof"`
}

type BatchProposalTermsChange_UpdateMarket added in v0.74.0

type BatchProposalTermsChange_UpdateMarket struct {
	// Proposal change for modifying an existing futures market.
	UpdateMarket *UpdateMarket `protobuf:"bytes,101,opt,name=update_market,json=updateMarket,proto3,oneof"`
}

type BatchProposalTermsChange_UpdateMarketState added in v0.74.0

type BatchProposalTermsChange_UpdateMarketState struct {
	// Proposal change for updating the state of a market.
	UpdateMarketState *UpdateMarketState `protobuf:"bytes,110,opt,name=update_market_state,json=updateMarketState,proto3,oneof"`
}

type BatchProposalTermsChange_UpdateNetworkParameter added in v0.74.0

type BatchProposalTermsChange_UpdateNetworkParameter struct {
	// Proposal change for updating Vega network parameters.
	UpdateNetworkParameter *UpdateNetworkParameter `protobuf:"bytes,103,opt,name=update_network_parameter,json=updateNetworkParameter,proto3,oneof"`
}

type BatchProposalTermsChange_UpdateReferralProgram added in v0.74.0

type BatchProposalTermsChange_UpdateReferralProgram struct {
	// Proposal change for updating the referral program.
	UpdateReferralProgram *UpdateReferralProgram `protobuf:"bytes,111,opt,name=update_referral_program,json=updateReferralProgram,proto3,oneof"`
}

type BatchProposalTermsChange_UpdateSpotMarket added in v0.74.0

type BatchProposalTermsChange_UpdateSpotMarket struct {
	// Proposal change for modifying an existing spot market.
	UpdateSpotMarket *UpdateSpotMarket `protobuf:"bytes,107,opt,name=update_spot_market,json=updateSpotMarket,proto3,oneof"`
}

type BatchProposalTermsChange_UpdateVolumeDiscountProgram added in v0.74.0

type BatchProposalTermsChange_UpdateVolumeDiscountProgram struct {
	// Proposal change for updating the volume discount program.
	UpdateVolumeDiscountProgram *UpdateVolumeDiscountProgram `protobuf:"bytes,112,opt,name=update_volume_discount_program,json=updateVolumeDiscountProgram,proto3,oneof"`
}

type BatchProposalTermsChange_UpdateVolumeRebateProgram added in v0.77.8

type BatchProposalTermsChange_UpdateVolumeRebateProgram struct {
	// Proposal change for updating the volume rebate program.
	UpdateVolumeRebateProgram *UpdateVolumeRebateProgram `protobuf:"bytes,114,opt,name=update_volume_rebate_program,json=updateVolumeRebateProgram,proto3,oneof"`
}

type BenefitTier added in v0.73.0

type BenefitTier struct {

	// Required running notional taker volume in quantum units for parties
	// to access this tier.
	MinimumRunningNotionalTakerVolume string `` /* 166-byte string literal not displayed */
	// Required number of epochs a party must have been in a referral set to
	// access this tier.
	MinimumEpochs string `protobuf:"bytes,2,opt,name=minimum_epochs,json=minimumEpochs,proto3" json:"minimum_epochs,omitempty"`
	// deprecated
	ReferralRewardFactor string `protobuf:"bytes,3,opt,name=referral_reward_factor,json=referralRewardFactor,proto3" json:"referral_reward_factor,omitempty"`
	// deprecated
	ReferralDiscountFactor string `` /* 129-byte string literal not displayed */
	// Proportion of the referee's fees to be rewarded to the referrer.
	ReferralRewardFactors *RewardFactors `` /* 126-byte string literal not displayed */
	// Referral discount factors for the various fees.
	ReferralDiscountFactors *DiscountFactors `` /* 132-byte string literal not displayed */
	// The tier number. It's set by the core, and used in the party fee stats API.
	TierNumber *uint64 `protobuf:"varint,7,opt,name=tier_number,json=tierNumber,proto3,oneof" json:"tier_number,omitempty"`
	// contains filtered or unexported fields
}

func (*BenefitTier) Descriptor deprecated added in v0.73.0

func (*BenefitTier) Descriptor() ([]byte, []int)

Deprecated: Use BenefitTier.ProtoReflect.Descriptor instead.

func (*BenefitTier) GetMinimumEpochs added in v0.73.0

func (x *BenefitTier) GetMinimumEpochs() string

func (*BenefitTier) GetMinimumRunningNotionalTakerVolume added in v0.73.0

func (x *BenefitTier) GetMinimumRunningNotionalTakerVolume() string

func (*BenefitTier) GetReferralDiscountFactor added in v0.73.0

func (x *BenefitTier) GetReferralDiscountFactor() string

func (*BenefitTier) GetReferralDiscountFactors added in v0.77.8

func (x *BenefitTier) GetReferralDiscountFactors() *DiscountFactors

func (*BenefitTier) GetReferralRewardFactor added in v0.73.0

func (x *BenefitTier) GetReferralRewardFactor() string

func (*BenefitTier) GetReferralRewardFactors added in v0.77.8

func (x *BenefitTier) GetReferralRewardFactors() *RewardFactors

func (*BenefitTier) GetTierNumber added in v0.78.0

func (x *BenefitTier) GetTierNumber() uint64

func (*BenefitTier) ProtoMessage added in v0.73.0

func (*BenefitTier) ProtoMessage()

func (*BenefitTier) ProtoReflect added in v0.73.0

func (x *BenefitTier) ProtoReflect() protoreflect.Message

func (*BenefitTier) Reset added in v0.73.0

func (x *BenefitTier) Reset()

func (*BenefitTier) String added in v0.73.0

func (x *BenefitTier) String() string

type BuiltinAsset

type BuiltinAsset struct {

	// Maximum amount that can be requested by a party through the built-in asset faucet at a time.
	MaxFaucetAmountMint string `protobuf:"bytes,1,opt,name=max_faucet_amount_mint,json=maxFaucetAmountMint,proto3" json:"max_faucet_amount_mint,omitempty"`
	// contains filtered or unexported fields
}

Vega internal asset

func (*BuiltinAsset) Descriptor deprecated

func (*BuiltinAsset) Descriptor() ([]byte, []int)

Deprecated: Use BuiltinAsset.ProtoReflect.Descriptor instead.

func (*BuiltinAsset) GetMaxFaucetAmountMint

func (x *BuiltinAsset) GetMaxFaucetAmountMint() string

func (*BuiltinAsset) ProtoMessage

func (*BuiltinAsset) ProtoMessage()

func (*BuiltinAsset) ProtoReflect

func (x *BuiltinAsset) ProtoReflect() protoreflect.Message

func (*BuiltinAsset) Reset

func (x *BuiltinAsset) Reset()

func (*BuiltinAsset) String

func (x *BuiltinAsset) String() string

type BuiltinAssetDeposit

type BuiltinAssetDeposit struct {

	// Vega network internal asset ID.
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// Vega party ID i.e. public key.
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Amount to be deposited. This field is an unsigned integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Deposit for a Vega built-in asset

func (*BuiltinAssetDeposit) Descriptor deprecated

func (*BuiltinAssetDeposit) Descriptor() ([]byte, []int)

Deprecated: Use BuiltinAssetDeposit.ProtoReflect.Descriptor instead.

func (*BuiltinAssetDeposit) GetAmount

func (x *BuiltinAssetDeposit) GetAmount() string

func (*BuiltinAssetDeposit) GetPartyId

func (x *BuiltinAssetDeposit) GetPartyId() string

func (*BuiltinAssetDeposit) GetVegaAssetId

func (x *BuiltinAssetDeposit) GetVegaAssetId() string

func (*BuiltinAssetDeposit) ProtoMessage

func (*BuiltinAssetDeposit) ProtoMessage()

func (*BuiltinAssetDeposit) ProtoReflect

func (x *BuiltinAssetDeposit) ProtoReflect() protoreflect.Message

func (*BuiltinAssetDeposit) Reset

func (x *BuiltinAssetDeposit) Reset()

func (*BuiltinAssetDeposit) String

func (x *BuiltinAssetDeposit) String() string

type BuiltinAssetEvent

type BuiltinAssetEvent struct {

	// Types that are assignable to Action:
	//
	//	*BuiltinAssetEvent_Deposit
	//	*BuiltinAssetEvent_Withdrawal
	Action isBuiltinAssetEvent_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

Event related to a Vega built-in asset

func (*BuiltinAssetEvent) Descriptor deprecated

func (*BuiltinAssetEvent) Descriptor() ([]byte, []int)

Deprecated: Use BuiltinAssetEvent.ProtoReflect.Descriptor instead.

func (*BuiltinAssetEvent) GetAction

func (m *BuiltinAssetEvent) GetAction() isBuiltinAssetEvent_Action

func (*BuiltinAssetEvent) GetDeposit

func (x *BuiltinAssetEvent) GetDeposit() *BuiltinAssetDeposit

func (*BuiltinAssetEvent) GetWithdrawal

func (x *BuiltinAssetEvent) GetWithdrawal() *BuiltinAssetWithdrawal

func (*BuiltinAssetEvent) ProtoMessage

func (*BuiltinAssetEvent) ProtoMessage()

func (*BuiltinAssetEvent) ProtoReflect

func (x *BuiltinAssetEvent) ProtoReflect() protoreflect.Message

func (*BuiltinAssetEvent) Reset

func (x *BuiltinAssetEvent) Reset()

func (*BuiltinAssetEvent) String

func (x *BuiltinAssetEvent) String() string

type BuiltinAssetEvent_Deposit

type BuiltinAssetEvent_Deposit struct {
	// Built-in asset deposit.
	Deposit *BuiltinAssetDeposit `protobuf:"bytes,1001,opt,name=deposit,proto3,oneof"`
}

type BuiltinAssetEvent_Withdrawal

type BuiltinAssetEvent_Withdrawal struct {
	// Built-in asset withdrawal.
	Withdrawal *BuiltinAssetWithdrawal `protobuf:"bytes,1002,opt,name=withdrawal,proto3,oneof"`
}

type BuiltinAssetWithdrawal

type BuiltinAssetWithdrawal struct {

	// Vega network internal asset ID.
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// Vega network party ID i.e. public key.
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// The amount to be withdrawn. This field is an unsigned integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Withdrawal for a Vega built-in asset

func (*BuiltinAssetWithdrawal) Descriptor deprecated

func (*BuiltinAssetWithdrawal) Descriptor() ([]byte, []int)

Deprecated: Use BuiltinAssetWithdrawal.ProtoReflect.Descriptor instead.

func (*BuiltinAssetWithdrawal) GetAmount

func (x *BuiltinAssetWithdrawal) GetAmount() string

func (*BuiltinAssetWithdrawal) GetPartyId

func (x *BuiltinAssetWithdrawal) GetPartyId() string

func (*BuiltinAssetWithdrawal) GetVegaAssetId

func (x *BuiltinAssetWithdrawal) GetVegaAssetId() string

func (*BuiltinAssetWithdrawal) ProtoMessage

func (*BuiltinAssetWithdrawal) ProtoMessage()

func (*BuiltinAssetWithdrawal) ProtoReflect

func (x *BuiltinAssetWithdrawal) ProtoReflect() protoreflect.Message

func (*BuiltinAssetWithdrawal) Reset

func (x *BuiltinAssetWithdrawal) Reset()

func (*BuiltinAssetWithdrawal) String

func (x *BuiltinAssetWithdrawal) String() string

type CancelTransfer added in v0.72.0

type CancelTransfer struct {

	// Configuration for cancellation of a governance-initiated transfer
	Changes *CancelTransferConfiguration `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelTransfer) Descriptor deprecated added in v0.72.0

func (*CancelTransfer) Descriptor() ([]byte, []int)

Deprecated: Use CancelTransfer.ProtoReflect.Descriptor instead.

func (*CancelTransfer) GetChanges added in v0.72.0

func (CancelTransfer) IsProposalChange added in v0.72.0

func (CancelTransfer) IsProposalChange()

func (*CancelTransfer) ProtoMessage added in v0.72.0

func (*CancelTransfer) ProtoMessage()

func (*CancelTransfer) ProtoReflect added in v0.72.0

func (x *CancelTransfer) ProtoReflect() protoreflect.Message

func (*CancelTransfer) Reset added in v0.72.0

func (x *CancelTransfer) Reset()

func (*CancelTransfer) String added in v0.72.0

func (x *CancelTransfer) String() string

type CancelTransferConfiguration added in v0.72.0

type CancelTransferConfiguration struct {

	// ID of the governance transfer proposal.
	TransferId string `protobuf:"bytes,1,opt,name=transfer_id,json=transferId,proto3" json:"transfer_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelTransferConfiguration) Descriptor deprecated added in v0.72.0

func (*CancelTransferConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use CancelTransferConfiguration.ProtoReflect.Descriptor instead.

func (*CancelTransferConfiguration) GetTransferId added in v0.72.0

func (x *CancelTransferConfiguration) GetTransferId() string

func (*CancelTransferConfiguration) ProtoMessage added in v0.72.0

func (*CancelTransferConfiguration) ProtoMessage()

func (*CancelTransferConfiguration) ProtoReflect added in v0.72.0

func (*CancelTransferConfiguration) Reset added in v0.72.0

func (x *CancelTransferConfiguration) Reset()

func (*CancelTransferConfiguration) String added in v0.72.0

func (x *CancelTransferConfiguration) String() string

type Candle

type Candle struct {

	// Timestamp in Unix nanoseconds for the point in time when the candle was initially created/opened.
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// ISO-8601 datetime with nanosecond precision for when the candle was last updated.
	Datetime string `protobuf:"bytes,2,opt,name=datetime,proto3" json:"datetime,omitempty"`
	// Highest price for trading during the candle interval. This field is an unsigned integer scaled to the market's decimal places.
	High string `protobuf:"bytes,3,opt,name=high,proto3" json:"high,omitempty"`
	// Lowest price for trading during the candle interval. This field is an unsigned integer scaled to the market's decimal places.
	Low string `protobuf:"bytes,4,opt,name=low,proto3" json:"low,omitempty"`
	// Open trade price. This field is an unsigned integer scaled to the market's decimal places.
	Open string `protobuf:"bytes,5,opt,name=open,proto3" json:"open,omitempty"`
	// Closing trade price. This field is an unsigned integer scaled to the market's decimal places.
	Close string `protobuf:"bytes,6,opt,name=close,proto3" json:"close,omitempty"`
	// Total trading volume during the candle interval.
	Volume uint64 `protobuf:"varint,7,opt,name=volume,proto3" json:"volume,omitempty"`
	// Time interval for the candle.
	Interval Interval `protobuf:"varint,8,opt,name=interval,proto3,enum=vega.Interval" json:"interval,omitempty"`
	// Total notional value traded during the candle interval.
	Notional uint64 `protobuf:"varint,9,opt,name=notional,proto3" json:"notional,omitempty"`
	// contains filtered or unexported fields
}

Represents the high, low, open, and closing prices for an interval of trading, referred to commonly as a candlestick or candle

func (*Candle) Descriptor deprecated

func (*Candle) Descriptor() ([]byte, []int)

Deprecated: Use Candle.ProtoReflect.Descriptor instead.

func (*Candle) GetClose

func (x *Candle) GetClose() string

func (*Candle) GetDatetime

func (x *Candle) GetDatetime() string

func (*Candle) GetHigh

func (x *Candle) GetHigh() string

func (*Candle) GetInterval

func (x *Candle) GetInterval() Interval

func (*Candle) GetLow

func (x *Candle) GetLow() string

func (*Candle) GetNotional added in v0.72.0

func (x *Candle) GetNotional() uint64

func (*Candle) GetOpen

func (x *Candle) GetOpen() string

func (*Candle) GetTimestamp

func (x *Candle) GetTimestamp() int64

func (*Candle) GetVolume

func (x *Candle) GetVolume() uint64

func (*Candle) ProtoMessage

func (*Candle) ProtoMessage()

func (*Candle) ProtoReflect

func (x *Candle) ProtoReflect() protoreflect.Message

func (*Candle) Reset

func (x *Candle) Reset()

func (*Candle) String

func (x *Candle) String() string

type ChainStatus

type ChainStatus int32

Vega blockchain status as reported by the node the caller is connected to

const (
	// Default value, always invalid
	ChainStatus_CHAIN_STATUS_UNSPECIFIED ChainStatus = 0
	// Blockchain is disconnected
	ChainStatus_CHAIN_STATUS_DISCONNECTED ChainStatus = 1
	// Blockchain is replaying historic transactions
	ChainStatus_CHAIN_STATUS_REPLAYING ChainStatus = 2
	// Blockchain is connected and receiving transactions
	ChainStatus_CHAIN_STATUS_CONNECTED ChainStatus = 3
)

func (ChainStatus) Descriptor

func (ChainStatus) Enum

func (x ChainStatus) Enum() *ChainStatus

func (ChainStatus) EnumDescriptor deprecated

func (ChainStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChainStatus.Descriptor instead.

func (ChainStatus) Number

func (x ChainStatus) Number() protoreflect.EnumNumber

func (ChainStatus) String

func (x ChainStatus) String() string

func (ChainStatus) Type

type CompositePriceConfiguration added in v0.74.0

type CompositePriceConfiguration struct {

	// Decay weight used for calculation of mark price.
	DecayWeight string `protobuf:"bytes,1,opt,name=decay_weight,json=decayWeight,proto3" json:"decay_weight,omitempty"`
	// Decay power used for the calculation of mark price.
	DecayPower uint64 `protobuf:"varint,2,opt,name=decay_power,json=decayPower,proto3" json:"decay_power,omitempty"`
	// Cash amount, in asset decimals, used for the calculation of the mark price from the order book.
	CashAmount string `protobuf:"bytes,3,opt,name=cash_amount,json=cashAmount,proto3" json:"cash_amount,omitempty"`
	// Weights for each composite price data source.
	SourceWeights []string `protobuf:"bytes,4,rep,name=source_weights,json=sourceWeights,proto3" json:"source_weights,omitempty"`
	// For how long a price source is considered valid. One entry for each data source
	// such that the first is for the trade based mark price, the second is for the book based price
	// the third is for the first oracle, followed by more oracle data source staleness tolerance.
	SourceStalenessTolerance []string `` /* 135-byte string literal not displayed */
	// Which method is used for the calculation of the composite price for the market.
	CompositePriceType CompositePriceType `` /* 147-byte string literal not displayed */
	// Additional price sources to be used for internal composite price calculation.
	DataSourcesSpec []*DataSourceDefinition `protobuf:"bytes,7,rep,name=data_sources_spec,json=dataSourcesSpec,proto3" json:"data_sources_spec,omitempty"`
	// List of each price source and its corresponding binding
	DataSourcesSpecBinding []*SpecBindingForCompositePrice `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

Mark price configuration parameters.

func (*CompositePriceConfiguration) Descriptor deprecated added in v0.74.0

func (*CompositePriceConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use CompositePriceConfiguration.ProtoReflect.Descriptor instead.

func (*CompositePriceConfiguration) GetCashAmount added in v0.74.0

func (x *CompositePriceConfiguration) GetCashAmount() string

func (*CompositePriceConfiguration) GetCompositePriceType added in v0.74.0

func (x *CompositePriceConfiguration) GetCompositePriceType() CompositePriceType

func (*CompositePriceConfiguration) GetDataSourcesSpec added in v0.74.0

func (x *CompositePriceConfiguration) GetDataSourcesSpec() []*DataSourceDefinition

func (*CompositePriceConfiguration) GetDataSourcesSpecBinding added in v0.74.0

func (x *CompositePriceConfiguration) GetDataSourcesSpecBinding() []*SpecBindingForCompositePrice

func (*CompositePriceConfiguration) GetDecayPower added in v0.74.0

func (x *CompositePriceConfiguration) GetDecayPower() uint64

func (*CompositePriceConfiguration) GetDecayWeight added in v0.74.0

func (x *CompositePriceConfiguration) GetDecayWeight() string

func (*CompositePriceConfiguration) GetSourceStalenessTolerance added in v0.74.0

func (x *CompositePriceConfiguration) GetSourceStalenessTolerance() []string

func (*CompositePriceConfiguration) GetSourceWeights added in v0.74.0

func (x *CompositePriceConfiguration) GetSourceWeights() []string

func (*CompositePriceConfiguration) ProtoMessage added in v0.74.0

func (*CompositePriceConfiguration) ProtoMessage()

func (*CompositePriceConfiguration) ProtoReflect added in v0.74.0

func (*CompositePriceConfiguration) Reset added in v0.74.0

func (x *CompositePriceConfiguration) Reset()

func (*CompositePriceConfiguration) String added in v0.74.0

func (x *CompositePriceConfiguration) String() string

type CompositePriceSource added in v0.74.0

type CompositePriceSource struct {

	// Source of the price.
	PriceSource string `protobuf:"bytes,1,opt,name=price_source,json=priceSource,proto3" json:"price_source,omitempty"`
	// Current value of the composite source price.
	Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"`
	// Timestamp in Unix nanoseconds when the price source was last updated.
	LastUpdated int64 `protobuf:"varint,3,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	// contains filtered or unexported fields
}

func (*CompositePriceSource) Descriptor deprecated added in v0.74.0

func (*CompositePriceSource) Descriptor() ([]byte, []int)

Deprecated: Use CompositePriceSource.ProtoReflect.Descriptor instead.

func (*CompositePriceSource) GetLastUpdated added in v0.74.0

func (x *CompositePriceSource) GetLastUpdated() int64

func (*CompositePriceSource) GetPrice added in v0.74.0

func (x *CompositePriceSource) GetPrice() string

func (*CompositePriceSource) GetPriceSource added in v0.74.0

func (x *CompositePriceSource) GetPriceSource() string

func (*CompositePriceSource) ProtoMessage added in v0.74.0

func (*CompositePriceSource) ProtoMessage()

func (*CompositePriceSource) ProtoReflect added in v0.74.0

func (x *CompositePriceSource) ProtoReflect() protoreflect.Message

func (*CompositePriceSource) Reset added in v0.74.0

func (x *CompositePriceSource) Reset()

func (*CompositePriceSource) String added in v0.74.0

func (x *CompositePriceSource) String() string

type CompositePriceState added in v0.74.0

type CompositePriceState struct {
	PriceSources []*CompositePriceSource `protobuf:"bytes,1,rep,name=price_sources,json=priceSources,proto3" json:"price_sources,omitempty"`
	// contains filtered or unexported fields
}

Underlying state of the composite price..

func (*CompositePriceState) Descriptor deprecated added in v0.74.0

func (*CompositePriceState) Descriptor() ([]byte, []int)

Deprecated: Use CompositePriceState.ProtoReflect.Descriptor instead.

func (*CompositePriceState) GetPriceSources added in v0.74.0

func (x *CompositePriceState) GetPriceSources() []*CompositePriceSource

func (*CompositePriceState) ProtoMessage added in v0.74.0

func (*CompositePriceState) ProtoMessage()

func (*CompositePriceState) ProtoReflect added in v0.74.0

func (x *CompositePriceState) ProtoReflect() protoreflect.Message

func (*CompositePriceState) Reset added in v0.74.0

func (x *CompositePriceState) Reset()

func (*CompositePriceState) String added in v0.74.0

func (x *CompositePriceState) String() string

type CompositePriceType added in v0.74.0

type CompositePriceType int32
const (
	CompositePriceType_COMPOSITE_PRICE_TYPE_UNSPECIFIED CompositePriceType = 0
	// Composite price is calculated as a weighted average of the underlying mark prices.
	CompositePriceType_COMPOSITE_PRICE_TYPE_WEIGHTED CompositePriceType = 1
	// Composite price is calculated as a median of the underlying mark prices.
	CompositePriceType_COMPOSITE_PRICE_TYPE_MEDIAN CompositePriceType = 2
	// Composite price is calculated as the last trade price.
	CompositePriceType_COMPOSITE_PRICE_TYPE_LAST_TRADE CompositePriceType = 3
)

func (CompositePriceType) Descriptor added in v0.74.0

func (CompositePriceType) Enum added in v0.74.0

func (CompositePriceType) EnumDescriptor deprecated added in v0.74.0

func (CompositePriceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CompositePriceType.Descriptor instead.

func (CompositePriceType) GetEnums added in v0.76.0

func (CompositePriceType) GetEnums() map[int32]string

func (CompositePriceType) Number added in v0.74.0

func (CompositePriceType) String added in v0.74.0

func (x CompositePriceType) String() string

func (CompositePriceType) Type added in v0.74.0

type DataSourceContentType added in v0.73.0

type DataSourceContentType int32
const (
	DataSurceContentTypeInvalid DataSourceContentType = iota
	DataSourceContentTypeOracle
	DataSourceContentTypeEthOracle
	DataSourceContentTypeInternalTimeTermination
	DataSourceContentTypeInternalTimeTriggerTermination
)

type DataSourceDefinition added in v0.62.0

type DataSourceDefinition struct {

	// Types that are assignable to SourceType:
	//
	//	*DataSourceDefinition_Internal
	//	*DataSourceDefinition_External
	SourceType isDataSourceDefinition_SourceType `protobuf_oneof:"source_type"`
	// contains filtered or unexported fields
}

Represents the top level object that handles data sources. Data source definition can be external or internal, with whatever number of data sources are defined for each type in the child objects below.

func NewDataSourceDefinition added in v0.62.0

func NewDataSourceDefinition(tp DataSourceContentType) *DataSourceDefinition

func NewDataSourceDefinitionWith added in v0.73.0

func NewDataSourceDefinitionWith(dst isDataSourceDefinition_SourceType) *DataSourceDefinition

func (*DataSourceDefinition) Content added in v0.72.0

func (s *DataSourceDefinition) Content() interface{}

func (*DataSourceDefinition) Descriptor deprecated added in v0.62.0

func (*DataSourceDefinition) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceDefinition.ProtoReflect.Descriptor instead.

func (*DataSourceDefinition) GetExternal added in v0.62.0

func (DataSourceDefinition) GetFilters added in v0.62.0

func (d DataSourceDefinition) GetFilters() []*datapb.Filter

func (*DataSourceDefinition) GetInternal added in v0.62.0

func (DataSourceDefinition) GetSigners added in v0.62.0

func (d DataSourceDefinition) GetSigners() []*datapb.Signer

GetSigners tries to get the Signers from the DataSourceDefinition object.

func (*DataSourceDefinition) GetSourceType added in v0.62.0

func (m *DataSourceDefinition) GetSourceType() isDataSourceDefinition_SourceType

func (*DataSourceDefinition) ProtoMessage added in v0.62.0

func (*DataSourceDefinition) ProtoMessage()

func (*DataSourceDefinition) ProtoReflect added in v0.62.0

func (x *DataSourceDefinition) ProtoReflect() protoreflect.Message

func (*DataSourceDefinition) Reset added in v0.62.0

func (x *DataSourceDefinition) Reset()

func (*DataSourceDefinition) SetOracleConfig added in v0.62.0

func (s *DataSourceDefinition) SetOracleConfig(oc isDataSourceDefinitionExternal_SourceType) *DataSourceDefinition

SetOracleConfig sets a given oracle config in the receiver. If the receiver is not external oracle type of data source - it is not changed. This method does not care about object previous contents - use with caution (currenty needed only for testing purposes).

func (*DataSourceDefinition) SetTimeTriggerConditionConfig added in v0.70.2

func (s *DataSourceDefinition) SetTimeTriggerConditionConfig(c []*datapb.Condition) *DataSourceDefinition

SetTimeTriggerConditionConfig sets a condition to the time triggered receiver. If the receiver is not a time triggered data source - it does not set anything to it. This method does not care about object previous contents - use with caution (currenty needed only for testing purposes).

func (*DataSourceDefinition) String added in v0.62.0

func (x *DataSourceDefinition) String() string

type DataSourceDefinitionExternal added in v0.62.0

type DataSourceDefinitionExternal struct {

	// Types of External data sources
	//
	// Types that are assignable to SourceType:
	//
	//	*DataSourceDefinitionExternal_Oracle
	//	*DataSourceDefinitionExternal_EthOracle
	SourceType isDataSourceDefinitionExternal_SourceType `protobuf_oneof:"source_type"`
	// contains filtered or unexported fields
}

DataSourceDefinitionExternal is the top level object used for all external data sources. It contains one of any of the defined `SourceType` variants.

func (*DataSourceDefinitionExternal) Descriptor deprecated added in v0.62.0

func (*DataSourceDefinitionExternal) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceDefinitionExternal.ProtoReflect.Descriptor instead.

func (*DataSourceDefinitionExternal) GetEthOracle added in v0.73.0

func (x *DataSourceDefinitionExternal) GetEthOracle() *EthCallSpec

func (*DataSourceDefinitionExternal) GetOracle added in v0.62.0

func (*DataSourceDefinitionExternal) GetSourceType added in v0.62.0

func (m *DataSourceDefinitionExternal) GetSourceType() isDataSourceDefinitionExternal_SourceType

func (DataSourceDefinitionExternal) IsDataSourceKind added in v0.62.0

func (DataSourceDefinitionExternal) IsDataSourceKind()

func (*DataSourceDefinitionExternal) ProtoMessage added in v0.62.0

func (*DataSourceDefinitionExternal) ProtoMessage()

func (*DataSourceDefinitionExternal) ProtoReflect added in v0.62.0

func (*DataSourceDefinitionExternal) Reset added in v0.62.0

func (x *DataSourceDefinitionExternal) Reset()

func (*DataSourceDefinitionExternal) String added in v0.62.0

type DataSourceDefinitionExternal_EthOracle added in v0.73.0

type DataSourceDefinitionExternal_EthOracle struct {
	// Contains the data specification that is received from Ethereum sources.
	EthOracle *EthCallSpec `protobuf:"bytes,2,opt,name=eth_oracle,json=ethOracle,proto3,oneof"`
}

type DataSourceDefinitionExternal_Oracle added in v0.62.0

type DataSourceDefinitionExternal_Oracle struct {
	Oracle *DataSourceSpecConfiguration `protobuf:"bytes,1,opt,name=oracle,proto3,oneof"`
}

type DataSourceDefinitionInternal added in v0.62.0

type DataSourceDefinitionInternal struct {

	// Types of internal data sources
	//
	// Types that are assignable to SourceType:
	//
	//	*DataSourceDefinitionInternal_Time
	//	*DataSourceDefinitionInternal_TimeTrigger
	SourceType isDataSourceDefinitionInternal_SourceType `protobuf_oneof:"source_type"`
	// contains filtered or unexported fields
}

Top level object used for all internal data sources. It contains one of any of the defined source type variants.

func (DataSourceDefinitionInternal) DeepClone added in v0.62.0

func (*DataSourceDefinitionInternal) Descriptor deprecated added in v0.62.0

func (*DataSourceDefinitionInternal) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceDefinitionInternal.ProtoReflect.Descriptor instead.

func (*DataSourceDefinitionInternal) GetSourceType added in v0.62.0

func (m *DataSourceDefinitionInternal) GetSourceType() isDataSourceDefinitionInternal_SourceType

func (*DataSourceDefinitionInternal) GetTime added in v0.62.0

func (*DataSourceDefinitionInternal) GetTimeTrigger added in v0.73.0

func (DataSourceDefinitionInternal) IsDataSourceKind added in v0.62.0

func (DataSourceDefinitionInternal) IsDataSourceKind()

func (*DataSourceDefinitionInternal) ProtoMessage added in v0.62.0

func (*DataSourceDefinitionInternal) ProtoMessage()

func (*DataSourceDefinitionInternal) ProtoReflect added in v0.62.0

func (*DataSourceDefinitionInternal) Reset added in v0.62.0

func (x *DataSourceDefinitionInternal) Reset()

func (*DataSourceDefinitionInternal) String added in v0.62.0

type DataSourceDefinitionInternal_Time added in v0.62.0

type DataSourceDefinitionInternal_Time struct {
	Time *DataSourceSpecConfigurationTime `protobuf:"bytes,1,opt,name=time,proto3,oneof"`
}

func (DataSourceDefinitionInternal_Time) DeepClone added in v0.62.0

type DataSourceDefinitionInternal_TimeTrigger added in v0.73.0

type DataSourceDefinitionInternal_TimeTrigger struct {
	TimeTrigger *DataSourceSpecConfigurationTimeTrigger `protobuf:"bytes,2,opt,name=time_trigger,json=timeTrigger,proto3,oneof"`
}

type DataSourceDefinition_External added in v0.62.0

type DataSourceDefinition_External struct {
	External *DataSourceDefinitionExternal `protobuf:"bytes,2,opt,name=external,proto3,oneof"`
}

type DataSourceDefinition_Internal added in v0.62.0

type DataSourceDefinition_Internal struct {
	Internal *DataSourceDefinitionInternal `protobuf:"bytes,1,opt,name=internal,proto3,oneof"`
}

func (DataSourceDefinition_Internal) DeepClone added in v0.62.0

type DataSourceSpec added in v0.62.0

type DataSourceSpec struct {

	// Hash generated from the DataSpec data.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Creation date and time
	CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Last Updated timestamp
	UpdatedAt int64                 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	Data      *DataSourceDefinition `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// Status describes the status of the data source spec
	Status DataSourceSpec_Status `protobuf:"varint,5,opt,name=status,proto3,enum=vega.DataSourceSpec_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Data source spec describes the data source base that a product or a risk model wants to get from the data source engine. This message contains additional information used by the API.

func NewDataSourceSpec added in v0.62.0

func NewDataSourceSpec(sc *DataSourceDefinition) *DataSourceSpec

Used only for testing purposes at the moment.

func (*DataSourceSpec) Descriptor deprecated added in v0.62.0

func (*DataSourceSpec) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceSpec.ProtoReflect.Descriptor instead.

func (*DataSourceSpec) GetCreatedAt added in v0.62.0

func (x *DataSourceSpec) GetCreatedAt() int64

func (*DataSourceSpec) GetData added in v0.62.0

func (x *DataSourceSpec) GetData() *DataSourceDefinition

func (*DataSourceSpec) GetId added in v0.62.0

func (x *DataSourceSpec) GetId() string

func (*DataSourceSpec) GetStatus added in v0.62.0

func (x *DataSourceSpec) GetStatus() DataSourceSpec_Status

func (*DataSourceSpec) GetUpdatedAt added in v0.62.0

func (x *DataSourceSpec) GetUpdatedAt() int64

func (DataSourceSpec) IsEvent added in v0.62.0

func (DataSourceSpec) IsEvent()

func (*DataSourceSpec) ProtoMessage added in v0.62.0

func (*DataSourceSpec) ProtoMessage()

func (*DataSourceSpec) ProtoReflect added in v0.62.0

func (x *DataSourceSpec) ProtoReflect() protoreflect.Message

func (*DataSourceSpec) Reset added in v0.62.0

func (x *DataSourceSpec) Reset()

func (*DataSourceSpec) String added in v0.62.0

func (x *DataSourceSpec) String() string

type DataSourceSpecConfiguration added in v0.62.0

type DataSourceSpecConfiguration struct {

	// Signers is the list of authorized signatures that signed the data for this
	// source. All the signatures in the data source data should be contained in
	// this external source. All the signatures in the data should be contained in
	// this list.
	Signers []*v1.Signer `protobuf:"bytes,1,rep,name=signers,proto3" json:"signers,omitempty"`
	// Filters describes which source data are considered of interest or not for
	// the product (or the risk model).
	Filters []*v1.Filter `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"`
	// contains filtered or unexported fields
}

All types of external data sources use the same configuration set for meeting requirements in order for the data to be useful for Vega - valid signatures and matching filters.

func (*DataSourceSpecConfiguration) Descriptor deprecated added in v0.62.0

func (*DataSourceSpecConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceSpecConfiguration.ProtoReflect.Descriptor instead.

func (*DataSourceSpecConfiguration) GetFilters added in v0.62.0

func (x *DataSourceSpecConfiguration) GetFilters() []*v1.Filter

func (*DataSourceSpecConfiguration) GetSigners added in v0.62.0

func (x *DataSourceSpecConfiguration) GetSigners() []*v1.Signer

func (DataSourceSpecConfiguration) IsExternalDataSourceKind added in v0.62.0

func (DataSourceSpecConfiguration) IsExternalDataSourceKind()

func (*DataSourceSpecConfiguration) ProtoMessage added in v0.62.0

func (*DataSourceSpecConfiguration) ProtoMessage()

func (*DataSourceSpecConfiguration) ProtoReflect added in v0.62.0

func (*DataSourceSpecConfiguration) Reset added in v0.62.0

func (x *DataSourceSpecConfiguration) Reset()

func (*DataSourceSpecConfiguration) String added in v0.62.0

func (x *DataSourceSpecConfiguration) String() string

func (*DataSourceSpecConfiguration) ToOracleSpec added in v0.62.0

type DataSourceSpecConfigurationTime added in v0.62.0

type DataSourceSpecConfigurationTime struct {

	// Conditions that the timestamps should meet in order to be considered.
	Conditions []*v1.Condition `protobuf:"bytes,1,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// contains filtered or unexported fields
}

Internal data source used for emitting timestamps.

func (DataSourceSpecConfigurationTime) DeepClone added in v0.62.0

func (*DataSourceSpecConfigurationTime) Descriptor deprecated added in v0.62.0

func (*DataSourceSpecConfigurationTime) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceSpecConfigurationTime.ProtoReflect.Descriptor instead.

func (*DataSourceSpecConfigurationTime) GetConditions added in v0.62.0

func (x *DataSourceSpecConfigurationTime) GetConditions() []*v1.Condition

func (DataSourceSpecConfigurationTime) IsInternalDataSourceKind added in v0.62.0

func (DataSourceSpecConfigurationTime) IsInternalDataSourceKind()

func (*DataSourceSpecConfigurationTime) ProtoMessage added in v0.62.0

func (*DataSourceSpecConfigurationTime) ProtoMessage()

func (*DataSourceSpecConfigurationTime) ProtoReflect added in v0.62.0

func (*DataSourceSpecConfigurationTime) Reset added in v0.62.0

func (*DataSourceSpecConfigurationTime) String added in v0.62.0

type DataSourceSpecConfigurationTimeTrigger added in v0.73.0

type DataSourceSpecConfigurationTimeTrigger struct {

	// Conditions that the timestamps need to meet in order to be considered.
	Conditions []*v1.Condition `protobuf:"bytes,1,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// An internal time trigger
	Triggers []*v1.InternalTimeTrigger `protobuf:"bytes,2,rep,name=triggers,proto3" json:"triggers,omitempty"`
	// contains filtered or unexported fields
}

Internal data source used for emitting timestamps automatically using predefined intervals and conditions.

func (*DataSourceSpecConfigurationTimeTrigger) Descriptor deprecated added in v0.73.0

func (*DataSourceSpecConfigurationTimeTrigger) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceSpecConfigurationTimeTrigger.ProtoReflect.Descriptor instead.

func (*DataSourceSpecConfigurationTimeTrigger) GetConditions added in v0.73.0

func (x *DataSourceSpecConfigurationTimeTrigger) GetConditions() []*v1.Condition

func (*DataSourceSpecConfigurationTimeTrigger) GetTriggers added in v0.73.0

func (DataSourceSpecConfigurationTimeTrigger) IsInternalDataSourceKind added in v0.73.0

func (DataSourceSpecConfigurationTimeTrigger) IsInternalDataSourceKind()

func (*DataSourceSpecConfigurationTimeTrigger) ProtoMessage added in v0.73.0

func (*DataSourceSpecConfigurationTimeTrigger) ProtoReflect added in v0.73.0

func (*DataSourceSpecConfigurationTimeTrigger) Reset added in v0.73.0

func (*DataSourceSpecConfigurationTimeTrigger) String added in v0.73.0

type DataSourceSpecToFutureBinding added in v0.61.0

type DataSourceSpecToFutureBinding struct {

	// Name of the property in the source data that should be used as settlement data.
	// If it is set to "prices.BTC.value", then the Future will use the value of
	// this property as settlement data.
	SettlementDataProperty string `` /* 129-byte string literal not displayed */
	// Name of the property in the data source data that signals termination of trading.
	TradingTerminationProperty string `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

DataSourceSpecToFutureBinding describes which property of the data source data is to be used as settlement data and which to use as the trading terminated trigger

func (*DataSourceSpecToFutureBinding) Descriptor deprecated added in v0.61.0

func (*DataSourceSpecToFutureBinding) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceSpecToFutureBinding.ProtoReflect.Descriptor instead.

func (*DataSourceSpecToFutureBinding) GetSettlementDataProperty added in v0.61.0

func (x *DataSourceSpecToFutureBinding) GetSettlementDataProperty() string

func (*DataSourceSpecToFutureBinding) GetTradingTerminationProperty added in v0.61.0

func (x *DataSourceSpecToFutureBinding) GetTradingTerminationProperty() string

func (*DataSourceSpecToFutureBinding) ProtoMessage added in v0.61.0

func (*DataSourceSpecToFutureBinding) ProtoMessage()

func (*DataSourceSpecToFutureBinding) ProtoReflect added in v0.61.0

func (*DataSourceSpecToFutureBinding) Reset added in v0.61.0

func (x *DataSourceSpecToFutureBinding) Reset()

func (*DataSourceSpecToFutureBinding) String added in v0.61.0

type DataSourceSpecToPerpetualBinding added in v0.73.0

type DataSourceSpecToPerpetualBinding struct {

	// Name of the property in the source data that should be used for settlement data.
	// If it is set to "prices.BTC.value" for example, then the perpetual market will use the value of
	// this property to get settlement data.
	SettlementDataProperty string `` /* 129-byte string literal not displayed */
	// Name of the property in the source data that should be used to determine the perpetual's settlement schedule.
	SettlementScheduleProperty string `` /* 141-byte string literal not displayed */
	// contains filtered or unexported fields
}

Describes which properties of the data source data is to be used for settlement.

func (*DataSourceSpecToPerpetualBinding) Descriptor deprecated added in v0.73.0

func (*DataSourceSpecToPerpetualBinding) Descriptor() ([]byte, []int)

Deprecated: Use DataSourceSpecToPerpetualBinding.ProtoReflect.Descriptor instead.

func (*DataSourceSpecToPerpetualBinding) GetSettlementDataProperty added in v0.73.0

func (x *DataSourceSpecToPerpetualBinding) GetSettlementDataProperty() string

func (*DataSourceSpecToPerpetualBinding) GetSettlementScheduleProperty added in v0.73.0

func (x *DataSourceSpecToPerpetualBinding) GetSettlementScheduleProperty() string

func (*DataSourceSpecToPerpetualBinding) ProtoMessage added in v0.73.0

func (*DataSourceSpecToPerpetualBinding) ProtoMessage()

func (*DataSourceSpecToPerpetualBinding) ProtoReflect added in v0.73.0

func (*DataSourceSpecToPerpetualBinding) Reset added in v0.73.0

func (*DataSourceSpecToPerpetualBinding) String added in v0.73.0

type DataSourceSpec_Status added in v0.62.0

type DataSourceSpec_Status int32

Status describe the status of the data source spec

const (
	// Default value.
	DataSourceSpec_STATUS_UNSPECIFIED DataSourceSpec_Status = 0
	// STATUS_ACTIVE describes an active data source spec.
	DataSourceSpec_STATUS_ACTIVE DataSourceSpec_Status = 1
	// STATUS_DEACTIVATED describes a data source spec that is not listening to
	// data anymore.
	DataSourceSpec_STATUS_DEACTIVATED DataSourceSpec_Status = 2
)

func (DataSourceSpec_Status) Descriptor added in v0.62.0

func (DataSourceSpec_Status) Enum added in v0.62.0

func (DataSourceSpec_Status) EnumDescriptor deprecated added in v0.62.0

func (DataSourceSpec_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataSourceSpec_Status.Descriptor instead.

func (DataSourceSpec_Status) GetEnums added in v0.76.0

func (DataSourceSpec_Status) GetEnums() map[int32]string

func (DataSourceSpec_Status) Number added in v0.62.0

func (DataSourceSpec_Status) String added in v0.62.0

func (x DataSourceSpec_Status) String() string

func (DataSourceSpec_Status) Type added in v0.62.0

type Delegation

type Delegation struct {

	// Party which is delegating.
	Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	// Node ID to delegate to.
	NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// Amount delegated. This field is an unsigned integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// Epoch of delegation.
	EpochSeq string `protobuf:"bytes,4,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"`
	// contains filtered or unexported fields
}

func (*Delegation) Descriptor deprecated

func (*Delegation) Descriptor() ([]byte, []int)

Deprecated: Use Delegation.ProtoReflect.Descriptor instead.

func (*Delegation) GetAmount

func (x *Delegation) GetAmount() string

func (*Delegation) GetEpochSeq

func (x *Delegation) GetEpochSeq() string

func (*Delegation) GetNodeId

func (x *Delegation) GetNodeId() string

func (*Delegation) GetParty

func (x *Delegation) GetParty() string

func (*Delegation) ProtoMessage

func (*Delegation) ProtoMessage()

func (*Delegation) ProtoReflect

func (x *Delegation) ProtoReflect() protoreflect.Message

func (*Delegation) Reset

func (x *Delegation) Reset()

func (*Delegation) String

func (x *Delegation) String() string

type Deposit

type Deposit struct {

	// Unique ID for the deposit.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Status of the deposit.
	Status Deposit_Status `protobuf:"varint,2,opt,name=status,proto3,enum=vega.Deposit_Status" json:"status,omitempty"`
	// Party ID of the user initiating the deposit.
	PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Vega asset targeted by this deposit.
	Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"`
	// Amount to be deposited. This field is an unsigned integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
	// Hash of the transaction from the foreign chain.
	TxHash string `protobuf:"bytes,6,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	// Timestamp for when the Vega account was updated with the deposit.
	CreditedTimestamp int64 `protobuf:"varint,7,opt,name=credited_timestamp,json=creditedTimestamp,proto3" json:"credited_timestamp,omitempty"`
	// Timestamp for when the deposit was created on the Vega network.
	CreatedTimestamp int64 `protobuf:"varint,8,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"`
	// contains filtered or unexported fields
}

Deposit on to the Vega network

func (*Deposit) Descriptor deprecated

func (*Deposit) Descriptor() ([]byte, []int)

Deprecated: Use Deposit.ProtoReflect.Descriptor instead.

func (*Deposit) GetAmount

func (x *Deposit) GetAmount() string

func (*Deposit) GetAsset

func (x *Deposit) GetAsset() string

func (*Deposit) GetCreatedTimestamp

func (x *Deposit) GetCreatedTimestamp() int64

func (*Deposit) GetCreditedTimestamp

func (x *Deposit) GetCreditedTimestamp() int64

func (*Deposit) GetId

func (x *Deposit) GetId() string

func (*Deposit) GetPartyId

func (x *Deposit) GetPartyId() string

func (*Deposit) GetStatus

func (x *Deposit) GetStatus() Deposit_Status

func (*Deposit) GetTxHash

func (x *Deposit) GetTxHash() string

func (Deposit) IsEvent

func (Deposit) IsEvent()

func (*Deposit) ProtoMessage

func (*Deposit) ProtoMessage()

func (*Deposit) ProtoReflect

func (x *Deposit) ProtoReflect() protoreflect.Message

func (*Deposit) Reset

func (x *Deposit) Reset()

func (*Deposit) String

func (x *Deposit) String() string

type Deposit_Status

type Deposit_Status int32

Status of the deposit

const (
	// Default value, always invalid
	Deposit_STATUS_UNSPECIFIED Deposit_Status = 0
	// Deposit is being processed by the network
	Deposit_STATUS_OPEN Deposit_Status = 1
	// Deposit has been cancelled or failed to be verified by the network
	Deposit_STATUS_CANCELLED Deposit_Status = 2
	// Deposit has been finalised and accounts have been updated
	Deposit_STATUS_FINALIZED Deposit_Status = 3
	// Deposit has been rejected as a duplicate transaction.
	Deposit_STATUS_DUPLICATE_REJECTED Deposit_Status = 4
)

func (Deposit_Status) Descriptor

func (Deposit_Status) Enum

func (x Deposit_Status) Enum() *Deposit_Status

func (Deposit_Status) EnumDescriptor deprecated

func (Deposit_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Deposit_Status.Descriptor instead.

func (Deposit_Status) GetEnums added in v0.76.0

func (Deposit_Status) GetEnums() map[int32]string

func (Deposit_Status) Number

func (Deposit_Status) String

func (x Deposit_Status) String() string

func (Deposit_Status) Type

type DiscountFactors added in v0.77.8

type DiscountFactors struct {

	// Proportion of the referee's infrastructure fee to be discounted.
	InfrastructureDiscountFactor string `` /* 147-byte string literal not displayed */
	// Proportion of the referee's liquidity fee to be discounted.
	LiquidityDiscountFactor string `` /* 132-byte string literal not displayed */
	// Proportion of the referee's maker fee to be discounted.
	MakerDiscountFactor string `protobuf:"bytes,3,opt,name=maker_discount_factor,json=makerDiscountFactor,proto3" json:"maker_discount_factor,omitempty"`
	// contains filtered or unexported fields
}

func (*DiscountFactors) Descriptor deprecated added in v0.77.8

func (*DiscountFactors) Descriptor() ([]byte, []int)

Deprecated: Use DiscountFactors.ProtoReflect.Descriptor instead.

func (*DiscountFactors) GetInfrastructureDiscountFactor added in v0.77.8

func (x *DiscountFactors) GetInfrastructureDiscountFactor() string

func (*DiscountFactors) GetLiquidityDiscountFactor added in v0.77.8

func (x *DiscountFactors) GetLiquidityDiscountFactor() string

func (*DiscountFactors) GetMakerDiscountFactor added in v0.77.8

func (x *DiscountFactors) GetMakerDiscountFactor() string

func (*DiscountFactors) ProtoMessage added in v0.77.8

func (*DiscountFactors) ProtoMessage()

func (*DiscountFactors) ProtoReflect added in v0.77.8

func (x *DiscountFactors) ProtoReflect() protoreflect.Message

func (*DiscountFactors) Reset added in v0.77.8

func (x *DiscountFactors) Reset()

func (*DiscountFactors) String added in v0.77.8

func (x *DiscountFactors) String() string

type DispatchMetric

type DispatchMetric int32
const (
	DispatchMetric_DISPATCH_METRIC_UNSPECIFIED DispatchMetric = 0
	// Dispatch metric that uses the total maker fees paid in the market
	DispatchMetric_DISPATCH_METRIC_MAKER_FEES_PAID DispatchMetric = 1
	// Dispatch metric that uses the total maker fees received in the market
	DispatchMetric_DISPATCH_METRIC_MAKER_FEES_RECEIVED DispatchMetric = 2
	// Dispatch metric that uses the total LP fees received in the market
	DispatchMetric_DISPATCH_METRIC_LP_FEES_RECEIVED DispatchMetric = 3
	// Dispatch metric that uses total value of the market if above the required threshold and not paid given proposer bonus yet
	DispatchMetric_DISPATCH_METRIC_MARKET_VALUE DispatchMetric = 4
	// Dispatch metric that uses the relative PNL of the party in the market
	DispatchMetric_DISPATCH_METRIC_RELATIVE_RETURN DispatchMetric = 6
	// Dispatch metric that uses return volatility of the party in the market
	DispatchMetric_DISPATCH_METRIC_RETURN_VOLATILITY DispatchMetric = 7
	// Dispatch metric that uses the validator ranking of the validator as metric
	DispatchMetric_DISPATCH_METRIC_VALIDATOR_RANKING DispatchMetric = 8
	// Dispatch metric that uses the realised return of the party in a market
	DispatchMetric_DISPATCH_METRIC_REALISED_RETURN DispatchMetric = 9
	// Dispatch metric that uses the time weighted average notional
	DispatchMetric_DISPATCH_METRIC_AVERAGE_NOTIONAL DispatchMetric = 10
	// Dispatch metric that uses the eligibility criteria of entities
	DispatchMetric_DISPATCH_METRIC_ELIGIBLE_ENTITIES DispatchMetric = 11
)

func (DispatchMetric) Descriptor

func (DispatchMetric) Enum

func (x DispatchMetric) Enum() *DispatchMetric

func (DispatchMetric) EnumDescriptor deprecated

func (DispatchMetric) EnumDescriptor() ([]byte, []int)

Deprecated: Use DispatchMetric.Descriptor instead.

func (DispatchMetric) GetEnums added in v0.76.0

func (DispatchMetric) GetEnums() map[int32]string

func (DispatchMetric) Number

func (DispatchMetric) String

func (x DispatchMetric) String() string

func (DispatchMetric) Type

type DispatchStrategy

type DispatchStrategy struct {

	// Asset to use for metric.
	AssetForMetric string `protobuf:"bytes,1,opt,name=asset_for_metric,json=assetForMetric,proto3" json:"asset_for_metric,omitempty"`
	// Metric to apply.
	Metric DispatchMetric `protobuf:"varint,2,opt,name=metric,proto3,enum=vega.DispatchMetric" json:"metric,omitempty"`
	// Optional markets in scope.
	Markets []string `protobuf:"bytes,3,rep,name=markets,proto3" json:"markets,omitempty"`
	// Mandatory enum that defines the entities within scope.
	EntityScope EntityScope `protobuf:"varint,4,opt,name=entity_scope,json=entityScope,proto3,enum=vega.EntityScope" json:"entity_scope,omitempty"`
	// Optional enum if the entity scope defined is for individuals, which determines the subset of individuals that are eligible to be rewarded.
	IndividualScope IndividualScope `` /* 133-byte string literal not displayed */
	// Optional list applicable if the reward type has a scope of teams, which allows the funder to define a list of team IDs that are eligible to be rewarded from this transfer
	TeamScope []string `protobuf:"bytes,6,rep,name=team_scope,json=teamScope,proto3" json:"team_scope,omitempty"`
	// The proportion of the top performers in the team for a given metric to be averaged for the metric calculation if the scope is team
	NTopPerformers string `protobuf:"bytes,7,opt,name=n_top_performers,json=nTopPerformers,proto3" json:"n_top_performers,omitempty"`
	// Minimum number of governance (e.g. VEGA) tokens staked for a party to be considered eligible. Defaults to 0
	StakingRequirement string `protobuf:"bytes,8,opt,name=staking_requirement,json=stakingRequirement,proto3" json:"staking_requirement,omitempty"`
	// Minimum notional time-weighted averaged position required for a party to be considered eligible. Defaults to 0
	NotionalTimeWeightedAveragePositionRequirement string `` /* 207-byte string literal not displayed */
	// Number of epochs to evaluate the metric on
	WindowLength uint64 `protobuf:"varint,10,opt,name=window_length,json=windowLength,proto3" json:"window_length,omitempty"`
	// Number of epochs after distribution to delay vesting of rewards by
	LockPeriod uint64 `protobuf:"varint,11,opt,name=lock_period,json=lockPeriod,proto3" json:"lock_period,omitempty"`
	// Controls how the reward is distributed between qualifying parties
	DistributionStrategy DistributionStrategy `` /* 154-byte string literal not displayed */
	// Ordered list, using start rank, defining the rank bands and share ratio for each band. Mandatory for the rank and rank lottery distribution strategies.
	RankTable []*Rank `protobuf:"bytes,13,rep,name=rank_table,json=rankTable,proto3" json:"rank_table,omitempty"`
	// If set, the actual amount of rewards transferred to each public key during distribution for this transfer will be `min(calculated_reward_in_quantum, cap_reward_fee_multiple × fees_paid_this_epoch_in_quantum).
	CapRewardFeeMultiple *string `` /* 132-byte string literal not displayed */
	// Number of epochs between transfers, i.e. when 4, funds will be transferred every 4 epochs with the first transfer occurring 4 epochs after the transaction is processed.
	TransferInterval *int32 `protobuf:"varint,15,opt,name=transfer_interval,json=transferInterval,proto3,oneof" json:"transfer_interval,omitempty"`
	// contains filtered or unexported fields
}

func (*DispatchStrategy) Descriptor deprecated

func (*DispatchStrategy) Descriptor() ([]byte, []int)

Deprecated: Use DispatchStrategy.ProtoReflect.Descriptor instead.

func (*DispatchStrategy) GetAssetForMetric

func (x *DispatchStrategy) GetAssetForMetric() string

func (*DispatchStrategy) GetCapRewardFeeMultiple added in v0.75.0

func (x *DispatchStrategy) GetCapRewardFeeMultiple() string

func (*DispatchStrategy) GetDistributionStrategy added in v0.73.0

func (x *DispatchStrategy) GetDistributionStrategy() DistributionStrategy

func (*DispatchStrategy) GetEntityScope added in v0.73.0

func (x *DispatchStrategy) GetEntityScope() EntityScope

func (*DispatchStrategy) GetIndividualScope added in v0.73.0

func (x *DispatchStrategy) GetIndividualScope() IndividualScope

func (*DispatchStrategy) GetLockPeriod added in v0.73.0

func (x *DispatchStrategy) GetLockPeriod() uint64

func (*DispatchStrategy) GetMarkets

func (x *DispatchStrategy) GetMarkets() []string

func (*DispatchStrategy) GetMetric

func (x *DispatchStrategy) GetMetric() DispatchMetric

func (*DispatchStrategy) GetNTopPerformers added in v0.73.0

func (x *DispatchStrategy) GetNTopPerformers() string

func (*DispatchStrategy) GetNotionalTimeWeightedAveragePositionRequirement added in v0.73.0

func (x *DispatchStrategy) GetNotionalTimeWeightedAveragePositionRequirement() string

func (*DispatchStrategy) GetRankTable added in v0.73.0

func (x *DispatchStrategy) GetRankTable() []*Rank

func (*DispatchStrategy) GetStakingRequirement added in v0.73.0

func (x *DispatchStrategy) GetStakingRequirement() string

func (*DispatchStrategy) GetTeamScope added in v0.73.0

func (x *DispatchStrategy) GetTeamScope() []string

func (*DispatchStrategy) GetTransferInterval added in v0.76.0

func (x *DispatchStrategy) GetTransferInterval() int32

func (*DispatchStrategy) GetWindowLength added in v0.73.0

func (x *DispatchStrategy) GetWindowLength() uint64

func (*DispatchStrategy) ProtoMessage

func (*DispatchStrategy) ProtoMessage()

func (*DispatchStrategy) ProtoReflect

func (x *DispatchStrategy) ProtoReflect() protoreflect.Message

func (*DispatchStrategy) Reset

func (x *DispatchStrategy) Reset()

func (*DispatchStrategy) String

func (x *DispatchStrategy) String() string

type DistributionStrategy added in v0.73.0

type DistributionStrategy int32
const (
	DistributionStrategy_DISTRIBUTION_STRATEGY_UNSPECIFIED DistributionStrategy = 0
	// Rewards funded using the pro-rata strategy should be distributed pro-rata by each entity's reward metric, scaled by any active multipliers that party has.
	DistributionStrategy_DISTRIBUTION_STRATEGY_PRO_RATA DistributionStrategy = 1
	// Rewards funded using the party rank.
	DistributionStrategy_DISTRIBUTION_STRATEGY_RANK DistributionStrategy = 2
	// Rewards funded using the ranked lottery.
	DistributionStrategy_DISTRIBUTION_STRATEGY_RANK_LOTTERY DistributionStrategy = 3
)

func (DistributionStrategy) Descriptor added in v0.73.0

func (DistributionStrategy) Enum added in v0.73.0

func (DistributionStrategy) EnumDescriptor deprecated added in v0.73.0

func (DistributionStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use DistributionStrategy.Descriptor instead.

func (DistributionStrategy) Number added in v0.73.0

func (DistributionStrategy) String added in v0.73.0

func (x DistributionStrategy) String() string

func (DistributionStrategy) Type added in v0.73.0

type ERC20

type ERC20 struct {

	// Address of the contract for the token, on the ethereum network.
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// Lifetime limits deposit per address
	// note: this is a temporary measure that can be changed by governance.
	LifetimeLimit string `protobuf:"bytes,2,opt,name=lifetime_limit,json=lifetimeLimit,proto3" json:"lifetime_limit,omitempty"`
	// Maximum you can withdraw instantly. All withdrawals over the threshold will be delayed by the withdrawal delay.
	// There’s no limit on the size of a withdrawal
	// note: this is a temporary measure that can be changed by governance.
	WithdrawThreshold string `protobuf:"bytes,3,opt,name=withdraw_threshold,json=withdrawThreshold,proto3" json:"withdraw_threshold,omitempty"`
	// Chain ID the asset originated from.
	ChainId string `protobuf:"bytes,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

ERC20 token based asset, living on the ethereum network

func (*ERC20) Descriptor deprecated

func (*ERC20) Descriptor() ([]byte, []int)

Deprecated: Use ERC20.ProtoReflect.Descriptor instead.

func (*ERC20) GetChainId added in v0.76.0

func (x *ERC20) GetChainId() string

func (*ERC20) GetContractAddress

func (x *ERC20) GetContractAddress() string

func (*ERC20) GetLifetimeLimit

func (x *ERC20) GetLifetimeLimit() string

func (*ERC20) GetWithdrawThreshold

func (x *ERC20) GetWithdrawThreshold() string

func (*ERC20) ProtoMessage

func (*ERC20) ProtoMessage()

func (*ERC20) ProtoReflect

func (x *ERC20) ProtoReflect() protoreflect.Message

func (*ERC20) Reset

func (x *ERC20) Reset()

func (*ERC20) String

func (x *ERC20) String() string

type ERC20AssetDelist

type ERC20AssetDelist struct {

	// Vega network internal asset ID.
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// contains filtered or unexported fields
}

Asset deny-listing for an ERC20 token

func (*ERC20AssetDelist) Descriptor deprecated

func (*ERC20AssetDelist) Descriptor() ([]byte, []int)

Deprecated: Use ERC20AssetDelist.ProtoReflect.Descriptor instead.

func (*ERC20AssetDelist) GetVegaAssetId

func (x *ERC20AssetDelist) GetVegaAssetId() string

func (*ERC20AssetDelist) ProtoMessage

func (*ERC20AssetDelist) ProtoMessage()

func (*ERC20AssetDelist) ProtoReflect

func (x *ERC20AssetDelist) ProtoReflect() protoreflect.Message

func (*ERC20AssetDelist) Reset

func (x *ERC20AssetDelist) Reset()

func (*ERC20AssetDelist) String

func (x *ERC20AssetDelist) String() string

type ERC20AssetLimitsUpdated

type ERC20AssetLimitsUpdated struct {

	// Vega network internal asset ID.
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// Ethereum wallet that initiated the deposit.
	SourceEthereumAddress string `` /* 126-byte string literal not displayed */
	// Updated lifetime limits.
	LifetimeLimits string `protobuf:"bytes,3,opt,name=lifetime_limits,json=lifetimeLimits,proto3" json:"lifetime_limits,omitempty"`
	// Updated withdrawal threshold.
	WithdrawThreshold string `protobuf:"bytes,4,opt,name=withdraw_threshold,json=withdrawThreshold,proto3" json:"withdraw_threshold,omitempty"`
	// contains filtered or unexported fields
}

func (*ERC20AssetLimitsUpdated) Descriptor deprecated

func (*ERC20AssetLimitsUpdated) Descriptor() ([]byte, []int)

Deprecated: Use ERC20AssetLimitsUpdated.ProtoReflect.Descriptor instead.

func (*ERC20AssetLimitsUpdated) GetLifetimeLimits

func (x *ERC20AssetLimitsUpdated) GetLifetimeLimits() string

func (*ERC20AssetLimitsUpdated) GetSourceEthereumAddress

func (x *ERC20AssetLimitsUpdated) GetSourceEthereumAddress() string

func (*ERC20AssetLimitsUpdated) GetVegaAssetId

func (x *ERC20AssetLimitsUpdated) GetVegaAssetId() string

func (*ERC20AssetLimitsUpdated) GetWithdrawThreshold

func (x *ERC20AssetLimitsUpdated) GetWithdrawThreshold() string

func (*ERC20AssetLimitsUpdated) ProtoMessage

func (*ERC20AssetLimitsUpdated) ProtoMessage()

func (*ERC20AssetLimitsUpdated) ProtoReflect

func (x *ERC20AssetLimitsUpdated) ProtoReflect() protoreflect.Message

func (*ERC20AssetLimitsUpdated) Reset

func (x *ERC20AssetLimitsUpdated) Reset()

func (*ERC20AssetLimitsUpdated) String

func (x *ERC20AssetLimitsUpdated) String() string

type ERC20AssetList

type ERC20AssetList struct {

	// Vega network internal asset ID.
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// Ethereum address of the asset.
	AssetSource string `protobuf:"bytes,2,opt,name=asset_source,json=assetSource,proto3" json:"asset_source,omitempty"`
	// contains filtered or unexported fields
}

Asset allow-listing for an ERC20 token

func (*ERC20AssetList) Descriptor deprecated

func (*ERC20AssetList) Descriptor() ([]byte, []int)

Deprecated: Use ERC20AssetList.ProtoReflect.Descriptor instead.

func (*ERC20AssetList) GetAssetSource

func (x *ERC20AssetList) GetAssetSource() string

func (*ERC20AssetList) GetVegaAssetId

func (x *ERC20AssetList) GetVegaAssetId() string

func (*ERC20AssetList) ProtoMessage

func (*ERC20AssetList) ProtoMessage()

func (*ERC20AssetList) ProtoReflect

func (x *ERC20AssetList) ProtoReflect() protoreflect.Message

func (*ERC20AssetList) Reset

func (x *ERC20AssetList) Reset()

func (*ERC20AssetList) String

func (x *ERC20AssetList) String() string

type ERC20Deposit

type ERC20Deposit struct {

	// Vega network internal asset ID.
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// Ethereum wallet that initiated the deposit.
	SourceEthereumAddress string `` /* 126-byte string literal not displayed */
	// Vega party ID i.e. public key that is the target of the deposit.
	TargetPartyId string `protobuf:"bytes,3,opt,name=target_party_id,json=targetPartyId,proto3" json:"target_party_id,omitempty"`
	// Amount to be deposited.
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Asset deposit for an ERC20 token

func (*ERC20Deposit) Descriptor deprecated

func (*ERC20Deposit) Descriptor() ([]byte, []int)

Deprecated: Use ERC20Deposit.ProtoReflect.Descriptor instead.

func (*ERC20Deposit) GetAmount

func (x *ERC20Deposit) GetAmount() string

func (*ERC20Deposit) GetSourceEthereumAddress

func (x *ERC20Deposit) GetSourceEthereumAddress() string

func (*ERC20Deposit) GetTargetPartyId

func (x *ERC20Deposit) GetTargetPartyId() string

func (*ERC20Deposit) GetVegaAssetId

func (x *ERC20Deposit) GetVegaAssetId() string

func (*ERC20Deposit) ProtoMessage

func (*ERC20Deposit) ProtoMessage()

func (*ERC20Deposit) ProtoReflect

func (x *ERC20Deposit) ProtoReflect() protoreflect.Message

func (*ERC20Deposit) Reset

func (x *ERC20Deposit) Reset()

func (*ERC20Deposit) String

func (x *ERC20Deposit) String() string

type ERC20Event

type ERC20Event struct {

	// Index of the log in the transaction.
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// Block in which the transaction was added.
	Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"`
	// ID of the source chain for this event.
	ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Action undertaken as a result of the event.
	//
	// Types that are assignable to Action:
	//
	//	*ERC20Event_AssetList
	//	*ERC20Event_AssetDelist
	//	*ERC20Event_Deposit
	//	*ERC20Event_Withdrawal
	//	*ERC20Event_AssetLimitsUpdated
	//	*ERC20Event_BridgeStopped
	//	*ERC20Event_BridgeResumed
	Action isERC20Event_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

Event related to an ERC20 token

func (*ERC20Event) Descriptor deprecated

func (*ERC20Event) Descriptor() ([]byte, []int)

Deprecated: Use ERC20Event.ProtoReflect.Descriptor instead.

func (*ERC20Event) GetAction

func (m *ERC20Event) GetAction() isERC20Event_Action

func (*ERC20Event) GetAssetDelist

func (x *ERC20Event) GetAssetDelist() *ERC20AssetDelist

func (*ERC20Event) GetAssetLimitsUpdated

func (x *ERC20Event) GetAssetLimitsUpdated() *ERC20AssetLimitsUpdated

func (*ERC20Event) GetAssetList

func (x *ERC20Event) GetAssetList() *ERC20AssetList

func (*ERC20Event) GetBlock

func (x *ERC20Event) GetBlock() uint64

func (*ERC20Event) GetBridgeResumed

func (x *ERC20Event) GetBridgeResumed() bool

func (*ERC20Event) GetBridgeStopped

func (x *ERC20Event) GetBridgeStopped() bool

func (*ERC20Event) GetChainId added in v0.76.0

func (x *ERC20Event) GetChainId() string

func (*ERC20Event) GetDeposit

func (x *ERC20Event) GetDeposit() *ERC20Deposit

func (*ERC20Event) GetIndex

func (x *ERC20Event) GetIndex() uint64

func (*ERC20Event) GetWithdrawal

func (x *ERC20Event) GetWithdrawal() *ERC20Withdrawal

func (*ERC20Event) ProtoMessage

func (*ERC20Event) ProtoMessage()

func (*ERC20Event) ProtoReflect

func (x *ERC20Event) ProtoReflect() protoreflect.Message

func (*ERC20Event) Reset

func (x *ERC20Event) Reset()

func (*ERC20Event) String

func (x *ERC20Event) String() string

type ERC20Event_AssetDelist

type ERC20Event_AssetDelist struct {
	// De-list an ERC20 asset.
	AssetDelist *ERC20AssetDelist `protobuf:"bytes,1002,opt,name=asset_delist,json=assetDelist,proto3,oneof"`
}

type ERC20Event_AssetLimitsUpdated

type ERC20Event_AssetLimitsUpdated struct {
	// Update an ERC20 asset.
	AssetLimitsUpdated *ERC20AssetLimitsUpdated `protobuf:"bytes,1005,opt,name=asset_limits_updated,json=assetLimitsUpdated,proto3,oneof"`
}

type ERC20Event_AssetList

type ERC20Event_AssetList struct {
	// List an ERC20 asset.
	AssetList *ERC20AssetList `protobuf:"bytes,1001,opt,name=asset_list,json=assetList,proto3,oneof"`
}

type ERC20Event_BridgeResumed

type ERC20Event_BridgeResumed struct {
	// Bridge operations has been resumed.
	BridgeResumed bool `protobuf:"varint,1007,opt,name=bridge_resumed,json=bridgeResumed,proto3,oneof"`
}

type ERC20Event_BridgeStopped

type ERC20Event_BridgeStopped struct {
	// Bridge operations has been stopped.
	BridgeStopped bool `protobuf:"varint,1006,opt,name=bridge_stopped,json=bridgeStopped,proto3,oneof"`
}

type ERC20Event_Deposit

type ERC20Event_Deposit struct {
	// Deposit ERC20 asset.
	Deposit *ERC20Deposit `protobuf:"bytes,1003,opt,name=deposit,proto3,oneof"`
}

type ERC20Event_Withdrawal

type ERC20Event_Withdrawal struct {
	// Withdraw ERC20 asset.
	Withdrawal *ERC20Withdrawal `protobuf:"bytes,1004,opt,name=withdrawal,proto3,oneof"`
}

type ERC20Heartbeat added in v0.77.0

type ERC20Heartbeat struct {

	// Contract address that is being listened to
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// Last Ethereum block height that was checked for events
	BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// Ethereum block time in Unix seconds.
	BlockTime uint64 `protobuf:"varint,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// Source chain for this chain event.
	SourceChainId string `protobuf:"bytes,6,opt,name=source_chain_id,json=sourceChainId,proto3" json:"source_chain_id,omitempty"`
	// contains filtered or unexported fields
}

Heartbeat represents that the ERC20 bridge is being watched even though no events happened.

func (*ERC20Heartbeat) Descriptor deprecated added in v0.77.0

func (*ERC20Heartbeat) Descriptor() ([]byte, []int)

Deprecated: Use ERC20Heartbeat.ProtoReflect.Descriptor instead.

func (*ERC20Heartbeat) GetBlockHeight added in v0.77.0

func (x *ERC20Heartbeat) GetBlockHeight() uint64

func (*ERC20Heartbeat) GetBlockTime added in v0.77.0

func (x *ERC20Heartbeat) GetBlockTime() uint64

func (*ERC20Heartbeat) GetContractAddress added in v0.77.0

func (x *ERC20Heartbeat) GetContractAddress() string

func (*ERC20Heartbeat) GetSourceChainId added in v0.77.0

func (x *ERC20Heartbeat) GetSourceChainId() string

func (*ERC20Heartbeat) ProtoMessage added in v0.77.0

func (*ERC20Heartbeat) ProtoMessage()

func (*ERC20Heartbeat) ProtoReflect added in v0.77.0

func (x *ERC20Heartbeat) ProtoReflect() protoreflect.Message

func (*ERC20Heartbeat) Reset added in v0.77.0

func (x *ERC20Heartbeat) Reset()

func (*ERC20Heartbeat) String added in v0.77.0

func (x *ERC20Heartbeat) String() string

type ERC20MultiSigEvent

type ERC20MultiSigEvent struct {

	// Index of the log in the transaction
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// Block in which the transaction was added
	Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"`
	// ID of the source chain for this event.
	ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Action undertaken as a result of the event.
	//
	// Types that are assignable to Action:
	//
	//	*ERC20MultiSigEvent_SignerAdded
	//	*ERC20MultiSigEvent_SignerRemoved
	//	*ERC20MultiSigEvent_ThresholdSet
	Action isERC20MultiSigEvent_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

Event related to the ERC20 MultiSig

func (*ERC20MultiSigEvent) Descriptor deprecated

func (*ERC20MultiSigEvent) Descriptor() ([]byte, []int)

Deprecated: Use ERC20MultiSigEvent.ProtoReflect.Descriptor instead.

func (*ERC20MultiSigEvent) GetAction

func (m *ERC20MultiSigEvent) GetAction() isERC20MultiSigEvent_Action

func (*ERC20MultiSigEvent) GetBlock

func (x *ERC20MultiSigEvent) GetBlock() uint64

func (*ERC20MultiSigEvent) GetChainId added in v0.76.0

func (x *ERC20MultiSigEvent) GetChainId() string

func (*ERC20MultiSigEvent) GetIndex

func (x *ERC20MultiSigEvent) GetIndex() uint64

func (*ERC20MultiSigEvent) GetSignerAdded

func (x *ERC20MultiSigEvent) GetSignerAdded() *ERC20SignerAdded

func (*ERC20MultiSigEvent) GetSignerRemoved

func (x *ERC20MultiSigEvent) GetSignerRemoved() *ERC20SignerRemoved

func (*ERC20MultiSigEvent) GetThresholdSet

func (x *ERC20MultiSigEvent) GetThresholdSet() *ERC20ThresholdSet

func (*ERC20MultiSigEvent) ProtoMessage

func (*ERC20MultiSigEvent) ProtoMessage()

func (*ERC20MultiSigEvent) ProtoReflect

func (x *ERC20MultiSigEvent) ProtoReflect() protoreflect.Message

func (*ERC20MultiSigEvent) Reset

func (x *ERC20MultiSigEvent) Reset()

func (*ERC20MultiSigEvent) String

func (x *ERC20MultiSigEvent) String() string

type ERC20MultiSigEvent_SignerAdded

type ERC20MultiSigEvent_SignerAdded struct {
	// Add a signer to the erc20 bridge
	SignerAdded *ERC20SignerAdded `protobuf:"bytes,1001,opt,name=signer_added,json=signerAdded,proto3,oneof"`
}

type ERC20MultiSigEvent_SignerRemoved

type ERC20MultiSigEvent_SignerRemoved struct {
	// Remove a signer from the erc20 bridge
	SignerRemoved *ERC20SignerRemoved `protobuf:"bytes,1002,opt,name=signer_removed,json=signerRemoved,proto3,oneof"`
}

type ERC20MultiSigEvent_ThresholdSet

type ERC20MultiSigEvent_ThresholdSet struct {
	// Threshold set
	ThresholdSet *ERC20ThresholdSet `protobuf:"bytes,1003,opt,name=threshold_set,json=thresholdSet,proto3,oneof"`
}

type ERC20SignerAdded

type ERC20SignerAdded struct {

	// Ethereum address of the new signer
	NewSigner string `protobuf:"bytes,1,opt,name=new_signer,json=newSigner,proto3" json:"new_signer,omitempty"`
	// Nonce created by the Vega network used for this new signer
	Nonce string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Time at which the block was produced
	// will be used to inform the core at what time
	// the stake was made unavailable.
	BlockTime int64 `protobuf:"varint,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// contains filtered or unexported fields
}

New signer added to the ERC20 bridge

func (*ERC20SignerAdded) Descriptor deprecated

func (*ERC20SignerAdded) Descriptor() ([]byte, []int)

Deprecated: Use ERC20SignerAdded.ProtoReflect.Descriptor instead.

func (*ERC20SignerAdded) GetBlockTime

func (x *ERC20SignerAdded) GetBlockTime() int64

func (*ERC20SignerAdded) GetNewSigner

func (x *ERC20SignerAdded) GetNewSigner() string

func (*ERC20SignerAdded) GetNonce

func (x *ERC20SignerAdded) GetNonce() string

func (*ERC20SignerAdded) ProtoMessage

func (*ERC20SignerAdded) ProtoMessage()

func (*ERC20SignerAdded) ProtoReflect

func (x *ERC20SignerAdded) ProtoReflect() protoreflect.Message

func (*ERC20SignerAdded) Reset

func (x *ERC20SignerAdded) Reset()

func (*ERC20SignerAdded) String

func (x *ERC20SignerAdded) String() string

type ERC20SignerRemoved

type ERC20SignerRemoved struct {

	// Ethereum address of the old signer
	OldSigner string `protobuf:"bytes,1,opt,name=old_signer,json=oldSigner,proto3" json:"old_signer,omitempty"`
	// Nonce created by the Vega network used for this old signer
	Nonce string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Time at which the block was produced.
	// Will be used to inform the core at what time
	// the stake was made unavailable.
	BlockTime int64 `protobuf:"varint,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// contains filtered or unexported fields
}

Signer removed from the ERC20 bridge

func (*ERC20SignerRemoved) Descriptor deprecated

func (*ERC20SignerRemoved) Descriptor() ([]byte, []int)

Deprecated: Use ERC20SignerRemoved.ProtoReflect.Descriptor instead.

func (*ERC20SignerRemoved) GetBlockTime

func (x *ERC20SignerRemoved) GetBlockTime() int64

func (*ERC20SignerRemoved) GetNonce

func (x *ERC20SignerRemoved) GetNonce() string

func (*ERC20SignerRemoved) GetOldSigner

func (x *ERC20SignerRemoved) GetOldSigner() string

func (*ERC20SignerRemoved) ProtoMessage

func (*ERC20SignerRemoved) ProtoMessage()

func (*ERC20SignerRemoved) ProtoReflect

func (x *ERC20SignerRemoved) ProtoReflect() protoreflect.Message

func (*ERC20SignerRemoved) Reset

func (x *ERC20SignerRemoved) Reset()

func (*ERC20SignerRemoved) String

func (x *ERC20SignerRemoved) String() string

type ERC20ThresholdSet

type ERC20ThresholdSet struct {

	// New threshold value to set
	NewThreshold uint32 `protobuf:"varint,1,opt,name=new_threshold,json=newThreshold,proto3" json:"new_threshold,omitempty"`
	// Nonce created by the Vega network
	Nonce string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// Time at which the block was produced.
	// Will be used to inform the core at what time
	// the stake was made unavailable.
	BlockTime int64 `protobuf:"varint,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// contains filtered or unexported fields
}

Threshold has been updated on the multisig control

func (*ERC20ThresholdSet) Descriptor deprecated

func (*ERC20ThresholdSet) Descriptor() ([]byte, []int)

Deprecated: Use ERC20ThresholdSet.ProtoReflect.Descriptor instead.

func (*ERC20ThresholdSet) GetBlockTime

func (x *ERC20ThresholdSet) GetBlockTime() int64

func (*ERC20ThresholdSet) GetNewThreshold

func (x *ERC20ThresholdSet) GetNewThreshold() uint32

func (*ERC20ThresholdSet) GetNonce

func (x *ERC20ThresholdSet) GetNonce() string

func (*ERC20ThresholdSet) ProtoMessage

func (*ERC20ThresholdSet) ProtoMessage()

func (*ERC20ThresholdSet) ProtoReflect

func (x *ERC20ThresholdSet) ProtoReflect() protoreflect.Message

func (*ERC20ThresholdSet) Reset

func (x *ERC20ThresholdSet) Reset()

func (*ERC20ThresholdSet) String

func (x *ERC20ThresholdSet) String() string

type ERC20Update

type ERC20Update struct {

	// Lifetime limits deposit per address.
	// This will be interpreted against the asset decimals.
	// note: this is a temporary measure that can be changed by governance.
	LifetimeLimit string `protobuf:"bytes,1,opt,name=lifetime_limit,json=lifetimeLimit,proto3" json:"lifetime_limit,omitempty"`
	// Maximum you can withdraw instantly. All withdrawals over the threshold will be delayed by the withdrawal delay.
	// There’s no limit on the size of a withdrawal
	// note: this is a temporary measure that can be changed by governance.
	WithdrawThreshold string `protobuf:"bytes,2,opt,name=withdraw_threshold,json=withdrawThreshold,proto3" json:"withdraw_threshold,omitempty"`
	// contains filtered or unexported fields
}

func (*ERC20Update) Descriptor deprecated

func (*ERC20Update) Descriptor() ([]byte, []int)

Deprecated: Use ERC20Update.ProtoReflect.Descriptor instead.

func (*ERC20Update) GetLifetimeLimit

func (x *ERC20Update) GetLifetimeLimit() string

func (*ERC20Update) GetWithdrawThreshold

func (x *ERC20Update) GetWithdrawThreshold() string

func (*ERC20Update) ProtoMessage

func (*ERC20Update) ProtoMessage()

func (*ERC20Update) ProtoReflect

func (x *ERC20Update) ProtoReflect() protoreflect.Message

func (*ERC20Update) Reset

func (x *ERC20Update) Reset()

func (*ERC20Update) String

func (x *ERC20Update) String() string

type ERC20Withdrawal

type ERC20Withdrawal struct {

	// Vega network internal asset ID.
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// Target Ethereum wallet address.
	TargetEthereumAddress string `` /* 126-byte string literal not displayed */
	// Reference nonce used for the transaction.
	ReferenceNonce string `protobuf:"bytes,3,opt,name=reference_nonce,json=referenceNonce,proto3" json:"reference_nonce,omitempty"`
	// contains filtered or unexported fields
}

Asset withdrawal for an ERC20 token

func (*ERC20Withdrawal) Descriptor deprecated

func (*ERC20Withdrawal) Descriptor() ([]byte, []int)

Deprecated: Use ERC20Withdrawal.ProtoReflect.Descriptor instead.

func (*ERC20Withdrawal) GetReferenceNonce

func (x *ERC20Withdrawal) GetReferenceNonce() string

func (*ERC20Withdrawal) GetTargetEthereumAddress

func (x *ERC20Withdrawal) GetTargetEthereumAddress() string

func (*ERC20Withdrawal) GetVegaAssetId

func (x *ERC20Withdrawal) GetVegaAssetId() string

func (*ERC20Withdrawal) ProtoMessage

func (*ERC20Withdrawal) ProtoMessage()

func (*ERC20Withdrawal) ProtoReflect

func (x *ERC20Withdrawal) ProtoReflect() protoreflect.Message

func (*ERC20Withdrawal) Reset

func (x *ERC20Withdrawal) Reset()

func (*ERC20Withdrawal) String

func (x *ERC20Withdrawal) String() string

type EVMBridgeConfig added in v0.76.0

type EVMBridgeConfig struct {

	// Network ID of this EVM compatible network.
	NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	// Chain ID of this EVM compatible network.
	ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Contract configuration of the collateral bridge contract for this EVM compatible network.
	CollateralBridgeContract *EthereumContractConfig `` /* 135-byte string literal not displayed */
	// Number of block confirmations to wait to consider an EVM compatible chain transaction trusted.
	// An EVM compatible chain block is trusted when there are at least "n" blocks confirmed by the
	// network, "n" being the number of `confirmations` required. If `confirmations` was set to `3`,
	// and the current block to be forged (or mined) on the EVM compatible chain is block 14, block
	// 10 would be considered as trusted, but not block 11.
	Confirmations uint32 `protobuf:"varint,4,opt,name=confirmations,proto3" json:"confirmations,omitempty"`
	// Contract configuration of the multisig control contract for this EVM compatible network.
	MultisigControlContract *EthereumContractConfig `` /* 132-byte string literal not displayed */
	// Approximate block time of the EVM chain as a duration e.g. 12s, 250ms.
	BlockTime string `protobuf:"bytes,6,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// Display name of this network.
	Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

EVM Chain configuration details.

func (*EVMBridgeConfig) Descriptor deprecated added in v0.76.0

func (*EVMBridgeConfig) Descriptor() ([]byte, []int)

Deprecated: Use EVMBridgeConfig.ProtoReflect.Descriptor instead.

func (*EVMBridgeConfig) GetBlockTime added in v0.76.0

func (x *EVMBridgeConfig) GetBlockTime() string

func (*EVMBridgeConfig) GetChainId added in v0.76.0

func (x *EVMBridgeConfig) GetChainId() string

func (*EVMBridgeConfig) GetCollateralBridgeContract added in v0.76.0

func (x *EVMBridgeConfig) GetCollateralBridgeContract() *EthereumContractConfig

func (*EVMBridgeConfig) GetConfirmations added in v0.76.0

func (x *EVMBridgeConfig) GetConfirmations() uint32

func (*EVMBridgeConfig) GetMultisigControlContract added in v0.76.0

func (x *EVMBridgeConfig) GetMultisigControlContract() *EthereumContractConfig

func (*EVMBridgeConfig) GetName added in v0.76.0

func (x *EVMBridgeConfig) GetName() string

func (*EVMBridgeConfig) GetNetworkId added in v0.76.0

func (x *EVMBridgeConfig) GetNetworkId() string

func (*EVMBridgeConfig) ProtoMessage added in v0.76.0

func (*EVMBridgeConfig) ProtoMessage()

func (*EVMBridgeConfig) ProtoReflect added in v0.76.0

func (x *EVMBridgeConfig) ProtoReflect() protoreflect.Message

func (*EVMBridgeConfig) Reset added in v0.76.0

func (x *EVMBridgeConfig) Reset()

func (*EVMBridgeConfig) String added in v0.76.0

func (x *EVMBridgeConfig) String() string

type EVMBridgeConfigs added in v0.76.0

type EVMBridgeConfigs struct {

	// The EVM configurations
	Configs []*EVMBridgeConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
	// contains filtered or unexported fields
}

A list of EVM bridge configurations

func (*EVMBridgeConfigs) Descriptor deprecated added in v0.76.0

func (*EVMBridgeConfigs) Descriptor() ([]byte, []int)

Deprecated: Use EVMBridgeConfigs.ProtoReflect.Descriptor instead.

func (*EVMBridgeConfigs) GetConfigs added in v0.76.0

func (x *EVMBridgeConfigs) GetConfigs() []*EVMBridgeConfig

func (*EVMBridgeConfigs) ProtoMessage added in v0.76.0

func (*EVMBridgeConfigs) ProtoMessage()

func (*EVMBridgeConfigs) ProtoReflect added in v0.76.0

func (x *EVMBridgeConfigs) ProtoReflect() protoreflect.Message

func (*EVMBridgeConfigs) Reset added in v0.76.0

func (x *EVMBridgeConfigs) Reset()

func (*EVMBridgeConfigs) String added in v0.76.0

func (x *EVMBridgeConfigs) String() string

type EntityScope added in v0.73.0

type EntityScope int32
const (
	EntityScope_ENTITY_SCOPE_UNSPECIFIED EntityScope = 0
	// Rewards must be distributed directly to eligible parties.
	EntityScope_ENTITY_SCOPE_INDIVIDUALS EntityScope = 1
	// Rewards must be distributed to directly eligible teams, and then amongst team members
	EntityScope_ENTITY_SCOPE_TEAMS EntityScope = 2
)

func (EntityScope) Descriptor added in v0.73.0

func (EntityScope) Enum added in v0.73.0

func (x EntityScope) Enum() *EntityScope

func (EntityScope) EnumDescriptor deprecated added in v0.73.0

func (EntityScope) EnumDescriptor() ([]byte, []int)

Deprecated: Use EntityScope.Descriptor instead.

func (EntityScope) Number added in v0.73.0

func (x EntityScope) Number() protoreflect.EnumNumber

func (EntityScope) String added in v0.73.0

func (x EntityScope) String() string

func (EntityScope) Type added in v0.73.0

type Epoch

type Epoch struct {

	// Sequence is used as epoch ID.
	Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
	// Timestamps for start/end etc.
	Timestamps *EpochTimestamps `protobuf:"bytes,2,opt,name=timestamps,proto3" json:"timestamps,omitempty"`
	// Validators that participated in this epoch.
	Validators []*Node `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators,omitempty"`
	// List of all delegations in epoch.
	Delegations []*Delegation `protobuf:"bytes,4,rep,name=delegations,proto3" json:"delegations,omitempty"`
	// contains filtered or unexported fields
}

func (*Epoch) Descriptor deprecated

func (*Epoch) Descriptor() ([]byte, []int)

Deprecated: Use Epoch.ProtoReflect.Descriptor instead.

func (*Epoch) GetDelegations

func (x *Epoch) GetDelegations() []*Delegation

func (*Epoch) GetSeq

func (x *Epoch) GetSeq() uint64

func (*Epoch) GetTimestamps

func (x *Epoch) GetTimestamps() *EpochTimestamps

func (*Epoch) GetValidators

func (x *Epoch) GetValidators() []*Node

func (*Epoch) ProtoMessage

func (*Epoch) ProtoMessage()

func (*Epoch) ProtoReflect

func (x *Epoch) ProtoReflect() protoreflect.Message

func (*Epoch) Reset

func (x *Epoch) Reset()

func (*Epoch) String

func (x *Epoch) String() string

type EpochAction

type EpochAction int32

What epoch action has occurred

const (
	EpochAction_EPOCH_ACTION_UNSPECIFIED EpochAction = 0
	// Epoch update is for a new epoch.
	EpochAction_EPOCH_ACTION_START EpochAction = 1
	// Epoch update is for the end of an epoch.
	EpochAction_EPOCH_ACTION_END EpochAction = 2
)

func (EpochAction) Descriptor

func (EpochAction) Enum

func (x EpochAction) Enum() *EpochAction

func (EpochAction) EnumDescriptor deprecated

func (EpochAction) EnumDescriptor() ([]byte, []int)

Deprecated: Use EpochAction.Descriptor instead.

func (EpochAction) Number

func (x EpochAction) Number() protoreflect.EnumNumber

func (EpochAction) String

func (x EpochAction) String() string

func (EpochAction) Type

type EpochData

type EpochData struct {

	// Total number of epochs since node was created.
	Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// Total number of offline epochs since node was created.
	Offline int32 `protobuf:"varint,2,opt,name=offline,proto3" json:"offline,omitempty"`
	// Total number of online epochs since node was created.
	Online int32 `protobuf:"varint,3,opt,name=online,proto3" json:"online,omitempty"`
	// contains filtered or unexported fields
}

func (*EpochData) Descriptor deprecated

func (*EpochData) Descriptor() ([]byte, []int)

Deprecated: Use EpochData.ProtoReflect.Descriptor instead.

func (*EpochData) GetOffline

func (x *EpochData) GetOffline() int32

func (*EpochData) GetOnline

func (x *EpochData) GetOnline() int32

func (*EpochData) GetTotal

func (x *EpochData) GetTotal() int32

func (*EpochData) ProtoMessage

func (*EpochData) ProtoMessage()

func (*EpochData) ProtoReflect

func (x *EpochData) ProtoReflect() protoreflect.Message

func (*EpochData) Reset

func (x *EpochData) Reset()

func (*EpochData) String

func (x *EpochData) String() string

type EpochParticipation

type EpochParticipation struct {
	Epoch        *Epoch  `protobuf:"bytes,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
	Offline      uint64  `protobuf:"varint,2,opt,name=offline,proto3" json:"offline,omitempty"`
	Online       uint64  `protobuf:"varint,3,opt,name=online,proto3" json:"online,omitempty"`
	TotalRewards float64 `protobuf:"fixed64,4,opt,name=total_rewards,json=totalRewards,proto3" json:"total_rewards,omitempty"`
	// contains filtered or unexported fields
}

func (*EpochParticipation) Descriptor deprecated

func (*EpochParticipation) Descriptor() ([]byte, []int)

Deprecated: Use EpochParticipation.ProtoReflect.Descriptor instead.

func (*EpochParticipation) GetEpoch

func (x *EpochParticipation) GetEpoch() *Epoch

func (*EpochParticipation) GetOffline

func (x *EpochParticipation) GetOffline() uint64

func (*EpochParticipation) GetOnline

func (x *EpochParticipation) GetOnline() uint64

func (*EpochParticipation) GetTotalRewards

func (x *EpochParticipation) GetTotalRewards() float64

func (*EpochParticipation) ProtoMessage

func (*EpochParticipation) ProtoMessage()

func (*EpochParticipation) ProtoReflect

func (x *EpochParticipation) ProtoReflect() protoreflect.Message

func (*EpochParticipation) Reset

func (x *EpochParticipation) Reset()

func (*EpochParticipation) String

func (x *EpochParticipation) String() string

type EpochRewardSummary added in v0.65.0

type EpochRewardSummary struct {

	// Epoch in which the reward is being paid.
	Epoch uint64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
	// Asset ID in which the reward is being paid.
	AssetId string `protobuf:"bytes,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// Market ID in which the reward is being paid.
	MarketId string `protobuf:"bytes,3,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Type of reward being paid.
	RewardType string `protobuf:"bytes,4,opt,name=reward_type,json=rewardType,proto3" json:"reward_type,omitempty"`
	// Amount distributed. This field is an unsigned integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Details for rewards for a combination of asset, market, and reward type in a given epoch

func (*EpochRewardSummary) Descriptor deprecated added in v0.65.0

func (*EpochRewardSummary) Descriptor() ([]byte, []int)

Deprecated: Use EpochRewardSummary.ProtoReflect.Descriptor instead.

func (*EpochRewardSummary) GetAmount added in v0.65.0

func (x *EpochRewardSummary) GetAmount() string

func (*EpochRewardSummary) GetAssetId added in v0.65.0

func (x *EpochRewardSummary) GetAssetId() string

func (*EpochRewardSummary) GetEpoch added in v0.65.0

func (x *EpochRewardSummary) GetEpoch() uint64

func (*EpochRewardSummary) GetMarketId added in v0.65.0

func (x *EpochRewardSummary) GetMarketId() string

func (*EpochRewardSummary) GetRewardType added in v0.65.0

func (x *EpochRewardSummary) GetRewardType() string

func (*EpochRewardSummary) ProtoMessage added in v0.65.0

func (*EpochRewardSummary) ProtoMessage()

func (*EpochRewardSummary) ProtoReflect added in v0.65.0

func (x *EpochRewardSummary) ProtoReflect() protoreflect.Message

func (*EpochRewardSummary) Reset added in v0.65.0

func (x *EpochRewardSummary) Reset()

func (*EpochRewardSummary) String added in v0.65.0

func (x *EpochRewardSummary) String() string

type EpochTimestamps

type EpochTimestamps struct {

	// Timestamp in Unix nanoseconds for when epoch started.
	StartTime int64 `protobuf:"varint,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Timestamp in Unix nanoseconds for the epoch's expiry.
	ExpiryTime int64 `protobuf:"varint,2,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"`
	// Timestamp in Unix nanoseconds for when the epoch ended, empty if not ended.
	EndTime int64 `protobuf:"varint,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Height of first block in the epoch.
	FirstBlock uint64 `protobuf:"varint,4,opt,name=first_block,json=firstBlock,proto3" json:"first_block,omitempty"`
	// Height of last block in the epoch, empty if not ended.
	LastBlock uint64 `protobuf:"varint,5,opt,name=last_block,json=lastBlock,proto3" json:"last_block,omitempty"`
	// contains filtered or unexported fields
}

Describes in both human readable and block time when an epoch spans

func (*EpochTimestamps) Descriptor deprecated

func (*EpochTimestamps) Descriptor() ([]byte, []int)

Deprecated: Use EpochTimestamps.ProtoReflect.Descriptor instead.

func (*EpochTimestamps) GetEndTime

func (x *EpochTimestamps) GetEndTime() int64

func (*EpochTimestamps) GetExpiryTime

func (x *EpochTimestamps) GetExpiryTime() int64

func (*EpochTimestamps) GetFirstBlock

func (x *EpochTimestamps) GetFirstBlock() uint64

func (*EpochTimestamps) GetLastBlock

func (x *EpochTimestamps) GetLastBlock() uint64

func (*EpochTimestamps) GetStartTime

func (x *EpochTimestamps) GetStartTime() int64

func (*EpochTimestamps) ProtoMessage

func (*EpochTimestamps) ProtoMessage()

func (*EpochTimestamps) ProtoReflect

func (x *EpochTimestamps) ProtoReflect() protoreflect.Message

func (*EpochTimestamps) Reset

func (x *EpochTimestamps) Reset()

func (*EpochTimestamps) String

func (x *EpochTimestamps) String() string

type Erc20WithdrawExt

type Erc20WithdrawExt struct {

	// Address into which the bridge will release the funds.
	ReceiverAddress string `protobuf:"bytes,1,opt,name=receiver_address,json=receiverAddress,proto3" json:"receiver_address,omitempty"`
	// contains filtered or unexported fields
}

Extension of data required for the withdraw submissions

func (*Erc20WithdrawExt) Descriptor deprecated

func (*Erc20WithdrawExt) Descriptor() ([]byte, []int)

Deprecated: Use Erc20WithdrawExt.ProtoReflect.Descriptor instead.

func (*Erc20WithdrawExt) GetReceiverAddress

func (x *Erc20WithdrawExt) GetReceiverAddress() string

func (*Erc20WithdrawExt) ProtoMessage

func (*Erc20WithdrawExt) ProtoMessage()

func (*Erc20WithdrawExt) ProtoReflect

func (x *Erc20WithdrawExt) ProtoReflect() protoreflect.Message

func (*Erc20WithdrawExt) Reset

func (x *Erc20WithdrawExt) Reset()

func (*Erc20WithdrawExt) String

func (x *Erc20WithdrawExt) String() string

type ErrorDetail

type ErrorDetail struct {

	// Vega API domain specific unique error code, useful for client side mappings, e.g. 10004.
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// Message that describes the error in more detail, should describe the problem encountered.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// Any inner error information that could add more context, or be helpful for error reporting.
	Inner string `protobuf:"bytes,3,opt,name=inner,proto3" json:"inner,omitempty"`
	// contains filtered or unexported fields
}

Represents Vega domain specific error information over gRPC/Protobuf

func (*ErrorDetail) Descriptor deprecated

func (*ErrorDetail) Descriptor() ([]byte, []int)

Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead.

func (*ErrorDetail) GetCode

func (x *ErrorDetail) GetCode() int32

func (*ErrorDetail) GetInner

func (x *ErrorDetail) GetInner() string

func (*ErrorDetail) GetMessage

func (x *ErrorDetail) GetMessage() string

func (*ErrorDetail) ProtoMessage

func (*ErrorDetail) ProtoMessage()

func (*ErrorDetail) ProtoReflect

func (x *ErrorDetail) ProtoReflect() protoreflect.Message

func (*ErrorDetail) Reset

func (x *ErrorDetail) Reset()

func (*ErrorDetail) String

func (x *ErrorDetail) String() string

type EthCallSpec added in v0.72.0

type EthCallSpec struct {

	// Ethereum address of the contract to call.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// The ABI of that contract.
	Abi string `protobuf:"bytes,2,opt,name=abi,proto3" json:"abi,omitempty"`
	// Name of the method on the contract to call.
	Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// List of arguments to pass to method call.
	// Protobuf 'Value' wraps an arbitrary JSON type that is mapped to an Ethereum
	// type according to the ABI.
	Args []*structpb.Value `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"`
	// Conditions for determining when to call the contract method.
	Trigger *EthCallTrigger `protobuf:"bytes,5,opt,name=trigger,proto3" json:"trigger,omitempty"`
	// Number of confirmations required before the query is considered verified
	RequiredConfirmations uint64 `protobuf:"varint,6,opt,name=required_confirmations,json=requiredConfirmations,proto3" json:"required_confirmations,omitempty"`
	// Filters the data returned from the contract method
	Filters []*v1.Filter `protobuf:"bytes,7,rep,name=filters,proto3" json:"filters,omitempty"`
	// Normalisers are used to convert the data returned from the contract method
	// into a standard format. The key of the map is the name of the property,
	// which identifies the specific piece of data to other parts of the data
	// sourcing framework, for example filters. The value is a JSONPath expression
	// for expressing where in the contract call result the required data is
	// located, for example $[0] indicates the first result. $[1].price would look
	// in the second result returned from the contract for a structure with a key
	// called 'price' and use that if it exists.
	Normalisers []*Normaliser `protobuf:"bytes,8,rep,name=normalisers,proto3" json:"normalisers,omitempty"`
	// The ID of the EVM based chain which is to be used to source the oracle data.
	SourceChainId uint64 `protobuf:"varint,9,opt,name=source_chain_id,json=sourceChainId,proto3" json:"source_chain_id,omitempty"`
	// contains filtered or unexported fields
}

Specifies a data source that derives its content from calling a read method on an Ethereum contract.

func (*EthCallSpec) Descriptor deprecated added in v0.72.0

func (*EthCallSpec) Descriptor() ([]byte, []int)

Deprecated: Use EthCallSpec.ProtoReflect.Descriptor instead.

func (*EthCallSpec) GetAbi added in v0.72.0

func (x *EthCallSpec) GetAbi() string

func (*EthCallSpec) GetAddress added in v0.72.0

func (x *EthCallSpec) GetAddress() string

func (*EthCallSpec) GetArgs added in v0.72.0

func (x *EthCallSpec) GetArgs() []*structpb.Value

func (*EthCallSpec) GetFilters added in v0.73.0

func (x *EthCallSpec) GetFilters() []*v1.Filter

func (*EthCallSpec) GetMethod added in v0.72.0

func (x *EthCallSpec) GetMethod() string

func (*EthCallSpec) GetNormalisers added in v0.73.0

func (x *EthCallSpec) GetNormalisers() []*Normaliser

func (*EthCallSpec) GetRequiredConfirmations added in v0.73.0

func (x *EthCallSpec) GetRequiredConfirmations() uint64

func (*EthCallSpec) GetSourceChainId added in v0.74.0

func (x *EthCallSpec) GetSourceChainId() uint64

func (*EthCallSpec) GetTrigger added in v0.72.0

func (x *EthCallSpec) GetTrigger() *EthCallTrigger

func (EthCallSpec) IsExternalDataSourceKind added in v0.73.0

func (EthCallSpec) IsExternalDataSourceKind()

func (*EthCallSpec) ProtoMessage added in v0.72.0

func (*EthCallSpec) ProtoMessage()

func (*EthCallSpec) ProtoReflect added in v0.72.0

func (x *EthCallSpec) ProtoReflect() protoreflect.Message

func (*EthCallSpec) Reset added in v0.72.0

func (x *EthCallSpec) Reset()

func (*EthCallSpec) String added in v0.72.0

func (x *EthCallSpec) String() string

type EthCallTrigger added in v0.72.0

type EthCallTrigger struct {

	// Types that are assignable to Trigger:
	//
	//	*EthCallTrigger_TimeTrigger
	Trigger isEthCallTrigger_Trigger `protobuf_oneof:"trigger"`
	// contains filtered or unexported fields
}

Determines when the contract method should be called.

func (*EthCallTrigger) Descriptor deprecated added in v0.72.0

func (*EthCallTrigger) Descriptor() ([]byte, []int)

Deprecated: Use EthCallTrigger.ProtoReflect.Descriptor instead.

func (*EthCallTrigger) GetTimeTrigger added in v0.72.0

func (x *EthCallTrigger) GetTimeTrigger() *EthTimeTrigger

func (*EthCallTrigger) GetTrigger added in v0.72.0

func (m *EthCallTrigger) GetTrigger() isEthCallTrigger_Trigger

func (*EthCallTrigger) ProtoMessage added in v0.72.0

func (*EthCallTrigger) ProtoMessage()

func (*EthCallTrigger) ProtoReflect added in v0.72.0

func (x *EthCallTrigger) ProtoReflect() protoreflect.Message

func (*EthCallTrigger) Reset added in v0.72.0

func (x *EthCallTrigger) Reset()

func (*EthCallTrigger) String added in v0.72.0

func (x *EthCallTrigger) String() string

type EthCallTrigger_TimeTrigger added in v0.72.0

type EthCallTrigger_TimeTrigger struct {
	TimeTrigger *EthTimeTrigger `protobuf:"bytes,1,opt,name=time_trigger,json=timeTrigger,proto3,oneof"`
}

type EthContractCallEvent added in v0.72.0

type EthContractCallEvent struct {

	// ID of the data source spec that triggered this contract call.
	SpecId string `protobuf:"bytes,1,opt,name=spec_id,json=specId,proto3" json:"spec_id,omitempty"`
	// Ethereum block height.
	BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// Ethereum block time in Unix seconds.
	BlockTime uint64 `protobuf:"varint,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// Result of contract call, packed according to the ABI stored in the associated data source spec.
	Result []byte `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
	// Error message if the call failed.
	Error *string `protobuf:"bytes,5,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// Source chain for this chain event.
	SourceChainId *uint64 `protobuf:"varint,6,opt,name=source_chain_id,json=sourceChainId,proto3,oneof" json:"source_chain_id,omitempty"`
	// If true the event does not correspond to a contract call and is only a notification to core of the last checked block height.
	Heartbeat bool `protobuf:"varint,7,opt,name=heartbeat,proto3" json:"heartbeat,omitempty"`
	// contains filtered or unexported fields
}

Result of calling an arbitrary Ethereum contract method

func (*EthContractCallEvent) Descriptor deprecated added in v0.72.0

func (*EthContractCallEvent) Descriptor() ([]byte, []int)

Deprecated: Use EthContractCallEvent.ProtoReflect.Descriptor instead.

func (*EthContractCallEvent) GetBlockHeight added in v0.72.0

func (x *EthContractCallEvent) GetBlockHeight() uint64

func (*EthContractCallEvent) GetBlockTime added in v0.72.0

func (x *EthContractCallEvent) GetBlockTime() uint64

func (*EthContractCallEvent) GetError added in v0.73.0

func (x *EthContractCallEvent) GetError() string

func (*EthContractCallEvent) GetHeartbeat added in v0.75.0

func (x *EthContractCallEvent) GetHeartbeat() bool

func (*EthContractCallEvent) GetResult added in v0.72.0

func (x *EthContractCallEvent) GetResult() []byte

func (*EthContractCallEvent) GetSourceChainId added in v0.74.0

func (x *EthContractCallEvent) GetSourceChainId() uint64

func (*EthContractCallEvent) GetSpecId added in v0.72.0

func (x *EthContractCallEvent) GetSpecId() string

func (*EthContractCallEvent) ProtoMessage added in v0.72.0

func (*EthContractCallEvent) ProtoMessage()

func (*EthContractCallEvent) ProtoReflect added in v0.72.0

func (x *EthContractCallEvent) ProtoReflect() protoreflect.Message

func (*EthContractCallEvent) Reset added in v0.72.0

func (x *EthContractCallEvent) Reset()

func (*EthContractCallEvent) String added in v0.72.0

func (x *EthContractCallEvent) String() string

type EthTimeTrigger added in v0.72.0

type EthTimeTrigger struct {

	// Trigger when the Ethereum time is greater or equal to this time, in Unix
	// seconds.
	Initial *uint64 `protobuf:"varint,1,opt,name=initial,proto3,oneof" json:"initial,omitempty"`
	// Repeat the call every n seconds after the initial call. If no time for
	// initial call was specified, begin repeating immediately.
	Every *uint64 `protobuf:"varint,2,opt,name=every,proto3,oneof" json:"every,omitempty"`
	// If repeating, stop once Ethereum time is greater than this time, in Unix
	// seconds. If not set, then repeat indefinitely.
	Until *uint64 `protobuf:"varint,3,opt,name=until,proto3,oneof" json:"until,omitempty"`
	// contains filtered or unexported fields
}

Trigger for an Ethereum call based on the Ethereum block timestamp. Can be one-off or repeating.

func (*EthTimeTrigger) Descriptor deprecated added in v0.72.0

func (*EthTimeTrigger) Descriptor() ([]byte, []int)

Deprecated: Use EthTimeTrigger.ProtoReflect.Descriptor instead.

func (*EthTimeTrigger) GetEvery added in v0.72.0

func (x *EthTimeTrigger) GetEvery() uint64

func (*EthTimeTrigger) GetInitial added in v0.72.0

func (x *EthTimeTrigger) GetInitial() uint64

func (*EthTimeTrigger) GetUntil added in v0.72.0

func (x *EthTimeTrigger) GetUntil() uint64

func (*EthTimeTrigger) ProtoMessage added in v0.72.0

func (*EthTimeTrigger) ProtoMessage()

func (*EthTimeTrigger) ProtoReflect added in v0.72.0

func (x *EthTimeTrigger) ProtoReflect() protoreflect.Message

func (*EthTimeTrigger) Reset added in v0.72.0

func (x *EthTimeTrigger) Reset()

func (*EthTimeTrigger) String added in v0.72.0

func (x *EthTimeTrigger) String() string

type EthereumConfig

type EthereumConfig struct {

	// Network ID of this Ethereum network.
	NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	// Chain ID of this Ethereum network.
	ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Contract configuration of the collateral bridge contract for this Ethereum network.
	CollateralBridgeContract *EthereumContractConfig `` /* 135-byte string literal not displayed */
	// Number of block confirmations to wait to consider an Ethereum transaction trusted.
	// An Ethereum block is trusted when there are at least "n" blocks confirmed by the
	// network, "n" being the number of `confirmations` required. If `confirmations` was set to `3`,
	// and the current block to be forged (or mined) on Ethereum is block 14, block
	// 10 would be considered as trusted, but not block 11.
	Confirmations uint32 `protobuf:"varint,4,opt,name=confirmations,proto3" json:"confirmations,omitempty"`
	// Contract configuration of the stacking bridge contract for this Ethereum network.
	StakingBridgeContract *EthereumContractConfig `` /* 126-byte string literal not displayed */
	// Contract configuration of the token vesting contract for this Ethereum network.
	TokenVestingContract *EthereumContractConfig `protobuf:"bytes,6,opt,name=token_vesting_contract,json=tokenVestingContract,proto3" json:"token_vesting_contract,omitempty"`
	// Contract configuration of the multisig control contract for this Ethereum network.
	MultisigControlContract *EthereumContractConfig `` /* 132-byte string literal not displayed */
	// Approximate block time of the EVM chain as a duration e.g. 12s, 250ms.
	BlockTime string `protobuf:"bytes,8,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// contains filtered or unexported fields
}

Ethereum configuration details.

func (*EthereumConfig) Descriptor deprecated

func (*EthereumConfig) Descriptor() ([]byte, []int)

Deprecated: Use EthereumConfig.ProtoReflect.Descriptor instead.

func (*EthereumConfig) GetBlockTime added in v0.77.0

func (x *EthereumConfig) GetBlockTime() string

func (*EthereumConfig) GetChainId

func (x *EthereumConfig) GetChainId() string

func (*EthereumConfig) GetCollateralBridgeContract

func (x *EthereumConfig) GetCollateralBridgeContract() *EthereumContractConfig

func (*EthereumConfig) GetConfirmations

func (x *EthereumConfig) GetConfirmations() uint32

func (*EthereumConfig) GetMultisigControlContract

func (x *EthereumConfig) GetMultisigControlContract() *EthereumContractConfig

func (*EthereumConfig) GetNetworkId

func (x *EthereumConfig) GetNetworkId() string

func (*EthereumConfig) GetStakingBridgeContract

func (x *EthereumConfig) GetStakingBridgeContract() *EthereumContractConfig

func (*EthereumConfig) GetTokenVestingContract

func (x *EthereumConfig) GetTokenVestingContract() *EthereumContractConfig

func (*EthereumConfig) ProtoMessage

func (*EthereumConfig) ProtoMessage()

func (*EthereumConfig) ProtoReflect

func (x *EthereumConfig) ProtoReflect() protoreflect.Message

func (*EthereumConfig) Reset

func (x *EthereumConfig) Reset()

func (*EthereumConfig) String

func (x *EthereumConfig) String() string

type EthereumContractConfig

type EthereumContractConfig struct {

	// Address of the contract for this EVM compatible network. The address should start with "0x".
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Block height at which the stacking contract has been deployed for this Ethereum network.
	DeploymentBlockHeight uint64 `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*EthereumContractConfig) Descriptor deprecated

func (*EthereumContractConfig) Descriptor() ([]byte, []int)

Deprecated: Use EthereumContractConfig.ProtoReflect.Descriptor instead.

func (*EthereumContractConfig) GetAddress

func (x *EthereumContractConfig) GetAddress() string

func (*EthereumContractConfig) GetDeploymentBlockHeight

func (x *EthereumContractConfig) GetDeploymentBlockHeight() uint64

func (*EthereumContractConfig) ProtoMessage

func (*EthereumContractConfig) ProtoMessage()

func (*EthereumContractConfig) ProtoReflect

func (x *EthereumContractConfig) ProtoReflect() protoreflect.Message

func (*EthereumContractConfig) Reset

func (x *EthereumContractConfig) Reset()

func (*EthereumContractConfig) String

func (x *EthereumContractConfig) String() string

type EthereumL2Config added in v0.74.0

type EthereumL2Config struct {

	// Network ID of this Ethereum layer 2 network.
	NetworkId string `protobuf:"bytes,1,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	// Chain ID of this Ethereum layer 2 network.
	ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Number of block confirmations to wait to consider an Ethereum transaction trusted.
	// An Ethereum block is trusted when there are at least "n" blocks confirmed by the
	// network, "n" being the number of `confirmations` required. If `confirmations` was set to `3`,
	// and the current block to be forged, or mined, on the L2 is block 14, block
	// 10 would be considered as trusted, but not block 11.
	Confirmations uint32 `protobuf:"varint,3,opt,name=confirmations,proto3" json:"confirmations,omitempty"`
	// Display name of this network
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Polling interval for the internal engine, needs to be adapted
	// to the source chain depending on its block production rate.
	BlockInterval uint64 `protobuf:"varint,5,opt,name=block_interval,json=blockInterval,proto3" json:"block_interval,omitempty"`
	// contains filtered or unexported fields
}

func (*EthereumL2Config) Descriptor deprecated added in v0.74.0

func (*EthereumL2Config) Descriptor() ([]byte, []int)

Deprecated: Use EthereumL2Config.ProtoReflect.Descriptor instead.

func (*EthereumL2Config) GetBlockInterval added in v0.74.3

func (x *EthereumL2Config) GetBlockInterval() uint64

func (*EthereumL2Config) GetChainId added in v0.74.0

func (x *EthereumL2Config) GetChainId() string

func (*EthereumL2Config) GetConfirmations added in v0.74.0

func (x *EthereumL2Config) GetConfirmations() uint32

func (*EthereumL2Config) GetName added in v0.74.0

func (x *EthereumL2Config) GetName() string

func (*EthereumL2Config) GetNetworkId added in v0.74.0

func (x *EthereumL2Config) GetNetworkId() string

func (*EthereumL2Config) ProtoMessage added in v0.74.0

func (*EthereumL2Config) ProtoMessage()

func (*EthereumL2Config) ProtoReflect added in v0.74.0

func (x *EthereumL2Config) ProtoReflect() protoreflect.Message

func (*EthereumL2Config) Reset added in v0.74.0

func (x *EthereumL2Config) Reset()

func (*EthereumL2Config) String added in v0.74.0

func (x *EthereumL2Config) String() string

type EthereumL2Configs added in v0.74.0

type EthereumL2Configs struct {
	Configs []*EthereumL2Config `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
	// contains filtered or unexported fields
}

func (*EthereumL2Configs) Descriptor deprecated added in v0.74.0

func (*EthereumL2Configs) Descriptor() ([]byte, []int)

Deprecated: Use EthereumL2Configs.ProtoReflect.Descriptor instead.

func (*EthereumL2Configs) GetConfigs added in v0.74.0

func (x *EthereumL2Configs) GetConfigs() []*EthereumL2Config

func (*EthereumL2Configs) ProtoMessage added in v0.74.0

func (*EthereumL2Configs) ProtoMessage()

func (*EthereumL2Configs) ProtoReflect added in v0.74.0

func (x *EthereumL2Configs) ProtoReflect() protoreflect.Message

func (*EthereumL2Configs) Reset added in v0.74.0

func (x *EthereumL2Configs) Reset()

func (*EthereumL2Configs) String added in v0.74.0

func (x *EthereumL2Configs) String() string

type ExternalDataSourceSpec added in v0.62.0

type ExternalDataSourceSpec struct {
	Spec *DataSourceSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
	// contains filtered or unexported fields
}

func (*ExternalDataSourceSpec) Descriptor deprecated added in v0.62.0

func (*ExternalDataSourceSpec) Descriptor() ([]byte, []int)

Deprecated: Use ExternalDataSourceSpec.ProtoReflect.Descriptor instead.

func (*ExternalDataSourceSpec) GetSpec added in v0.62.0

func (x *ExternalDataSourceSpec) GetSpec() *DataSourceSpec

func (*ExternalDataSourceSpec) ProtoMessage added in v0.62.0

func (*ExternalDataSourceSpec) ProtoMessage()

func (*ExternalDataSourceSpec) ProtoReflect added in v0.62.0

func (x *ExternalDataSourceSpec) ProtoReflect() protoreflect.Message

func (*ExternalDataSourceSpec) Reset added in v0.62.0

func (x *ExternalDataSourceSpec) Reset()

func (*ExternalDataSourceSpec) String added in v0.62.0

func (x *ExternalDataSourceSpec) String() string

type Fee

type Fee struct {

	// Fee amount paid to the non-aggressive party of the trade. This field is an unsigned integer scaled to the asset's decimal places.
	MakerFee string `protobuf:"bytes,1,opt,name=maker_fee,json=makerFee,proto3" json:"maker_fee,omitempty"`
	// Fee amount paid for maintaining the Vega infrastructure. This field is an unsigned integer scaled using the asset's decimal places.
	InfrastructureFee string `protobuf:"bytes,2,opt,name=infrastructure_fee,json=infrastructureFee,proto3" json:"infrastructure_fee,omitempty"`
	// Fee amount paid to market makers. This field is an unsigned integer scaled to the asset's decimal places.
	LiquidityFee string `protobuf:"bytes,3,opt,name=liquidity_fee,json=liquidityFee,proto3" json:"liquidity_fee,omitempty"`
	// Volume discounts.
	// Discount on maker fee based on the taker volume.
	MakerFeeVolumeDiscount string `` /* 131-byte string literal not displayed */
	// Discount on infrastructure fee based on the taker volume.
	InfrastructureFeeVolumeDiscount string `` /* 158-byte string literal not displayed */
	// Discount on liquidity fee basedo on taker volume.
	LiquidityFeeVolumeDiscount string `` /* 143-byte string literal not displayed */
	// Referrer discounts.
	// Discount on maker fee for eligible referrer.
	MakerFeeReferrerDiscount string `` /* 137-byte string literal not displayed */
	// Discount on infrastructure fee for eligible referrer.
	InfrastructureFeeReferrerDiscount string `` /* 164-byte string literal not displayed */
	// Discount on liquidity fee for eligible referrer.
	LiquidityFeeReferrerDiscount string `` /* 149-byte string literal not displayed */
	// Fee amount sent to network treasury for later use based on governance actions (network wide).
	TreasuryFee string `protobuf:"bytes,10,opt,name=treasury_fee,json=treasuryFee,proto3" json:"treasury_fee,omitempty"`
	// Fee amount used to purchase governance tokens via regular auctions (network wide).
	BuyBackFee string `protobuf:"bytes,11,opt,name=buy_back_fee,json=buyBackFee,proto3" json:"buy_back_fee,omitempty"`
	// Fee paid by the taker to the maker if the maker is eligible.
	HighVolumeMakerFee string `protobuf:"bytes,12,opt,name=high_volume_maker_fee,json=highVolumeMakerFee,proto3" json:"high_volume_maker_fee,omitempty"`
	// contains filtered or unexported fields
}

Represents any fees paid by a party, resulting from a trade

func (*Fee) Descriptor deprecated

func (*Fee) Descriptor() ([]byte, []int)

Deprecated: Use Fee.ProtoReflect.Descriptor instead.

func (*Fee) GetBuyBackFee added in v0.77.8

func (x *Fee) GetBuyBackFee() string

func (*Fee) GetHighVolumeMakerFee added in v0.77.8

func (x *Fee) GetHighVolumeMakerFee() string

func (*Fee) GetInfrastructureFee

func (x *Fee) GetInfrastructureFee() string

func (*Fee) GetInfrastructureFeeReferrerDiscount added in v0.73.0

func (x *Fee) GetInfrastructureFeeReferrerDiscount() string

func (*Fee) GetInfrastructureFeeVolumeDiscount added in v0.73.0

func (x *Fee) GetInfrastructureFeeVolumeDiscount() string

func (*Fee) GetLiquidityFee

func (x *Fee) GetLiquidityFee() string

func (*Fee) GetLiquidityFeeReferrerDiscount added in v0.73.0

func (x *Fee) GetLiquidityFeeReferrerDiscount() string

func (*Fee) GetLiquidityFeeVolumeDiscount added in v0.73.0

func (x *Fee) GetLiquidityFeeVolumeDiscount() string

func (*Fee) GetMakerFee

func (x *Fee) GetMakerFee() string

func (*Fee) GetMakerFeeReferrerDiscount added in v0.73.0

func (x *Fee) GetMakerFeeReferrerDiscount() string

func (*Fee) GetMakerFeeVolumeDiscount added in v0.73.0

func (x *Fee) GetMakerFeeVolumeDiscount() string

func (*Fee) GetTreasuryFee added in v0.77.8

func (x *Fee) GetTreasuryFee() string

func (*Fee) ProtoMessage

func (*Fee) ProtoMessage()

func (*Fee) ProtoReflect

func (x *Fee) ProtoReflect() protoreflect.Message

func (*Fee) Reset

func (x *Fee) Reset()

func (*Fee) String

func (x *Fee) String() string

type FeeFactors

type FeeFactors struct {

	// Market maker fee charged network wide.
	MakerFee string `protobuf:"bytes,1,opt,name=maker_fee,json=makerFee,proto3" json:"maker_fee,omitempty"`
	// Infrastructure fee charged network wide for staking and governance.
	InfrastructureFee string `protobuf:"bytes,2,opt,name=infrastructure_fee,json=infrastructureFee,proto3" json:"infrastructure_fee,omitempty"`
	// Liquidity fee applied per market for market making.
	LiquidityFee string `protobuf:"bytes,3,opt,name=liquidity_fee,json=liquidityFee,proto3" json:"liquidity_fee,omitempty"`
	// Fees sent to network treasury for later use based on governance actions (network wide).
	TreasuryFee string `protobuf:"bytes,4,opt,name=treasury_fee,json=treasuryFee,proto3" json:"treasury_fee,omitempty"`
	// Fees used to purchase governance tokens via regular auctions (network wide).
	BuyBackFee string `protobuf:"bytes,5,opt,name=buy_back_fee,json=buyBackFee,proto3" json:"buy_back_fee,omitempty"`
	// contains filtered or unexported fields
}

Fee factors definition

func (*FeeFactors) Descriptor deprecated

func (*FeeFactors) Descriptor() ([]byte, []int)

Deprecated: Use FeeFactors.ProtoReflect.Descriptor instead.

func (*FeeFactors) GetBuyBackFee added in v0.77.8

func (x *FeeFactors) GetBuyBackFee() string

func (*FeeFactors) GetInfrastructureFee

func (x *FeeFactors) GetInfrastructureFee() string

func (*FeeFactors) GetLiquidityFee

func (x *FeeFactors) GetLiquidityFee() string

func (*FeeFactors) GetMakerFee

func (x *FeeFactors) GetMakerFee() string

func (*FeeFactors) GetTreasuryFee added in v0.77.8

func (x *FeeFactors) GetTreasuryFee() string

func (*FeeFactors) ProtoMessage

func (*FeeFactors) ProtoMessage()

func (*FeeFactors) ProtoReflect

func (x *FeeFactors) ProtoReflect() protoreflect.Message

func (*FeeFactors) Reset

func (x *FeeFactors) Reset()

func (*FeeFactors) String

func (x *FeeFactors) String() string

type Fees

type Fees struct {

	// Fee factors.
	Factors *FeeFactors `protobuf:"bytes,1,opt,name=factors,proto3" json:"factors,omitempty"`
	// Liquidity fee settings for the market describing how the fee was calculated.
	LiquidityFeeSettings *LiquidityFeeSettings `protobuf:"bytes,2,opt,name=liquidity_fee_settings,json=liquidityFeeSettings,proto3" json:"liquidity_fee_settings,omitempty"`
	// contains filtered or unexported fields
}

Fees definition

func (*Fees) Descriptor deprecated

func (*Fees) Descriptor() ([]byte, []int)

Deprecated: Use Fees.ProtoReflect.Descriptor instead.

func (*Fees) GetFactors

func (x *Fees) GetFactors() *FeeFactors

func (*Fees) GetLiquidityFeeSettings added in v0.74.0

func (x *Fees) GetLiquidityFeeSettings() *LiquidityFeeSettings

func (*Fees) ProtoMessage

func (*Fees) ProtoMessage()

func (*Fees) ProtoReflect

func (x *Fees) ProtoReflect() protoreflect.Message

func (*Fees) Reset

func (x *Fees) Reset()

func (*Fees) String

func (x *Fees) String() string

type FinancialAmount

type FinancialAmount struct {

	// Unsigned integer amount of asset scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// Asset ID the amount applies to.
	Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
	// contains filtered or unexported fields
}

Asset value information used within a transfer

func (*FinancialAmount) Descriptor deprecated

func (*FinancialAmount) Descriptor() ([]byte, []int)

Deprecated: Use FinancialAmount.ProtoReflect.Descriptor instead.

func (*FinancialAmount) GetAmount

func (x *FinancialAmount) GetAmount() string

func (*FinancialAmount) GetAsset

func (x *FinancialAmount) GetAsset() string

func (*FinancialAmount) ProtoMessage

func (*FinancialAmount) ProtoMessage()

func (*FinancialAmount) ProtoReflect

func (x *FinancialAmount) ProtoReflect() protoreflect.Message

func (*FinancialAmount) Reset

func (x *FinancialAmount) Reset()

func (*FinancialAmount) String

func (x *FinancialAmount) String() string

type Future

type Future struct {

	// Underlying asset for the future.
	SettlementAsset string `protobuf:"bytes,1,opt,name=settlement_asset,json=settlementAsset,proto3" json:"settlement_asset,omitempty"`
	// Quote name of the instrument.
	QuoteName string `protobuf:"bytes,2,opt,name=quote_name,json=quoteName,proto3" json:"quote_name,omitempty"`
	// Data source specification that describes the settlement data source filter.
	DataSourceSpecForSettlementData *DataSourceSpec `` /* 162-byte string literal not displayed */
	// Data source specification that describes the trading termination data source filter.
	DataSourceSpecForTradingTermination *DataSourceSpec `` /* 174-byte string literal not displayed */
	// Binding between the data spec and the data source.
	DataSourceSpecBinding *DataSourceSpecToFutureBinding `` /* 128-byte string literal not displayed */
	// If set, this product represents a capped future market.
	Cap *FutureCap `protobuf:"bytes,6,opt,name=cap,proto3,oneof" json:"cap,omitempty"`
	// contains filtered or unexported fields
}

Future product definition

func (*Future) Descriptor deprecated

func (*Future) Descriptor() ([]byte, []int)

Deprecated: Use Future.ProtoReflect.Descriptor instead.

func (*Future) GetCap added in v0.77.0

func (x *Future) GetCap() *FutureCap

func (*Future) GetDataSourceSpecBinding added in v0.61.0

func (x *Future) GetDataSourceSpecBinding() *DataSourceSpecToFutureBinding

func (*Future) GetDataSourceSpecForSettlementData added in v0.61.0

func (x *Future) GetDataSourceSpecForSettlementData() *DataSourceSpec

func (*Future) GetDataSourceSpecForTradingTermination added in v0.61.0

func (x *Future) GetDataSourceSpecForTradingTermination() *DataSourceSpec

func (*Future) GetQuoteName

func (x *Future) GetQuoteName() string

func (*Future) GetSettlementAsset

func (x *Future) GetSettlementAsset() string

func (Future) IsProduct

func (Future) IsProduct()

func (*Future) ProtoMessage

func (*Future) ProtoMessage()

func (*Future) ProtoReflect

func (x *Future) ProtoReflect() protoreflect.Message

func (*Future) Reset

func (x *Future) Reset()

func (*Future) String

func (x *Future) String() string

type FutureCap added in v0.77.0

type FutureCap struct {

	// Set the maximum price for orders, and settlement data in market decimals.
	MaxPrice string `protobuf:"bytes,1,opt,name=max_price,json=maxPrice,proto3" json:"max_price,omitempty"`
	// If set to true, the settlement price must either be zero, or equal to the max price.
	BinarySettlement *bool `protobuf:"varint,2,opt,name=binary_settlement,json=binarySettlement,proto3,oneof" json:"binary_settlement,omitempty"`
	// If set to true, positions must be fully collateralised so there is no default risk for any party.
	FullyCollateralised *bool `protobuf:"varint,3,opt,name=fully_collateralised,json=fullyCollateralised,proto3,oneof" json:"fully_collateralised,omitempty"`
	// contains filtered or unexported fields
}

func (*FutureCap) Descriptor deprecated added in v0.77.0

func (*FutureCap) Descriptor() ([]byte, []int)

Deprecated: Use FutureCap.ProtoReflect.Descriptor instead.

func (*FutureCap) GetBinarySettlement added in v0.77.0

func (x *FutureCap) GetBinarySettlement() bool

func (*FutureCap) GetFullyCollateralised added in v0.77.0

func (x *FutureCap) GetFullyCollateralised() bool

func (*FutureCap) GetMaxPrice added in v0.77.0

func (x *FutureCap) GetMaxPrice() string

func (*FutureCap) ProtoMessage added in v0.77.0

func (*FutureCap) ProtoMessage()

func (*FutureCap) ProtoReflect added in v0.77.0

func (x *FutureCap) ProtoReflect() protoreflect.Message

func (*FutureCap) Reset added in v0.77.0

func (x *FutureCap) Reset()

func (*FutureCap) String added in v0.77.0

func (x *FutureCap) String() string

type FutureProduct

type FutureProduct struct {

	// Asset ID for the product's settlement asset.
	SettlementAsset string `protobuf:"bytes,1,opt,name=settlement_asset,json=settlementAsset,proto3" json:"settlement_asset,omitempty"`
	// Product quote name.
	QuoteName string `protobuf:"bytes,2,opt,name=quote_name,json=quoteName,proto3" json:"quote_name,omitempty"`
	// Data source spec describing the data source for settlement.
	DataSourceSpecForSettlementData *DataSourceDefinition `` /* 162-byte string literal not displayed */
	// The external data source spec describing the data source of trading termination.
	DataSourceSpecForTradingTermination *DataSourceDefinition `` /* 174-byte string literal not displayed */
	// Binding between the data source spec and the settlement data.
	DataSourceSpecBinding *DataSourceSpecToFutureBinding `` /* 128-byte string literal not displayed */
	// If set, this product creates a capped future market.
	Cap *FutureCap `protobuf:"bytes,6,opt,name=cap,proto3,oneof" json:"cap,omitempty"`
	// contains filtered or unexported fields
}

Future product configuration

func (*FutureProduct) Descriptor deprecated

func (*FutureProduct) Descriptor() ([]byte, []int)

Deprecated: Use FutureProduct.ProtoReflect.Descriptor instead.

func (*FutureProduct) GetCap added in v0.77.0

func (x *FutureProduct) GetCap() *FutureCap

func (*FutureProduct) GetDataSourceSpecBinding added in v0.61.0

func (x *FutureProduct) GetDataSourceSpecBinding() *DataSourceSpecToFutureBinding

func (*FutureProduct) GetDataSourceSpecForSettlementData added in v0.61.0

func (x *FutureProduct) GetDataSourceSpecForSettlementData() *DataSourceDefinition

func (*FutureProduct) GetDataSourceSpecForTradingTermination added in v0.61.0

func (x *FutureProduct) GetDataSourceSpecForTradingTermination() *DataSourceDefinition

func (*FutureProduct) GetQuoteName

func (x *FutureProduct) GetQuoteName() string

func (*FutureProduct) GetSettlementAsset

func (x *FutureProduct) GetSettlementAsset() string

func (FutureProduct) IsProductConfiguration added in v0.73.0

func (FutureProduct) IsProductConfiguration()

func (*FutureProduct) ProtoMessage

func (*FutureProduct) ProtoMessage()

func (*FutureProduct) ProtoReflect

func (x *FutureProduct) ProtoReflect() protoreflect.Message

func (*FutureProduct) Reset

func (x *FutureProduct) Reset()

func (*FutureProduct) String

func (x *FutureProduct) String() string

type GovernanceData

type GovernanceData struct {

	// Governance proposal that is being voted on.
	Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// All YES votes in favour of the proposal above.
	Yes []*Vote `protobuf:"bytes,2,rep,name=yes,proto3" json:"yes,omitempty"`
	// All NO votes against the proposal above.
	No []*Vote `protobuf:"bytes,3,rep,name=no,proto3" json:"no,omitempty"`
	// All latest YES votes by party which is guaranteed to be unique,
	// where key (string) is the party ID i.e. public key and
	// value (Vote) is the vote cast by the given party.
	YesParty map[string]*Vote `` /* 173-byte string literal not displayed */
	// All latest NO votes by party which is guaranteed to be unique,
	// where key (string) is the party ID i.e. public key and
	// value (Vote) is the vote cast by the given party.
	NoParty map[string]*Vote `` /* 170-byte string literal not displayed */
	// Type of proposal this data is for.
	ProposalType GovernanceData_Type `` /* 128-byte string literal not displayed */
	// If proposal type is batch, proposals will contain all the proposals that are make up the batch.
	Proposals []*Proposal `protobuf:"bytes,7,rep,name=proposals,proto3" json:"proposals,omitempty"`
	// contains filtered or unexported fields
}

Governance data

func (*GovernanceData) Descriptor deprecated

func (*GovernanceData) Descriptor() ([]byte, []int)

Deprecated: Use GovernanceData.ProtoReflect.Descriptor instead.

func (*GovernanceData) GetNo

func (x *GovernanceData) GetNo() []*Vote

func (*GovernanceData) GetNoParty

func (x *GovernanceData) GetNoParty() map[string]*Vote

func (*GovernanceData) GetProposal

func (x *GovernanceData) GetProposal() *Proposal

func (*GovernanceData) GetProposalType added in v0.74.0

func (x *GovernanceData) GetProposalType() GovernanceData_Type

func (*GovernanceData) GetProposals added in v0.74.0

func (x *GovernanceData) GetProposals() []*Proposal

func (*GovernanceData) GetYes

func (x *GovernanceData) GetYes() []*Vote

func (*GovernanceData) GetYesParty

func (x *GovernanceData) GetYesParty() map[string]*Vote

func (GovernanceData) IsEvent

func (GovernanceData) IsEvent()

func (*GovernanceData) IsProposalNode added in v0.74.0

func (gd *GovernanceData) IsProposalNode()

func (*GovernanceData) ProtoMessage

func (*GovernanceData) ProtoMessage()

func (*GovernanceData) ProtoReflect

func (x *GovernanceData) ProtoReflect() protoreflect.Message

func (*GovernanceData) Reset

func (x *GovernanceData) Reset()

func (*GovernanceData) String

func (x *GovernanceData) String() string

type GovernanceData_Type added in v0.74.0

type GovernanceData_Type int32

Proposal type

const (
	// Single proposal only. In case it has not been specified, for example in older proposals, then this is the default.
	GovernanceData_TYPE_SINGLE_OR_UNSPECIFIED GovernanceData_Type = 0
	// Proposal contains a batch of proposals or a proposal that should be treated as part of a batch.
	GovernanceData_TYPE_BATCH GovernanceData_Type = 1
)

func (GovernanceData_Type) Descriptor added in v0.74.0

func (GovernanceData_Type) Enum added in v0.74.0

func (GovernanceData_Type) EnumDescriptor deprecated added in v0.74.0

func (GovernanceData_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use GovernanceData_Type.Descriptor instead.

func (GovernanceData_Type) Number added in v0.74.0

func (GovernanceData_Type) String added in v0.74.0

func (x GovernanceData_Type) String() string

func (GovernanceData_Type) Type added in v0.74.0

type GovernanceTransferType added in v0.72.0

type GovernanceTransferType int32
const (
	GovernanceTransferType_GOVERNANCE_TRANSFER_TYPE_UNSPECIFIED    GovernanceTransferType = 0
	GovernanceTransferType_GOVERNANCE_TRANSFER_TYPE_ALL_OR_NOTHING GovernanceTransferType = 1
	GovernanceTransferType_GOVERNANCE_TRANSFER_TYPE_BEST_EFFORT    GovernanceTransferType = 2
)

func (GovernanceTransferType) Descriptor added in v0.72.0

func (GovernanceTransferType) Enum added in v0.72.0

func (GovernanceTransferType) EnumDescriptor deprecated added in v0.72.0

func (GovernanceTransferType) EnumDescriptor() ([]byte, []int)

Deprecated: Use GovernanceTransferType.Descriptor instead.

func (GovernanceTransferType) Number added in v0.72.0

func (GovernanceTransferType) String added in v0.72.0

func (x GovernanceTransferType) String() string

func (GovernanceTransferType) Type added in v0.72.0

type IcebergOrder added in v0.72.0

type IcebergOrder struct {

	// Size of the order that will be made visible if the iceberg order is replenished after trading.
	PeakSize uint64 `protobuf:"varint,1,opt,name=peak_size,json=peakSize,proto3" json:"peak_size,omitempty"`
	// If the visible size of the order falls below this value, it will be replenished back to the peak size using the reserved amount.
	MinimumVisibleSize uint64 `protobuf:"varint,2,opt,name=minimum_visible_size,json=minimumVisibleSize,proto3" json:"minimum_visible_size,omitempty"`
	// Size of the order that is reserved and used to restore the iceberg's peak when it is refreshed.
	ReservedRemaining uint64 `protobuf:"varint,3,opt,name=reserved_remaining,json=reservedRemaining,proto3" json:"reserved_remaining,omitempty"`
	// contains filtered or unexported fields
}

Details of an iceberg order

func (*IcebergOrder) Descriptor deprecated added in v0.72.0

func (*IcebergOrder) Descriptor() ([]byte, []int)

Deprecated: Use IcebergOrder.ProtoReflect.Descriptor instead.

func (*IcebergOrder) GetMinimumVisibleSize added in v0.72.0

func (x *IcebergOrder) GetMinimumVisibleSize() uint64

func (*IcebergOrder) GetPeakSize added in v0.72.0

func (x *IcebergOrder) GetPeakSize() uint64

func (*IcebergOrder) GetReservedRemaining added in v0.72.0

func (x *IcebergOrder) GetReservedRemaining() uint64

func (*IcebergOrder) ProtoMessage added in v0.72.0

func (*IcebergOrder) ProtoMessage()

func (*IcebergOrder) ProtoReflect added in v0.72.0

func (x *IcebergOrder) ProtoReflect() protoreflect.Message

func (*IcebergOrder) Reset added in v0.72.0

func (x *IcebergOrder) Reset()

func (*IcebergOrder) String added in v0.72.0

func (x *IcebergOrder) String() string

type IndividualScope added in v0.73.0

type IndividualScope int32
const (
	IndividualScope_INDIVIDUAL_SCOPE_UNSPECIFIED IndividualScope = 0
	// All parties on the network are within the scope of this reward.
	IndividualScope_INDIVIDUAL_SCOPE_ALL IndividualScope = 1
	// All parties that are part of a team are within the scope of this reward.
	IndividualScope_INDIVIDUAL_SCOPE_IN_TEAM IndividualScope = 2
	// All parties that are not part of a team are within the scope of this reward.
	IndividualScope_INDIVIDUAL_SCOPE_NOT_IN_TEAM IndividualScope = 3
	// All keys representing AMMs are within the scope of this reward.
	IndividualScope_INDIVIDUAL_SCOPE_AMM IndividualScope = 4
)

func (IndividualScope) Descriptor added in v0.73.0

func (IndividualScope) Enum added in v0.73.0

func (x IndividualScope) Enum() *IndividualScope

func (IndividualScope) EnumDescriptor deprecated added in v0.73.0

func (IndividualScope) EnumDescriptor() ([]byte, []int)

Deprecated: Use IndividualScope.Descriptor instead.

func (IndividualScope) Number added in v0.73.0

func (IndividualScope) String added in v0.73.0

func (x IndividualScope) String() string

func (IndividualScope) Type added in v0.73.0

type Instrument

type Instrument struct {

	// Unique instrument ID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Code for the instrument.
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// Name of the instrument.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Collection of instrument meta-data.
	Metadata *InstrumentMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// Product the instrument is composed of.
	//
	// Types that are assignable to Product:
	//
	//	*Instrument_Future
	//	*Instrument_Spot
	//	*Instrument_Perpetual
	Product isInstrument_Product `protobuf_oneof:"product"`
	// contains filtered or unexported fields
}

Instrument definition

func (*Instrument) Descriptor deprecated

func (*Instrument) Descriptor() ([]byte, []int)

Deprecated: Use Instrument.ProtoReflect.Descriptor instead.

func (*Instrument) GetCode

func (x *Instrument) GetCode() string

func (*Instrument) GetFuture

func (x *Instrument) GetFuture() *Future

func (*Instrument) GetId

func (x *Instrument) GetId() string

func (*Instrument) GetMetadata

func (x *Instrument) GetMetadata() *InstrumentMetadata

func (*Instrument) GetName

func (x *Instrument) GetName() string

func (*Instrument) GetPerpetual added in v0.73.0

func (x *Instrument) GetPerpetual() *Perpetual

func (*Instrument) GetProduct

func (m *Instrument) GetProduct() isInstrument_Product

func (*Instrument) GetSpot added in v0.72.0

func (x *Instrument) GetSpot() *Spot

func (*Instrument) ProtoMessage

func (*Instrument) ProtoMessage()

func (*Instrument) ProtoReflect

func (x *Instrument) ProtoReflect() protoreflect.Message

func (*Instrument) Reset

func (x *Instrument) Reset()

func (*Instrument) String

func (x *Instrument) String() string

type InstrumentConfiguration

type InstrumentConfiguration struct {

	// Instrument name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Instrument code, human-readable shortcode used to describe the instrument.
	Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// Product specification.
	//
	// Types that are assignable to Product:
	//
	//	*InstrumentConfiguration_Future
	//	*InstrumentConfiguration_Spot
	//	*InstrumentConfiguration_Perpetual
	Product isInstrumentConfiguration_Product `protobuf_oneof:"product"`
	// contains filtered or unexported fields
}

Instrument configuration

func (*InstrumentConfiguration) Descriptor deprecated

func (*InstrumentConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use InstrumentConfiguration.ProtoReflect.Descriptor instead.

func (*InstrumentConfiguration) GetCode

func (x *InstrumentConfiguration) GetCode() string

func (*InstrumentConfiguration) GetFuture

func (x *InstrumentConfiguration) GetFuture() *FutureProduct

func (*InstrumentConfiguration) GetName

func (x *InstrumentConfiguration) GetName() string

func (*InstrumentConfiguration) GetPerpetual added in v0.73.0

func (x *InstrumentConfiguration) GetPerpetual() *PerpetualProduct

func (*InstrumentConfiguration) GetProduct

func (m *InstrumentConfiguration) GetProduct() isInstrumentConfiguration_Product

func (*InstrumentConfiguration) GetSpot added in v0.72.0

func (x *InstrumentConfiguration) GetSpot() *SpotProduct

func (*InstrumentConfiguration) ProtoMessage

func (*InstrumentConfiguration) ProtoMessage()

func (*InstrumentConfiguration) ProtoReflect

func (x *InstrumentConfiguration) ProtoReflect() protoreflect.Message

func (*InstrumentConfiguration) Reset

func (x *InstrumentConfiguration) Reset()

func (*InstrumentConfiguration) String

func (x *InstrumentConfiguration) String() string

type InstrumentConfiguration_Future

type InstrumentConfiguration_Future struct {
	// Future.
	Future *FutureProduct `protobuf:"bytes,100,opt,name=future,proto3,oneof"`
}

type InstrumentConfiguration_Perpetual added in v0.73.0

type InstrumentConfiguration_Perpetual struct {
	// Perpetual.
	Perpetual *PerpetualProduct `protobuf:"bytes,102,opt,name=perpetual,proto3,oneof"`
}

type InstrumentConfiguration_Spot added in v0.72.0

type InstrumentConfiguration_Spot struct {
	// Spot.
	Spot *SpotProduct `protobuf:"bytes,101,opt,name=spot,proto3,oneof"`
}

type InstrumentMetadata

type InstrumentMetadata struct {

	// List of 0 or more tags.
	Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

Instrument metadata definition

func (*InstrumentMetadata) Descriptor deprecated

func (*InstrumentMetadata) Descriptor() ([]byte, []int)

Deprecated: Use InstrumentMetadata.ProtoReflect.Descriptor instead.

func (*InstrumentMetadata) GetTags

func (x *InstrumentMetadata) GetTags() []string

func (*InstrumentMetadata) ProtoMessage

func (*InstrumentMetadata) ProtoMessage()

func (*InstrumentMetadata) ProtoReflect

func (x *InstrumentMetadata) ProtoReflect() protoreflect.Message

func (*InstrumentMetadata) Reset

func (x *InstrumentMetadata) Reset()

func (*InstrumentMetadata) String

func (x *InstrumentMetadata) String() string

type Instrument_Future

type Instrument_Future struct {
	// Future.
	Future *Future `protobuf:"bytes,100,opt,name=future,proto3,oneof"`
}

type Instrument_Perpetual added in v0.73.0

type Instrument_Perpetual struct {
	// Perpetual.
	Perpetual *Perpetual `protobuf:"bytes,102,opt,name=perpetual,proto3,oneof"`
}

type Instrument_Spot added in v0.72.0

type Instrument_Spot struct {
	// Spot.
	Spot *Spot `protobuf:"bytes,101,opt,name=spot,proto3,oneof"`
}

type Interval

type Interval int32

Represents a set of time intervals that are used when querying for candle-stick data

const (
	// Default value, always invalid
	Interval_INTERVAL_UNSPECIFIED Interval = 0
	// Block interval is not a fixed amount of time, rather it is used to indicate grouping of events that occur in a single block. It is usually about a second.
	Interval_INTERVAL_BLOCK Interval = -1
	// 1 minute.
	Interval_INTERVAL_I1M Interval = 60
	// 5 minutes.
	Interval_INTERVAL_I5M Interval = 300
	// 15 minutes.
	Interval_INTERVAL_I15M Interval = 900
	// 30 minutes.
	Interval_INTERVAL_I30M Interval = 1800
	// 1 hour.
	Interval_INTERVAL_I1H Interval = 3600
	// 4 hours.
	Interval_INTERVAL_I4H Interval = 14400
	// 6 hours.
	Interval_INTERVAL_I6H Interval = 21600
	// 8 hours.
	Interval_INTERVAL_I8H Interval = 28800
	// 12 hours.
	Interval_INTERVAL_I12H Interval = 43200
	// 1 day.
	Interval_INTERVAL_I1D Interval = 86400
	// 7 days.
	Interval_INTERVAL_I7D Interval = 604800
)

func (Interval) Descriptor

func (Interval) Descriptor() protoreflect.EnumDescriptor

func (Interval) Enum

func (x Interval) Enum() *Interval

func (Interval) EnumDescriptor deprecated

func (Interval) EnumDescriptor() ([]byte, []int)

Deprecated: Use Interval.Descriptor instead.

func (Interval) Number

func (x Interval) Number() protoreflect.EnumNumber

func (Interval) String

func (x Interval) String() string

func (Interval) Type

type KeyValueBundle

type KeyValueBundle struct {
	Key       string         `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Tolerance string         `protobuf:"bytes,2,opt,name=tolerance,proto3" json:"tolerance,omitempty"`
	Value     *StateVarValue `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyValueBundle) Descriptor deprecated

func (*KeyValueBundle) Descriptor() ([]byte, []int)

Deprecated: Use KeyValueBundle.ProtoReflect.Descriptor instead.

func (*KeyValueBundle) GetKey

func (x *KeyValueBundle) GetKey() string

func (*KeyValueBundle) GetTolerance

func (x *KeyValueBundle) GetTolerance() string

func (*KeyValueBundle) GetValue

func (x *KeyValueBundle) GetValue() *StateVarValue

func (*KeyValueBundle) ProtoMessage

func (*KeyValueBundle) ProtoMessage()

func (*KeyValueBundle) ProtoReflect

func (x *KeyValueBundle) ProtoReflect() protoreflect.Message

func (*KeyValueBundle) Reset

func (x *KeyValueBundle) Reset()

func (*KeyValueBundle) String

func (x *KeyValueBundle) String() string

type LedgerEntry

type LedgerEntry struct {

	// One or more accounts to transfer from.
	FromAccount *AccountDetails `protobuf:"bytes,1,opt,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"`
	// One or more accounts to transfer to.
	ToAccount *AccountDetails `protobuf:"bytes,2,opt,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"`
	// Amount to transfer. This field is an unsigned integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// Transfer type for this entry.
	Type TransferType `protobuf:"varint,4,opt,name=type,proto3,enum=vega.TransferType" json:"type,omitempty"`
	// Timestamp in nanoseconds of when the ledger entry was created.
	Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Sender account balance after the transfer. This field is an unsigned integer scaled to the asset's decimal places.
	FromAccountBalance string `protobuf:"bytes,6,opt,name=from_account_balance,json=fromAccountBalance,proto3" json:"from_account_balance,omitempty"`
	// Receiver account balance after the transfer. This field is an unsigned integer scaled to the asset's decimal places.
	ToAccountBalance string `protobuf:"bytes,7,opt,name=to_account_balance,json=toAccountBalance,proto3" json:"to_account_balance,omitempty"`
	// Transfer ID the ledger entry relates to.
	TransferId *string `protobuf:"bytes,8,opt,name=transfer_id,json=transferId,proto3,oneof" json:"transfer_id,omitempty"`
	// contains filtered or unexported fields
}

Represents a ledger entry on Vega

func (*LedgerEntry) Descriptor deprecated

func (*LedgerEntry) Descriptor() ([]byte, []int)

Deprecated: Use LedgerEntry.ProtoReflect.Descriptor instead.

func (*LedgerEntry) GetAmount

func (x *LedgerEntry) GetAmount() string

func (*LedgerEntry) GetFromAccount

func (x *LedgerEntry) GetFromAccount() *AccountDetails

func (*LedgerEntry) GetFromAccountBalance added in v0.67.0

func (x *LedgerEntry) GetFromAccountBalance() string

func (*LedgerEntry) GetTimestamp

func (x *LedgerEntry) GetTimestamp() int64

func (*LedgerEntry) GetToAccount

func (x *LedgerEntry) GetToAccount() *AccountDetails

func (*LedgerEntry) GetToAccountBalance added in v0.67.0

func (x *LedgerEntry) GetToAccountBalance() string

func (*LedgerEntry) GetTransferId added in v0.74.0

func (x *LedgerEntry) GetTransferId() string

func (*LedgerEntry) GetType

func (x *LedgerEntry) GetType() TransferType

func (*LedgerEntry) ProtoMessage

func (*LedgerEntry) ProtoMessage()

func (*LedgerEntry) ProtoReflect

func (x *LedgerEntry) ProtoReflect() protoreflect.Message

func (*LedgerEntry) Reset

func (x *LedgerEntry) Reset()

func (*LedgerEntry) String

func (x *LedgerEntry) String() string

type LedgerMovement added in v0.56.0

type LedgerMovement struct {

	// All the entries for these ledger movements.
	Entries []*LedgerEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// Resulting balances once the ledger movement are applied.
	Balances []*PostTransferBalance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances,omitempty"`
	// contains filtered or unexported fields
}

func (*LedgerMovement) Descriptor deprecated added in v0.56.0

func (*LedgerMovement) Descriptor() ([]byte, []int)

Deprecated: Use LedgerMovement.ProtoReflect.Descriptor instead.

func (*LedgerMovement) GetBalances added in v0.56.0

func (x *LedgerMovement) GetBalances() []*PostTransferBalance

func (*LedgerMovement) GetEntries added in v0.56.0

func (x *LedgerMovement) GetEntries() []*LedgerEntry

func (*LedgerMovement) ProtoMessage added in v0.56.0

func (*LedgerMovement) ProtoMessage()

func (*LedgerMovement) ProtoReflect added in v0.56.0

func (x *LedgerMovement) ProtoReflect() protoreflect.Message

func (*LedgerMovement) Reset added in v0.56.0

func (x *LedgerMovement) Reset()

func (*LedgerMovement) String added in v0.56.0

func (x *LedgerMovement) String() string

type LiquidationStrategy added in v0.74.0

type LiquidationStrategy struct {

	// Interval, in seconds, at which the network will attempt to close its position.
	DisposalTimeStep int64 `protobuf:"varint,1,opt,name=disposal_time_step,json=disposalTimeStep,proto3" json:"disposal_time_step,omitempty"`
	// Fraction of the open position the market will try to close in a single attempt; range 0 through 1.
	DisposalFraction string `protobuf:"bytes,2,opt,name=disposal_fraction,json=disposalFraction,proto3" json:"disposal_fraction,omitempty"`
	// Size of the position that the network will try to close in a single attempt.
	FullDisposalSize uint64 `protobuf:"varint,3,opt,name=full_disposal_size,json=fullDisposalSize,proto3" json:"full_disposal_size,omitempty"`
	// Max fraction of the total volume of the orderbook, within liquidity bounds, that the network can use to close its position; range 0 through 1.
	MaxFractionConsumed string `protobuf:"bytes,4,opt,name=max_fraction_consumed,json=maxFractionConsumed,proto3" json:"max_fraction_consumed,omitempty"`
	// Decimal > 0 specifying the range range above and below the mid price within which the network will trade to dispose of its position.
	// The value can be > 1. For example, if set to 1.5, the minimum price will be 0, ie max(0, mid_price * (1 - 1.5)), and the maximum price will be mid_price * (1 + 1.5).
	DisposalSlippageRange string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Liquidation strategy used when the network holds a position resulting from position resolution.

func (*LiquidationStrategy) Descriptor deprecated added in v0.74.0

func (*LiquidationStrategy) Descriptor() ([]byte, []int)

Deprecated: Use LiquidationStrategy.ProtoReflect.Descriptor instead.

func (*LiquidationStrategy) GetDisposalFraction added in v0.74.0

func (x *LiquidationStrategy) GetDisposalFraction() string

func (*LiquidationStrategy) GetDisposalSlippageRange added in v0.76.0

func (x *LiquidationStrategy) GetDisposalSlippageRange() string

func (*LiquidationStrategy) GetDisposalTimeStep added in v0.74.0

func (x *LiquidationStrategy) GetDisposalTimeStep() int64

func (*LiquidationStrategy) GetFullDisposalSize added in v0.74.0

func (x *LiquidationStrategy) GetFullDisposalSize() uint64

func (*LiquidationStrategy) GetMaxFractionConsumed added in v0.74.0

func (x *LiquidationStrategy) GetMaxFractionConsumed() string

func (*LiquidationStrategy) ProtoMessage added in v0.74.0

func (*LiquidationStrategy) ProtoMessage()

func (*LiquidationStrategy) ProtoReflect added in v0.74.0

func (x *LiquidationStrategy) ProtoReflect() protoreflect.Message

func (*LiquidationStrategy) Reset added in v0.74.0

func (x *LiquidationStrategy) Reset()

func (*LiquidationStrategy) String added in v0.74.0

func (x *LiquidationStrategy) String() string

type LiquidityFeeSettings added in v0.74.0

type LiquidityFeeSettings struct {

	// Method used to calculate the market's liquidity fee.
	Method LiquidityFeeSettings_Method `protobuf:"varint,1,opt,name=method,proto3,enum=vega.LiquidityFeeSettings_Method" json:"method,omitempty"`
	// Constant liquidity fee used when using the constant fee method.
	FeeConstant *string `protobuf:"bytes,2,opt,name=fee_constant,json=feeConstant,proto3,oneof" json:"fee_constant,omitempty"`
	// contains filtered or unexported fields
}

Market settings that describe how the liquidity fee is calculated.

func (*LiquidityFeeSettings) Descriptor deprecated added in v0.74.0

func (*LiquidityFeeSettings) Descriptor() ([]byte, []int)

Deprecated: Use LiquidityFeeSettings.ProtoReflect.Descriptor instead.

func (*LiquidityFeeSettings) GetFeeConstant added in v0.74.0

func (x *LiquidityFeeSettings) GetFeeConstant() string

func (*LiquidityFeeSettings) GetMethod added in v0.74.0

func (*LiquidityFeeSettings) ProtoMessage added in v0.74.0

func (*LiquidityFeeSettings) ProtoMessage()

func (*LiquidityFeeSettings) ProtoReflect added in v0.74.0

func (x *LiquidityFeeSettings) ProtoReflect() protoreflect.Message

func (*LiquidityFeeSettings) Reset added in v0.74.0

func (x *LiquidityFeeSettings) Reset()

func (*LiquidityFeeSettings) String added in v0.74.0

func (x *LiquidityFeeSettings) String() string

type LiquidityFeeSettings_Method added in v0.74.0

type LiquidityFeeSettings_Method int32
const (
	LiquidityFeeSettings_METHOD_UNSPECIFIED LiquidityFeeSettings_Method = 0
	// Fee is the smallest value of all bids, such that liquidity providers with nominated fees less than or equal to this value still have sufficient commitment to fulfil the market's target stake.
	LiquidityFeeSettings_METHOD_MARGINAL_COST LiquidityFeeSettings_Method = 1
	// Fee is the weighted average of all liquidity providers' nominated fees, weighted by their committment.
	LiquidityFeeSettings_METHOD_WEIGHTED_AVERAGE LiquidityFeeSettings_Method = 2
	// Fee is set by the market to a constant value irrespective of any liquidity provider's nominated fee.
	LiquidityFeeSettings_METHOD_CONSTANT LiquidityFeeSettings_Method = 3
)

func (LiquidityFeeSettings_Method) Descriptor added in v0.74.0

func (LiquidityFeeSettings_Method) Enum added in v0.74.0

func (LiquidityFeeSettings_Method) EnumDescriptor deprecated added in v0.74.0

func (LiquidityFeeSettings_Method) EnumDescriptor() ([]byte, []int)

Deprecated: Use LiquidityFeeSettings_Method.Descriptor instead.

func (LiquidityFeeSettings_Method) Number added in v0.74.0

func (LiquidityFeeSettings_Method) String added in v0.74.0

func (LiquidityFeeSettings_Method) Type added in v0.74.0

type LiquidityMonitoringParameters

type LiquidityMonitoringParameters struct {

	// Specifies parameters related to target stake calculation.
	TargetStakeParameters *TargetStakeParameters `` /* 126-byte string literal not displayed */
	// Specifies the triggering ratio for entering liquidity auction.
	TriggeringRatio string `protobuf:"bytes,2,opt,name=triggering_ratio,json=triggeringRatio,proto3" json:"triggering_ratio,omitempty"`
	// Specifies by how many seconds an auction should be extended if leaving the auction were to trigger a liquidity auction.
	AuctionExtension int64 `protobuf:"varint,3,opt,name=auction_extension,json=auctionExtension,proto3" json:"auction_extension,omitempty"`
	// contains filtered or unexported fields
}

LiquidityMonitoringParameters contains settings used for liquidity monitoring

func (*LiquidityMonitoringParameters) Descriptor deprecated

func (*LiquidityMonitoringParameters) Descriptor() ([]byte, []int)

Deprecated: Use LiquidityMonitoringParameters.ProtoReflect.Descriptor instead.

func (*LiquidityMonitoringParameters) GetAuctionExtension

func (x *LiquidityMonitoringParameters) GetAuctionExtension() int64

func (*LiquidityMonitoringParameters) GetTargetStakeParameters

func (x *LiquidityMonitoringParameters) GetTargetStakeParameters() *TargetStakeParameters

func (*LiquidityMonitoringParameters) GetTriggeringRatio

func (x *LiquidityMonitoringParameters) GetTriggeringRatio() string

func (*LiquidityMonitoringParameters) ProtoMessage

func (*LiquidityMonitoringParameters) ProtoMessage()

func (*LiquidityMonitoringParameters) ProtoReflect

func (*LiquidityMonitoringParameters) Reset

func (x *LiquidityMonitoringParameters) Reset()

func (*LiquidityMonitoringParameters) String

type LiquidityOrder

type LiquidityOrder struct {

	// Pegged reference point for the order.
	Reference PeggedReference `protobuf:"varint,1,opt,name=reference,proto3,enum=vega.PeggedReference" json:"reference,omitempty"`
	// Relative proportion of the commitment to be allocated at a price level.
	Proportion uint32 `protobuf:"varint,2,opt,name=proportion,proto3" json:"proportion,omitempty"`
	// Offset/amount of units away for the order. This field is an unsigned integer scaled using the market's decimal places.
	Offset string `protobuf:"bytes,3,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

Represents a liquidity order

func (*LiquidityOrder) Descriptor deprecated

func (*LiquidityOrder) Descriptor() ([]byte, []int)

Deprecated: Use LiquidityOrder.ProtoReflect.Descriptor instead.

func (*LiquidityOrder) GetOffset

func (x *LiquidityOrder) GetOffset() string

func (*LiquidityOrder) GetProportion

func (x *LiquidityOrder) GetProportion() uint32

func (*LiquidityOrder) GetReference

func (x *LiquidityOrder) GetReference() PeggedReference

func (*LiquidityOrder) ProtoMessage

func (*LiquidityOrder) ProtoMessage()

func (*LiquidityOrder) ProtoReflect

func (x *LiquidityOrder) ProtoReflect() protoreflect.Message

func (*LiquidityOrder) Reset

func (x *LiquidityOrder) Reset()

func (*LiquidityOrder) String

func (x *LiquidityOrder) String() string

type LiquidityOrderReference

type LiquidityOrderReference struct {

	// Unique ID of the pegged order generated to fulfil this liquidity order.
	OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// Liquidity order from the original submission.
	LiquidityOrder *LiquidityOrder `protobuf:"bytes,2,opt,name=liquidity_order,json=liquidityOrder,proto3" json:"liquidity_order,omitempty"`
	// contains filtered or unexported fields
}

Pair of a liquidity order and the ID of the generated order

func (*LiquidityOrderReference) Descriptor deprecated

func (*LiquidityOrderReference) Descriptor() ([]byte, []int)

Deprecated: Use LiquidityOrderReference.ProtoReflect.Descriptor instead.

func (*LiquidityOrderReference) GetLiquidityOrder

func (x *LiquidityOrderReference) GetLiquidityOrder() *LiquidityOrder

func (*LiquidityOrderReference) GetOrderId

func (x *LiquidityOrderReference) GetOrderId() string

func (*LiquidityOrderReference) ProtoMessage

func (*LiquidityOrderReference) ProtoMessage()

func (*LiquidityOrderReference) ProtoReflect

func (x *LiquidityOrderReference) ProtoReflect() protoreflect.Message

func (*LiquidityOrderReference) Reset

func (x *LiquidityOrderReference) Reset()

func (*LiquidityOrderReference) String

func (x *LiquidityOrderReference) String() string

type LiquidityProviderFeeShare

type LiquidityProviderFeeShare struct {

	// Liquidity provider party ID.
	Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	// Share own by this liquidity provider.
	EquityLikeShare string `protobuf:"bytes,2,opt,name=equity_like_share,json=equityLikeShare,proto3" json:"equity_like_share,omitempty"`
	// Average entry valuation of the liquidity provider for the market.
	AverageEntryValuation string `` /* 126-byte string literal not displayed */
	// Average liquidity score.
	AverageScore string `protobuf:"bytes,4,opt,name=average_score,json=averageScore,proto3" json:"average_score,omitempty"`
	// The virtual stake of this liquidity provider.
	VirtualStake string `protobuf:"bytes,5,opt,name=virtual_stake,json=virtualStake,proto3" json:"virtual_stake,omitempty"`
	// contains filtered or unexported fields
}

Equity-like share of liquidity fee for each liquidity provider

func (*LiquidityProviderFeeShare) Descriptor deprecated

func (*LiquidityProviderFeeShare) Descriptor() ([]byte, []int)

Deprecated: Use LiquidityProviderFeeShare.ProtoReflect.Descriptor instead.

func (*LiquidityProviderFeeShare) GetAverageEntryValuation

func (x *LiquidityProviderFeeShare) GetAverageEntryValuation() string

func (*LiquidityProviderFeeShare) GetAverageScore added in v0.65.1

func (x *LiquidityProviderFeeShare) GetAverageScore() string

func (*LiquidityProviderFeeShare) GetEquityLikeShare

func (x *LiquidityProviderFeeShare) GetEquityLikeShare() string

func (*LiquidityProviderFeeShare) GetParty

func (x *LiquidityProviderFeeShare) GetParty() string

func (*LiquidityProviderFeeShare) GetVirtualStake added in v0.72.0

func (x *LiquidityProviderFeeShare) GetVirtualStake() string

func (*LiquidityProviderFeeShare) ProtoMessage

func (*LiquidityProviderFeeShare) ProtoMessage()

func (*LiquidityProviderFeeShare) ProtoReflect

func (*LiquidityProviderFeeShare) Reset

func (x *LiquidityProviderFeeShare) Reset()

func (*LiquidityProviderFeeShare) String

func (x *LiquidityProviderFeeShare) String() string

type LiquidityProviderSLA added in v0.73.0

type LiquidityProviderSLA struct {

	// Liquidity provider party ID.
	Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	// Indicates how often LP meets the commitment during the current epoch.
	CurrentEpochFractionOfTimeOnBook string `` /* 167-byte string literal not displayed */
	// Indicates how often LP met the commitment in the previous epoch.
	LastEpochFractionOfTimeOnBook string `` /* 158-byte string literal not displayed */
	// Indicates the fee penalty amount applied in the previous epoch.
	LastEpochFeePenalty string `protobuf:"bytes,4,opt,name=last_epoch_fee_penalty,json=lastEpochFeePenalty,proto3" json:"last_epoch_fee_penalty,omitempty"`
	// Shows the bond penalties from past epochs.
	LastEpochBondPenalty string `protobuf:"bytes,5,opt,name=last_epoch_bond_penalty,json=lastEpochBondPenalty,proto3" json:"last_epoch_bond_penalty,omitempty"`
	// Determines how the fee penalties from past epochs affect future fee revenue.
	HysteresisPeriodFeePenalties []string `` /* 149-byte string literal not displayed */
	// Represents the total amount of funds LP must supply. The amount to be supplied is in the market’s
	// settlement currency, spread on both buy and sell sides of the order book within a defined range.
	RequiredLiquidity string `protobuf:"bytes,7,opt,name=required_liquidity,json=requiredLiquidity,proto3" json:"required_liquidity,omitempty"`
	// Notional volume of orders within the range provided on the buy side of the book.
	NotionalVolumeBuys string `protobuf:"bytes,8,opt,name=notional_volume_buys,json=notionalVolumeBuys,proto3" json:"notional_volume_buys,omitempty"`
	// Notional volume of orders within the range provided on the sell side of the book.
	NotionalVolumeSells string `protobuf:"bytes,9,opt,name=notional_volume_sells,json=notionalVolumeSells,proto3" json:"notional_volume_sells,omitempty"`
	// contains filtered or unexported fields
}

SLA performance for each liquidity provider

func (*LiquidityProviderSLA) Descriptor deprecated added in v0.73.0

func (*LiquidityProviderSLA) Descriptor() ([]byte, []int)

Deprecated: Use LiquidityProviderSLA.ProtoReflect.Descriptor instead.

func (*LiquidityProviderSLA) GetCurrentEpochFractionOfTimeOnBook added in v0.73.0

func (x *LiquidityProviderSLA) GetCurrentEpochFractionOfTimeOnBook() string

func (*LiquidityProviderSLA) GetHysteresisPeriodFeePenalties added in v0.73.0

func (x *LiquidityProviderSLA) GetHysteresisPeriodFeePenalties() []string

func (*LiquidityProviderSLA) GetLastEpochBondPenalty added in v0.73.0

func (x *LiquidityProviderSLA) GetLastEpochBondPenalty() string

func (*LiquidityProviderSLA) GetLastEpochFeePenalty added in v0.73.0

func (x *LiquidityProviderSLA) GetLastEpochFeePenalty() string

func (*LiquidityProviderSLA) GetLastEpochFractionOfTimeOnBook added in v0.73.0

func (x *LiquidityProviderSLA) GetLastEpochFractionOfTimeOnBook() string

func (*LiquidityProviderSLA) GetNotionalVolumeBuys added in v0.73.0

func (x *LiquidityProviderSLA) GetNotionalVolumeBuys() string

func (*LiquidityProviderSLA) GetNotionalVolumeSells added in v0.73.0

func (x *LiquidityProviderSLA) GetNotionalVolumeSells() string

func (*LiquidityProviderSLA) GetParty added in v0.73.0

func (x *LiquidityProviderSLA) GetParty() string

func (*LiquidityProviderSLA) GetRequiredLiquidity added in v0.73.0

func (x *LiquidityProviderSLA) GetRequiredLiquidity() string

func (*LiquidityProviderSLA) ProtoMessage added in v0.73.0

func (*LiquidityProviderSLA) ProtoMessage()

func (*LiquidityProviderSLA) ProtoReflect added in v0.73.0

func (x *LiquidityProviderSLA) ProtoReflect() protoreflect.Message

func (*LiquidityProviderSLA) Reset added in v0.73.0

func (x *LiquidityProviderSLA) Reset()

func (*LiquidityProviderSLA) String added in v0.73.0

func (x *LiquidityProviderSLA) String() string

type LiquidityProvision

type LiquidityProvision struct {

	// Unique ID for the liquidity provision.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Unique party ID for the creator of the provision.
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Timestamp in Unix nanoseconds for when the liquidity provision was created.
	CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Timestamp in Unix nanoseconds for when the liquidity provision was updated.
	UpdatedAt int64 `protobuf:"varint,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Market ID for the liquidity provision.
	MarketId string `protobuf:"bytes,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Specified as a unitless number that represents the amount of settlement asset of the market.
	// This field is an unsigned integer scaled to the asset's decimal places.
	CommitmentAmount string `protobuf:"bytes,6,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"`
	// Nominated liquidity fee factor, which is an input to the calculation of taker fees on the market, as per setting fees and rewarding liquidity providers.
	Fee string `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee,omitempty"`
	// Set of liquidity sell orders to meet the liquidity provision obligation.
	Sells []*LiquidityOrderReference `protobuf:"bytes,8,rep,name=sells,proto3" json:"sells,omitempty"`
	// Set of liquidity buy orders to meet the liquidity provision obligation.
	Buys []*LiquidityOrderReference `protobuf:"bytes,9,rep,name=buys,proto3" json:"buys,omitempty"`
	// Version of this liquidity provision.
	Version uint64 `protobuf:"varint,10,opt,name=version,proto3" json:"version,omitempty"`
	// Status of this liquidity provision.
	Status LiquidityProvision_Status `protobuf:"varint,11,opt,name=status,proto3,enum=vega.LiquidityProvision_Status" json:"status,omitempty"`
	// Reference shared between this liquidity provision and all its orders.
	Reference string `protobuf:"bytes,12,opt,name=reference,proto3" json:"reference,omitempty"`
	// contains filtered or unexported fields
}

Liquidity provider commitment

func (*LiquidityProvision) Descriptor deprecated

func (*LiquidityProvision) Descriptor() ([]byte, []int)

Deprecated: Use LiquidityProvision.ProtoReflect.Descriptor instead.

func (*LiquidityProvision) Float64Fee

func (l *LiquidityProvision) Float64Fee() float64

Float64Fee tries to parse the Fee (string) into a float64. If parsing fails 0 is returned.

func (*LiquidityProvision) GetBuys

func (*LiquidityProvision) GetCommitmentAmount

func (x *LiquidityProvision) GetCommitmentAmount() string

func (*LiquidityProvision) GetCreatedAt

func (x *LiquidityProvision) GetCreatedAt() int64

func (*LiquidityProvision) GetFee

func (x *LiquidityProvision) GetFee() string

func (*LiquidityProvision) GetId

func (x *LiquidityProvision) GetId() string

func (*LiquidityProvision) GetMarketId

func (x *LiquidityProvision) GetMarketId() string

func (*LiquidityProvision) GetPartyId

func (x *LiquidityProvision) GetPartyId() string

func (*LiquidityProvision) GetReference

func (x *LiquidityProvision) GetReference() string

func (*LiquidityProvision) GetSells

func (*LiquidityProvision) GetStatus

func (*LiquidityProvision) GetUpdatedAt

func (x *LiquidityProvision) GetUpdatedAt() int64

func (*LiquidityProvision) GetVersion

func (x *LiquidityProvision) GetVersion() uint64

func (LiquidityProvision) IsEvent

func (LiquidityProvision) IsEvent()

func (*LiquidityProvision) ProtoMessage

func (*LiquidityProvision) ProtoMessage()

func (*LiquidityProvision) ProtoReflect

func (x *LiquidityProvision) ProtoReflect() protoreflect.Message

func (*LiquidityProvision) Reset

func (x *LiquidityProvision) Reset()

func (*LiquidityProvision) String

func (x *LiquidityProvision) String() string

type LiquidityProvision_Status

type LiquidityProvision_Status int32

Status of a liquidity provision.

const (
	// Always invalid
	LiquidityProvision_STATUS_UNSPECIFIED LiquidityProvision_Status = 0
	// Liquidity provision is active
	LiquidityProvision_STATUS_ACTIVE LiquidityProvision_Status = 1
	// Liquidity provision was stopped by the network
	LiquidityProvision_STATUS_STOPPED LiquidityProvision_Status = 2
	// Liquidity provision was cancelled by the liquidity provider
	LiquidityProvision_STATUS_CANCELLED LiquidityProvision_Status = 3
	// Liquidity provision was invalid and got rejected
	LiquidityProvision_STATUS_REJECTED LiquidityProvision_Status = 4
	// Liquidity provision is valid and accepted by network, but orders aren't deployed
	LiquidityProvision_STATUS_UNDEPLOYED LiquidityProvision_Status = 5
	// Liquidity provision is valid and accepted by network
	// but has never been deployed. If when it's possible to deploy the orders for the first time
	// margin check fails, then they will be cancelled without any penalties.
	LiquidityProvision_STATUS_PENDING LiquidityProvision_Status = 6
)

func (LiquidityProvision_Status) Descriptor

func (LiquidityProvision_Status) Enum

func (LiquidityProvision_Status) EnumDescriptor deprecated

func (LiquidityProvision_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use LiquidityProvision_Status.Descriptor instead.

func (LiquidityProvision_Status) GetEnums added in v0.76.0

func (LiquidityProvision_Status) GetEnums() map[int32]string

func (LiquidityProvision_Status) Number

func (LiquidityProvision_Status) String

func (x LiquidityProvision_Status) String() string

func (LiquidityProvision_Status) Type

type LiquiditySLAParameters added in v0.73.0

type LiquiditySLAParameters struct {
	PriceRange string `protobuf:"bytes,1,opt,name=price_range,json=priceRange,proto3" json:"price_range,omitempty"`
	// Specifies the minimum fraction of time LPs must spend "on the book" providing their committed liquidity.
	CommitmentMinTimeFraction string `` /* 140-byte string literal not displayed */
	// Specifies the number of liquidity epochs over which past performance will continue to affect rewards.
	PerformanceHysteresisEpochs uint64 `` /* 145-byte string literal not displayed */
	// Specifies the maximum fraction of their accrued fees an LP that meets the SLA implied by market.liquidity.commitmentMinTimeFraction will lose to liquidity providers
	// that achieved a higher SLA performance than them.
	SlaCompetitionFactor string `protobuf:"bytes,5,opt,name=sla_competition_factor,json=slaCompetitionFactor,proto3" json:"sla_competition_factor,omitempty"`
	// contains filtered or unexported fields
}

func (*LiquiditySLAParameters) Descriptor deprecated added in v0.73.0

func (*LiquiditySLAParameters) Descriptor() ([]byte, []int)

Deprecated: Use LiquiditySLAParameters.ProtoReflect.Descriptor instead.

func (*LiquiditySLAParameters) GetCommitmentMinTimeFraction added in v0.73.0

func (x *LiquiditySLAParameters) GetCommitmentMinTimeFraction() string

func (*LiquiditySLAParameters) GetPerformanceHysteresisEpochs added in v0.73.0

func (x *LiquiditySLAParameters) GetPerformanceHysteresisEpochs() uint64

func (*LiquiditySLAParameters) GetPriceRange added in v0.73.0

func (x *LiquiditySLAParameters) GetPriceRange() string

func (*LiquiditySLAParameters) GetSlaCompetitionFactor added in v0.73.0

func (x *LiquiditySLAParameters) GetSlaCompetitionFactor() string

func (*LiquiditySLAParameters) ProtoMessage added in v0.73.0

func (*LiquiditySLAParameters) ProtoMessage()

func (*LiquiditySLAParameters) ProtoReflect added in v0.73.0

func (x *LiquiditySLAParameters) ProtoReflect() protoreflect.Message

func (*LiquiditySLAParameters) Reset added in v0.73.0

func (x *LiquiditySLAParameters) Reset()

func (*LiquiditySLAParameters) String added in v0.73.0

func (x *LiquiditySLAParameters) String() string

type LogNormalModelParams

type LogNormalModelParams struct {

	// Mu parameter, annualised growth rate of the underlying asset.
	Mu float64 `protobuf:"fixed64,1,opt,name=mu,proto3" json:"mu,omitempty"`
	// R parameter, annualised growth rate of the risk-free asset, used for discounting of future cash flows, can be any real number.
	R float64 `protobuf:"fixed64,2,opt,name=r,proto3" json:"r,omitempty"`
	// Sigma parameter, annualised volatility of the underlying asset, must be a strictly non-negative real number.
	Sigma float64 `protobuf:"fixed64,3,opt,name=sigma,proto3" json:"sigma,omitempty"`
	// contains filtered or unexported fields
}

Risk model parameters for log normal

func (*LogNormalModelParams) Descriptor deprecated

func (*LogNormalModelParams) Descriptor() ([]byte, []int)

Deprecated: Use LogNormalModelParams.ProtoReflect.Descriptor instead.

func (*LogNormalModelParams) GetMu

func (x *LogNormalModelParams) GetMu() float64

func (*LogNormalModelParams) GetR

func (x *LogNormalModelParams) GetR() float64

func (*LogNormalModelParams) GetSigma

func (x *LogNormalModelParams) GetSigma() float64

func (*LogNormalModelParams) ProtoMessage

func (*LogNormalModelParams) ProtoMessage()

func (*LogNormalModelParams) ProtoReflect

func (x *LogNormalModelParams) ProtoReflect() protoreflect.Message

func (*LogNormalModelParams) Reset

func (x *LogNormalModelParams) Reset()

func (*LogNormalModelParams) String

func (x *LogNormalModelParams) String() string

type LogNormalRiskModel

type LogNormalRiskModel struct {

	// Risk Aversion Parameter.
	RiskAversionParameter float64 `` /* 128-byte string literal not displayed */
	// Tau parameter of the risk model, projection horizon measured as a year fraction used in the expected shortfall
	// calculation to obtain the maintenance margin, must be a strictly non-negative real number.
	Tau float64 `protobuf:"fixed64,2,opt,name=tau,proto3" json:"tau,omitempty"`
	// Risk model parameters for log normal.
	Params *LogNormalModelParams `protobuf:"bytes,3,opt,name=params,proto3" json:"params,omitempty"`
	// And optional override for the risk factor calculated by the risk model.
	RiskFactorOverride *RiskFactorOverride `protobuf:"bytes,4,opt,name=risk_factor_override,json=riskFactorOverride,proto3,oneof" json:"risk_factor_override,omitempty"`
	// contains filtered or unexported fields
}

Risk model for log normal

func (*LogNormalRiskModel) Descriptor deprecated

func (*LogNormalRiskModel) Descriptor() ([]byte, []int)

Deprecated: Use LogNormalRiskModel.ProtoReflect.Descriptor instead.

func (*LogNormalRiskModel) GetParams

func (x *LogNormalRiskModel) GetParams() *LogNormalModelParams

func (*LogNormalRiskModel) GetRiskAversionParameter

func (x *LogNormalRiskModel) GetRiskAversionParameter() float64

func (*LogNormalRiskModel) GetRiskFactorOverride added in v0.77.0

func (x *LogNormalRiskModel) GetRiskFactorOverride() *RiskFactorOverride

func (*LogNormalRiskModel) GetTau

func (x *LogNormalRiskModel) GetTau() float64

func (LogNormalRiskModel) IsRiskModel

func (LogNormalRiskModel) IsRiskModel()

func (*LogNormalRiskModel) ProtoMessage

func (*LogNormalRiskModel) ProtoMessage()

func (*LogNormalRiskModel) ProtoReflect

func (x *LogNormalRiskModel) ProtoReflect() protoreflect.Message

func (*LogNormalRiskModel) Reset

func (x *LogNormalRiskModel) Reset()

func (*LogNormalRiskModel) String

func (x *LogNormalRiskModel) String() string

type LongBlockAuction added in v0.77.0

type LongBlockAuction struct {

	// Threshold for a long block.
	Threshold string `protobuf:"bytes,1,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// Auction duration for the given threshold.
	Duration string `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*LongBlockAuction) Descriptor deprecated added in v0.77.0

func (*LongBlockAuction) Descriptor() ([]byte, []int)

Deprecated: Use LongBlockAuction.ProtoReflect.Descriptor instead.

func (*LongBlockAuction) GetDuration added in v0.77.0

func (x *LongBlockAuction) GetDuration() string

func (*LongBlockAuction) GetThreshold added in v0.77.0

func (x *LongBlockAuction) GetThreshold() string

func (*LongBlockAuction) ProtoMessage added in v0.77.0

func (*LongBlockAuction) ProtoMessage()

func (*LongBlockAuction) ProtoReflect added in v0.77.0

func (x *LongBlockAuction) ProtoReflect() protoreflect.Message

func (*LongBlockAuction) Reset added in v0.77.0

func (x *LongBlockAuction) Reset()

func (*LongBlockAuction) String added in v0.77.0

func (x *LongBlockAuction) String() string

type LongBlockAuctionDurationTable added in v0.77.0

type LongBlockAuctionDurationTable struct {

	// Slice of thresholds and durations for corresponding auctions.
	ThresholdAndDuration []*LongBlockAuction `protobuf:"bytes,1,rep,name=threshold_and_duration,json=thresholdAndDuration,proto3" json:"threshold_and_duration,omitempty"`
	// contains filtered or unexported fields
}

func (*LongBlockAuctionDurationTable) Descriptor deprecated added in v0.77.0

func (*LongBlockAuctionDurationTable) Descriptor() ([]byte, []int)

Deprecated: Use LongBlockAuctionDurationTable.ProtoReflect.Descriptor instead.

func (*LongBlockAuctionDurationTable) GetThresholdAndDuration added in v0.77.0

func (x *LongBlockAuctionDurationTable) GetThresholdAndDuration() []*LongBlockAuction

func (*LongBlockAuctionDurationTable) ProtoMessage added in v0.77.0

func (*LongBlockAuctionDurationTable) ProtoMessage()

func (*LongBlockAuctionDurationTable) ProtoReflect added in v0.77.0

func (*LongBlockAuctionDurationTable) Reset added in v0.77.0

func (x *LongBlockAuctionDurationTable) Reset()

func (*LongBlockAuctionDurationTable) String added in v0.77.0

type MarginCalculator

type MarginCalculator struct {

	// Scaling factors for margin calculation.
	ScalingFactors *ScalingFactors `protobuf:"bytes,1,opt,name=scaling_factors,json=scalingFactors,proto3" json:"scaling_factors,omitempty"`
	// If set to true, positions must be fully collateralised so there is no default risk for any party (capped futures).
	FullyCollateralised *bool `protobuf:"varint,2,opt,name=fully_collateralised,json=fullyCollateralised,proto3,oneof" json:"fully_collateralised,omitempty"`
	// contains filtered or unexported fields
}

Margin Calculator definition

func (*MarginCalculator) Descriptor deprecated

func (*MarginCalculator) Descriptor() ([]byte, []int)

Deprecated: Use MarginCalculator.ProtoReflect.Descriptor instead.

func (*MarginCalculator) GetFullyCollateralised added in v0.77.0

func (x *MarginCalculator) GetFullyCollateralised() bool

func (*MarginCalculator) GetScalingFactors

func (x *MarginCalculator) GetScalingFactors() *ScalingFactors

func (*MarginCalculator) ProtoMessage

func (*MarginCalculator) ProtoMessage()

func (*MarginCalculator) ProtoReflect

func (x *MarginCalculator) ProtoReflect() protoreflect.Message

func (*MarginCalculator) Reset

func (x *MarginCalculator) Reset()

func (*MarginCalculator) String

func (x *MarginCalculator) String() string

type MarginLevels

type MarginLevels struct {

	// Maintenance margin value. This field is an unsigned integer scaled to the asset's decimal places.
	MaintenanceMargin string `protobuf:"bytes,1,opt,name=maintenance_margin,json=maintenanceMargin,proto3" json:"maintenance_margin,omitempty"`
	// Margin search level value. This field is an unsigned integer scaled to the asset's decimal places.
	SearchLevel string `protobuf:"bytes,2,opt,name=search_level,json=searchLevel,proto3" json:"search_level,omitempty"`
	// Initial margin value. This field is an unsigned integer scaled to the asset's decimal places.
	InitialMargin string `protobuf:"bytes,3,opt,name=initial_margin,json=initialMargin,proto3" json:"initial_margin,omitempty"`
	// Collateral release level value. This field is an unsigned integer scaled to the asset's decimal places.
	CollateralReleaseLevel string `` /* 129-byte string literal not displayed */
	// Party ID for whom the margin levels apply.
	PartyId string `protobuf:"bytes,5,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Market ID for which the margin levels apply.
	MarketId string `protobuf:"bytes,6,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Asset ID for which the margin levels apply.
	Asset string `protobuf:"bytes,7,opt,name=asset,proto3" json:"asset,omitempty"`
	// Timestamp in Unix nanoseconds for when the ledger entry was created.
	Timestamp int64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Margin required to cover orders in isolated margin mode.
	OrderMargin string `protobuf:"bytes,9,opt,name=order_margin,json=orderMargin,proto3" json:"order_margin,omitempty"`
	// Margin mode for the party, cross margin or isolated margin.
	MarginMode MarginMode `protobuf:"varint,10,opt,name=margin_mode,json=marginMode,proto3,enum=vega.MarginMode" json:"margin_mode,omitempty"`
	// Margin factor, relevant only for isolated margin, 0 otherwise.
	MarginFactor string `protobuf:"bytes,11,opt,name=margin_factor,json=marginFactor,proto3" json:"margin_factor,omitempty"`
	// contains filtered or unexported fields
}

Represents the margin levels for a party on a market at a given time

func (*MarginLevels) Descriptor deprecated

func (*MarginLevels) Descriptor() ([]byte, []int)

Deprecated: Use MarginLevels.ProtoReflect.Descriptor instead.

func (*MarginLevels) GetAsset

func (x *MarginLevels) GetAsset() string

func (*MarginLevels) GetCollateralReleaseLevel

func (x *MarginLevels) GetCollateralReleaseLevel() string

func (*MarginLevels) GetInitialMargin

func (x *MarginLevels) GetInitialMargin() string

func (*MarginLevels) GetMaintenanceMargin

func (x *MarginLevels) GetMaintenanceMargin() string

func (*MarginLevels) GetMarginFactor added in v0.74.0

func (x *MarginLevels) GetMarginFactor() string

func (*MarginLevels) GetMarginMode added in v0.74.0

func (x *MarginLevels) GetMarginMode() MarginMode

func (*MarginLevels) GetMarketId

func (x *MarginLevels) GetMarketId() string

func (*MarginLevels) GetOrderMargin added in v0.74.0

func (x *MarginLevels) GetOrderMargin() string

func (*MarginLevels) GetPartyId

func (x *MarginLevels) GetPartyId() string

func (*MarginLevels) GetSearchLevel

func (x *MarginLevels) GetSearchLevel() string

func (*MarginLevels) GetTimestamp

func (x *MarginLevels) GetTimestamp() int64

func (MarginLevels) IsEvent

func (MarginLevels) IsEvent()

func (*MarginLevels) ProtoMessage

func (*MarginLevels) ProtoMessage()

func (*MarginLevels) ProtoReflect

func (x *MarginLevels) ProtoReflect() protoreflect.Message

func (*MarginLevels) Reset

func (x *MarginLevels) Reset()

func (*MarginLevels) String

func (x *MarginLevels) String() string

type MarginMode added in v0.74.0

type MarginMode int32
const (
	// Never valid.
	MarginMode_MARGIN_MODE_UNSPECIFIED MarginMode = 0
	// Cross margin mode - margin is dynamically acquired and released as a position is marked to market
	MarginMode_MARGIN_MODE_CROSS_MARGIN MarginMode = 1
	// Isolated margin mode - margin for any newly opened position volume is transferred to the margin account when the trade is executed
	MarginMode_MARGIN_MODE_ISOLATED_MARGIN MarginMode = 2
)

func (MarginMode) Descriptor added in v0.74.0

func (MarginMode) Descriptor() protoreflect.EnumDescriptor

func (MarginMode) Enum added in v0.74.0

func (x MarginMode) Enum() *MarginMode

func (MarginMode) EnumDescriptor deprecated added in v0.74.0

func (MarginMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use MarginMode.Descriptor instead.

func (MarginMode) GetEnums added in v0.76.0

func (MarginMode) GetEnums() map[int32]string

func (MarginMode) Number added in v0.74.0

func (x MarginMode) Number() protoreflect.EnumNumber

func (MarginMode) String added in v0.74.0

func (x MarginMode) String() string

func (MarginMode) Type added in v0.74.0

type Market

type Market struct {

	// Unique ID for the market.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Tradable instrument configuration.
	TradableInstrument *TradableInstrument `protobuf:"bytes,2,opt,name=tradable_instrument,json=tradableInstrument,proto3" json:"tradable_instrument,omitempty"`
	// Number of decimal places that a price must be shifted by in order to get a
	// correct price denominated in the currency of the market, for example:
	// `realPrice = price / 10^decimalPlaces`. On spot markets, also called 'size decimal places'.
	DecimalPlaces uint64 `protobuf:"varint,3,opt,name=decimal_places,json=decimalPlaces,proto3" json:"decimal_places,omitempty"`
	// Fees configuration that apply to the market.
	Fees *Fees `protobuf:"bytes,4,opt,name=fees,proto3" json:"fees,omitempty"`
	// Auction duration specifies how long the opening auction will run (minimum
	// duration and optionally a minimum traded volume).
	OpeningAuction *AuctionDuration `protobuf:"bytes,5,opt,name=opening_auction,json=openingAuction,proto3" json:"opening_auction,omitempty"`
	// PriceMonitoringSettings for the market.
	PriceMonitoringSettings *PriceMonitoringSettings `` /* 132-byte string literal not displayed */
	// LiquidityMonitoringParameters for the market.
	LiquidityMonitoringParameters *LiquidityMonitoringParameters `` /* 150-byte string literal not displayed */
	// Current mode of execution of the market.
	TradingMode Market_TradingMode `protobuf:"varint,8,opt,name=trading_mode,json=tradingMode,proto3,enum=vega.Market_TradingMode" json:"trading_mode,omitempty"`
	// Current state of the market.
	State Market_State `protobuf:"varint,9,opt,name=state,proto3,enum=vega.Market_State" json:"state,omitempty"`
	// Timestamps for when the market state changes.
	MarketTimestamps *MarketTimestamps `protobuf:"bytes,10,opt,name=market_timestamps,json=marketTimestamps,proto3" json:"market_timestamps,omitempty"`
	// The number of decimal places for a position.
	// On spot markets, used for order size, also known as 'size decimal places'.
	PositionDecimalPlaces int64 `` /* 128-byte string literal not displayed */
	// Percentage move up and down from the mid price which specifies the range of
	// price levels over which automated liquidity provisions will be deployed.
	LpPriceRange string `protobuf:"bytes,12,opt,name=lp_price_range,json=lpPriceRange,proto3" json:"lp_price_range,omitempty"`
	// Linear slippage factor is used to cap the slippage component of maintenance margin - it is applied to the slippage volume.
	LinearSlippageFactor string `protobuf:"bytes,13,opt,name=linear_slippage_factor,json=linearSlippageFactor,proto3" json:"linear_slippage_factor,omitempty"`
	// Quadratic slippage factor is used to cap the slippage component of maintenance margin - it is applied to the square of the slippage volume.
	QuadraticSlippageFactor string `` /* 133-byte string literal not displayed */
	// ID of the market this market succeeds
	ParentMarketId *string `protobuf:"bytes,15,opt,name=parent_market_id,json=parentMarketId,proto3,oneof" json:"parent_market_id,omitempty"`
	// The fraction of the parent market's insurance pool that this market inherits; range 0 through 1.
	InsurancePoolFraction *string `` /* 133-byte string literal not displayed */
	// ID of the market that succeeds this market if it exists. This will be populated by the system when the successor market is enabled.
	SuccessorMarketId *string `protobuf:"bytes,17,opt,name=successor_market_id,json=successorMarketId,proto3,oneof" json:"successor_market_id,omitempty"`
	// Liquidity SLA parameters for the market.
	LiquiditySlaParams *LiquiditySLAParameters `protobuf:"bytes,18,opt,name=liquidity_sla_params,json=liquiditySlaParams,proto3,oneof" json:"liquidity_sla_params,omitempty"`
	// Liquidation strategy used by this market.
	LiquidationStrategy *LiquidationStrategy `protobuf:"bytes,19,opt,name=liquidation_strategy,json=liquidationStrategy,proto3" json:"liquidation_strategy,omitempty"`
	// Mark price calculation configuration.
	MarkPriceConfiguration *CompositePriceConfiguration `` /* 130-byte string literal not displayed */
	// The market tick size defines the minimum change in quote price for the market
	TickSize string `protobuf:"bytes,21,opt,name=tick_size,json=tickSize,proto3" json:"tick_size,omitempty"`
	// If enabled aggressive orders sent to the market will be delayed by the configured number of blocks
	EnableTransactionReordering bool `` /* 146-byte string literal not displayed */
	// contains filtered or unexported fields
}

Market definition

func (*Market) Descriptor deprecated

func (*Market) Descriptor() ([]byte, []int)

Deprecated: Use Market.ProtoReflect.Descriptor instead.

func (*Market) GetAsset

func (m *Market) GetAsset() (string, error)

func (*Market) GetDecimalPlaces

func (x *Market) GetDecimalPlaces() uint64

func (*Market) GetEnableTransactionReordering added in v0.77.0

func (x *Market) GetEnableTransactionReordering() bool

func (*Market) GetFees

func (x *Market) GetFees() *Fees

func (*Market) GetId

func (x *Market) GetId() string

func (*Market) GetInsurancePoolFraction added in v0.72.0

func (x *Market) GetInsurancePoolFraction() string

func (*Market) GetLinearSlippageFactor added in v0.68.0

func (x *Market) GetLinearSlippageFactor() string

func (*Market) GetLiquidationStrategy added in v0.74.0

func (x *Market) GetLiquidationStrategy() *LiquidationStrategy

func (*Market) GetLiquidityMonitoringParameters

func (x *Market) GetLiquidityMonitoringParameters() *LiquidityMonitoringParameters

func (*Market) GetLiquiditySlaParams added in v0.73.0

func (x *Market) GetLiquiditySlaParams() *LiquiditySLAParameters

func (*Market) GetLpPriceRange added in v0.65.0

func (x *Market) GetLpPriceRange() string

func (*Market) GetMarkPriceConfiguration added in v0.74.0

func (x *Market) GetMarkPriceConfiguration() *CompositePriceConfiguration

func (*Market) GetMarketTimestamps

func (x *Market) GetMarketTimestamps() *MarketTimestamps

func (*Market) GetOpeningAuction

func (x *Market) GetOpeningAuction() *AuctionDuration

func (*Market) GetParentMarketId added in v0.72.0

func (x *Market) GetParentMarketId() string

func (*Market) GetPositionDecimalPlaces

func (x *Market) GetPositionDecimalPlaces() int64

func (*Market) GetPriceMonitoringSettings

func (x *Market) GetPriceMonitoringSettings() *PriceMonitoringSettings

func (*Market) GetQuadraticSlippageFactor added in v0.68.0

func (x *Market) GetQuadraticSlippageFactor() string

func (*Market) GetState

func (x *Market) GetState() Market_State

func (*Market) GetSuccessorMarketId added in v0.72.0

func (x *Market) GetSuccessorMarketId() string

func (*Market) GetTickSize added in v0.75.0

func (x *Market) GetTickSize() string

func (*Market) GetTradableInstrument

func (x *Market) GetTradableInstrument() *TradableInstrument

func (*Market) GetTradingMode

func (x *Market) GetTradingMode() Market_TradingMode

func (Market) IsEvent

func (Market) IsEvent()

func (*Market) ProtoMessage

func (*Market) ProtoMessage()

func (*Market) ProtoReflect

func (x *Market) ProtoReflect() protoreflect.Message

func (*Market) Reset

func (x *Market) Reset()

func (*Market) String

func (x *Market) String() string

type MarketData

type MarketData struct {

	// Mark price, as an unsigned integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places.
	MarkPrice string `protobuf:"bytes,1,opt,name=mark_price,json=markPrice,proto3" json:"mark_price,omitempty"`
	// Highest price level on an order book for buy orders, as an unsigned integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places.
	BestBidPrice string `protobuf:"bytes,2,opt,name=best_bid_price,json=bestBidPrice,proto3" json:"best_bid_price,omitempty"`
	// Aggregated volume being bid at the best bid price, as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market is configured to 5 decimal places.
	BestBidVolume uint64 `protobuf:"varint,3,opt,name=best_bid_volume,json=bestBidVolume,proto3" json:"best_bid_volume,omitempty"`
	// Lowest price level on an order book for offer orders. This field is an unsigned integer scaled to the market's decimal places.
	BestOfferPrice string `protobuf:"bytes,4,opt,name=best_offer_price,json=bestOfferPrice,proto3" json:"best_offer_price,omitempty"`
	// Aggregated volume being offered at the best offer price, as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market is configured to 5 decimal places.
	BestOfferVolume uint64 `protobuf:"varint,5,opt,name=best_offer_volume,json=bestOfferVolume,proto3" json:"best_offer_volume,omitempty"`
	// Highest price on the order book for buy orders not including pegged orders.
	// This field is an unsigned integer scaled to the market's decimal places.
	BestStaticBidPrice string `protobuf:"bytes,6,opt,name=best_static_bid_price,json=bestStaticBidPrice,proto3" json:"best_static_bid_price,omitempty"`
	// Total volume at the best static bid price excluding pegged orders.
	BestStaticBidVolume uint64 `protobuf:"varint,7,opt,name=best_static_bid_volume,json=bestStaticBidVolume,proto3" json:"best_static_bid_volume,omitempty"`
	// Lowest price on the order book for sell orders not including pegged orders.
	// This field is an unsigned integer scaled to the market's decimal places.
	BestStaticOfferPrice string `protobuf:"bytes,8,opt,name=best_static_offer_price,json=bestStaticOfferPrice,proto3" json:"best_static_offer_price,omitempty"`
	// Total volume at the best static offer price, excluding pegged orders.
	BestStaticOfferVolume uint64 `` /* 129-byte string literal not displayed */
	// Arithmetic average of the best bid price and best offer price, as an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places.
	MidPrice string `protobuf:"bytes,10,opt,name=mid_price,json=midPrice,proto3" json:"mid_price,omitempty"`
	// Arithmetic average of the best static bid price and best static offer price.
	// This field is an unsigned integer scaled to the market's decimal places.
	StaticMidPrice string `protobuf:"bytes,11,opt,name=static_mid_price,json=staticMidPrice,proto3" json:"static_mid_price,omitempty"`
	// Market ID for the data
	Market string `protobuf:"bytes,12,opt,name=market,proto3" json:"market,omitempty"`
	// Timestamp in Unix nanoseconds at which this mark price was relevant.
	Timestamp int64 `protobuf:"varint,13,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Sum of the size of all positions greater than zero on the market.
	OpenInterest uint64 `protobuf:"varint,14,opt,name=open_interest,json=openInterest,proto3" json:"open_interest,omitempty"`
	// Time in seconds until the end of the auction (zero if currently not in auction period).
	AuctionEnd int64 `protobuf:"varint,15,opt,name=auction_end,json=auctionEnd,proto3" json:"auction_end,omitempty"`
	// Time until next auction, or start time of the current auction if market is in auction period.
	AuctionStart int64 `protobuf:"varint,16,opt,name=auction_start,json=auctionStart,proto3" json:"auction_start,omitempty"`
	// Indicative price (zero if not in auction). This field is an unsigned scaled to the market's decimal places.
	IndicativePrice string `protobuf:"bytes,17,opt,name=indicative_price,json=indicativePrice,proto3" json:"indicative_price,omitempty"`
	// Indicative volume (zero if not in auction).
	IndicativeVolume uint64 `protobuf:"varint,18,opt,name=indicative_volume,json=indicativeVolume,proto3" json:"indicative_volume,omitempty"`
	// Current trading mode for the market.
	MarketTradingMode Market_TradingMode `` /* 145-byte string literal not displayed */
	// When a market is in an auction trading mode, this field indicates what triggered the auction.
	Trigger AuctionTrigger `protobuf:"varint,20,opt,name=trigger,proto3,enum=vega.AuctionTrigger" json:"trigger,omitempty"`
	// When a market auction is extended, this field indicates what caused the extension.
	ExtensionTrigger AuctionTrigger `` /* 136-byte string literal not displayed */
	// Targeted stake for the given market. This field is an unsigned integer scaled to the settlement asset's decimal places.
	TargetStake string `protobuf:"bytes,22,opt,name=target_stake,json=targetStake,proto3" json:"target_stake,omitempty"`
	// Available stake for the given market. This field is an unsigned integer scaled to the settlement asset's decimal places.
	SuppliedStake string `protobuf:"bytes,23,opt,name=supplied_stake,json=suppliedStake,proto3" json:"supplied_stake,omitempty"`
	// One or more price monitoring bounds for the current timestamp.
	PriceMonitoringBounds []*PriceMonitoringBounds `` /* 127-byte string literal not displayed */
	// Market value proxy.
	MarketValueProxy string `protobuf:"bytes,25,opt,name=market_value_proxy,json=marketValueProxy,proto3" json:"market_value_proxy,omitempty"`
	// Equity-like share of liquidity fee for each liquidity provider.
	LiquidityProviderFeeShare []*LiquidityProviderFeeShare `` /* 141-byte string literal not displayed */
	// Current state of the market.
	MarketState Market_State `protobuf:"varint,27,opt,name=market_state,json=marketState,proto3,enum=vega.Market_State" json:"market_state,omitempty"`
	// Time in Unix nanoseconds when the next mark-to-market calculation will occur.
	NextMarkToMarket int64 `protobuf:"varint,28,opt,name=next_mark_to_market,json=nextMarkToMarket,proto3" json:"next_mark_to_market,omitempty"`
	// Last traded price of the market. This field is an unsigned integer scaled to the market's decimal places.
	LastTradedPrice string `protobuf:"bytes,29,opt,name=last_traded_price,json=lastTradedPrice,proto3" json:"last_traded_price,omitempty"`
	// Market growth at the last market time window.
	MarketGrowth string `protobuf:"bytes,30,opt,name=market_growth,json=marketGrowth,proto3" json:"market_growth,omitempty"`
	// Data related to the particular product type of the market.
	ProductData *ProductData `protobuf:"bytes,31,opt,name=product_data,json=productData,proto3,oneof" json:"product_data,omitempty"`
	// SLA performance for each liquidity provider.
	LiquidityProviderSla []*LiquidityProviderSLA `protobuf:"bytes,32,rep,name=liquidity_provider_sla,json=liquidityProviderSla,proto3" json:"liquidity_provider_sla,omitempty"`
	// Time in Unix nanoseconds when the market will next submit a trade to reduce its position.
	NextNetworkCloseout int64 `protobuf:"varint,33,opt,name=next_network_closeout,json=nextNetworkCloseout,proto3" json:"next_network_closeout,omitempty"`
	// The method used for calculating the mark price.
	MarkPriceType CompositePriceType `` /* 133-byte string literal not displayed */
	// State of the internal composite price.
	MarkPriceState *CompositePriceState `protobuf:"bytes,35,opt,name=mark_price_state,json=markPriceState,proto3" json:"mark_price_state,omitempty"`
	// contains filtered or unexported fields
}

Represents data generated by a market when open

func (*MarketData) Descriptor deprecated

func (*MarketData) Descriptor() ([]byte, []int)

Deprecated: Use MarketData.ProtoReflect.Descriptor instead.

func (*MarketData) GetAuctionEnd

func (x *MarketData) GetAuctionEnd() int64

func (*MarketData) GetAuctionStart

func (x *MarketData) GetAuctionStart() int64

func (*MarketData) GetBestBidPrice

func (x *MarketData) GetBestBidPrice() string

func (*MarketData) GetBestBidVolume

func (x *MarketData) GetBestBidVolume() uint64

func (*MarketData) GetBestOfferPrice

func (x *MarketData) GetBestOfferPrice() string

func (*MarketData) GetBestOfferVolume

func (x *MarketData) GetBestOfferVolume() uint64

func (*MarketData) GetBestStaticBidPrice

func (x *MarketData) GetBestStaticBidPrice() string

func (*MarketData) GetBestStaticBidVolume

func (x *MarketData) GetBestStaticBidVolume() uint64

func (*MarketData) GetBestStaticOfferPrice

func (x *MarketData) GetBestStaticOfferPrice() string

func (*MarketData) GetBestStaticOfferVolume

func (x *MarketData) GetBestStaticOfferVolume() uint64

func (*MarketData) GetExtensionTrigger

func (x *MarketData) GetExtensionTrigger() AuctionTrigger

func (*MarketData) GetIndicativePrice

func (x *MarketData) GetIndicativePrice() string

func (*MarketData) GetIndicativeVolume

func (x *MarketData) GetIndicativeVolume() uint64

func (*MarketData) GetLastTradedPrice added in v0.63.0

func (x *MarketData) GetLastTradedPrice() string

func (*MarketData) GetLiquidityProviderFeeShare

func (x *MarketData) GetLiquidityProviderFeeShare() []*LiquidityProviderFeeShare

func (*MarketData) GetLiquidityProviderSla added in v0.73.0

func (x *MarketData) GetLiquidityProviderSla() []*LiquidityProviderSLA

func (*MarketData) GetMarkPrice

func (x *MarketData) GetMarkPrice() string

func (*MarketData) GetMarkPriceState added in v0.74.0

func (x *MarketData) GetMarkPriceState() *CompositePriceState

func (*MarketData) GetMarkPriceType added in v0.74.0

func (x *MarketData) GetMarkPriceType() CompositePriceType

func (*MarketData) GetMarket

func (x *MarketData) GetMarket() string

func (*MarketData) GetMarketGrowth added in v0.72.0

func (x *MarketData) GetMarketGrowth() string

func (*MarketData) GetMarketState added in v0.55.0

func (x *MarketData) GetMarketState() Market_State

func (*MarketData) GetMarketTradingMode

func (x *MarketData) GetMarketTradingMode() Market_TradingMode

func (*MarketData) GetMarketValueProxy

func (x *MarketData) GetMarketValueProxy() string

func (*MarketData) GetMidPrice

func (x *MarketData) GetMidPrice() string

func (*MarketData) GetNextMarkToMarket added in v0.63.0

func (x *MarketData) GetNextMarkToMarket() int64

func (*MarketData) GetNextNetworkCloseout added in v0.74.0

func (x *MarketData) GetNextNetworkCloseout() int64

func (*MarketData) GetOpenInterest

func (x *MarketData) GetOpenInterest() uint64

func (*MarketData) GetPriceMonitoringBounds

func (x *MarketData) GetPriceMonitoringBounds() []*PriceMonitoringBounds

func (*MarketData) GetProductData added in v0.73.0

func (x *MarketData) GetProductData() *ProductData

func (*MarketData) GetStaticMidPrice

func (x *MarketData) GetStaticMidPrice() string

func (*MarketData) GetSuppliedStake

func (x *MarketData) GetSuppliedStake() string

func (*MarketData) GetTargetStake

func (x *MarketData) GetTargetStake() string

func (*MarketData) GetTimestamp

func (x *MarketData) GetTimestamp() int64

func (*MarketData) GetTrigger

func (x *MarketData) GetTrigger() AuctionTrigger

func (MarketData) IsEvent

func (MarketData) IsEvent()

func (*MarketData) ProtoMessage

func (*MarketData) ProtoMessage()

func (*MarketData) ProtoReflect

func (x *MarketData) ProtoReflect() protoreflect.Message

func (*MarketData) Reset

func (x *MarketData) Reset()

func (*MarketData) String

func (x *MarketData) String() string

type MarketDepth

type MarketDepth struct {

	// Market ID for which the depth levels apply.
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Collection of price levels for the buy side of the book.
	Buy []*PriceLevel `protobuf:"bytes,2,rep,name=buy,proto3" json:"buy,omitempty"`
	// Collection of price levels for the sell side of the book.
	Sell []*PriceLevel `protobuf:"bytes,3,rep,name=sell,proto3" json:"sell,omitempty"`
	// Sequence number for the market depth data returned.
	SequenceNumber uint64 `protobuf:"varint,4,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	// contains filtered or unexported fields
}

Represents market depth or order book data for the specified market on Vega

func (*MarketDepth) Descriptor deprecated

func (*MarketDepth) Descriptor() ([]byte, []int)

Deprecated: Use MarketDepth.ProtoReflect.Descriptor instead.

func (*MarketDepth) GetBuy

func (x *MarketDepth) GetBuy() []*PriceLevel

func (*MarketDepth) GetMarketId

func (x *MarketDepth) GetMarketId() string

func (*MarketDepth) GetSell

func (x *MarketDepth) GetSell() []*PriceLevel

func (*MarketDepth) GetSequenceNumber

func (x *MarketDepth) GetSequenceNumber() uint64

func (*MarketDepth) ProtoMessage

func (*MarketDepth) ProtoMessage()

func (*MarketDepth) ProtoReflect

func (x *MarketDepth) ProtoReflect() protoreflect.Message

func (*MarketDepth) Reset

func (x *MarketDepth) Reset()

func (*MarketDepth) String

func (x *MarketDepth) String() string

type MarketDepthUpdate

type MarketDepthUpdate struct {

	// Market ID for which the market depth updates are for.
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Collection of updated price levels for the buy side of the book.
	Buy []*PriceLevel `protobuf:"bytes,2,rep,name=buy,proto3" json:"buy,omitempty"`
	// Collection of updated price levels for the sell side of the book.
	Sell []*PriceLevel `protobuf:"bytes,3,rep,name=sell,proto3" json:"sell,omitempty"`
	// Sequence number for the market depth update data returned. It is increasing but not monotonic.
	SequenceNumber uint64 `protobuf:"varint,4,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"`
	// Sequence number of the previous market depth update, for checking there are no gaps.
	PreviousSequenceNumber uint64 `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents the changed market depth since the last update

func (*MarketDepthUpdate) Descriptor deprecated

func (*MarketDepthUpdate) Descriptor() ([]byte, []int)

Deprecated: Use MarketDepthUpdate.ProtoReflect.Descriptor instead.

func (*MarketDepthUpdate) GetBuy

func (x *MarketDepthUpdate) GetBuy() []*PriceLevel

func (*MarketDepthUpdate) GetMarketId

func (x *MarketDepthUpdate) GetMarketId() string

func (*MarketDepthUpdate) GetPreviousSequenceNumber

func (x *MarketDepthUpdate) GetPreviousSequenceNumber() uint64

func (*MarketDepthUpdate) GetSell

func (x *MarketDepthUpdate) GetSell() []*PriceLevel

func (*MarketDepthUpdate) GetSequenceNumber

func (x *MarketDepthUpdate) GetSequenceNumber() uint64

func (*MarketDepthUpdate) ProtoMessage

func (*MarketDepthUpdate) ProtoMessage()

func (*MarketDepthUpdate) ProtoReflect

func (x *MarketDepthUpdate) ProtoReflect() protoreflect.Message

func (*MarketDepthUpdate) Reset

func (x *MarketDepthUpdate) Reset()

func (*MarketDepthUpdate) String

func (x *MarketDepthUpdate) String() string

type MarketStateUpdateType added in v0.73.0

type MarketStateUpdateType int32
const (
	// Default value, always invalid
	MarketStateUpdateType_MARKET_STATE_UPDATE_TYPE_UNSPECIFIED MarketStateUpdateType = 0
	// Request to terminate a market via governance
	MarketStateUpdateType_MARKET_STATE_UPDATE_TYPE_TERMINATE MarketStateUpdateType = 1
	// Request to suspend a market via governance
	MarketStateUpdateType_MARKET_STATE_UPDATE_TYPE_SUSPEND MarketStateUpdateType = 2
	// Request to resume a market via governance
	MarketStateUpdateType_MARKET_STATE_UPDATE_TYPE_RESUME MarketStateUpdateType = 3
)

func (MarketStateUpdateType) Descriptor added in v0.73.0

func (MarketStateUpdateType) Enum added in v0.73.0

func (MarketStateUpdateType) EnumDescriptor deprecated added in v0.73.0

func (MarketStateUpdateType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MarketStateUpdateType.Descriptor instead.

func (MarketStateUpdateType) Number added in v0.73.0

func (MarketStateUpdateType) String added in v0.73.0

func (x MarketStateUpdateType) String() string

func (MarketStateUpdateType) Type added in v0.73.0

type MarketTimestamps

type MarketTimestamps struct {

	// Time when the market is first proposed.
	Proposed int64 `protobuf:"varint,1,opt,name=proposed,proto3" json:"proposed,omitempty"`
	// Time when the market has been voted in and began its opening auction.
	Pending int64 `protobuf:"varint,2,opt,name=pending,proto3" json:"pending,omitempty"`
	// Time when the market has left the opening auction and is ready to accept trades.
	Open int64 `protobuf:"varint,3,opt,name=open,proto3" json:"open,omitempty"`
	// Time when the market closed.
	Close int64 `protobuf:"varint,4,opt,name=close,proto3" json:"close,omitempty"`
	// contains filtered or unexported fields
}

Time stamps for important times about creating, enacting etc the market

func (*MarketTimestamps) Descriptor deprecated

func (*MarketTimestamps) Descriptor() ([]byte, []int)

Deprecated: Use MarketTimestamps.ProtoReflect.Descriptor instead.

func (*MarketTimestamps) GetClose

func (x *MarketTimestamps) GetClose() int64

func (*MarketTimestamps) GetOpen

func (x *MarketTimestamps) GetOpen() int64

func (*MarketTimestamps) GetPending

func (x *MarketTimestamps) GetPending() int64

func (*MarketTimestamps) GetProposed

func (x *MarketTimestamps) GetProposed() int64

func (*MarketTimestamps) ProtoMessage

func (*MarketTimestamps) ProtoMessage()

func (*MarketTimestamps) ProtoReflect

func (x *MarketTimestamps) ProtoReflect() protoreflect.Message

func (*MarketTimestamps) Reset

func (x *MarketTimestamps) Reset()

func (*MarketTimestamps) String

func (x *MarketTimestamps) String() string

type Market_State

type Market_State int32

Current state of the market

const (
	// Default value, invalid
	Market_STATE_UNSPECIFIED Market_State = 0
	// Governance proposal valid and accepted
	Market_STATE_PROPOSED Market_State = 1
	// Outcome of governance votes is to reject the market
	Market_STATE_REJECTED Market_State = 2
	// Governance vote passes/wins
	Market_STATE_PENDING Market_State = 3
	// Market triggers cancellation condition or governance
	// votes to close before market becomes Active
	Market_STATE_CANCELLED Market_State = 4
	// Enactment date reached and usual auction exit checks pass
	Market_STATE_ACTIVE Market_State = 5
	// Price monitoring or liquidity monitoring trigger
	Market_STATE_SUSPENDED Market_State = 6
	// Governance vote to close (Not currently implemented)
	Market_STATE_CLOSED Market_State = 7
	// Defined by the product (i.e. from a product parameter,
	// specified in market definition, giving close date/time)
	Market_STATE_TRADING_TERMINATED Market_State = 8
	// Settlement triggered and completed as defined by product
	Market_STATE_SETTLED Market_State = 9
	// Market has been suspended via governance
	Market_STATE_SUSPENDED_VIA_GOVERNANCE Market_State = 10
)

func (Market_State) Descriptor

func (Market_State) Enum

func (x Market_State) Enum() *Market_State

func (Market_State) EnumDescriptor deprecated

func (Market_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Market_State.Descriptor instead.

func (Market_State) GetEnums added in v0.76.0

func (Market_State) GetEnums() map[int32]string

func (Market_State) Number

func (Market_State) String

func (x Market_State) String() string

func (Market_State) Type

type Market_TradingMode

type Market_TradingMode int32

Trading mode the market is currently running, also referred to as 'market state'

const (
	// Default value, this is invalid
	Market_TRADING_MODE_UNSPECIFIED Market_TradingMode = 0
	// Normal trading
	Market_TRADING_MODE_CONTINUOUS Market_TradingMode = 1
	// Auction trading (FBA)
	Market_TRADING_MODE_BATCH_AUCTION Market_TradingMode = 2
	// Opening auction
	Market_TRADING_MODE_OPENING_AUCTION Market_TradingMode = 3
	// Auction triggered by monitoring
	Market_TRADING_MODE_MONITORING_AUCTION Market_TradingMode = 4
	// No trading is allowed
	Market_TRADING_MODE_NO_TRADING Market_TradingMode = 5
	// Special auction mode triggered via governance
	Market_TRADING_MODE_SUSPENDED_VIA_GOVERNANCE Market_TradingMode = 6
	// Auction triggered globally by long block
	Market_TRADING_MODE_LONG_BLOCK_AUCTION Market_TradingMode = 7
)

func (Market_TradingMode) Descriptor

func (Market_TradingMode) Enum

func (Market_TradingMode) EnumDescriptor deprecated

func (Market_TradingMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use Market_TradingMode.Descriptor instead.

func (Market_TradingMode) GetEnums added in v0.76.0

func (Market_TradingMode) GetEnums() map[int32]string

func (Market_TradingMode) Number

func (Market_TradingMode) String

func (x Market_TradingMode) String() string

func (Market_TradingMode) Type

type MatrixValue

type MatrixValue struct {
	Value []*VectorValue `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*MatrixValue) Descriptor deprecated

func (*MatrixValue) Descriptor() ([]byte, []int)

Deprecated: Use MatrixValue.ProtoReflect.Descriptor instead.

func (*MatrixValue) GetValue

func (x *MatrixValue) GetValue() []*VectorValue

func (*MatrixValue) ProtoMessage

func (*MatrixValue) ProtoMessage()

func (*MatrixValue) ProtoReflect

func (x *MatrixValue) ProtoReflect() protoreflect.Message

func (*MatrixValue) Reset

func (x *MatrixValue) Reset()

func (*MatrixValue) String

func (x *MatrixValue) String() string

type Metadata added in v0.74.0

type Metadata struct {

	// Key of the metadata.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Value of the metadata.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Generic structure holding a key/value pair.

func (*Metadata) Descriptor deprecated added in v0.74.0

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetKey added in v0.74.0

func (x *Metadata) GetKey() string

func (*Metadata) GetValue added in v0.74.0

func (x *Metadata) GetValue() string

func (*Metadata) ProtoMessage added in v0.74.0

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect added in v0.74.0

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset added in v0.74.0

func (x *Metadata) Reset()

func (*Metadata) String added in v0.74.0

func (x *Metadata) String() string

type NetworkLimits

type NetworkLimits struct {

	// Are market proposals allowed at this point in time.
	CanProposeMarket bool `protobuf:"varint,1,opt,name=can_propose_market,json=canProposeMarket,proto3" json:"can_propose_market,omitempty"`
	// Are asset proposals allowed at this point in time.
	CanProposeAsset bool `protobuf:"varint,2,opt,name=can_propose_asset,json=canProposeAsset,proto3" json:"can_propose_asset,omitempty"`
	// Are market proposals enabled on this chain.
	ProposeMarketEnabled bool `protobuf:"varint,4,opt,name=propose_market_enabled,json=proposeMarketEnabled,proto3" json:"propose_market_enabled,omitempty"`
	// Are asset proposals enabled on this chain.
	ProposeAssetEnabled bool `protobuf:"varint,5,opt,name=propose_asset_enabled,json=proposeAssetEnabled,proto3" json:"propose_asset_enabled,omitempty"`
	// True once the genesis file is loaded.
	GenesisLoaded bool `protobuf:"varint,7,opt,name=genesis_loaded,json=genesisLoaded,proto3" json:"genesis_loaded,omitempty"`
	// Timestamp in Unix nanoseconds at which market proposals will be enabled (0 indicates not set).
	ProposeMarketEnabledFrom int64 `` /* 138-byte string literal not displayed */
	// Timestamp in Unix nanoseconds at which asset proposals will be enabled (0 indicates not set).
	ProposeAssetEnabledFrom int64 `` /* 135-byte string literal not displayed */
	// Are spot market proposals allowed at this point in time.
	CanProposeSpotMarket bool `` /* 127-byte string literal not displayed */
	// Are perpetual market proposals allowed at this point in time.
	CanProposePerpetualMarket bool `` /* 142-byte string literal not displayed */
	// Can parties use AMM related transactions.
	CanUseAmm bool `protobuf:"varint,12,opt,name=can_use_amm,json=canUseAmm,proto3" json:"can_use_amm,omitempty"`
	// contains filtered or unexported fields
}

Network limits, defined in the genesis file

func (*NetworkLimits) Descriptor deprecated

func (*NetworkLimits) Descriptor() ([]byte, []int)

Deprecated: Use NetworkLimits.ProtoReflect.Descriptor instead.

func (*NetworkLimits) GetCanProposeAsset

func (x *NetworkLimits) GetCanProposeAsset() bool

func (*NetworkLimits) GetCanProposeMarket

func (x *NetworkLimits) GetCanProposeMarket() bool

func (*NetworkLimits) GetCanProposePerpetualMarket added in v0.73.0

func (x *NetworkLimits) GetCanProposePerpetualMarket() bool

func (*NetworkLimits) GetCanProposeSpotMarket added in v0.73.0

func (x *NetworkLimits) GetCanProposeSpotMarket() bool

func (*NetworkLimits) GetCanUseAmm added in v0.77.0

func (x *NetworkLimits) GetCanUseAmm() bool

func (*NetworkLimits) GetGenesisLoaded

func (x *NetworkLimits) GetGenesisLoaded() bool

func (*NetworkLimits) GetProposeAssetEnabled

func (x *NetworkLimits) GetProposeAssetEnabled() bool

func (*NetworkLimits) GetProposeAssetEnabledFrom

func (x *NetworkLimits) GetProposeAssetEnabledFrom() int64

func (*NetworkLimits) GetProposeMarketEnabled

func (x *NetworkLimits) GetProposeMarketEnabled() bool

func (*NetworkLimits) GetProposeMarketEnabledFrom

func (x *NetworkLimits) GetProposeMarketEnabledFrom() int64

func (*NetworkLimits) ProtoMessage

func (*NetworkLimits) ProtoMessage()

func (*NetworkLimits) ProtoReflect

func (x *NetworkLimits) ProtoReflect() protoreflect.Message

func (*NetworkLimits) Reset

func (x *NetworkLimits) Reset()

func (*NetworkLimits) String

func (x *NetworkLimits) String() string

type NetworkParameter

type NetworkParameter struct {

	// Unique key of the network parameter.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Value for the network parameter.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Represents a network parameter on Vega

func (*NetworkParameter) Descriptor deprecated

func (*NetworkParameter) Descriptor() ([]byte, []int)

Deprecated: Use NetworkParameter.ProtoReflect.Descriptor instead.

func (*NetworkParameter) GetKey

func (x *NetworkParameter) GetKey() string

func (*NetworkParameter) GetValue

func (x *NetworkParameter) GetValue() string

func (*NetworkParameter) ProtoMessage

func (*NetworkParameter) ProtoMessage()

func (*NetworkParameter) ProtoReflect

func (x *NetworkParameter) ProtoReflect() protoreflect.Message

func (*NetworkParameter) Reset

func (x *NetworkParameter) Reset()

func (*NetworkParameter) String

func (x *NetworkParameter) String() string

type NewAsset

type NewAsset struct {

	// Configuration of the new asset.
	Changes *AssetDetails `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

New asset on Vega

func (*NewAsset) Descriptor deprecated

func (*NewAsset) Descriptor() ([]byte, []int)

Deprecated: Use NewAsset.ProtoReflect.Descriptor instead.

func (*NewAsset) GetChanges

func (x *NewAsset) GetChanges() *AssetDetails

func (NewAsset) IsProposalChange

func (NewAsset) IsProposalChange()

func (*NewAsset) ProtoMessage

func (*NewAsset) ProtoMessage()

func (*NewAsset) ProtoReflect

func (x *NewAsset) ProtoReflect() protoreflect.Message

func (*NewAsset) Reset

func (x *NewAsset) Reset()

func (*NewAsset) String

func (x *NewAsset) String() string

type NewFreeform

type NewFreeform struct {
	// contains filtered or unexported fields
}

Freeform proposal This message is just used as a placeholder to sort out the nature of the proposal once parsed.

func (*NewFreeform) Descriptor deprecated

func (*NewFreeform) Descriptor() ([]byte, []int)

Deprecated: Use NewFreeform.ProtoReflect.Descriptor instead.

func (NewFreeform) IsProposalChange

func (NewFreeform) IsProposalChange()

func (*NewFreeform) ProtoMessage

func (*NewFreeform) ProtoMessage()

func (*NewFreeform) ProtoReflect

func (x *NewFreeform) ProtoReflect() protoreflect.Message

func (*NewFreeform) Reset

func (x *NewFreeform) Reset()

func (*NewFreeform) String

func (x *NewFreeform) String() string

type NewMarket

type NewMarket struct {

	// Configuration of the new market.
	Changes *NewMarketConfiguration `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

New market on Vega

func (*NewMarket) Descriptor deprecated

func (*NewMarket) Descriptor() ([]byte, []int)

Deprecated: Use NewMarket.ProtoReflect.Descriptor instead.

func (*NewMarket) GetChanges

func (x *NewMarket) GetChanges() *NewMarketConfiguration

func (NewMarket) IsProposalChange

func (NewMarket) IsProposalChange()

func (*NewMarket) ProtoMessage

func (*NewMarket) ProtoMessage()

func (*NewMarket) ProtoReflect

func (x *NewMarket) ProtoReflect() protoreflect.Message

func (*NewMarket) Reset

func (x *NewMarket) Reset()

func (*NewMarket) String

func (x *NewMarket) String() string

type NewMarketConfiguration

type NewMarketConfiguration struct {

	// New futures market instrument configuration.
	Instrument *InstrumentConfiguration `protobuf:"bytes,1,opt,name=instrument,proto3" json:"instrument,omitempty"`
	// Decimal places used for the new futures market, sets the smallest price increment on the book.
	DecimalPlaces uint64 `protobuf:"varint,2,opt,name=decimal_places,json=decimalPlaces,proto3" json:"decimal_places,omitempty"`
	// Optional new futures market metadata, tags.
	Metadata []string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// Price monitoring parameters.
	PriceMonitoringParameters *PriceMonitoringParameters `` /* 138-byte string literal not displayed */
	// Liquidity monitoring parameters.
	LiquidityMonitoringParameters *LiquidityMonitoringParameters `` /* 150-byte string literal not displayed */
	// New futures market risk model parameters.
	//
	// Types that are assignable to RiskParameters:
	//
	//	*NewMarketConfiguration_Simple
	//	*NewMarketConfiguration_LogNormal
	RiskParameters isNewMarketConfiguration_RiskParameters `protobuf_oneof:"risk_parameters"`
	// Decimal places for order sizes, sets what size the smallest order / position on the futures market can be.
	PositionDecimalPlaces int64 `` /* 127-byte string literal not displayed */
	// DEPRECATED: Use liquidity SLA parameters instead.
	// Percentage move up and down from the mid price which specifies the range of
	// price levels over which automated liquidity provisions will be deployed.
	LpPriceRange *string `protobuf:"bytes,8,opt,name=lp_price_range,json=lpPriceRange,proto3,oneof" json:"lp_price_range,omitempty"`
	// Linear slippage factor is used to cap the slippage component of maintenance margin - it is applied to the slippage volume.
	LinearSlippageFactor string `protobuf:"bytes,9,opt,name=linear_slippage_factor,json=linearSlippageFactor,proto3" json:"linear_slippage_factor,omitempty"`
	// Quadratic slippage factor is used to cap the slippage component of maintenance margin - it is applied to the square of the slippage volume.
	//
	// Deprecated: Do not use.
	QuadraticSlippageFactor string `` /* 133-byte string literal not displayed */
	// Successor configuration. If this proposal is meant to succeed a given market, then this should be set.
	Successor *SuccessorConfiguration `protobuf:"bytes,11,opt,name=successor,proto3,oneof" json:"successor,omitempty"`
	// Liquidity SLA parameters
	LiquiditySlaParameters *LiquiditySLAParameters `` /* 130-byte string literal not displayed */
	// Specifies how the liquidity fee for the market will be calculated.
	LiquidityFeeSettings *LiquidityFeeSettings `protobuf:"bytes,13,opt,name=liquidity_fee_settings,json=liquidityFeeSettings,proto3" json:"liquidity_fee_settings,omitempty"`
	// Liquidation strategy for this market.
	LiquidationStrategy *LiquidationStrategy `protobuf:"bytes,14,opt,name=liquidation_strategy,json=liquidationStrategy,proto3" json:"liquidation_strategy,omitempty"`
	// Mark price configuration.
	MarkPriceConfiguration *CompositePriceConfiguration `` /* 130-byte string literal not displayed */
	// The market tick size defines the minimum change in quote price for the market
	TickSize string `protobuf:"bytes,16,opt,name=tick_size,json=tickSize,proto3" json:"tick_size,omitempty"`
	// If enabled aggressive orders sent to the market will be delayed by the configured number of blocks
	EnableTransactionReordering bool `` /* 146-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configuration for a new futures market on Vega

func (*NewMarketConfiguration) Descriptor deprecated

func (*NewMarketConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use NewMarketConfiguration.ProtoReflect.Descriptor instead.

func (*NewMarketConfiguration) GetDecimalPlaces

func (x *NewMarketConfiguration) GetDecimalPlaces() uint64

func (*NewMarketConfiguration) GetEnableTransactionReordering added in v0.77.0

func (x *NewMarketConfiguration) GetEnableTransactionReordering() bool

func (*NewMarketConfiguration) GetInstrument

func (x *NewMarketConfiguration) GetInstrument() *InstrumentConfiguration

func (*NewMarketConfiguration) GetLinearSlippageFactor added in v0.68.0

func (x *NewMarketConfiguration) GetLinearSlippageFactor() string

func (*NewMarketConfiguration) GetLiquidationStrategy added in v0.74.0

func (x *NewMarketConfiguration) GetLiquidationStrategy() *LiquidationStrategy

func (*NewMarketConfiguration) GetLiquidityFeeSettings added in v0.74.0

func (x *NewMarketConfiguration) GetLiquidityFeeSettings() *LiquidityFeeSettings

func (*NewMarketConfiguration) GetLiquidityMonitoringParameters

func (x *NewMarketConfiguration) GetLiquidityMonitoringParameters() *LiquidityMonitoringParameters

func (*NewMarketConfiguration) GetLiquiditySlaParameters added in v0.73.0

func (x *NewMarketConfiguration) GetLiquiditySlaParameters() *LiquiditySLAParameters

func (*NewMarketConfiguration) GetLogNormal

func (x *NewMarketConfiguration) GetLogNormal() *LogNormalRiskModel

func (*NewMarketConfiguration) GetLpPriceRange added in v0.65.0

func (x *NewMarketConfiguration) GetLpPriceRange() string

func (*NewMarketConfiguration) GetMarkPriceConfiguration added in v0.74.0

func (x *NewMarketConfiguration) GetMarkPriceConfiguration() *CompositePriceConfiguration

func (*NewMarketConfiguration) GetMetadata

func (x *NewMarketConfiguration) GetMetadata() []string

func (*NewMarketConfiguration) GetPositionDecimalPlaces

func (x *NewMarketConfiguration) GetPositionDecimalPlaces() int64

func (*NewMarketConfiguration) GetPriceMonitoringParameters

func (x *NewMarketConfiguration) GetPriceMonitoringParameters() *PriceMonitoringParameters

func (*NewMarketConfiguration) GetQuadraticSlippageFactor deprecated added in v0.68.0

func (x *NewMarketConfiguration) GetQuadraticSlippageFactor() string

Deprecated: Do not use.

func (*NewMarketConfiguration) GetRiskParameters

func (m *NewMarketConfiguration) GetRiskParameters() isNewMarketConfiguration_RiskParameters

func (*NewMarketConfiguration) GetSimple

func (x *NewMarketConfiguration) GetSimple() *SimpleModelParams

func (*NewMarketConfiguration) GetSuccessor added in v0.72.0

func (*NewMarketConfiguration) GetTickSize added in v0.75.0

func (x *NewMarketConfiguration) GetTickSize() string

func (*NewMarketConfiguration) ProtoMessage

func (*NewMarketConfiguration) ProtoMessage()

func (*NewMarketConfiguration) ProtoReflect

func (x *NewMarketConfiguration) ProtoReflect() protoreflect.Message

func (*NewMarketConfiguration) Reset

func (x *NewMarketConfiguration) Reset()

func (*NewMarketConfiguration) String

func (x *NewMarketConfiguration) String() string

type NewMarketConfiguration_LogNormal

type NewMarketConfiguration_LogNormal struct {
	// Log normal risk model parameters, valid only if MODEL_LOG_NORMAL is selected.
	LogNormal *LogNormalRiskModel `protobuf:"bytes,101,opt,name=log_normal,json=logNormal,proto3,oneof"`
}

type NewMarketConfiguration_Simple

type NewMarketConfiguration_Simple struct {
	// Simple risk model parameters, valid only if MODEL_SIMPLE is selected.
	Simple *SimpleModelParams `protobuf:"bytes,100,opt,name=simple,proto3,oneof"`
}

type NewSpotMarket added in v0.72.0

type NewSpotMarket struct {

	// Configuration of the new spot market.
	Changes *NewSpotMarketConfiguration `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

New spot market on Vega

func (*NewSpotMarket) Descriptor deprecated added in v0.72.0

func (*NewSpotMarket) Descriptor() ([]byte, []int)

Deprecated: Use NewSpotMarket.ProtoReflect.Descriptor instead.

func (*NewSpotMarket) GetChanges added in v0.72.0

func (x *NewSpotMarket) GetChanges() *NewSpotMarketConfiguration

func (NewSpotMarket) IsProposalChange added in v0.72.0

func (NewSpotMarket) IsProposalChange()

func (*NewSpotMarket) ProtoMessage added in v0.72.0

func (*NewSpotMarket) ProtoMessage()

func (*NewSpotMarket) ProtoReflect added in v0.72.0

func (x *NewSpotMarket) ProtoReflect() protoreflect.Message

func (*NewSpotMarket) Reset added in v0.72.0

func (x *NewSpotMarket) Reset()

func (*NewSpotMarket) String added in v0.72.0

func (x *NewSpotMarket) String() string

type NewSpotMarketConfiguration added in v0.72.0

type NewSpotMarketConfiguration struct {

	// New spot market instrument configuration.
	Instrument *InstrumentConfiguration `protobuf:"bytes,1,opt,name=instrument,proto3" json:"instrument,omitempty"`
	// Decimal places used for the new spot market, sets the smallest price increment on the book.
	PriceDecimalPlaces uint64 `protobuf:"varint,2,opt,name=price_decimal_places,json=priceDecimalPlaces,proto3" json:"price_decimal_places,omitempty"`
	// Optional new spot market metadata, tags.
	Metadata []string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// Price monitoring parameters.
	PriceMonitoringParameters *PriceMonitoringParameters `` /* 138-byte string literal not displayed */
	// Specifies parameters related to target stake calculation.
	TargetStakeParameters *TargetStakeParameters `` /* 126-byte string literal not displayed */
	// New spot market risk model parameters.
	//
	// Types that are assignable to RiskParameters:
	//
	//	*NewSpotMarketConfiguration_Simple
	//	*NewSpotMarketConfiguration_LogNormal
	RiskParameters isNewSpotMarketConfiguration_RiskParameters `protobuf_oneof:"risk_parameters"`
	// Decimal places for order sizes, sets what size the smallest order / position on the spot market can be.
	SizeDecimalPlaces int64 `protobuf:"varint,6,opt,name=size_decimal_places,json=sizeDecimalPlaces,proto3" json:"size_decimal_places,omitempty"`
	// Specifies the liquidity provision SLA parameters.
	SlaParams *LiquiditySLAParameters `protobuf:"bytes,7,opt,name=sla_params,json=slaParams,proto3" json:"sla_params,omitempty"`
	// Specifies how the liquidity fee for the market will be calculated.
	LiquidityFeeSettings *LiquidityFeeSettings `protobuf:"bytes,8,opt,name=liquidity_fee_settings,json=liquidityFeeSettings,proto3" json:"liquidity_fee_settings,omitempty"`
	// The market tick size defines the minimum change in quote price for the market
	TickSize string `protobuf:"bytes,9,opt,name=tick_size,json=tickSize,proto3" json:"tick_size,omitempty"`
	// If enabled aggressive orders sent to the market will be delayed by the configured number of blocks
	EnableTransactionReordering bool `` /* 146-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configuration for a new spot market on Vega

func (*NewSpotMarketConfiguration) Descriptor deprecated added in v0.72.0

func (*NewSpotMarketConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use NewSpotMarketConfiguration.ProtoReflect.Descriptor instead.

func (*NewSpotMarketConfiguration) GetEnableTransactionReordering added in v0.77.0

func (x *NewSpotMarketConfiguration) GetEnableTransactionReordering() bool

func (*NewSpotMarketConfiguration) GetInstrument added in v0.72.0

func (*NewSpotMarketConfiguration) GetLiquidityFeeSettings added in v0.74.0

func (x *NewSpotMarketConfiguration) GetLiquidityFeeSettings() *LiquidityFeeSettings

func (*NewSpotMarketConfiguration) GetLogNormal added in v0.72.0

func (*NewSpotMarketConfiguration) GetMetadata added in v0.72.0

func (x *NewSpotMarketConfiguration) GetMetadata() []string

func (*NewSpotMarketConfiguration) GetPriceDecimalPlaces added in v0.76.0

func (x *NewSpotMarketConfiguration) GetPriceDecimalPlaces() uint64

func (*NewSpotMarketConfiguration) GetPriceMonitoringParameters added in v0.72.0

func (x *NewSpotMarketConfiguration) GetPriceMonitoringParameters() *PriceMonitoringParameters

func (*NewSpotMarketConfiguration) GetRiskParameters added in v0.72.0

func (m *NewSpotMarketConfiguration) GetRiskParameters() isNewSpotMarketConfiguration_RiskParameters

func (*NewSpotMarketConfiguration) GetSimple added in v0.72.0

func (*NewSpotMarketConfiguration) GetSizeDecimalPlaces added in v0.76.0

func (x *NewSpotMarketConfiguration) GetSizeDecimalPlaces() int64

func (*NewSpotMarketConfiguration) GetSlaParams added in v0.73.0

func (*NewSpotMarketConfiguration) GetTargetStakeParameters added in v0.72.0

func (x *NewSpotMarketConfiguration) GetTargetStakeParameters() *TargetStakeParameters

func (*NewSpotMarketConfiguration) GetTickSize added in v0.75.0

func (x *NewSpotMarketConfiguration) GetTickSize() string

func (*NewSpotMarketConfiguration) ProtoMessage added in v0.72.0

func (*NewSpotMarketConfiguration) ProtoMessage()

func (*NewSpotMarketConfiguration) ProtoReflect added in v0.72.0

func (*NewSpotMarketConfiguration) Reset added in v0.72.0

func (x *NewSpotMarketConfiguration) Reset()

func (*NewSpotMarketConfiguration) String added in v0.72.0

func (x *NewSpotMarketConfiguration) String() string

type NewSpotMarketConfiguration_LogNormal added in v0.72.0

type NewSpotMarketConfiguration_LogNormal struct {
	// Log normal risk model parameters, valid only if MODEL_LOG_NORMAL is selected.
	LogNormal *LogNormalRiskModel `protobuf:"bytes,101,opt,name=log_normal,json=logNormal,proto3,oneof"`
}

func (NewSpotMarketConfiguration_LogNormal) IsRiskModel added in v0.73.0

type NewSpotMarketConfiguration_Simple added in v0.72.0

type NewSpotMarketConfiguration_Simple struct {
	// Simple risk model parameters, valid only if MODEL_SIMPLE is selected.
	Simple *SimpleModelParams `protobuf:"bytes,100,opt,name=simple,proto3,oneof"`
}

func (NewSpotMarketConfiguration_Simple) IsRiskModel added in v0.73.0

func (NewSpotMarketConfiguration_Simple) IsRiskModel()

type NewTransfer added in v0.72.0

type NewTransfer struct {

	// Configuration for a new transfer.
	Changes *NewTransferConfiguration `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

New governance transfer

func (*NewTransfer) Descriptor deprecated added in v0.72.0

func (*NewTransfer) Descriptor() ([]byte, []int)

Deprecated: Use NewTransfer.ProtoReflect.Descriptor instead.

func (*NewTransfer) GetChanges added in v0.72.0

func (x *NewTransfer) GetChanges() *NewTransferConfiguration

func (NewTransfer) IsProposalChange added in v0.72.0

func (NewTransfer) IsProposalChange()

func (*NewTransfer) ProtoMessage added in v0.72.0

func (*NewTransfer) ProtoMessage()

func (*NewTransfer) ProtoReflect added in v0.72.0

func (x *NewTransfer) ProtoReflect() protoreflect.Message

func (*NewTransfer) Reset added in v0.72.0

func (x *NewTransfer) Reset()

func (*NewTransfer) String added in v0.72.0

func (x *NewTransfer) String() string

type NewTransferConfiguration added in v0.72.0

type NewTransferConfiguration struct {

	// Source account type, such as network treasury, market insurance pool
	SourceType AccountType `protobuf:"varint,1,opt,name=source_type,json=sourceType,proto3,enum=vega.AccountType" json:"source_type,omitempty"`
	// If network treasury, field is empty, otherwise uses the market ID
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// "All or nothing" or "best effort":
	// All or nothing: Transfers the specified amount or does not transfer anything
	// Best effort: Transfers the specified amount or the max allowable amount if this is less than the specified amount
	TransferType GovernanceTransferType `` /* 131-byte string literal not displayed */
	// Maximum amount to transfer
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// ID of asset to transfer
	Asset string `protobuf:"bytes,5,opt,name=asset,proto3" json:"asset,omitempty"`
	// Maximum fraction of the source account's balance to transfer as a decimal - i.e. 0.1 = 10% of the balance
	FractionOfBalance string `protobuf:"bytes,6,opt,name=fraction_of_balance,json=fractionOfBalance,proto3" json:"fraction_of_balance,omitempty"`
	// Specifies the account type to transfer to: reward pool, party, network insurance pool, market insurance pool
	DestinationType AccountType `` /* 129-byte string literal not displayed */
	// Specifies the account to transfer to, depending on the account type:
	// Network treasury: leave empty
	// Party: party's public key
	// Market insurance pool: market ID
	Destination string `protobuf:"bytes,8,opt,name=destination,proto3" json:"destination,omitempty"`
	// Specific details of the transfer.
	//
	// Types that are assignable to Kind:
	//
	//	*NewTransferConfiguration_OneOff
	//	*NewTransferConfiguration_Recurring
	Kind isNewTransferConfiguration_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

func (*NewTransferConfiguration) Descriptor deprecated added in v0.72.0

func (*NewTransferConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use NewTransferConfiguration.ProtoReflect.Descriptor instead.

func (*NewTransferConfiguration) GetAmount added in v0.72.0

func (x *NewTransferConfiguration) GetAmount() string

func (*NewTransferConfiguration) GetAsset added in v0.72.0

func (x *NewTransferConfiguration) GetAsset() string

func (*NewTransferConfiguration) GetDestination added in v0.72.0

func (x *NewTransferConfiguration) GetDestination() string

func (*NewTransferConfiguration) GetDestinationType added in v0.72.0

func (x *NewTransferConfiguration) GetDestinationType() AccountType

func (*NewTransferConfiguration) GetFractionOfBalance added in v0.72.0

func (x *NewTransferConfiguration) GetFractionOfBalance() string

func (*NewTransferConfiguration) GetKind added in v0.72.0

func (m *NewTransferConfiguration) GetKind() isNewTransferConfiguration_Kind

func (*NewTransferConfiguration) GetOneOff added in v0.72.0

func (x *NewTransferConfiguration) GetOneOff() *OneOffTransfer

func (*NewTransferConfiguration) GetRecurring added in v0.72.0

func (x *NewTransferConfiguration) GetRecurring() *RecurringTransfer

func (*NewTransferConfiguration) GetSource added in v0.72.0

func (x *NewTransferConfiguration) GetSource() string

func (*NewTransferConfiguration) GetSourceType added in v0.72.0

func (x *NewTransferConfiguration) GetSourceType() AccountType

func (*NewTransferConfiguration) GetTransferType added in v0.72.0

func (x *NewTransferConfiguration) GetTransferType() GovernanceTransferType

func (*NewTransferConfiguration) ProtoMessage added in v0.72.0

func (*NewTransferConfiguration) ProtoMessage()

func (*NewTransferConfiguration) ProtoReflect added in v0.72.0

func (x *NewTransferConfiguration) ProtoReflect() protoreflect.Message

func (*NewTransferConfiguration) Reset added in v0.72.0

func (x *NewTransferConfiguration) Reset()

func (*NewTransferConfiguration) String added in v0.72.0

func (x *NewTransferConfiguration) String() string

type NewTransferConfiguration_OneOff added in v0.72.0

type NewTransferConfiguration_OneOff struct {
	OneOff *OneOffTransfer `protobuf:"bytes,101,opt,name=one_off,json=oneOff,proto3,oneof"`
}

type NewTransferConfiguration_Recurring added in v0.72.0

type NewTransferConfiguration_Recurring struct {
	Recurring *RecurringTransfer `protobuf:"bytes,102,opt,name=recurring,proto3,oneof"`
}

type Node

type Node struct {

	// Node ID i.e. the node's wallet ID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Public key of the node operator.
	PubKey string `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	// Public key of Tendermint.
	TmPubKey string `protobuf:"bytes,3,opt,name=tm_pub_key,json=tmPubKey,proto3" json:"tm_pub_key,omitempty"`
	// Ethereum public key of the node.
	EthereumAddress string `protobuf:"bytes,4,opt,name=ethereum_address,json=ethereumAddress,proto3" json:"ethereum_address,omitempty"`
	// URL where users can find out more information on the node.
	InfoUrl string `protobuf:"bytes,5,opt,name=info_url,json=infoUrl,proto3" json:"info_url,omitempty"`
	// Country code for the location of the node.
	Location string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"`
	// Amount the node operator has put up themselves. This field is an unsigned integer scaled to the asset's decimal places.
	StakedByOperator string `protobuf:"bytes,7,opt,name=staked_by_operator,json=stakedByOperator,proto3" json:"staked_by_operator,omitempty"`
	// Amount of stake that has been delegated by token holders. This field is an unsigned integer scaled to the asset's decimal places.
	StakedByDelegates string `protobuf:"bytes,8,opt,name=staked_by_delegates,json=stakedByDelegates,proto3" json:"staked_by_delegates,omitempty"`
	// Total amount staked on node. This field is an unsigned integer scaled to the asset's decimal places.
	StakedTotal string `protobuf:"bytes,9,opt,name=staked_total,json=stakedTotal,proto3" json:"staked_total,omitempty"`
	// Max amount of (wanted) stake. This field is an unsigned integer scaled to the asset's decimal places.
	MaxIntendedStake string `protobuf:"bytes,10,opt,name=max_intended_stake,json=maxIntendedStake,proto3" json:"max_intended_stake,omitempty"`
	// Amount of stake on the next epoch. This field is an unsigned integer scaled to the asset's decimal places.
	PendingStake string `protobuf:"bytes,11,opt,name=pending_stake,json=pendingStake,proto3" json:"pending_stake,omitempty"`
	// Information about epoch.
	EpochData *EpochData `protobuf:"bytes,12,opt,name=epoch_data,json=epochData,proto3" json:"epoch_data,omitempty"`
	// Node status.
	Status NodeStatus `protobuf:"varint,13,opt,name=status,proto3,enum=vega.NodeStatus" json:"status,omitempty"`
	// Node's delegations.
	Delegations []*Delegation `protobuf:"bytes,14,rep,name=delegations,proto3" json:"delegations,omitempty"`
	// Node reward score.
	RewardScore *RewardScore `protobuf:"bytes,15,opt,name=reward_score,json=rewardScore,proto3" json:"reward_score,omitempty"`
	// Node ranking information.
	RankingScore *RankingScore `protobuf:"bytes,16,opt,name=ranking_score,json=rankingScore,proto3" json:"ranking_score,omitempty"`
	// Node name.
	Name string `protobuf:"bytes,17,opt,name=name,proto3" json:"name,omitempty"`
	// Avatar url.
	AvatarUrl string `protobuf:"bytes,18,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	// contains filtered or unexported fields
}

func (*Node) Descriptor deprecated

func (*Node) Descriptor() ([]byte, []int)

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetAvatarUrl

func (x *Node) GetAvatarUrl() string

func (*Node) GetDelegations

func (x *Node) GetDelegations() []*Delegation

func (*Node) GetEpochData

func (x *Node) GetEpochData() *EpochData

func (*Node) GetEthereumAddress

func (x *Node) GetEthereumAddress() string

func (*Node) GetId

func (x *Node) GetId() string

func (*Node) GetInfoUrl

func (x *Node) GetInfoUrl() string

func (*Node) GetLocation

func (x *Node) GetLocation() string

func (*Node) GetMaxIntendedStake

func (x *Node) GetMaxIntendedStake() string

func (*Node) GetName

func (x *Node) GetName() string

func (*Node) GetPendingStake

func (x *Node) GetPendingStake() string

func (*Node) GetPubKey

func (x *Node) GetPubKey() string

func (*Node) GetRankingScore

func (x *Node) GetRankingScore() *RankingScore

func (*Node) GetRewardScore

func (x *Node) GetRewardScore() *RewardScore

func (*Node) GetStakedByDelegates

func (x *Node) GetStakedByDelegates() string

func (*Node) GetStakedByOperator

func (x *Node) GetStakedByOperator() string

func (*Node) GetStakedTotal

func (x *Node) GetStakedTotal() string

func (*Node) GetStatus

func (x *Node) GetStatus() NodeStatus

func (*Node) GetTmPubKey

func (x *Node) GetTmPubKey() string

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

func (x *Node) ProtoReflect() protoreflect.Message

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type NodeData

type NodeData struct {

	// Total staked amount across all nodes. This field is an unsigned integer scaled to the asset's decimal places.
	StakedTotal string `protobuf:"bytes,1,opt,name=staked_total,json=stakedTotal,proto3" json:"staked_total,omitempty"`
	// Total number of nodes across all node sets.
	TotalNodes uint32 `protobuf:"varint,2,opt,name=total_nodes,json=totalNodes,proto3" json:"total_nodes,omitempty"`
	// Total number of nodes that had a performance score of 0 at the end of the last epoch.
	InactiveNodes uint32 `protobuf:"varint,3,opt,name=inactive_nodes,json=inactiveNodes,proto3" json:"inactive_nodes,omitempty"`
	// Details on the set of consensus nodes in the network.
	TendermintNodes *NodeSet `protobuf:"bytes,4,opt,name=tendermint_nodes,json=tendermintNodes,proto3" json:"tendermint_nodes,omitempty"`
	// Details on the set of ersatz (standby) nodes in the network.
	ErsatzNodes *NodeSet `protobuf:"bytes,5,opt,name=ersatz_nodes,json=ersatzNodes,proto3" json:"ersatz_nodes,omitempty"`
	// Details on the set of pending nodes in the network.
	PendingNodes *NodeSet `protobuf:"bytes,6,opt,name=pending_nodes,json=pendingNodes,proto3" json:"pending_nodes,omitempty"`
	// Total uptime for all epochs across all nodes.
	Uptime float32 `protobuf:"fixed32,7,opt,name=uptime,proto3" json:"uptime,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeData) Descriptor deprecated

func (*NodeData) Descriptor() ([]byte, []int)

Deprecated: Use NodeData.ProtoReflect.Descriptor instead.

func (*NodeData) GetErsatzNodes added in v0.63.0

func (x *NodeData) GetErsatzNodes() *NodeSet

func (*NodeData) GetInactiveNodes

func (x *NodeData) GetInactiveNodes() uint32

func (*NodeData) GetPendingNodes added in v0.63.0

func (x *NodeData) GetPendingNodes() *NodeSet

func (*NodeData) GetStakedTotal

func (x *NodeData) GetStakedTotal() string

func (*NodeData) GetTendermintNodes added in v0.63.0

func (x *NodeData) GetTendermintNodes() *NodeSet

func (*NodeData) GetTotalNodes

func (x *NodeData) GetTotalNodes() uint32

func (*NodeData) GetUptime

func (x *NodeData) GetUptime() float32

func (*NodeData) ProtoMessage

func (*NodeData) ProtoMessage()

func (*NodeData) ProtoReflect

func (x *NodeData) ProtoReflect() protoreflect.Message

func (*NodeData) Reset

func (x *NodeData) Reset()

func (*NodeData) String

func (x *NodeData) String() string

type NodeSet added in v0.63.0

type NodeSet struct {

	// Total number of nodes in the node set.
	Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	// Number of nodes in the node set that had a performance score of 0 at the end of the last epoch.
	Inactive uint32 `protobuf:"varint,2,opt,name=inactive,proto3" json:"inactive,omitempty"`
	// IDs of nodes that were promoted into this node set at the start of the epoch.
	Promoted []string `protobuf:"bytes,3,rep,name=promoted,proto3" json:"promoted,omitempty"`
	// IDs of nodes that were demoted into this node set at the start of the epoch.
	Demoted []string `protobuf:"bytes,4,rep,name=demoted,proto3" json:"demoted,omitempty"`
	// Total number of nodes allowed in the node set.
	Maximum *uint32 `protobuf:"varint,5,opt,name=maximum,proto3,oneof" json:"maximum,omitempty"`
	// contains filtered or unexported fields
}

Details on the collection of nodes for a particular validator status

func (*NodeSet) Descriptor deprecated added in v0.63.0

func (*NodeSet) Descriptor() ([]byte, []int)

Deprecated: Use NodeSet.ProtoReflect.Descriptor instead.

func (*NodeSet) GetDemoted added in v0.63.0

func (x *NodeSet) GetDemoted() []string

func (*NodeSet) GetInactive added in v0.63.0

func (x *NodeSet) GetInactive() uint32

func (*NodeSet) GetMaximum added in v0.63.0

func (x *NodeSet) GetMaximum() uint32

func (*NodeSet) GetPromoted added in v0.63.0

func (x *NodeSet) GetPromoted() []string

func (*NodeSet) GetTotal added in v0.63.0

func (x *NodeSet) GetTotal() uint32

func (*NodeSet) ProtoMessage added in v0.63.0

func (*NodeSet) ProtoMessage()

func (*NodeSet) ProtoReflect added in v0.63.0

func (x *NodeSet) ProtoReflect() protoreflect.Message

func (*NodeSet) Reset added in v0.63.0

func (x *NodeSet) Reset()

func (*NodeSet) String added in v0.63.0

func (x *NodeSet) String() string

type NodeStatus

type NodeStatus int32

Node status type

const (
	NodeStatus_NODE_STATUS_UNSPECIFIED NodeStatus = 0
	// Node is a validating node
	NodeStatus_NODE_STATUS_VALIDATOR NodeStatus = 1
	// Node is a non-validating node
	NodeStatus_NODE_STATUS_NON_VALIDATOR NodeStatus = 2
)

func (NodeStatus) Descriptor

func (NodeStatus) Descriptor() protoreflect.EnumDescriptor

func (NodeStatus) Enum

func (x NodeStatus) Enum() *NodeStatus

func (NodeStatus) EnumDescriptor deprecated

func (NodeStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use NodeStatus.Descriptor instead.

func (NodeStatus) GetEnums added in v0.76.0

func (NodeStatus) GetEnums() map[int32]string

func (NodeStatus) Number

func (x NodeStatus) Number() protoreflect.EnumNumber

func (NodeStatus) String

func (x NodeStatus) String() string

func (NodeStatus) Type

type Normaliser added in v0.73.0

type Normaliser struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"`
	// contains filtered or unexported fields
}

func (*Normaliser) Descriptor deprecated added in v0.73.0

func (*Normaliser) Descriptor() ([]byte, []int)

Deprecated: Use Normaliser.ProtoReflect.Descriptor instead.

func (*Normaliser) GetExpression added in v0.73.0

func (x *Normaliser) GetExpression() string

func (*Normaliser) GetName added in v0.73.0

func (x *Normaliser) GetName() string

func (*Normaliser) ProtoMessage added in v0.73.0

func (*Normaliser) ProtoMessage()

func (*Normaliser) ProtoReflect added in v0.73.0

func (x *Normaliser) ProtoReflect() protoreflect.Message

func (*Normaliser) Reset added in v0.73.0

func (x *Normaliser) Reset()

func (*Normaliser) String added in v0.73.0

func (x *Normaliser) String() string

type OneOffTransfer added in v0.72.0

type OneOffTransfer struct {

	// Timestamp in Unix nanoseconds for when the transfer should be delivered into the receiver's account.
	DeliverOn int64 `protobuf:"varint,1,opt,name=deliver_on,json=deliverOn,proto3" json:"deliver_on,omitempty"`
	// contains filtered or unexported fields
}

Specific details for a one off transfer

func (*OneOffTransfer) Descriptor deprecated added in v0.72.0

func (*OneOffTransfer) Descriptor() ([]byte, []int)

Deprecated: Use OneOffTransfer.ProtoReflect.Descriptor instead.

func (*OneOffTransfer) GetDeliverOn added in v0.72.0

func (x *OneOffTransfer) GetDeliverOn() int64

func (OneOffTransfer) IsGovernanceTransferKind added in v0.72.0

func (OneOffTransfer) IsGovernanceTransferKind()

func (*OneOffTransfer) ProtoMessage added in v0.72.0

func (*OneOffTransfer) ProtoMessage()

func (*OneOffTransfer) ProtoReflect added in v0.72.0

func (x *OneOffTransfer) ProtoReflect() protoreflect.Message

func (*OneOffTransfer) Reset added in v0.72.0

func (x *OneOffTransfer) Reset()

func (*OneOffTransfer) String added in v0.72.0

func (x *OneOffTransfer) String() string

type OracleData added in v0.62.0

type OracleData struct {
	ExternalData *v1.ExternalData `protobuf:"bytes,1,opt,name=external_data,json=externalData,proto3" json:"external_data,omitempty"`
	// contains filtered or unexported fields
}

func (*OracleData) Descriptor deprecated added in v0.62.0

func (*OracleData) Descriptor() ([]byte, []int)

Deprecated: Use OracleData.ProtoReflect.Descriptor instead.

func (*OracleData) GetExternalData added in v0.62.0

func (x *OracleData) GetExternalData() *v1.ExternalData

func (*OracleData) ProtoMessage added in v0.62.0

func (*OracleData) ProtoMessage()

func (*OracleData) ProtoReflect added in v0.62.0

func (x *OracleData) ProtoReflect() protoreflect.Message

func (*OracleData) Reset added in v0.62.0

func (x *OracleData) Reset()

func (*OracleData) String added in v0.62.0

func (x *OracleData) String() string

type OracleSpec added in v0.62.0

type OracleSpec struct {
	ExternalDataSourceSpec *ExternalDataSourceSpec `` /* 131-byte string literal not displayed */
	// contains filtered or unexported fields
}

Oracle spec contains an embedded external data source spec. It will be generated by the compiler as: OracleSpec_ExternalDataSourceSpec_*

func NewOracleSpec added in v0.62.0

func NewOracleSpec(d *DataSourceSpec) *OracleSpec

func (*OracleSpec) Descriptor deprecated added in v0.62.0

func (*OracleSpec) Descriptor() ([]byte, []int)

Deprecated: Use OracleSpec.ProtoReflect.Descriptor instead.

func (*OracleSpec) GetExternalDataSourceSpec added in v0.62.0

func (x *OracleSpec) GetExternalDataSourceSpec() *ExternalDataSourceSpec

func (*OracleSpec) IsEvent added in v0.62.0

func (*OracleSpec) IsEvent()

func (*OracleSpec) ProtoMessage added in v0.62.0

func (*OracleSpec) ProtoMessage()

func (*OracleSpec) ProtoReflect added in v0.62.0

func (x *OracleSpec) ProtoReflect() protoreflect.Message

func (*OracleSpec) Reset added in v0.62.0

func (x *OracleSpec) Reset()

func (*OracleSpec) String added in v0.62.0

func (x *OracleSpec) String() string

type Order

type Order struct {

	// Unique ID generated for the order.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Market ID for the order.
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Party ID for the order.
	PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Side for the order, e.g. SIDE_BUY or SIDE_SELL.
	Side Side `protobuf:"varint,4,opt,name=side,proto3,enum=vega.Side" json:"side,omitempty"`
	// Price for the order, the price is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places.
	Price string `protobuf:"bytes,5,opt,name=price,proto3" json:"price,omitempty"`
	// Size for the order, for example, in a futures market the size equals the number of contracts.
	Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
	// Size remaining, when this reaches 0 then the order is fully filled and status becomes STATUS_FILLED.
	Remaining uint64 `protobuf:"varint,7,opt,name=remaining,proto3" json:"remaining,omitempty"`
	// Time in force indicates how long an order will remain active before it is executed or expires.
	// - See OrderTimeInForce
	TimeInForce Order_TimeInForce `protobuf:"varint,8,opt,name=time_in_force,json=timeInForce,proto3,enum=vega.Order_TimeInForce" json:"time_in_force,omitempty"`
	// Type for the order.
	Type Order_Type `protobuf:"varint,9,opt,name=type,proto3,enum=vega.Order_Type" json:"type,omitempty"`
	// Timestamp for when the order was created at, in nanoseconds.
	CreatedAt int64 `protobuf:"varint,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Current status of the order.
	Status Order_Status `protobuf:"varint,11,opt,name=status,proto3,enum=vega.Order_Status" json:"status,omitempty"`
	// Timestamp in Unix nanoseconds for when the order will expire.
	ExpiresAt int64 `protobuf:"varint,12,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	// Reference given for the order.
	Reference string `protobuf:"bytes,13,opt,name=reference,proto3" json:"reference,omitempty"`
	// Futher details for why an order with status `STATUS_REJECTED` was rejected.
	Reason *OrderError `protobuf:"varint,14,opt,name=reason,proto3,enum=vega.OrderError,oneof" json:"reason,omitempty"`
	// Timestamp in Unix nanoseconds for when the order was last updated.
	UpdatedAt int64 `protobuf:"varint,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Version for the order, initial value is version 1 and is incremented after each successful amend.
	Version uint64 `protobuf:"varint,16,opt,name=version,proto3" json:"version,omitempty"`
	// Batch ID for the order, used internally for orders submitted during auctions
	// to keep track of the auction batch this order falls under. Required for fees calculation.
	BatchId uint64 `protobuf:"varint,17,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// Pegged order details, used only if the order represents a pegged order.
	PeggedOrder *PeggedOrder `protobuf:"bytes,18,opt,name=pegged_order,json=peggedOrder,proto3" json:"pegged_order,omitempty"`
	// Set if the order was created as part of a liquidity provision, will be empty if not.
	LiquidityProvisionId string `protobuf:"bytes,19,opt,name=liquidity_provision_id,json=liquidityProvisionId,proto3" json:"liquidity_provision_id,omitempty"`
	// Only valid for Limit orders. Cannot be True at the same time as Reduce-Only.
	PostOnly bool `protobuf:"varint,20,opt,name=post_only,json=postOnly,proto3" json:"post_only,omitempty"`
	// Only valid for Non-Persistent orders. Cannot be True at the same time as Post-Only.
	// If set, order will only be executed if the outcome of the trade moves the trader's position closer to 0.
	ReduceOnly bool `protobuf:"varint,21,opt,name=reduce_only,json=reduceOnly,proto3" json:"reduce_only,omitempty"`
	// Details of an iceberg order
	IcebergOrder *IcebergOrder `protobuf:"bytes,22,opt,name=iceberg_order,json=icebergOrder,proto3,oneof" json:"iceberg_order,omitempty"`
	// contains filtered or unexported fields
}

Orders can be submitted, amended and cancelled on Vega in an attempt to make trades with other parties

func (*Order) Create

func (o *Order) Create(t time.Time) *Order

Create sets the creation time (CreatedAt) to t and returns the updated order.

func (*Order) Descriptor deprecated

func (*Order) Descriptor() ([]byte, []int)

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetBatchId

func (x *Order) GetBatchId() uint64

func (*Order) GetCreatedAt

func (x *Order) GetCreatedAt() int64

func (*Order) GetExpiresAt

func (x *Order) GetExpiresAt() int64

func (*Order) GetIcebergOrder added in v0.72.0

func (x *Order) GetIcebergOrder() *IcebergOrder

func (*Order) GetId

func (x *Order) GetId() string

func (*Order) GetLiquidityProvisionId

func (x *Order) GetLiquidityProvisionId() string

func (*Order) GetMarketId

func (x *Order) GetMarketId() string

func (*Order) GetPartyId

func (x *Order) GetPartyId() string

func (*Order) GetPeggedOrder

func (x *Order) GetPeggedOrder() *PeggedOrder

func (*Order) GetPostOnly added in v0.70.0

func (x *Order) GetPostOnly() bool

func (*Order) GetPrice

func (x *Order) GetPrice() string

func (*Order) GetReason

func (x *Order) GetReason() OrderError

func (*Order) GetReduceOnly added in v0.70.0

func (x *Order) GetReduceOnly() bool

func (*Order) GetReference

func (x *Order) GetReference() string

func (*Order) GetRemaining

func (x *Order) GetRemaining() uint64

func (*Order) GetSide

func (x *Order) GetSide() Side

func (*Order) GetSize

func (x *Order) GetSize() uint64

func (*Order) GetStatus

func (x *Order) GetStatus() Order_Status

func (*Order) GetTimeInForce

func (x *Order) GetTimeInForce() Order_TimeInForce

func (*Order) GetType

func (x *Order) GetType() Order_Type

func (*Order) GetUpdatedAt

func (x *Order) GetUpdatedAt() int64

func (*Order) GetVersion

func (x *Order) GetVersion() uint64

func (*Order) HasTraded

func (o *Order) HasTraded() bool

func (Order) IsEvent

func (Order) IsEvent()

func (*Order) IsExpireable

func (o *Order) IsExpireable() bool

func (*Order) IsFinished

func (o *Order) IsFinished() bool

IsFinished returns true if an order is in any state different to ACTIVE and PARKED Basically any order which is never gonna trade anymore.

func (*Order) IsLiquidityOrder

func (o *Order) IsLiquidityOrder() bool

func (*Order) IsPersistent

func (o *Order) IsPersistent() bool

IsPersistent returns true if the order is persistent. A persistent order is a Limit type order that might be matched in the future.

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

func (x *Order) ProtoReflect() protoreflect.Message

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

func (*Order) Update

func (o *Order) Update(t time.Time) *Order

Update sets the modification time (UpdatedAt) to t and returns the updated order.

type OrderCancellationConfirmation

type OrderCancellationConfirmation struct {

	// Order that was cancelled.
	Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

Used when cancelling an order

func (*OrderCancellationConfirmation) Descriptor deprecated

func (*OrderCancellationConfirmation) Descriptor() ([]byte, []int)

Deprecated: Use OrderCancellationConfirmation.ProtoReflect.Descriptor instead.

func (*OrderCancellationConfirmation) GetOrder

func (x *OrderCancellationConfirmation) GetOrder() *Order

func (*OrderCancellationConfirmation) ProtoMessage

func (*OrderCancellationConfirmation) ProtoMessage()

func (*OrderCancellationConfirmation) ProtoReflect

func (*OrderCancellationConfirmation) Reset

func (x *OrderCancellationConfirmation) Reset()

func (*OrderCancellationConfirmation) String

type OrderConfirmation

type OrderConfirmation struct {

	// Order that was confirmed.
	Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	// 0 or more trades that were emitted.
	Trades []*Trade `protobuf:"bytes,2,rep,name=trades,proto3" json:"trades,omitempty"`
	// 0 or more passive orders that were affected.
	PassiveOrdersAffected []*Order `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Used when confirming an order

func (*OrderConfirmation) Descriptor deprecated

func (*OrderConfirmation) Descriptor() ([]byte, []int)

Deprecated: Use OrderConfirmation.ProtoReflect.Descriptor instead.

func (*OrderConfirmation) GetOrder

func (x *OrderConfirmation) GetOrder() *Order

func (*OrderConfirmation) GetPassiveOrdersAffected

func (x *OrderConfirmation) GetPassiveOrdersAffected() []*Order

func (*OrderConfirmation) GetTrades

func (x *OrderConfirmation) GetTrades() []*Trade

func (*OrderConfirmation) ProtoMessage

func (*OrderConfirmation) ProtoMessage()

func (*OrderConfirmation) ProtoReflect

func (x *OrderConfirmation) ProtoReflect() protoreflect.Message

func (*OrderConfirmation) Reset

func (x *OrderConfirmation) Reset()

func (*OrderConfirmation) String

func (x *OrderConfirmation) String() string

type OrderError

type OrderError int32

OrderError codes are returned in the Order.reason field - If there is an issue with an order during its life-cycle, it will be marked with `status.ORDER_STATUS_REJECTED`

const (
	// Default value, no error reported
	OrderError_ORDER_ERROR_UNSPECIFIED OrderError = 0
	// Order was submitted for a market that does not exist
	OrderError_ORDER_ERROR_INVALID_MARKET_ID OrderError = 1
	// Order was submitted with an invalid ID
	OrderError_ORDER_ERROR_INVALID_ORDER_ID OrderError = 2
	// Order was amended with a sequence number that was not previous version + 1
	OrderError_ORDER_ERROR_OUT_OF_SEQUENCE OrderError = 3
	// Order was amended with an invalid remaining size (e.g. remaining greater than total size)
	OrderError_ORDER_ERROR_INVALID_REMAINING_SIZE OrderError = 4
	// Node was unable to get Vega (blockchain) time
	OrderError_ORDER_ERROR_TIME_FAILURE OrderError = 5
	// Failed to remove an order from the book
	OrderError_ORDER_ERROR_REMOVAL_FAILURE OrderError = 6
	// Order with `TimeInForce.TIME_IN_FORCE_GTT` was submitted or amended
	// with an expiration that was badly formatted or otherwise invalid
	OrderError_ORDER_ERROR_INVALID_EXPIRATION_DATETIME OrderError = 7
	// Order was submitted or amended with an invalid reference field
	OrderError_ORDER_ERROR_INVALID_ORDER_REFERENCE OrderError = 8
	// Order amend was submitted for an order field that cannot not be amended (e.g. order ID)
	OrderError_ORDER_ERROR_EDIT_NOT_ALLOWED OrderError = 9
	// Amend failure because amend details do not match original order
	OrderError_ORDER_ERROR_AMEND_FAILURE OrderError = 10
	// Order not found in an order book or store
	OrderError_ORDER_ERROR_NOT_FOUND OrderError = 11
	// Order was submitted with an invalid or missing party ID
	OrderError_ORDER_ERROR_INVALID_PARTY_ID OrderError = 12
	// Order was submitted for a market that has closed
	OrderError_ORDER_ERROR_MARKET_CLOSED OrderError = 13
	// Order was submitted, but the party did not have enough collateral to cover the order
	OrderError_ORDER_ERROR_MARGIN_CHECK_FAILED OrderError = 14
	// Order was submitted, but the party did not have an account for this asset
	OrderError_ORDER_ERROR_MISSING_GENERAL_ACCOUNT OrderError = 15
	// Unspecified internal error
	OrderError_ORDER_ERROR_INTERNAL_ERROR OrderError = 16
	// Order was submitted with an invalid or missing size (e.g. 0)
	OrderError_ORDER_ERROR_INVALID_SIZE OrderError = 17
	// Order was submitted with an invalid persistence for its type
	OrderError_ORDER_ERROR_INVALID_PERSISTENCE OrderError = 18
	// Order was submitted with an invalid type field
	OrderError_ORDER_ERROR_INVALID_TYPE OrderError = 19
	// Order was stopped as it would have traded with another order submitted from the same party
	OrderError_ORDER_ERROR_SELF_TRADING OrderError = 20
	// Order was submitted, but the party did not have enough collateral to cover the fees for the order
	OrderError_ORDER_ERROR_INSUFFICIENT_FUNDS_TO_PAY_FEES OrderError = 21
	// Order was submitted with an incorrect or invalid market type
	OrderError_ORDER_ERROR_INCORRECT_MARKET_TYPE OrderError = 22
	// Order was submitted with invalid time in force
	OrderError_ORDER_ERROR_INVALID_TIME_IN_FORCE OrderError = 23
	// Good For Normal order has reached the market when it is in auction mode
	OrderError_ORDER_ERROR_CANNOT_SEND_GFN_ORDER_DURING_AN_AUCTION OrderError = 24
	// Good For Auction order has reached the market when it is in continuous trading mode
	OrderError_ORDER_ERROR_CANNOT_SEND_GFA_ORDER_DURING_CONTINUOUS_TRADING OrderError = 25
	// Attempt to amend order to GTT without ExpiryAt
	OrderError_ORDER_ERROR_CANNOT_AMEND_TO_GTT_WITHOUT_EXPIRYAT OrderError = 26
	// Attempt to amend ExpiryAt to a value before CreatedAt
	OrderError_ORDER_ERROR_EXPIRYAT_BEFORE_CREATEDAT OrderError = 27
	// Attempt to amend to GTC without an ExpiryAt value
	OrderError_ORDER_ERROR_CANNOT_HAVE_GTC_AND_EXPIRYAT OrderError = 28
	// Amending to FOK or IOC is invalid
	OrderError_ORDER_ERROR_CANNOT_AMEND_TO_FOK_OR_IOC OrderError = 29
	// Amending to GFA or GFN is invalid
	OrderError_ORDER_ERROR_CANNOT_AMEND_TO_GFA_OR_GFN OrderError = 30
	// Amending from GFA or GFN is invalid
	OrderError_ORDER_ERROR_CANNOT_AMEND_FROM_GFA_OR_GFN OrderError = 31
	// IOC orders are not allowed during auction
	OrderError_ORDER_ERROR_CANNOT_SEND_IOC_ORDER_DURING_AUCTION OrderError = 32
	// FOK orders are not allowed during auction
	OrderError_ORDER_ERROR_CANNOT_SEND_FOK_ORDER_DURING_AUCTION OrderError = 33
	// Pegged orders must be LIMIT orders
	OrderError_ORDER_ERROR_MUST_BE_LIMIT_ORDER OrderError = 34
	// Pegged orders can only have TIF GTC or GTT
	OrderError_ORDER_ERROR_MUST_BE_GTT_OR_GTC OrderError = 35
	// Pegged order must have a reference price
	OrderError_ORDER_ERROR_WITHOUT_REFERENCE_PRICE OrderError = 36
	// Buy pegged order cannot reference best ask price
	OrderError_ORDER_ERROR_BUY_CANNOT_REFERENCE_BEST_ASK_PRICE OrderError = 37
	// Pegged order offset must be >= 0
	OrderError_ORDER_ERROR_OFFSET_MUST_BE_GREATER_OR_EQUAL_TO_ZERO OrderError = 40
	// Sell pegged order cannot reference best bid price
	OrderError_ORDER_ERROR_SELL_CANNOT_REFERENCE_BEST_BID_PRICE OrderError = 41
	// Pegged order offset must be > zero
	OrderError_ORDER_ERROR_OFFSET_MUST_BE_GREATER_THAN_ZERO OrderError = 42
	// Party has an insufficient balance, or does not have
	// a general account to submit the order (no deposits made
	// for the required asset)
	OrderError_ORDER_ERROR_INSUFFICIENT_ASSET_BALANCE OrderError = 43
	// Cannot amend details of a non pegged details
	OrderError_ORDER_ERROR_CANNOT_AMEND_PEGGED_ORDER_DETAILS_ON_NON_PEGGED_ORDER OrderError = 44
	// Could not re-price a pegged order because a market price is unavailable
	OrderError_ORDER_ERROR_UNABLE_TO_REPRICE_PEGGED_ORDER OrderError = 45
	// It is not possible to amend the price of an existing pegged order
	OrderError_ORDER_ERROR_UNABLE_TO_AMEND_PRICE_ON_PEGGED_ORDER OrderError = 46
	// FOK, IOC, or GFN order was rejected because it resulted in trades outside the price bounds
	OrderError_ORDER_ERROR_NON_PERSISTENT_ORDER_OUT_OF_PRICE_BOUNDS OrderError = 47
	// Unable to submit pegged order, temporarily too many pegged orders across all markets
	OrderError_ORDER_ERROR_TOO_MANY_PEGGED_ORDERS OrderError = 48
	// Post order would trade
	OrderError_ORDER_ERROR_POST_ONLY_ORDER_WOULD_TRADE OrderError = 49
	// Post order would trade
	OrderError_ORDER_ERROR_REDUCE_ONLY_ORDER_WOULD_NOT_REDUCE_POSITION OrderError = 50
	// Isolated margin check failed
	OrderError_ORDER_ERROR_ISOLATED_MARGIN_CHECK_FAILED OrderError = 51
	// In isolated margin pegged orders are rejected
	OrderError_ORDER_ERROR_PEGGED_ORDERS_NOT_ALLOWED_IN_ISOLATED_MARGIN_MODE OrderError = 52
	// Order price does not respect market's required tick size
	OrderError_ORDER_ERROR_PRICE_NOT_IN_TICK_SIZE OrderError = 53
	// Order price exceeds the max price of the capped future market
	OrderError_ORDER_ERROR_PRICE_MUST_BE_LESS_THAN_OR_EQUAL_TO_MAX_PRICE OrderError = 54
)

func IsOrderError

func IsOrderError(err error) (OrderError, bool)

func (OrderError) Descriptor

func (OrderError) Descriptor() protoreflect.EnumDescriptor

func (OrderError) Enum

func (x OrderError) Enum() *OrderError

func (OrderError) EnumDescriptor deprecated

func (OrderError) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderError.Descriptor instead.

func (OrderError) Error

func (err OrderError) Error() string

func (OrderError) Number

func (x OrderError) Number() protoreflect.EnumNumber

func (OrderError) String

func (x OrderError) String() string

func (OrderError) Type

type Order_Status

type Order_Status int32

Status values for an order

const (
	// Default value, always invalid
	Order_STATUS_UNSPECIFIED Order_Status = 0
	// Used for active unfilled or partially filled orders
	Order_STATUS_ACTIVE Order_Status = 1
	// Used for expired GTT orders
	Order_STATUS_EXPIRED Order_Status = 2
	// Used for orders cancelled by the party that created the order
	Order_STATUS_CANCELLED Order_Status = 3
	// Used for unfilled FOK or IOC orders, and for orders that were stopped by the network
	Order_STATUS_STOPPED Order_Status = 4
	// Used for closed fully filled orders
	Order_STATUS_FILLED Order_Status = 5
	// Used for orders when not enough collateral was available to fill the margin requirements
	Order_STATUS_REJECTED Order_Status = 6
	// Used for closed partially filled IOC orders
	Order_STATUS_PARTIALLY_FILLED Order_Status = 7
	// Order has been removed from the order book and has been parked,
	// this applies to pegged orders and liquidity orders (orders created from a liquidity provision shape)
	Order_STATUS_PARKED Order_Status = 8
)

func (Order_Status) Descriptor

func (Order_Status) Enum

func (x Order_Status) Enum() *Order_Status

func (Order_Status) EnumDescriptor deprecated

func (Order_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Order_Status.Descriptor instead.

func (Order_Status) Number

func (Order_Status) String

func (x Order_Status) String() string

func (Order_Status) Type

type Order_TimeInForce

type Order_TimeInForce int32

Time In Force for an order

const (
	// Default value for TimeInForce, can be valid for an amend
	Order_TIME_IN_FORCE_UNSPECIFIED Order_TimeInForce = 0
	// Good until cancelled, the order trades any amount and as much as possible
	// and remains on the book until it either trades completely or is cancelled
	Order_TIME_IN_FORCE_GTC Order_TimeInForce = 1
	// Good until specified time, this order type trades any amount and as much as possible
	// and remains on the book until it either trades completely, is cancelled, or expires at a set time
	// NOTE: this may in future be multiple types or have sub types for orders that provide different ways of specifying expiry
	Order_TIME_IN_FORCE_GTT Order_TimeInForce = 2
	// Immediate or cancel, the order trades any amount and as much as possible
	// but does not remain on the book (whether it trades or not)
	Order_TIME_IN_FORCE_IOC Order_TimeInForce = 3
	// Fill or kill, the order either trades completely i.e. remainingSize == 0 after adding,
	// or not at all, and does not remain on the book if it doesn't trade
	Order_TIME_IN_FORCE_FOK Order_TimeInForce = 4
	// Good for auction, this order is only accepted during an auction period
	Order_TIME_IN_FORCE_GFA Order_TimeInForce = 5
	// Good for normal, this order is only accepted during normal trading (that can be continuous trading or frequent batched auctions)
	Order_TIME_IN_FORCE_GFN Order_TimeInForce = 6
)

func (Order_TimeInForce) Descriptor

func (Order_TimeInForce) Enum

func (Order_TimeInForce) EnumDescriptor deprecated

func (Order_TimeInForce) EnumDescriptor() ([]byte, []int)

Deprecated: Use Order_TimeInForce.Descriptor instead.

func (Order_TimeInForce) Number

func (Order_TimeInForce) String

func (x Order_TimeInForce) String() string

func (Order_TimeInForce) Type

type Order_Type

type Order_Type int32

Type values for an order

const (
	// Default value, always invalid
	Order_TYPE_UNSPECIFIED Order_Type = 0
	// Used for Limit orders
	Order_TYPE_LIMIT Order_Type = 1
	// Used for Market orders
	Order_TYPE_MARKET Order_Type = 2
	// Used for orders where the initiating party is the network (with distressed parties)
	Order_TYPE_NETWORK Order_Type = 3
)

func (Order_Type) Descriptor

func (Order_Type) Descriptor() protoreflect.EnumDescriptor

func (Order_Type) Enum

func (x Order_Type) Enum() *Order_Type

func (Order_Type) EnumDescriptor deprecated

func (Order_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Order_Type.Descriptor instead.

func (Order_Type) Number

func (x Order_Type) Number() protoreflect.EnumNumber

func (Order_Type) String

func (x Order_Type) String() string

func (Order_Type) Type

type Party

type Party struct {

	// Unique ID for the party, typically represented by a public key.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Alias given to the party.
	Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"`
	// Metadata to associate to a party, in a key/value format where the key
	// describes the type of metadata in the value field.
	Metadata []*Metadata `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Party represents an entity who wishes to trade on or query a Vega network

func (*Party) Descriptor deprecated

func (*Party) Descriptor() ([]byte, []int)

Deprecated: Use Party.ProtoReflect.Descriptor instead.

func (*Party) GetAlias added in v0.74.0

func (x *Party) GetAlias() string

func (*Party) GetId

func (x *Party) GetId() string

func (*Party) GetMetadata added in v0.74.0

func (x *Party) GetMetadata() []*Metadata

func (Party) IsEvent

func (Party) IsEvent()

func (*Party) ProtoMessage

func (*Party) ProtoMessage()

func (*Party) ProtoReflect

func (x *Party) ProtoReflect() protoreflect.Message

func (*Party) Reset

func (x *Party) Reset()

func (*Party) String

func (x *Party) String() string

type PartyProfile added in v0.74.0

type PartyProfile struct {

	// Party ID associated to the profile.
	PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Alias given to the party.
	Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"`
	// Metadata to associate to a party, in a key/value format where the key
	// describes the type of metadata in the value field.
	Metadata []*Metadata `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// Derived keys for the party.
	DerivedKeys []string `protobuf:"bytes,4,rep,name=derived_keys,json=derivedKeys,proto3" json:"derived_keys,omitempty"`
	// contains filtered or unexported fields
}

Holds metadata associated to a party.

func (*PartyProfile) Descriptor deprecated added in v0.74.0

func (*PartyProfile) Descriptor() ([]byte, []int)

Deprecated: Use PartyProfile.ProtoReflect.Descriptor instead.

func (*PartyProfile) GetAlias added in v0.74.0

func (x *PartyProfile) GetAlias() string

func (*PartyProfile) GetDerivedKeys added in v0.77.0

func (x *PartyProfile) GetDerivedKeys() []string

func (*PartyProfile) GetMetadata added in v0.74.0

func (x *PartyProfile) GetMetadata() []*Metadata

func (*PartyProfile) GetPartyId added in v0.74.0

func (x *PartyProfile) GetPartyId() string

func (*PartyProfile) ProtoMessage added in v0.74.0

func (*PartyProfile) ProtoMessage()

func (*PartyProfile) ProtoReflect added in v0.74.0

func (x *PartyProfile) ProtoReflect() protoreflect.Message

func (*PartyProfile) Reset added in v0.74.0

func (x *PartyProfile) Reset()

func (*PartyProfile) String added in v0.74.0

func (x *PartyProfile) String() string

type PeggedOrder

type PeggedOrder struct {

	// Price point the order is linked to.
	Reference PeggedReference `protobuf:"varint,1,opt,name=reference,proto3,enum=vega.PeggedReference" json:"reference,omitempty"`
	// Offset from the price reference.
	Offset string `protobuf:"bytes,2,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

Pegged orders are limit orders where the price is specified in the form REFERENCE +/- OFFSET They can be used for any limit order that is valid during continuous trading

func (*PeggedOrder) Descriptor deprecated

func (*PeggedOrder) Descriptor() ([]byte, []int)

Deprecated: Use PeggedOrder.ProtoReflect.Descriptor instead.

func (*PeggedOrder) GetOffset

func (x *PeggedOrder) GetOffset() string

func (*PeggedOrder) GetReference

func (x *PeggedOrder) GetReference() PeggedReference

func (*PeggedOrder) ProtoMessage

func (*PeggedOrder) ProtoMessage()

func (*PeggedOrder) ProtoReflect

func (x *PeggedOrder) ProtoReflect() protoreflect.Message

func (*PeggedOrder) Reset

func (x *PeggedOrder) Reset()

func (*PeggedOrder) String

func (x *PeggedOrder) String() string

type PeggedReference

type PeggedReference int32

Pegged reference defines which price point a pegged order is linked to - meaning the price for a pegged order is calculated from the value of the reference price point

const (
	// Default value for PeggedReference, no reference given
	PeggedReference_PEGGED_REFERENCE_UNSPECIFIED PeggedReference = 0
	// Mid price reference
	PeggedReference_PEGGED_REFERENCE_MID PeggedReference = 1
	// Best bid price reference
	PeggedReference_PEGGED_REFERENCE_BEST_BID PeggedReference = 2
	// Best ask price reference
	PeggedReference_PEGGED_REFERENCE_BEST_ASK PeggedReference = 3
)

func (PeggedReference) Descriptor

func (PeggedReference) Enum

func (x PeggedReference) Enum() *PeggedReference

func (PeggedReference) EnumDescriptor deprecated

func (PeggedReference) EnumDescriptor() ([]byte, []int)

Deprecated: Use PeggedReference.Descriptor instead.

func (PeggedReference) Number

func (PeggedReference) String

func (x PeggedReference) String() string

func (PeggedReference) Type

type Perpetual added in v0.73.0

type Perpetual struct {

	// Underlying asset for the perpetual.
	SettlementAsset string `protobuf:"bytes,1,opt,name=settlement_asset,json=settlementAsset,proto3" json:"settlement_asset,omitempty"`
	// Quote name of the instrument.
	QuoteName string `protobuf:"bytes,2,opt,name=quote_name,json=quoteName,proto3" json:"quote_name,omitempty"`
	// Controls how much the upcoming funding payment liability contributes to party's margin, in the range [0, 1].
	MarginFundingFactor string `protobuf:"bytes,3,opt,name=margin_funding_factor,json=marginFundingFactor,proto3" json:"margin_funding_factor,omitempty"`
	// Continuously compounded interest rate used in funding rate calculation, in the range [-1, 1].
	InterestRate string `protobuf:"bytes,4,opt,name=interest_rate,json=interestRate,proto3" json:"interest_rate,omitempty"`
	// Lower bound for the clamp function used as part of the funding rate calculation, in the range [-1, 1].
	ClampLowerBound string `protobuf:"bytes,5,opt,name=clamp_lower_bound,json=clampLowerBound,proto3" json:"clamp_lower_bound,omitempty"`
	// Upper bound for the clamp function used as part of the funding rate calculation, in the range [-1, 1].
	ClampUpperBound string `protobuf:"bytes,6,opt,name=clamp_upper_bound,json=clampUpperBound,proto3" json:"clamp_upper_bound,omitempty"`
	// Data source spec describing the data source for settlement schedule.
	DataSourceSpecForSettlementSchedule *DataSourceSpec `` /* 174-byte string literal not displayed */
	// Data source spec describing the data source for settlement.
	DataSourceSpecForSettlementData *DataSourceSpec `` /* 162-byte string literal not displayed */
	// Binding between the data source spec and the settlement data.
	DataSourceSpecBinding *DataSourceSpecToPerpetualBinding `` /* 128-byte string literal not displayed */
	// Factor applied to funding-rates. This scales the impact that spot price deviations have on funding payments.
	FundingRateScalingFactor *string `` /* 144-byte string literal not displayed */
	// Lower bound for the funding-rate such that the funding-rate will never be lower than this value.
	FundingRateLowerBound *string `` /* 135-byte string literal not displayed */
	// Upper bound for the funding-rate such that the funding-rate will never be higher than this value.
	FundingRateUpperBound *string `` /* 135-byte string literal not displayed */
	// Optional configuration for the internal composite price used in funding payment calculation.
	InternalCompositePriceConfig *CompositePriceConfiguration `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

Perpetual product definition

func (*Perpetual) Descriptor deprecated added in v0.73.0

func (*Perpetual) Descriptor() ([]byte, []int)

Deprecated: Use Perpetual.ProtoReflect.Descriptor instead.

func (*Perpetual) GetClampLowerBound added in v0.73.0

func (x *Perpetual) GetClampLowerBound() string

func (*Perpetual) GetClampUpperBound added in v0.73.0

func (x *Perpetual) GetClampUpperBound() string

func (*Perpetual) GetDataSourceSpecBinding added in v0.73.0

func (x *Perpetual) GetDataSourceSpecBinding() *DataSourceSpecToPerpetualBinding

func (*Perpetual) GetDataSourceSpecForSettlementData added in v0.73.0

func (x *Perpetual) GetDataSourceSpecForSettlementData() *DataSourceSpec

func (*Perpetual) GetDataSourceSpecForSettlementSchedule added in v0.73.0

func (x *Perpetual) GetDataSourceSpecForSettlementSchedule() *DataSourceSpec

func (*Perpetual) GetFundingRateLowerBound added in v0.74.0

func (x *Perpetual) GetFundingRateLowerBound() string

func (*Perpetual) GetFundingRateScalingFactor added in v0.74.0

func (x *Perpetual) GetFundingRateScalingFactor() string

func (*Perpetual) GetFundingRateUpperBound added in v0.74.0

func (x *Perpetual) GetFundingRateUpperBound() string

func (*Perpetual) GetInterestRate added in v0.73.0

func (x *Perpetual) GetInterestRate() string

func (*Perpetual) GetInternalCompositePriceConfig added in v0.74.0

func (x *Perpetual) GetInternalCompositePriceConfig() *CompositePriceConfiguration

func (*Perpetual) GetMarginFundingFactor added in v0.73.0

func (x *Perpetual) GetMarginFundingFactor() string

func (*Perpetual) GetQuoteName added in v0.73.0

func (x *Perpetual) GetQuoteName() string

func (*Perpetual) GetSettlementAsset added in v0.73.0

func (x *Perpetual) GetSettlementAsset() string

func (Perpetual) IsProduct added in v0.73.0

func (Perpetual) IsProduct()

func (*Perpetual) ProtoMessage added in v0.73.0

func (*Perpetual) ProtoMessage()

func (*Perpetual) ProtoReflect added in v0.73.0

func (x *Perpetual) ProtoReflect() protoreflect.Message

func (*Perpetual) Reset added in v0.73.0

func (x *Perpetual) Reset()

func (*Perpetual) String added in v0.73.0

func (x *Perpetual) String() string

type PerpetualData added in v0.73.0

type PerpetualData struct {

	// Current funding payment for the in-progress funding period.
	FundingPayment string `protobuf:"bytes,1,opt,name=funding_payment,json=fundingPayment,proto3" json:"funding_payment,omitempty"`
	// Current funding rate for the in-progress funding period.
	FundingRate string `protobuf:"bytes,2,opt,name=funding_rate,json=fundingRate,proto3" json:"funding_rate,omitempty"`
	// Time-weighted-average the internal data-points for the in-progress funding period.
	InternalTwap string `protobuf:"bytes,3,opt,name=internal_twap,json=internalTwap,proto3" json:"internal_twap,omitempty"`
	// Time-weighted-average the external data points for the in-progress funding period.
	ExternalTwap string `protobuf:"bytes,4,opt,name=external_twap,json=externalTwap,proto3" json:"external_twap,omitempty"`
	// Funding period sequence number
	SeqNum uint64 `protobuf:"varint,5,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"`
	// Funding period start time
	StartTime int64 `protobuf:"varint,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The internal composite price used for perpetual markets.
	InternalCompositePrice string `` /* 129-byte string literal not displayed */
	// The next time the internal composite price is calculated for the perpetual market, in Unix nanoseconds.
	NextInternalCompositePriceCalc int64 `` /* 158-byte string literal not displayed */
	// The method used for calculating the internal composite price, for perpetual markets only.
	InternalCompositePriceType CompositePriceType `` /* 173-byte string literal not displayed */
	// Last seen value of the settlement oracle.
	UnderlyingIndexPrice string `protobuf:"bytes,10,opt,name=underlying_index_price,json=underlyingIndexPrice,proto3" json:"underlying_index_price,omitempty"`
	// State of the internal composite price.
	InternalCompositePriceState *CompositePriceState `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents market data specific to a perpetual market.

func (*PerpetualData) Descriptor deprecated added in v0.73.0

func (*PerpetualData) Descriptor() ([]byte, []int)

Deprecated: Use PerpetualData.ProtoReflect.Descriptor instead.

func (*PerpetualData) GetExternalTwap added in v0.73.0

func (x *PerpetualData) GetExternalTwap() string

func (*PerpetualData) GetFundingPayment added in v0.73.0

func (x *PerpetualData) GetFundingPayment() string

func (*PerpetualData) GetFundingRate added in v0.73.0

func (x *PerpetualData) GetFundingRate() string

func (*PerpetualData) GetInternalCompositePrice added in v0.74.0

func (x *PerpetualData) GetInternalCompositePrice() string

func (*PerpetualData) GetInternalCompositePriceState added in v0.74.0

func (x *PerpetualData) GetInternalCompositePriceState() *CompositePriceState

func (*PerpetualData) GetInternalCompositePriceType added in v0.74.0

func (x *PerpetualData) GetInternalCompositePriceType() CompositePriceType

func (*PerpetualData) GetInternalTwap added in v0.73.0

func (x *PerpetualData) GetInternalTwap() string

func (*PerpetualData) GetNextInternalCompositePriceCalc added in v0.74.0

func (x *PerpetualData) GetNextInternalCompositePriceCalc() int64

func (*PerpetualData) GetSeqNum added in v0.74.0

func (x *PerpetualData) GetSeqNum() uint64

func (*PerpetualData) GetStartTime added in v0.74.0

func (x *PerpetualData) GetStartTime() int64

func (*PerpetualData) GetUnderlyingIndexPrice added in v0.74.0

func (x *PerpetualData) GetUnderlyingIndexPrice() string

func (PerpetualData) IsProductData added in v0.73.0

func (PerpetualData) IsProductData()

func (*PerpetualData) ProtoMessage added in v0.73.0

func (*PerpetualData) ProtoMessage()

func (*PerpetualData) ProtoReflect added in v0.73.0

func (x *PerpetualData) ProtoReflect() protoreflect.Message

func (*PerpetualData) Reset added in v0.73.0

func (x *PerpetualData) Reset()

func (*PerpetualData) String added in v0.73.0

func (x *PerpetualData) String() string

type PerpetualProduct added in v0.73.0

type PerpetualProduct struct {

	// Asset ID for the product's settlement asset.
	SettlementAsset string `protobuf:"bytes,1,opt,name=settlement_asset,json=settlementAsset,proto3" json:"settlement_asset,omitempty"`
	// Product quote name.
	QuoteName string `protobuf:"bytes,2,opt,name=quote_name,json=quoteName,proto3" json:"quote_name,omitempty"`
	// Controls how much the upcoming funding payment liability contributes to party's margin, in the range [0, 1].
	MarginFundingFactor string `protobuf:"bytes,3,opt,name=margin_funding_factor,json=marginFundingFactor,proto3" json:"margin_funding_factor,omitempty"`
	// Continuously compounded interest rate used in funding rate calculation, in the range [-1, 1].
	InterestRate string `protobuf:"bytes,4,opt,name=interest_rate,json=interestRate,proto3" json:"interest_rate,omitempty"`
	// Lower bound for the clamp function used as part of the funding rate calculation, in the range [-1, 1].
	ClampLowerBound string `protobuf:"bytes,5,opt,name=clamp_lower_bound,json=clampLowerBound,proto3" json:"clamp_lower_bound,omitempty"`
	// Upper bound for the clamp function used as part of the funding rate calculation, in the range [-1, 1].
	ClampUpperBound string `protobuf:"bytes,6,opt,name=clamp_upper_bound,json=clampUpperBound,proto3" json:"clamp_upper_bound,omitempty"`
	// Data source spec describing the data source for settlement schedule.
	DataSourceSpecForSettlementSchedule *DataSourceDefinition `` /* 174-byte string literal not displayed */
	// Data source spec describing the data source for settlement.
	DataSourceSpecForSettlementData *DataSourceDefinition `` /* 162-byte string literal not displayed */
	// Binding between the data source spec and the settlement data.
	DataSourceSpecBinding *DataSourceSpecToPerpetualBinding `` /* 128-byte string literal not displayed */
	// Factor applied to funding-rates. This scales the impact that spot price deviations have on funding payments.
	FundingRateScalingFactor *string `` /* 144-byte string literal not displayed */
	// Lower bound for the funding-rate such that the funding-rate will never be lower than this value.
	FundingRateLowerBound *string `` /* 135-byte string literal not displayed */
	// Upper bound for the funding-rate such that the funding-rate will never be higher than this value.
	FundingRateUpperBound *string `` /* 135-byte string literal not displayed */
	// Composite price configuration to drive the calculation of the internal composite price used for funding payments. If undefined the default mark price of the market is used.
	InternalCompositePriceConfiguration *CompositePriceConfiguration `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

Perpetual product configuration

func (*PerpetualProduct) Descriptor deprecated added in v0.73.0

func (*PerpetualProduct) Descriptor() ([]byte, []int)

Deprecated: Use PerpetualProduct.ProtoReflect.Descriptor instead.

func (*PerpetualProduct) GetClampLowerBound added in v0.73.0

func (x *PerpetualProduct) GetClampLowerBound() string

func (*PerpetualProduct) GetClampUpperBound added in v0.73.0

func (x *PerpetualProduct) GetClampUpperBound() string

func (*PerpetualProduct) GetDataSourceSpecBinding added in v0.73.0

func (x *PerpetualProduct) GetDataSourceSpecBinding() *DataSourceSpecToPerpetualBinding

func (*PerpetualProduct) GetDataSourceSpecForSettlementData added in v0.73.0

func (x *PerpetualProduct) GetDataSourceSpecForSettlementData() *DataSourceDefinition

func (*PerpetualProduct) GetDataSourceSpecForSettlementSchedule added in v0.73.0

func (x *PerpetualProduct) GetDataSourceSpecForSettlementSchedule() *DataSourceDefinition

func (*PerpetualProduct) GetFundingRateLowerBound added in v0.74.0

func (x *PerpetualProduct) GetFundingRateLowerBound() string

func (*PerpetualProduct) GetFundingRateScalingFactor added in v0.74.0

func (x *PerpetualProduct) GetFundingRateScalingFactor() string

func (*PerpetualProduct) GetFundingRateUpperBound added in v0.74.0

func (x *PerpetualProduct) GetFundingRateUpperBound() string

func (*PerpetualProduct) GetInterestRate added in v0.73.0

func (x *PerpetualProduct) GetInterestRate() string

func (*PerpetualProduct) GetInternalCompositePriceConfiguration added in v0.74.0

func (x *PerpetualProduct) GetInternalCompositePriceConfiguration() *CompositePriceConfiguration

func (*PerpetualProduct) GetMarginFundingFactor added in v0.73.0

func (x *PerpetualProduct) GetMarginFundingFactor() string

func (*PerpetualProduct) GetQuoteName added in v0.73.0

func (x *PerpetualProduct) GetQuoteName() string

func (*PerpetualProduct) GetSettlementAsset added in v0.73.0

func (x *PerpetualProduct) GetSettlementAsset() string

func (PerpetualProduct) IsProductConfiguration added in v0.73.0

func (PerpetualProduct) IsProductConfiguration()

func (*PerpetualProduct) ProtoMessage added in v0.73.0

func (*PerpetualProduct) ProtoMessage()

func (*PerpetualProduct) ProtoReflect added in v0.73.0

func (x *PerpetualProduct) ProtoReflect() protoreflect.Message

func (*PerpetualProduct) Reset added in v0.73.0

func (x *PerpetualProduct) Reset()

func (*PerpetualProduct) String added in v0.73.0

func (x *PerpetualProduct) String() string

type Position

type Position struct {

	// Market ID in which the position is held.
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Party ID holding the position.
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Open volume for the position, value is signed +ve for long and -ve for short.
	OpenVolume int64 `protobuf:"varint,3,opt,name=open_volume,json=openVolume,proto3" json:"open_volume,omitempty"`
	// Realised profit and loss for the position, value is signed +ve for long and -ve for short.
	// This field is a signed integer scaled to the market's decimal places.
	RealisedPnl string `protobuf:"bytes,4,opt,name=realised_pnl,json=realisedPnl,proto3" json:"realised_pnl,omitempty"`
	// Unrealised profit and loss for the position, value is signed +ve for long and -ve for short.
	// This field is a signed integer scaled to the market's decimal places.
	UnrealisedPnl string `protobuf:"bytes,5,opt,name=unrealised_pnl,json=unrealisedPnl,proto3" json:"unrealised_pnl,omitempty"`
	// Average entry price for the position, the price is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places.
	AverageEntryPrice string `protobuf:"bytes,6,opt,name=average_entry_price,json=averageEntryPrice,proto3" json:"average_entry_price,omitempty"`
	// Timestamp for the latest time the position was updated.
	UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// Sum of profit that could not be paid due to loss socialisation.
	LossSocialisationAmount string `` /* 132-byte string literal not displayed */
	// Position status, indicating whether the party was distressed and had orders cancelled or was closed out.
	PositionStatus PositionStatus `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents position data for a party on the specified market on Vega

func (*Position) Descriptor deprecated

func (*Position) Descriptor() ([]byte, []int)

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetAverageEntryPrice

func (x *Position) GetAverageEntryPrice() string

func (*Position) GetLossSocialisationAmount added in v0.68.0

func (x *Position) GetLossSocialisationAmount() string

func (*Position) GetMarketId

func (x *Position) GetMarketId() string

func (*Position) GetOpenVolume

func (x *Position) GetOpenVolume() int64

func (*Position) GetPartyId

func (x *Position) GetPartyId() string

func (*Position) GetPositionStatus added in v0.68.0

func (x *Position) GetPositionStatus() PositionStatus

func (*Position) GetRealisedPnl

func (x *Position) GetRealisedPnl() string

func (*Position) GetUnrealisedPnl

func (x *Position) GetUnrealisedPnl() string

func (*Position) GetUpdatedAt

func (x *Position) GetUpdatedAt() int64

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect

func (x *Position) ProtoReflect() protoreflect.Message

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type PositionStatus added in v0.68.0

type PositionStatus int32

Represents the status of a position

const (
	PositionStatus_POSITION_STATUS_UNSPECIFIED   PositionStatus = 0
	PositionStatus_POSITION_STATUS_ORDERS_CLOSED PositionStatus = 1
	PositionStatus_POSITION_STATUS_CLOSED_OUT    PositionStatus = 2
	PositionStatus_POSITION_STATUS_DISTRESSED    PositionStatus = 4
)

func (PositionStatus) Descriptor added in v0.68.0

func (PositionStatus) Enum added in v0.68.0

func (x PositionStatus) Enum() *PositionStatus

func (PositionStatus) EnumDescriptor deprecated added in v0.68.0

func (PositionStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use PositionStatus.Descriptor instead.

func (PositionStatus) GetEnums added in v0.76.0

func (PositionStatus) GetEnums() map[int32]string

func (PositionStatus) Number added in v0.68.0

func (PositionStatus) String added in v0.68.0

func (x PositionStatus) String() string

func (PositionStatus) Type added in v0.68.0

type PositionTrade

type PositionTrade struct {

	// Volume for the position trade, value is signed +ve for long and -ve for short.
	Volume int64 `protobuf:"varint,1,opt,name=volume,proto3" json:"volume,omitempty"`
	// Price for the position trade, the price is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places.
	Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*PositionTrade) Descriptor deprecated

func (*PositionTrade) Descriptor() ([]byte, []int)

Deprecated: Use PositionTrade.ProtoReflect.Descriptor instead.

func (*PositionTrade) GetPrice

func (x *PositionTrade) GetPrice() string

func (*PositionTrade) GetVolume

func (x *PositionTrade) GetVolume() int64

func (*PositionTrade) ProtoMessage

func (*PositionTrade) ProtoMessage()

func (*PositionTrade) ProtoReflect

func (x *PositionTrade) ProtoReflect() protoreflect.Message

func (*PositionTrade) Reset

func (x *PositionTrade) Reset()

func (*PositionTrade) String

func (x *PositionTrade) String() string

type PostTransferBalance added in v0.56.0

type PostTransferBalance struct {

	// Account relating to the transfer.
	Account *AccountDetails `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// Balance relating to the transfer. This field is an unsigned integer scaled to the asset's decimal places.
	Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

Represents the balance for an account during a transfer

func (*PostTransferBalance) Descriptor deprecated added in v0.56.0

func (*PostTransferBalance) Descriptor() ([]byte, []int)

Deprecated: Use PostTransferBalance.ProtoReflect.Descriptor instead.

func (*PostTransferBalance) GetAccount added in v0.56.0

func (x *PostTransferBalance) GetAccount() *AccountDetails

func (*PostTransferBalance) GetBalance added in v0.56.0

func (x *PostTransferBalance) GetBalance() string

func (*PostTransferBalance) ProtoMessage added in v0.56.0

func (*PostTransferBalance) ProtoMessage()

func (*PostTransferBalance) ProtoReflect added in v0.56.0

func (x *PostTransferBalance) ProtoReflect() protoreflect.Message

func (*PostTransferBalance) Reset added in v0.56.0

func (x *PostTransferBalance) Reset()

func (*PostTransferBalance) String added in v0.56.0

func (x *PostTransferBalance) String() string

type PriceLevel

type PriceLevel struct {

	// Price for the price level, the price is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places. This field
	// is an unsigned integer passed as a string and needs to be scaled using the market's decimal places.
	Price string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	// Number of orders at the price level.
	NumberOfOrders uint64 `protobuf:"varint,2,opt,name=number_of_orders,json=numberOfOrders,proto3" json:"number_of_orders,omitempty"`
	// Volume at the price level.
	Volume uint64 `protobuf:"varint,3,opt,name=volume,proto3" json:"volume,omitempty"`
	// Volume of AMM's at the price level.
	AmmVolume uint64 `protobuf:"varint,4,opt,name=amm_volume,json=ammVolume,proto3" json:"amm_volume,omitempty"`
	// Estimated AMM volume at the price level.
	AmmVolumeEstimated uint64 `protobuf:"varint,5,opt,name=amm_volume_estimated,json=ammVolumeEstimated,proto3" json:"amm_volume_estimated,omitempty"`
	// contains filtered or unexported fields
}

Represents a price level from market depth or order book data

func (*PriceLevel) Descriptor deprecated

func (*PriceLevel) Descriptor() ([]byte, []int)

Deprecated: Use PriceLevel.ProtoReflect.Descriptor instead.

func (*PriceLevel) GetAmmVolume added in v0.77.0

func (x *PriceLevel) GetAmmVolume() uint64

func (*PriceLevel) GetAmmVolumeEstimated added in v0.77.0

func (x *PriceLevel) GetAmmVolumeEstimated() uint64

func (*PriceLevel) GetNumberOfOrders

func (x *PriceLevel) GetNumberOfOrders() uint64

func (*PriceLevel) GetPrice

func (x *PriceLevel) GetPrice() string

func (*PriceLevel) GetVolume

func (x *PriceLevel) GetVolume() uint64

func (*PriceLevel) ProtoMessage

func (*PriceLevel) ProtoMessage()

func (*PriceLevel) ProtoReflect

func (x *PriceLevel) ProtoReflect() protoreflect.Message

func (*PriceLevel) Reset

func (x *PriceLevel) Reset()

func (*PriceLevel) String

func (x *PriceLevel) String() string

type PriceMonitoringBounds

type PriceMonitoringBounds struct {

	// Minimum price that isn't currently breaching the specified price monitoring trigger.
	// This field is an unsigned integer scaled to the market's decimal places.
	MinValidPrice string `protobuf:"bytes,1,opt,name=min_valid_price,json=minValidPrice,proto3" json:"min_valid_price,omitempty"`
	// Maximum price that isn't currently breaching the specified price monitoring trigger.
	// This field is an unsigned integer scaled to the market's decimal places.
	MaxValidPrice string `protobuf:"bytes,2,opt,name=max_valid_price,json=maxValidPrice,proto3" json:"max_valid_price,omitempty"`
	// Price monitoring trigger associated with the bounds.
	Trigger *PriceMonitoringTrigger `protobuf:"bytes,3,opt,name=trigger,proto3" json:"trigger,omitempty"`
	// Reference price used to calculate the valid price range. This field is an unsigned integer scaled to the market's decimal places.
	ReferencePrice string `protobuf:"bytes,4,opt,name=reference_price,json=referencePrice,proto3" json:"reference_price,omitempty"`
	// Has this bound been triggered yet or is it still active.
	Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"`
	// contains filtered or unexported fields
}

Represents a list of valid (at the current timestamp) price ranges per associated trigger

func (*PriceMonitoringBounds) Descriptor deprecated

func (*PriceMonitoringBounds) Descriptor() ([]byte, []int)

Deprecated: Use PriceMonitoringBounds.ProtoReflect.Descriptor instead.

func (*PriceMonitoringBounds) GetActive added in v0.77.0

func (x *PriceMonitoringBounds) GetActive() bool

func (*PriceMonitoringBounds) GetMaxValidPrice

func (x *PriceMonitoringBounds) GetMaxValidPrice() string

func (*PriceMonitoringBounds) GetMinValidPrice

func (x *PriceMonitoringBounds) GetMinValidPrice() string

func (*PriceMonitoringBounds) GetReferencePrice

func (x *PriceMonitoringBounds) GetReferencePrice() string

func (*PriceMonitoringBounds) GetTrigger

func (*PriceMonitoringBounds) ProtoMessage

func (*PriceMonitoringBounds) ProtoMessage()

func (*PriceMonitoringBounds) ProtoReflect

func (x *PriceMonitoringBounds) ProtoReflect() protoreflect.Message

func (*PriceMonitoringBounds) Reset

func (x *PriceMonitoringBounds) Reset()

func (*PriceMonitoringBounds) String

func (x *PriceMonitoringBounds) String() string

type PriceMonitoringParameters

type PriceMonitoringParameters struct {
	Triggers []*PriceMonitoringTrigger `protobuf:"bytes,1,rep,name=triggers,proto3" json:"triggers,omitempty"`
	// contains filtered or unexported fields
}

PriceMonitoringParameters contains a collection of triggers to be used for a given market

func (*PriceMonitoringParameters) Descriptor deprecated

func (*PriceMonitoringParameters) Descriptor() ([]byte, []int)

Deprecated: Use PriceMonitoringParameters.ProtoReflect.Descriptor instead.

func (*PriceMonitoringParameters) GetTriggers

func (*PriceMonitoringParameters) ProtoMessage

func (*PriceMonitoringParameters) ProtoMessage()

func (*PriceMonitoringParameters) ProtoReflect

func (*PriceMonitoringParameters) Reset

func (x *PriceMonitoringParameters) Reset()

func (*PriceMonitoringParameters) String

func (x *PriceMonitoringParameters) String() string

func (*PriceMonitoringParameters) Validate

func (p *PriceMonitoringParameters) Validate() error

type PriceMonitoringSettings

type PriceMonitoringSettings struct {

	// Specifies price monitoring parameters to be used for price monitoring purposes.
	Parameters *PriceMonitoringParameters `protobuf:"bytes,1,opt,name=parameters,proto3" json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

PriceMonitoringSettings contains the settings for price monitoring

func (*PriceMonitoringSettings) Descriptor deprecated

func (*PriceMonitoringSettings) Descriptor() ([]byte, []int)

Deprecated: Use PriceMonitoringSettings.ProtoReflect.Descriptor instead.

func (*PriceMonitoringSettings) GetParameters

func (*PriceMonitoringSettings) ProtoMessage

func (*PriceMonitoringSettings) ProtoMessage()

func (*PriceMonitoringSettings) ProtoReflect

func (x *PriceMonitoringSettings) ProtoReflect() protoreflect.Message

func (*PriceMonitoringSettings) Reset

func (x *PriceMonitoringSettings) Reset()

func (*PriceMonitoringSettings) String

func (x *PriceMonitoringSettings) String() string

type PriceMonitoringTrigger

type PriceMonitoringTrigger struct {

	// Price monitoring projection horizon τ in seconds.
	Horizon int64 `protobuf:"varint,1,opt,name=horizon,proto3" json:"horizon,omitempty"`
	// Price monitoring probability level p.
	Probability string `protobuf:"bytes,2,opt,name=probability,proto3" json:"probability,omitempty"`
	// Price monitoring auction extension duration in seconds should the price
	// breach its theoretical level over the specified horizon at the specified
	// probability level.
	AuctionExtension int64 `protobuf:"varint,3,opt,name=auction_extension,json=auctionExtension,proto3" json:"auction_extension,omitempty"`
	// contains filtered or unexported fields
}

PriceMonitoringTrigger holds together price projection horizon τ, probability level p, and auction extension duration

func (*PriceMonitoringTrigger) Descriptor deprecated

func (*PriceMonitoringTrigger) Descriptor() ([]byte, []int)

Deprecated: Use PriceMonitoringTrigger.ProtoReflect.Descriptor instead.

func (*PriceMonitoringTrigger) GetAuctionExtension

func (x *PriceMonitoringTrigger) GetAuctionExtension() int64

func (*PriceMonitoringTrigger) GetHorizon

func (x *PriceMonitoringTrigger) GetHorizon() int64

func (*PriceMonitoringTrigger) GetProbability

func (x *PriceMonitoringTrigger) GetProbability() string

func (*PriceMonitoringTrigger) ProtoMessage

func (*PriceMonitoringTrigger) ProtoMessage()

func (*PriceMonitoringTrigger) ProtoReflect

func (x *PriceMonitoringTrigger) ProtoReflect() protoreflect.Message

func (*PriceMonitoringTrigger) Reset

func (x *PriceMonitoringTrigger) Reset()

func (*PriceMonitoringTrigger) String

func (x *PriceMonitoringTrigger) String() string

func (*PriceMonitoringTrigger) Validate

func (p *PriceMonitoringTrigger) Validate() error

type ProductData added in v0.73.0

type ProductData struct {

	// Types that are assignable to Data:
	//
	//	*ProductData_PerpetualData
	Data isProductData_Data `protobuf_oneof:"data"`
	// contains filtered or unexported fields
}

Represents market data specific to a particular product type.

func (*ProductData) Descriptor deprecated added in v0.73.0

func (*ProductData) Descriptor() ([]byte, []int)

Deprecated: Use ProductData.ProtoReflect.Descriptor instead.

func (*ProductData) GetData added in v0.73.0

func (m *ProductData) GetData() isProductData_Data

func (*ProductData) GetPerpetualData added in v0.73.0

func (x *ProductData) GetPerpetualData() *PerpetualData

func (*ProductData) ProtoMessage added in v0.73.0

func (*ProductData) ProtoMessage()

func (*ProductData) ProtoReflect added in v0.73.0

func (x *ProductData) ProtoReflect() protoreflect.Message

func (*ProductData) Reset added in v0.73.0

func (x *ProductData) Reset()

func (*ProductData) String added in v0.73.0

func (x *ProductData) String() string

type ProductData_PerpetualData added in v0.73.0

type ProductData_PerpetualData struct {
	PerpetualData *PerpetualData `protobuf:"bytes,31,opt,name=perpetual_data,json=perpetualData,proto3,oneof"`
}

type Proposal

type Proposal struct {

	// Unique proposal ID.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Proposal reference.
	Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"`
	// Party ID i.e. public key of the party submitting the proposal.
	PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Current state of the proposal, i.e. open, passed, failed etc.
	State Proposal_State `protobuf:"varint,4,opt,name=state,proto3,enum=vega.Proposal_State" json:"state,omitempty"`
	// Proposal timestamp for date and time as Unix time in nanoseconds when proposal was submitted to the network.
	Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Proposal configuration and the actual change that is meant to be executed when proposal is enacted.
	// Single proposal term.
	Terms *ProposalTerms `protobuf:"bytes,6,opt,name=terms,proto3,oneof" json:"terms,omitempty"`
	// Reason for the current state of the proposal, this may be set in case of REJECTED and FAILED statuses.
	Reason *ProposalError `protobuf:"varint,7,opt,name=reason,proto3,enum=vega.ProposalError,oneof" json:"reason,omitempty"`
	// Detailed error associated to the reason.
	ErrorDetails *string `protobuf:"bytes,8,opt,name=error_details,json=errorDetails,proto3,oneof" json:"error_details,omitempty"`
	// Rationale behind a proposal.
	Rationale *ProposalRationale `protobuf:"bytes,9,opt,name=rationale,proto3" json:"rationale,omitempty"`
	// Required vote participation for this proposal.
	RequiredParticipation string `protobuf:"bytes,10,opt,name=required_participation,json=requiredParticipation,proto3" json:"required_participation,omitempty"`
	// Required majority for this proposal.
	RequiredMajority string `protobuf:"bytes,11,opt,name=required_majority,json=requiredMajority,proto3" json:"required_majority,omitempty"`
	// Required participation from liquidity providers, optional but is required for market update proposal.
	RequiredLiquidityProviderParticipation *string `` /* 186-byte string literal not displayed */
	// Required majority from liquidity providers, optional but is required for market update proposal.
	RequiredLiquidityProviderMajority *string `` /* 171-byte string literal not displayed */
	// Batch proposal terms.
	BatchTerms *BatchProposalTerms `protobuf:"bytes,14,opt,name=batch_terms,json=batchTerms,proto3,oneof" json:"batch_terms,omitempty"`
	// ID of a batch proposal that this proposal is part of.
	BatchId *string `protobuf:"bytes,15,opt,name=batch_id,json=batchId,proto3,oneof" json:"batch_id,omitempty"`
	// contains filtered or unexported fields
}

Governance proposal

func (*Proposal) Descriptor deprecated

func (*Proposal) Descriptor() ([]byte, []int)

Deprecated: Use Proposal.ProtoReflect.Descriptor instead.

func (*Proposal) GetBatchId added in v0.74.0

func (x *Proposal) GetBatchId() string

func (*Proposal) GetBatchTerms added in v0.74.0

func (x *Proposal) GetBatchTerms() *BatchProposalTerms

func (*Proposal) GetErrorDetails

func (x *Proposal) GetErrorDetails() string

func (*Proposal) GetId

func (x *Proposal) GetId() string

func (*Proposal) GetPartyId

func (x *Proposal) GetPartyId() string

func (*Proposal) GetRationale

func (x *Proposal) GetRationale() *ProposalRationale

func (*Proposal) GetReason

func (x *Proposal) GetReason() ProposalError

func (*Proposal) GetReference

func (x *Proposal) GetReference() string

func (*Proposal) GetRequiredLiquidityProviderMajority added in v0.55.0

func (x *Proposal) GetRequiredLiquidityProviderMajority() string

func (*Proposal) GetRequiredLiquidityProviderParticipation added in v0.55.0

func (x *Proposal) GetRequiredLiquidityProviderParticipation() string

func (*Proposal) GetRequiredMajority added in v0.55.0

func (x *Proposal) GetRequiredMajority() string

func (*Proposal) GetRequiredParticipation added in v0.55.0

func (x *Proposal) GetRequiredParticipation() string

func (*Proposal) GetState

func (x *Proposal) GetState() Proposal_State

func (*Proposal) GetTerms

func (x *Proposal) GetTerms() *ProposalTerms

func (*Proposal) GetTimestamp

func (x *Proposal) GetTimestamp() int64

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) ProtoReflect

func (x *Proposal) ProtoReflect() protoreflect.Message

func (*Proposal) Reset

func (x *Proposal) Reset()

func (*Proposal) String

func (x *Proposal) String() string

type ProposalError

type ProposalError int32

List of possible errors that can cause a proposal to be in state rejected or failed

const (
	// Default value
	ProposalError_PROPOSAL_ERROR_UNSPECIFIED ProposalError = 0
	// Specified close time is too early based on network parameters
	ProposalError_PROPOSAL_ERROR_CLOSE_TIME_TOO_SOON ProposalError = 1
	// Specified close time is too late based on network parameters
	ProposalError_PROPOSAL_ERROR_CLOSE_TIME_TOO_LATE ProposalError = 2
	// Specified enactment time is too early based on network parameters
	ProposalError_PROPOSAL_ERROR_ENACT_TIME_TOO_SOON ProposalError = 3
	// Specified enactment time is too late based on network parameters
	ProposalError_PROPOSAL_ERROR_ENACT_TIME_TOO_LATE ProposalError = 4
	// Proposer for this proposal has insufficient tokens
	ProposalError_PROPOSAL_ERROR_INSUFFICIENT_TOKENS ProposalError = 5
	// Instrument quote name and base name were the same
	ProposalError_PROPOSAL_ERROR_INVALID_INSTRUMENT_SECURITY ProposalError = 6
	// Proposal has no product
	ProposalError_PROPOSAL_ERROR_NO_PRODUCT ProposalError = 7
	// Specified product is not supported
	ProposalError_PROPOSAL_ERROR_UNSUPPORTED_PRODUCT ProposalError = 8
	// Proposal has no trading mode
	ProposalError_PROPOSAL_ERROR_NO_TRADING_MODE ProposalError = 11
	// Proposal has an unsupported trading mode
	ProposalError_PROPOSAL_ERROR_UNSUPPORTED_TRADING_MODE ProposalError = 12
	// Proposal failed node validation
	ProposalError_PROPOSAL_ERROR_NODE_VALIDATION_FAILED ProposalError = 13
	// Field is missing in a builtin asset source
	ProposalError_PROPOSAL_ERROR_MISSING_BUILTIN_ASSET_FIELD ProposalError = 14
	// Contract address is missing in the ERC20 asset source
	ProposalError_PROPOSAL_ERROR_MISSING_ERC20_CONTRACT_ADDRESS ProposalError = 15
	// Asset ID is invalid or does not exist on the Vega network
	ProposalError_PROPOSAL_ERROR_INVALID_ASSET ProposalError = 16
	// Proposal terms timestamps are not compatible (Validation < Closing < Enactment)
	ProposalError_PROPOSAL_ERROR_INCOMPATIBLE_TIMESTAMPS ProposalError = 17
	// No risk parameters were specified
	ProposalError_PROPOSAL_ERROR_NO_RISK_PARAMETERS ProposalError = 18
	// Invalid key in update network parameter proposal
	ProposalError_PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_KEY ProposalError = 19
	// Invalid value in update network parameter proposal
	ProposalError_PROPOSAL_ERROR_NETWORK_PARAMETER_INVALID_VALUE ProposalError = 20
	// Validation failed for network parameter proposal
	ProposalError_PROPOSAL_ERROR_NETWORK_PARAMETER_VALIDATION_FAILED ProposalError = 21
	// Opening auction duration is less than the network minimum opening auction time
	ProposalError_PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_SMALL ProposalError = 22
	// Opening auction duration is more than the network minimum opening auction time
	ProposalError_PROPOSAL_ERROR_OPENING_AUCTION_DURATION_TOO_LARGE ProposalError = 23
	// Market proposal market could not be instantiated in execution
	ProposalError_PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET ProposalError = 25
	// Market proposal market contained invalid product definition
	ProposalError_PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT ProposalError = 26
	// Market proposal has invalid risk parameter
	ProposalError_PROPOSAL_ERROR_INVALID_RISK_PARAMETER ProposalError = 30
	// Proposal was declined because vote didn't reach the majority threshold required
	ProposalError_PROPOSAL_ERROR_MAJORITY_THRESHOLD_NOT_REACHED ProposalError = 31
	// Proposal declined because the participation threshold was not reached
	ProposalError_PROPOSAL_ERROR_PARTICIPATION_THRESHOLD_NOT_REACHED ProposalError = 32
	// Asset proposal has invalid asset details
	ProposalError_PROPOSAL_ERROR_INVALID_ASSET_DETAILS ProposalError = 33
	// Proposal is an unknown type
	ProposalError_PROPOSAL_ERROR_UNKNOWN_TYPE ProposalError = 34
	// Proposal has an unknown risk parameter type
	ProposalError_PROPOSAL_ERROR_UNKNOWN_RISK_PARAMETER_TYPE ProposalError = 35
	// Validation failed for freeform proposal
	ProposalError_PROPOSAL_ERROR_INVALID_FREEFORM ProposalError = 36
	// Party doesn't have enough equity-like share to propose an update on the market
	// targeted by the proposal
	ProposalError_PROPOSAL_ERROR_INSUFFICIENT_EQUITY_LIKE_SHARE ProposalError = 37
	// Market targeted by the proposal does not exist or is not eligible for modification
	ProposalError_PROPOSAL_ERROR_INVALID_MARKET ProposalError = 38
	// Market proposal decimal place is higher than the market settlement asset decimal places
	ProposalError_PROPOSAL_ERROR_TOO_MANY_MARKET_DECIMAL_PLACES ProposalError = 39
	// Market proposal contains too many price monitoring triggers
	ProposalError_PROPOSAL_ERROR_TOO_MANY_PRICE_MONITORING_TRIGGERS ProposalError = 40
	// Market proposal contains too many price monitoring triggers
	ProposalError_PROPOSAL_ERROR_ERC20_ADDRESS_ALREADY_IN_USE ProposalError = 41
	// LP price range must be larger than 0
	ProposalError_PROPOSAL_ERROR_LP_PRICE_RANGE_NONPOSITIVE ProposalError = 42
	// LP price range must not be larger than 100
	ProposalError_PROPOSAL_ERROR_LP_PRICE_RANGE_TOO_LARGE ProposalError = 43
	// Linear slippage factor is out of range, either negative or too large
	ProposalError_PROPOSAL_ERROR_LINEAR_SLIPPAGE_FACTOR_OUT_OF_RANGE ProposalError = 44
	// Quadratic slippage factor is out of range, either negative or too large
	ProposalError_PROPOSAL_ERROR_QUADRATIC_SLIPPAGE_FACTOR_OUT_OF_RANGE ProposalError = 45
	// Validation failed for spot proposal
	ProposalError_PROPOSAL_ERROR_INVALID_SPOT ProposalError = 46
	// Spot trading not enabled
	ProposalError_PROPOSAL_ERROR_SPOT_PRODUCT_DISABLED ProposalError = 47
	// Market proposal is invalid, either invalid insurance pool fraction, or it specifies a parent market that it can't succeed.
	ProposalError_PROPOSAL_ERROR_INVALID_SUCCESSOR_MARKET ProposalError = 48
	// Governance transfer proposal is invalid
	ProposalError_PROPOSAL_ERROR_GOVERNANCE_TRANSFER_PROPOSAL_FAILED ProposalError = 49
	// Governance transfer proposal failed
	ProposalError_PROPOSAL_ERROR_GOVERNANCE_TRANSFER_PROPOSAL_INVALID ProposalError = 50
	// Proposal for cancelling transfer is invalid, check proposal ID
	ProposalError_PROPOSAL_ERROR_GOVERNANCE_CANCEL_TRANSFER_PROPOSAL_INVALID ProposalError = 51
	// Proposal for updating market state is invalid
	ProposalError_PROPOSAL_ERROR_INVALID_MARKET_STATE_UPDATE ProposalError = 52
	// Liquidity provision SLA parameters are invalid
	ProposalError_PROPOSAL_ERROR_INVALID_SLA_PARAMS ProposalError = 53
	// Mandatory liquidity provision SLA parameters are missing
	ProposalError_PROPOSAL_ERROR_MISSING_SLA_PARAMS ProposalError = 54
	// Perpetual market proposal contained invalid product definition
	ProposalError_PROPOSAL_ERROR_INVALID_PERPETUAL_PRODUCT ProposalError = 55
	// Referral program proposal is invalid
	ProposalError_PROPOSAL_ERROR_INVALID_REFERRAL_PROGRAM ProposalError = 56
	// Volume discount program proposal is invalid
	ProposalError_PROPOSAL_ERROR_INVALID_VOLUME_DISCOUNT_PROGRAM ProposalError = 57
	// One or more proposals in a batch has been rejected
	ProposalError_PROPOSAL_ERROR_PROPOSAL_IN_BATCH_REJECTED ProposalError = 58
	// One or more proposals in a batch has been declined
	ProposalError_PROPOSAL_ERROR_PROPOSAL_IN_BATCH_DECLINED ProposalError = 59
	// Spot market decimal places cannot be greater than the base asset’s decimal places
	ProposalError_PROPOSAL_ERROR_INVALID_SIZE_DECIMAL_PLACES ProposalError = 60
	// Volume rebate program proposal is invalid
	ProposalError_PROPOSAL_ERROR_INVALID_VOLUME_REBATE_PROGRAM ProposalError = 61
)

func (ProposalError) Descriptor

func (ProposalError) Enum

func (x ProposalError) Enum() *ProposalError

func (ProposalError) EnumDescriptor deprecated

func (ProposalError) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProposalError.Descriptor instead.

func (ProposalError) GetEnums added in v0.76.0

func (ProposalError) GetEnums() map[int32]string

func (ProposalError) Number

func (ProposalError) String

func (x ProposalError) String() string

func (ProposalError) Type

type ProposalOneOffTermBatchChangeType added in v0.74.0

type ProposalOneOffTermBatchChangeType = isBatchProposalTermsChange_Change

type ProposalOneOffTermChangeType added in v0.74.0

type ProposalOneOffTermChangeType = isProposalTerms_Change

type ProposalParameters added in v0.74.0

type ProposalParameters struct {

	// Represents the minimum time before a proposal can be closed for voting.
	MinClose int64 `protobuf:"varint,1,opt,name=min_close,json=minClose,proto3" json:"min_close,omitempty"`
	// Represents the maximum time that a proposal can be open for voting.
	MaxClose int64 `protobuf:"varint,2,opt,name=max_close,json=maxClose,proto3" json:"max_close,omitempty"`
	// Represents the minimum time before an enacted proposal takes effect.
	MinEnact int64 `protobuf:"varint,3,opt,name=min_enact,json=minEnact,proto3" json:"min_enact,omitempty"`
	// Represents the maximum time before an enacted proposal must take effect.
	MaxEnact int64 `protobuf:"varint,4,opt,name=max_enact,json=maxEnact,proto3" json:"max_enact,omitempty"`
	// Specifies the required percentage of eligible participants that must partake in the proposal for it to be valid.
	RequiredParticipation string `protobuf:"bytes,5,opt,name=required_participation,json=requiredParticipation,proto3" json:"required_participation,omitempty"`
	// Specifies the required percentage of votes a proposal needs to be approved.
	RequiredMajority string `protobuf:"bytes,6,opt,name=required_majority,json=requiredMajority,proto3" json:"required_majority,omitempty"`
	// Specifies the minimum governance token balance a proposer must hold to initiate a proposal.
	MinProposerBalance string `protobuf:"bytes,7,opt,name=min_proposer_balance,json=minProposerBalance,proto3" json:"min_proposer_balance,omitempty"`
	// Specifies the minimum governance token balance a voter must hold to participate in voting.
	MinVoterBalance string `protobuf:"bytes,8,opt,name=min_voter_balance,json=minVoterBalance,proto3" json:"min_voter_balance,omitempty"`
	// Specifies the required percentage of participation from liquidity providers for the proposal to be valid.
	RequiredParticipationLp string `` /* 132-byte string literal not displayed */
	// Specifies the required majority percentage from liquidity providers for a proposal to be approved.
	RequiredMajorityLp string `protobuf:"bytes,10,opt,name=required_majority_lp,json=requiredMajorityLp,proto3" json:"required_majority_lp,omitempty"`
	// Specifies the minimum share that is akin to equity, which a participant must hold for their vote to be eligible.
	MinEquityLikeShare string `protobuf:"bytes,11,opt,name=min_equity_like_share,json=minEquityLikeShare,proto3" json:"min_equity_like_share,omitempty"`
	// contains filtered or unexported fields
}

func (*ProposalParameters) Descriptor deprecated added in v0.74.0

func (*ProposalParameters) Descriptor() ([]byte, []int)

Deprecated: Use ProposalParameters.ProtoReflect.Descriptor instead.

func (*ProposalParameters) GetMaxClose added in v0.74.0

func (x *ProposalParameters) GetMaxClose() int64

func (*ProposalParameters) GetMaxEnact added in v0.74.0

func (x *ProposalParameters) GetMaxEnact() int64

func (*ProposalParameters) GetMinClose added in v0.74.0

func (x *ProposalParameters) GetMinClose() int64

func (*ProposalParameters) GetMinEnact added in v0.74.0

func (x *ProposalParameters) GetMinEnact() int64

func (*ProposalParameters) GetMinEquityLikeShare added in v0.74.0

func (x *ProposalParameters) GetMinEquityLikeShare() string

func (*ProposalParameters) GetMinProposerBalance added in v0.74.0

func (x *ProposalParameters) GetMinProposerBalance() string

func (*ProposalParameters) GetMinVoterBalance added in v0.74.0

func (x *ProposalParameters) GetMinVoterBalance() string

func (*ProposalParameters) GetRequiredMajority added in v0.74.0

func (x *ProposalParameters) GetRequiredMajority() string

func (*ProposalParameters) GetRequiredMajorityLp added in v0.74.0

func (x *ProposalParameters) GetRequiredMajorityLp() string

func (*ProposalParameters) GetRequiredParticipation added in v0.74.0

func (x *ProposalParameters) GetRequiredParticipation() string

func (*ProposalParameters) GetRequiredParticipationLp added in v0.74.0

func (x *ProposalParameters) GetRequiredParticipationLp() string

func (*ProposalParameters) ProtoMessage added in v0.74.0

func (*ProposalParameters) ProtoMessage()

func (*ProposalParameters) ProtoReflect added in v0.74.0

func (x *ProposalParameters) ProtoReflect() protoreflect.Message

func (*ProposalParameters) Reset added in v0.74.0

func (x *ProposalParameters) Reset()

func (*ProposalParameters) String added in v0.74.0

func (x *ProposalParameters) String() string

type ProposalRationale

type ProposalRationale struct {

	// Description to show a short title / something in case the link goes offline.
	// This is to be between 0 and 20k unicode characters.
	// This is mandatory for all proposals.
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// Title to be used to give a short description of the proposal in lists.
	// This is to be between 0 and 100 unicode characters.
	// This is mandatory for all proposals.
	Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

Rationale behind a proposal.

func (*ProposalRationale) Descriptor deprecated

func (*ProposalRationale) Descriptor() ([]byte, []int)

Deprecated: Use ProposalRationale.ProtoReflect.Descriptor instead.

func (*ProposalRationale) GetDescription

func (x *ProposalRationale) GetDescription() string

func (*ProposalRationale) GetTitle

func (x *ProposalRationale) GetTitle() string

func (*ProposalRationale) ProtoMessage

func (*ProposalRationale) ProtoMessage()

func (*ProposalRationale) ProtoReflect

func (x *ProposalRationale) ProtoReflect() protoreflect.Message

func (*ProposalRationale) Reset

func (x *ProposalRationale) Reset()

func (*ProposalRationale) String

func (x *ProposalRationale) String() string

type ProposalTerms

type ProposalTerms struct {

	// Timestamp as Unix time in seconds when voting closes for this proposal,
	// constrained by `minClose` and `maxClose` network parameters.
	ClosingTimestamp int64 `protobuf:"varint,1,opt,name=closing_timestamp,json=closingTimestamp,proto3" json:"closing_timestamp,omitempty"`
	// Timestamp as Unix time in seconds when proposal gets enacted if passed,
	// constrained by `minEnact` and `maxEnact` network parameters.
	EnactmentTimestamp int64 `protobuf:"varint,2,opt,name=enactment_timestamp,json=enactmentTimestamp,proto3" json:"enactment_timestamp,omitempty"`
	// Validation timestamp as Unix time in seconds.
	ValidationTimestamp int64 `protobuf:"varint,3,opt,name=validation_timestamp,json=validationTimestamp,proto3" json:"validation_timestamp,omitempty"`
	// Changes being proposed.
	//
	// Types that are assignable to Change:
	//
	//	*ProposalTerms_UpdateMarket
	//	*ProposalTerms_NewMarket
	//	*ProposalTerms_UpdateNetworkParameter
	//	*ProposalTerms_NewAsset
	//	*ProposalTerms_NewFreeform
	//	*ProposalTerms_UpdateAsset
	//	*ProposalTerms_NewSpotMarket
	//	*ProposalTerms_UpdateSpotMarket
	//	*ProposalTerms_NewTransfer
	//	*ProposalTerms_CancelTransfer
	//	*ProposalTerms_UpdateMarketState
	//	*ProposalTerms_UpdateReferralProgram
	//	*ProposalTerms_UpdateVolumeDiscountProgram
	//	*ProposalTerms_UpdateVolumeRebateProgram
	Change isProposalTerms_Change `protobuf_oneof:"change"`
	// contains filtered or unexported fields
}

Terms for a governance proposal on Vega

func (*ProposalTerms) Descriptor deprecated

func (*ProposalTerms) Descriptor() ([]byte, []int)

Deprecated: Use ProposalTerms.ProtoReflect.Descriptor instead.

func (*ProposalTerms) GetCancelTransfer added in v0.72.0

func (x *ProposalTerms) GetCancelTransfer() *CancelTransfer

func (*ProposalTerms) GetChange

func (m *ProposalTerms) GetChange() isProposalTerms_Change

func (*ProposalTerms) GetClosingTimestamp

func (x *ProposalTerms) GetClosingTimestamp() int64

func (*ProposalTerms) GetEnactmentTimestamp

func (x *ProposalTerms) GetEnactmentTimestamp() int64

func (*ProposalTerms) GetNewAsset

func (x *ProposalTerms) GetNewAsset() *NewAsset

func (*ProposalTerms) GetNewFreeform

func (x *ProposalTerms) GetNewFreeform() *NewFreeform

func (*ProposalTerms) GetNewMarket

func (x *ProposalTerms) GetNewMarket() *NewMarket

func (*ProposalTerms) GetNewSpotMarket added in v0.72.0

func (x *ProposalTerms) GetNewSpotMarket() *NewSpotMarket

func (*ProposalTerms) GetNewTransfer added in v0.72.0

func (x *ProposalTerms) GetNewTransfer() *NewTransfer

func (*ProposalTerms) GetUpdateAsset

func (x *ProposalTerms) GetUpdateAsset() *UpdateAsset

func (*ProposalTerms) GetUpdateMarket

func (x *ProposalTerms) GetUpdateMarket() *UpdateMarket

func (*ProposalTerms) GetUpdateMarketState added in v0.73.0

func (x *ProposalTerms) GetUpdateMarketState() *UpdateMarketState

func (*ProposalTerms) GetUpdateNetworkParameter

func (x *ProposalTerms) GetUpdateNetworkParameter() *UpdateNetworkParameter

func (*ProposalTerms) GetUpdateReferralProgram added in v0.73.0

func (x *ProposalTerms) GetUpdateReferralProgram() *UpdateReferralProgram

func (*ProposalTerms) GetUpdateSpotMarket added in v0.72.0

func (x *ProposalTerms) GetUpdateSpotMarket() *UpdateSpotMarket

func (*ProposalTerms) GetUpdateVolumeDiscountProgram added in v0.73.0

func (x *ProposalTerms) GetUpdateVolumeDiscountProgram() *UpdateVolumeDiscountProgram

func (*ProposalTerms) GetUpdateVolumeRebateProgram added in v0.77.8

func (x *ProposalTerms) GetUpdateVolumeRebateProgram() *UpdateVolumeRebateProgram

func (*ProposalTerms) GetValidationTimestamp

func (x *ProposalTerms) GetValidationTimestamp() int64

func (*ProposalTerms) ProtoMessage

func (*ProposalTerms) ProtoMessage()

func (*ProposalTerms) ProtoReflect

func (x *ProposalTerms) ProtoReflect() protoreflect.Message

func (*ProposalTerms) Reset

func (x *ProposalTerms) Reset()

func (*ProposalTerms) String

func (x *ProposalTerms) String() string

type ProposalTerms_CancelTransfer added in v0.72.0

type ProposalTerms_CancelTransfer struct {
	// Cancel a governance transfer.
	CancelTransfer *CancelTransfer `protobuf:"bytes,110,opt,name=cancel_transfer,json=cancelTransfer,proto3,oneof"`
}

type ProposalTerms_NewAsset

type ProposalTerms_NewAsset struct {
	// Proposal change for creating new assets on Vega.
	NewAsset *NewAsset `protobuf:"bytes,104,opt,name=new_asset,json=newAsset,proto3,oneof"`
}

type ProposalTerms_NewFreeform

type ProposalTerms_NewFreeform struct {
	// Proposal change for a freeform request, which can be voted on but does not change the behaviour of the system,
	// and can be used to gauge community sentiment.
	NewFreeform *NewFreeform `protobuf:"bytes,105,opt,name=new_freeform,json=newFreeform,proto3,oneof"`
}

type ProposalTerms_NewMarket

type ProposalTerms_NewMarket struct {
	// Proposal change for creating new futures market on Vega.
	NewMarket *NewMarket `protobuf:"bytes,102,opt,name=new_market,json=newMarket,proto3,oneof"`
}

type ProposalTerms_NewSpotMarket added in v0.72.0

type ProposalTerms_NewSpotMarket struct {
	// Proposal change for creating new spot market on Vega.
	NewSpotMarket *NewSpotMarket `protobuf:"bytes,107,opt,name=new_spot_market,json=newSpotMarket,proto3,oneof"`
}

type ProposalTerms_NewTransfer added in v0.72.0

type ProposalTerms_NewTransfer struct {
	// Proposal change for a governance transfer.
	NewTransfer *NewTransfer `protobuf:"bytes,109,opt,name=new_transfer,json=newTransfer,proto3,oneof"`
}

type ProposalTerms_UpdateAsset

type ProposalTerms_UpdateAsset struct {
	// Proposal change for updating an asset.
	UpdateAsset *UpdateAsset `protobuf:"bytes,106,opt,name=update_asset,json=updateAsset,proto3,oneof"`
}

type ProposalTerms_UpdateMarket

type ProposalTerms_UpdateMarket struct {
	// Proposal change for modifying an existing futures market on Vega.
	UpdateMarket *UpdateMarket `protobuf:"bytes,101,opt,name=update_market,json=updateMarket,proto3,oneof"`
}

type ProposalTerms_UpdateMarketState added in v0.73.0

type ProposalTerms_UpdateMarketState struct {
	// Proposal change for updating the state of a market.
	UpdateMarketState *UpdateMarketState `protobuf:"bytes,111,opt,name=update_market_state,json=updateMarketState,proto3,oneof"`
}

type ProposalTerms_UpdateNetworkParameter

type ProposalTerms_UpdateNetworkParameter struct {
	// Proposal change for updating Vega network parameters.
	UpdateNetworkParameter *UpdateNetworkParameter `protobuf:"bytes,103,opt,name=update_network_parameter,json=updateNetworkParameter,proto3,oneof"`
}

type ProposalTerms_UpdateReferralProgram added in v0.73.0

type ProposalTerms_UpdateReferralProgram struct {
	// Proposal change for updating the referral program.
	UpdateReferralProgram *UpdateReferralProgram `protobuf:"bytes,112,opt,name=update_referral_program,json=updateReferralProgram,proto3,oneof"`
}

type ProposalTerms_UpdateSpotMarket added in v0.72.0

type ProposalTerms_UpdateSpotMarket struct {
	// Proposal change for modifying an existing spot market on Vega.
	UpdateSpotMarket *UpdateSpotMarket `protobuf:"bytes,108,opt,name=update_spot_market,json=updateSpotMarket,proto3,oneof"`
}

type ProposalTerms_UpdateVolumeDiscountProgram added in v0.73.0

type ProposalTerms_UpdateVolumeDiscountProgram struct {
	// Proposal change for updating the volume discount program.
	UpdateVolumeDiscountProgram *UpdateVolumeDiscountProgram `protobuf:"bytes,113,opt,name=update_volume_discount_program,json=updateVolumeDiscountProgram,proto3,oneof"`
}

type ProposalTerms_UpdateVolumeRebateProgram added in v0.77.8

type ProposalTerms_UpdateVolumeRebateProgram struct {
	// Proposal change for updating the volume rebate program.
	UpdateVolumeRebateProgram *UpdateVolumeRebateProgram `protobuf:"bytes,114,opt,name=update_volume_rebate_program,json=updateVolumeRebateProgram,proto3,oneof"`
}

type Proposal_State

type Proposal_State int32

Proposal state transition: Open ->

  • Passed -> Enacted.
  • Passed -> Failed.
  • Declined

Rejected Proposal can enter Failed state from any other state

const (
	// Default value, always invalid
	Proposal_STATE_UNSPECIFIED Proposal_State = 0
	// Proposal enactment has failed - even though proposal has passed, its execution could not be performed
	Proposal_STATE_FAILED Proposal_State = 1
	// Proposal is open for voting
	Proposal_STATE_OPEN Proposal_State = 2
	// Proposal has gained enough support to be executed
	Proposal_STATE_PASSED Proposal_State = 3
	// Proposal wasn't accepted i.e. proposal terms failed validation due to wrong configuration or failed to meet network requirements.
	Proposal_STATE_REJECTED Proposal_State = 4
	// Proposal didn't get enough votes, e.g. either failed to gain required participation or majority level.
	Proposal_STATE_DECLINED Proposal_State = 5
	// Proposal enacted.
	Proposal_STATE_ENACTED Proposal_State = 6
	// Waiting for node validation of the proposal
	Proposal_STATE_WAITING_FOR_NODE_VOTE Proposal_State = 7
)

func (Proposal_State) Descriptor

func (Proposal_State) Enum

func (x Proposal_State) Enum() *Proposal_State

func (Proposal_State) EnumDescriptor deprecated

func (Proposal_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Proposal_State.Descriptor instead.

func (Proposal_State) GetEnums added in v0.76.0

func (Proposal_State) GetEnums() map[int32]string

func (Proposal_State) Number

func (Proposal_State) String

func (x Proposal_State) String() string

func (Proposal_State) Type

type Rank added in v0.73.0

type Rank struct {
	StartRank  uint32 `protobuf:"varint,1,opt,name=start_rank,json=startRank,proto3" json:"start_rank,omitempty"`
	ShareRatio uint32 `protobuf:"varint,2,opt,name=share_ratio,json=shareRatio,proto3" json:"share_ratio,omitempty"`
	// contains filtered or unexported fields
}

func (*Rank) Descriptor deprecated added in v0.73.0

func (*Rank) Descriptor() ([]byte, []int)

Deprecated: Use Rank.ProtoReflect.Descriptor instead.

func (*Rank) GetShareRatio added in v0.73.0

func (x *Rank) GetShareRatio() uint32

func (*Rank) GetStartRank added in v0.73.0

func (x *Rank) GetStartRank() uint32

func (*Rank) ProtoMessage added in v0.73.0

func (*Rank) ProtoMessage()

func (*Rank) ProtoReflect added in v0.73.0

func (x *Rank) ProtoReflect() protoreflect.Message

func (*Rank) Reset added in v0.73.0

func (x *Rank) Reset()

func (*Rank) String added in v0.73.0

func (x *Rank) String() string

type RankingScore

type RankingScore struct {

	// Stake based score - no anti-whaling.
	StakeScore string `protobuf:"bytes,1,opt,name=stake_score,json=stakeScore,proto3" json:"stake_score,omitempty"`
	// Performance based score.
	PerformanceScore string `protobuf:"bytes,2,opt,name=performance_score,json=performanceScore,proto3" json:"performance_score,omitempty"`
	// Status of the validator in the previous epoch.
	PreviousStatus ValidatorNodeStatus `` /* 134-byte string literal not displayed */
	// Status of the validator in the current epoch.
	Status ValidatorNodeStatus `protobuf:"varint,4,opt,name=status,proto3,enum=vega.ValidatorNodeStatus" json:"status,omitempty"`
	// Tendermint voting power of the validator.
	VotingPower uint32 `protobuf:"varint,5,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
	// Final score.
	RankingScore string `protobuf:"bytes,6,opt,name=ranking_score,json=rankingScore,proto3" json:"ranking_score,omitempty"`
	// contains filtered or unexported fields
}

func (*RankingScore) Descriptor deprecated

func (*RankingScore) Descriptor() ([]byte, []int)

Deprecated: Use RankingScore.ProtoReflect.Descriptor instead.

func (*RankingScore) GetPerformanceScore

func (x *RankingScore) GetPerformanceScore() string

func (*RankingScore) GetPreviousStatus

func (x *RankingScore) GetPreviousStatus() ValidatorNodeStatus

func (*RankingScore) GetRankingScore

func (x *RankingScore) GetRankingScore() string

func (*RankingScore) GetStakeScore

func (x *RankingScore) GetStakeScore() string

func (*RankingScore) GetStatus

func (x *RankingScore) GetStatus() ValidatorNodeStatus

func (*RankingScore) GetVotingPower

func (x *RankingScore) GetVotingPower() uint32

func (*RankingScore) ProtoMessage

func (*RankingScore) ProtoMessage()

func (*RankingScore) ProtoReflect

func (x *RankingScore) ProtoReflect() protoreflect.Message

func (*RankingScore) Reset

func (x *RankingScore) Reset()

func (*RankingScore) String

func (x *RankingScore) String() string

type RecurringTransfer added in v0.72.0

type RecurringTransfer struct {
	StartEpoch uint64 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"`
	// Last epoch at which this transfer shall be paid.
	EndEpoch *uint64 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3,oneof" json:"end_epoch,omitempty"`
	// Optional parameter defining how a transfer is dispatched.
	DispatchStrategy *DispatchStrategy `protobuf:"bytes,3,opt,name=dispatch_strategy,json=dispatchStrategy,proto3,oneof" json:"dispatch_strategy,omitempty"`
	// Factor that the initial transfer amount is multiplied by for each epoch that it is executed.
	// For example if the initial transfer amount is 1000 and the factor is 0.5, then the amounts transferred per epoch will be 1000, 500, 250, 125, etc.
	Factor string `protobuf:"bytes,4,opt,name=factor,proto3" json:"factor,omitempty"`
	// contains filtered or unexported fields
}

Specific details for a recurring transfer

func (*RecurringTransfer) Descriptor deprecated added in v0.72.0

func (*RecurringTransfer) Descriptor() ([]byte, []int)

Deprecated: Use RecurringTransfer.ProtoReflect.Descriptor instead.

func (*RecurringTransfer) GetDispatchStrategy added in v0.73.0

func (x *RecurringTransfer) GetDispatchStrategy() *DispatchStrategy

func (*RecurringTransfer) GetEndEpoch added in v0.72.0

func (x *RecurringTransfer) GetEndEpoch() uint64

func (*RecurringTransfer) GetFactor added in v0.77.0

func (x *RecurringTransfer) GetFactor() string

func (*RecurringTransfer) GetStartEpoch added in v0.72.0

func (x *RecurringTransfer) GetStartEpoch() uint64

func (RecurringTransfer) IsGovernanceTransferKind added in v0.72.0

func (RecurringTransfer) IsGovernanceTransferKind()

func (*RecurringTransfer) ProtoMessage added in v0.72.0

func (*RecurringTransfer) ProtoMessage()

func (*RecurringTransfer) ProtoReflect added in v0.72.0

func (x *RecurringTransfer) ProtoReflect() protoreflect.Message

func (*RecurringTransfer) Reset added in v0.72.0

func (x *RecurringTransfer) Reset()

func (*RecurringTransfer) String added in v0.72.0

func (x *RecurringTransfer) String() string

type ReferralProgram added in v0.73.0

type ReferralProgram struct {

	// Incremental version of the program. It is incremented after each program
	// update.
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Unique ID generated from the proposal that created this program.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Defined benefit tiers ordered by increasing discounts.
	BenefitTiers []*BenefitTier `protobuf:"bytes,3,rep,name=benefit_tiers,json=benefitTiers,proto3" json:"benefit_tiers,omitempty"`
	// Timestamp in Unix nanoseconds, after which when the current epoch ends,
	// the program will end and benefits will be disabled.
	EndOfProgramTimestamp int64 `` /* 129-byte string literal not displayed */
	// Number of epochs over which the referral set's running volume is evaluated.
	WindowLength uint64 `protobuf:"varint,5,opt,name=window_length,json=windowLength,proto3" json:"window_length,omitempty"`
	// Defined benefit tiers ordered by increasing reward multiplier. Determines the level of
	// benefit a party can expect based on their staking.
	StakingTiers []*StakingTier `protobuf:"bytes,6,rep,name=staking_tiers,json=stakingTiers,proto3" json:"staking_tiers,omitempty"`
	// contains filtered or unexported fields
}

func (*ReferralProgram) Descriptor deprecated added in v0.73.0

func (*ReferralProgram) Descriptor() ([]byte, []int)

Deprecated: Use ReferralProgram.ProtoReflect.Descriptor instead.

func (*ReferralProgram) GetBenefitTiers added in v0.73.0

func (x *ReferralProgram) GetBenefitTiers() []*BenefitTier

func (*ReferralProgram) GetEndOfProgramTimestamp added in v0.73.0

func (x *ReferralProgram) GetEndOfProgramTimestamp() int64

func (*ReferralProgram) GetId added in v0.73.0

func (x *ReferralProgram) GetId() string

func (*ReferralProgram) GetStakingTiers added in v0.73.0

func (x *ReferralProgram) GetStakingTiers() []*StakingTier

func (*ReferralProgram) GetVersion added in v0.73.0

func (x *ReferralProgram) GetVersion() uint64

func (*ReferralProgram) GetWindowLength added in v0.73.0

func (x *ReferralProgram) GetWindowLength() uint64

func (*ReferralProgram) ProtoMessage added in v0.73.0

func (*ReferralProgram) ProtoMessage()

func (*ReferralProgram) ProtoReflect added in v0.73.0

func (x *ReferralProgram) ProtoReflect() protoreflect.Message

func (*ReferralProgram) Reset added in v0.73.0

func (x *ReferralProgram) Reset()

func (*ReferralProgram) String added in v0.73.0

func (x *ReferralProgram) String() string

type ReferralProgramChanges added in v0.73.0

type ReferralProgramChanges struct {

	// Defined benefit tiers in increasing order. First element will give Tier 1,
	// second element will give Tier 2, and so on. Determines the level of
	// benefit a party can expect based on performance criteria.
	BenefitTiers []*BenefitTier `protobuf:"bytes,1,rep,name=benefit_tiers,json=benefitTiers,proto3" json:"benefit_tiers,omitempty"`
	// Timestamp as Unix time in seconds, after which when the current epoch
	// ends, the program will end and benefits will be disabled.
	EndOfProgramTimestamp int64 `` /* 129-byte string literal not displayed */
	// Number of epochs over which to evaluate a referral set's running volume.
	WindowLength uint64 `protobuf:"varint,3,opt,name=window_length,json=windowLength,proto3" json:"window_length,omitempty"`
	// Defined staking tiers in increasing order. First element will give Tier 1,
	// second element will give Tier 2, and so on. Determines the level of
	// benefit a party can expect based on their staking.
	StakingTiers []*StakingTier `protobuf:"bytes,4,rep,name=staking_tiers,json=stakingTiers,proto3" json:"staking_tiers,omitempty"`
	// contains filtered or unexported fields
}

func (*ReferralProgramChanges) Descriptor deprecated added in v0.73.0

func (*ReferralProgramChanges) Descriptor() ([]byte, []int)

Deprecated: Use ReferralProgramChanges.ProtoReflect.Descriptor instead.

func (*ReferralProgramChanges) GetBenefitTiers added in v0.73.0

func (x *ReferralProgramChanges) GetBenefitTiers() []*BenefitTier

func (*ReferralProgramChanges) GetEndOfProgramTimestamp added in v0.73.0

func (x *ReferralProgramChanges) GetEndOfProgramTimestamp() int64

func (*ReferralProgramChanges) GetStakingTiers added in v0.73.0

func (x *ReferralProgramChanges) GetStakingTiers() []*StakingTier

func (*ReferralProgramChanges) GetWindowLength added in v0.73.0

func (x *ReferralProgramChanges) GetWindowLength() uint64

func (*ReferralProgramChanges) ProtoMessage added in v0.73.0

func (*ReferralProgramChanges) ProtoMessage()

func (*ReferralProgramChanges) ProtoReflect added in v0.73.0

func (x *ReferralProgramChanges) ProtoReflect() protoreflect.Message

func (*ReferralProgramChanges) Reset added in v0.73.0

func (x *ReferralProgramChanges) Reset()

func (*ReferralProgramChanges) String added in v0.73.0

func (x *ReferralProgramChanges) String() string

type Reward

type Reward struct {

	// Asset ID in which the reward is being paid.
	AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// Party ID to whom the reward is being paid.
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Epoch in which the reward is being paid.
	Epoch uint64 `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty"`
	// Amount paid as a reward. This field is an unsigned integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// Percentage of total rewards paid in the epoch.
	PercentageOfTotal string `protobuf:"bytes,5,opt,name=percentage_of_total,json=percentageOfTotal,proto3" json:"percentage_of_total,omitempty"`
	// Timestamp at which the reward was paid as Unix nano time.
	ReceivedAt int64 `protobuf:"varint,6,opt,name=received_at,json=receivedAt,proto3" json:"received_at,omitempty"`
	// Market ID in which the reward is being paid.
	MarketId string `protobuf:"bytes,7,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Type of reward being paid.
	RewardType string `protobuf:"bytes,8,opt,name=reward_type,json=rewardType,proto3" json:"reward_type,omitempty"`
	// The epoch when the reward is being released.
	LockedUntilEpoch uint64 `protobuf:"varint,9,opt,name=locked_until_epoch,json=lockedUntilEpoch,proto3" json:"locked_until_epoch,omitempty"`
	// Amount paid as a reward, expressed in asset's quantum unit.
	QuantumAmount string `protobuf:"bytes,10,opt,name=quantum_amount,json=quantumAmount,proto3" json:"quantum_amount,omitempty"`
	// ID of the game the reward payment was made for if the payment was made for participation in a game.
	GameId *string `protobuf:"bytes,11,opt,name=game_id,json=gameId,proto3,oneof" json:"game_id,omitempty"`
	// ID of the team the party is a member of, if the party is a member of a participating team,
	// and the reward payment was made for participation in a game.
	// This field is currently only populated by the rewards API.
	TeamId *string `protobuf:"bytes,12,opt,name=team_id,json=teamId,proto3,oneof" json:"team_id,omitempty"`
	// contains filtered or unexported fields
}

Details for a single reward payment

func (*Reward) Descriptor deprecated

func (*Reward) Descriptor() ([]byte, []int)

Deprecated: Use Reward.ProtoReflect.Descriptor instead.

func (*Reward) GetAmount

func (x *Reward) GetAmount() string

func (*Reward) GetAssetId

func (x *Reward) GetAssetId() string

func (*Reward) GetEpoch

func (x *Reward) GetEpoch() uint64

func (*Reward) GetGameId added in v0.74.0

func (x *Reward) GetGameId() string

func (*Reward) GetLockedUntilEpoch added in v0.73.0

func (x *Reward) GetLockedUntilEpoch() uint64

func (*Reward) GetMarketId

func (x *Reward) GetMarketId() string

func (*Reward) GetPartyId

func (x *Reward) GetPartyId() string

func (*Reward) GetPercentageOfTotal

func (x *Reward) GetPercentageOfTotal() string

func (*Reward) GetQuantumAmount added in v0.74.0

func (x *Reward) GetQuantumAmount() string

func (*Reward) GetReceivedAt

func (x *Reward) GetReceivedAt() int64

func (*Reward) GetRewardType

func (x *Reward) GetRewardType() string

func (*Reward) GetTeamId added in v0.74.0

func (x *Reward) GetTeamId() string

func (*Reward) ProtoMessage

func (*Reward) ProtoMessage()

func (*Reward) ProtoReflect

func (x *Reward) ProtoReflect() protoreflect.Message

func (*Reward) Reset

func (x *Reward) Reset()

func (*Reward) String

func (x *Reward) String() string

type RewardFactors added in v0.77.8

type RewardFactors struct {

	// Proportion of the referee's infrastructure fees to be rewarded to the referrer.
	InfrastructureRewardFactor string `` /* 141-byte string literal not displayed */
	// Proportion of the referee's liquidity fees to be rewarded to the referrer.
	LiquidityRewardFactor string `` /* 126-byte string literal not displayed */
	// Proportion of the maker fees to be rewarded.
	MakerRewardFactor string `protobuf:"bytes,3,opt,name=maker_reward_factor,json=makerRewardFactor,proto3" json:"maker_reward_factor,omitempty"`
	// contains filtered or unexported fields
}

func (*RewardFactors) Descriptor deprecated added in v0.77.8

func (*RewardFactors) Descriptor() ([]byte, []int)

Deprecated: Use RewardFactors.ProtoReflect.Descriptor instead.

func (*RewardFactors) GetInfrastructureRewardFactor added in v0.77.8

func (x *RewardFactors) GetInfrastructureRewardFactor() string

func (*RewardFactors) GetLiquidityRewardFactor added in v0.77.8

func (x *RewardFactors) GetLiquidityRewardFactor() string

func (*RewardFactors) GetMakerRewardFactor added in v0.77.8

func (x *RewardFactors) GetMakerRewardFactor() string

func (*RewardFactors) ProtoMessage added in v0.77.8

func (*RewardFactors) ProtoMessage()

func (*RewardFactors) ProtoReflect added in v0.77.8

func (x *RewardFactors) ProtoReflect() protoreflect.Message

func (*RewardFactors) Reset added in v0.77.8

func (x *RewardFactors) Reset()

func (*RewardFactors) String added in v0.77.8

func (x *RewardFactors) String() string

type RewardScore

type RewardScore struct {

	// Stake based score - with anti-whaling.
	RawValidatorScore string `protobuf:"bytes,1,opt,name=raw_validator_score,json=rawValidatorScore,proto3" json:"raw_validator_score,omitempty"`
	// Performance based score.
	PerformanceScore string `protobuf:"bytes,2,opt,name=performance_score,json=performanceScore,proto3" json:"performance_score,omitempty"`
	// Multisig score.
	MultisigScore string `protobuf:"bytes,3,opt,name=multisig_score,json=multisigScore,proto3" json:"multisig_score,omitempty"`
	// Un-normalised score.
	ValidatorScore string `protobuf:"bytes,4,opt,name=validator_score,json=validatorScore,proto3" json:"validator_score,omitempty"`
	// Normalised validator score for rewards.
	NormalisedScore string `protobuf:"bytes,5,opt,name=normalised_score,json=normalisedScore,proto3" json:"normalised_score,omitempty"`
	// Status of the validator for reward.
	ValidatorStatus ValidatorNodeStatus `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RewardScore) Descriptor deprecated

func (*RewardScore) Descriptor() ([]byte, []int)

Deprecated: Use RewardScore.ProtoReflect.Descriptor instead.

func (*RewardScore) GetMultisigScore

func (x *RewardScore) GetMultisigScore() string

func (*RewardScore) GetNormalisedScore

func (x *RewardScore) GetNormalisedScore() string

func (*RewardScore) GetPerformanceScore

func (x *RewardScore) GetPerformanceScore() string

func (*RewardScore) GetRawValidatorScore

func (x *RewardScore) GetRawValidatorScore() string

func (*RewardScore) GetValidatorScore

func (x *RewardScore) GetValidatorScore() string

func (*RewardScore) GetValidatorStatus

func (x *RewardScore) GetValidatorStatus() ValidatorNodeStatus

func (*RewardScore) ProtoMessage

func (*RewardScore) ProtoMessage()

func (*RewardScore) ProtoReflect

func (x *RewardScore) ProtoReflect() protoreflect.Message

func (*RewardScore) Reset

func (x *RewardScore) Reset()

func (*RewardScore) String

func (x *RewardScore) String() string

type RewardSummary

type RewardSummary struct {

	// Asset ID in which the reward is being paid.
	AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// Party ID to whom the reward is being paid.
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Total amount of rewards paid in the asset. This field is an unsigned integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Details for rewards for a single asset

func (*RewardSummary) Descriptor deprecated

func (*RewardSummary) Descriptor() ([]byte, []int)

Deprecated: Use RewardSummary.ProtoReflect.Descriptor instead.

func (*RewardSummary) GetAmount

func (x *RewardSummary) GetAmount() string

func (*RewardSummary) GetAssetId

func (x *RewardSummary) GetAssetId() string

func (*RewardSummary) GetPartyId

func (x *RewardSummary) GetPartyId() string

func (*RewardSummary) ProtoMessage

func (*RewardSummary) ProtoMessage()

func (*RewardSummary) ProtoReflect

func (x *RewardSummary) ProtoReflect() protoreflect.Message

func (*RewardSummary) Reset

func (x *RewardSummary) Reset()

func (*RewardSummary) String

func (x *RewardSummary) String() string

type RiskFactor

type RiskFactor struct {

	// Market ID that relates to this risk factor.
	Market string `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	// Short Risk factor value.
	Short string `protobuf:"bytes,2,opt,name=short,proto3" json:"short,omitempty"`
	// Long Risk factor value.
	Long string `protobuf:"bytes,3,opt,name=long,proto3" json:"long,omitempty"`
	// contains filtered or unexported fields
}

Risk factors are used to calculate the current risk associated with orders trading on a given market

func (*RiskFactor) Descriptor deprecated

func (*RiskFactor) Descriptor() ([]byte, []int)

Deprecated: Use RiskFactor.ProtoReflect.Descriptor instead.

func (*RiskFactor) GetLong

func (x *RiskFactor) GetLong() string

func (*RiskFactor) GetMarket

func (x *RiskFactor) GetMarket() string

func (*RiskFactor) GetShort

func (x *RiskFactor) GetShort() string

func (RiskFactor) IsEvent

func (RiskFactor) IsEvent()

func (*RiskFactor) ProtoMessage

func (*RiskFactor) ProtoMessage()

func (*RiskFactor) ProtoReflect

func (x *RiskFactor) ProtoReflect() protoreflect.Message

func (*RiskFactor) Reset

func (x *RiskFactor) Reset()

func (*RiskFactor) String

func (x *RiskFactor) String() string

type RiskFactorOverride added in v0.77.0

type RiskFactorOverride struct {

	// Short Risk factor value.
	Short string `protobuf:"bytes,1,opt,name=short,proto3" json:"short,omitempty"`
	// Long Risk factor value.
	Long string `protobuf:"bytes,2,opt,name=long,proto3" json:"long,omitempty"`
	// contains filtered or unexported fields
}

Risk factor override to control stable leverage

func (*RiskFactorOverride) Descriptor deprecated added in v0.77.0

func (*RiskFactorOverride) Descriptor() ([]byte, []int)

Deprecated: Use RiskFactorOverride.ProtoReflect.Descriptor instead.

func (*RiskFactorOverride) GetLong added in v0.77.0

func (x *RiskFactorOverride) GetLong() string

func (*RiskFactorOverride) GetShort added in v0.77.0

func (x *RiskFactorOverride) GetShort() string

func (*RiskFactorOverride) ProtoMessage added in v0.77.0

func (*RiskFactorOverride) ProtoMessage()

func (*RiskFactorOverride) ProtoReflect added in v0.77.0

func (x *RiskFactorOverride) ProtoReflect() protoreflect.Message

func (*RiskFactorOverride) Reset added in v0.77.0

func (x *RiskFactorOverride) Reset()

func (*RiskFactorOverride) String added in v0.77.0

func (x *RiskFactorOverride) String() string

type ScalarValue

type ScalarValue struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalarValue) Descriptor deprecated

func (*ScalarValue) Descriptor() ([]byte, []int)

Deprecated: Use ScalarValue.ProtoReflect.Descriptor instead.

func (*ScalarValue) GetValue

func (x *ScalarValue) GetValue() string

func (*ScalarValue) ProtoMessage

func (*ScalarValue) ProtoMessage()

func (*ScalarValue) ProtoReflect

func (x *ScalarValue) ProtoReflect() protoreflect.Message

func (*ScalarValue) Reset

func (x *ScalarValue) Reset()

func (*ScalarValue) String

func (x *ScalarValue) String() string

type ScalingFactors

type ScalingFactors struct {

	// Collateral search level. If collateral dips below this value,
	// the system will search for collateral to release.
	SearchLevel float64 `protobuf:"fixed64,1,opt,name=search_level,json=searchLevel,proto3" json:"search_level,omitempty"`
	// Initial margin level. This is the minimum amount of collateral
	// required to open a position in a market that requires margin.
	InitialMargin float64 `protobuf:"fixed64,2,opt,name=initial_margin,json=initialMargin,proto3" json:"initial_margin,omitempty"`
	// Collateral release level. If a trader has collateral above this level,
	// the system will release collateral to a trader's general collateral account
	// for the asset.
	CollateralRelease float64 `protobuf:"fixed64,3,opt,name=collateral_release,json=collateralRelease,proto3" json:"collateral_release,omitempty"`
	// contains filtered or unexported fields
}

Scaling Factors (for use in margin calculation)

func (*ScalingFactors) Descriptor deprecated

func (*ScalingFactors) Descriptor() ([]byte, []int)

Deprecated: Use ScalingFactors.ProtoReflect.Descriptor instead.

func (*ScalingFactors) GetCollateralRelease

func (x *ScalingFactors) GetCollateralRelease() float64

func (*ScalingFactors) GetInitialMargin

func (x *ScalingFactors) GetInitialMargin() float64

func (*ScalingFactors) GetSearchLevel

func (x *ScalingFactors) GetSearchLevel() float64

func (*ScalingFactors) ProtoMessage

func (*ScalingFactors) ProtoMessage()

func (*ScalingFactors) ProtoReflect

func (x *ScalingFactors) ProtoReflect() protoreflect.Message

func (*ScalingFactors) Reset

func (x *ScalingFactors) Reset()

func (*ScalingFactors) String

func (x *ScalingFactors) String() string

type Side

type Side int32

Side relates to the direction of an order, to Buy, or Sell

const (
	// Default value, always invalid
	Side_SIDE_UNSPECIFIED Side = 0
	// Buy order
	Side_SIDE_BUY Side = 1
	// Sell order
	Side_SIDE_SELL Side = 2
)

func (Side) Descriptor

func (Side) Descriptor() protoreflect.EnumDescriptor

func (Side) Enum

func (x Side) Enum() *Side

func (Side) EnumDescriptor deprecated

func (Side) EnumDescriptor() ([]byte, []int)

Deprecated: Use Side.Descriptor instead.

func (Side) GetEnums added in v0.76.0

func (Side) GetEnums() map[int32]string

func (Side) Number

func (x Side) Number() protoreflect.EnumNumber

func (Side) String

func (x Side) String() string

func (Side) Type

func (Side) Type() protoreflect.EnumType

type SimpleModelParams

type SimpleModelParams struct {

	// Pre-defined risk factor value for long.
	FactorLong float64 `protobuf:"fixed64,1,opt,name=factor_long,json=factorLong,proto3" json:"factor_long,omitempty"`
	// Pre-defined risk factor value for short.
	FactorShort float64 `protobuf:"fixed64,2,opt,name=factor_short,json=factorShort,proto3" json:"factor_short,omitempty"`
	// Pre-defined maximum price move up that the model considers as valid.
	MaxMoveUp float64 `protobuf:"fixed64,3,opt,name=max_move_up,json=maxMoveUp,proto3" json:"max_move_up,omitempty"`
	// Pre-defined minimum price move down that the model considers as valid.
	MinMoveDown float64 `protobuf:"fixed64,4,opt,name=min_move_down,json=minMoveDown,proto3" json:"min_move_down,omitempty"`
	// Pre-defined constant probability of trading.
	ProbabilityOfTrading float64 `protobuf:"fixed64,5,opt,name=probability_of_trading,json=probabilityOfTrading,proto3" json:"probability_of_trading,omitempty"`
	// contains filtered or unexported fields
}

Risk model parameters for simple modelling

func (*SimpleModelParams) Descriptor deprecated

func (*SimpleModelParams) Descriptor() ([]byte, []int)

Deprecated: Use SimpleModelParams.ProtoReflect.Descriptor instead.

func (*SimpleModelParams) GetFactorLong

func (x *SimpleModelParams) GetFactorLong() float64

func (*SimpleModelParams) GetFactorShort

func (x *SimpleModelParams) GetFactorShort() float64

func (*SimpleModelParams) GetMaxMoveUp

func (x *SimpleModelParams) GetMaxMoveUp() float64

func (*SimpleModelParams) GetMinMoveDown

func (x *SimpleModelParams) GetMinMoveDown() float64

func (*SimpleModelParams) GetProbabilityOfTrading

func (x *SimpleModelParams) GetProbabilityOfTrading() float64

func (SimpleModelParams) IsRiskModel

func (SimpleModelParams) IsRiskModel()

func (*SimpleModelParams) ProtoMessage

func (*SimpleModelParams) ProtoMessage()

func (*SimpleModelParams) ProtoReflect

func (x *SimpleModelParams) ProtoReflect() protoreflect.Message

func (*SimpleModelParams) Reset

func (x *SimpleModelParams) Reset()

func (*SimpleModelParams) String

func (x *SimpleModelParams) String() string

type SimpleRiskModel

type SimpleRiskModel struct {

	// Risk model params for simple modelling.
	Params *SimpleModelParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

Risk model for simple modelling

func (*SimpleRiskModel) Descriptor deprecated

func (*SimpleRiskModel) Descriptor() ([]byte, []int)

Deprecated: Use SimpleRiskModel.ProtoReflect.Descriptor instead.

func (*SimpleRiskModel) GetParams

func (x *SimpleRiskModel) GetParams() *SimpleModelParams

func (SimpleRiskModel) IsRiskModel

func (SimpleRiskModel) IsRiskModel()

func (*SimpleRiskModel) ProtoMessage

func (*SimpleRiskModel) ProtoMessage()

func (*SimpleRiskModel) ProtoReflect

func (x *SimpleRiskModel) ProtoReflect() protoreflect.Message

func (*SimpleRiskModel) Reset

func (x *SimpleRiskModel) Reset()

func (*SimpleRiskModel) String

func (x *SimpleRiskModel) String() string

type SpecBindingForCompositePrice added in v0.74.0

type SpecBindingForCompositePrice struct {

	// The property name of price.
	PriceSourceProperty string `protobuf:"bytes,1,opt,name=price_source_property,json=priceSourceProperty,proto3" json:"price_source_property,omitempty"`
	// contains filtered or unexported fields
}

Describes which property of the data source data is to be used for price source.

func (*SpecBindingForCompositePrice) Descriptor deprecated added in v0.74.0

func (*SpecBindingForCompositePrice) Descriptor() ([]byte, []int)

Deprecated: Use SpecBindingForCompositePrice.ProtoReflect.Descriptor instead.

func (*SpecBindingForCompositePrice) GetPriceSourceProperty added in v0.74.0

func (x *SpecBindingForCompositePrice) GetPriceSourceProperty() string

func (*SpecBindingForCompositePrice) ProtoMessage added in v0.74.0

func (*SpecBindingForCompositePrice) ProtoMessage()

func (*SpecBindingForCompositePrice) ProtoReflect added in v0.74.0

func (*SpecBindingForCompositePrice) Reset added in v0.74.0

func (x *SpecBindingForCompositePrice) Reset()

func (*SpecBindingForCompositePrice) String added in v0.74.0

type Spot added in v0.72.0

type Spot struct {

	// Asset ID of the underlying base asset for the spot product.
	BaseAsset string `protobuf:"bytes,1,opt,name=base_asset,json=baseAsset,proto3" json:"base_asset,omitempty"`
	// Asset ID of the underlying quote asset for the spot product.
	QuoteAsset string `protobuf:"bytes,2,opt,name=quote_asset,json=quoteAsset,proto3" json:"quote_asset,omitempty"`
	// contains filtered or unexported fields
}

Spot product definition

func (*Spot) Descriptor deprecated added in v0.72.0

func (*Spot) Descriptor() ([]byte, []int)

Deprecated: Use Spot.ProtoReflect.Descriptor instead.

func (*Spot) GetBaseAsset added in v0.72.0

func (x *Spot) GetBaseAsset() string

func (*Spot) GetQuoteAsset added in v0.72.0

func (x *Spot) GetQuoteAsset() string

func (Spot) IsProduct added in v0.73.0

func (Spot) IsProduct()

func (*Spot) ProtoMessage added in v0.72.0

func (*Spot) ProtoMessage()

func (*Spot) ProtoReflect added in v0.72.0

func (x *Spot) ProtoReflect() protoreflect.Message

func (*Spot) Reset added in v0.72.0

func (x *Spot) Reset()

func (*Spot) String added in v0.72.0

func (x *Spot) String() string

type SpotProduct added in v0.72.0

type SpotProduct struct {

	// Base asset ID.
	BaseAsset string `protobuf:"bytes,1,opt,name=base_asset,json=baseAsset,proto3" json:"base_asset,omitempty"`
	// Quote asset ID.
	QuoteAsset string `protobuf:"bytes,2,opt,name=quote_asset,json=quoteAsset,proto3" json:"quote_asset,omitempty"`
	// contains filtered or unexported fields
}

Spot product configuration

func (*SpotProduct) Descriptor deprecated added in v0.72.0

func (*SpotProduct) Descriptor() ([]byte, []int)

Deprecated: Use SpotProduct.ProtoReflect.Descriptor instead.

func (*SpotProduct) GetBaseAsset added in v0.72.0

func (x *SpotProduct) GetBaseAsset() string

func (*SpotProduct) GetQuoteAsset added in v0.72.0

func (x *SpotProduct) GetQuoteAsset() string

func (SpotProduct) IsProductConfiguration added in v0.73.0

func (SpotProduct) IsProductConfiguration()

func (*SpotProduct) ProtoMessage added in v0.72.0

func (*SpotProduct) ProtoMessage()

func (*SpotProduct) ProtoReflect added in v0.72.0

func (x *SpotProduct) ProtoReflect() protoreflect.Message

func (*SpotProduct) Reset added in v0.72.0

func (x *SpotProduct) Reset()

func (*SpotProduct) String added in v0.72.0

func (x *SpotProduct) String() string

type StakeDeposited

type StakeDeposited struct {

	// Ethereum Address of the user depositing stake (hex encode with 0x prefix)
	EthereumAddress string `protobuf:"bytes,1,opt,name=ethereum_address,json=ethereumAddress,proto3" json:"ethereum_address,omitempty"`
	// Hex encoded public key of the party receiving the stake deposit.
	VegaPublicKey string `protobuf:"bytes,2,opt,name=vega_public_key,json=vegaPublicKey,proto3" json:"vega_public_key,omitempty"`
	// Amount deposited as an unsigned base 10 integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// Time at which the block was produced.
	// Will be used to inform the core at what time
	// the stake started to be available.
	BlockTime int64 `protobuf:"varint,4,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// contains filtered or unexported fields
}

func (*StakeDeposited) Descriptor deprecated

func (*StakeDeposited) Descriptor() ([]byte, []int)

Deprecated: Use StakeDeposited.ProtoReflect.Descriptor instead.

func (*StakeDeposited) GetAmount

func (x *StakeDeposited) GetAmount() string

func (*StakeDeposited) GetBlockTime

func (x *StakeDeposited) GetBlockTime() int64

func (*StakeDeposited) GetEthereumAddress

func (x *StakeDeposited) GetEthereumAddress() string

func (*StakeDeposited) GetVegaPublicKey

func (x *StakeDeposited) GetVegaPublicKey() string

func (*StakeDeposited) ProtoMessage

func (*StakeDeposited) ProtoMessage()

func (*StakeDeposited) ProtoReflect

func (x *StakeDeposited) ProtoReflect() protoreflect.Message

func (*StakeDeposited) Reset

func (x *StakeDeposited) Reset()

func (*StakeDeposited) String

func (x *StakeDeposited) String() string

type StakeRemoved

type StakeRemoved struct {

	// Ethereum address of the user removing stake. This should be hex encoded with 0x prefix.
	EthereumAddress string `protobuf:"bytes,1,opt,name=ethereum_address,json=ethereumAddress,proto3" json:"ethereum_address,omitempty"`
	// Hex encoded public key of the party from which to remove stake.
	VegaPublicKey string `protobuf:"bytes,2,opt,name=vega_public_key,json=vegaPublicKey,proto3" json:"vega_public_key,omitempty"`
	// Amount removed as a base 10 unsigned integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// The time at which the block was produced
	// will be used to inform the core at what time
	// the stake was made unavailable.
	BlockTime int64 `protobuf:"varint,4,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// contains filtered or unexported fields
}

func (*StakeRemoved) Descriptor deprecated

func (*StakeRemoved) Descriptor() ([]byte, []int)

Deprecated: Use StakeRemoved.ProtoReflect.Descriptor instead.

func (*StakeRemoved) GetAmount

func (x *StakeRemoved) GetAmount() string

func (*StakeRemoved) GetBlockTime

func (x *StakeRemoved) GetBlockTime() int64

func (*StakeRemoved) GetEthereumAddress

func (x *StakeRemoved) GetEthereumAddress() string

func (*StakeRemoved) GetVegaPublicKey

func (x *StakeRemoved) GetVegaPublicKey() string

func (*StakeRemoved) ProtoMessage

func (*StakeRemoved) ProtoMessage()

func (*StakeRemoved) ProtoReflect

func (x *StakeRemoved) ProtoReflect() protoreflect.Message

func (*StakeRemoved) Reset

func (x *StakeRemoved) Reset()

func (*StakeRemoved) String

func (x *StakeRemoved) String() string

type StakeTotalSupply

type StakeTotalSupply struct {

	// Address of the staking asset
	TokenAddress string `protobuf:"bytes,1,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty"`
	// Total supply observed for the token as an unsigned based 10 integer scaled to the asset's decimal places.
	TotalSupply string `protobuf:"bytes,2,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"`
	// contains filtered or unexported fields
}

func (*StakeTotalSupply) Descriptor deprecated

func (*StakeTotalSupply) Descriptor() ([]byte, []int)

Deprecated: Use StakeTotalSupply.ProtoReflect.Descriptor instead.

func (*StakeTotalSupply) GetTokenAddress

func (x *StakeTotalSupply) GetTokenAddress() string

func (*StakeTotalSupply) GetTotalSupply

func (x *StakeTotalSupply) GetTotalSupply() string

func (*StakeTotalSupply) ProtoMessage

func (*StakeTotalSupply) ProtoMessage()

func (*StakeTotalSupply) ProtoReflect

func (x *StakeTotalSupply) ProtoReflect() protoreflect.Message

func (*StakeTotalSupply) Reset

func (x *StakeTotalSupply) Reset()

func (*StakeTotalSupply) String

func (x *StakeTotalSupply) String() string

type StakingEvent

type StakingEvent struct {

	// Index of the log in the transaction.
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// Block in which the transaction was added.
	Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"`
	// Action undertaken by the event.
	//
	// Types that are assignable to Action:
	//
	//	*StakingEvent_StakeDeposited
	//	*StakingEvent_StakeRemoved
	//	*StakingEvent_TotalSupply
	Action isStakingEvent_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

Event related to staking on the Vega network.

func (*StakingEvent) Descriptor deprecated

func (*StakingEvent) Descriptor() ([]byte, []int)

Deprecated: Use StakingEvent.ProtoReflect.Descriptor instead.

func (*StakingEvent) GetAction

func (m *StakingEvent) GetAction() isStakingEvent_Action

func (*StakingEvent) GetBlock

func (x *StakingEvent) GetBlock() uint64

func (*StakingEvent) GetIndex

func (x *StakingEvent) GetIndex() uint64

func (*StakingEvent) GetStakeDeposited

func (x *StakingEvent) GetStakeDeposited() *StakeDeposited

func (*StakingEvent) GetStakeRemoved

func (x *StakingEvent) GetStakeRemoved() *StakeRemoved

func (*StakingEvent) GetTotalSupply

func (x *StakingEvent) GetTotalSupply() *StakeTotalSupply

func (*StakingEvent) ProtoMessage

func (*StakingEvent) ProtoMessage()

func (*StakingEvent) ProtoReflect

func (x *StakingEvent) ProtoReflect() protoreflect.Message

func (*StakingEvent) Reset

func (x *StakingEvent) Reset()

func (*StakingEvent) String

func (x *StakingEvent) String() string

type StakingEvent_StakeDeposited

type StakingEvent_StakeDeposited struct {
	StakeDeposited *StakeDeposited `protobuf:"bytes,1001,opt,name=stake_deposited,json=stakeDeposited,proto3,oneof"`
}

type StakingEvent_StakeRemoved

type StakingEvent_StakeRemoved struct {
	StakeRemoved *StakeRemoved `protobuf:"bytes,1002,opt,name=stake_removed,json=stakeRemoved,proto3,oneof"`
}

type StakingEvent_TotalSupply

type StakingEvent_TotalSupply struct {
	TotalSupply *StakeTotalSupply `protobuf:"bytes,1003,opt,name=total_supply,json=totalSupply,proto3,oneof"`
}

type StakingTier added in v0.73.0

type StakingTier struct {

	// Required number of governance tokens ($VEGA) a referrer must have staked to
	// receive the multiplier.
	MinimumStakedTokens string `protobuf:"bytes,1,opt,name=minimum_staked_tokens,json=minimumStakedTokens,proto3" json:"minimum_staked_tokens,omitempty"`
	// Multiplier applied to the referral reward factor when calculating referral
	// rewards due to the referrer.
	ReferralRewardMultiplier string `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*StakingTier) Descriptor deprecated added in v0.73.0

func (*StakingTier) Descriptor() ([]byte, []int)

Deprecated: Use StakingTier.ProtoReflect.Descriptor instead.

func (*StakingTier) GetMinimumStakedTokens added in v0.73.0

func (x *StakingTier) GetMinimumStakedTokens() string

func (*StakingTier) GetReferralRewardMultiplier added in v0.73.0

func (x *StakingTier) GetReferralRewardMultiplier() string

func (*StakingTier) ProtoMessage added in v0.73.0

func (*StakingTier) ProtoMessage()

func (*StakingTier) ProtoReflect added in v0.73.0

func (x *StakingTier) ProtoReflect() protoreflect.Message

func (*StakingTier) Reset added in v0.73.0

func (x *StakingTier) Reset()

func (*StakingTier) String added in v0.73.0

func (x *StakingTier) String() string

type StateValueProposal

type StateValueProposal struct {

	// State variable ID.
	StateVarId string `protobuf:"bytes,1,opt,name=state_var_id,json=stateVarId,proto3" json:"state_var_id,omitempty"`
	// Event ID.
	EventId string `protobuf:"bytes,2,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"`
	// Key value tolerance triplets.
	Kvb []*KeyValueBundle `protobuf:"bytes,3,rep,name=kvb,proto3" json:"kvb,omitempty"`
	// contains filtered or unexported fields
}

func (*StateValueProposal) Descriptor deprecated

func (*StateValueProposal) Descriptor() ([]byte, []int)

Deprecated: Use StateValueProposal.ProtoReflect.Descriptor instead.

func (*StateValueProposal) GetEventId

func (x *StateValueProposal) GetEventId() string

func (*StateValueProposal) GetKvb

func (x *StateValueProposal) GetKvb() []*KeyValueBundle

func (*StateValueProposal) GetStateVarId

func (x *StateValueProposal) GetStateVarId() string

func (*StateValueProposal) ProtoMessage

func (*StateValueProposal) ProtoMessage()

func (*StateValueProposal) ProtoReflect

func (x *StateValueProposal) ProtoReflect() protoreflect.Message

func (*StateValueProposal) Reset

func (x *StateValueProposal) Reset()

func (*StateValueProposal) String

func (x *StateValueProposal) String() string

type StateVarValue

type StateVarValue struct {

	// Types that are assignable to Value:
	//
	//	*StateVarValue_ScalarVal
	//	*StateVarValue_VectorVal
	//	*StateVarValue_MatrixVal
	Value isStateVarValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*StateVarValue) Descriptor deprecated

func (*StateVarValue) Descriptor() ([]byte, []int)

Deprecated: Use StateVarValue.ProtoReflect.Descriptor instead.

func (*StateVarValue) GetMatrixVal

func (x *StateVarValue) GetMatrixVal() *MatrixValue

func (*StateVarValue) GetScalarVal

func (x *StateVarValue) GetScalarVal() *ScalarValue

func (*StateVarValue) GetValue

func (m *StateVarValue) GetValue() isStateVarValue_Value

func (*StateVarValue) GetVectorVal

func (x *StateVarValue) GetVectorVal() *VectorValue

func (*StateVarValue) ProtoMessage

func (*StateVarValue) ProtoMessage()

func (*StateVarValue) ProtoReflect

func (x *StateVarValue) ProtoReflect() protoreflect.Message

func (*StateVarValue) Reset

func (x *StateVarValue) Reset()

func (*StateVarValue) String

func (x *StateVarValue) String() string

type StateVarValue_MatrixVal

type StateVarValue_MatrixVal struct {
	MatrixVal *MatrixValue `protobuf:"bytes,3,opt,name=matrix_val,json=matrixVal,proto3,oneof"`
}

type StateVarValue_ScalarVal

type StateVarValue_ScalarVal struct {
	ScalarVal *ScalarValue `protobuf:"bytes,1,opt,name=scalar_val,json=scalarVal,proto3,oneof"`
}

type StateVarValue_VectorVal

type StateVarValue_VectorVal struct {
	VectorVal *VectorValue `protobuf:"bytes,2,opt,name=vector_val,json=vectorVal,proto3,oneof"`
}

type StopOrder added in v0.72.0

type StopOrder struct {

	// ID of this stop order
	// also the ID of the associated order if it is ever triggered
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The ID of the 'other' part of the OCO if 2 stop orders were submitted at once
	OcoLinkId *string `protobuf:"bytes,2,opt,name=oco_link_id,json=ocoLinkId,proto3,oneof" json:"oco_link_id,omitempty"`
	// Optional expiry timestamp.
	ExpiresAt *int64 `protobuf:"varint,3,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"`
	// Strategy to adopt if the expiry time is reached.
	ExpiryStrategy *StopOrder_ExpiryStrategy `` /* 145-byte string literal not displayed */
	// Trigger direction for this stop order.
	TriggerDirection StopOrder_TriggerDirection `` /* 147-byte string literal not displayed */
	// Status of the stop order.
	Status StopOrder_Status `protobuf:"varint,6,opt,name=status,proto3,enum=vega.StopOrder_Status" json:"status,omitempty"`
	// Creation time of the stop order.
	CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Last update of this stop order.
	UpdatedAt *int64 `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"`
	// ID of the order created once the trigger is hit.
	OrderId string `protobuf:"bytes,9,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// ID of the party that submitted this stop order.
	PartyId string `protobuf:"bytes,10,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// ID of the market the stop order is submitted to.
	MarketId string `protobuf:"bytes,11,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// An optional reason for why a stop order was rejected
	RejectionReason *StopOrder_RejectionReason `` /* 150-byte string literal not displayed */
	// Size override setting
	SizeOverrideSetting StopOrder_SizeOverrideSetting `` /* 162-byte string literal not displayed */
	// Size override value
	SizeOverrideValue *StopOrder_SizeOverrideValue `protobuf:"bytes,14,opt,name=size_override_value,json=sizeOverrideValue,proto3,oneof" json:"size_override_value,omitempty"`
	// Trigger that will need to be breached for the order
	// to be submitted to the book.
	//
	// Types that are assignable to Trigger:
	//
	//	*StopOrder_Price
	//	*StopOrder_TrailingPercentOffset
	Trigger isStopOrder_Trigger `protobuf_oneof:"trigger"`
	// contains filtered or unexported fields
}

func (*StopOrder) Descriptor deprecated added in v0.72.0

func (*StopOrder) Descriptor() ([]byte, []int)

Deprecated: Use StopOrder.ProtoReflect.Descriptor instead.

func (*StopOrder) GetCreatedAt added in v0.72.0

func (x *StopOrder) GetCreatedAt() int64

func (*StopOrder) GetExpiresAt added in v0.72.0

func (x *StopOrder) GetExpiresAt() int64

func (*StopOrder) GetExpiryStrategy added in v0.72.0

func (x *StopOrder) GetExpiryStrategy() StopOrder_ExpiryStrategy

func (*StopOrder) GetId added in v0.72.0

func (x *StopOrder) GetId() string

func (*StopOrder) GetMarketId added in v0.72.0

func (x *StopOrder) GetMarketId() string

func (*StopOrder) GetOcoLinkId added in v0.72.0

func (x *StopOrder) GetOcoLinkId() string

func (*StopOrder) GetOrderId added in v0.72.0

func (x *StopOrder) GetOrderId() string

func (*StopOrder) GetPartyId added in v0.72.0

func (x *StopOrder) GetPartyId() string

func (*StopOrder) GetPrice added in v0.72.0

func (x *StopOrder) GetPrice() string

func (*StopOrder) GetRejectionReason added in v0.73.0

func (x *StopOrder) GetRejectionReason() StopOrder_RejectionReason

func (*StopOrder) GetSizeOverrideSetting added in v0.74.0

func (x *StopOrder) GetSizeOverrideSetting() StopOrder_SizeOverrideSetting

func (*StopOrder) GetSizeOverrideValue added in v0.74.0

func (x *StopOrder) GetSizeOverrideValue() *StopOrder_SizeOverrideValue

func (*StopOrder) GetStatus added in v0.72.0

func (x *StopOrder) GetStatus() StopOrder_Status

func (*StopOrder) GetTrailingPercentOffset added in v0.72.0

func (x *StopOrder) GetTrailingPercentOffset() string

func (*StopOrder) GetTrigger added in v0.72.0

func (m *StopOrder) GetTrigger() isStopOrder_Trigger

func (*StopOrder) GetTriggerDirection added in v0.72.0

func (x *StopOrder) GetTriggerDirection() StopOrder_TriggerDirection

func (*StopOrder) GetUpdatedAt added in v0.72.0

func (x *StopOrder) GetUpdatedAt() int64

func (*StopOrder) ProtoMessage added in v0.72.0

func (*StopOrder) ProtoMessage()

func (*StopOrder) ProtoReflect added in v0.72.0

func (x *StopOrder) ProtoReflect() protoreflect.Message

func (*StopOrder) Reset added in v0.72.0

func (x *StopOrder) Reset()

func (*StopOrder) String added in v0.72.0

func (x *StopOrder) String() string

type StopOrder_ExpiryStrategy added in v0.72.0

type StopOrder_ExpiryStrategy int32
const (
	// Never valid
	StopOrder_EXPIRY_STRATEGY_UNSPECIFIED StopOrder_ExpiryStrategy = 0
	// Stop order should be cancelled if the expiry time is reached.
	StopOrder_EXPIRY_STRATEGY_CANCELS StopOrder_ExpiryStrategy = 1
	// Order should be submitted if the expiry time is reached.
	StopOrder_EXPIRY_STRATEGY_SUBMIT StopOrder_ExpiryStrategy = 2
)

func (StopOrder_ExpiryStrategy) Descriptor added in v0.72.0

func (StopOrder_ExpiryStrategy) Enum added in v0.72.0

func (StopOrder_ExpiryStrategy) EnumDescriptor deprecated added in v0.72.0

func (StopOrder_ExpiryStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use StopOrder_ExpiryStrategy.Descriptor instead.

func (StopOrder_ExpiryStrategy) GetEnums added in v0.76.0

func (StopOrder_ExpiryStrategy) GetEnums() map[int32]string

func (StopOrder_ExpiryStrategy) Number added in v0.72.0

func (StopOrder_ExpiryStrategy) String added in v0.72.0

func (x StopOrder_ExpiryStrategy) String() string

func (StopOrder_ExpiryStrategy) Type added in v0.72.0

type StopOrder_Price added in v0.72.0

type StopOrder_Price struct {
	// Fixed price at which the order will be submitted.
	Price string `protobuf:"bytes,100,opt,name=price,proto3,oneof"`
}

type StopOrder_RejectionReason added in v0.73.0

type StopOrder_RejectionReason int32
const (
	// Never valid
	StopOrder_REJECTION_REASON_UNSPECIFIED StopOrder_RejectionReason = 0
	// Trading is not allowed yet
	StopOrder_REJECTION_REASON_TRADING_NOT_ALLOWED StopOrder_RejectionReason = 1
	// Expiry of the stop order is in the past
	StopOrder_REJECTION_REASON_EXPIRY_IN_THE_PAST StopOrder_RejectionReason = 2
	// Stop orders submission must be reduce only
	StopOrder_REJECTION_REASON_MUST_BE_REDUCE_ONLY StopOrder_RejectionReason = 3
	// Party has reached the maximum stop orders allowed for this market
	StopOrder_REJECTION_REASON_MAX_STOP_ORDERS_PER_PARTY_REACHED StopOrder_RejectionReason = 4
	// Stop orders are not allowed if there is no open position
	StopOrder_REJECTION_REASON_STOP_ORDER_NOT_ALLOWED_WITHOUT_A_POSITION StopOrder_RejectionReason = 5
	// This stop order does not close the position
	StopOrder_REJECTION_REASON_STOP_ORDER_NOT_CLOSING_THE_POSITION StopOrder_RejectionReason = 6
	// The percentage value for the linked stop order is invalid
	StopOrder_REJECTION_REASON_STOP_ORDER_LINKED_PERCENTAGE_INVALID StopOrder_RejectionReason = 7
	// Stop orders are not allowed during the opening auction
	StopOrder_REJECTION_REASON_STOP_ORDER_NOT_ALLOWED_DURING_OPENING_AUCTION StopOrder_RejectionReason = 8
	// Stop OCO orders cannot have the same expiry timestamp
	StopOrder_REJECTION_REASON_STOP_ORDER_CANNOT_MATCH_OCO_EXPIRY_TIMES StopOrder_RejectionReason = 9
	// Stop orders with a position size override are not supported for spot markets
	StopOrder_REJECTION_REASON_STOP_ORDER_SIZE_OVERRIDE_UNSUPPORTED_FOR_SPOT StopOrder_RejectionReason = 10
)

func (StopOrder_RejectionReason) Descriptor added in v0.73.0

func (StopOrder_RejectionReason) Enum added in v0.73.0

func (StopOrder_RejectionReason) EnumDescriptor deprecated added in v0.73.0

func (StopOrder_RejectionReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use StopOrder_RejectionReason.Descriptor instead.

func (StopOrder_RejectionReason) GetEnums added in v0.76.0

func (StopOrder_RejectionReason) GetEnums() map[int32]string

func (StopOrder_RejectionReason) Number added in v0.73.0

func (StopOrder_RejectionReason) String added in v0.73.0

func (x StopOrder_RejectionReason) String() string

func (StopOrder_RejectionReason) Type added in v0.73.0

type StopOrder_SizeOverrideSetting added in v0.74.0

type StopOrder_SizeOverrideSetting int32
const (
	// Never valid
	StopOrder_SIZE_OVERRIDE_SETTING_UNSPECIFIED StopOrder_SizeOverrideSetting = 0
	// No override, the size within the contained normal order submission will be used
	StopOrder_SIZE_OVERRIDE_SETTING_NONE StopOrder_SizeOverrideSetting = 1
	// Use the total position of the trader
	StopOrder_SIZE_OVERRIDE_SETTING_POSITION StopOrder_SizeOverrideSetting = 2
)

func (StopOrder_SizeOverrideSetting) Descriptor added in v0.74.0

func (StopOrder_SizeOverrideSetting) Enum added in v0.74.0

func (StopOrder_SizeOverrideSetting) EnumDescriptor deprecated added in v0.74.0

func (StopOrder_SizeOverrideSetting) EnumDescriptor() ([]byte, []int)

Deprecated: Use StopOrder_SizeOverrideSetting.Descriptor instead.

func (StopOrder_SizeOverrideSetting) Number added in v0.74.0

func (StopOrder_SizeOverrideSetting) String added in v0.74.0

func (StopOrder_SizeOverrideSetting) Type added in v0.74.0

type StopOrder_SizeOverrideValue added in v0.74.0

type StopOrder_SizeOverrideValue struct {

	// Scaling percentage of the current position’s size
	Percentage string `protobuf:"bytes,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// contains filtered or unexported fields
}

func (*StopOrder_SizeOverrideValue) Descriptor deprecated added in v0.74.0

func (*StopOrder_SizeOverrideValue) Descriptor() ([]byte, []int)

Deprecated: Use StopOrder_SizeOverrideValue.ProtoReflect.Descriptor instead.

func (*StopOrder_SizeOverrideValue) GetPercentage added in v0.74.0

func (x *StopOrder_SizeOverrideValue) GetPercentage() string

func (*StopOrder_SizeOverrideValue) ProtoMessage added in v0.74.0

func (*StopOrder_SizeOverrideValue) ProtoMessage()

func (*StopOrder_SizeOverrideValue) ProtoReflect added in v0.74.0

func (*StopOrder_SizeOverrideValue) Reset added in v0.74.0

func (x *StopOrder_SizeOverrideValue) Reset()

func (*StopOrder_SizeOverrideValue) String added in v0.74.0

func (x *StopOrder_SizeOverrideValue) String() string

type StopOrder_Status added in v0.72.0

type StopOrder_Status int32
const (
	// Never valid
	StopOrder_STATUS_UNSPECIFIED StopOrder_Status = 0
	// Pending to be executed once the trigger is breached
	StopOrder_STATUS_PENDING StopOrder_Status = 1
	// Cancelled by the user
	StopOrder_STATUS_CANCELLED StopOrder_Status = 2
	// Stopped by the network, e.g: OCO on the other side has been triggered
	StopOrder_STATUS_STOPPED StopOrder_Status = 3
	// Stop order has been triggered and generated an order
	StopOrder_STATUS_TRIGGERED StopOrder_Status = 4
	// Stop order has expired
	StopOrder_STATUS_EXPIRED StopOrder_Status = 5
	// Stop order was rejected at submission
	StopOrder_STATUS_REJECTED StopOrder_Status = 6
)

func (StopOrder_Status) Descriptor added in v0.72.0

func (StopOrder_Status) Enum added in v0.72.0

func (StopOrder_Status) EnumDescriptor deprecated added in v0.72.0

func (StopOrder_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use StopOrder_Status.Descriptor instead.

func (StopOrder_Status) GetEnums added in v0.76.0

func (StopOrder_Status) GetEnums() map[int32]string

func (StopOrder_Status) Number added in v0.72.0

func (StopOrder_Status) String added in v0.72.0

func (x StopOrder_Status) String() string

func (StopOrder_Status) Type added in v0.72.0

type StopOrder_TrailingPercentOffset added in v0.72.0

type StopOrder_TrailingPercentOffset struct {
	// Trailing percentage at which the order will be submitted.
	// This should be expressed as a decimal value between 0 and 1, e.g. 0.01 for 1%
	TrailingPercentOffset string `protobuf:"bytes,101,opt,name=trailing_percent_offset,json=trailingPercentOffset,proto3,oneof"`
}

type StopOrder_TriggerDirection added in v0.72.0

type StopOrder_TriggerDirection int32
const (
	// Never valid
	StopOrder_TRIGGER_DIRECTION_UNSPECIFIED StopOrder_TriggerDirection = 0
	// Stop order is triggered once the price rises above a certain level
	StopOrder_TRIGGER_DIRECTION_RISES_ABOVE StopOrder_TriggerDirection = 1
	// Stop order is triggered once the price falls below a certain level
	StopOrder_TRIGGER_DIRECTION_FALLS_BELOW StopOrder_TriggerDirection = 2
)

func (StopOrder_TriggerDirection) Descriptor added in v0.72.0

func (StopOrder_TriggerDirection) Enum added in v0.72.0

func (StopOrder_TriggerDirection) EnumDescriptor deprecated added in v0.72.0

func (StopOrder_TriggerDirection) EnumDescriptor() ([]byte, []int)

Deprecated: Use StopOrder_TriggerDirection.Descriptor instead.

func (StopOrder_TriggerDirection) GetEnums added in v0.76.0

func (StopOrder_TriggerDirection) GetEnums() map[int32]string

func (StopOrder_TriggerDirection) Number added in v0.72.0

func (StopOrder_TriggerDirection) String added in v0.72.0

func (StopOrder_TriggerDirection) Type added in v0.72.0

type SuccessorConfiguration added in v0.72.0

type SuccessorConfiguration struct {

	// ID of the market that the successor should take over from.
	ParentMarketId string `protobuf:"bytes,1,opt,name=parent_market_id,json=parentMarketId,proto3" json:"parent_market_id,omitempty"`
	// A decimal value between or equal to 0 and 1, specifying the fraction of the insurance pool balance that is carried over from the parent market to the successor.
	InsurancePoolFraction string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configuration required to turn a new market proposal in to a successor market proposal.

func (*SuccessorConfiguration) Descriptor deprecated added in v0.72.0

func (*SuccessorConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use SuccessorConfiguration.ProtoReflect.Descriptor instead.

func (*SuccessorConfiguration) GetInsurancePoolFraction added in v0.72.0

func (x *SuccessorConfiguration) GetInsurancePoolFraction() string

func (*SuccessorConfiguration) GetParentMarketId added in v0.72.0

func (x *SuccessorConfiguration) GetParentMarketId() string

func (*SuccessorConfiguration) ProtoMessage added in v0.72.0

func (*SuccessorConfiguration) ProtoMessage()

func (*SuccessorConfiguration) ProtoReflect added in v0.72.0

func (x *SuccessorConfiguration) ProtoReflect() protoreflect.Message

func (*SuccessorConfiguration) Reset added in v0.72.0

func (x *SuccessorConfiguration) Reset()

func (*SuccessorConfiguration) String added in v0.72.0

func (x *SuccessorConfiguration) String() string

type TargetStakeParameters

type TargetStakeParameters struct {

	// Specifies length of time window expressed in seconds for target stake calculation.
	TimeWindow int64 `protobuf:"varint,1,opt,name=time_window,json=timeWindow,proto3" json:"time_window,omitempty"`
	// Specifies scaling factors used in target stake calculation.
	ScalingFactor float64 `protobuf:"fixed64,2,opt,name=scaling_factor,json=scalingFactor,proto3" json:"scaling_factor,omitempty"`
	// contains filtered or unexported fields
}

TargetStakeParameters contains parameters used in target stake calculation

func (*TargetStakeParameters) Descriptor deprecated

func (*TargetStakeParameters) Descriptor() ([]byte, []int)

Deprecated: Use TargetStakeParameters.ProtoReflect.Descriptor instead.

func (*TargetStakeParameters) GetScalingFactor

func (x *TargetStakeParameters) GetScalingFactor() float64

func (*TargetStakeParameters) GetTimeWindow

func (x *TargetStakeParameters) GetTimeWindow() int64

func (*TargetStakeParameters) ProtoMessage

func (*TargetStakeParameters) ProtoMessage()

func (*TargetStakeParameters) ProtoReflect

func (x *TargetStakeParameters) ProtoReflect() protoreflect.Message

func (*TargetStakeParameters) Reset

func (x *TargetStakeParameters) Reset()

func (*TargetStakeParameters) String

func (x *TargetStakeParameters) String() string

type TradableInstrument

type TradableInstrument struct {

	// Details for the underlying instrument.
	Instrument *Instrument `protobuf:"bytes,1,opt,name=instrument,proto3" json:"instrument,omitempty"`
	// Margin calculator for the instrument.
	MarginCalculator *MarginCalculator `protobuf:"bytes,2,opt,name=margin_calculator,json=marginCalculator,proto3" json:"margin_calculator,omitempty"`
	// Risk model for use by the instrument.
	//
	// Types that are assignable to RiskModel:
	//
	//	*TradableInstrument_LogNormalRiskModel
	//	*TradableInstrument_SimpleRiskModel
	RiskModel isTradableInstrument_RiskModel `protobuf_oneof:"risk_model"`
	// contains filtered or unexported fields
}

Tradable Instrument definition

func (*TradableInstrument) Descriptor deprecated

func (*TradableInstrument) Descriptor() ([]byte, []int)

Deprecated: Use TradableInstrument.ProtoReflect.Descriptor instead.

func (*TradableInstrument) GetInstrument

func (x *TradableInstrument) GetInstrument() *Instrument

func (*TradableInstrument) GetLogNormalRiskModel

func (x *TradableInstrument) GetLogNormalRiskModel() *LogNormalRiskModel

func (*TradableInstrument) GetMarginCalculator

func (x *TradableInstrument) GetMarginCalculator() *MarginCalculator

func (*TradableInstrument) GetRiskModel

func (m *TradableInstrument) GetRiskModel() isTradableInstrument_RiskModel

func (*TradableInstrument) GetSimpleRiskModel

func (x *TradableInstrument) GetSimpleRiskModel() *SimpleRiskModel

func (*TradableInstrument) ProtoMessage

func (*TradableInstrument) ProtoMessage()

func (*TradableInstrument) ProtoReflect

func (x *TradableInstrument) ProtoReflect() protoreflect.Message

func (*TradableInstrument) Reset

func (x *TradableInstrument) Reset()

func (*TradableInstrument) String

func (x *TradableInstrument) String() string

type TradableInstrument_LogNormalRiskModel

type TradableInstrument_LogNormalRiskModel struct {
	// Log normal.
	LogNormalRiskModel *LogNormalRiskModel `protobuf:"bytes,100,opt,name=log_normal_risk_model,json=logNormalRiskModel,proto3,oneof"`
}

type TradableInstrument_SimpleRiskModel

type TradableInstrument_SimpleRiskModel struct {
	// Simple.
	SimpleRiskModel *SimpleRiskModel `protobuf:"bytes,101,opt,name=simple_risk_model,json=simpleRiskModel,proto3,oneof"`
}

type Trade

type Trade struct {

	// Unique ID for the trade.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Market ID on which the trade occurred.
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Price for the trade, the price is an integer, for example `123456` is a correctly
	// formatted price of `1.23456` assuming market configured to 5 decimal places.
	Price string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"`
	// Size filled for the trade.
	Size uint64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	// Unique party ID for the buyer.
	Buyer string `protobuf:"bytes,5,opt,name=buyer,proto3" json:"buyer,omitempty"`
	// Unique party ID for the seller.
	Seller string `protobuf:"bytes,6,opt,name=seller,proto3" json:"seller,omitempty"`
	// Direction of the aggressive party e.g. SIDE_BUY or SIDE_SELL.
	Aggressor Side `protobuf:"varint,7,opt,name=aggressor,proto3,enum=vega.Side" json:"aggressor,omitempty"`
	// Identifier of the order from the buy side.
	BuyOrder string `protobuf:"bytes,8,opt,name=buy_order,json=buyOrder,proto3" json:"buy_order,omitempty"`
	// Identifier of the order from the sell side.
	SellOrder string `protobuf:"bytes,9,opt,name=sell_order,json=sellOrder,proto3" json:"sell_order,omitempty"`
	// Timestamp in Unix nanoseconds for when the trade occurred.
	Timestamp int64 `protobuf:"varint,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Type for the trade.
	Type Trade_Type `protobuf:"varint,11,opt,name=type,proto3,enum=vega.Trade_Type" json:"type,omitempty"`
	// Fee amount charged to the buyer party for the trade.
	BuyerFee *Fee `protobuf:"bytes,12,opt,name=buyer_fee,json=buyerFee,proto3" json:"buyer_fee,omitempty"`
	// Fee amount charged to the seller party for the trade.
	SellerFee *Fee `protobuf:"bytes,13,opt,name=seller_fee,json=sellerFee,proto3" json:"seller_fee,omitempty"`
	// Auction batch number that the buy side order was placed in.
	BuyerAuctionBatch uint64 `protobuf:"varint,14,opt,name=buyer_auction_batch,json=buyerAuctionBatch,proto3" json:"buyer_auction_batch,omitempty"`
	// Auction batch number that the sell side order was placed in.
	SellerAuctionBatch uint64 `protobuf:"varint,15,opt,name=seller_auction_batch,json=sellerAuctionBatch,proto3" json:"seller_auction_batch,omitempty"`
	// Price for the trade using asset decimals, as opposed to market decimals used
	// in the price field. This is only used in trade events for position updates.
	AssetPrice string `protobuf:"bytes,16,opt,name=asset_price,json=assetPrice,proto3" json:"asset_price,omitempty"`
	// contains filtered or unexported fields
}

A trade occurs when an aggressive order crosses one or more passive orders on the order book for a market on Vega

func (*Trade) Descriptor deprecated

func (*Trade) Descriptor() ([]byte, []int)

Deprecated: Use Trade.ProtoReflect.Descriptor instead.

func (*Trade) GetAggressor

func (x *Trade) GetAggressor() Side

func (*Trade) GetAssetPrice added in v0.73.3

func (x *Trade) GetAssetPrice() string

func (*Trade) GetBuyOrder

func (x *Trade) GetBuyOrder() string

func (*Trade) GetBuyer

func (x *Trade) GetBuyer() string

func (*Trade) GetBuyerAuctionBatch

func (x *Trade) GetBuyerAuctionBatch() uint64

func (*Trade) GetBuyerFee

func (x *Trade) GetBuyerFee() *Fee

func (*Trade) GetId

func (x *Trade) GetId() string

func (*Trade) GetMarketId

func (x *Trade) GetMarketId() string

func (*Trade) GetPrice

func (x *Trade) GetPrice() string

func (*Trade) GetSellOrder

func (x *Trade) GetSellOrder() string

func (*Trade) GetSeller

func (x *Trade) GetSeller() string

func (*Trade) GetSellerAuctionBatch

func (x *Trade) GetSellerAuctionBatch() uint64

func (*Trade) GetSellerFee

func (x *Trade) GetSellerFee() *Fee

func (*Trade) GetSize

func (x *Trade) GetSize() uint64

func (*Trade) GetTimestamp

func (x *Trade) GetTimestamp() int64

func (*Trade) GetType

func (x *Trade) GetType() Trade_Type

func (Trade) IsEvent

func (Trade) IsEvent()

func (*Trade) ProtoMessage

func (*Trade) ProtoMessage()

func (*Trade) ProtoReflect

func (x *Trade) ProtoReflect() protoreflect.Message

func (*Trade) Reset

func (x *Trade) Reset()

func (*Trade) SetIDs

func (t *Trade) SetIDs(aggressive, passive *Order, idx int)

func (*Trade) String

func (x *Trade) String() string

type TradeSet

type TradeSet struct {

	// Set of one or more trades.
	Trades []*Trade `protobuf:"bytes,1,rep,name=trades,proto3" json:"trades,omitempty"`
	// contains filtered or unexported fields
}

func (*TradeSet) Descriptor deprecated

func (*TradeSet) Descriptor() ([]byte, []int)

Deprecated: Use TradeSet.ProtoReflect.Descriptor instead.

func (*TradeSet) GetTrades

func (x *TradeSet) GetTrades() []*Trade

func (*TradeSet) ProtoMessage

func (*TradeSet) ProtoMessage()

func (*TradeSet) ProtoReflect

func (x *TradeSet) ProtoReflect() protoreflect.Message

func (*TradeSet) Reset

func (x *TradeSet) Reset()

func (*TradeSet) String

func (x *TradeSet) String() string

type Trade_Type

type Trade_Type int32

Type values for a trade

const (
	// Default value, always invalid
	Trade_TYPE_UNSPECIFIED Trade_Type = 0
	// Normal trading between two parties
	Trade_TYPE_DEFAULT Trade_Type = 1
	// Trading initiated by the network with another party on the book,
	// which helps to zero-out the positions of one or more distressed parties
	Trade_TYPE_NETWORK_CLOSE_OUT_GOOD Trade_Type = 2
	// Trading initiated by the network with another party off the book,
	// with a distressed party in order to zero-out the position of the party
	Trade_TYPE_NETWORK_CLOSE_OUT_BAD Trade_Type = 3
)

func (Trade_Type) Descriptor

func (Trade_Type) Descriptor() protoreflect.EnumDescriptor

func (Trade_Type) Enum

func (x Trade_Type) Enum() *Trade_Type

func (Trade_Type) EnumDescriptor deprecated

func (Trade_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Trade_Type.Descriptor instead.

func (Trade_Type) Number

func (x Trade_Type) Number() protoreflect.EnumNumber

func (Trade_Type) String

func (x Trade_Type) String() string

func (Trade_Type) Type

type Transfer

type Transfer struct {

	// Party ID for the owner of the transfer.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// Financial amount of an asset to transfer.
	Amount *FinancialAmount `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// Type of transfer, gives the reason for the transfer.
	Type TransferType `protobuf:"varint,3,opt,name=type,proto3,enum=vega.TransferType" json:"type,omitempty"`
	// Minimum amount. This field is an unsigned integer scaled to the asset's decimal places.
	MinAmount string `protobuf:"bytes,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"`
	// Market ID the transfer is for
	MarketId string `protobuf:"bytes,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// contains filtered or unexported fields
}

Represents a financial transfer within Vega

func (*Transfer) Descriptor deprecated

func (*Transfer) Descriptor() ([]byte, []int)

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetAmount

func (x *Transfer) GetAmount() *FinancialAmount

func (*Transfer) GetMarketId

func (x *Transfer) GetMarketId() string

func (*Transfer) GetMinAmount

func (x *Transfer) GetMinAmount() string

func (*Transfer) GetOwner

func (x *Transfer) GetOwner() string

func (*Transfer) GetType

func (x *Transfer) GetType() TransferType

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

func (x *Transfer) ProtoReflect() protoreflect.Message

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

type TransferRequest

type TransferRequest struct {

	// One or more accounts to transfer from.
	FromAccount []*Account `protobuf:"bytes,1,rep,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"`
	// One or more accounts to transfer to.
	ToAccount []*Account `protobuf:"bytes,2,rep,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"`
	// Amount to transfer for the asset. This field is an unsigned integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// Minimum amount that needs to be transferred for the transfer request. If this minimum isn't reached, it will error.
	// This field is an unsigned integer scaled to the asset's decimal places.
	MinAmount string `protobuf:"bytes,4,opt,name=min_amount,json=minAmount,proto3" json:"min_amount,omitempty"`
	// Asset ID of the asset being transferred.
	Asset string `protobuf:"bytes,5,opt,name=asset,proto3" json:"asset,omitempty"`
	// Type of the request for transfer.
	Type TransferType `protobuf:"varint,7,opt,name=type,proto3,enum=vega.TransferType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Represents a request to transfer from one set of accounts to another

func (*TransferRequest) Descriptor deprecated

func (*TransferRequest) Descriptor() ([]byte, []int)

Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead.

func (*TransferRequest) GetAmount

func (x *TransferRequest) GetAmount() string

func (*TransferRequest) GetAsset

func (x *TransferRequest) GetAsset() string

func (*TransferRequest) GetFromAccount

func (x *TransferRequest) GetFromAccount() []*Account

func (*TransferRequest) GetMinAmount

func (x *TransferRequest) GetMinAmount() string

func (*TransferRequest) GetToAccount

func (x *TransferRequest) GetToAccount() []*Account

func (*TransferRequest) GetType added in v0.56.0

func (x *TransferRequest) GetType() TransferType

func (*TransferRequest) ProtoMessage

func (*TransferRequest) ProtoMessage()

func (*TransferRequest) ProtoReflect

func (x *TransferRequest) ProtoReflect() protoreflect.Message

func (*TransferRequest) Reset

func (x *TransferRequest) Reset()

func (*TransferRequest) String

func (x *TransferRequest) String() string

type TransferType

type TransferType int32

Transfers can occur between parties on Vega, these are the types that indicate why a transfer took place

const (
	// Default value, always invalid
	TransferType_TRANSFER_TYPE_UNSPECIFIED TransferType = 0
	// Funds deducted after final settlement loss
	TransferType_TRANSFER_TYPE_LOSS TransferType = 1
	// Funds added to general account after final settlement gain
	TransferType_TRANSFER_TYPE_WIN TransferType = 2
	// Funds deducted from margin account after mark to market loss
	TransferType_TRANSFER_TYPE_MTM_LOSS TransferType = 4
	// Funds added to margin account after mark to market gain
	TransferType_TRANSFER_TYPE_MTM_WIN TransferType = 5
	// Funds transferred from general account to meet margin requirement
	TransferType_TRANSFER_TYPE_MARGIN_LOW TransferType = 6
	// Excess margin amount returned to general account
	TransferType_TRANSFER_TYPE_MARGIN_HIGH TransferType = 7
	// Margin confiscated from margin account to fulfil closeout
	TransferType_TRANSFER_TYPE_MARGIN_CONFISCATED TransferType = 8
	// Maker fee paid from general account
	TransferType_TRANSFER_TYPE_MAKER_FEE_PAY TransferType = 9
	// Maker fee received into general account
	TransferType_TRANSFER_TYPE_MAKER_FEE_RECEIVE TransferType = 10
	// Infrastructure fee paid from general account
	TransferType_TRANSFER_TYPE_INFRASTRUCTURE_FEE_PAY TransferType = 11
	// Infrastructure fee received into general account
	TransferType_TRANSFER_TYPE_INFRASTRUCTURE_FEE_DISTRIBUTE TransferType = 12
	// Liquidity fee paid from general account
	TransferType_TRANSFER_TYPE_LIQUIDITY_FEE_PAY TransferType = 13
	// Liquidity fee received into general account
	TransferType_TRANSFER_TYPE_LIQUIDITY_FEE_DISTRIBUTE TransferType = 14
	// Bond account funded from general account to meet required bond amount
	TransferType_TRANSFER_TYPE_BOND_LOW TransferType = 15
	// Bond returned to general account after liquidity commitment was reduced
	TransferType_TRANSFER_TYPE_BOND_HIGH TransferType = 16
	// Funds withdrawn from general account
	TransferType_TRANSFER_TYPE_WITHDRAW TransferType = 18
	// Funds deposited to general account
	TransferType_TRANSFER_TYPE_DEPOSIT TransferType = 19
	// Bond account penalised when liquidity commitment not met
	TransferType_TRANSFER_TYPE_BOND_SLASHING TransferType = 20
	// Reward payout received
	TransferType_TRANSFER_TYPE_REWARD_PAYOUT TransferType = 21
	// Internal Vega network instruction for the collateral engine to move funds from a user's general account into the pending transfers pool
	TransferType_TRANSFER_TYPE_TRANSFER_FUNDS_SEND TransferType = 22
	// Internal Vega network instruction for the collateral engine to move funds from the pending transfers pool account into the destination account
	TransferType_TRANSFER_TYPE_TRANSFER_FUNDS_DISTRIBUTE TransferType = 23
	// Market-related accounts emptied because market has closed
	TransferType_TRANSFER_TYPE_CLEAR_ACCOUNT TransferType = 24
	// Balances restored after network restart
	TransferType_TRANSFER_TYPE_CHECKPOINT_BALANCE_RESTORE TransferType = 25
	// Spot trade delivery
	TransferType_TRANSFER_TYPE_SPOT TransferType = 26
	// An internal instruction to transfer a quantity corresponding to an active spot order from a general account into a party holding account.
	TransferType_TRANSFER_TYPE_HOLDING_LOCK TransferType = 27
	// An internal instruction to transfer an excess quantity corresponding to an active spot order from a holding account into a party general account.
	TransferType_TRANSFER_TYPE_HOLDING_RELEASE TransferType = 28
	// Insurance pool fraction transfer from parent to successor market.
	TransferType_TRANSFER_TYPE_SUCCESSOR_INSURANCE_FRACTION TransferType = 29
	// Allocates liquidity fee earnings to each liquidity provider's network controlled liquidity fee account.
	TransferType_TRANSFER_TYPE_LIQUIDITY_FEE_ALLOCATE TransferType = 30
	// Distributes net fee earnings from liquidity provider's fee account to their general account.
	TransferType_TRANSFER_TYPE_LIQUIDITY_FEE_NET_DISTRIBUTE TransferType = 31
	// Applies SLA penalty by moving funds from party's bond account to market's insurance pool.
	TransferType_TRANSFER_TYPE_SLA_PENALTY_BOND_APPLY TransferType = 32
	// Applies SLA penalty by moving funds from the liquidity provider's fee account to market insurance pool.
	TransferType_TRANSFER_TYPE_SLA_PENALTY_LP_FEE_APPLY TransferType = 33
	// Collects penalties from the liquidity provider's fee account before the fee revenue is paid, and transfers it to the market's bonus distribution account.
	TransferType_TRANSFER_TYPE_LIQUIDITY_FEE_UNPAID_COLLECT TransferType = 34
	// Distributes performance bonus from market bonus to liquidity provider's general account.
	TransferType_TRANSFER_TYPE_SLA_PERFORMANCE_BONUS_DISTRIBUTE TransferType = 35
	// Funds deducted from margin account after a perpetuals funding loss.
	TransferType_TRANSFER_TYPE_PERPETUALS_FUNDING_LOSS TransferType = 36
	// Funds added to margin account after a perpetuals funding gain.
	TransferType_TRANSFER_TYPE_PERPETUALS_FUNDING_WIN TransferType = 37
	// Funds moved from the vesting account to the vested account once the vesting period is reached.
	TransferType_TRANSFER_TYPE_REWARDS_VESTED TransferType = 38
	// Fee referrer reward paid from general account.
	TransferType_TRANSFER_TYPE_FEE_REFERRER_REWARD_PAY TransferType = 39
	// Fee referrer reward received into general account of the referrer.
	TransferType_TRANSFER_TYPE_FEE_REFERRER_REWARD_DISTRIBUTE TransferType = 44
	// Funds transferred from general account to meet order margin requirement in isolated margin mode.
	TransferType_TRANSFER_TYPE_ORDER_MARGIN_LOW TransferType = 45
	// Excess order margin amount returned to general account.
	TransferType_TRANSFER_TYPE_ORDER_MARGIN_HIGH TransferType = 46
	// Transfer from order margin account to margin account due to increase of position.
	TransferType_TRANSFER_TYPE_ISOLATED_MARGIN_LOW TransferType = 47
	// Transfer from excess order margin account to general account.
	TransferType_TRANSFER_TYPE_ISOLATED_MARGIN_HIGH TransferType = 48
	// Transfer from a party's general account to their AMM's general account.
	TransferType_TRANSFER_TYPE_AMM_LOW TransferType = 49
	// Transfer from an AMM's general account to their owner's general account.
	TransferType_TRANSFER_TYPE_AMM_HIGH TransferType = 50
	// Transfer releasing an AMM's general account upon closure.
	TransferType_TRANSFER_TYPE_AMM_RELEASE TransferType = 51
	// Treasury fee paid from party's general account.
	TransferType_TRANSFER_TYPE_TREASURY_FEE_PAY TransferType = 52
	// Buy-back fee paid into network buy-back account.
	TransferType_TRANSFER_TYPE_BUY_BACK_FEE_PAY TransferType = 53
	// High-volume maker fee paid from general account
	TransferType_TRANSFER_TYPE_HIGH_MAKER_FEE_REBATE_PAY TransferType = 54
	// Maker fee received into general account
	TransferType_TRANSFER_TYPE_HIGH_MAKER_FEE_REBATE_RECEIVE TransferType = 55
)

func (TransferType) Descriptor

func (TransferType) Enum

func (x TransferType) Enum() *TransferType

func (TransferType) EnumDescriptor deprecated

func (TransferType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TransferType.Descriptor instead.

func (TransferType) GetEnums added in v0.76.0

func (TransferType) GetEnums() map[int32]string

func (TransferType) Number

func (TransferType) String

func (x TransferType) String() string

func (TransferType) Type

type UpdateAsset

type UpdateAsset struct {

	// Asset ID the update is for.
	AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
	// Changes to apply on an existing asset.
	Changes *AssetDetailsUpdate `protobuf:"bytes,2,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

Update an existing asset on Vega

func (*UpdateAsset) Descriptor deprecated

func (*UpdateAsset) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAsset.ProtoReflect.Descriptor instead.

func (*UpdateAsset) GetAssetId

func (x *UpdateAsset) GetAssetId() string

func (*UpdateAsset) GetChanges

func (x *UpdateAsset) GetChanges() *AssetDetailsUpdate

func (UpdateAsset) IsProposalChange

func (UpdateAsset) IsProposalChange()

func (*UpdateAsset) ProtoMessage

func (*UpdateAsset) ProtoMessage()

func (*UpdateAsset) ProtoReflect

func (x *UpdateAsset) ProtoReflect() protoreflect.Message

func (*UpdateAsset) Reset

func (x *UpdateAsset) Reset()

func (*UpdateAsset) String

func (x *UpdateAsset) String() string

type UpdateFutureProduct

type UpdateFutureProduct struct {

	// Human-readable name/abbreviation of the quote name.
	QuoteName string `protobuf:"bytes,1,opt,name=quote_name,json=quoteName,proto3" json:"quote_name,omitempty"`
	// The data source spec describing the data of settlement data.
	DataSourceSpecForSettlementData *DataSourceDefinition `` /* 162-byte string literal not displayed */
	// The data source spec describing the data source for trading termination.
	DataSourceSpecForTradingTermination *DataSourceDefinition `` /* 174-byte string literal not displayed */
	// The binding between the data source spec and the settlement data.
	DataSourceSpecBinding *DataSourceSpecToFutureBinding `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

Future product configuration

func (*UpdateFutureProduct) Descriptor deprecated

func (*UpdateFutureProduct) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFutureProduct.ProtoReflect.Descriptor instead.

func (*UpdateFutureProduct) GetDataSourceSpecBinding added in v0.61.0

func (x *UpdateFutureProduct) GetDataSourceSpecBinding() *DataSourceSpecToFutureBinding

func (*UpdateFutureProduct) GetDataSourceSpecForSettlementData added in v0.61.0

func (x *UpdateFutureProduct) GetDataSourceSpecForSettlementData() *DataSourceDefinition

func (*UpdateFutureProduct) GetDataSourceSpecForTradingTermination added in v0.61.0

func (x *UpdateFutureProduct) GetDataSourceSpecForTradingTermination() *DataSourceDefinition

func (*UpdateFutureProduct) GetQuoteName

func (x *UpdateFutureProduct) GetQuoteName() string

func (UpdateFutureProduct) IsUpdateProductConfiguration added in v0.73.0

func (UpdateFutureProduct) IsUpdateProductConfiguration()

func (*UpdateFutureProduct) ProtoMessage

func (*UpdateFutureProduct) ProtoMessage()

func (*UpdateFutureProduct) ProtoReflect

func (x *UpdateFutureProduct) ProtoReflect() protoreflect.Message

func (*UpdateFutureProduct) Reset

func (x *UpdateFutureProduct) Reset()

func (*UpdateFutureProduct) String

func (x *UpdateFutureProduct) String() string

type UpdateInstrumentConfiguration

type UpdateInstrumentConfiguration struct {

	// Instrument code, human-readable shortcode used to describe the instrument.
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// Instrument name
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Product specification.
	//
	// Types that are assignable to Product:
	//
	//	*UpdateInstrumentConfiguration_Future
	//	*UpdateInstrumentConfiguration_Perpetual
	Product isUpdateInstrumentConfiguration_Product `protobuf_oneof:"product"`
	// contains filtered or unexported fields
}

Instrument configuration

func (*UpdateInstrumentConfiguration) Descriptor deprecated

func (*UpdateInstrumentConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use UpdateInstrumentConfiguration.ProtoReflect.Descriptor instead.

func (*UpdateInstrumentConfiguration) GetCode

func (*UpdateInstrumentConfiguration) GetFuture

func (*UpdateInstrumentConfiguration) GetName added in v0.74.0

func (*UpdateInstrumentConfiguration) GetPerpetual added in v0.73.0

func (*UpdateInstrumentConfiguration) GetProduct

func (m *UpdateInstrumentConfiguration) GetProduct() isUpdateInstrumentConfiguration_Product

func (*UpdateInstrumentConfiguration) ProtoMessage

func (*UpdateInstrumentConfiguration) ProtoMessage()

func (*UpdateInstrumentConfiguration) ProtoReflect

func (*UpdateInstrumentConfiguration) Reset

func (x *UpdateInstrumentConfiguration) Reset()

func (*UpdateInstrumentConfiguration) String

type UpdateInstrumentConfiguration_Future

type UpdateInstrumentConfiguration_Future struct {
	// Future.
	Future *UpdateFutureProduct `protobuf:"bytes,100,opt,name=future,proto3,oneof"`
}

type UpdateInstrumentConfiguration_Perpetual added in v0.73.0

type UpdateInstrumentConfiguration_Perpetual struct {
	// Perpetual.
	Perpetual *UpdatePerpetualProduct `protobuf:"bytes,101,opt,name=perpetual,proto3,oneof"`
}

type UpdateMarket

type UpdateMarket struct {

	// Market ID the update is for.
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Updated configuration of the futures market.
	Changes *UpdateMarketConfiguration `protobuf:"bytes,2,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

Update an existing market on Vega

func (*UpdateMarket) Descriptor deprecated

func (*UpdateMarket) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMarket.ProtoReflect.Descriptor instead.

func (*UpdateMarket) GetChanges

func (x *UpdateMarket) GetChanges() *UpdateMarketConfiguration

func (*UpdateMarket) GetMarketId

func (x *UpdateMarket) GetMarketId() string

func (UpdateMarket) IsProposalChange

func (UpdateMarket) IsProposalChange()

func (*UpdateMarket) ProtoMessage

func (*UpdateMarket) ProtoMessage()

func (*UpdateMarket) ProtoReflect

func (x *UpdateMarket) ProtoReflect() protoreflect.Message

func (*UpdateMarket) Reset

func (x *UpdateMarket) Reset()

func (*UpdateMarket) String

func (x *UpdateMarket) String() string

type UpdateMarketConfiguration

type UpdateMarketConfiguration struct {

	// Updated futures market instrument configuration.
	Instrument *UpdateInstrumentConfiguration `protobuf:"bytes,1,opt,name=instrument,proto3" json:"instrument,omitempty"`
	// Optional futures market metadata, tags.
	Metadata []string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// Price monitoring parameters.
	PriceMonitoringParameters *PriceMonitoringParameters `` /* 138-byte string literal not displayed */
	// Liquidity monitoring parameters.
	LiquidityMonitoringParameters *LiquidityMonitoringParameters `` /* 150-byte string literal not displayed */
	// Updated futures market risk model parameters.
	//
	// Types that are assignable to RiskParameters:
	//
	//	*UpdateMarketConfiguration_Simple
	//	*UpdateMarketConfiguration_LogNormal
	RiskParameters isUpdateMarketConfiguration_RiskParameters `protobuf_oneof:"risk_parameters"`
	// DEPRECATED: Use liquidity SLA parameters instead.
	// Percentage move up and down from the mid price which specifies the range of
	// price levels over which automated liquidity provisions will be deployed.
	LpPriceRange *string `protobuf:"bytes,5,opt,name=lp_price_range,json=lpPriceRange,proto3,oneof" json:"lp_price_range,omitempty"`
	// Linear slippage factor is used to cap the slippage component of maintenance margin - it is applied to the slippage volume.
	LinearSlippageFactor string `protobuf:"bytes,6,opt,name=linear_slippage_factor,json=linearSlippageFactor,proto3" json:"linear_slippage_factor,omitempty"`
	// Quadratic slippage factor is used to cap the slippage component of maintenance margin - it is applied to the square of the slippage volume.
	//
	// Deprecated: Do not use.
	QuadraticSlippageFactor string `` /* 132-byte string literal not displayed */
	// Liquidity SLA parameters
	LiquiditySlaParameters *LiquiditySLAParameters `` /* 129-byte string literal not displayed */
	// Specifies how the liquidity fee for the market will be calculated.
	LiquidityFeeSettings *LiquidityFeeSettings `protobuf:"bytes,9,opt,name=liquidity_fee_settings,json=liquidityFeeSettings,proto3" json:"liquidity_fee_settings,omitempty"`
	// Liquidation strategy parameters
	LiquidationStrategy *LiquidationStrategy `protobuf:"bytes,10,opt,name=liquidation_strategy,json=liquidationStrategy,proto3" json:"liquidation_strategy,omitempty"`
	// Mark price configuration.
	MarkPriceConfiguration *CompositePriceConfiguration `` /* 130-byte string literal not displayed */
	// The market tick size defines the minimum change in quote price for the market
	TickSize string `protobuf:"bytes,12,opt,name=tick_size,json=tickSize,proto3" json:"tick_size,omitempty"`
	// If enabled aggressive orders sent to the market will be delayed by the configured number of blocks
	EnableTransactionReordering bool `` /* 146-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configuration to update a futures market on Vega

func (*UpdateMarketConfiguration) Descriptor deprecated

func (*UpdateMarketConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMarketConfiguration.ProtoReflect.Descriptor instead.

func (*UpdateMarketConfiguration) GetEnableTransactionReordering added in v0.77.0

func (x *UpdateMarketConfiguration) GetEnableTransactionReordering() bool

func (*UpdateMarketConfiguration) GetInstrument

func (*UpdateMarketConfiguration) GetLinearSlippageFactor added in v0.68.0

func (x *UpdateMarketConfiguration) GetLinearSlippageFactor() string

func (*UpdateMarketConfiguration) GetLiquidationStrategy added in v0.74.0

func (x *UpdateMarketConfiguration) GetLiquidationStrategy() *LiquidationStrategy

func (*UpdateMarketConfiguration) GetLiquidityFeeSettings added in v0.74.0

func (x *UpdateMarketConfiguration) GetLiquidityFeeSettings() *LiquidityFeeSettings

func (*UpdateMarketConfiguration) GetLiquidityMonitoringParameters

func (x *UpdateMarketConfiguration) GetLiquidityMonitoringParameters() *LiquidityMonitoringParameters

func (*UpdateMarketConfiguration) GetLiquiditySlaParameters added in v0.73.0

func (x *UpdateMarketConfiguration) GetLiquiditySlaParameters() *LiquiditySLAParameters

func (*UpdateMarketConfiguration) GetLogNormal

func (x *UpdateMarketConfiguration) GetLogNormal() *LogNormalRiskModel

func (*UpdateMarketConfiguration) GetLpPriceRange added in v0.65.0

func (x *UpdateMarketConfiguration) GetLpPriceRange() string

func (*UpdateMarketConfiguration) GetMarkPriceConfiguration added in v0.74.0

func (x *UpdateMarketConfiguration) GetMarkPriceConfiguration() *CompositePriceConfiguration

func (*UpdateMarketConfiguration) GetMetadata

func (x *UpdateMarketConfiguration) GetMetadata() []string

func (*UpdateMarketConfiguration) GetPriceMonitoringParameters

func (x *UpdateMarketConfiguration) GetPriceMonitoringParameters() *PriceMonitoringParameters

func (*UpdateMarketConfiguration) GetQuadraticSlippageFactor deprecated added in v0.68.0

func (x *UpdateMarketConfiguration) GetQuadraticSlippageFactor() string

Deprecated: Do not use.

func (*UpdateMarketConfiguration) GetRiskParameters

func (m *UpdateMarketConfiguration) GetRiskParameters() isUpdateMarketConfiguration_RiskParameters

func (*UpdateMarketConfiguration) GetSimple

func (*UpdateMarketConfiguration) GetTickSize added in v0.75.0

func (x *UpdateMarketConfiguration) GetTickSize() string

func (*UpdateMarketConfiguration) ProtoMessage

func (*UpdateMarketConfiguration) ProtoMessage()

func (*UpdateMarketConfiguration) ProtoReflect

func (*UpdateMarketConfiguration) Reset

func (x *UpdateMarketConfiguration) Reset()

func (*UpdateMarketConfiguration) String

func (x *UpdateMarketConfiguration) String() string

type UpdateMarketConfiguration_LogNormal

type UpdateMarketConfiguration_LogNormal struct {
	// Log normal risk model parameters, valid only if MODEL_LOG_NORMAL is selected.
	LogNormal *LogNormalRiskModel `protobuf:"bytes,101,opt,name=log_normal,json=logNormal,proto3,oneof"`
}

func (UpdateMarketConfiguration_LogNormal) IsUpdateMarketRiskParameters

func (UpdateMarketConfiguration_LogNormal) IsUpdateMarketRiskParameters()

type UpdateMarketConfiguration_Simple

type UpdateMarketConfiguration_Simple struct {
	// Simple risk model parameters, valid only if MODEL_SIMPLE is selected.
	Simple *SimpleModelParams `protobuf:"bytes,100,opt,name=simple,proto3,oneof"`
}

func (UpdateMarketConfiguration_Simple) IsUpdateMarketRiskParameters

func (UpdateMarketConfiguration_Simple) IsUpdateMarketRiskParameters()

type UpdateMarketState added in v0.73.0

type UpdateMarketState struct {

	// Configuration for governance-initiated change of a market's state
	Changes *UpdateMarketStateConfiguration `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMarketState) Descriptor deprecated added in v0.73.0

func (*UpdateMarketState) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMarketState.ProtoReflect.Descriptor instead.

func (*UpdateMarketState) GetChanges added in v0.73.0

func (UpdateMarketState) IsProposalChange added in v0.73.0

func (UpdateMarketState) IsProposalChange()

func (*UpdateMarketState) ProtoMessage added in v0.73.0

func (*UpdateMarketState) ProtoMessage()

func (*UpdateMarketState) ProtoReflect added in v0.73.0

func (x *UpdateMarketState) ProtoReflect() protoreflect.Message

func (*UpdateMarketState) Reset added in v0.73.0

func (x *UpdateMarketState) Reset()

func (*UpdateMarketState) String added in v0.73.0

func (x *UpdateMarketState) String() string

type UpdateMarketStateConfiguration added in v0.73.0

type UpdateMarketStateConfiguration struct {

	// ID of the market
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Type of the market update
	UpdateType MarketStateUpdateType `protobuf:"varint,2,opt,name=update_type,json=updateType,proto3,enum=vega.MarketStateUpdateType" json:"update_type,omitempty"`
	// Settlement price, relevant only for market termination for futures markets
	Price *string `protobuf:"bytes,3,opt,name=price,proto3,oneof" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMarketStateConfiguration) Descriptor deprecated added in v0.73.0

func (*UpdateMarketStateConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMarketStateConfiguration.ProtoReflect.Descriptor instead.

func (*UpdateMarketStateConfiguration) GetMarketId added in v0.73.0

func (x *UpdateMarketStateConfiguration) GetMarketId() string

func (*UpdateMarketStateConfiguration) GetPrice added in v0.73.0

func (x *UpdateMarketStateConfiguration) GetPrice() string

func (*UpdateMarketStateConfiguration) GetUpdateType added in v0.73.0

func (*UpdateMarketStateConfiguration) ProtoMessage added in v0.73.0

func (*UpdateMarketStateConfiguration) ProtoMessage()

func (*UpdateMarketStateConfiguration) ProtoReflect added in v0.73.0

func (*UpdateMarketStateConfiguration) Reset added in v0.73.0

func (x *UpdateMarketStateConfiguration) Reset()

func (*UpdateMarketStateConfiguration) String added in v0.73.0

type UpdateNetworkParameter

type UpdateNetworkParameter struct {

	// The network parameter to update.
	Changes *NetworkParameter `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

Update network configuration on Vega

func (*UpdateNetworkParameter) Descriptor deprecated

func (*UpdateNetworkParameter) Descriptor() ([]byte, []int)

Deprecated: Use UpdateNetworkParameter.ProtoReflect.Descriptor instead.

func (*UpdateNetworkParameter) GetChanges

func (x *UpdateNetworkParameter) GetChanges() *NetworkParameter

func (UpdateNetworkParameter) IsProposalChange

func (UpdateNetworkParameter) IsProposalChange()

func (*UpdateNetworkParameter) ProtoMessage

func (*UpdateNetworkParameter) ProtoMessage()

func (*UpdateNetworkParameter) ProtoReflect

func (x *UpdateNetworkParameter) ProtoReflect() protoreflect.Message

func (*UpdateNetworkParameter) Reset

func (x *UpdateNetworkParameter) Reset()

func (*UpdateNetworkParameter) String

func (x *UpdateNetworkParameter) String() string

type UpdatePerpetualProduct added in v0.73.0

type UpdatePerpetualProduct struct {

	// Human-readable name/abbreviation of the quote name.
	QuoteName string `protobuf:"bytes,1,opt,name=quote_name,json=quoteName,proto3" json:"quote_name,omitempty"`
	// Controls how much the upcoming funding payment liability contributes to party's margin, in the range [0, 1].
	MarginFundingFactor string `protobuf:"bytes,2,opt,name=margin_funding_factor,json=marginFundingFactor,proto3" json:"margin_funding_factor,omitempty"`
	// Continuously compounded interest rate used in funding rate calculation, in the range [-1, 1].
	InterestRate string `protobuf:"bytes,3,opt,name=interest_rate,json=interestRate,proto3" json:"interest_rate,omitempty"`
	// Lower bound for the clamp function used as part of the funding rate calculation, in the range [-1, 1].
	ClampLowerBound string `protobuf:"bytes,4,opt,name=clamp_lower_bound,json=clampLowerBound,proto3" json:"clamp_lower_bound,omitempty"`
	// Upper bound for the clamp function used as part of the funding rate calculation, in the range [-1, 1].
	ClampUpperBound string `protobuf:"bytes,5,opt,name=clamp_upper_bound,json=clampUpperBound,proto3" json:"clamp_upper_bound,omitempty"`
	// Data source spec describing the data source for settlement schedule.
	DataSourceSpecForSettlementSchedule *DataSourceDefinition `` /* 174-byte string literal not displayed */
	// Data source spec describing the data source for settlement.
	DataSourceSpecForSettlementData *DataSourceDefinition `` /* 162-byte string literal not displayed */
	// Binding between the data source spec and the settlement data.
	DataSourceSpecBinding *DataSourceSpecToPerpetualBinding `` /* 128-byte string literal not displayed */
	// Factor applied to funding-rates. This scales the impact that spot price deviations have on funding payments.
	FundingRateScalingFactor *string `` /* 143-byte string literal not displayed */
	// Lower bound for the funding-rate such that the funding-rate will never be lower than this value.
	FundingRateLowerBound *string `` /* 135-byte string literal not displayed */
	// Upper bound for the funding-rate such that the funding-rate will never be higher than this value.
	FundingRateUpperBound *string `` /* 135-byte string literal not displayed */
	// Configuration for the internal composite price used in funding payment calculation.
	InternalCompositePriceConfiguration *CompositePriceConfiguration `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

Perpetual product configuration

func (*UpdatePerpetualProduct) Descriptor deprecated added in v0.73.0

func (*UpdatePerpetualProduct) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePerpetualProduct.ProtoReflect.Descriptor instead.

func (*UpdatePerpetualProduct) GetClampLowerBound added in v0.73.0

func (x *UpdatePerpetualProduct) GetClampLowerBound() string

func (*UpdatePerpetualProduct) GetClampUpperBound added in v0.73.0

func (x *UpdatePerpetualProduct) GetClampUpperBound() string

func (*UpdatePerpetualProduct) GetDataSourceSpecBinding added in v0.73.0

func (x *UpdatePerpetualProduct) GetDataSourceSpecBinding() *DataSourceSpecToPerpetualBinding

func (*UpdatePerpetualProduct) GetDataSourceSpecForSettlementData added in v0.73.0

func (x *UpdatePerpetualProduct) GetDataSourceSpecForSettlementData() *DataSourceDefinition

func (*UpdatePerpetualProduct) GetDataSourceSpecForSettlementSchedule added in v0.73.0

func (x *UpdatePerpetualProduct) GetDataSourceSpecForSettlementSchedule() *DataSourceDefinition

func (*UpdatePerpetualProduct) GetFundingRateLowerBound added in v0.74.0

func (x *UpdatePerpetualProduct) GetFundingRateLowerBound() string

func (*UpdatePerpetualProduct) GetFundingRateScalingFactor added in v0.74.0

func (x *UpdatePerpetualProduct) GetFundingRateScalingFactor() string

func (*UpdatePerpetualProduct) GetFundingRateUpperBound added in v0.74.0

func (x *UpdatePerpetualProduct) GetFundingRateUpperBound() string

func (*UpdatePerpetualProduct) GetInterestRate added in v0.73.0

func (x *UpdatePerpetualProduct) GetInterestRate() string

func (*UpdatePerpetualProduct) GetInternalCompositePriceConfiguration added in v0.74.0

func (x *UpdatePerpetualProduct) GetInternalCompositePriceConfiguration() *CompositePriceConfiguration

func (*UpdatePerpetualProduct) GetMarginFundingFactor added in v0.73.0

func (x *UpdatePerpetualProduct) GetMarginFundingFactor() string

func (*UpdatePerpetualProduct) GetQuoteName added in v0.73.0

func (x *UpdatePerpetualProduct) GetQuoteName() string

func (UpdatePerpetualProduct) IsUpdateProductConfiguration added in v0.73.0

func (UpdatePerpetualProduct) IsUpdateProductConfiguration()

func (*UpdatePerpetualProduct) ProtoMessage added in v0.73.0

func (*UpdatePerpetualProduct) ProtoMessage()

func (*UpdatePerpetualProduct) ProtoReflect added in v0.73.0

func (x *UpdatePerpetualProduct) ProtoReflect() protoreflect.Message

func (*UpdatePerpetualProduct) Reset added in v0.73.0

func (x *UpdatePerpetualProduct) Reset()

func (*UpdatePerpetualProduct) String added in v0.73.0

func (x *UpdatePerpetualProduct) String() string

type UpdateReferralProgram added in v0.73.0

type UpdateReferralProgram struct {

	// Configuration for change to update a referral program.
	Changes *ReferralProgramChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateReferralProgram) Descriptor deprecated added in v0.73.0

func (*UpdateReferralProgram) Descriptor() ([]byte, []int)

Deprecated: Use UpdateReferralProgram.ProtoReflect.Descriptor instead.

func (*UpdateReferralProgram) GetChanges added in v0.73.0

func (UpdateReferralProgram) IsProposalChange added in v0.73.0

func (UpdateReferralProgram) IsProposalChange()

func (*UpdateReferralProgram) ProtoMessage added in v0.73.0

func (*UpdateReferralProgram) ProtoMessage()

func (*UpdateReferralProgram) ProtoReflect added in v0.73.0

func (x *UpdateReferralProgram) ProtoReflect() protoreflect.Message

func (*UpdateReferralProgram) Reset added in v0.73.0

func (x *UpdateReferralProgram) Reset()

func (*UpdateReferralProgram) String added in v0.73.0

func (x *UpdateReferralProgram) String() string

type UpdateSpotInstrumentConfiguration added in v0.76.0

type UpdateSpotInstrumentConfiguration struct {

	// Instrument code, human-readable shortcode used to describe the instrument.
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// Instrument name
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateSpotInstrumentConfiguration) Descriptor deprecated added in v0.76.0

func (*UpdateSpotInstrumentConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSpotInstrumentConfiguration.ProtoReflect.Descriptor instead.

func (*UpdateSpotInstrumentConfiguration) GetCode added in v0.76.0

func (*UpdateSpotInstrumentConfiguration) GetName added in v0.76.0

func (*UpdateSpotInstrumentConfiguration) ProtoMessage added in v0.76.0

func (*UpdateSpotInstrumentConfiguration) ProtoMessage()

func (*UpdateSpotInstrumentConfiguration) ProtoReflect added in v0.76.0

func (*UpdateSpotInstrumentConfiguration) Reset added in v0.76.0

func (*UpdateSpotInstrumentConfiguration) String added in v0.76.0

type UpdateSpotMarket added in v0.72.0

type UpdateSpotMarket struct {

	// Market ID the update is for.
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Updated configuration of the spot market.
	Changes *UpdateSpotMarketConfiguration `protobuf:"bytes,2,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

Update an existing spot market on Vega

func (*UpdateSpotMarket) Descriptor deprecated added in v0.72.0

func (*UpdateSpotMarket) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSpotMarket.ProtoReflect.Descriptor instead.

func (*UpdateSpotMarket) GetChanges added in v0.72.0

func (*UpdateSpotMarket) GetMarketId added in v0.72.0

func (x *UpdateSpotMarket) GetMarketId() string

func (UpdateSpotMarket) IsProposalChange added in v0.72.0

func (UpdateSpotMarket) IsProposalChange()

func (*UpdateSpotMarket) ProtoMessage added in v0.72.0

func (*UpdateSpotMarket) ProtoMessage()

func (*UpdateSpotMarket) ProtoReflect added in v0.72.0

func (x *UpdateSpotMarket) ProtoReflect() protoreflect.Message

func (*UpdateSpotMarket) Reset added in v0.72.0

func (x *UpdateSpotMarket) Reset()

func (*UpdateSpotMarket) String added in v0.72.0

func (x *UpdateSpotMarket) String() string

type UpdateSpotMarketConfiguration added in v0.72.0

type UpdateSpotMarketConfiguration struct {

	// Optional spot market metadata, tags.
	Metadata []string `protobuf:"bytes,1,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// Price monitoring parameters.
	PriceMonitoringParameters *PriceMonitoringParameters `` /* 138-byte string literal not displayed */
	// Specifies parameters related to target stake calculation.
	TargetStakeParameters *TargetStakeParameters `` /* 126-byte string literal not displayed */
	// Update spot market risk model parameters.
	//
	// Types that are assignable to RiskParameters:
	//
	//	*UpdateSpotMarketConfiguration_Simple
	//	*UpdateSpotMarketConfiguration_LogNormal
	RiskParameters isUpdateSpotMarketConfiguration_RiskParameters `protobuf_oneof:"risk_parameters"`
	// Specifies the liquidity provision SLA parameters.
	SlaParams *LiquiditySLAParameters `protobuf:"bytes,4,opt,name=sla_params,json=slaParams,proto3" json:"sla_params,omitempty"`
	// Specifies how the liquidity fee for the market will be calculated.
	LiquidityFeeSettings *LiquidityFeeSettings `protobuf:"bytes,5,opt,name=liquidity_fee_settings,json=liquidityFeeSettings,proto3" json:"liquidity_fee_settings,omitempty"`
	// The market tick size defines the minimum change in quote price for the market
	TickSize string `protobuf:"bytes,6,opt,name=tick_size,json=tickSize,proto3" json:"tick_size,omitempty"`
	// Specifies the name and code of the spot instrument.
	Instrument *UpdateSpotInstrumentConfiguration `protobuf:"bytes,7,opt,name=instrument,proto3" json:"instrument,omitempty"`
	// If enabled aggressive orders sent to the market will be delayed by the configured number of blocks
	EnableTransactionReordering bool `` /* 145-byte string literal not displayed */
	// contains filtered or unexported fields
}

Configuration to update a spot market on Vega

func (*UpdateSpotMarketConfiguration) Descriptor deprecated added in v0.72.0

func (*UpdateSpotMarketConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSpotMarketConfiguration.ProtoReflect.Descriptor instead.

func (*UpdateSpotMarketConfiguration) GetEnableTransactionReordering added in v0.77.0

func (x *UpdateSpotMarketConfiguration) GetEnableTransactionReordering() bool

func (*UpdateSpotMarketConfiguration) GetInstrument added in v0.76.0

func (*UpdateSpotMarketConfiguration) GetLiquidityFeeSettings added in v0.74.0

func (x *UpdateSpotMarketConfiguration) GetLiquidityFeeSettings() *LiquidityFeeSettings

func (*UpdateSpotMarketConfiguration) GetLogNormal added in v0.72.0

func (*UpdateSpotMarketConfiguration) GetMetadata added in v0.72.0

func (x *UpdateSpotMarketConfiguration) GetMetadata() []string

func (*UpdateSpotMarketConfiguration) GetPriceMonitoringParameters added in v0.72.0

func (x *UpdateSpotMarketConfiguration) GetPriceMonitoringParameters() *PriceMonitoringParameters

func (*UpdateSpotMarketConfiguration) GetRiskParameters added in v0.72.0

func (m *UpdateSpotMarketConfiguration) GetRiskParameters() isUpdateSpotMarketConfiguration_RiskParameters

func (*UpdateSpotMarketConfiguration) GetSimple added in v0.72.0

func (*UpdateSpotMarketConfiguration) GetSlaParams added in v0.73.0

func (*UpdateSpotMarketConfiguration) GetTargetStakeParameters added in v0.72.0

func (x *UpdateSpotMarketConfiguration) GetTargetStakeParameters() *TargetStakeParameters

func (*UpdateSpotMarketConfiguration) GetTickSize added in v0.75.0

func (x *UpdateSpotMarketConfiguration) GetTickSize() string

func (*UpdateSpotMarketConfiguration) ProtoMessage added in v0.72.0

func (*UpdateSpotMarketConfiguration) ProtoMessage()

func (*UpdateSpotMarketConfiguration) ProtoReflect added in v0.72.0

func (*UpdateSpotMarketConfiguration) Reset added in v0.72.0

func (x *UpdateSpotMarketConfiguration) Reset()

func (*UpdateSpotMarketConfiguration) String added in v0.72.0

type UpdateSpotMarketConfiguration_LogNormal added in v0.72.0

type UpdateSpotMarketConfiguration_LogNormal struct {
	// Log normal risk model parameters, valid only if MODEL_LOG_NORMAL is selected.
	LogNormal *LogNormalRiskModel `protobuf:"bytes,101,opt,name=log_normal,json=logNormal,proto3,oneof"`
}

func (UpdateSpotMarketConfiguration_LogNormal) IsRiskModel added in v0.73.0

type UpdateSpotMarketConfiguration_Simple added in v0.72.0

type UpdateSpotMarketConfiguration_Simple struct {
	// Simple risk model parameters, valid only if MODEL_SIMPLE is selected.
	Simple *SimpleModelParams `protobuf:"bytes,100,opt,name=simple,proto3,oneof"`
}

func (UpdateSpotMarketConfiguration_Simple) IsRiskModel added in v0.73.0

type UpdateVolumeDiscountProgram added in v0.73.0

type UpdateVolumeDiscountProgram struct {

	// Configuration for a change to update a volume discount program
	Changes *VolumeDiscountProgramChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateVolumeDiscountProgram) Descriptor deprecated added in v0.73.0

func (*UpdateVolumeDiscountProgram) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVolumeDiscountProgram.ProtoReflect.Descriptor instead.

func (*UpdateVolumeDiscountProgram) GetChanges added in v0.73.0

func (UpdateVolumeDiscountProgram) IsProposalChange added in v0.73.0

func (UpdateVolumeDiscountProgram) IsProposalChange()

func (*UpdateVolumeDiscountProgram) ProtoMessage added in v0.73.0

func (*UpdateVolumeDiscountProgram) ProtoMessage()

func (*UpdateVolumeDiscountProgram) ProtoReflect added in v0.73.0

func (*UpdateVolumeDiscountProgram) Reset added in v0.73.0

func (x *UpdateVolumeDiscountProgram) Reset()

func (*UpdateVolumeDiscountProgram) String added in v0.73.0

func (x *UpdateVolumeDiscountProgram) String() string

type UpdateVolumeRebateProgram added in v0.77.8

type UpdateVolumeRebateProgram struct {

	// Configuration for a change to update a volume rebate program
	Changes *VolumeRebateProgramChanges `protobuf:"bytes,1,opt,name=changes,proto3" json:"changes,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateVolumeRebateProgram) Descriptor deprecated added in v0.77.8

func (*UpdateVolumeRebateProgram) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVolumeRebateProgram.ProtoReflect.Descriptor instead.

func (*UpdateVolumeRebateProgram) GetChanges added in v0.77.8

func (*UpdateVolumeRebateProgram) ProtoMessage added in v0.77.8

func (*UpdateVolumeRebateProgram) ProtoMessage()

func (*UpdateVolumeRebateProgram) ProtoReflect added in v0.77.8

func (*UpdateVolumeRebateProgram) Reset added in v0.77.8

func (x *UpdateVolumeRebateProgram) Reset()

func (*UpdateVolumeRebateProgram) String added in v0.77.8

func (x *UpdateVolumeRebateProgram) String() string

type ValidatorNodeStatus

type ValidatorNodeStatus int32

Validation status of the node

const (
	ValidatorNodeStatus_VALIDATOR_NODE_STATUS_UNSPECIFIED ValidatorNodeStatus = 0
	// Node is a tendermint validator
	ValidatorNodeStatus_VALIDATOR_NODE_STATUS_TENDERMINT ValidatorNodeStatus = 1
	// Node is an ersatz validator
	ValidatorNodeStatus_VALIDATOR_NODE_STATUS_ERSATZ ValidatorNodeStatus = 2
	// Node is a pending validator
	ValidatorNodeStatus_VALIDATOR_NODE_STATUS_PENDING ValidatorNodeStatus = 3
)

func (ValidatorNodeStatus) Descriptor

func (ValidatorNodeStatus) Enum

func (ValidatorNodeStatus) EnumDescriptor deprecated

func (ValidatorNodeStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ValidatorNodeStatus.Descriptor instead.

func (ValidatorNodeStatus) GetEnums added in v0.76.0

func (ValidatorNodeStatus) GetEnums() map[int32]string

func (ValidatorNodeStatus) Number

func (ValidatorNodeStatus) String

func (x ValidatorNodeStatus) String() string

func (ValidatorNodeStatus) Type

type VectorValue

type VectorValue struct {
	Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*VectorValue) Descriptor deprecated

func (*VectorValue) Descriptor() ([]byte, []int)

Deprecated: Use VectorValue.ProtoReflect.Descriptor instead.

func (*VectorValue) GetValue

func (x *VectorValue) GetValue() []string

func (*VectorValue) ProtoMessage

func (*VectorValue) ProtoMessage()

func (*VectorValue) ProtoReflect

func (x *VectorValue) ProtoReflect() protoreflect.Message

func (*VectorValue) Reset

func (x *VectorValue) Reset()

func (*VectorValue) String

func (x *VectorValue) String() string

type VestingBenefitTier added in v0.73.0

type VestingBenefitTier struct {
	MinimumQuantumBalance string `` /* 126-byte string literal not displayed */
	RewardMultiplier      string `protobuf:"bytes,2,opt,name=reward_multiplier,json=rewardMultiplier,proto3" json:"reward_multiplier,omitempty"`
	// contains filtered or unexported fields
}

func (*VestingBenefitTier) Descriptor deprecated added in v0.73.0

func (*VestingBenefitTier) Descriptor() ([]byte, []int)

Deprecated: Use VestingBenefitTier.ProtoReflect.Descriptor instead.

func (*VestingBenefitTier) GetMinimumQuantumBalance added in v0.73.0

func (x *VestingBenefitTier) GetMinimumQuantumBalance() string

func (*VestingBenefitTier) GetRewardMultiplier added in v0.73.0

func (x *VestingBenefitTier) GetRewardMultiplier() string

func (*VestingBenefitTier) ProtoMessage added in v0.73.0

func (*VestingBenefitTier) ProtoMessage()

func (*VestingBenefitTier) ProtoReflect added in v0.73.0

func (x *VestingBenefitTier) ProtoReflect() protoreflect.Message

func (*VestingBenefitTier) Reset added in v0.73.0

func (x *VestingBenefitTier) Reset()

func (*VestingBenefitTier) String added in v0.73.0

func (x *VestingBenefitTier) String() string

type VestingBenefitTiers added in v0.73.0

type VestingBenefitTiers struct {
	Tiers []*VestingBenefitTier `protobuf:"bytes,1,rep,name=tiers,proto3" json:"tiers,omitempty"`
	// contains filtered or unexported fields
}

func (*VestingBenefitTiers) Descriptor deprecated added in v0.73.0

func (*VestingBenefitTiers) Descriptor() ([]byte, []int)

Deprecated: Use VestingBenefitTiers.ProtoReflect.Descriptor instead.

func (*VestingBenefitTiers) GetTiers added in v0.73.0

func (x *VestingBenefitTiers) GetTiers() []*VestingBenefitTier

func (*VestingBenefitTiers) ProtoMessage added in v0.73.0

func (*VestingBenefitTiers) ProtoMessage()

func (*VestingBenefitTiers) ProtoReflect added in v0.73.0

func (x *VestingBenefitTiers) ProtoReflect() protoreflect.Message

func (*VestingBenefitTiers) Reset added in v0.73.0

func (x *VestingBenefitTiers) Reset()

func (*VestingBenefitTiers) String added in v0.73.0

func (x *VestingBenefitTiers) String() string

type VolumeBenefitTier added in v0.73.0

type VolumeBenefitTier struct {

	// Required running notional taker volume in quantum units for parties
	// to access this tier.
	MinimumRunningNotionalTakerVolume string `` /* 166-byte string literal not displayed */
	// deprecated
	VolumeDiscountFactor string `protobuf:"bytes,2,opt,name=volume_discount_factor,json=volumeDiscountFactor,proto3" json:"volume_discount_factor,omitempty"`
	// Proportion of the taker fees to be discounted.
	VolumeDiscountFactors *DiscountFactors `` /* 126-byte string literal not displayed */
	// The tier number. It's set by the core, and used in the party fee stats API.
	TierNumber *uint64 `protobuf:"varint,4,opt,name=tier_number,json=tierNumber,proto3,oneof" json:"tier_number,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeBenefitTier) Descriptor deprecated added in v0.73.0

func (*VolumeBenefitTier) Descriptor() ([]byte, []int)

Deprecated: Use VolumeBenefitTier.ProtoReflect.Descriptor instead.

func (*VolumeBenefitTier) GetMinimumRunningNotionalTakerVolume added in v0.73.0

func (x *VolumeBenefitTier) GetMinimumRunningNotionalTakerVolume() string

func (*VolumeBenefitTier) GetTierNumber added in v0.78.0

func (x *VolumeBenefitTier) GetTierNumber() uint64

func (*VolumeBenefitTier) GetVolumeDiscountFactor added in v0.73.0

func (x *VolumeBenefitTier) GetVolumeDiscountFactor() string

func (*VolumeBenefitTier) GetVolumeDiscountFactors added in v0.77.8

func (x *VolumeBenefitTier) GetVolumeDiscountFactors() *DiscountFactors

func (*VolumeBenefitTier) ProtoMessage added in v0.73.0

func (*VolumeBenefitTier) ProtoMessage()

func (*VolumeBenefitTier) ProtoReflect added in v0.73.0

func (x *VolumeBenefitTier) ProtoReflect() protoreflect.Message

func (*VolumeBenefitTier) Reset added in v0.73.0

func (x *VolumeBenefitTier) Reset()

func (*VolumeBenefitTier) String added in v0.73.0

func (x *VolumeBenefitTier) String() string

type VolumeDiscountProgram added in v0.73.0

type VolumeDiscountProgram struct {

	// Incremental version of the program. It is incremented after each program
	// update.
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Unique ID generated from the proposal that created this program.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Defined benefit tiers ordered by increasing discounts.
	BenefitTiers []*VolumeBenefitTier `protobuf:"bytes,3,rep,name=benefit_tiers,json=benefitTiers,proto3" json:"benefit_tiers,omitempty"`
	// Timestamp in Unix seconds, after which when the current epoch
	// ends, the program will end and benefits will be disabled.
	EndOfProgramTimestamp int64 `` /* 129-byte string literal not displayed */
	// Number of epochs over which a referral set's running volume is evaluated.
	WindowLength uint64 `protobuf:"varint,5,opt,name=window_length,json=windowLength,proto3" json:"window_length,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeDiscountProgram) Descriptor deprecated added in v0.73.0

func (*VolumeDiscountProgram) Descriptor() ([]byte, []int)

Deprecated: Use VolumeDiscountProgram.ProtoReflect.Descriptor instead.

func (*VolumeDiscountProgram) GetBenefitTiers added in v0.73.0

func (x *VolumeDiscountProgram) GetBenefitTiers() []*VolumeBenefitTier

func (*VolumeDiscountProgram) GetEndOfProgramTimestamp added in v0.73.0

func (x *VolumeDiscountProgram) GetEndOfProgramTimestamp() int64

func (*VolumeDiscountProgram) GetId added in v0.73.0

func (x *VolumeDiscountProgram) GetId() string

func (*VolumeDiscountProgram) GetVersion added in v0.73.0

func (x *VolumeDiscountProgram) GetVersion() uint64

func (*VolumeDiscountProgram) GetWindowLength added in v0.73.0

func (x *VolumeDiscountProgram) GetWindowLength() uint64

func (*VolumeDiscountProgram) ProtoMessage added in v0.73.0

func (*VolumeDiscountProgram) ProtoMessage()

func (*VolumeDiscountProgram) ProtoReflect added in v0.73.0

func (x *VolumeDiscountProgram) ProtoReflect() protoreflect.Message

func (*VolumeDiscountProgram) Reset added in v0.73.0

func (x *VolumeDiscountProgram) Reset()

func (*VolumeDiscountProgram) String added in v0.73.0

func (x *VolumeDiscountProgram) String() string

type VolumeDiscountProgramChanges added in v0.73.0

type VolumeDiscountProgramChanges struct {

	// Defined benefit tiers in increasing order. First element will give Tier 1,
	// second element will give Tier 2, and so on. Determines the level of
	// benefit a party can expect based on performance criteria.
	BenefitTiers []*VolumeBenefitTier `protobuf:"bytes,1,rep,name=benefit_tiers,json=benefitTiers,proto3" json:"benefit_tiers,omitempty"`
	// Timestamp as Unix time in seconds, after which when the current epoch
	// ends, the program will end and benefits will be disabled.
	EndOfProgramTimestamp int64 `` /* 129-byte string literal not displayed */
	// Number of epochs over which to evaluate a referral set's running volume.
	WindowLength uint64 `protobuf:"varint,3,opt,name=window_length,json=windowLength,proto3" json:"window_length,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeDiscountProgramChanges) Descriptor deprecated added in v0.73.0

func (*VolumeDiscountProgramChanges) Descriptor() ([]byte, []int)

Deprecated: Use VolumeDiscountProgramChanges.ProtoReflect.Descriptor instead.

func (*VolumeDiscountProgramChanges) GetBenefitTiers added in v0.73.0

func (x *VolumeDiscountProgramChanges) GetBenefitTiers() []*VolumeBenefitTier

func (*VolumeDiscountProgramChanges) GetEndOfProgramTimestamp added in v0.73.0

func (x *VolumeDiscountProgramChanges) GetEndOfProgramTimestamp() int64

func (*VolumeDiscountProgramChanges) GetWindowLength added in v0.73.0

func (x *VolumeDiscountProgramChanges) GetWindowLength() uint64

func (*VolumeDiscountProgramChanges) ProtoMessage added in v0.73.0

func (*VolumeDiscountProgramChanges) ProtoMessage()

func (*VolumeDiscountProgramChanges) ProtoReflect added in v0.73.0

func (*VolumeDiscountProgramChanges) Reset added in v0.73.0

func (x *VolumeDiscountProgramChanges) Reset()

func (*VolumeDiscountProgramChanges) String added in v0.73.0

type VolumeRebateBenefitTier added in v0.77.8

type VolumeRebateBenefitTier struct {

	// Fraction of a party's maker volume required for a party to access this tier.
	MinimumPartyMakerVolumeFraction string `` /* 160-byte string literal not displayed */
	// Additional rebate factor, based on the 'trade value for fee purposes', that a party at this tier will receive when they are the maker side of a trade.
	AdditionalMakerRebate string `` /* 126-byte string literal not displayed */
	// The tier number. It's set by the core, and used in the party fee stats API.
	TierNumber *uint64 `protobuf:"varint,3,opt,name=tier_number,json=tierNumber,proto3,oneof" json:"tier_number,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeRebateBenefitTier) Descriptor deprecated added in v0.77.8

func (*VolumeRebateBenefitTier) Descriptor() ([]byte, []int)

Deprecated: Use VolumeRebateBenefitTier.ProtoReflect.Descriptor instead.

func (*VolumeRebateBenefitTier) GetAdditionalMakerRebate added in v0.77.8

func (x *VolumeRebateBenefitTier) GetAdditionalMakerRebate() string

func (*VolumeRebateBenefitTier) GetMinimumPartyMakerVolumeFraction added in v0.77.8

func (x *VolumeRebateBenefitTier) GetMinimumPartyMakerVolumeFraction() string

func (*VolumeRebateBenefitTier) GetTierNumber added in v0.78.0

func (x *VolumeRebateBenefitTier) GetTierNumber() uint64

func (*VolumeRebateBenefitTier) ProtoMessage added in v0.77.8

func (*VolumeRebateBenefitTier) ProtoMessage()

func (*VolumeRebateBenefitTier) ProtoReflect added in v0.77.8

func (x *VolumeRebateBenefitTier) ProtoReflect() protoreflect.Message

func (*VolumeRebateBenefitTier) Reset added in v0.77.8

func (x *VolumeRebateBenefitTier) Reset()

func (*VolumeRebateBenefitTier) String added in v0.77.8

func (x *VolumeRebateBenefitTier) String() string

type VolumeRebateProgram added in v0.77.8

type VolumeRebateProgram struct {

	// Incremental version of the program. It is incremented after each program
	// update.
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// Unique ID generated from the proposal that created this program.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Defined benefit tiers ordered by increasing rebates.
	BenefitTiers []*VolumeRebateBenefitTier `protobuf:"bytes,3,rep,name=benefit_tiers,json=benefitTiers,proto3" json:"benefit_tiers,omitempty"`
	// Timestamp in Unix seconds, after which when the current epoch
	// ends, the program will end and benefits will be disabled.
	EndOfProgramTimestamp int64 `` /* 129-byte string literal not displayed */
	// Number of epochs over which a referral set's running volume is evaluated.
	WindowLength uint64 `protobuf:"varint,5,opt,name=window_length,json=windowLength,proto3" json:"window_length,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeRebateProgram) Descriptor deprecated added in v0.77.8

func (*VolumeRebateProgram) Descriptor() ([]byte, []int)

Deprecated: Use VolumeRebateProgram.ProtoReflect.Descriptor instead.

func (*VolumeRebateProgram) GetBenefitTiers added in v0.77.8

func (x *VolumeRebateProgram) GetBenefitTiers() []*VolumeRebateBenefitTier

func (*VolumeRebateProgram) GetEndOfProgramTimestamp added in v0.77.8

func (x *VolumeRebateProgram) GetEndOfProgramTimestamp() int64

func (*VolumeRebateProgram) GetId added in v0.77.8

func (x *VolumeRebateProgram) GetId() string

func (*VolumeRebateProgram) GetVersion added in v0.77.8

func (x *VolumeRebateProgram) GetVersion() uint64

func (*VolumeRebateProgram) GetWindowLength added in v0.77.8

func (x *VolumeRebateProgram) GetWindowLength() uint64

func (*VolumeRebateProgram) ProtoMessage added in v0.77.8

func (*VolumeRebateProgram) ProtoMessage()

func (*VolumeRebateProgram) ProtoReflect added in v0.77.8

func (x *VolumeRebateProgram) ProtoReflect() protoreflect.Message

func (*VolumeRebateProgram) Reset added in v0.77.8

func (x *VolumeRebateProgram) Reset()

func (*VolumeRebateProgram) String added in v0.77.8

func (x *VolumeRebateProgram) String() string

type VolumeRebateProgramChanges added in v0.77.8

type VolumeRebateProgramChanges struct {

	// Defined benefit tiers in increasing order. First element will give Tier 1,
	// second element will give Tier 2, and so on. Determines the level of
	// benefit a party can expect based on performance criteria.
	BenefitTiers []*VolumeRebateBenefitTier `protobuf:"bytes,1,rep,name=benefit_tiers,json=benefitTiers,proto3" json:"benefit_tiers,omitempty"`
	// Timestamp as Unix time in seconds, after which when the current epoch
	// ends, the program will end and benefits will be disabled.
	EndOfProgramTimestamp int64 `` /* 129-byte string literal not displayed */
	// Number of epochs over which to evaluate a referral set's running volume.
	WindowLength uint64 `protobuf:"varint,3,opt,name=window_length,json=windowLength,proto3" json:"window_length,omitempty"`
	// contains filtered or unexported fields
}

func (*VolumeRebateProgramChanges) Descriptor deprecated added in v0.77.8

func (*VolumeRebateProgramChanges) Descriptor() ([]byte, []int)

Deprecated: Use VolumeRebateProgramChanges.ProtoReflect.Descriptor instead.

func (*VolumeRebateProgramChanges) GetBenefitTiers added in v0.77.8

func (x *VolumeRebateProgramChanges) GetBenefitTiers() []*VolumeRebateBenefitTier

func (*VolumeRebateProgramChanges) GetEndOfProgramTimestamp added in v0.77.8

func (x *VolumeRebateProgramChanges) GetEndOfProgramTimestamp() int64

func (*VolumeRebateProgramChanges) GetWindowLength added in v0.77.8

func (x *VolumeRebateProgramChanges) GetWindowLength() uint64

func (*VolumeRebateProgramChanges) ProtoMessage added in v0.77.8

func (*VolumeRebateProgramChanges) ProtoMessage()

func (*VolumeRebateProgramChanges) ProtoReflect added in v0.77.8

func (*VolumeRebateProgramChanges) Reset added in v0.77.8

func (x *VolumeRebateProgramChanges) Reset()

func (*VolumeRebateProgramChanges) String added in v0.77.8

func (x *VolumeRebateProgramChanges) String() string

type Vote

type Vote struct {

	// Voter's party ID.
	PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Which way the party voted.
	Value Vote_Value `protobuf:"varint,2,opt,name=value,proto3,enum=vega.Vote_Value" json:"value,omitempty"`
	// Proposal ID being voted on.
	ProposalId string `protobuf:"bytes,3,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// Timestamp in Unix nanoseconds when the vote was acknowledged by the network.
	Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Total number of governance token for the party that cast the vote.
	TotalGovernanceTokenBalance string `` /* 146-byte string literal not displayed */
	// The weight of this vote based on the total number of governance tokens.
	TotalGovernanceTokenWeight string `` /* 143-byte string literal not displayed */
	// The weight of the vote compared to the total amount of equity-like share on the market. It is only populated if the vote is for a single type proposal.
	TotalEquityLikeShareWeight string `` /* 145-byte string literal not displayed */
	// The per market weight of the vote compared to the total amount of equity-like share on the market.. It is only populated if the vote is for a batch type proposal.
	ElsPerMarket []*VoteELSPair `protobuf:"bytes,8,rep,name=els_per_market,json=elsPerMarket,proto3" json:"els_per_market,omitempty"`
	// contains filtered or unexported fields
}

Governance vote

func (*Vote) Descriptor deprecated

func (*Vote) Descriptor() ([]byte, []int)

Deprecated: Use Vote.ProtoReflect.Descriptor instead.

func (*Vote) GetElsPerMarket added in v0.74.5

func (x *Vote) GetElsPerMarket() []*VoteELSPair

func (*Vote) GetPartyId

func (x *Vote) GetPartyId() string

func (*Vote) GetProposalId

func (x *Vote) GetProposalId() string

func (*Vote) GetTimestamp

func (x *Vote) GetTimestamp() int64

func (*Vote) GetTotalEquityLikeShareWeight

func (x *Vote) GetTotalEquityLikeShareWeight() string

func (*Vote) GetTotalGovernanceTokenBalance

func (x *Vote) GetTotalGovernanceTokenBalance() string

func (*Vote) GetTotalGovernanceTokenWeight

func (x *Vote) GetTotalGovernanceTokenWeight() string

func (*Vote) GetValue

func (x *Vote) GetValue() Vote_Value

func (Vote) IsEvent

func (Vote) IsEvent()

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) ProtoReflect

func (x *Vote) ProtoReflect() protoreflect.Message

func (*Vote) Reset

func (x *Vote) Reset()

func (*Vote) String

func (x *Vote) String() string

type VoteELSPair added in v0.74.5

type VoteELSPair struct {

	// The market ID.
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// The equity-like share weight for this market.
	Els string `protobuf:"bytes,2,opt,name=els,proto3" json:"els,omitempty"`
	// contains filtered or unexported fields
}

func (*VoteELSPair) Descriptor deprecated added in v0.74.5

func (*VoteELSPair) Descriptor() ([]byte, []int)

Deprecated: Use VoteELSPair.ProtoReflect.Descriptor instead.

func (*VoteELSPair) GetEls added in v0.74.5

func (x *VoteELSPair) GetEls() string

func (*VoteELSPair) GetMarketId added in v0.74.5

func (x *VoteELSPair) GetMarketId() string

func (*VoteELSPair) ProtoMessage added in v0.74.5

func (*VoteELSPair) ProtoMessage()

func (*VoteELSPair) ProtoReflect added in v0.74.5

func (x *VoteELSPair) ProtoReflect() protoreflect.Message

func (*VoteELSPair) Reset added in v0.74.5

func (x *VoteELSPair) Reset()

func (*VoteELSPair) String added in v0.74.5

func (x *VoteELSPair) String() string

type Vote_Value

type Vote_Value int32

Vote value

const (
	// Default value, always invalid
	Vote_VALUE_UNSPECIFIED Vote_Value = 0
	// Vote against the proposal
	Vote_VALUE_NO Vote_Value = 1
	// Vote in favour of the proposal
	Vote_VALUE_YES Vote_Value = 2
)

func (Vote_Value) Descriptor

func (Vote_Value) Descriptor() protoreflect.EnumDescriptor

func (Vote_Value) Enum

func (x Vote_Value) Enum() *Vote_Value

func (Vote_Value) EnumDescriptor deprecated

func (Vote_Value) EnumDescriptor() ([]byte, []int)

Deprecated: Use Vote_Value.Descriptor instead.

func (Vote_Value) GetEnums added in v0.76.0

func (Vote_Value) GetEnums() map[int32]string

func (Vote_Value) Number

func (x Vote_Value) Number() protoreflect.EnumNumber

func (Vote_Value) String

func (x Vote_Value) String() string

func (Vote_Value) Type

type WithdrawExt

type WithdrawExt struct {

	// Foreign chain specifics.
	//
	// Types that are assignable to Ext:
	//
	//	*WithdrawExt_Erc20
	Ext isWithdrawExt_Ext `protobuf_oneof:"ext"`
	// contains filtered or unexported fields
}

Withdrawal external details

func (*WithdrawExt) Descriptor deprecated

func (*WithdrawExt) Descriptor() ([]byte, []int)

Deprecated: Use WithdrawExt.ProtoReflect.Descriptor instead.

func (*WithdrawExt) GetErc20

func (x *WithdrawExt) GetErc20() *Erc20WithdrawExt

func (*WithdrawExt) GetExt

func (m *WithdrawExt) GetExt() isWithdrawExt_Ext

func (*WithdrawExt) ProtoMessage

func (*WithdrawExt) ProtoMessage()

func (*WithdrawExt) ProtoReflect

func (x *WithdrawExt) ProtoReflect() protoreflect.Message

func (*WithdrawExt) Reset

func (x *WithdrawExt) Reset()

func (*WithdrawExt) String

func (x *WithdrawExt) String() string

type WithdrawExt_Erc20

type WithdrawExt_Erc20 struct {
	// ERC20 withdrawal details.
	Erc20 *Erc20WithdrawExt `protobuf:"bytes,1,opt,name=erc20,proto3,oneof"`
}

type Withdrawal

type Withdrawal struct {

	// Unique ID for the withdrawal.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Unique party ID of the user initiating the withdrawal.
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Amount to be withdrawn. This field is an unsigned integer scaled to the asset's decimal places.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// Asset to withdraw funds from.
	Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"`
	// Status of the withdrawal.
	Status Withdrawal_Status `protobuf:"varint,5,opt,name=status,proto3,enum=vega.Withdrawal_Status" json:"status,omitempty"`
	// Reference which is used by the foreign chain
	// to refer to this withdrawal.
	Ref string `protobuf:"bytes,6,opt,name=ref,proto3" json:"ref,omitempty"`
	// Hash of the foreign chain for this transaction.
	TxHash string `protobuf:"bytes,8,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	// Timestamp for when the network started to process this withdrawal.
	CreatedTimestamp int64 `protobuf:"varint,9,opt,name=created_timestamp,json=createdTimestamp,proto3" json:"created_timestamp,omitempty"`
	// Timestamp for when the withdrawal was finalised by the network.
	WithdrawnTimestamp int64 `protobuf:"varint,10,opt,name=withdrawn_timestamp,json=withdrawnTimestamp,proto3" json:"withdrawn_timestamp,omitempty"`
	// Foreign chain specifics.
	Ext *WithdrawExt `protobuf:"bytes,11,opt,name=ext,proto3" json:"ext,omitempty"`
	// contains filtered or unexported fields
}

Withdrawal from the Vega network

func (*Withdrawal) Descriptor deprecated

func (*Withdrawal) Descriptor() ([]byte, []int)

Deprecated: Use Withdrawal.ProtoReflect.Descriptor instead.

func (*Withdrawal) GetAmount

func (x *Withdrawal) GetAmount() string

func (*Withdrawal) GetAsset

func (x *Withdrawal) GetAsset() string

func (*Withdrawal) GetCreatedTimestamp

func (x *Withdrawal) GetCreatedTimestamp() int64

func (*Withdrawal) GetExt

func (x *Withdrawal) GetExt() *WithdrawExt

func (*Withdrawal) GetId

func (x *Withdrawal) GetId() string

func (*Withdrawal) GetPartyId

func (x *Withdrawal) GetPartyId() string

func (*Withdrawal) GetRef

func (x *Withdrawal) GetRef() string

func (*Withdrawal) GetStatus

func (x *Withdrawal) GetStatus() Withdrawal_Status

func (*Withdrawal) GetTxHash

func (x *Withdrawal) GetTxHash() string

func (*Withdrawal) GetWithdrawnTimestamp

func (x *Withdrawal) GetWithdrawnTimestamp() int64

func (Withdrawal) IsEvent

func (Withdrawal) IsEvent()

func (*Withdrawal) ProtoMessage

func (*Withdrawal) ProtoMessage()

func (*Withdrawal) ProtoReflect

func (x *Withdrawal) ProtoReflect() protoreflect.Message

func (*Withdrawal) Reset

func (x *Withdrawal) Reset()

func (*Withdrawal) String

func (x *Withdrawal) String() string

type Withdrawal_Status

type Withdrawal_Status int32

Status of the withdrawal

const (
	// Default value, always invalid
	Withdrawal_STATUS_UNSPECIFIED Withdrawal_Status = 0
	// Withdrawal is open and being processed by the network
	Withdrawal_STATUS_OPEN Withdrawal_Status = 1
	// Withdrawal have been cancelled
	Withdrawal_STATUS_REJECTED Withdrawal_Status = 2
	// Withdrawal went through and is fully finalised, the funds are removed from the
	// Vega network and are unlocked on the foreign chain bridge, for example, on the Ethereum network
	Withdrawal_STATUS_FINALIZED Withdrawal_Status = 3
)

func (Withdrawal_Status) Descriptor

func (Withdrawal_Status) Enum

func (Withdrawal_Status) EnumDescriptor deprecated

func (Withdrawal_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Withdrawal_Status.Descriptor instead.

func (Withdrawal_Status) GetEnums added in v0.76.0

func (Withdrawal_Status) GetEnums() map[int32]string

func (Withdrawal_Status) Number

func (Withdrawal_Status) String

func (x Withdrawal_Status) String() string

func (Withdrawal_Status) Type

Directories

Path Synopsis
api
v1
Package v1 is a reverse proxy.
Package v1 is a reverse proxy.
checkpoint
v1
commands
v1
data
v1
events
v1
snapshot
v1
wallet
v1

Jump to

Keyboard shortcuts

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