v1

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UndelegateSubmission_Method_name = map[int32]string{
		0: "METHOD_UNSPECIFIED",
		1: "METHOD_NOW",
		2: "METHOD_AT_END_OF_EPOCH",
		3: "METHOD_IN_ANGER",
	}
	UndelegateSubmission_Method_value = map[string]int32{
		"METHOD_UNSPECIFIED":     0,
		"METHOD_NOW":             1,
		"METHOD_AT_END_OF_EPOCH": 2,
		"METHOD_IN_ANGER":        3,
	}
)

Enum value maps for UndelegateSubmission_Method.

View Source
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.

View Source
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.

View Source
var File_commands_v1_commands_proto protoreflect.FileDescriptor
View Source
var File_commands_v1_oracles_proto protoreflect.FileDescriptor
View Source
var File_commands_v1_transaction_proto protoreflect.FileDescriptor
View Source
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_Btc struct {
	// Bitcoin BTC event
	Btc *proto1.BTCEvent `protobuf:"bytes,1003,opt,name=btc,proto3,oneof"`
}

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

type DelegateSubmission struct {

	// The ID for the node to delegate to
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// The amount of stake to delegate
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

A command to submit an instruction to delegate some stake to a node

func (*DelegateSubmission) Descriptor deprecated added in v0.41.0

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

Deprecated: Use DelegateSubmission.ProtoReflect.Descriptor instead.

func (*DelegateSubmission) GetAmount added in v0.41.0

func (x *DelegateSubmission) GetAmount() uint64

func (*DelegateSubmission) GetNodeId added in v0.41.0

func (x *DelegateSubmission) GetNodeId() string

func (*DelegateSubmission) ProtoMessage added in v0.41.0

func (*DelegateSubmission) ProtoMessage()

func (*DelegateSubmission) ProtoReflect added in v0.41.0

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

func (*DelegateSubmission) Reset added in v0.41.0

func (x *DelegateSubmission) Reset()

func (*DelegateSubmission) String added in v0.41.0

func (x *DelegateSubmission) String() string

func (*DelegateSubmission) Validate added in v0.41.0

func (this *DelegateSubmission) Validate() error

type InputData added in v0.37.0

type InputData struct {

	// A random number used to provided uniqueness and prevents against replay
	// attack.
	Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// The block height associated to the transaction.
	// This should always be current height of the node at the time of sending the
	// Tx. BlockHeight is used as a mechanism for replay protection.
	BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// Types that are assignable to Command:
	//	*InputData_OrderSubmission
	//	*InputData_OrderCancellation
	//	*InputData_OrderAmendment
	//	*InputData_WithdrawSubmission
	//	*InputData_ProposalSubmission
	//	*InputData_VoteSubmission
	//	*InputData_LiquidityProvisionSubmission
	//	*InputData_DelegateSubmission
	//	*InputData_UndelegateSubmission
	//	*InputData_NodeRegistration
	//	*InputData_NodeVote
	//	*InputData_NodeSignature
	//	*InputData_ChainEvent
	//	*InputData_OracleDataSubmission
	Command isInputData_Command `protobuf_oneof:"command"`
	// contains filtered or unexported fields
}

func (*InputData) Descriptor deprecated added in v0.37.0

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

Deprecated: Use InputData.ProtoReflect.Descriptor instead.

func (*InputData) GetBlockHeight added in v0.37.0

func (x *InputData) GetBlockHeight() uint64

func (*InputData) GetChainEvent added in v0.37.0

func (x *InputData) GetChainEvent() *ChainEvent

func (*InputData) GetCommand added in v0.37.0

func (m *InputData) GetCommand() isInputData_Command

func (*InputData) GetDelegateSubmission added in v0.41.0

func (x *InputData) GetDelegateSubmission() *DelegateSubmission

func (*InputData) GetLiquidityProvisionSubmission added in v0.37.0

func (x *InputData) GetLiquidityProvisionSubmission() *LiquidityProvisionSubmission

func (*InputData) GetNodeRegistration added in v0.37.0

func (x *InputData) GetNodeRegistration() *NodeRegistration

func (*InputData) GetNodeSignature added in v0.37.0

func (x *InputData) GetNodeSignature() *NodeSignature

func (*InputData) GetNodeVote added in v0.37.0

func (x *InputData) GetNodeVote() *NodeVote

func (*InputData) GetNonce added in v0.37.0

func (x *InputData) GetNonce() uint64

func (*InputData) GetOracleDataSubmission added in v0.37.0

func (x *InputData) GetOracleDataSubmission() *OracleDataSubmission

func (*InputData) GetOrderAmendment added in v0.37.0

func (x *InputData) GetOrderAmendment() *OrderAmendment

func (*InputData) GetOrderCancellation added in v0.37.0

func (x *InputData) GetOrderCancellation() *OrderCancellation

func (*InputData) GetOrderSubmission added in v0.37.0

func (x *InputData) GetOrderSubmission() *OrderSubmission

func (*InputData) GetProposalSubmission added in v0.37.0

func (x *InputData) GetProposalSubmission() *ProposalSubmission

func (*InputData) GetUndelegateSubmission added in v0.41.0

func (x *InputData) GetUndelegateSubmission() *UndelegateSubmission

func (*InputData) GetVoteSubmission added in v0.37.0

func (x *InputData) GetVoteSubmission() *VoteSubmission

func (*InputData) GetWithdrawSubmission added in v0.37.0

func (x *InputData) GetWithdrawSubmission() *WithdrawSubmission

func (*InputData) ProtoMessage added in v0.37.0

func (*InputData) ProtoMessage()

func (*InputData) ProtoReflect added in v0.37.0

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

func (*InputData) Reset added in v0.37.0

func (x *InputData) Reset()

func (*InputData) String added in v0.37.0

func (x *InputData) String() string

func (*InputData) Validate added in v0.37.0

func (this *InputData) Validate() error

type InputData_ChainEvent added in v0.37.0

type InputData_ChainEvent struct {
	ChainEvent *ChainEvent `protobuf:"bytes,2004,opt,name=chain_event,json=chainEvent,proto3,oneof"`
}

type InputData_DelegateSubmission added in v0.41.0

type InputData_DelegateSubmission struct {
	DelegateSubmission *DelegateSubmission `protobuf:"bytes,1008,opt,name=delegate_submission,json=delegateSubmission,proto3,oneof"`
}

type InputData_LiquidityProvisionSubmission added in v0.37.0

type InputData_LiquidityProvisionSubmission struct {
	LiquidityProvisionSubmission *LiquidityProvisionSubmission `protobuf:"bytes,1007,opt,name=liquidity_provision_submission,json=liquidityProvisionSubmission,proto3,oneof"`
}

type InputData_NodeRegistration added in v0.37.0

type InputData_NodeRegistration struct {
	// Validator commands
	NodeRegistration *NodeRegistration `protobuf:"bytes,2001,opt,name=node_registration,json=nodeRegistration,proto3,oneof"`
}

type InputData_NodeSignature added in v0.37.0

type InputData_NodeSignature struct {
	NodeSignature *NodeSignature `protobuf:"bytes,2003,opt,name=node_signature,json=nodeSignature,proto3,oneof"`
}

type InputData_NodeVote added in v0.37.0

type InputData_NodeVote struct {
	NodeVote *NodeVote `protobuf:"bytes,2002,opt,name=node_vote,json=nodeVote,proto3,oneof"`
}

type InputData_OracleDataSubmission added in v0.37.0

type InputData_OracleDataSubmission struct {
	// Oracles
	OracleDataSubmission *OracleDataSubmission `protobuf:"bytes,3001,opt,name=oracle_data_submission,json=oracleDataSubmission,proto3,oneof"`
}

type InputData_OrderAmendment added in v0.37.0

type InputData_OrderAmendment struct {
	OrderAmendment *OrderAmendment `protobuf:"bytes,1003,opt,name=order_amendment,json=orderAmendment,proto3,oneof"`
}

type InputData_OrderCancellation added in v0.37.0

type InputData_OrderCancellation struct {
	OrderCancellation *OrderCancellation `protobuf:"bytes,1002,opt,name=order_cancellation,json=orderCancellation,proto3,oneof"`
}

type InputData_OrderSubmission added in v0.37.0

type InputData_OrderSubmission struct {
	// User commands
	OrderSubmission *OrderSubmission `protobuf:"bytes,1001,opt,name=order_submission,json=orderSubmission,proto3,oneof"`
}

type InputData_ProposalSubmission added in v0.37.0

type InputData_ProposalSubmission struct {
	ProposalSubmission *ProposalSubmission `protobuf:"bytes,1005,opt,name=proposal_submission,json=proposalSubmission,proto3,oneof"`
}

type InputData_UndelegateSubmission added in v0.41.0

type InputData_UndelegateSubmission struct {
	UndelegateSubmission *UndelegateSubmission `protobuf:"bytes,1009,opt,name=undelegate_submission,json=undelegateSubmission,proto3,oneof"`
}

type InputData_VoteSubmission added in v0.37.0

type InputData_VoteSubmission struct {
	VoteSubmission *VoteSubmission `protobuf:"bytes,1006,opt,name=vote_submission,json=voteSubmission,proto3,oneof"`
}

type InputData_WithdrawSubmission added in v0.37.0

type InputData_WithdrawSubmission struct {
	WithdrawSubmission *WithdrawSubmission `protobuf:"bytes,1004,opt,name=withdraw_submission,json=withdrawSubmission,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 (*LiquidityProvisionSubmission) GetCommitmentAmount

func (x *LiquidityProvisionSubmission) GetCommitmentAmount() uint64

func (*LiquidityProvisionSubmission) GetFee

func (*LiquidityProvisionSubmission) GetMarketId

func (x *LiquidityProvisionSubmission) GetMarketId() string

func (*LiquidityProvisionSubmission) GetReference

func (x *LiquidityProvisionSubmission) GetReference() string

func (*LiquidityProvisionSubmission) GetSells

func (*LiquidityProvisionSubmission) ProtoMessage

func (*LiquidityProvisionSubmission) ProtoMessage()

func (*LiquidityProvisionSubmission) ProtoReflect

func (*LiquidityProvisionSubmission) Reset

func (x *LiquidityProvisionSubmission) Reset()

func (*LiquidityProvisionSubmission) 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"`
	// URL with more info on the node
	InfoUrl string `protobuf:"bytes,3,opt,name=info_url,json=infoUrl,proto3" json:"info_url,omitempty"`
	// Country code (ISO 3166-1 alpha-2) for the location of the node
	Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,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) GetCountry added in v0.41.0

func (x *NodeRegistration) GetCountry() string

func (*NodeRegistration) GetInfoUrl added in v0.41.0

func (x *NodeRegistration) GetInfoUrl() string

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

func (NodeSignatureKind) EnumDescriptor deprecated

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

Deprecated: Use NodeSignatureKind.Descriptor instead.

func (NodeSignatureKind) Number

func (NodeSignatureKind) String

func (x NodeSignatureKind) String() string

func (NodeSignatureKind) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use NodeVote.ProtoReflect.Descriptor instead.

func (*NodeVote) GetPubKey

func (x *NodeVote) GetPubKey() []byte

func (*NodeVote) GetReference

func (x *NodeVote) GetReference() string

func (*NodeVote) ProtoMessage

func (*NodeVote) ProtoMessage()

func (*NodeVote) ProtoReflect

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

func (*NodeVote) Reset

func (x *NodeVote) Reset()

func (*NodeVote) String

func (x *NodeVote) String() string

func (*NodeVote) Validate

func (this *NodeVote) Validate() error

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 (*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) Enum

func (OracleDataSubmission_OracleSource) EnumDescriptor deprecated

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

Deprecated: Use OracleDataSubmission_OracleSource.Descriptor instead.

func (OracleDataSubmission_OracleSource) Number

func (OracleDataSubmission_OracleSource) String

func (OracleDataSubmission_OracleSource) Type

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"`
	// Market identifier, this is required to find the order and will not be updated
	MarketId string `protobuf:"bytes,2,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,3,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,4,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,5,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,6,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,7,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) 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 Signature added in v0.37.0

type Signature struct {

	// The bytes of the signature (hex-encoded).
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// The algorithm used to create the signature.
	Algo string `protobuf:"bytes,2,opt,name=algo,proto3" json:"algo,omitempty"`
	// The version of the signature used to create the signature.
	Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

A signature to be authenticate a transaction and to be verified by the vega network.

func (*Signature) Descriptor deprecated added in v0.37.0

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetAlgo added in v0.37.0

func (x *Signature) GetAlgo() string

func (*Signature) GetValue added in v0.38.0

func (x *Signature) GetValue() string

func (*Signature) GetVersion added in v0.37.0

func (x *Signature) GetVersion() uint32

func (*Signature) ProtoMessage added in v0.37.0

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect added in v0.37.0

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

func (*Signature) Reset added in v0.37.0

func (x *Signature) Reset()

func (*Signature) String added in v0.37.0

func (x *Signature) String() string

func (*Signature) Validate added in v0.37.0

func (this *Signature) Validate() error

type Transaction added in v0.37.0

type Transaction struct {

	// One of the set of Vega commands (proto marshalled).
	InputData []byte `protobuf:"bytes,1,opt,name=input_data,json=inputData,proto3" json:"input_data,omitempty"`
	// The signature of the inputData.
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// The sender of the transaction.
	// Any of the following would be valid:
	//
	// Types that are assignable to From:
	//	*Transaction_Address
	//	*Transaction_PubKey
	From isTransaction_From `protobuf_oneof:"from"`
	// A version of the transaction, to be used in the future in case we want to
	// implement changes to the Transaction format.
	Version uint32 `protobuf:"varint,2000,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

Represents a transaction to be sent to Vega.

func (*Transaction) Descriptor deprecated added in v0.37.0

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAddress added in v0.37.0

func (x *Transaction) GetAddress() string

func (*Transaction) GetFrom added in v0.37.0

func (m *Transaction) GetFrom() isTransaction_From

func (*Transaction) GetInputData added in v0.37.0

func (x *Transaction) GetInputData() []byte

func (*Transaction) GetPubKey added in v0.37.0

func (x *Transaction) GetPubKey() string

func (*Transaction) GetSignature added in v0.37.0

func (x *Transaction) GetSignature() *Signature

func (*Transaction) GetVersion added in v0.37.0

func (x *Transaction) GetVersion() uint32

func (*Transaction) ProtoMessage added in v0.37.0

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect added in v0.37.0

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

func (*Transaction) Reset added in v0.37.0

func (x *Transaction) Reset()

func (*Transaction) String added in v0.37.0

func (x *Transaction) String() string

func (*Transaction) Validate added in v0.37.0

func (this *Transaction) Validate() error

type Transaction_Address added in v0.37.0

type Transaction_Address struct {
	// The address of the sender (hex-encoded). Not supported yet.
	Address string `protobuf:"bytes,1001,opt,name=address,proto3,oneof"`
}

type Transaction_PubKey added in v0.37.0

type Transaction_PubKey struct {
	// The public key of the sender (hex-encoded).
	PubKey string `protobuf:"bytes,1002,opt,name=pub_key,json=pubKey,proto3,oneof"`
}

type UndelegateSubmission added in v0.41.0

type UndelegateSubmission struct {
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// optional, if not specified = ALL
	Amount uint64                      `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Method UndelegateSubmission_Method `protobuf:"varint,3,opt,name=method,proto3,enum=vega.commands.v1.UndelegateSubmission_Method" json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*UndelegateSubmission) Descriptor deprecated added in v0.41.0

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

Deprecated: Use UndelegateSubmission.ProtoReflect.Descriptor instead.

func (*UndelegateSubmission) GetAmount added in v0.41.0

func (x *UndelegateSubmission) GetAmount() uint64

func (*UndelegateSubmission) GetMethod added in v0.41.0

func (*UndelegateSubmission) GetNodeId added in v0.41.0

func (x *UndelegateSubmission) GetNodeId() string

func (*UndelegateSubmission) ProtoMessage added in v0.41.0

func (*UndelegateSubmission) ProtoMessage()

func (*UndelegateSubmission) ProtoReflect added in v0.41.0

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

func (*UndelegateSubmission) Reset added in v0.41.0

func (x *UndelegateSubmission) Reset()

func (*UndelegateSubmission) String added in v0.41.0

func (x *UndelegateSubmission) String() string

func (*UndelegateSubmission) Validate added in v0.41.0

func (this *UndelegateSubmission) Validate() error

type UndelegateSubmission_Method added in v0.41.0

type UndelegateSubmission_Method int32
const (
	UndelegateSubmission_METHOD_UNSPECIFIED     UndelegateSubmission_Method = 0
	UndelegateSubmission_METHOD_NOW             UndelegateSubmission_Method = 1
	UndelegateSubmission_METHOD_AT_END_OF_EPOCH UndelegateSubmission_Method = 2
	UndelegateSubmission_METHOD_IN_ANGER        UndelegateSubmission_Method = 3
)

func (UndelegateSubmission_Method) Descriptor added in v0.41.0

func (UndelegateSubmission_Method) Enum added in v0.41.0

func (UndelegateSubmission_Method) EnumDescriptor deprecated added in v0.41.0

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

Deprecated: Use UndelegateSubmission_Method.Descriptor instead.

func (UndelegateSubmission_Method) Number added in v0.41.0

func (UndelegateSubmission_Method) String added in v0.41.0

func (UndelegateSubmission_Method) Type added in v0.41.0

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

Jump to

Keyboard shortcuts

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