vega

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 9 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

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",
		24: "PROPOSAL_ERROR_MARKET_MISSING_LIQUIDITY_COMMITMENT",
		25: "PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET",
		26: "PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT",
		27: "PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT",
		28: "PROPOSAL_ERROR_INVALID_FEE_AMOUNT",
		29: "PROPOSAL_ERROR_INVALID_SHAPE",
		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",
	}
	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_MARKET_MISSING_LIQUIDITY_COMMITMENT": 24,
		"PROPOSAL_ERROR_COULD_NOT_INSTANTIATE_MARKET":        25,
		"PROPOSAL_ERROR_INVALID_FUTURE_PRODUCT":              26,
		"PROPOSAL_ERROR_MISSING_COMMITMENT_AMOUNT":           27,
		"PROPOSAL_ERROR_INVALID_FEE_AMOUNT":                  28,
		"PROPOSAL_ERROR_INVALID_SHAPE":                       29,
		"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,
	}
)

Enum value maps for ProposalError.

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 (
	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",
	}
	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,
	}
)

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",
	}
	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,
	}
)

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",
		60:    "INTERVAL_I1M",
		300:   "INTERVAL_I5M",
		900:   "INTERVAL_I15M",
		3600:  "INTERVAL_I1H",
		21600: "INTERVAL_I6H",
		86400: "INTERVAL_I1D",
	}
	Interval_value = map[string]int32{
		"INTERVAL_UNSPECIFIED": 0,
		"INTERVAL_I1M":         60,
		"INTERVAL_I5M":         300,
		"INTERVAL_I15M":        900,
		"INTERVAL_I1H":         3600,
		"INTERVAL_I6H":         21600,
		"INTERVAL_I1D":         86400,
	}
)

Enum value maps for Interval.

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",
	}
	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,
	}
)

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_GFN_ORDER_DURING_AN_AUCTION",
		25: "ORDER_ERROR_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",
	}
	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_GFN_ORDER_DURING_AN_AUCTION":                           24,
		"ORDER_ERROR_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,
	}
)

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",
		8:  "ACCOUNT_TYPE_LOCK_WITHDRAW",
		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_TAKER_PAID_FEES",
		15: "ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES",
		16: "ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES",
		17: "ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS",
	}
	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_LOCK_WITHDRAW":              8,
		"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_TAKER_PAID_FEES":     14,
		"ACCOUNT_TYPE_REWARD_MAKER_RECEIVED_FEES": 15,
		"ACCOUNT_TYPE_REWARD_LP_RECEIVED_FEES":    16,
		"ACCOUNT_TYPE_REWARD_MARKET_PROPOSERS":    17,
	}
)

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",
		3:  "TRANSFER_TYPE_CLOSE",
		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",
		17: "TRANSFER_TYPE_WITHDRAW_LOCK",
		18: "TRANSFER_TYPE_WITHDRAW",
		19: "TRANSFER_TYPE_DEPOSIT",
		20: "TRANSFER_TYPE_BOND_SLASHING",
		21: "TRANSFER_TYPE_STAKE_REWARD",
		22: "TRANSFER_TYPE_TRANSFER_FUNDS_SEND",
		23: "TRANSFER_TYPE_TRANSFER_FUNDS_DISTRIBUTE",
	}
	TransferType_value = map[string]int32{
		"TRANSFER_TYPE_UNSPECIFIED":                   0,
		"TRANSFER_TYPE_LOSS":                          1,
		"TRANSFER_TYPE_WIN":                           2,
		"TRANSFER_TYPE_CLOSE":                         3,
		"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_LOCK":                 17,
		"TRANSFER_TYPE_WITHDRAW":                      18,
		"TRANSFER_TYPE_DEPOSIT":                       19,
		"TRANSFER_TYPE_BOND_SLASHING":                 20,
		"TRANSFER_TYPE_STAKE_REWARD":                  21,
		"TRANSFER_TYPE_TRANSFER_FUNDS_SEND":           22,
		"TRANSFER_TYPE_TRANSFER_FUNDS_DISTRIBUTE":     23,
	}
)

Enum value maps for TransferType.

View Source
var (
	DispatchMetric_name = map[int32]string{
		0: "DISPATCH_METRIC_UNSPECIFIED",
		1: "DISPATCH_METRIC_TAKER_FEES_PAID",
		2: "DISPATCH_METRIC_MAKER_FEES_RECEIVED",
		3: "DISPATCH_METRIC_LP_FEES_RECEIVED",
		4: "DISPATCH_METRIC_MARKET_VALUE",
	}
	DispatchMetric_value = map[string]int32{
		"DISPATCH_METRIC_UNSPECIFIED":         0,
		"DISPATCH_METRIC_TAKER_FEES_PAID":     1,
		"DISPATCH_METRIC_MAKER_FEES_RECEIVED": 2,
		"DISPATCH_METRIC_LP_FEES_RECEIVED":    3,
		"DISPATCH_METRIC_MARKET_VALUE":        4,
	}
)

Enum value maps for DispatchMetric.

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 (
	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",
	}
	Deposit_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_OPEN":        1,
		"STATUS_CANCELLED":   2,
		"STATUS_FINALIZED":   3,
	}
)

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 (
	ErrUnsupportedChainEvent = errors.New("unsupported chain event")
)
View Source
var File_vega_assets_proto protoreflect.FileDescriptor
View Source
var File_vega_chain_events_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_vega_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Account

type Account struct {

	// Unique account identifier (used internally by Vega)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The 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 identifier for the account
	Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"`
	// Market identifier for the account, if [`AccountType`](#vega.AccountType).`ACCOUNT_TYPE_GENERAL` this will be empty
	MarketId string `protobuf:"bytes,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// The 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) DeepClone

func (a Account) DeepClone() *Account

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 added in v0.49.0

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) 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 margin funds for a party and each party will
	// have multiple margin accounts, one for each market they have traded in
	//
	// Margin account funds will alter as margin requirements on positions change
	AccountType_ACCOUNT_TYPE_MARGIN AccountType = 3
	// General accounts contains general funds for a party. 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 lock funds to be withdrawn by parties
	AccountType_ACCOUNT_TYPE_LOCK_WITHDRAW AccountType = 8
	// 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 by takers
	AccountType_ACCOUNT_TYPE_REWARD_TAKER_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
)

func (AccountType) Descriptor added in v0.49.0

func (AccountType) Enum added in v0.49.0

func (x AccountType) Enum() *AccountType

func (AccountType) EnumDescriptor deprecated

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

Deprecated: Use AccountType.Descriptor instead.

func (AccountType) Number added in v0.49.0

func (x AccountType) Number() protoreflect.EnumNumber

func (AccountType) String

func (x AccountType) String() string

func (AccountType) Type added in v0.49.0

type Asset

type Asset struct {

	// Internal identifier of the asset
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The definition of the external source for this asset
	Details *AssetDetails `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

The Vega representation of an external asset

func (Asset) DeepClone

func (a Asset) DeepClone() *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) 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 added in v0.49.0

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"`
	// Total circulating supply for the asset
	TotalSupply string `protobuf:"bytes,3,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"`
	// Number of decimal / precision handled by this asset
	Decimals uint64 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// The minimum economically meaningful amount in the asset
	Quantum string `protobuf:"bytes,5,opt,name=quantum,proto3" json:"quantum,omitempty"`
	// The source
	//
	// Types that are assignable to Source:
	//	*AssetDetails_BuiltinAsset
	//	*AssetDetails_Erc20
	Source isAssetDetails_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

The Vega representation of an external asset

func (AssetDetails) DeepClone

func (a AssetDetails) DeepClone() *AssetDetails

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 added in v0.48.0

func (x *AssetDetails) GetQuantum() string

func (*AssetDetails) GetSource

func (m *AssetDetails) GetSource() isAssetDetails_Source

func (*AssetDetails) GetSymbol

func (x *AssetDetails) GetSymbol() string

func (*AssetDetails) GetTotalSupply

func (x *AssetDetails) GetTotalSupply() string

func (*AssetDetails) ProtoMessage

func (*AssetDetails) ProtoMessage()

func (*AssetDetails) ProtoReflect added in v0.49.0

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

func (*AssetDetails) Reset

func (x *AssetDetails) Reset()

func (*AssetDetails) String

func (x *AssetDetails) String() string

type AssetDetailsUpdate added in v0.51.1

type AssetDetailsUpdate 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"`
	// Total circulating supply for the asset
	TotalSupply string `protobuf:"bytes,3,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"`
	// Number of decimal / precision handled by this asset
	Decimals uint64 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// The minimum economically meaningful amount in the asset
	Quantum string `protobuf:"bytes,5,opt,name=quantum,proto3" json:"quantum,omitempty"`
	// The source
	//
	// Types that are assignable to Source:
	//	*AssetDetailsUpdate_Erc20
	Source isAssetDetailsUpdate_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

The changes to apply on an existing asset.

func (*AssetDetailsUpdate) Descriptor deprecated added in v0.51.1

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

Deprecated: Use AssetDetailsUpdate.ProtoReflect.Descriptor instead.

func (*AssetDetailsUpdate) GetDecimals added in v0.51.1

func (x *AssetDetailsUpdate) GetDecimals() uint64

func (*AssetDetailsUpdate) GetErc20 added in v0.51.1

func (x *AssetDetailsUpdate) GetErc20() *ERC20Update

func (*AssetDetailsUpdate) GetName added in v0.51.1

func (x *AssetDetailsUpdate) GetName() string

func (*AssetDetailsUpdate) GetQuantum added in v0.51.1

func (x *AssetDetailsUpdate) GetQuantum() string

func (*AssetDetailsUpdate) GetSource added in v0.51.1

func (m *AssetDetailsUpdate) GetSource() isAssetDetailsUpdate_Source

func (*AssetDetailsUpdate) GetSymbol added in v0.51.1

func (x *AssetDetailsUpdate) GetSymbol() string

func (*AssetDetailsUpdate) GetTotalSupply added in v0.51.1

func (x *AssetDetailsUpdate) GetTotalSupply() string

func (*AssetDetailsUpdate) ProtoMessage added in v0.51.1

func (*AssetDetailsUpdate) ProtoMessage()

func (*AssetDetailsUpdate) ProtoReflect added in v0.51.1

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

func (*AssetDetailsUpdate) Reset added in v0.51.1

func (x *AssetDetailsUpdate) Reset()

func (*AssetDetailsUpdate) String added in v0.51.1

func (x *AssetDetailsUpdate) String() string

type AssetDetailsUpdate_Erc20 added in v0.51.1

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

type AssetDetails_BuiltinAsset

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

func (AssetDetails_BuiltinAsset) DeepClone

type AssetDetails_Erc20

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

func (AssetDetails_Erc20) DeepClone

func (a AssetDetails_Erc20) DeepClone() *AssetDetails_Erc20

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
}

An 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 we can close with given traded volume
  3. `duration > 0`, `volume > 0`: The auction will take at least N seconds, but can end sooner if we can trade a certain volume

func (AuctionDuration) DeepClone

func (a AuctionDuration) DeepClone() *AuctionDuration

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 added in v0.49.0

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 {

	// The market identifier for which this state relates to
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// The Indicative Uncrossing Price is the price at which all trades would occur if we uncrossed the auction now
	IndicativePrice string `protobuf:"bytes,2,opt,name=indicative_price,json=indicativePrice,proto3" json:"indicative_price,omitempty"`
	// The Indicative Uncrossing Volume is the volume available at the Indicative crossing price if we uncrossed the auction now
	IndicativeVolume uint64 `protobuf:"varint,3,opt,name=indicative_volume,json=indicativeVolume,proto3" json:"indicative_volume,omitempty"`
	// The timestamp at which the auction started
	AuctionStart int64 `protobuf:"varint,4,opt,name=auction_start,json=auctionStart,proto3" json:"auction_start,omitempty"`
	// The 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 added in v0.49.0

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
	// Liquidity monitoring trigger
	AuctionTrigger_AUCTION_TRIGGER_LIQUIDITY AuctionTrigger = 4
)

func (AuctionTrigger) Descriptor added in v0.49.0

func (AuctionTrigger) Enum added in v0.49.0

func (x AuctionTrigger) Enum() *AuctionTrigger

func (AuctionTrigger) EnumDescriptor deprecated

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

Deprecated: Use AuctionTrigger.Descriptor instead.

func (AuctionTrigger) Number added in v0.49.0

func (AuctionTrigger) String

func (x AuctionTrigger) String() string

func (AuctionTrigger) Type added in v0.49.0

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
}

A Vega internal asset

func (BuiltinAsset) DeepClone

func (b BuiltinAsset) DeepClone() *BuiltinAsset

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 added in v0.49.0

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 {

	// A Vega network internal asset identifier
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// A Vega party identifier (pub-key)
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// The amount to be deposited
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

A 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) PrepareToSign

func (c *BuiltinAssetDeposit) PrepareToSign() ([]byte, error)

func (*BuiltinAssetDeposit) ProtoMessage

func (*BuiltinAssetDeposit) ProtoMessage()

func (*BuiltinAssetDeposit) ProtoReflect added in v0.49.0

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
}

An 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) PrepareToSign

func (c *BuiltinAssetEvent) PrepareToSign() ([]byte, error)

func (*BuiltinAssetEvent) ProtoMessage

func (*BuiltinAssetEvent) ProtoMessage()

func (*BuiltinAssetEvent) ProtoReflect added in v0.49.0

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 {

	// A Vega network internal asset identifier
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// A Vega network party identifier (pub-key)
	PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// The amount to be withdrawn
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

A 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) PrepareToSign

func (c *BuiltinAssetWithdrawal) PrepareToSign() ([]byte, error)

func (*BuiltinAssetWithdrawal) ProtoMessage

func (*BuiltinAssetWithdrawal) ProtoMessage()

func (*BuiltinAssetWithdrawal) ProtoReflect added in v0.49.0

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

func (*BuiltinAssetWithdrawal) Reset

func (x *BuiltinAssetWithdrawal) Reset()

func (*BuiltinAssetWithdrawal) String

func (x *BuiltinAssetWithdrawal) String() string

type Candle

type Candle struct {

	// Timestamp for the point in time when the candle was initially created/opened, in nanoseconds since the epoch
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// An 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
	High string `protobuf:"bytes,3,opt,name=high,proto3" json:"high,omitempty"`
	// Lowest price for trading during the candle interval
	Low string `protobuf:"bytes,4,opt,name=low,proto3" json:"low,omitempty"`
	// Open trade price
	Open string `protobuf:"bytes,5,opt,name=open,proto3" json:"open,omitempty"`
	// Closing trade price
	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 - See [`Interval`](#vega.Interval)
	Interval Interval `protobuf:"varint,8,opt,name=interval,proto3,enum=vega.Interval" json:"interval,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) 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 added in v0.49.0

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

The 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 added in v0.49.0

func (ChainStatus) Enum added in v0.49.0

func (x ChainStatus) Enum() *ChainStatus

func (ChainStatus) EnumDescriptor deprecated

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

Deprecated: Use ChainStatus.Descriptor instead.

func (ChainStatus) Number added in v0.49.0

func (x ChainStatus) Number() protoreflect.EnumNumber

func (ChainStatus) String

func (x ChainStatus) String() string

func (ChainStatus) Type added in v0.49.0

type Delegation added in v0.42.0

type Delegation struct {

	// Party which is delegating
	Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	// Node ID
	NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// Amount delegated
	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 added in v0.42.0

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

Deprecated: Use Delegation.ProtoReflect.Descriptor instead.

func (*Delegation) GetAmount added in v0.42.0

func (x *Delegation) GetAmount() string

func (*Delegation) GetEpochSeq added in v0.42.0

func (x *Delegation) GetEpochSeq() string

func (*Delegation) GetNodeId added in v0.42.0

func (x *Delegation) GetNodeId() string

func (*Delegation) GetParty added in v0.42.0

func (x *Delegation) GetParty() string

func (*Delegation) ProtoMessage added in v0.42.0

func (*Delegation) ProtoMessage()

func (*Delegation) ProtoReflect added in v0.49.0

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

func (*Delegation) Reset added in v0.42.0

func (x *Delegation) Reset()

func (*Delegation) String added in v0.42.0

func (x *Delegation) String() string

type Deposit

type Deposit struct {

	// Unique identifier 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 identifier of the user initiating the deposit
	PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// The Vega asset targeted by this deposit
	Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"`
	// The amount to be deposited
	Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
	// The 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
}

A 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 added in v0.49.0

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

The status of the deposit

const (
	// Default value, always invalid
	Deposit_STATUS_UNSPECIFIED Deposit_Status = 0
	// The deposit is being processed by the network
	Deposit_STATUS_OPEN Deposit_Status = 1
	// The deposit has been cancelled by the network
	Deposit_STATUS_CANCELLED Deposit_Status = 2
	// The deposit has been finalised and accounts have been updated
	Deposit_STATUS_FINALIZED Deposit_Status = 3
)

func (Deposit_Status) Descriptor added in v0.49.0

func (Deposit_Status) Enum added in v0.49.0

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) Number added in v0.49.0

func (Deposit_Status) String

func (x Deposit_Status) String() string

func (Deposit_Status) Type added in v0.49.0

type DispatchMetric added in v0.51.0

type DispatchMetric int32
const (
	DispatchMetric_DISPATCH_METRIC_UNSPECIFIED DispatchMetric = 0
	// Dispatch metric that is using the total taker fees paid in the market
	DispatchMetric_DISPATCH_METRIC_TAKER_FEES_PAID DispatchMetric = 1
	// Dispatch metric that is using the total maker fees received in the market
	DispatchMetric_DISPATCH_METRIC_MAKER_FEES_RECEIVED DispatchMetric = 2
	// Dispatch metric that is using the total LP fees received in the market
	DispatchMetric_DISPATCH_METRIC_LP_FEES_RECEIVED DispatchMetric = 3
	// Dispatch metric that is using total value of the market if above the required threshold and not paid given proposer bonus yet
	DispatchMetric_DISPATCH_METRIC_MARKET_VALUE DispatchMetric = 4
)

func (DispatchMetric) Descriptor added in v0.51.0

func (DispatchMetric) Enum added in v0.51.0

func (x DispatchMetric) Enum() *DispatchMetric

func (DispatchMetric) EnumDescriptor deprecated added in v0.51.0

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

Deprecated: Use DispatchMetric.Descriptor instead.

func (DispatchMetric) Number added in v0.51.0

func (DispatchMetric) String added in v0.51.0

func (x DispatchMetric) String() string

func (DispatchMetric) Type added in v0.51.0

type DispatchStrategy added in v0.51.0

type DispatchStrategy struct {

	// The asset to use for metric
	AssetForMetric string `protobuf:"bytes,1,opt,name=asset_for_metric,json=assetForMetric,proto3" json:"asset_for_metric,omitempty"`
	// The 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"`
	// contains filtered or unexported fields
}

func (*DispatchStrategy) Descriptor deprecated added in v0.51.0

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

Deprecated: Use DispatchStrategy.ProtoReflect.Descriptor instead.

func (*DispatchStrategy) GetAssetForMetric added in v0.51.0

func (x *DispatchStrategy) GetAssetForMetric() string

func (*DispatchStrategy) GetMarkets added in v0.51.0

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

func (*DispatchStrategy) GetMetric added in v0.51.0

func (x *DispatchStrategy) GetMetric() DispatchMetric

func (*DispatchStrategy) ProtoMessage added in v0.51.0

func (*DispatchStrategy) ProtoMessage()

func (*DispatchStrategy) ProtoReflect added in v0.51.0

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

func (*DispatchStrategy) Reset added in v0.51.0

func (x *DispatchStrategy) Reset()

func (*DispatchStrategy) String added in v0.51.0

func (x *DispatchStrategy) String() string

type ERC20

type ERC20 struct {

	// The 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"`
	// The lifetime limits deposit per address
	// note: this is a temporary measure for restricted mainnet
	LifetimeLimit string `protobuf:"bytes,2,opt,name=lifetime_limit,json=lifetimeLimit,proto3" json:"lifetime_limit,omitempty"`
	// The maximum allowed per withdraw
	// note: this is a temporary measure for restricted mainnet
	WithdrawThreshold string `protobuf:"bytes,3,opt,name=withdraw_threshold,json=withdrawThreshold,proto3" json:"withdraw_threshold,omitempty"`
	// contains filtered or unexported fields
}

An ERC20 token based asset, living on the ethereum network

func (ERC20) DeepClone

func (e ERC20) DeepClone() *ERC20

func (*ERC20) Descriptor deprecated

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

Deprecated: Use ERC20.ProtoReflect.Descriptor instead.

func (*ERC20) GetContractAddress

func (x *ERC20) GetContractAddress() string

func (*ERC20) GetLifetimeLimit added in v0.51.0

func (x *ERC20) GetLifetimeLimit() string

func (*ERC20) GetWithdrawThreshold added in v0.51.0

func (x *ERC20) GetWithdrawThreshold() string

func (*ERC20) ProtoMessage

func (*ERC20) ProtoMessage()

func (*ERC20) ProtoReflect added in v0.49.0

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 {

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

An 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) PrepareToSign

func (c *ERC20AssetDelist) PrepareToSign() ([]byte, error)

func (*ERC20AssetDelist) ProtoMessage

func (*ERC20AssetDelist) ProtoMessage()

func (*ERC20AssetDelist) ProtoReflect added in v0.49.0

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

func (*ERC20AssetDelist) Reset

func (x *ERC20AssetDelist) Reset()

func (*ERC20AssetDelist) String

func (x *ERC20AssetDelist) String() string

type ERC20AssetList

type ERC20AssetList struct {

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

An asset allow-listing for an ERC20 token

func (*ERC20AssetList) Descriptor deprecated

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

Deprecated: Use ERC20AssetList.ProtoReflect.Descriptor instead.

func (*ERC20AssetList) GetVegaAssetId

func (x *ERC20AssetList) GetVegaAssetId() string

func (*ERC20AssetList) PrepareToSign

func (c *ERC20AssetList) PrepareToSign() ([]byte, error)

func (*ERC20AssetList) ProtoMessage

func (*ERC20AssetList) ProtoMessage()

func (*ERC20AssetList) ProtoReflect added in v0.49.0

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 {

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

An 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) PrepareToSign

func (c *ERC20Deposit) PrepareToSign() ([]byte, error)

func (*ERC20Deposit) ProtoMessage

func (*ERC20Deposit) ProtoMessage()

func (*ERC20Deposit) ProtoReflect added in v0.49.0

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"`
	// The block in which the transaction was added
	Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"`
	// The action
	//
	// Types that are assignable to Action:
	//	*ERC20Event_AssetList
	//	*ERC20Event_AssetDelist
	//	*ERC20Event_Deposit
	//	*ERC20Event_Withdrawal
	Action isERC20Event_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

An 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) GetAssetList

func (x *ERC20Event) GetAssetList() *ERC20AssetList

func (*ERC20Event) GetBlock

func (x *ERC20Event) GetBlock() uint64

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) PrepareToSign

func (c *ERC20Event) PrepareToSign() ([]byte, error)

func (*ERC20Event) ProtoMessage

func (*ERC20Event) ProtoMessage()

func (*ERC20Event) ProtoReflect added in v0.49.0

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_AssetList

type ERC20Event_AssetList struct {
	// List an ERC20 asset
	AssetList *ERC20AssetList `protobuf:"bytes,1001,opt,name=asset_list,json=assetList,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 ERC20MultiSigEvent added in v0.49.0

type ERC20MultiSigEvent struct {

	// Index of the log in the transaction
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// The block in which the transaction was added
	Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"`
	// The action
	//
	// Types that are assignable to Action:
	//	*ERC20MultiSigEvent_SignerAdded
	//	*ERC20MultiSigEvent_SignerRemoved
	//	*ERC20MultiSigEvent_ThresholdSet
	Action isERC20MultiSigEvent_Action `protobuf_oneof:"action"`
	// contains filtered or unexported fields
}

An event related to the ERC20 MultiSig

func (*ERC20MultiSigEvent) Descriptor deprecated added in v0.49.0

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

Deprecated: Use ERC20MultiSigEvent.ProtoReflect.Descriptor instead.

func (*ERC20MultiSigEvent) GetAction added in v0.49.0

func (m *ERC20MultiSigEvent) GetAction() isERC20MultiSigEvent_Action

func (*ERC20MultiSigEvent) GetBlock added in v0.49.0

func (x *ERC20MultiSigEvent) GetBlock() uint64

func (*ERC20MultiSigEvent) GetIndex added in v0.49.0

func (x *ERC20MultiSigEvent) GetIndex() uint64

func (*ERC20MultiSigEvent) GetSignerAdded added in v0.49.0

func (x *ERC20MultiSigEvent) GetSignerAdded() *ERC20SignerAdded

func (*ERC20MultiSigEvent) GetSignerRemoved added in v0.49.0

func (x *ERC20MultiSigEvent) GetSignerRemoved() *ERC20SignerRemoved

func (*ERC20MultiSigEvent) GetThresholdSet added in v0.49.0

func (x *ERC20MultiSigEvent) GetThresholdSet() *ERC20ThresholdSet

func (*ERC20MultiSigEvent) ProtoMessage added in v0.49.0

func (*ERC20MultiSigEvent) ProtoMessage()

func (*ERC20MultiSigEvent) ProtoReflect added in v0.49.0

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

func (*ERC20MultiSigEvent) Reset added in v0.49.0

func (x *ERC20MultiSigEvent) Reset()

func (*ERC20MultiSigEvent) String added in v0.49.0

func (x *ERC20MultiSigEvent) String() string

type ERC20MultiSigEvent_SignerAdded added in v0.49.0

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 added in v0.49.0

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 added in v0.49.0

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

type ERC20SignerAdded added in v0.49.0

type ERC20SignerAdded struct {

	// The ethereum address of the new signer
	NewSigner string `protobuf:"bytes,1,opt,name=new_signer,json=newSigner,proto3" json:"new_signer,omitempty"`
	// The nonce create by the vega network used for this new signer
	Nonce string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,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,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// contains filtered or unexported fields
}

A new signer added to the ERC20 bridge

func (*ERC20SignerAdded) Descriptor deprecated added in v0.49.0

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

Deprecated: Use ERC20SignerAdded.ProtoReflect.Descriptor instead.

func (*ERC20SignerAdded) GetBlockTime added in v0.49.0

func (x *ERC20SignerAdded) GetBlockTime() int64

func (*ERC20SignerAdded) GetNewSigner added in v0.49.0

func (x *ERC20SignerAdded) GetNewSigner() string

func (*ERC20SignerAdded) GetNonce added in v0.49.0

func (x *ERC20SignerAdded) GetNonce() string

func (*ERC20SignerAdded) ProtoMessage added in v0.49.0

func (*ERC20SignerAdded) ProtoMessage()

func (*ERC20SignerAdded) ProtoReflect added in v0.49.0

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

func (*ERC20SignerAdded) Reset added in v0.49.0

func (x *ERC20SignerAdded) Reset()

func (*ERC20SignerAdded) String added in v0.49.0

func (x *ERC20SignerAdded) String() string

type ERC20SignerRemoved added in v0.49.0

type ERC20SignerRemoved struct {

	// The ethereum address of the old signer
	OldSigner string `protobuf:"bytes,1,opt,name=old_signer,json=oldSigner,proto3" json:"old_signer,omitempty"`
	// The nonce create by the vega network used for this old signer
	Nonce string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,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,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// contains filtered or unexported fields
}

A signer removed from the ERC20 bridge

func (*ERC20SignerRemoved) Descriptor deprecated added in v0.49.0

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

Deprecated: Use ERC20SignerRemoved.ProtoReflect.Descriptor instead.

func (*ERC20SignerRemoved) GetBlockTime added in v0.49.0

func (x *ERC20SignerRemoved) GetBlockTime() int64

func (*ERC20SignerRemoved) GetNonce added in v0.49.0

func (x *ERC20SignerRemoved) GetNonce() string

func (*ERC20SignerRemoved) GetOldSigner added in v0.49.0

func (x *ERC20SignerRemoved) GetOldSigner() string

func (*ERC20SignerRemoved) ProtoMessage added in v0.49.0

func (*ERC20SignerRemoved) ProtoMessage()

func (*ERC20SignerRemoved) ProtoReflect added in v0.49.0

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

func (*ERC20SignerRemoved) Reset added in v0.49.0

func (x *ERC20SignerRemoved) Reset()

func (*ERC20SignerRemoved) String added in v0.49.0

func (x *ERC20SignerRemoved) String() string

type ERC20ThresholdSet added in v0.49.0

type ERC20ThresholdSet struct {

	// The new threshold
	NewThreshold uint32 `protobuf:"varint,1,opt,name=new_threshold,json=newThreshold,proto3" json:"new_threshold,omitempty"`
	// The nonce create by the vega network
	Nonce string `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,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,3,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"`
	// contains filtered or unexported fields
}

The threshold have been updated on the multisigcontrol

func (*ERC20ThresholdSet) Descriptor deprecated added in v0.49.0

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

Deprecated: Use ERC20ThresholdSet.ProtoReflect.Descriptor instead.

func (*ERC20ThresholdSet) GetBlockTime added in v0.49.0

func (x *ERC20ThresholdSet) GetBlockTime() int64

func (*ERC20ThresholdSet) GetNewThreshold added in v0.49.0

func (x *ERC20ThresholdSet) GetNewThreshold() uint32

func (*ERC20ThresholdSet) GetNonce added in v0.49.0

func (x *ERC20ThresholdSet) GetNonce() string

func (*ERC20ThresholdSet) ProtoMessage added in v0.49.0

func (*ERC20ThresholdSet) ProtoMessage()

func (*ERC20ThresholdSet) ProtoReflect added in v0.49.0

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

func (*ERC20ThresholdSet) Reset added in v0.49.0

func (x *ERC20ThresholdSet) Reset()

func (*ERC20ThresholdSet) String added in v0.49.0

func (x *ERC20ThresholdSet) String() string

type ERC20Update added in v0.51.1

type ERC20Update struct {

	// The lifetime limits deposit per address.
	// This is will be interpreted against the asset decimals.
	// note: this is a temporary measure for restricted mainnet
	LifetimeLimit string `protobuf:"bytes,1,opt,name=lifetime_limit,json=lifetimeLimit,proto3" json:"lifetime_limit,omitempty"`
	// The maximum allowed per withdraw.
	// This is will be interpreted against the asset decimals.
	// note: this is a temporary measure for restricted mainnet
	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 added in v0.51.1

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

Deprecated: Use ERC20Update.ProtoReflect.Descriptor instead.

func (*ERC20Update) GetLifetimeLimit added in v0.51.1

func (x *ERC20Update) GetLifetimeLimit() string

func (*ERC20Update) GetWithdrawThreshold added in v0.51.1

func (x *ERC20Update) GetWithdrawThreshold() string

func (*ERC20Update) ProtoMessage added in v0.51.1

func (*ERC20Update) ProtoMessage()

func (*ERC20Update) ProtoReflect added in v0.51.1

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

func (*ERC20Update) Reset added in v0.51.1

func (x *ERC20Update) Reset()

func (*ERC20Update) String added in v0.51.1

func (x *ERC20Update) String() string

type ERC20Withdrawal

type ERC20Withdrawal struct {

	// The Vega network internal identifier of the asset
	VegaAssetId string `protobuf:"bytes,1,opt,name=vega_asset_id,json=vegaAssetId,proto3" json:"vega_asset_id,omitempty"`
	// The target Ethereum wallet address
	TargetEthereumAddress string `` /* 126-byte string literal not displayed */
	// The 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
}

An 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) PrepareToSign

func (c *ERC20Withdrawal) PrepareToSign() ([]byte, error)

func (*ERC20Withdrawal) ProtoMessage

func (*ERC20Withdrawal) ProtoMessage()

func (*ERC20Withdrawal) ProtoReflect added in v0.49.0

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

func (*ERC20Withdrawal) Reset

func (x *ERC20Withdrawal) Reset()

func (*ERC20Withdrawal) String

func (x *ERC20Withdrawal) String() string

type Epoch added in v0.42.0

type Epoch struct {

	// Sequence is used as epoch identifier
	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 added in v0.42.0

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

Deprecated: Use Epoch.ProtoReflect.Descriptor instead.

func (*Epoch) GetDelegations added in v0.42.0

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

func (*Epoch) GetSeq added in v0.42.0

func (x *Epoch) GetSeq() uint64

func (*Epoch) GetTimestamps added in v0.42.0

func (x *Epoch) GetTimestamps() *EpochTimestamps

func (*Epoch) GetValidators added in v0.42.0

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

func (*Epoch) ProtoMessage added in v0.42.0

func (*Epoch) ProtoMessage()

func (*Epoch) ProtoReflect added in v0.49.0

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

func (*Epoch) Reset added in v0.42.0

func (x *Epoch) Reset()

func (*Epoch) String added in v0.42.0

func (x *Epoch) String() string

type EpochAction added in v0.42.0

type EpochAction int32

What epoch action has occurred

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

func (EpochAction) Descriptor added in v0.49.0

func (EpochAction) Enum added in v0.49.0

func (x EpochAction) Enum() *EpochAction

func (EpochAction) EnumDescriptor deprecated added in v0.42.0

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

Deprecated: Use EpochAction.Descriptor instead.

func (EpochAction) Number added in v0.49.0

func (x EpochAction) Number() protoreflect.EnumNumber

func (EpochAction) String added in v0.42.0

func (x EpochAction) String() string

func (EpochAction) Type added in v0.49.0

type EpochData added in v0.42.0

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 added in v0.42.0

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

Deprecated: Use EpochData.ProtoReflect.Descriptor instead.

func (*EpochData) GetOffline added in v0.42.0

func (x *EpochData) GetOffline() int32

func (*EpochData) GetOnline added in v0.42.0

func (x *EpochData) GetOnline() int32

func (*EpochData) GetTotal added in v0.42.0

func (x *EpochData) GetTotal() int32

func (*EpochData) ProtoMessage added in v0.42.0

func (*EpochData) ProtoMessage()

func (*EpochData) ProtoReflect added in v0.49.0

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

func (*EpochData) Reset added in v0.42.0

func (x *EpochData) Reset()

func (*EpochData) String added in v0.42.0

func (x *EpochData) String() string

type EpochParticipation added in v0.42.0

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 added in v0.42.0

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

Deprecated: Use EpochParticipation.ProtoReflect.Descriptor instead.

func (*EpochParticipation) GetEpoch added in v0.42.0

func (x *EpochParticipation) GetEpoch() *Epoch

func (*EpochParticipation) GetOffline added in v0.42.0

func (x *EpochParticipation) GetOffline() uint64

func (*EpochParticipation) GetOnline added in v0.42.0

func (x *EpochParticipation) GetOnline() uint64

func (*EpochParticipation) GetTotalRewards added in v0.42.0

func (x *EpochParticipation) GetTotalRewards() float64

func (*EpochParticipation) ProtoMessage added in v0.42.0

func (*EpochParticipation) ProtoMessage()

func (*EpochParticipation) ProtoReflect added in v0.49.0

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

func (*EpochParticipation) Reset added in v0.42.0

func (x *EpochParticipation) Reset()

func (*EpochParticipation) String added in v0.42.0

func (x *EpochParticipation) String() string

type EpochTimestamps added in v0.42.0

type EpochTimestamps struct {

	// Timestamp of epoch start in nanoseconds
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	StartTime int64 `protobuf:"varint,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Timestamp of epoch expiry in nanoseconds
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	ExpiryTime int64 `protobuf:"varint,2,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"`
	// Timestamp of epoch end in nanoseconds, empty if not started
	// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
	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 added in v0.42.0

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

Deprecated: Use EpochTimestamps.ProtoReflect.Descriptor instead.

func (*EpochTimestamps) GetEndTime added in v0.42.0

func (x *EpochTimestamps) GetEndTime() int64

func (*EpochTimestamps) GetExpiryTime added in v0.42.0

func (x *EpochTimestamps) GetExpiryTime() int64

func (*EpochTimestamps) GetFirstBlock added in v0.42.0

func (x *EpochTimestamps) GetFirstBlock() uint64

func (*EpochTimestamps) GetLastBlock added in v0.42.0

func (x *EpochTimestamps) GetLastBlock() uint64

func (*EpochTimestamps) GetStartTime added in v0.42.0

func (x *EpochTimestamps) GetStartTime() int64

func (*EpochTimestamps) ProtoMessage added in v0.42.0

func (*EpochTimestamps) ProtoMessage()

func (*EpochTimestamps) ProtoReflect added in v0.49.0

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

func (*EpochTimestamps) Reset added in v0.42.0

func (x *EpochTimestamps) Reset()

func (*EpochTimestamps) String added in v0.42.0

func (x *EpochTimestamps) String() string

type Erc20WithdrawExt

type Erc20WithdrawExt struct {

	// The 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
}

An 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 added in v0.49.0

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 {

	// A 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"`
	// A 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</