v1

package
v0.42.0-pre5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 6 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

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",
}
View Source
var NodeSignatureKind_value = map[string]int32{
	"NODE_SIGNATURE_KIND_UNSPECIFIED":      0,
	"NODE_SIGNATURE_KIND_ASSET_NEW":        1,
	"NODE_SIGNATURE_KIND_ASSET_WITHDRAWAL": 2,
}
View Source
var OracleDataSubmission_OracleSource_name = map[int32]string{
	0: "ORACLE_SOURCE_UNSPECIFIED",
	1: "ORACLE_SOURCE_OPEN_ORACLE",
}
View Source
var OracleDataSubmission_OracleSource_value = map[string]int32{
	"ORACLE_SOURCE_UNSPECIFIED": 0,
	"ORACLE_SOURCE_OPEN_ORACLE": 1,
}
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",
}
View Source
var UndelegateSubmission_Method_value = map[string]int32{
	"METHOD_UNSPECIFIED":     0,
	"METHOD_NOW":             1,
	"METHOD_AT_END_OF_EPOCH": 2,
	"METHOD_IN_ANGER":        3,
}

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 valid to be assigned to Event:
	//	*ChainEvent_Builtin
	//	*ChainEvent_Erc20
	//	*ChainEvent_Btc
	//	*ChainEvent_Validator
	//	*ChainEvent_StakingEvent
	Event                isChainEvent_Event `protobuf_oneof:"event"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

An event forwarded to the Vega network to provide information on events happening on other networks

func (*ChainEvent) Descriptor

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

func (*ChainEvent) GetBtc

func (m *ChainEvent) GetBtc() *vega.BTCEvent

func (*ChainEvent) GetBuiltin

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

func (*ChainEvent) GetErc20

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

func (*ChainEvent) GetEvent

func (m *ChainEvent) GetEvent() isChainEvent_Event

func (*ChainEvent) GetNonce

func (m *ChainEvent) GetNonce() uint64

func (*ChainEvent) GetStakingEvent added in v0.42.0

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

func (*ChainEvent) GetTxId

func (m *ChainEvent) GetTxId() string

func (*ChainEvent) GetValidator

func (m *ChainEvent) GetValidator() *vega.ValidatorEvent

func (*ChainEvent) PrepareToSign

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

func (*ChainEvent) ProtoMessage

func (*ChainEvent) ProtoMessage()

func (*ChainEvent) Reset

func (m *ChainEvent) Reset()

func (*ChainEvent) String

func (m *ChainEvent) String() string

func (*ChainEvent) Validate

func (this *ChainEvent) Validate() error

func (*ChainEvent) XXX_DiscardUnknown

func (m *ChainEvent) XXX_DiscardUnknown()

func (*ChainEvent) XXX_Marshal

func (m *ChainEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainEvent) XXX_Merge

func (m *ChainEvent) XXX_Merge(src proto.Message)

func (*ChainEvent) XXX_OneofWrappers

func (*ChainEvent) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ChainEvent) XXX_Size

func (m *ChainEvent) XXX_Size() int

func (*ChainEvent) XXX_Unmarshal

func (m *ChainEvent) XXX_Unmarshal(b []byte) error

type ChainEvent_Btc

type ChainEvent_Btc struct {
	Btc *vega.BTCEvent `protobuf:"bytes,1003,opt,name=btc,proto3,oneof"`
}

type ChainEvent_Builtin

type ChainEvent_Builtin struct {
	Builtin *vega.BuiltinAssetEvent `protobuf:"bytes,1001,opt,name=builtin,proto3,oneof"`
}

type ChainEvent_Erc20

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

type ChainEvent_StakingEvent added in v0.42.0

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

type ChainEvent_Validator

type ChainEvent_Validator struct {
	Validator *vega.ValidatorEvent `protobuf:"bytes,1004,opt,name=validator,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               uint64   `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*DelegateSubmission) Descriptor

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

func (*DelegateSubmission) GetAmount

func (m *DelegateSubmission) GetAmount() uint64

func (*DelegateSubmission) GetNodeId

func (m *DelegateSubmission) GetNodeId() string

func (*DelegateSubmission) ProtoMessage

func (*DelegateSubmission) ProtoMessage()

func (*DelegateSubmission) Reset

func (m *DelegateSubmission) Reset()

func (*DelegateSubmission) String

func (m *DelegateSubmission) String() string

func (*DelegateSubmission) Validate

func (this *DelegateSubmission) Validate() error

func (*DelegateSubmission) XXX_DiscardUnknown

func (m *DelegateSubmission) XXX_DiscardUnknown()

func (*DelegateSubmission) XXX_Marshal

func (m *DelegateSubmission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegateSubmission) XXX_Merge

func (m *DelegateSubmission) XXX_Merge(src proto.Message)

func (*DelegateSubmission) XXX_Size

func (m *DelegateSubmission) XXX_Size() int

func (*DelegateSubmission) XXX_Unmarshal

func (m *DelegateSubmission) XXX_Unmarshal(b []byte) error

type InputData

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 valid to be assigned 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
	//	*InputData_RestoreSnapshotSubmission
	Command              isInputData_Command `protobuf_oneof:"command"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*InputData) Descriptor

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

func (*InputData) GetBlockHeight

func (m *InputData) GetBlockHeight() uint64

func (*InputData) GetChainEvent

func (m *InputData) GetChainEvent() *ChainEvent

func (*InputData) GetCommand

func (m *InputData) GetCommand() isInputData_Command

func (*InputData) GetDelegateSubmission

func (m *InputData) GetDelegateSubmission() *DelegateSubmission

func (*InputData) GetLiquidityProvisionSubmission

func (m *InputData) GetLiquidityProvisionSubmission() *LiquidityProvisionSubmission

func (*InputData) GetNodeRegistration

func (m *InputData) GetNodeRegistration() *NodeRegistration

func (*InputData) GetNodeSignature

func (m *InputData) GetNodeSignature() *NodeSignature

func (*InputData) GetNodeVote

func (m *InputData) GetNodeVote() *NodeVote

func (*InputData) GetNonce

func (m *InputData) GetNonce() uint64

func (*InputData) GetOracleDataSubmission

func (m *InputData) GetOracleDataSubmission() *OracleDataSubmission

func (*InputData) GetOrderAmendment

func (m *InputData) GetOrderAmendment() *OrderAmendment

func (*InputData) GetOrderCancellation

func (m *InputData) GetOrderCancellation() *OrderCancellation

func (*InputData) GetOrderSubmission

func (m *InputData) GetOrderSubmission() *OrderSubmission

func (*InputData) GetProposalSubmission

func (m *InputData) GetProposalSubmission() *ProposalSubmission

func (*InputData) GetRestoreSnapshotSubmission added in v0.42.0

func (m *InputData) GetRestoreSnapshotSubmission() *RestoreSnapshot

func (*InputData) GetUndelegateSubmission

func (m *InputData) GetUndelegateSubmission() *UndelegateSubmission

func (*InputData) GetVoteSubmission

func (m *InputData) GetVoteSubmission() *VoteSubmission

func (*InputData) GetWithdrawSubmission

func (m *InputData) GetWithdrawSubmission() *WithdrawSubmission

func (*InputData) ProtoMessage

func (*InputData) ProtoMessage()

func (*InputData) Reset

func (m *InputData) Reset()

func (*InputData) String

func (m *InputData) String() string

func (*InputData) Validate

func (this *InputData) Validate() error

func (*InputData) XXX_DiscardUnknown

func (m *InputData) XXX_DiscardUnknown()

func (*InputData) XXX_Marshal

func (m *InputData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InputData) XXX_Merge

func (m *InputData) XXX_Merge(src proto.Message)

func (*InputData) XXX_OneofWrappers

func (*InputData) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*InputData) XXX_Size

func (m *InputData) XXX_Size() int

func (*InputData) XXX_Unmarshal

func (m *InputData) XXX_Unmarshal(b []byte) error

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_LiquidityProvisionSubmission

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

type InputData_NodeRegistration

type InputData_NodeRegistration struct {
	NodeRegistration *NodeRegistration `protobuf:"bytes,2001,opt,name=node_registration,json=nodeRegistration,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 {
	NodeVote *NodeVote `protobuf:"bytes,2002,opt,name=node_vote,json=nodeVote,proto3,oneof"`
}

type InputData_OracleDataSubmission

type InputData_OracleDataSubmission struct {
	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 {
	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_RestoreSnapshotSubmission added in v0.42.0

type InputData_RestoreSnapshotSubmission struct {
	RestoreSnapshotSubmission *RestoreSnapshot `protobuf:"bytes,4001,opt,name=restore_snapshot_submission,json=restoreSnapshotSubmission,proto3,oneof"`
}

type InputData_UndelegateSubmission

type InputData_UndelegateSubmission struct {
	UndelegateSubmission *UndelegateSubmission `protobuf:"bytes,1009,opt,name=undelegate_submission,json=undelegateSubmission,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 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 []*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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A liquidity provision submitted for a given market

func (*LiquidityProvisionSubmission) Descriptor

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

func (*LiquidityProvisionSubmission) GetBuys

func (*LiquidityProvisionSubmission) GetCommitmentAmount

func (m *LiquidityProvisionSubmission) GetCommitmentAmount() uint64

func (*LiquidityProvisionSubmission) GetFee

func (*LiquidityProvisionSubmission) GetMarketId

func (m *LiquidityProvisionSubmission) GetMarketId() string

func (*LiquidityProvisionSubmission) GetReference

func (m *LiquidityProvisionSubmission) GetReference() string

func (*LiquidityProvisionSubmission) GetSells

func (*LiquidityProvisionSubmission) ProtoMessage

func (*LiquidityProvisionSubmission) ProtoMessage()

func (*LiquidityProvisionSubmission) Reset

func (m *LiquidityProvisionSubmission) Reset()

func (*LiquidityProvisionSubmission) String

func (*LiquidityProvisionSubmission) Validate

func (this *LiquidityProvisionSubmission) Validate() error

func (*LiquidityProvisionSubmission) XXX_DiscardUnknown

func (m *LiquidityProvisionSubmission) XXX_DiscardUnknown()

func (*LiquidityProvisionSubmission) XXX_Marshal

func (m *LiquidityProvisionSubmission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LiquidityProvisionSubmission) XXX_Merge

func (m *LiquidityProvisionSubmission) XXX_Merge(src proto.Message)

func (*LiquidityProvisionSubmission) XXX_Size

func (m *LiquidityProvisionSubmission) XXX_Size() int

func (*LiquidityProvisionSubmission) XXX_Unmarshal

func (m *LiquidityProvisionSubmission) XXX_Unmarshal(b []byte) error

type NodeRegistration

type NodeRegistration 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Used to Register a node as a validator during network start-up

func (*NodeRegistration) Descriptor

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

func (*NodeRegistration) GetChainPubKey

func (m *NodeRegistration) GetChainPubKey() string

func (*NodeRegistration) GetCountry

func (m *NodeRegistration) GetCountry() string

func (*NodeRegistration) GetEthereumAddress added in v0.42.0

func (m *NodeRegistration) GetEthereumAddress() string

func (*NodeRegistration) GetInfoUrl

func (m *NodeRegistration) GetInfoUrl() string

func (*NodeRegistration) GetVegaPubKey added in v0.42.0

func (m *NodeRegistration) GetVegaPubKey() string

func (*NodeRegistration) ProtoMessage

func (*NodeRegistration) ProtoMessage()

func (*NodeRegistration) Reset

func (m *NodeRegistration) Reset()

func (*NodeRegistration) String

func (m *NodeRegistration) String() string

func (*NodeRegistration) Validate

func (this *NodeRegistration) Validate() error

func (*NodeRegistration) XXX_DiscardUnknown

func (m *NodeRegistration) XXX_DiscardUnknown()

func (*NodeRegistration) XXX_Marshal

func (m *NodeRegistration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeRegistration) XXX_Merge

func (m *NodeRegistration) XXX_Merge(src proto.Message)

func (*NodeRegistration) XXX_Size

func (m *NodeRegistration) XXX_Size() int

func (*NodeRegistration) XXX_Unmarshal

func (m *NodeRegistration) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

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

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

func (*NodeSignature) GetId

func (m *NodeSignature) GetId() string

func (*NodeSignature) GetKind

func (m *NodeSignature) GetKind() NodeSignatureKind

func (*NodeSignature) GetSig

func (m *NodeSignature) GetSig() []byte

func (NodeSignature) IsEvent

func (NodeSignature) IsEvent()

IsEvent required for graphql event stream

func (*NodeSignature) ProtoMessage

func (*NodeSignature) ProtoMessage()

func (*NodeSignature) Reset

func (m *NodeSignature) Reset()

func (*NodeSignature) String

func (m *NodeSignature) String() string

func (*NodeSignature) Validate

func (this *NodeSignature) Validate() error

func (*NodeSignature) XXX_DiscardUnknown

func (m *NodeSignature) XXX_DiscardUnknown()

func (*NodeSignature) XXX_Marshal

func (m *NodeSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeSignature) XXX_Merge

func (m *NodeSignature) XXX_Merge(src proto.Message)

func (*NodeSignature) XXX_Size

func (m *NodeSignature) XXX_Size() int

func (*NodeSignature) XXX_Unmarshal

func (m *NodeSignature) XXX_Unmarshal(b []byte) 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) EnumDescriptor

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

func (NodeSignatureKind) String

func (x NodeSignatureKind) String() string

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

func (*NodeVote) GetPubKey

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

func (*NodeVote) GetReference

func (m *NodeVote) GetReference() string

func (*NodeVote) ProtoMessage

func (*NodeVote) ProtoMessage()

func (*NodeVote) Reset

func (m *NodeVote) Reset()

func (*NodeVote) String

func (m *NodeVote) String() string

func (*NodeVote) Validate

func (this *NodeVote) Validate() error

func (*NodeVote) XXX_DiscardUnknown

func (m *NodeVote) XXX_DiscardUnknown()

func (*NodeVote) XXX_Marshal

func (m *NodeVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeVote) XXX_Merge

func (m *NodeVote) XXX_Merge(src proto.Message)

func (*NodeVote) XXX_Size

func (m *NodeVote) XXX_Size() int

func (*NodeVote) XXX_Unmarshal

func (m *NodeVote) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Command to submit new Oracle data from third party providers

func (*OracleDataSubmission) Descriptor

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

func (*OracleDataSubmission) GetPayload

func (m *OracleDataSubmission) GetPayload() []byte

func (*OracleDataSubmission) GetSource

func (*OracleDataSubmission) ProtoMessage

func (*OracleDataSubmission) ProtoMessage()

func (*OracleDataSubmission) Reset

func (m *OracleDataSubmission) Reset()

func (*OracleDataSubmission) String

func (m *OracleDataSubmission) String() string

func (*OracleDataSubmission) Validate

func (this *OracleDataSubmission) Validate() error

func (*OracleDataSubmission) XXX_DiscardUnknown

func (m *OracleDataSubmission) XXX_DiscardUnknown()

func (*OracleDataSubmission) XXX_Marshal

func (m *OracleDataSubmission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OracleDataSubmission) XXX_Merge

func (m *OracleDataSubmission) XXX_Merge(src proto.Message)

func (*OracleDataSubmission) XXX_Size

func (m *OracleDataSubmission) XXX_Size() int

func (*OracleDataSubmission) XXX_Unmarshal

func (m *OracleDataSubmission) XXX_Unmarshal(b []byte) 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) EnumDescriptor

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

func (OracleDataSubmission_OracleSource) String

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 *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      vega.PeggedReference `` /* 133-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

An order amendment is a request to amend or update an existing order on Vega

func AmendSize

func AmendSize(o *types.Order, newSize int64) *OrderAmendment

func (*OrderAmendment) Descriptor

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

func (*OrderAmendment) GetExpiresAt

func (m *OrderAmendment) GetExpiresAt() *vega.Timestamp

func (*OrderAmendment) GetMarketId

func (m *OrderAmendment) GetMarketId() string

func (*OrderAmendment) GetOrderId

func (m *OrderAmendment) GetOrderId() string

func (*OrderAmendment) GetPeggedOffset

func (m *OrderAmendment) GetPeggedOffset() *wrappers.Int64Value

func (*OrderAmendment) GetPeggedReference

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

func (*OrderAmendment) GetPrice

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

func (*OrderAmendment) GetSizeDelta

func (m *OrderAmendment) GetSizeDelta() int64

func (*OrderAmendment) GetTimeInForce

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

func (*OrderAmendment) ProtoMessage

func (*OrderAmendment) ProtoMessage()

func (*OrderAmendment) Reset

func (m *OrderAmendment) Reset()

func (*OrderAmendment) String

func (m *OrderAmendment) String() string

func (*OrderAmendment) Validate

func (this *OrderAmendment) Validate() error

func (*OrderAmendment) XXX_DiscardUnknown

func (m *OrderAmendment) XXX_DiscardUnknown()

func (*OrderAmendment) XXX_Marshal

func (m *OrderAmendment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrderAmendment) XXX_Merge

func (m *OrderAmendment) XXX_Merge(src proto.Message)

func (*OrderAmendment) XXX_Size

func (m *OrderAmendment) XXX_Size() int

func (*OrderAmendment) XXX_Unmarshal

func (m *OrderAmendment) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An order cancellation is a request to cancel an existing order on Vega

func (*OrderCancellation) Descriptor

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

func (*OrderCancellation) GetMarketId

func (m *OrderCancellation) GetMarketId() string

func (*OrderCancellation) GetOrderId

func (m *OrderCancellation) GetOrderId() string

func (*OrderCancellation) ProtoMessage

func (*OrderCancellation) ProtoMessage()

func (*OrderCancellation) Reset

func (m *OrderCancellation) Reset()

func (*OrderCancellation) String

func (m *OrderCancellation) String() string

func (*OrderCancellation) Validate

func (this *OrderCancellation) Validate() error

func (*OrderCancellation) XXX_DiscardUnknown

func (m *OrderCancellation) XXX_DiscardUnknown()

func (*OrderCancellation) XXX_Marshal

func (m *OrderCancellation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrderCancellation) XXX_Merge

func (m *OrderCancellation) XXX_Merge(src proto.Message)

func (*OrderCancellation) XXX_Size

func (m *OrderCancellation) XXX_Size() int

func (*OrderCancellation) XXX_Unmarshal

func (m *OrderCancellation) XXX_Unmarshal(b []byte) 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 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`](#vega.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`](#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 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`](#vega.PeggedOrder)
	PeggedOrder          *vega.PeggedOrder `protobuf:"bytes,9,opt,name=pegged_order,json=peggedOrder,proto3" json:"pegged_order,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

An order submission is a request to submit or create a new order on Vega

func (*OrderSubmission) Descriptor

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

func (*OrderSubmission) GetExpiresAt

func (m *OrderSubmission) GetExpiresAt() int64

func (*OrderSubmission) GetMarketId

func (m *OrderSubmission) GetMarketId() string

func (*OrderSubmission) GetPeggedOrder

func (m *OrderSubmission) GetPeggedOrder() *vega.PeggedOrder

func (*OrderSubmission) GetPrice

func (m *OrderSubmission) GetPrice() uint64

func (*OrderSubmission) GetReference

func (m *OrderSubmission) GetReference() string

func (*OrderSubmission) GetSide

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

func (*OrderSubmission) GetSize

func (m *OrderSubmission) GetSize() uint64

func (*OrderSubmission) GetTimeInForce

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

func (*OrderSubmission) GetType

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

func (*OrderSubmission) IntoOrder

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

func (*OrderSubmission) ProtoMessage

func (*OrderSubmission) ProtoMessage()

func (*OrderSubmission) Reset

func (m *OrderSubmission) Reset()

func (*OrderSubmission) String

func (m *OrderSubmission) String() string

func (*OrderSubmission) Validate

func (this *OrderSubmission) Validate() error

func (*OrderSubmission) XXX_DiscardUnknown

func (m *OrderSubmission) XXX_DiscardUnknown()

func (*OrderSubmission) XXX_Marshal

func (m *OrderSubmission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrderSubmission) XXX_Merge

func (m *OrderSubmission) XXX_Merge(src proto.Message)

func (*OrderSubmission) XXX_Size

func (m *OrderSubmission) XXX_Size() int

func (*OrderSubmission) XXX_Unmarshal

func (m *OrderSubmission) XXX_Unmarshal(b []byte) 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                *vega.ProposalTerms `protobuf:"bytes,2,opt,name=terms,proto3" json:"terms,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

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

func ProposalSubmissionFromProposal

func ProposalSubmissionFromProposal(p *types.Proposal) *ProposalSubmission

func (*ProposalSubmission) Descriptor

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

func (*ProposalSubmission) GetReference

func (m *ProposalSubmission) GetReference() string

func (*ProposalSubmission) GetTerms

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

func (*ProposalSubmission) ProtoMessage

func (*ProposalSubmission) ProtoMessage()

func (*ProposalSubmission) Reset

func (m *ProposalSubmission) Reset()

func (*ProposalSubmission) String

func (m *ProposalSubmission) String() string

func (*ProposalSubmission) Validate

func (this *ProposalSubmission) Validate() error

func (*ProposalSubmission) XXX_DiscardUnknown

func (m *ProposalSubmission) XXX_DiscardUnknown()

func (*ProposalSubmission) XXX_Marshal

func (m *ProposalSubmission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProposalSubmission) XXX_Merge

func (m *ProposalSubmission) XXX_Merge(src proto.Message)

func (*ProposalSubmission) XXX_Size

func (m *ProposalSubmission) XXX_Size() int

func (*ProposalSubmission) XXX_Unmarshal

func (m *ProposalSubmission) XXX_Unmarshal(b []byte) error

type RestoreSnapshot added in v0.42.0

type RestoreSnapshot struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A command that loads the state from a given checkpoint

func (*RestoreSnapshot) Descriptor added in v0.42.0

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

func (*RestoreSnapshot) GetData added in v0.42.0

func (m *RestoreSnapshot) GetData() []byte

func (*RestoreSnapshot) ProtoMessage added in v0.42.0

func (*RestoreSnapshot) ProtoMessage()

func (*RestoreSnapshot) Reset added in v0.42.0

func (m *RestoreSnapshot) Reset()

func (*RestoreSnapshot) String added in v0.42.0

func (m *RestoreSnapshot) String() string

func (*RestoreSnapshot) Validate added in v0.42.0

func (this *RestoreSnapshot) Validate() error

func (*RestoreSnapshot) XXX_DiscardUnknown added in v0.42.0

func (m *RestoreSnapshot) XXX_DiscardUnknown()

func (*RestoreSnapshot) XXX_Marshal added in v0.42.0

func (m *RestoreSnapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RestoreSnapshot) XXX_Merge added in v0.42.0

func (m *RestoreSnapshot) XXX_Merge(src proto.Message)

func (*RestoreSnapshot) XXX_Size added in v0.42.0

func (m *RestoreSnapshot) XXX_Size() int

func (*RestoreSnapshot) XXX_Unmarshal added in v0.42.0

func (m *RestoreSnapshot) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*Signature) Descriptor

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

func (*Signature) GetAlgo

func (m *Signature) GetAlgo() string

func (*Signature) GetValue

func (m *Signature) GetValue() string

func (*Signature) GetVersion

func (m *Signature) GetVersion() uint32

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) String

func (m *Signature) String() string

func (*Signature) Validate

func (this *Signature) Validate() error

func (*Signature) XXX_DiscardUnknown

func (m *Signature) XXX_DiscardUnknown()

func (*Signature) XXX_Marshal

func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Signature) XXX_Merge

func (m *Signature) XXX_Merge(src proto.Message)

func (*Signature) XXX_Size

func (m *Signature) XXX_Size() int

func (*Signature) XXX_Unmarshal

func (m *Signature) XXX_Unmarshal(b []byte) error

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 valid to be assigned 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents a transaction to be sent to Vega.

func (*Transaction) Descriptor

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

func (*Transaction) GetAddress

func (m *Transaction) GetAddress() string

func (*Transaction) GetFrom

func (m *Transaction) GetFrom() isTransaction_From

func (*Transaction) GetInputData

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

func (*Transaction) GetPubKey

func (m *Transaction) GetPubKey() string

func (*Transaction) GetSignature

func (m *Transaction) GetSignature() *Signature

func (*Transaction) GetVersion

func (m *Transaction) GetVersion() uint32

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) Validate

func (this *Transaction) Validate() error

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Transaction) XXX_Merge

func (m *Transaction) XXX_Merge(src proto.Message)

func (*Transaction) XXX_OneofWrappers

func (*Transaction) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

func (m *Transaction) XXX_Unmarshal(b []byte) error

type Transaction_Address

type Transaction_Address struct {
	Address string `protobuf:"bytes,1001,opt,name=address,proto3,oneof"`
}

type Transaction_PubKey

type Transaction_PubKey struct {
	PubKey string `protobuf:"bytes,1002,opt,name=pub_key,json=pubKey,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               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"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*UndelegateSubmission) Descriptor

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

func (*UndelegateSubmission) GetAmount

func (m *UndelegateSubmission) GetAmount() uint64

func (*UndelegateSubmission) GetMethod

func (*UndelegateSubmission) GetNodeId

func (m *UndelegateSubmission) GetNodeId() string

func (*UndelegateSubmission) ProtoMessage

func (*UndelegateSubmission) ProtoMessage()

func (*UndelegateSubmission) Reset

func (m *UndelegateSubmission) Reset()

func (*UndelegateSubmission) String

func (m *UndelegateSubmission) String() string

func (*UndelegateSubmission) Validate

func (this *UndelegateSubmission) Validate() error

func (*UndelegateSubmission) XXX_DiscardUnknown

func (m *UndelegateSubmission) XXX_DiscardUnknown()

func (*UndelegateSubmission) XXX_Marshal

func (m *UndelegateSubmission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UndelegateSubmission) XXX_Merge

func (m *UndelegateSubmission) XXX_Merge(src proto.Message)

func (*UndelegateSubmission) XXX_Size

func (m *UndelegateSubmission) XXX_Size() int

func (*UndelegateSubmission) XXX_Unmarshal

func (m *UndelegateSubmission) XXX_Unmarshal(b []byte) error

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

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

func (UndelegateSubmission_Method) 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"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

A command to submit a new vote for a governance proposal.

func (*VoteSubmission) Descriptor

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

func (*VoteSubmission) GetProposalId

func (m *VoteSubmission) GetProposalId() string

func (*VoteSubmission) GetValue

func (m *VoteSubmission) GetValue() vega.Vote_Value

func (*VoteSubmission) ProtoMessage

func (*VoteSubmission) ProtoMessage()

func (*VoteSubmission) Reset

func (m *VoteSubmission) Reset()

func (*VoteSubmission) String

func (m *VoteSubmission) String() string

func (*VoteSubmission) Validate

func (this *VoteSubmission) Validate() error

func (*VoteSubmission) XXX_DiscardUnknown

func (m *VoteSubmission) XXX_DiscardUnknown()

func (*VoteSubmission) XXX_Marshal

func (m *VoteSubmission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VoteSubmission) XXX_Merge

func (m *VoteSubmission) XXX_Merge(src proto.Message)

func (*VoteSubmission) XXX_Size

func (m *VoteSubmission) XXX_Size() int

func (*VoteSubmission) XXX_Unmarshal

func (m *VoteSubmission) XXX_Unmarshal(b []byte) 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                  *vega.WithdrawExt `protobuf:"bytes,3,opt,name=ext,proto3" json:"ext,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Represents the submission request to withdraw funds for a party on Vega

func (*WithdrawSubmission) Descriptor

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

func (*WithdrawSubmission) GetAmount

func (m *WithdrawSubmission) GetAmount() uint64

func (*WithdrawSubmission) GetAsset

func (m *WithdrawSubmission) GetAsset() string

func (*WithdrawSubmission) GetExt

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

func (*WithdrawSubmission) ProtoMessage

func (*WithdrawSubmission) ProtoMessage()

func (*WithdrawSubmission) Reset

func (m *WithdrawSubmission) Reset()

func (*WithdrawSubmission) String

func (m *WithdrawSubmission) String() string

func (*WithdrawSubmission) Validate

func (this *WithdrawSubmission) Validate() error

func (*WithdrawSubmission) XXX_DiscardUnknown

func (m *WithdrawSubmission) XXX_DiscardUnknown()

func (*WithdrawSubmission) XXX_Marshal

func (m *WithdrawSubmission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WithdrawSubmission) XXX_Merge

func (m *WithdrawSubmission) XXX_Merge(src proto.Message)

func (*WithdrawSubmission) XXX_Size

func (m *WithdrawSubmission) XXX_Size() int

func (*WithdrawSubmission) XXX_Unmarshal

func (m *WithdrawSubmission) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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