v1

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 6 Imported by: 13

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",
		2: "ORACLE_SOURCE_JSON",
	}
	OracleDataSubmission_OracleSource_value = map[string]int32{
		"ORACLE_SOURCE_UNSPECIFIED": 0,
		"ORACLE_SOURCE_OPEN_ORACLE": 1,
		"ORACLE_SOURCE_JSON":        2,
	}
)

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",
		3: "NODE_SIGNATURE_KIND_ERC20_MULTISIG_SIGNER_ADDED",
		4: "NODE_SIGNATURE_KIND_ERC20_MULTISIG_SIGNER_REMOVED",
		5: "NODE_SIGNATURE_KIND_ASSET_UPDATE",
	}
	NodeSignatureKind_value = map[string]int32{
		"NODE_SIGNATURE_KIND_UNSPECIFIED":                   0,
		"NODE_SIGNATURE_KIND_ASSET_NEW":                     1,
		"NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL":              2,
		"NODE_SIGNATURE_KIND_ERC20_MULTISIG_SIGNER_ADDED":   3,
		"NODE_SIGNATURE_KIND_ERC20_MULTISIG_SIGNER_REMOVED": 4,
		"NODE_SIGNATURE_KIND_ASSET_UPDATE":                  5,
	}
)

Enum value maps for NodeSignatureKind.

View Source
var File_vega_commands_v1_commands_proto protoreflect.FileDescriptor
View Source
var File_vega_commands_v1_oracles_proto protoreflect.FileDescriptor
View Source
var File_vega_commands_v1_signature_proto protoreflect.FileDescriptor
View Source
var File_vega_commands_v1_transaction_proto protoreflect.FileDescriptor
View Source
var File_vega_commands_v1_validator_commands_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AnnounceNode added in v0.49.0

type AnnounceNode struct {

	// Vega public key, required field
	VegaPubKey string `protobuf:"bytes,1,opt,name=vega_pub_key,json=vegaPubKey,proto3" json:"vega_pub_key,omitempty"`
	// Ethereum public key, required field
	EthereumAddress string `protobuf:"bytes,2,opt,name=ethereum_address,json=ethereumAddress,proto3" json:"ethereum_address,omitempty"`
	// Public key for the blockchain, required field
	ChainPubKey string `protobuf:"bytes,3,opt,name=chain_pub_key,json=chainPubKey,proto3" json:"chain_pub_key,omitempty"`
	// URL with more info on the node
	InfoUrl string `protobuf:"bytes,4,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,5,opt,name=country,proto3" json:"country,omitempty"`
	// ID of the validator, (public master key)
	Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the validator
	Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
	// AvatarURL of the validator
	AvatarUrl string `protobuf:"bytes,8,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	// Vega public key derivation index
	VegaPubKeyIndex uint32 `protobuf:"varint,9,opt,name=vega_pub_key_index,json=vegaPubKeyIndex,proto3" json:"vega_pub_key_index,omitempty"`
	// The epoch from which the validator is expected
	// to be ready to validate blocks
	FromEpoch uint64 `protobuf:"varint,10,opt,name=from_epoch,json=fromEpoch,proto3" json:"from_epoch,omitempty"`
	// Signature from the validator made using the ethereum wallet
	EthereumSignature *Signature `protobuf:"bytes,11,opt,name=ethereum_signature,json=ethereumSignature,proto3" json:"ethereum_signature,omitempty"`
	// Signature from the validator made using the vega wallet
	VegaSignature *Signature `protobuf:"bytes,12,opt,name=vega_signature,json=vegaSignature,proto3" json:"vega_signature,omitempty"`
	// contains filtered or unexported fields
}

Used announce a node as a new potential validator

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

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

Deprecated: Use AnnounceNode.ProtoReflect.Descriptor instead.

func (*AnnounceNode) GetAvatarUrl added in v0.49.0

func (x *AnnounceNode) GetAvatarUrl() string

func (*AnnounceNode) GetChainPubKey added in v0.49.0

func (x *AnnounceNode) GetChainPubKey() string

func (*AnnounceNode) GetCountry added in v0.49.0

func (x *AnnounceNode) GetCountry() string

func (*AnnounceNode) GetEthereumAddress added in v0.49.0

func (x *AnnounceNode) GetEthereumAddress() string

func (*AnnounceNode) GetEthereumSignature added in v0.49.0

func (x *AnnounceNode) GetEthereumSignature() *Signature

func (*AnnounceNode) GetFromEpoch added in v0.49.0

func (x *AnnounceNode) GetFromEpoch() uint64

func (*AnnounceNode) GetId added in v0.49.0

func (x *AnnounceNode) GetId() string

func (*AnnounceNode) GetInfoUrl added in v0.49.0

func (x *AnnounceNode) GetInfoUrl() string

func (*AnnounceNode) GetName added in v0.49.0

func (x *AnnounceNode) GetName() string

func (*AnnounceNode) GetVegaPubKey added in v0.49.0

func (x *AnnounceNode) GetVegaPubKey() string

func (*AnnounceNode) GetVegaPubKeyIndex added in v0.49.0

func (x *AnnounceNode) GetVegaPubKeyIndex() uint32

func (*AnnounceNode) GetVegaSignature added in v0.49.0

func (x *AnnounceNode) GetVegaSignature() *Signature

func (*AnnounceNode) ProtoMessage added in v0.49.0

func (*AnnounceNode) ProtoMessage()

func (*AnnounceNode) ProtoReflect added in v0.49.0

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

func (*AnnounceNode) Reset added in v0.49.0

func (x *AnnounceNode) Reset()

func (*AnnounceNode) String added in v0.49.0

func (x *AnnounceNode) String() string

type CancelTransfer added in v0.48.0

type CancelTransfer struct {

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

A request for cancelling a recurring transfer

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

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

Deprecated: Use CancelTransfer.ProtoReflect.Descriptor instead.

func (*CancelTransfer) GetTransferId added in v0.48.0

func (x *CancelTransfer) GetTransferId() string

func (*CancelTransfer) ProtoMessage added in v0.48.0

func (*CancelTransfer) ProtoMessage()

func (*CancelTransfer) ProtoReflect added in v0.49.0

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

func (*CancelTransfer) Reset added in v0.48.0

func (x *CancelTransfer) Reset()

func (*CancelTransfer) String added in v0.48.0

func (x *CancelTransfer) String() string

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_StakingEvent
	//	*ChainEvent_Erc20Multisig
	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) GetBuiltin

func (x *ChainEvent) GetBuiltin() *vega.BuiltinAssetEvent

func (*ChainEvent) GetErc20

func (x *ChainEvent) GetErc20() *vega.ERC20Event

func (*ChainEvent) GetErc20Multisig added in v0.49.0

func (x *ChainEvent) GetErc20Multisig() *vega.ERC20MultiSigEvent

func (*ChainEvent) GetEvent

func (m *ChainEvent) GetEvent() isChainEvent_Event

func (*ChainEvent) GetNonce

func (x *ChainEvent) GetNonce() uint64

func (*ChainEvent) GetStakingEvent added in v0.42.0

func (x *ChainEvent) GetStakingEvent() *vega.StakingEvent

func (*ChainEvent) GetTxId

func (x *ChainEvent) GetTxId() string

func (*ChainEvent) PrepareToSign

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

func (*ChainEvent) ProtoMessage

func (*ChainEvent) ProtoMessage()

func (*ChainEvent) ProtoReflect added in v0.49.0

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

func (*ChainEvent) Reset

func (x *ChainEvent) Reset()

func (*ChainEvent) String

func (x *ChainEvent) String() string

type ChainEvent_Builtin

type ChainEvent_Builtin struct {
	// Built-in asset event
	Builtin *vega.BuiltinAssetEvent `protobuf:"bytes,1001,opt,name=builtin,proto3,oneof"`
}

type ChainEvent_Erc20

type ChainEvent_Erc20 struct {
	// Ethereum ERC20 event
	Erc20 *vega.ERC20Event `protobuf:"bytes,1002,opt,name=erc20,proto3,oneof"`
}

type ChainEvent_Erc20Multisig added in v0.49.0

type ChainEvent_Erc20Multisig struct {
	// Ethereum ERC20 multisig event
	Erc20Multisig *vega.ERC20MultiSigEvent `protobuf:"bytes,1006,opt,name=erc20_multisig,json=erc20Multisig,proto3,oneof"`
}

type ChainEvent_StakingEvent added in v0.42.0

type ChainEvent_StakingEvent struct {
	// Ethereum Staking event
	StakingEvent *vega.StakingEvent `protobuf:"bytes,1005,opt,name=staking_event,json=stakingEvent,proto3,oneof"`
}

type DelegateSubmission

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 string `protobuf:"bytes,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

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

Deprecated: Use DelegateSubmission.ProtoReflect.Descriptor instead.

func (*DelegateSubmission) GetAmount

func (x *DelegateSubmission) GetAmount() string

func (*DelegateSubmission) GetNodeId

func (x *DelegateSubmission) GetNodeId() string

func (*DelegateSubmission) ProtoMessage

func (*DelegateSubmission) ProtoMessage()

func (*DelegateSubmission) ProtoReflect added in v0.49.0

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

func (*DelegateSubmission) Reset

func (x *DelegateSubmission) Reset()

func (*DelegateSubmission) String

func (x *DelegateSubmission) String() string

type EthereumKeyRotateSubmission added in v0.50.0

type EthereumKeyRotateSubmission struct {

	// Target block at which the key rotation will take effect on
	TargetBlock uint64 `protobuf:"varint,1,opt,name=target_block,json=targetBlock,proto3" json:"target_block,omitempty"`
	// The new adress to rotate to
	NewAddress string `protobuf:"bytes,2,opt,name=new_address,json=newAddress,proto3" json:"new_address,omitempty"`
	// Currently used public address
	CurrentAddress string `protobuf:"bytes,3,opt,name=current_address,json=currentAddress,proto3" json:"current_address,omitempty"`
	// contains filtered or unexported fields
}

A transaction to allow validator to rotate their ethereum keys

func (*EthereumKeyRotateSubmission) Descriptor deprecated added in v0.50.0

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

Deprecated: Use EthereumKeyRotateSubmission.ProtoReflect.Descriptor instead.

func (*EthereumKeyRotateSubmission) GetCurrentAddress added in v0.50.0

func (x *EthereumKeyRotateSubmission) GetCurrentAddress() string

func (*EthereumKeyRotateSubmission) GetNewAddress added in v0.50.0

func (x *EthereumKeyRotateSubmission) GetNewAddress() string

func (*EthereumKeyRotateSubmission) GetTargetBlock added in v0.50.0

func (x *EthereumKeyRotateSubmission) GetTargetBlock() uint64

func (*EthereumKeyRotateSubmission) ProtoMessage added in v0.50.0

func (*EthereumKeyRotateSubmission) ProtoMessage()

func (*EthereumKeyRotateSubmission) ProtoReflect added in v0.50.0

func (*EthereumKeyRotateSubmission) Reset added in v0.50.0

func (x *EthereumKeyRotateSubmission) Reset()

func (*EthereumKeyRotateSubmission) String added in v0.50.0

func (x *EthereumKeyRotateSubmission) String() string

type InputData

type InputData struct {

	// A number to provide uniqueness to prevent accidental replays and,
	// in combination with `block_height`, deliberate attacks.
	// A nonce provides uniqueness for otherwise identical transactions,
	// ensuring that the transaction hash uniquely identifies a specific transaction.
	// Granted all other fields are equal, the nonce can either be a counter
	// or generated at random to submit multiple transactions within the same
	// block (see below), without being identified as replays.
	// Please note that Protocol Buffers do not have a canonical, unique encoding
	// and therefore different libraries or binaries may encode the same message
	// slightly differently, causing a different hash.
	Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// The block height at which the transaction was made.
	// This should be the current block height. The transaction will be valid
	// from the block and up to the `tolerance` block height.
	// Example: If the network has a tolerance of 150 blocks and `block_height`
	// is set to `200`, then the transaction will be valid until block `350`.
	// Note that a `block_height` that is ahead of the real block height will be
	// rejected. The tolerance can be queried from the chain's network parameters.
	// `block_height` prevents replay attacks in conjunction with `nonce` (see above).
	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_LiquidityProvisionCancellation
	//	*InputData_LiquidityProvisionAmendment
	//	*InputData_Transfer
	//	*InputData_CancelTransfer
	//	*InputData_AnnounceNode
	//	*InputData_NodeVote
	//	*InputData_NodeSignature
	//	*InputData_ChainEvent
	//	*InputData_KeyRotateSubmission
	//	*InputData_StateVariableProposal
	//	*InputData_ValidatorHeartbeat
	//	*InputData_EthereumKeyRotateSubmission
	//	*InputData_OracleDataSubmission
	Command isInputData_Command `protobuf_oneof:"command"`
	// contains filtered or unexported fields
}

func (*InputData) Descriptor deprecated

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

Deprecated: Use InputData.ProtoReflect.Descriptor instead.

func (*InputData) GetAnnounceNode added in v0.49.0

func (x *InputData) GetAnnounceNode() *AnnounceNode

func (*InputData) GetBlockHeight

func (x *InputData) GetBlockHeight() uint64

func (*InputData) GetCancelTransfer added in v0.48.0

func (x *InputData) GetCancelTransfer() *CancelTransfer

func (*InputData) GetChainEvent

func (x *InputData) GetChainEvent() *ChainEvent

func (*InputData) GetCommand

func (m *InputData) GetCommand() isInputData_Command

func (*InputData) GetDelegateSubmission

func (x *InputData) GetDelegateSubmission() *DelegateSubmission

func (*InputData) GetEthereumKeyRotateSubmission added in v0.50.0

func (x *InputData) GetEthereumKeyRotateSubmission() *EthereumKeyRotateSubmission

func (*InputData) GetKeyRotateSubmission added in v0.46.0

func (x *InputData) GetKeyRotateSubmission() *KeyRotateSubmission

func (*InputData) GetLiquidityProvisionAmendment added in v0.48.0

func (x *InputData) GetLiquidityProvisionAmendment() *LiquidityProvisionAmendment

func (*InputData) GetLiquidityProvisionCancellation added in v0.48.0

func (x *InputData) GetLiquidityProvisionCancellation() *LiquidityProvisionCancellation

func (*InputData) GetLiquidityProvisionSubmission

func (x *InputData) GetLiquidityProvisionSubmission() *LiquidityProvisionSubmission

func (*InputData) GetNodeSignature

func (x *InputData) GetNodeSignature() *NodeSignature

func (*InputData) GetNodeVote

func (x *InputData) GetNodeVote() *NodeVote

func (*InputData) GetNonce

func (x *InputData) GetNonce() uint64

func (*InputData) GetOracleDataSubmission

func (x *InputData) GetOracleDataSubmission() *OracleDataSubmission

func (*InputData) GetOrderAmendment

func (x *InputData) GetOrderAmendment() *OrderAmendment

func (*InputData) GetOrderCancellation

func (x *InputData) GetOrderCancellation() *OrderCancellation

func (*InputData) GetOrderSubmission

func (x *InputData) GetOrderSubmission() *OrderSubmission

func (*InputData) GetProposalSubmission

func (x *InputData) GetProposalSubmission() *ProposalSubmission

func (*InputData) GetStateVariableProposal added in v0.48.0

func (x *InputData) GetStateVariableProposal() *StateVariableProposal

func (*InputData) GetTransfer added in v0.48.0

func (x *InputData) GetTransfer() *Transfer

func (*InputData) GetUndelegateSubmission

func (x *InputData) GetUndelegateSubmission() *UndelegateSubmission

func (*InputData) GetValidatorHeartbeat added in v0.49.0

func (x *InputData) GetValidatorHeartbeat() *ValidatorHeartbeat

func (*InputData) GetVoteSubmission

func (x *InputData) GetVoteSubmission() *VoteSubmission

func (*InputData) GetWithdrawSubmission

func (x *InputData) GetWithdrawSubmission() *WithdrawSubmission

func (*InputData) ProtoMessage

func (*InputData) ProtoMessage()

func (*InputData) ProtoReflect added in v0.49.0

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

func (*InputData) Reset

func (x *InputData) Reset()

func (*InputData) String

func (x *InputData) String() string

type InputData_AnnounceNode added in v0.49.0

type InputData_AnnounceNode struct {
	AnnounceNode *AnnounceNode `protobuf:"bytes,1014,opt,name=announce_node,json=announceNode,proto3,oneof"`
}

type InputData_CancelTransfer added in v0.48.0

type InputData_CancelTransfer struct {
	CancelTransfer *CancelTransfer `protobuf:"bytes,1013,opt,name=cancel_transfer,json=cancelTransfer,proto3,oneof"`
}

type InputData_ChainEvent

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

type InputData_DelegateSubmission

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

type InputData_EthereumKeyRotateSubmission added in v0.50.0

type InputData_EthereumKeyRotateSubmission struct {
	EthereumKeyRotateSubmission *EthereumKeyRotateSubmission `protobuf:"bytes,2008,opt,name=ethereum_key_rotate_submission,json=ethereumKeyRotateSubmission,proto3,oneof"`
}

type InputData_KeyRotateSubmission added in v0.46.0

type InputData_KeyRotateSubmission struct {
	KeyRotateSubmission *KeyRotateSubmission `protobuf:"bytes,2005,opt,name=key_rotate_submission,json=keyRotateSubmission,proto3,oneof"`
}

type InputData_LiquidityProvisionAmendment added in v0.48.0

type InputData_LiquidityProvisionAmendment struct {
	LiquidityProvisionAmendment *LiquidityProvisionAmendment `protobuf:"bytes,1011,opt,name=liquidity_provision_amendment,json=liquidityProvisionAmendment,proto3,oneof"`
}

type InputData_LiquidityProvisionCancellation added in v0.48.0

type InputData_LiquidityProvisionCancellation struct {
	LiquidityProvisionCancellation *LiquidityProvisionCancellation `protobuf:"bytes,1010,opt,name=liquidity_provision_cancellation,json=liquidityProvisionCancellation,proto3,oneof"`
}

type InputData_LiquidityProvisionSubmission

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

type InputData_NodeSignature

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

type InputData_NodeVote

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

type InputData_OracleDataSubmission

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

type InputData_OrderAmendment

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

type InputData_OrderCancellation

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

type InputData_OrderSubmission

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

type InputData_ProposalSubmission

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

type InputData_StateVariableProposal added in v0.48.0

type InputData_StateVariableProposal struct {
	StateVariableProposal *StateVariableProposal `protobuf:"bytes,2006,opt,name=state_variable_proposal,json=stateVariableProposal,proto3,oneof"`
}

type InputData_Transfer added in v0.48.0

type InputData_Transfer struct {
	Transfer *Transfer `protobuf:"bytes,1012,opt,name=transfer,proto3,oneof"`
}

type InputData_UndelegateSubmission

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

type InputData_ValidatorHeartbeat added in v0.49.0

type InputData_ValidatorHeartbeat struct {
	ValidatorHeartbeat *ValidatorHeartbeat `protobuf:"bytes,2007,opt,name=validator_heartbeat,json=validatorHeartbeat,proto3,oneof"`
}

type InputData_VoteSubmission

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

type InputData_WithdrawSubmission

type InputData_WithdrawSubmission struct {
	WithdrawSubmission *WithdrawSubmission `protobuf:"bytes,1004,opt,name=withdraw_submission,json=withdrawSubmission,proto3,oneof"`
}

type Int64Value added in v0.48.0

type Int64Value struct {
	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Replacement for the google well-known type until we can get rid of this entirely

func (*Int64Value) Descriptor deprecated added in v0.48.0

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

Deprecated: Use Int64Value.ProtoReflect.Descriptor instead.

func (*Int64Value) GetValue added in v0.48.0

func (x *Int64Value) GetValue() int64

func (*Int64Value) ProtoMessage added in v0.48.0

func (*Int64Value) ProtoMessage()

func (*Int64Value) ProtoReflect added in v0.49.0

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

func (*Int64Value) Reset added in v0.48.0

func (x *Int64Value) Reset()

func (*Int64Value) String added in v0.48.0

func (x *Int64Value) String() string

type KeyRotateSubmission added in v0.46.0

type KeyRotateSubmission struct {

	// New Vega public key derivation index
	NewPubKeyIndex uint32 `protobuf:"varint,1,opt,name=new_pub_key_index,json=newPubKeyIndex,proto3" json:"new_pub_key_index,omitempty"`
	// Target block at which the key rotation will take effect on
	TargetBlock uint64 `protobuf:"varint,2,opt,name=target_block,json=targetBlock,proto3" json:"target_block,omitempty"`
	// The new public key to rotate to
	NewPubKey string `protobuf:"bytes,3,opt,name=new_pub_key,json=newPubKey,proto3" json:"new_pub_key,omitempty"`
	// Hash of currently used public key
	CurrentPubKeyHash string `protobuf:"bytes,4,opt,name=current_pub_key_hash,json=currentPubKeyHash,proto3" json:"current_pub_key_hash,omitempty"`
	// contains filtered or unexported fields
}

A transaction to allow validator to rotate their vega keys

func (*KeyRotateSubmission) Descriptor deprecated added in v0.46.0

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

Deprecated: Use KeyRotateSubmission.ProtoReflect.Descriptor instead.

func (*KeyRotateSubmission) GetCurrentPubKeyHash added in v0.47.0

func (x *KeyRotateSubmission) GetCurrentPubKeyHash() string

func (*KeyRotateSubmission) GetNewPubKey added in v0.47.0

func (x *KeyRotateSubmission) GetNewPubKey() string

func (*KeyRotateSubmission) GetNewPubKeyIndex added in v0.47.0

func (x *KeyRotateSubmission) GetNewPubKeyIndex() uint32

func (*KeyRotateSubmission) GetTargetBlock added in v0.46.0

func (x *KeyRotateSubmission) GetTargetBlock() uint64

func (*KeyRotateSubmission) ProtoMessage added in v0.46.0

func (*KeyRotateSubmission) ProtoMessage()

func (*KeyRotateSubmission) ProtoReflect added in v0.49.0

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

func (*KeyRotateSubmission) Reset added in v0.46.0

func (x *KeyRotateSubmission) Reset()

func (*KeyRotateSubmission) String added in v0.46.0

func (x *KeyRotateSubmission) String() string

type LiquidityProvisionAmendment added in v0.48.0

type LiquidityProvisionAmendment struct {
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // Unique ID for the market with the liquidity provision to be amended
	// From here at least one of the following is required to consider the command valid
	CommitmentAmount string                 `protobuf:"bytes,2,opt,name=commitment_amount,json=commitmentAmount,proto3" json:"commitment_amount,omitempty"` // an empty strings means no change
	Fee              string                 `protobuf:"bytes,3,opt,name=fee,proto3" json:"fee,omitempty"`                                                   // an empty strings means no change
	Sells            []*vega.LiquidityOrder `protobuf:"bytes,4,rep,name=sells,proto3" json:"sells,omitempty"`                                               // empty slice means no change
	Buys             []*vega.LiquidityOrder `protobuf:"bytes,5,rep,name=buys,proto3" json:"buys,omitempty"`                                                 // empty slice means no change
	Reference        string                 `protobuf:"bytes,6,opt,name=reference,proto3" json:"reference,omitempty"`                                       // empty string means no change
	// contains filtered or unexported fields
}

Amend a liquidity provision request

func (*LiquidityProvisionAmendment) Descriptor deprecated added in v0.48.0

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

Deprecated: Use LiquidityProvisionAmendment.ProtoReflect.Descriptor instead.

func (*LiquidityProvisionAmendment) GetBuys added in v0.48.0

func (*LiquidityProvisionAmendment) GetCommitmentAmount added in v0.48.0

func (x *LiquidityProvisionAmendment) GetCommitmentAmount() string

func (*LiquidityProvisionAmendment) GetFee added in v0.48.0

func (x *LiquidityProvisionAmendment) GetFee() string

func (*LiquidityProvisionAmendment) GetMarketId added in v0.48.0

func (x *LiquidityProvisionAmendment) GetMarketId() string

func (*LiquidityProvisionAmendment) GetReference added in v0.48.0

func (x *LiquidityProvisionAmendment) GetReference() string

func (*LiquidityProvisionAmendment) GetSells added in v0.48.0

func (*LiquidityProvisionAmendment) ProtoMessage added in v0.48.0

func (*LiquidityProvisionAmendment) ProtoMessage()

func (*LiquidityProvisionAmendment) ProtoReflect added in v0.49.0

func (*LiquidityProvisionAmendment) Reset added in v0.48.0

func (x *LiquidityProvisionAmendment) Reset()

func (*LiquidityProvisionAmendment) String added in v0.48.0

func (x *LiquidityProvisionAmendment) String() string

type LiquidityProvisionCancellation added in v0.48.0

type LiquidityProvisionCancellation struct {
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` // Unique ID for the market with the liquidity provision to be cancelled
	// contains filtered or unexported fields
}

Cancel a liquidity provision request

func (*LiquidityProvisionCancellation) Descriptor deprecated added in v0.48.0

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

Deprecated: Use LiquidityProvisionCancellation.ProtoReflect.Descriptor instead.

func (*LiquidityProvisionCancellation) GetMarketId added in v0.48.0

func (x *LiquidityProvisionCancellation) GetMarketId() string

func (*LiquidityProvisionCancellation) ProtoMessage added in v0.48.0

func (*LiquidityProvisionCancellation) ProtoMessage()

func (*LiquidityProvisionCancellation) ProtoReflect added in v0.49.0

func (*LiquidityProvisionCancellation) Reset added in v0.48.0

func (x *LiquidityProvisionCancellation) Reset()

func (*LiquidityProvisionCancellation) String added in v0.48.0

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 string `protobuf:"bytes,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 setting 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 []*vega.LiquidityOrder `protobuf:"bytes,4,rep,name=sells,proto3" json:"sells,omitempty"`
	// A set of liquidity buy orders to meet the liquidity provision obligation
	Buys []*vega.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() string

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

func (*LiquidityProvisionSubmission) Reset

func (x *LiquidityProvisionSubmission) Reset()

func (*LiquidityProvisionSubmission) String

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

func (n NodeSignature) DeepClone() *NodeSignature

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

func (NodeSignature) IsEvent()

IsEvent required for graphql event stream

func (*NodeSignature) ProtoMessage

func (*NodeSignature) ProtoMessage()

func (*NodeSignature) ProtoReflect added in v0.49.0

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

func (*NodeSignature) Reset

func (x *NodeSignature) Reset()

func (*NodeSignature) String

func (x *NodeSignature) String() string

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
	// Represents a signature for a new signer added to the erc20 multisig contract
	NodeSignatureKind_NODE_SIGNATURE_KIND_ERC20_MULTISIG_SIGNER_ADDED NodeSignatureKind = 3
	// Represents a signature for a signer removed from the erc20 multisig contract
	NodeSignatureKind_NODE_SIGNATURE_KIND_ERC20_MULTISIG_SIGNER_REMOVED NodeSignatureKind = 4
	// Represents a signature for an asset update allow-listing
	NodeSignatureKind_NODE_SIGNATURE_KIND_ASSET_UPDATE NodeSignatureKind = 5
)

func (NodeSignatureKind) Descriptor added in v0.49.0

func (NodeSignatureKind) Enum added in v0.49.0

func (NodeSignatureKind) EnumDescriptor deprecated

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

Deprecated: Use NodeSignatureKind.Descriptor instead.

func (NodeSignatureKind) Number added in v0.49.0

func (NodeSignatureKind) String

func (x NodeSignatureKind) String() string

func (NodeSignatureKind) Type added in v0.49.0

type NodeVote

type NodeVote struct {

	// 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) GetReference

func (x *NodeVote) GetReference() string

func (*NodeVote) ProtoMessage

func (*NodeVote) ProtoMessage()

func (*NodeVote) ProtoReflect added in v0.49.0

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

func (*NodeVote) Reset

func (x *NodeVote) Reset()

func (*NodeVote) String

func (x *NodeVote) String() string

type OneOffTransfer added in v0.48.0

type OneOffTransfer struct {

	// A unix timestamp in second. Time at which the
	// transfer should be delivered in the to account
	DeliverOn int64 `protobuf:"varint,1,opt,name=deliver_on,json=deliverOn,proto3" json:"deliver_on,omitempty"`
	// contains filtered or unexported fields
}

Specific details for a one off transfer

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

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

Deprecated: Use OneOffTransfer.ProtoReflect.Descriptor instead.

func (*OneOffTransfer) GetDeliverOn added in v0.48.0

func (x *OneOffTransfer) GetDeliverOn() int64

func (*OneOffTransfer) ProtoMessage added in v0.48.0

func (*OneOffTransfer) ProtoMessage()

func (*OneOffTransfer) ProtoReflect added in v0.49.0

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

func (*OneOffTransfer) Reset added in v0.48.0

func (x *OneOffTransfer) Reset()

func (*OneOffTransfer) String added in v0.48.0

func (x *OneOffTransfer) String() string

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

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

func (*OracleDataSubmission) Reset

func (x *OracleDataSubmission) Reset()

func (*OracleDataSubmission) String

func (x *OracleDataSubmission) String() string

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
	// Support for custom JSON data
	OracleDataSubmission_ORACLE_SOURCE_JSON OracleDataSubmission_OracleSource = 2
)

func (OracleDataSubmission_OracleSource) Descriptor added in v0.49.0

func (OracleDataSubmission_OracleSource) Enum added in v0.49.0

func (OracleDataSubmission_OracleSource) EnumDescriptor deprecated

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

Deprecated: Use OracleDataSubmission_OracleSource.Descriptor instead.

func (OracleDataSubmission_OracleSource) Number added in v0.49.0

func (OracleDataSubmission_OracleSource) String

func (OracleDataSubmission_OracleSource) Type added in v0.49.0

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 *vega.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 *vega.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 vega.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 string `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 vega.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() *vega.Timestamp

func (*OrderAmendment) GetMarketId

func (x *OrderAmendment) GetMarketId() string

func (*OrderAmendment) GetOrderId

func (x *OrderAmendment) GetOrderId() string

func (*OrderAmendment) GetPeggedOffset

func (x *OrderAmendment) GetPeggedOffset() string

func (*OrderAmendment) GetPeggedReference

func (x *OrderAmendment) GetPeggedReference() vega.PeggedReference

func (*OrderAmendment) GetPrice

func (x *OrderAmendment) GetPrice() *vega.Price

func (*OrderAmendment) GetSizeDelta

func (x *OrderAmendment) GetSizeDelta() int64

func (*OrderAmendment) GetTimeInForce

func (x *OrderAmendment) GetTimeInForce() vega.Order_TimeInForce

func (*OrderAmendment) ProtoMessage

func (*OrderAmendment) ProtoMessage()

func (*OrderAmendment) ProtoReflect added in v0.49.0

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

func (*OrderAmendment) Reset

func (x *OrderAmendment) Reset()

func (*OrderAmendment) String

func (x *OrderAmendment) String() string

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

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

func (*OrderCancellation) Reset

func (x *OrderCancellation) Reset()

func (*OrderCancellation) String

func (x *OrderCancellation) String() string

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 string `protobuf:"bytes,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`
	Side vega.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`
	TimeInForce vega.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`.TIME_IN_FORCE_GTT`
	// - See `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`
	Type vega.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`
	PeggedOrder *vega.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() *vega.PeggedOrder

func (*OrderSubmission) GetPrice

func (x *OrderSubmission) GetPrice() string

func (*OrderSubmission) GetReference

func (x *OrderSubmission) GetReference() string

func (*OrderSubmission) GetSide

func (x *OrderSubmission) GetSide() vega.Side

func (*OrderSubmission) GetSize

func (x *OrderSubmission) GetSize() uint64

func (*OrderSubmission) GetTimeInForce

func (x *OrderSubmission) GetTimeInForce() vega.Order_TimeInForce

func (*OrderSubmission) GetType

func (x *OrderSubmission) GetType() vega.Order_Type

func (*OrderSubmission) IntoOrder

func (s *OrderSubmission) IntoOrder(party string) *types.Order

func (*OrderSubmission) ProtoMessage

func (*OrderSubmission) ProtoMessage()

func (*OrderSubmission) ProtoReflect added in v0.49.0

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

func (*OrderSubmission) Reset

func (x *OrderSubmission) Reset()

func (*OrderSubmission) String

func (x *OrderSubmission) String() string

type ProofOfWork added in v0.49.3

type ProofOfWork struct {
	Tid          string `protobuf:"bytes,1,opt,name=tid,proto3" json:"tid,omitempty"`
	Nonce        uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	HashFunction string `protobuf:"bytes,3,opt,name=hash_function,json=hashFunction,proto3" json:"hash_function,omitempty"`
	// contains filtered or unexported fields
}

func (*ProofOfWork) Descriptor deprecated added in v0.49.3

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

Deprecated: Use ProofOfWork.ProtoReflect.Descriptor instead.

func (*ProofOfWork) GetHashFunction added in v0.49.3

func (x *ProofOfWork) GetHashFunction() string

func (*ProofOfWork) GetNonce added in v0.49.3

func (x *ProofOfWork) GetNonce() uint64

func (*ProofOfWork) GetTid added in v0.49.3

func (x *ProofOfWork) GetTid() string

func (*ProofOfWork) ProtoMessage added in v0.49.3

func (*ProofOfWork) ProtoMessage()

func (*ProofOfWork) ProtoReflect added in v0.49.3

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

func (*ProofOfWork) Reset added in v0.49.3

func (x *ProofOfWork) Reset()

func (*ProofOfWork) String added in v0.49.3

func (x *ProofOfWork) String() string

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 *vega.ProposalTerms `protobuf:"bytes,2,opt,name=terms,proto3" json:"terms,omitempty"`
	// The rationale behind a proposal.
	Rationale *vega.ProposalRationale `protobuf:"bytes,3,opt,name=rationale,proto3" json:"rationale,omitempty"`
	// contains filtered or unexported fields
}

A command to submit a new proposal for the Vega network governance

func ProposalSubmissionFromProposal

func ProposalSubmissionFromProposal(p *types.Proposal) *ProposalSubmission

func (*ProposalSubmission) Descriptor deprecated

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

Deprecated: Use ProposalSubmission.ProtoReflect.Descriptor instead.

func (*ProposalSubmission) GetRationale added in v0.50.2

func (x *ProposalSubmission) GetRationale() *vega.ProposalRationale

func (*ProposalSubmission) GetReference

func (x *ProposalSubmission) GetReference() string

func (*ProposalSubmission) GetTerms

func (x *ProposalSubmission) GetTerms() *vega.ProposalTerms

func (*ProposalSubmission) ProtoMessage

func (*ProposalSubmission) ProtoMessage()

func (*ProposalSubmission) ProtoReflect added in v0.49.0

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

func (*ProposalSubmission) Reset

func (x *ProposalSubmission) Reset()

func (*ProposalSubmission) String

func (x *ProposalSubmission) String() string

type RecurringTransfer added in v0.48.0

type RecurringTransfer struct {

	// The first epoch from which this transfer shall be paid
	StartEpoch uint64 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"`
	// The last epoch at which this transfer shall be paid
	EndEpoch *vega.Uint64Value `protobuf:"bytes,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"`
	// factor needs to be > 0
	Factor string `protobuf:"bytes,3,opt,name=factor,proto3" json:"factor,omitempty"`
	// optional parameter defining how a transfer is dispatched
	DispatchStrategy *vega.DispatchStrategy `protobuf:"bytes,4,opt,name=dispatch_strategy,json=dispatchStrategy,proto3" json:"dispatch_strategy,omitempty"`
	// contains filtered or unexported fields
}

Specific details for a recurring transfer

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

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

Deprecated: Use RecurringTransfer.ProtoReflect.Descriptor instead.

func (*RecurringTransfer) GetDispatchStrategy added in v0.51.0

func (x *RecurringTransfer) GetDispatchStrategy() *vega.DispatchStrategy

func (*RecurringTransfer) GetEndEpoch added in v0.48.0

func (x *RecurringTransfer) GetEndEpoch() *vega.Uint64Value

func (*RecurringTransfer) GetFactor added in v0.48.0

func (x *RecurringTransfer) GetFactor() string

func (*RecurringTransfer) GetStartEpoch added in v0.48.0

func (x *RecurringTransfer) GetStartEpoch() uint64

func (*RecurringTransfer) ProtoMessage added in v0.48.0

func (*RecurringTransfer) ProtoMessage()

func (*RecurringTransfer) ProtoReflect added in v0.49.0

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

func (*RecurringTransfer) Reset added in v0.48.0

func (x *RecurringTransfer) Reset()

func (*RecurringTransfer) String added in v0.48.0

func (x *RecurringTransfer) String() string

type Signature

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 authenticate a transaction and to be verified by the Vega network.

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetAlgo

func (x *Signature) GetAlgo() string

func (*Signature) GetValue

func (x *Signature) GetValue() string

func (*Signature) GetVersion

func (x *Signature) GetVersion() uint32

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect added in v0.49.0

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type StateVariableProposal added in v0.48.0

type StateVariableProposal struct {

	// The state value proposal details
	Proposal *vega.StateValueProposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// contains filtered or unexported fields
}

func (*StateVariableProposal) Descriptor deprecated added in v0.48.0

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

Deprecated: Use StateVariableProposal.ProtoReflect.Descriptor instead.

func (*StateVariableProposal) GetProposal added in v0.48.0

func (x *StateVariableProposal) GetProposal() *vega.StateValueProposal

func (*StateVariableProposal) ProtoMessage added in v0.48.0

func (*StateVariableProposal) ProtoMessage()

func (*StateVariableProposal) ProtoReflect added in v0.49.0

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

func (*StateVariableProposal) Reset added in v0.48.0

func (x *StateVariableProposal) Reset()

func (*StateVariableProposal) String added in v0.48.0

func (x *StateVariableProposal) String() string

type Transaction

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 changes are implemented
	// to the Transaction format.
	Version uint32 `protobuf:"varint,2000,opt,name=version,proto3" json:"version,omitempty"`
	// Proof of work contains the random transaction id used by the client and the nonce.
	Pow *ProofOfWork `protobuf:"bytes,3000,opt,name=pow,proto3" json:"pow,omitempty"`
	// contains filtered or unexported fields
}

Represents a transaction to be sent to Vega.

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAddress

func (x *Transaction) GetAddress() string

func (*Transaction) GetFrom

func (m *Transaction) GetFrom() isTransaction_From

func (*Transaction) GetInputData

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

func (*Transaction) GetPow added in v0.49.3

func (x *Transaction) GetPow() *ProofOfWork

func (*Transaction) GetPubKey

func (x *Transaction) GetPubKey() string

func (*Transaction) GetSignature

func (x *Transaction) GetSignature() *Signature

func (*Transaction) GetVersion

func (x *Transaction) GetVersion() uint32

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect added in v0.49.0

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type Transaction_Address

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

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

type Transfer struct {

	// The account type from which the funds of the party
	// should be taken
	FromAccountType vega.AccountType `` /* 131-byte string literal not displayed */
	// The public key of the destination account
	To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// The type of the destination account
	ToAccountType vega.AccountType `protobuf:"varint,3,opt,name=to_account_type,json=toAccountType,proto3,enum=vega.AccountType" json:"to_account_type,omitempty"`
	// The asset
	Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"`
	// The amount to be taken from the source account
	Amount string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
	// The reference to be attached to the transfer
	Reference string `protobuf:"bytes,6,opt,name=reference,proto3" json:"reference,omitempty"`
	// Specific details of the transfer
	//
	// Types that are assignable to Kind:
	//	*Transfer_OneOff
	//	*Transfer_Recurring
	Kind isTransfer_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

A transfer initiated by a party

func (*Transfer) Descriptor deprecated added in v0.48.0

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

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetAmount added in v0.48.0

func (x *Transfer) GetAmount() string

func (*Transfer) GetAsset added in v0.48.0

func (x *Transfer) GetAsset() string

func (*Transfer) GetFromAccountType added in v0.48.0

func (x *Transfer) GetFromAccountType() vega.AccountType

func (*Transfer) GetKind added in v0.48.0

func (m *Transfer) GetKind() isTransfer_Kind

func (*Transfer) GetOneOff added in v0.48.0

func (x *Transfer) GetOneOff() *OneOffTransfer

func (*Transfer) GetRecurring added in v0.48.0

func (x *Transfer) GetRecurring() *RecurringTransfer

func (*Transfer) GetReference added in v0.48.0

func (x *Transfer) GetReference() string

func (*Transfer) GetTo added in v0.48.0

func (x *Transfer) GetTo() string

func (*Transfer) GetToAccountType added in v0.48.0

func (x *Transfer) GetToAccountType() vega.AccountType

func (*Transfer) ProtoMessage added in v0.48.0

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect added in v0.49.0

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

func (*Transfer) Reset added in v0.48.0

func (x *Transfer) Reset()

func (*Transfer) String added in v0.48.0

func (x *Transfer) String() string

type Transfer_OneOff added in v0.48.0

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

type Transfer_Recurring added in v0.48.0

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

type UndelegateSubmission

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 string                      `protobuf:"bytes,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

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

Deprecated: Use UndelegateSubmission.ProtoReflect.Descriptor instead.

func (*UndelegateSubmission) GetAmount

func (x *UndelegateSubmission) GetAmount() string

func (*UndelegateSubmission) GetMethod

func (*UndelegateSubmission) GetNodeId

func (x *UndelegateSubmission) GetNodeId() string

func (*UndelegateSubmission) ProtoMessage

func (*UndelegateSubmission) ProtoMessage()

func (*UndelegateSubmission) ProtoReflect added in v0.49.0

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

func (*UndelegateSubmission) Reset

func (x *UndelegateSubmission) Reset()

func (*UndelegateSubmission) String

func (x *UndelegateSubmission) String() string

type UndelegateSubmission_Method

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.49.0

func (UndelegateSubmission_Method) Enum added in v0.49.0

func (UndelegateSubmission_Method) EnumDescriptor deprecated

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

Deprecated: Use UndelegateSubmission_Method.Descriptor instead.

func (UndelegateSubmission_Method) Number added in v0.49.0

func (UndelegateSubmission_Method) String

func (UndelegateSubmission_Method) Type added in v0.49.0

type ValidatorHeartbeat added in v0.49.0

type ValidatorHeartbeat struct {

	// the id of the node emitting the heartbeat
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// Signature from the validator made using the ethereum wallet
	EthereumSignature *Signature `protobuf:"bytes,2,opt,name=ethereum_signature,json=ethereumSignature,proto3" json:"ethereum_signature,omitempty"`
	// Signature from the validator made using the vega wallet
	VegaSignature *Signature `protobuf:"bytes,3,opt,name=vega_signature,json=vegaSignature,proto3" json:"vega_signature,omitempty"`
	// contains filtered or unexported fields
}

A message from a validator signaling they are still online and validating blocks or ready to validate block when they are till a potential validator

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

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

Deprecated: Use ValidatorHeartbeat.ProtoReflect.Descriptor instead.

func (*ValidatorHeartbeat) GetEthereumSignature added in v0.49.0

func (x *ValidatorHeartbeat) GetEthereumSignature() *Signature

func (*ValidatorHeartbeat) GetNodeId added in v0.49.0

func (x *ValidatorHeartbeat) GetNodeId() string

func (*ValidatorHeartbeat) GetVegaSignature added in v0.49.0

func (x *ValidatorHeartbeat) GetVegaSignature() *Signature

func (*ValidatorHeartbeat) ProtoMessage added in v0.49.0

func (*ValidatorHeartbeat) ProtoMessage()

func (*ValidatorHeartbeat) ProtoReflect added in v0.49.0

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

func (*ValidatorHeartbeat) Reset added in v0.49.0

func (x *ValidatorHeartbeat) Reset()

func (*ValidatorHeartbeat) String added in v0.49.0

func (x *ValidatorHeartbeat) String() string

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 vega.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() vega.Vote_Value

func (*VoteSubmission) ProtoMessage

func (*VoteSubmission) ProtoMessage()

func (*VoteSubmission) ProtoReflect added in v0.49.0

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

func (*VoteSubmission) Reset

func (x *VoteSubmission) Reset()

func (*VoteSubmission) String

func (x *VoteSubmission) String() string

type WithdrawSubmission

type WithdrawSubmission struct {

	// The amount to be withdrawn
	Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// The asset to be withdrawn
	Asset string `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
	// Foreign chain specifics
	Ext *vega.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() string

func (*WithdrawSubmission) GetAsset

func (x *WithdrawSubmission) GetAsset() string

func (*WithdrawSubmission) GetExt

func (x *WithdrawSubmission) GetExt() *vega.WithdrawExt

func (*WithdrawSubmission) ProtoMessage

func (*WithdrawSubmission) ProtoMessage()

func (*WithdrawSubmission) ProtoReflect added in v0.49.0

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

func (*WithdrawSubmission) Reset

func (x *WithdrawSubmission) Reset()

func (*WithdrawSubmission) String

func (x *WithdrawSubmission) String() string

Jump to

Keyboard shortcuts

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