Documentation
¶
Index ¶
- Variables
- type ChainEvent
- func (*ChainEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ChainEvent) GetBtc() *proto1.BTCEvent
- func (x *ChainEvent) GetBuiltin() *proto1.BuiltinAssetEvent
- func (x *ChainEvent) GetErc20() *proto1.ERC20Event
- func (m *ChainEvent) GetEvent() isChainEvent_Event
- func (x *ChainEvent) GetNonce() uint64
- func (x *ChainEvent) GetTxId() string
- func (x *ChainEvent) GetValidator() *proto1.ValidatorEvent
- func (*ChainEvent) ProtoMessage()
- func (x *ChainEvent) ProtoReflect() protoreflect.Message
- func (x *ChainEvent) Reset()
- func (x *ChainEvent) String() string
- func (this *ChainEvent) Validate() error
- type ChainEvent_Btc
- type ChainEvent_Builtin
- type ChainEvent_Erc20
- type ChainEvent_Validator
- type LiquidityProvisionSubmission
- func (*LiquidityProvisionSubmission) Descriptor() ([]byte, []int)deprecated
- func (x *LiquidityProvisionSubmission) GetBuys() []*proto1.LiquidityOrder
- func (x *LiquidityProvisionSubmission) GetCommitmentAmount() uint64
- func (x *LiquidityProvisionSubmission) GetFee() string
- func (x *LiquidityProvisionSubmission) GetMarketId() string
- func (x *LiquidityProvisionSubmission) GetReference() string
- func (x *LiquidityProvisionSubmission) GetSells() []*proto1.LiquidityOrder
- func (*LiquidityProvisionSubmission) ProtoMessage()
- func (x *LiquidityProvisionSubmission) ProtoReflect() protoreflect.Message
- func (x *LiquidityProvisionSubmission) Reset()
- func (x *LiquidityProvisionSubmission) String() string
- func (this *LiquidityProvisionSubmission) Validate() error
- type NodeRegistration
- func (*NodeRegistration) Descriptor() ([]byte, []int)deprecated
- func (x *NodeRegistration) GetChainPubKey() []byte
- func (x *NodeRegistration) GetPubKey() []byte
- func (*NodeRegistration) ProtoMessage()
- func (x *NodeRegistration) ProtoReflect() protoreflect.Message
- func (x *NodeRegistration) Reset()
- func (x *NodeRegistration) String() string
- func (this *NodeRegistration) Validate() error
- type NodeSignature
- func (*NodeSignature) Descriptor() ([]byte, []int)deprecated
- func (x *NodeSignature) GetId() string
- func (x *NodeSignature) GetKind() NodeSignatureKind
- func (x *NodeSignature) GetSig() []byte
- func (*NodeSignature) ProtoMessage()
- func (x *NodeSignature) ProtoReflect() protoreflect.Message
- func (x *NodeSignature) Reset()
- func (x *NodeSignature) String() string
- func (this *NodeSignature) Validate() error
- type NodeSignatureKind
- func (NodeSignatureKind) Descriptor() protoreflect.EnumDescriptor
- func (x NodeSignatureKind) Enum() *NodeSignatureKind
- func (NodeSignatureKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x NodeSignatureKind) Number() protoreflect.EnumNumber
- func (x NodeSignatureKind) String() string
- func (NodeSignatureKind) Type() protoreflect.EnumType
- type NodeVote
- func (*NodeVote) Descriptor() ([]byte, []int)deprecated
- func (x *NodeVote) GetPubKey() []byte
- func (x *NodeVote) GetReference() string
- func (*NodeVote) ProtoMessage()
- func (x *NodeVote) ProtoReflect() protoreflect.Message
- func (x *NodeVote) Reset()
- func (x *NodeVote) String() string
- func (this *NodeVote) Validate() error
- type OracleDataSubmission
- func (*OracleDataSubmission) Descriptor() ([]byte, []int)deprecated
- func (x *OracleDataSubmission) GetPayload() []byte
- func (x *OracleDataSubmission) GetSource() OracleDataSubmission_OracleSource
- func (*OracleDataSubmission) ProtoMessage()
- func (x *OracleDataSubmission) ProtoReflect() protoreflect.Message
- func (x *OracleDataSubmission) Reset()
- func (x *OracleDataSubmission) String() string
- func (this *OracleDataSubmission) Validate() error
- type OracleDataSubmission_OracleSource
- func (OracleDataSubmission_OracleSource) Descriptor() protoreflect.EnumDescriptor
- func (x OracleDataSubmission_OracleSource) Enum() *OracleDataSubmission_OracleSource
- func (OracleDataSubmission_OracleSource) EnumDescriptor() ([]byte, []int)deprecated
- func (x OracleDataSubmission_OracleSource) Number() protoreflect.EnumNumber
- func (x OracleDataSubmission_OracleSource) String() string
- func (OracleDataSubmission_OracleSource) Type() protoreflect.EnumType
- type OrderAmendment
- func (*OrderAmendment) Descriptor() ([]byte, []int)deprecated
- func (x *OrderAmendment) GetExpiresAt() *proto1.Timestamp
- func (x *OrderAmendment) GetMarketId() string
- func (x *OrderAmendment) GetOrderId() string
- func (x *OrderAmendment) GetPartyId() string
- func (x *OrderAmendment) GetPeggedOffset() *wrappers.Int64Value
- func (x *OrderAmendment) GetPeggedReference() proto1.PeggedReference
- func (x *OrderAmendment) GetPrice() *proto1.Price
- func (x *OrderAmendment) GetSizeDelta() int64
- func (x *OrderAmendment) GetTimeInForce() proto1.Order_TimeInForce
- func (*OrderAmendment) ProtoMessage()
- func (x *OrderAmendment) ProtoReflect() protoreflect.Message
- func (x *OrderAmendment) Reset()
- func (x *OrderAmendment) String() string
- func (this *OrderAmendment) Validate() error
- type OrderCancellation
- func (*OrderCancellation) Descriptor() ([]byte, []int)deprecated
- func (x *OrderCancellation) GetMarketId() string
- func (x *OrderCancellation) GetOrderId() string
- func (*OrderCancellation) ProtoMessage()
- func (x *OrderCancellation) ProtoReflect() protoreflect.Message
- func (x *OrderCancellation) Reset()
- func (x *OrderCancellation) String() string
- func (this *OrderCancellation) Validate() error
- type OrderSubmission
- func (*OrderSubmission) Descriptor() ([]byte, []int)deprecated
- func (x *OrderSubmission) GetExpiresAt() int64
- func (x *OrderSubmission) GetMarketId() string
- func (x *OrderSubmission) GetPeggedOrder() *proto1.PeggedOrder
- func (x *OrderSubmission) GetPrice() uint64
- func (x *OrderSubmission) GetReference() string
- func (x *OrderSubmission) GetSide() proto1.Side
- func (x *OrderSubmission) GetSize() uint64
- func (x *OrderSubmission) GetTimeInForce() proto1.Order_TimeInForce
- func (x *OrderSubmission) GetType() proto1.Order_Type
- func (*OrderSubmission) ProtoMessage()
- func (x *OrderSubmission) ProtoReflect() protoreflect.Message
- func (x *OrderSubmission) Reset()
- func (x *OrderSubmission) String() string
- func (this *OrderSubmission) Validate() error
- type ProposalSubmission
- func (*ProposalSubmission) Descriptor() ([]byte, []int)deprecated
- func (x *ProposalSubmission) GetReference() string
- func (x *ProposalSubmission) GetTerms() *proto1.ProposalTerms
- func (*ProposalSubmission) ProtoMessage()
- func (x *ProposalSubmission) ProtoReflect() protoreflect.Message
- func (x *ProposalSubmission) Reset()
- func (x *ProposalSubmission) String() string
- func (this *ProposalSubmission) Validate() error
- type VoteSubmission
- func (*VoteSubmission) Descriptor() ([]byte, []int)deprecated
- func (x *VoteSubmission) GetProposalId() string
- func (x *VoteSubmission) GetValue() proto1.Vote_Value
- func (*VoteSubmission) ProtoMessage()
- func (x *VoteSubmission) ProtoReflect() protoreflect.Message
- func (x *VoteSubmission) Reset()
- func (x *VoteSubmission) String() string
- func (this *VoteSubmission) Validate() error
- type WithdrawSubmission
- func (*WithdrawSubmission) Descriptor() ([]byte, []int)deprecated
- func (x *WithdrawSubmission) GetAmount() uint64
- func (x *WithdrawSubmission) GetAsset() string
- func (x *WithdrawSubmission) GetExt() *proto1.WithdrawExt
- func (*WithdrawSubmission) ProtoMessage()
- func (x *WithdrawSubmission) ProtoReflect() protoreflect.Message
- func (x *WithdrawSubmission) Reset()
- func (x *WithdrawSubmission) String() string
- func (this *WithdrawSubmission) Validate() error
Constants ¶
This section is empty.
Variables ¶
var ( OracleDataSubmission_OracleSource_name = map[int32]string{ 0: "ORACLE_SOURCE_UNSPECIFIED", 1: "ORACLE_SOURCE_OPEN_ORACLE", } OracleDataSubmission_OracleSource_value = map[string]int32{ "ORACLE_SOURCE_UNSPECIFIED": 0, "ORACLE_SOURCE_OPEN_ORACLE": 1, } )
Enum value maps for OracleDataSubmission_OracleSource.
var ( NodeSignatureKind_name = map[int32]string{ 0: "NODE_SIGNATURE_KIND_UNSPECIFIED", 1: "NODE_SIGNATURE_KIND_ASSET_NEW", 2: "NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL", } NodeSignatureKind_value = map[string]int32{ "NODE_SIGNATURE_KIND_UNSPECIFIED": 0, "NODE_SIGNATURE_KIND_ASSET_NEW": 1, "NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL": 2, } )
Enum value maps for NodeSignatureKind.
var File_commands_v1_commands_proto protoreflect.FileDescriptor
var File_commands_v1_oracles_proto protoreflect.FileDescriptor
var File_commands_v1_validator_commands_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ChainEvent ¶
type ChainEvent struct {
// The identifier of the transaction in which the events happened, usually a hash
TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
// Arbitrary one-time integer used to prevent replay attacks
Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
// The event
//
// Types that are assignable to Event:
// *ChainEvent_Builtin
// *ChainEvent_Erc20
// *ChainEvent_Btc
// *ChainEvent_Validator
Event isChainEvent_Event `protobuf_oneof:"event"`
// contains filtered or unexported fields
}
An event forwarded to the Vega network to provide information on events happening on other networks
func (*ChainEvent) Descriptor
deprecated
func (*ChainEvent) Descriptor() ([]byte, []int)
Deprecated: Use ChainEvent.ProtoReflect.Descriptor instead.
func (*ChainEvent) GetBtc ¶
func (x *ChainEvent) GetBtc() *proto1.BTCEvent
func (*ChainEvent) GetBuiltin ¶
func (x *ChainEvent) GetBuiltin() *proto1.BuiltinAssetEvent
func (*ChainEvent) GetErc20 ¶
func (x *ChainEvent) GetErc20() *proto1.ERC20Event
func (*ChainEvent) GetEvent ¶
func (m *ChainEvent) GetEvent() isChainEvent_Event
func (*ChainEvent) GetNonce ¶
func (x *ChainEvent) GetNonce() uint64
func (*ChainEvent) GetTxId ¶
func (x *ChainEvent) GetTxId() string
func (*ChainEvent) GetValidator ¶
func (x *ChainEvent) GetValidator() *proto1.ValidatorEvent
func (*ChainEvent) ProtoMessage ¶
func (*ChainEvent) ProtoMessage()
func (*ChainEvent) ProtoReflect ¶
func (x *ChainEvent) ProtoReflect() protoreflect.Message
func (*ChainEvent) Reset ¶
func (x *ChainEvent) Reset()
func (*ChainEvent) String ¶
func (x *ChainEvent) String() string
func (*ChainEvent) Validate ¶
func (this *ChainEvent) Validate() error
type ChainEvent_Btc ¶
type ChainEvent_Builtin ¶
type ChainEvent_Builtin struct {
// Built-in asset event
Builtin *proto1.BuiltinAssetEvent `protobuf:"bytes,1001,opt,name=builtin,proto3,oneof"`
}
type ChainEvent_Erc20 ¶
type ChainEvent_Erc20 struct {
// Ethereum ERC20 event
Erc20 *proto1.ERC20Event `protobuf:"bytes,1002,opt,name=erc20,proto3,oneof"`
}
type ChainEvent_Validator ¶
type ChainEvent_Validator struct {
// Validator event
Validator *proto1.ValidatorEvent `protobuf:"bytes,1004,opt,name=validator,proto3,oneof"`
}
type LiquidityProvisionSubmission ¶
type LiquidityProvisionSubmission struct {
// Market identifier for the order, required field
MarketId string `protobuf:"bytes,1,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
CommitmentAmount uint64 `protobuf:"varint,2,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 seeting fees and rewarding liquidity providers
Fee string `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"`
// A set of liquidity sell orders to meet the liquidity provision obligation
Sells []*proto1.LiquidityOrder `protobuf:"bytes,4,rep,name=sells,proto3" json:"sells,omitempty"`
// A set of liquidity buy orders to meet the liquidity provision obligation
Buys []*proto1.LiquidityOrder `protobuf:"bytes,5,rep,name=buys,proto3" json:"buys,omitempty"`
// A reference to be added to every order created out of this liquidityProvisionSubmission
Reference string `protobuf:"bytes,6,opt,name=reference,proto3" json:"reference,omitempty"`
// contains filtered or unexported fields
}
A liquidity provision submitted for a given market
func (*LiquidityProvisionSubmission) Descriptor
deprecated
func (*LiquidityProvisionSubmission) Descriptor() ([]byte, []int)
Deprecated: Use LiquidityProvisionSubmission.ProtoReflect.Descriptor instead.
func (*LiquidityProvisionSubmission) GetBuys ¶
func (x *LiquidityProvisionSubmission) GetBuys() []*proto1.LiquidityOrder
func (*LiquidityProvisionSubmission) GetCommitmentAmount ¶
func (x *LiquidityProvisionSubmission) GetCommitmentAmount() uint64
func (*LiquidityProvisionSubmission) GetFee ¶
func (x *LiquidityProvisionSubmission) GetFee() string
func (*LiquidityProvisionSubmission) GetMarketId ¶
func (x *LiquidityProvisionSubmission) GetMarketId() string
func (*LiquidityProvisionSubmission) GetReference ¶
func (x *LiquidityProvisionSubmission) GetReference() string
func (*LiquidityProvisionSubmission) GetSells ¶
func (x *LiquidityProvisionSubmission) GetSells() []*proto1.LiquidityOrder
func (*LiquidityProvisionSubmission) ProtoMessage ¶
func (*LiquidityProvisionSubmission) ProtoMessage()
func (*LiquidityProvisionSubmission) ProtoReflect ¶
func (x *LiquidityProvisionSubmission) ProtoReflect() protoreflect.Message
func (*LiquidityProvisionSubmission) Reset ¶
func (x *LiquidityProvisionSubmission) Reset()
func (*LiquidityProvisionSubmission) String ¶
func (x *LiquidityProvisionSubmission) String() string
func (*LiquidityProvisionSubmission) Validate ¶
func (this *LiquidityProvisionSubmission) Validate() error
type NodeRegistration ¶
type NodeRegistration struct {
// Public key, required field
PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
// Public key for the blockchain, required field
ChainPubKey []byte `protobuf:"bytes,2,opt,name=chain_pub_key,json=chainPubKey,proto3" json:"chain_pub_key,omitempty"`
// contains filtered or unexported fields
}
Used to Register a node as a validator during network start-up
func (*NodeRegistration) Descriptor
deprecated
func (*NodeRegistration) Descriptor() ([]byte, []int)
Deprecated: Use NodeRegistration.ProtoReflect.Descriptor instead.
func (*NodeRegistration) GetChainPubKey ¶
func (x *NodeRegistration) GetChainPubKey() []byte
func (*NodeRegistration) GetPubKey ¶
func (x *NodeRegistration) GetPubKey() []byte
func (*NodeRegistration) ProtoMessage ¶
func (*NodeRegistration) ProtoMessage()
func (*NodeRegistration) ProtoReflect ¶
func (x *NodeRegistration) ProtoReflect() protoreflect.Message
func (*NodeRegistration) Reset ¶
func (x *NodeRegistration) Reset()
func (*NodeRegistration) String ¶
func (x *NodeRegistration) String() string
func (*NodeRegistration) Validate ¶
func (this *NodeRegistration) Validate() error
type NodeSignature ¶
type NodeSignature struct {
// The identifier of the resource being signed
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The signature
Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
// The kind of resource being signed
Kind NodeSignatureKind `protobuf:"varint,3,opt,name=kind,proto3,enum=vega.commands.v1.NodeSignatureKind" json:"kind,omitempty"`
// contains filtered or unexported fields
}
Represents a signature from a validator, to be used by a foreign chain in order to recognise a decision taken by the Vega network
func (*NodeSignature) Descriptor
deprecated
func (*NodeSignature) Descriptor() ([]byte, []int)
Deprecated: Use NodeSignature.ProtoReflect.Descriptor instead.
func (*NodeSignature) GetId ¶
func (x *NodeSignature) GetId() string
func (*NodeSignature) GetKind ¶
func (x *NodeSignature) GetKind() NodeSignatureKind
func (*NodeSignature) GetSig ¶
func (x *NodeSignature) GetSig() []byte
func (*NodeSignature) ProtoMessage ¶
func (*NodeSignature) ProtoMessage()
func (*NodeSignature) ProtoReflect ¶
func (x *NodeSignature) ProtoReflect() protoreflect.Message
func (*NodeSignature) Reset ¶
func (x *NodeSignature) Reset()
func (*NodeSignature) String ¶
func (x *NodeSignature) String() string
func (*NodeSignature) Validate ¶
func (this *NodeSignature) Validate() error
type NodeSignatureKind ¶
type NodeSignatureKind int32
The kind of the signature created by a node, for example, allow-listing a new asset, withdrawal etc
const ( // Represents an unspecified or missing value from the input NodeSignatureKind_NODE_SIGNATURE_KIND_UNSPECIFIED NodeSignatureKind = 0 // Represents a signature for a new asset allow-listing NodeSignatureKind_NODE_SIGNATURE_KIND_ASSET_NEW NodeSignatureKind = 1 // Represents a signature for an asset withdrawal NodeSignatureKind_NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL NodeSignatureKind = 2 )
func (NodeSignatureKind) Descriptor ¶
func (NodeSignatureKind) Descriptor() protoreflect.EnumDescriptor
func (NodeSignatureKind) Enum ¶
func (x NodeSignatureKind) Enum() *NodeSignatureKind
func (NodeSignatureKind) EnumDescriptor
deprecated
func (NodeSignatureKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use NodeSignatureKind.Descriptor instead.
func (NodeSignatureKind) Number ¶
func (x NodeSignatureKind) Number() protoreflect.EnumNumber
func (NodeSignatureKind) String ¶
func (x NodeSignatureKind) String() string
func (NodeSignatureKind) Type ¶
func (NodeSignatureKind) Type() protoreflect.EnumType
type NodeVote ¶
type NodeVote struct {
// Public key, required field
PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
// Reference, required field
Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"`
// contains filtered or unexported fields
}
Used when a node votes for validating a given resource exists or is valid, for example, an ERC20 deposit is valid and exists on ethereum
func (*NodeVote) Descriptor
deprecated
func (*NodeVote) GetReference ¶
func (*NodeVote) ProtoMessage ¶
func (*NodeVote) ProtoMessage()
func (*NodeVote) ProtoReflect ¶
func (x *NodeVote) ProtoReflect() protoreflect.Message
type OracleDataSubmission ¶
type OracleDataSubmission struct {
// The source from which the data is coming from
Source OracleDataSubmission_OracleSource `protobuf:"varint,1,opt,name=source,proto3,enum=vega.commands.v1.OracleDataSubmission_OracleSource" json:"source,omitempty"`
// The data provided by the third party provider
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
// contains filtered or unexported fields
}
Command to submit new Oracle data from third party providers
func (*OracleDataSubmission) Descriptor
deprecated
func (*OracleDataSubmission) Descriptor() ([]byte, []int)
Deprecated: Use OracleDataSubmission.ProtoReflect.Descriptor instead.
func (*OracleDataSubmission) GetPayload ¶
func (x *OracleDataSubmission) GetPayload() []byte
func (*OracleDataSubmission) GetSource ¶
func (x *OracleDataSubmission) GetSource() OracleDataSubmission_OracleSource
func (*OracleDataSubmission) ProtoMessage ¶
func (*OracleDataSubmission) ProtoMessage()
func (*OracleDataSubmission) ProtoReflect ¶
func (x *OracleDataSubmission) ProtoReflect() protoreflect.Message
func (*OracleDataSubmission) Reset ¶
func (x *OracleDataSubmission) Reset()
func (*OracleDataSubmission) String ¶
func (x *OracleDataSubmission) String() string
func (*OracleDataSubmission) Validate ¶
func (this *OracleDataSubmission) Validate() error
type OracleDataSubmission_OracleSource ¶
type OracleDataSubmission_OracleSource int32
The supported Oracle sources
const ( // The default value OracleDataSubmission_ORACLE_SOURCE_UNSPECIFIED OracleDataSubmission_OracleSource = 0 // Support for Open Oracle standard OracleDataSubmission_ORACLE_SOURCE_OPEN_ORACLE OracleDataSubmission_OracleSource = 1 )
func (OracleDataSubmission_OracleSource) Descriptor ¶
func (OracleDataSubmission_OracleSource) Descriptor() protoreflect.EnumDescriptor
func (OracleDataSubmission_OracleSource) Enum ¶
func (x OracleDataSubmission_OracleSource) Enum() *OracleDataSubmission_OracleSource
func (OracleDataSubmission_OracleSource) EnumDescriptor
deprecated
func (OracleDataSubmission_OracleSource) EnumDescriptor() ([]byte, []int)
Deprecated: Use OracleDataSubmission_OracleSource.Descriptor instead.
func (OracleDataSubmission_OracleSource) Number ¶
func (x OracleDataSubmission_OracleSource) Number() protoreflect.EnumNumber
func (OracleDataSubmission_OracleSource) String ¶
func (x OracleDataSubmission_OracleSource) String() string
func (OracleDataSubmission_OracleSource) Type ¶
func (OracleDataSubmission_OracleSource) Type() protoreflect.EnumType
type OrderAmendment ¶
type OrderAmendment struct {
// Order identifier, this is required to find the order and will not be updated, required field
OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
// Party identifier, this is required to find the order and will not be updated, required field
PartyId string `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
// Market identifier, this is required to find the order and will not be updated
MarketId string `protobuf:"bytes,3,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
// Amend the price for the order, if the Price value is set, otherwise price will remain unchanged - See [`Price`](#vega.Price)
Price *proto1.Price `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"`
// Amend the size for the order by the delta specified:
// - To reduce the size from the current value set a negative integer value
// - To increase the size from the current value, set a positive integer value
// - To leave the size unchanged set a value of zero
SizeDelta int64 `protobuf:"varint,5,opt,name=size_delta,json=sizeDelta,proto3" json:"size_delta,omitempty"`
// Amend the expiry time for the order, if the Timestamp value is set, otherwise expiry time will remain unchanged
// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
ExpiresAt *proto1.Timestamp `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
// Amend the time in force for the order, set to TIME_IN_FORCE_UNSPECIFIED to remain unchanged
// - See [`TimeInForce`](#api.VegaTimeResponse).`timestamp`
TimeInForce proto1.Order_TimeInForce `protobuf:"varint,7,opt,name=time_in_force,json=timeInForce,proto3,enum=vega.Order_TimeInForce" json:"time_in_force,omitempty"`
// Amend the pegged order offset for the order
PeggedOffset *wrappers.Int64Value `protobuf:"bytes,8,opt,name=pegged_offset,json=peggedOffset,proto3" json:"pegged_offset,omitempty"`
// Amend the pegged order reference for the order
// - See [`PeggedReference`](#vega.PeggedReference)
PeggedReference proto1.PeggedReference `` /* 133-byte string literal not displayed */
// contains filtered or unexported fields
}
An order amendment is a request to amend or update an existing order on Vega
func (*OrderAmendment) Descriptor
deprecated
func (*OrderAmendment) Descriptor() ([]byte, []int)
Deprecated: Use OrderAmendment.ProtoReflect.Descriptor instead.
func (*OrderAmendment) GetExpiresAt ¶
func (x *OrderAmendment) GetExpiresAt() *proto1.Timestamp
func (*OrderAmendment) GetMarketId ¶
func (x *OrderAmendment) GetMarketId() string
func (*OrderAmendment) GetOrderId ¶
func (x *OrderAmendment) GetOrderId() string
func (*OrderAmendment) GetPartyId ¶
func (x *OrderAmendment) GetPartyId() string
func (*OrderAmendment) GetPeggedOffset ¶
func (x *OrderAmendment) GetPeggedOffset() *wrappers.Int64Value
func (*OrderAmendment) GetPeggedReference ¶
func (x *OrderAmendment) GetPeggedReference() proto1.PeggedReference
func (*OrderAmendment) GetPrice ¶
func (x *OrderAmendment) GetPrice() *proto1.Price
func (*OrderAmendment) GetSizeDelta ¶
func (x *OrderAmendment) GetSizeDelta() int64
func (*OrderAmendment) GetTimeInForce ¶
func (x *OrderAmendment) GetTimeInForce() proto1.Order_TimeInForce
func (*OrderAmendment) ProtoMessage ¶
func (*OrderAmendment) ProtoMessage()
func (*OrderAmendment) ProtoReflect ¶
func (x *OrderAmendment) ProtoReflect() protoreflect.Message
func (*OrderAmendment) Reset ¶
func (x *OrderAmendment) Reset()
func (*OrderAmendment) String ¶
func (x *OrderAmendment) String() string
func (*OrderAmendment) Validate ¶
func (this *OrderAmendment) Validate() error
type OrderCancellation ¶
type OrderCancellation struct {
// Unique identifier for the order (set by the system after consensus), required field
OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
// Market identifier for the order, required field
MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
// contains filtered or unexported fields
}
An order cancellation is a request to cancel an existing order on Vega
func (*OrderCancellation) Descriptor
deprecated
func (*OrderCancellation) Descriptor() ([]byte, []int)
Deprecated: Use OrderCancellation.ProtoReflect.Descriptor instead.
func (*OrderCancellation) GetMarketId ¶
func (x *OrderCancellation) GetMarketId() string
func (*OrderCancellation) GetOrderId ¶
func (x *OrderCancellation) GetOrderId() string
func (*OrderCancellation) ProtoMessage ¶
func (*OrderCancellation) ProtoMessage()
func (*OrderCancellation) ProtoReflect ¶
func (x *OrderCancellation) ProtoReflect() protoreflect.Message
func (*OrderCancellation) Reset ¶
func (x *OrderCancellation) Reset()
func (*OrderCancellation) String ¶
func (x *OrderCancellation) String() string
func (*OrderCancellation) Validate ¶
func (this *OrderCancellation) Validate() error
type OrderSubmission ¶
type OrderSubmission struct {
// Market identifier for the order, required field
MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,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,
// , required field for limit orders, however it is not required for market orders
Price uint64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"`
// Size for the order, for example, in a futures market the size equals the number of contracts, cannot be negative
Size uint64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
// Side for the order, e.g. SIDE_BUY or SIDE_SELL, required field - See [`Side`](#vega.Side)
Side proto1.Side `protobuf:"varint,4,opt,name=side,proto3,enum=vega.Side" json:"side,omitempty"`
// Time in force indicates how long an order will remain active before it is executed or expires, required field
// - See [`Order.TimeInForce`](#vega.Order.TimeInForce)
TimeInForce proto1.Order_TimeInForce `protobuf:"varint,5,opt,name=time_in_force,json=timeInForce,proto3,enum=vega.Order_TimeInForce" json:"time_in_force,omitempty"`
// Timestamp for when the order will expire, in nanoseconds since the epoch,
// required field only for [`Order.TimeInForce`](#vega.Order.TimeInForce)`.TIME_IN_FORCE_GTT`
// - See [`VegaTimeResponse`](#api.VegaTimeResponse).`timestamp`
ExpiresAt int64 `protobuf:"varint,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
// Type for the order, required field - See [`Order.Type`](#vega.Order.Type)
Type proto1.Order_Type `protobuf:"varint,7,opt,name=type,proto3,enum=vega.Order_Type" json:"type,omitempty"`
// Reference given for the order, this is typically used to retrieve an order submitted through consensus, currently
// set internally by the node to return a unique reference identifier for the order submission
Reference string `protobuf:"bytes,8,opt,name=reference,proto3" json:"reference,omitempty"`
// Used to specify the details for a pegged order
// - See [`PeggedOrder`](#vega.PeggedOrder)
PeggedOrder *proto1.PeggedOrder `protobuf:"bytes,9,opt,name=pegged_order,json=peggedOrder,proto3" json:"pegged_order,omitempty"`
// contains filtered or unexported fields
}
An order submission is a request to submit or create a new order on Vega
func (*OrderSubmission) Descriptor
deprecated
func (*OrderSubmission) Descriptor() ([]byte, []int)
Deprecated: Use OrderSubmission.ProtoReflect.Descriptor instead.
func (*OrderSubmission) GetExpiresAt ¶
func (x *OrderSubmission) GetExpiresAt() int64
func (*OrderSubmission) GetMarketId ¶
func (x *OrderSubmission) GetMarketId() string
func (*OrderSubmission) GetPeggedOrder ¶
func (x *OrderSubmission) GetPeggedOrder() *proto1.PeggedOrder
func (*OrderSubmission) GetPrice ¶
func (x *OrderSubmission) GetPrice() uint64
func (*OrderSubmission) GetReference ¶
func (x *OrderSubmission) GetReference() string
func (*OrderSubmission) GetSide ¶
func (x *OrderSubmission) GetSide() proto1.Side
func (*OrderSubmission) GetSize ¶
func (x *OrderSubmission) GetSize() uint64
func (*OrderSubmission) GetTimeInForce ¶
func (x *OrderSubmission) GetTimeInForce() proto1.Order_TimeInForce
func (*OrderSubmission) GetType ¶
func (x *OrderSubmission) GetType() proto1.Order_Type
func (*OrderSubmission) ProtoMessage ¶
func (*OrderSubmission) ProtoMessage()
func (*OrderSubmission) ProtoReflect ¶
func (x *OrderSubmission) ProtoReflect() protoreflect.Message
func (*OrderSubmission) Reset ¶
func (x *OrderSubmission) Reset()
func (*OrderSubmission) String ¶
func (x *OrderSubmission) String() string
func (*OrderSubmission) Validate ¶
func (this *OrderSubmission) Validate() error
type ProposalSubmission ¶
type ProposalSubmission struct {
// Proposal reference
Reference string `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"`
// Proposal configuration and the actual change that is meant to be executed when proposal is enacted
Terms *proto1.ProposalTerms `protobuf:"bytes,2,opt,name=terms,proto3" json:"terms,omitempty"`
// contains filtered or unexported fields
}
A command to submit a new proposal for the vega network governance
func (*ProposalSubmission) Descriptor
deprecated
func (*ProposalSubmission) Descriptor() ([]byte, []int)
Deprecated: Use ProposalSubmission.ProtoReflect.Descriptor instead.
func (*ProposalSubmission) GetReference ¶
func (x *ProposalSubmission) GetReference() string
func (*ProposalSubmission) GetTerms ¶
func (x *ProposalSubmission) GetTerms() *proto1.ProposalTerms
func (*ProposalSubmission) ProtoMessage ¶
func (*ProposalSubmission) ProtoMessage()
func (*ProposalSubmission) ProtoReflect ¶
func (x *ProposalSubmission) ProtoReflect() protoreflect.Message
func (*ProposalSubmission) Reset ¶
func (x *ProposalSubmission) Reset()
func (*ProposalSubmission) String ¶
func (x *ProposalSubmission) String() string
func (*ProposalSubmission) Validate ¶
func (this *ProposalSubmission) Validate() error
type VoteSubmission ¶
type VoteSubmission struct {
// The ID of the proposal to vote for.
ProposalId string `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
// The actual value of the vote
Value proto1.Vote_Value `protobuf:"varint,2,opt,name=value,proto3,enum=vega.Vote_Value" json:"value,omitempty"`
// contains filtered or unexported fields
}
A command to submit a new vote for a governance proposal.
func (*VoteSubmission) Descriptor
deprecated
func (*VoteSubmission) Descriptor() ([]byte, []int)
Deprecated: Use VoteSubmission.ProtoReflect.Descriptor instead.
func (*VoteSubmission) GetProposalId ¶
func (x *VoteSubmission) GetProposalId() string
func (*VoteSubmission) GetValue ¶
func (x *VoteSubmission) GetValue() proto1.Vote_Value
func (*VoteSubmission) ProtoMessage ¶
func (*VoteSubmission) ProtoMessage()
func (*VoteSubmission) ProtoReflect ¶
func (x *VoteSubmission) ProtoReflect() protoreflect.Message
func (*VoteSubmission) Reset ¶
func (x *VoteSubmission) Reset()
func (*VoteSubmission) String ¶
func (x *VoteSubmission) String() string
func (*VoteSubmission) Validate ¶
func (this *VoteSubmission) Validate() error
type WithdrawSubmission ¶
type WithdrawSubmission struct {
// The amount to be withdrawn
Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
// The asset we want to withdraw
Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
// Foreign chain specifics
Ext *proto1.WithdrawExt `protobuf:"bytes,3,opt,name=ext,proto3" json:"ext,omitempty"`
// contains filtered or unexported fields
}
Represents the submission request to withdraw funds for a party on Vega
func (*WithdrawSubmission) Descriptor
deprecated
func (*WithdrawSubmission) Descriptor() ([]byte, []int)
Deprecated: Use WithdrawSubmission.ProtoReflect.Descriptor instead.
func (*WithdrawSubmission) GetAmount ¶
func (x *WithdrawSubmission) GetAmount() uint64
func (*WithdrawSubmission) GetAsset ¶
func (x *WithdrawSubmission) GetAsset() string
func (*WithdrawSubmission) GetExt ¶
func (x *WithdrawSubmission) GetExt() *proto1.WithdrawExt
func (*WithdrawSubmission) ProtoMessage ¶
func (*WithdrawSubmission) ProtoMessage()
func (*WithdrawSubmission) ProtoReflect ¶
func (x *WithdrawSubmission) ProtoReflect() protoreflect.Message
func (*WithdrawSubmission) Reset ¶
func (x *WithdrawSubmission) Reset()
func (*WithdrawSubmission) String ¶
func (x *WithdrawSubmission) String() string
func (*WithdrawSubmission) Validate ¶
func (this *WithdrawSubmission) Validate() error