v1

package
v0.75.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: AGPL-3.0 Imports: 20 Imported by: 7

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	SubmitTransactionRequest_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_ASYNC",
		2: "TYPE_SYNC",
		3: "TYPE_COMMIT",
	}
	SubmitTransactionRequest_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TYPE_ASYNC":       1,
		"TYPE_SYNC":        2,
		"TYPE_COMMIT":      3,
	}
)

Enum value maps for SubmitTransactionRequest_Type.

View Source
var (
	SubmitRawTransactionRequest_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "TYPE_ASYNC",
		2: "TYPE_SYNC",
		3: "TYPE_COMMIT",
	}
	SubmitRawTransactionRequest_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"TYPE_ASYNC":       1,
		"TYPE_SYNC":        2,
		"TYPE_COMMIT":      3,
	}
)

Enum value maps for SubmitRawTransactionRequest_Type.

View Source
var CoreService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vega.api.v1.CoreService",
	HandlerType: (*CoreServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitTransaction",
			Handler:    _CoreService_SubmitTransaction_Handler,
		},
		{
			MethodName: "PropagateChainEvent",
			Handler:    _CoreService_PropagateChainEvent_Handler,
		},
		{
			MethodName: "Statistics",
			Handler:    _CoreService_Statistics_Handler,
		},
		{
			MethodName: "LastBlockHeight",
			Handler:    _CoreService_LastBlockHeight_Handler,
		},
		{
			MethodName: "GetVegaTime",
			Handler:    _CoreService_GetVegaTime_Handler,
		},
		{
			MethodName: "SubmitRawTransaction",
			Handler:    _CoreService_SubmitRawTransaction_Handler,
		},
		{
			MethodName: "CheckTransaction",
			Handler:    _CoreService_CheckTransaction_Handler,
		},
		{
			MethodName: "CheckRawTransaction",
			Handler:    _CoreService_CheckRawTransaction_Handler,
		},
		{
			MethodName: "GetSpamStatistics",
			Handler:    _CoreService_GetSpamStatistics_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ObserveEventBus",
			Handler:       _CoreService_ObserveEventBus_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "vega/api/v1/core.proto",
}

CoreService_ServiceDesc is the grpc.ServiceDesc for CoreService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var CoreStateService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vega.api.v1.CoreStateService",
	HandlerType: (*CoreStateServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAccounts",
			Handler:    _CoreStateService_ListAccounts_Handler,
		},
		{
			MethodName: "ListAssets",
			Handler:    _CoreStateService_ListAssets_Handler,
		},
		{
			MethodName: "ListNetworkParameters",
			Handler:    _CoreStateService_ListNetworkParameters_Handler,
		},
		{
			MethodName: "ListNetworkLimits",
			Handler:    _CoreStateService_ListNetworkLimits_Handler,
		},
		{
			MethodName: "ListParties",
			Handler:    _CoreStateService_ListParties_Handler,
		},
		{
			MethodName: "ListValidators",
			Handler:    _CoreStateService_ListValidators_Handler,
		},
		{
			MethodName: "ListMarkets",
			Handler:    _CoreStateService_ListMarkets_Handler,
		},
		{
			MethodName: "ListProposals",
			Handler:    _CoreStateService_ListProposals_Handler,
		},
		{
			MethodName: "ListMarketsData",
			Handler:    _CoreStateService_ListMarketsData_Handler,
		},
		{
			MethodName: "ListVotes",
			Handler:    _CoreStateService_ListVotes_Handler,
		},
		{
			MethodName: "ListPartiesStake",
			Handler:    _CoreStateService_ListPartiesStake_Handler,
		},
		{
			MethodName: "ListDelegations",
			Handler:    _CoreStateService_ListDelegations_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "vega/api/v1/corestate.proto",
}

CoreStateService_ServiceDesc is the grpc.ServiceDesc for CoreStateService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_vega_api_v1_core_proto protoreflect.FileDescriptor
View Source
var File_vega_api_v1_corestate_proto protoreflect.FileDescriptor

Functions

func RegisterCoreServiceHandler

func RegisterCoreServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCoreServiceHandler registers the http handlers for service CoreService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCoreServiceHandlerClient

func RegisterCoreServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CoreServiceClient) error

RegisterCoreServiceHandlerClient registers the http handlers for service CoreService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CoreServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CoreServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CoreServiceClient" to call the correct interceptors.

func RegisterCoreServiceHandlerFromEndpoint

func RegisterCoreServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCoreServiceHandlerFromEndpoint is same as RegisterCoreServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCoreServiceHandlerServer

func RegisterCoreServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CoreServiceServer) error

RegisterCoreServiceHandlerServer registers the http handlers for service CoreService to "mux". UnaryRPC :call CoreServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCoreServiceHandlerFromEndpoint instead.

func RegisterCoreServiceServer

func RegisterCoreServiceServer(s grpc.ServiceRegistrar, srv CoreServiceServer)

func RegisterCoreStateServiceHandler

func RegisterCoreStateServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCoreStateServiceHandler registers the http handlers for service CoreStateService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCoreStateServiceHandlerClient

func RegisterCoreStateServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CoreStateServiceClient) error

RegisterCoreStateServiceHandlerClient registers the http handlers for service CoreStateService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CoreStateServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CoreStateServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CoreStateServiceClient" to call the correct interceptors.

func RegisterCoreStateServiceHandlerFromEndpoint

func RegisterCoreStateServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCoreStateServiceHandlerFromEndpoint is same as RegisterCoreStateServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCoreStateServiceHandlerServer

func RegisterCoreStateServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CoreStateServiceServer) error

RegisterCoreStateServiceHandlerServer registers the http handlers for service CoreStateService to "mux". UnaryRPC :call CoreStateServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCoreStateServiceHandlerFromEndpoint instead.

func RegisterCoreStateServiceServer

func RegisterCoreStateServiceServer(s grpc.ServiceRegistrar, srv CoreStateServiceServer)

Types

type Account

type Account struct {
	Party   string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	Market  string `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"`
	Balance string `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"`
	Asset   string `protobuf:"bytes,5,opt,name=asset,proto3" json:"asset,omitempty"`
	Type    string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAsset

func (x *Account) GetAsset() string

func (*Account) GetBalance

func (x *Account) GetBalance() string

func (*Account) GetMarket

func (x *Account) GetMarket() string

func (*Account) GetParty

func (x *Account) GetParty() string

func (*Account) GetType

func (x *Account) GetType() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type CheckRawTransactionRequest

type CheckRawTransactionRequest struct {

	// Bundle of signed payload and signature marshalled into a byte array, to form a transaction that would be submitted to the Vega blockchain
	Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

Request for checking a version agnostic transaction on Vega

func (*CheckRawTransactionRequest) Descriptor deprecated

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

Deprecated: Use CheckRawTransactionRequest.ProtoReflect.Descriptor instead.

func (*CheckRawTransactionRequest) GetTx

func (x *CheckRawTransactionRequest) GetTx() []byte

func (*CheckRawTransactionRequest) ProtoMessage

func (*CheckRawTransactionRequest) ProtoMessage()

func (*CheckRawTransactionRequest) ProtoReflect

func (*CheckRawTransactionRequest) Reset

func (x *CheckRawTransactionRequest) Reset()

func (*CheckRawTransactionRequest) String

func (x *CheckRawTransactionRequest) String() string

type CheckRawTransactionResponse

type CheckRawTransactionResponse struct {

	// Whether or not the transaction passed the submission checks.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// Error code to indicate the category of failure if the transaction was not successfully submitted.
	Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	// Amount of space in a block that the transaction will fill. This does not relate to any monetary cost for submitting the transaction.
	GasWanted int64 `protobuf:"varint,3,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"`
	// Unused.
	GasUsed int64 `protobuf:"varint,4,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	// Further details for why the transaction was not successfully checked.
	Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// Further details for the underlying consensus layer of the result of the transaction.
	Log string `protobuf:"bytes,6,opt,name=log,proto3" json:"log,omitempty"`
	// Unused
	Info string `protobuf:"bytes,7,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

Response for checking a version agnostic transaction on Vega

func (*CheckRawTransactionResponse) Descriptor deprecated

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

Deprecated: Use CheckRawTransactionResponse.ProtoReflect.Descriptor instead.

func (*CheckRawTransactionResponse) GetCode

func (x *CheckRawTransactionResponse) GetCode() uint32

func (*CheckRawTransactionResponse) GetData added in v0.63.0

func (x *CheckRawTransactionResponse) GetData() string

func (*CheckRawTransactionResponse) GetGasUsed

func (x *CheckRawTransactionResponse) GetGasUsed() int64

func (*CheckRawTransactionResponse) GetGasWanted

func (x *CheckRawTransactionResponse) GetGasWanted() int64

func (*CheckRawTransactionResponse) GetInfo added in v0.63.0

func (x *CheckRawTransactionResponse) GetInfo() string

func (*CheckRawTransactionResponse) GetLog added in v0.63.0

func (x *CheckRawTransactionResponse) GetLog() string

func (*CheckRawTransactionResponse) GetSuccess

func (x *CheckRawTransactionResponse) GetSuccess() bool

func (*CheckRawTransactionResponse) ProtoMessage

func (*CheckRawTransactionResponse) ProtoMessage()

func (*CheckRawTransactionResponse) ProtoReflect

func (*CheckRawTransactionResponse) Reset

func (x *CheckRawTransactionResponse) Reset()

func (*CheckRawTransactionResponse) String

func (x *CheckRawTransactionResponse) String() string

type CheckTransactionRequest

type CheckTransactionRequest struct {

	// Transaction containing a command to be checked on the network, and not added to the chain's mempool.
	Tx *v1.Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	// contains filtered or unexported fields
}

Request for checking a transaction v2 on Vega

func (*CheckTransactionRequest) Descriptor deprecated

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

Deprecated: Use CheckTransactionRequest.ProtoReflect.Descriptor instead.

func (*CheckTransactionRequest) GetTx

func (*CheckTransactionRequest) ProtoMessage

func (*CheckTransactionRequest) ProtoMessage()

func (*CheckTransactionRequest) ProtoReflect

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

func (*CheckTransactionRequest) Reset

func (x *CheckTransactionRequest) Reset()

func (*CheckTransactionRequest) String

func (x *CheckTransactionRequest) String() string

type CheckTransactionResponse

type CheckTransactionResponse struct {

	// Whether or not the transaction passed the submission checks.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// Error code to indicate the category of failure if the transaction was not successfully checked.
	Code uint32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
	// Amount of space in a block that the transaction will fill. This does not relate to any monetary cost for submitting the transaction.
	GasWanted int64 `protobuf:"varint,3,opt,name=gas_wanted,json=gasWanted,proto3" json:"gas_wanted,omitempty"`
	// Unused.
	GasUsed int64 `protobuf:"varint,4,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	// Further details for why the transaction was not successfully submitted.
	Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// Further details for the underlying consensus layer of the result of the transaction.
	Log string `protobuf:"bytes,6,opt,name=log,proto3" json:"log,omitempty"`
	// Unused.
	Info string `protobuf:"bytes,7,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckTransactionResponse) Descriptor deprecated

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

Deprecated: Use CheckTransactionResponse.ProtoReflect.Descriptor instead.

func (*CheckTransactionResponse) GetCode

func (x *CheckTransactionResponse) GetCode() uint32

func (*CheckTransactionResponse) GetData added in v0.63.0

func (x *CheckTransactionResponse) GetData() string

func (*CheckTransactionResponse) GetGasUsed

func (x *CheckTransactionResponse) GetGasUsed() int64

func (*CheckTransactionResponse) GetGasWanted

func (x *CheckTransactionResponse) GetGasWanted() int64

func (*CheckTransactionResponse) GetInfo added in v0.63.0

func (x *CheckTransactionResponse) GetInfo() string

func (*CheckTransactionResponse) GetLog added in v0.63.0

func (x *CheckTransactionResponse) GetLog() string

func (*CheckTransactionResponse) GetSuccess

func (x *CheckTransactionResponse) GetSuccess() bool

func (*CheckTransactionResponse) ProtoMessage

func (*CheckTransactionResponse) ProtoMessage()

func (*CheckTransactionResponse) ProtoReflect

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

func (*CheckTransactionResponse) Reset

func (x *CheckTransactionResponse) Reset()

func (*CheckTransactionResponse) String

func (x *CheckTransactionResponse) String() string

type CoreServiceClient

type CoreServiceClient interface {
	// Submit transaction
	//
	// Submit a signed transaction to the network containing a command to be executed such that if the submission is successful then it will be included in the chain's mempool.
	// The network will then attempt to execute the transaction in the next available block, where the results of its execution can be seen on the EventBus.
	SubmitTransaction(ctx context.Context, in *SubmitTransactionRequest, opts ...grpc.CallOption) (*SubmitTransactionResponse, error)
	// Chain event
	//
	// Propagate a chain event
	PropagateChainEvent(ctx context.Context, in *PropagateChainEventRequest, opts ...grpc.CallOption) (*PropagateChainEventResponse, error)
	// Statistics
	//
	// Get statistics on Vega
	Statistics(ctx context.Context, in *StatisticsRequest, opts ...grpc.CallOption) (*StatisticsResponse, error)
	// Blockchain height
	//
	// Get the height of the last tendermint block
	LastBlockHeight(ctx context.Context, in *LastBlockHeightRequest, opts ...grpc.CallOption) (*LastBlockHeightResponse, error)
	// Vega time
	//
	// Get current Vega time
	GetVegaTime(ctx context.Context, in *GetVegaTimeRequest, opts ...grpc.CallOption) (*GetVegaTimeResponse, error)
	// Events subscription
	//
	// Subscribe to a stream of events from the core
	ObserveEventBus(ctx context.Context, opts ...grpc.CallOption) (CoreService_ObserveEventBusClient, error)
	// Submit raw transaction
	//
	// Submit a pre-serialised signed transaction containing a command to the network to be executed, such that if the submission is successful then it will be included in the chain's mempool.
	// The network will then attempt to execute the transaction in the next available block, where the results of its execution can be seen on the EventBus.
	SubmitRawTransaction(ctx context.Context, in *SubmitRawTransactionRequest, opts ...grpc.CallOption) (*SubmitRawTransactionResponse, error)
	// Check transaction
	//
	// Send a signed transaction containing a command to the network to be checked, but not added to the chain's mempool.
	// This is useful for checking the validity of a potential transaction before submitting it.
	CheckTransaction(ctx context.Context, in *CheckTransactionRequest, opts ...grpc.CallOption) (*CheckTransactionResponse, error)
	// Check raw transaction
	//
	// Send a pre-serialised transaction containing a command to the network to be checked, but then not added to the chain's mempool.
	// This is useful for checking the validity of a potential transaction before submitting it.
	CheckRawTransaction(ctx context.Context, in *CheckRawTransactionRequest, opts ...grpc.CallOption) (*CheckRawTransactionResponse, error)
	// Get Spam statistics
	//
	// Get the spam statistics for a given party.
	GetSpamStatistics(ctx context.Context, in *GetSpamStatisticsRequest, opts ...grpc.CallOption) (*GetSpamStatisticsResponse, error)
}

CoreServiceClient is the client API for CoreService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CoreServiceServer

type CoreServiceServer interface {
	// Submit transaction
	//
	// Submit a signed transaction to the network containing a command to be executed such that if the submission is successful then it will be included in the chain's mempool.
	// The network will then attempt to execute the transaction in the next available block, where the results of its execution can be seen on the EventBus.
	SubmitTransaction(context.Context, *SubmitTransactionRequest) (*SubmitTransactionResponse, error)
	// Chain event
	//
	// Propagate a chain event
	PropagateChainEvent(context.Context, *PropagateChainEventRequest) (*PropagateChainEventResponse, error)
	// Statistics
	//
	// Get statistics on Vega
	Statistics(context.Context, *StatisticsRequest) (*StatisticsResponse, error)
	// Blockchain height
	//
	// Get the height of the last tendermint block
	LastBlockHeight(context.Context, *LastBlockHeightRequest) (*LastBlockHeightResponse, error)
	// Vega time
	//
	// Get current Vega time
	GetVegaTime(context.Context, *GetVegaTimeRequest) (*GetVegaTimeResponse, error)
	// Events subscription
	//
	// Subscribe to a stream of events from the core
	ObserveEventBus(CoreService_ObserveEventBusServer) error
	// Submit raw transaction
	//
	// Submit a pre-serialised signed transaction containing a command to the network to be executed, such that if the submission is successful then it will be included in the chain's mempool.
	// The network will then attempt to execute the transaction in the next available block, where the results of its execution can be seen on the EventBus.
	SubmitRawTransaction(context.Context, *SubmitRawTransactionRequest) (*SubmitRawTransactionResponse, error)
	// Check transaction
	//
	// Send a signed transaction containing a command to the network to be checked, but not added to the chain's mempool.
	// This is useful for checking the validity of a potential transaction before submitting it.
	CheckTransaction(context.Context, *CheckTransactionRequest) (*CheckTransactionResponse, error)
	// Check raw transaction
	//
	// Send a pre-serialised transaction containing a command to the network to be checked, but then not added to the chain's mempool.
	// This is useful for checking the validity of a potential transaction before submitting it.
	CheckRawTransaction(context.Context, *CheckRawTransactionRequest) (*CheckRawTransactionResponse, error)
	// Get Spam statistics
	//
	// Get the spam statistics for a given party.
	GetSpamStatistics(context.Context, *GetSpamStatisticsRequest) (*GetSpamStatisticsResponse, error)
	// contains filtered or unexported methods
}

CoreServiceServer is the server API for CoreService service. All implementations must embed UnimplementedCoreServiceServer for forward compatibility

type CoreService_ObserveEventBusClient

type CoreService_ObserveEventBusClient interface {
	Send(*ObserveEventBusRequest) error
	Recv() (*ObserveEventBusResponse, error)
	grpc.ClientStream
}

type CoreService_ObserveEventBusServer

type CoreService_ObserveEventBusServer interface {
	Send(*ObserveEventBusResponse) error
	Recv() (*ObserveEventBusRequest, error)
	grpc.ServerStream
}

type CoreStateServiceClient

type CoreStateServiceClient interface {
	// Accounts list
	//
	// Get a list of accounts. This endpoint may not be exposed by mainnet nodes.
	ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
	// Assets list
	//
	// Get a list of assets. This endpoint may not be exposed by mainnet nodes.
	ListAssets(ctx context.Context, in *ListAssetsRequest, opts ...grpc.CallOption) (*ListAssetsResponse, error)
	// Network parameters list
	//
	// Get a list of network parameters. This endpoint may not be exposed by mainnet nodes.
	ListNetworkParameters(ctx context.Context, in *ListNetworkParametersRequest, opts ...grpc.CallOption) (*ListNetworkParametersResponse, error)
	// Network limits list
	//
	// Get a list of network limits. This endpoint may not be exposed by mainnet nodes.
	ListNetworkLimits(ctx context.Context, in *ListNetworkLimitsRequest, opts ...grpc.CallOption) (*ListNetworkLimitsResponse, error)
	// Parties list
	//
	// Get a list of parties. This endpoint may not be exposed by mainnet nodes.
	ListParties(ctx context.Context, in *ListPartiesRequest, opts ...grpc.CallOption) (*ListPartiesResponse, error)
	// Validators list
	//
	// Get a list of validators. This endpoint may not be exposed by mainnet nodes.
	ListValidators(ctx context.Context, in *ListValidatorsRequest, opts ...grpc.CallOption) (*ListValidatorsResponse, error)
	// Markets list
	//
	// Get a list of markets. This endpoint may not be exposed by mainnet nodes.
	ListMarkets(ctx context.Context, in *ListMarketsRequest, opts ...grpc.CallOption) (*ListMarketsResponse, error)
	// Proposals list
	//
	// Get a list of proposals. This endpoint may not be exposed by mainnet nodes.
	ListProposals(ctx context.Context, in *ListProposalsRequest, opts ...grpc.CallOption) (*ListProposalsResponse, error)
	// Markets data list
	//
	// Get a list of markets' data. This endpoint may not be exposed by mainnet nodes.
	ListMarketsData(ctx context.Context, in *ListMarketsDataRequest, opts ...grpc.CallOption) (*ListMarketsDataResponse, error)
	// Votes list
	//
	// Get a list of votes. This endpoint may not be exposed by mainnet nodes.
	ListVotes(ctx context.Context, in *ListVotesRequest, opts ...grpc.CallOption) (*ListVotesResponse, error)
	// Parties stake list
	//
	// Get a list of parties' stake. This endpoint may not be exposed by mainnet nodes.
	ListPartiesStake(ctx context.Context, in *ListPartiesStakeRequest, opts ...grpc.CallOption) (*ListPartiesStakeResponse, error)
	// Delegations list
	//
	// Get a list of delegations. This endpoint may not be exposed by mainnet nodes.
	ListDelegations(ctx context.Context, in *ListDelegationsRequest, opts ...grpc.CallOption) (*ListDelegationsResponse, error)
}

CoreStateServiceClient is the client API for CoreStateService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CoreStateServiceServer

type CoreStateServiceServer interface {
	// Accounts list
	//
	// Get a list of accounts. This endpoint may not be exposed by mainnet nodes.
	ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
	// Assets list
	//
	// Get a list of assets. This endpoint may not be exposed by mainnet nodes.
	ListAssets(context.Context, *ListAssetsRequest) (*ListAssetsResponse, error)
	// Network parameters list
	//
	// Get a list of network parameters. This endpoint may not be exposed by mainnet nodes.
	ListNetworkParameters(context.Context, *ListNetworkParametersRequest) (*ListNetworkParametersResponse, error)
	// Network limits list
	//
	// Get a list of network limits. This endpoint may not be exposed by mainnet nodes.
	ListNetworkLimits(context.Context, *ListNetworkLimitsRequest) (*ListNetworkLimitsResponse, error)
	// Parties list
	//
	// Get a list of parties. This endpoint may not be exposed by mainnet nodes.
	ListParties(context.Context, *ListPartiesRequest) (*ListPartiesResponse, error)
	// Validators list
	//
	// Get a list of validators. This endpoint may not be exposed by mainnet nodes.
	ListValidators(context.Context, *ListValidatorsRequest) (*ListValidatorsResponse, error)
	// Markets list
	//
	// Get a list of markets. This endpoint may not be exposed by mainnet nodes.
	ListMarkets(context.Context, *ListMarketsRequest) (*ListMarketsResponse, error)
	// Proposals list
	//
	// Get a list of proposals. This endpoint may not be exposed by mainnet nodes.
	ListProposals(context.Context, *ListProposalsRequest) (*ListProposalsResponse, error)
	// Markets data list
	//
	// Get a list of markets' data. This endpoint may not be exposed by mainnet nodes.
	ListMarketsData(context.Context, *ListMarketsDataRequest) (*ListMarketsDataResponse, error)
	// Votes list
	//
	// Get a list of votes. This endpoint may not be exposed by mainnet nodes.
	ListVotes(context.Context, *ListVotesRequest) (*ListVotesResponse, error)
	// Parties stake list
	//
	// Get a list of parties' stake. This endpoint may not be exposed by mainnet nodes.
	ListPartiesStake(context.Context, *ListPartiesStakeRequest) (*ListPartiesStakeResponse, error)
	// Delegations list
	//
	// Get a list of delegations. This endpoint may not be exposed by mainnet nodes.
	ListDelegations(context.Context, *ListDelegationsRequest) (*ListDelegationsResponse, error)
	// contains filtered or unexported methods
}

CoreStateServiceServer is the server API for CoreStateService service. All implementations must embed UnimplementedCoreStateServiceServer for forward compatibility

type GetSpamStatisticsRequest added in v0.67.0

type GetSpamStatisticsRequest struct {

	// Party ID whose statistics are requested
	PartyId string `protobuf:"bytes,1,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// contains filtered or unexported fields
}

Request to retrieve the spam statistics of a party for the given epoch

func (*GetSpamStatisticsRequest) Descriptor deprecated added in v0.67.0

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

Deprecated: Use GetSpamStatisticsRequest.ProtoReflect.Descriptor instead.

func (*GetSpamStatisticsRequest) GetPartyId added in v0.67.0

func (x *GetSpamStatisticsRequest) GetPartyId() string

func (*GetSpamStatisticsRequest) ProtoMessage added in v0.67.0

func (*GetSpamStatisticsRequest) ProtoMessage()

func (*GetSpamStatisticsRequest) ProtoReflect added in v0.67.0

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

func (*GetSpamStatisticsRequest) Reset added in v0.67.0

func (x *GetSpamStatisticsRequest) Reset()

func (*GetSpamStatisticsRequest) String added in v0.67.0

func (x *GetSpamStatisticsRequest) String() string

type GetSpamStatisticsResponse added in v0.67.0

type GetSpamStatisticsResponse struct {

	// Chain ID for which the statistics are captured.
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Spam statistics for the party
	Statistics *SpamStatistics `protobuf:"bytes,2,opt,name=statistics,proto3" json:"statistics,omitempty"`
	// contains filtered or unexported fields
}

Response containing all the spam statistics of a party for the current epoch

func (*GetSpamStatisticsResponse) Descriptor deprecated added in v0.67.0

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

Deprecated: Use GetSpamStatisticsResponse.ProtoReflect.Descriptor instead.

func (*GetSpamStatisticsResponse) GetChainId added in v0.67.0

func (x *GetSpamStatisticsResponse) GetChainId() string

func (*GetSpamStatisticsResponse) GetStatistics added in v0.67.0

func (x *GetSpamStatisticsResponse) GetStatistics() *SpamStatistics

func (*GetSpamStatisticsResponse) ProtoMessage added in v0.67.0

func (*GetSpamStatisticsResponse) ProtoMessage()

func (*GetSpamStatisticsResponse) ProtoReflect added in v0.67.0

func (*GetSpamStatisticsResponse) Reset added in v0.67.0

func (x *GetSpamStatisticsResponse) Reset()

func (*GetSpamStatisticsResponse) String added in v0.67.0

func (x *GetSpamStatisticsResponse) String() string

type GetVegaTimeRequest

type GetVegaTimeRequest struct {
	// contains filtered or unexported fields
}

Request for the current time of the Vega network

func (*GetVegaTimeRequest) Descriptor deprecated

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

Deprecated: Use GetVegaTimeRequest.ProtoReflect.Descriptor instead.

func (*GetVegaTimeRequest) ProtoMessage

func (*GetVegaTimeRequest) ProtoMessage()

func (*GetVegaTimeRequest) ProtoReflect

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

func (*GetVegaTimeRequest) Reset

func (x *GetVegaTimeRequest) Reset()

func (*GetVegaTimeRequest) String

func (x *GetVegaTimeRequest) String() string

type GetVegaTimeResponse

type GetVegaTimeResponse struct {

	// Timestamp representation of current VegaTime as represented in
	// Unix nanoseconds, for example `1580473859111222333` corresponds to `2020-01-31T12:30:59.111222333Z`
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Response for the current consensus coordinated time on the Vega network, referred to as "VegaTime"

func (*GetVegaTimeResponse) Descriptor deprecated

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

Deprecated: Use GetVegaTimeResponse.ProtoReflect.Descriptor instead.

func (*GetVegaTimeResponse) GetTimestamp

func (x *GetVegaTimeResponse) GetTimestamp() int64

func (*GetVegaTimeResponse) ProtoMessage

func (*GetVegaTimeResponse) ProtoMessage()

func (*GetVegaTimeResponse) ProtoReflect

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

func (*GetVegaTimeResponse) Reset

func (x *GetVegaTimeResponse) Reset()

func (*GetVegaTimeResponse) String

func (x *GetVegaTimeResponse) String() string

type LastBlockHeightRequest

type LastBlockHeightRequest struct {
	// contains filtered or unexported fields
}

Request to get the height of the very last block processed by tendermint

func (*LastBlockHeightRequest) Descriptor deprecated

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

Deprecated: Use LastBlockHeightRequest.ProtoReflect.Descriptor instead.

func (*LastBlockHeightRequest) ProtoMessage

func (*LastBlockHeightRequest) ProtoMessage()

func (*LastBlockHeightRequest) ProtoReflect

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

func (*LastBlockHeightRequest) Reset

func (x *LastBlockHeightRequest) Reset()

func (*LastBlockHeightRequest) String

func (x *LastBlockHeightRequest) String() string

type LastBlockHeightResponse

type LastBlockHeightResponse struct {

	// Last block height
	Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// Last block hash
	Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// Supported proof of work hash function
	SpamPowHashFunction string `protobuf:"bytes,3,opt,name=spam_pow_hash_function,json=spamPowHashFunction,proto3" json:"spam_pow_hash_function,omitempty"`
	// Difficulty of the proof of work, i.e. the target number of zeros
	SpamPowDifficulty uint32 `protobuf:"varint,4,opt,name=spam_pow_difficulty,json=spamPowDifficulty,proto3" json:"spam_pow_difficulty,omitempty"`
	// Supported proof of work number of blocks behind current height allowed
	SpamPowNumberOfPastBlocks uint32 `` /* 145-byte string literal not displayed */
	// Allowed number of transactions per block
	SpamPowNumberOfTxPerBlock uint32 `` /* 147-byte string literal not displayed */
	// Boolean indicating whether increasing difficulty is allowed for using the
	// same height for more than `spam_pow_number_of_past_blocks` transactions
	SpamPowIncreasingDifficulty bool `` /* 147-byte string literal not displayed */
	// Network chain id from which the block comes from
	ChainId string `protobuf:"bytes,8,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// contains filtered or unexported fields
}

Response with the height of the last block processed by tendermint

func (*LastBlockHeightResponse) Descriptor deprecated

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

Deprecated: Use LastBlockHeightResponse.ProtoReflect.Descriptor instead.

func (*LastBlockHeightResponse) GetChainId

func (x *LastBlockHeightResponse) GetChainId() string

func (*LastBlockHeightResponse) GetHash

func (x *LastBlockHeightResponse) GetHash() string

func (*LastBlockHeightResponse) GetHeight

func (x *LastBlockHeightResponse) GetHeight() uint64

func (*LastBlockHeightResponse) GetSpamPowDifficulty

func (x *LastBlockHeightResponse) GetSpamPowDifficulty() uint32

func (*LastBlockHeightResponse) GetSpamPowHashFunction

func (x *LastBlockHeightResponse) GetSpamPowHashFunction() string

func (*LastBlockHeightResponse) GetSpamPowIncreasingDifficulty

func (x *LastBlockHeightResponse) GetSpamPowIncreasingDifficulty() bool

func (*LastBlockHeightResponse) GetSpamPowNumberOfPastBlocks

func (x *LastBlockHeightResponse) GetSpamPowNumberOfPastBlocks() uint32

func (*LastBlockHeightResponse) GetSpamPowNumberOfTxPerBlock

func (x *LastBlockHeightResponse) GetSpamPowNumberOfTxPerBlock() uint32

func (*LastBlockHeightResponse) ProtoMessage

func (*LastBlockHeightResponse) ProtoMessage()

func (*LastBlockHeightResponse) ProtoReflect

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

func (*LastBlockHeightResponse) Reset

func (x *LastBlockHeightResponse) Reset()

func (*LastBlockHeightResponse) String

func (x *LastBlockHeightResponse) String() string

type ListAccountsRequest

type ListAccountsRequest struct {
	Party  string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	Market string `protobuf:"bytes,2,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountsRequest) Descriptor deprecated

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

Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.

func (*ListAccountsRequest) GetMarket

func (x *ListAccountsRequest) GetMarket() string

func (*ListAccountsRequest) GetParty

func (x *ListAccountsRequest) GetParty() string

func (*ListAccountsRequest) ProtoMessage

func (*ListAccountsRequest) ProtoMessage()

func (*ListAccountsRequest) ProtoReflect

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

func (*ListAccountsRequest) Reset

func (x *ListAccountsRequest) Reset()

func (*ListAccountsRequest) String

func (x *ListAccountsRequest) String() string

type ListAccountsResponse

type ListAccountsResponse struct {
	Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAccountsResponse) Descriptor deprecated

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

Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.

func (*ListAccountsResponse) GetAccounts

func (x *ListAccountsResponse) GetAccounts() []*Account

func (*ListAccountsResponse) ProtoMessage

func (*ListAccountsResponse) ProtoMessage()

func (*ListAccountsResponse) ProtoReflect

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

func (*ListAccountsResponse) Reset

func (x *ListAccountsResponse) Reset()

func (*ListAccountsResponse) String

func (x *ListAccountsResponse) String() string

type ListAssetsRequest

type ListAssetsRequest struct {
	Asset string `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` // optional ID
	// contains filtered or unexported fields
}

func (*ListAssetsRequest) Descriptor deprecated

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

Deprecated: Use ListAssetsRequest.ProtoReflect.Descriptor instead.

func (*ListAssetsRequest) GetAsset

func (x *ListAssetsRequest) GetAsset() string

func (*ListAssetsRequest) ProtoMessage

func (*ListAssetsRequest) ProtoMessage()

func (*ListAssetsRequest) ProtoReflect

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

func (*ListAssetsRequest) Reset

func (x *ListAssetsRequest) Reset()

func (*ListAssetsRequest) String

func (x *ListAssetsRequest) String() string

type ListAssetsResponse

type ListAssetsResponse struct {
	Assets []*vega.Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAssetsResponse) Descriptor deprecated

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

Deprecated: Use ListAssetsResponse.ProtoReflect.Descriptor instead.

func (*ListAssetsResponse) GetAssets

func (x *ListAssetsResponse) GetAssets() []*vega.Asset

func (*ListAssetsResponse) ProtoMessage

func (*ListAssetsResponse) ProtoMessage()

func (*ListAssetsResponse) ProtoReflect

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

func (*ListAssetsResponse) Reset

func (x *ListAssetsResponse) Reset()

func (*ListAssetsResponse) String

func (x *ListAssetsResponse) String() string

type ListDelegationsRequest

type ListDelegationsRequest struct {
	Party    string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	Node     string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"`
	EpochSeq string `protobuf:"bytes,3,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDelegationsRequest) Descriptor deprecated

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

Deprecated: Use ListDelegationsRequest.ProtoReflect.Descriptor instead.

func (*ListDelegationsRequest) GetEpochSeq

func (x *ListDelegationsRequest) GetEpochSeq() string

func (*ListDelegationsRequest) GetNode

func (x *ListDelegationsRequest) GetNode() string

func (*ListDelegationsRequest) GetParty

func (x *ListDelegationsRequest) GetParty() string

func (*ListDelegationsRequest) ProtoMessage

func (*ListDelegationsRequest) ProtoMessage()

func (*ListDelegationsRequest) ProtoReflect

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

func (*ListDelegationsRequest) Reset

func (x *ListDelegationsRequest) Reset()

func (*ListDelegationsRequest) String

func (x *ListDelegationsRequest) String() string

type ListDelegationsResponse

type ListDelegationsResponse struct {
	Delegations []*vega.Delegation `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDelegationsResponse) Descriptor deprecated

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

Deprecated: Use ListDelegationsResponse.ProtoReflect.Descriptor instead.

func (*ListDelegationsResponse) GetDelegations

func (x *ListDelegationsResponse) GetDelegations() []*vega.Delegation

func (*ListDelegationsResponse) ProtoMessage

func (*ListDelegationsResponse) ProtoMessage()

func (*ListDelegationsResponse) ProtoReflect

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

func (*ListDelegationsResponse) Reset

func (x *ListDelegationsResponse) Reset()

func (*ListDelegationsResponse) String

func (x *ListDelegationsResponse) String() string

type ListMarketsDataRequest

type ListMarketsDataRequest struct {
	Market string `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMarketsDataRequest) Descriptor deprecated

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

Deprecated: Use ListMarketsDataRequest.ProtoReflect.Descriptor instead.

func (*ListMarketsDataRequest) GetMarket

func (x *ListMarketsDataRequest) GetMarket() string

func (*ListMarketsDataRequest) ProtoMessage

func (*ListMarketsDataRequest) ProtoMessage()

func (*ListMarketsDataRequest) ProtoReflect

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

func (*ListMarketsDataRequest) Reset

func (x *ListMarketsDataRequest) Reset()

func (*ListMarketsDataRequest) String

func (x *ListMarketsDataRequest) String() string

type ListMarketsDataResponse

type ListMarketsDataResponse struct {
	MarketsData []*vega.MarketData `protobuf:"bytes,1,rep,name=markets_data,json=marketsData,proto3" json:"markets_data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMarketsDataResponse) Descriptor deprecated

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

Deprecated: Use ListMarketsDataResponse.ProtoReflect.Descriptor instead.

func (*ListMarketsDataResponse) GetMarketsData

func (x *ListMarketsDataResponse) GetMarketsData() []*vega.MarketData

func (*ListMarketsDataResponse) ProtoMessage

func (*ListMarketsDataResponse) ProtoMessage()

func (*ListMarketsDataResponse) ProtoReflect

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

func (*ListMarketsDataResponse) Reset

func (x *ListMarketsDataResponse) Reset()

func (*ListMarketsDataResponse) String

func (x *ListMarketsDataResponse) String() string

type ListMarketsRequest

type ListMarketsRequest struct {
	Market string `protobuf:"bytes,1,opt,name=market,proto3" json:"market,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMarketsRequest) Descriptor deprecated

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

Deprecated: Use ListMarketsRequest.ProtoReflect.Descriptor instead.

func (*ListMarketsRequest) GetMarket

func (x *ListMarketsRequest) GetMarket() string

func (*ListMarketsRequest) ProtoMessage

func (*ListMarketsRequest) ProtoMessage()

func (*ListMarketsRequest) ProtoReflect

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

func (*ListMarketsRequest) Reset

func (x *ListMarketsRequest) Reset()

func (*ListMarketsRequest) String

func (x *ListMarketsRequest) String() string

type ListMarketsResponse

type ListMarketsResponse struct {
	Markets []*vega.Market `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMarketsResponse) Descriptor deprecated

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

Deprecated: Use ListMarketsResponse.ProtoReflect.Descriptor instead.

func (*ListMarketsResponse) GetMarkets

func (x *ListMarketsResponse) GetMarkets() []*vega.Market

func (*ListMarketsResponse) ProtoMessage

func (*ListMarketsResponse) ProtoMessage()

func (*ListMarketsResponse) ProtoReflect

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

func (*ListMarketsResponse) Reset

func (x *ListMarketsResponse) Reset()

func (*ListMarketsResponse) String

func (x *ListMarketsResponse) String() string

type ListNetworkLimitsRequest

type ListNetworkLimitsRequest struct {
	// contains filtered or unexported fields
}

func (*ListNetworkLimitsRequest) Descriptor deprecated

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

Deprecated: Use ListNetworkLimitsRequest.ProtoReflect.Descriptor instead.

func (*ListNetworkLimitsRequest) ProtoMessage

func (*ListNetworkLimitsRequest) ProtoMessage()

func (*ListNetworkLimitsRequest) ProtoReflect

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

func (*ListNetworkLimitsRequest) Reset

func (x *ListNetworkLimitsRequest) Reset()

func (*ListNetworkLimitsRequest) String

func (x *ListNetworkLimitsRequest) String() string

type ListNetworkLimitsResponse

type ListNetworkLimitsResponse struct {
	NetworkLimits *vega.NetworkLimits `protobuf:"bytes,1,opt,name=network_limits,json=networkLimits,proto3" json:"network_limits,omitempty"`
	// contains filtered or unexported fields
}

func (*ListNetworkLimitsResponse) Descriptor deprecated

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

Deprecated: Use ListNetworkLimitsResponse.ProtoReflect.Descriptor instead.

func (*ListNetworkLimitsResponse) GetNetworkLimits

func (x *ListNetworkLimitsResponse) GetNetworkLimits() *vega.NetworkLimits

func (*ListNetworkLimitsResponse) ProtoMessage

func (*ListNetworkLimitsResponse) ProtoMessage()

func (*ListNetworkLimitsResponse) ProtoReflect

func (*ListNetworkLimitsResponse) Reset

func (x *ListNetworkLimitsResponse) Reset()

func (*ListNetworkLimitsResponse) String

func (x *ListNetworkLimitsResponse) String() string

type ListNetworkParametersRequest

type ListNetworkParametersRequest struct {
	NetworkParameterKey string `protobuf:"bytes,1,opt,name=network_parameter_key,json=networkParameterKey,proto3" json:"network_parameter_key,omitempty"` // optional parameter key
	// contains filtered or unexported fields
}

func (*ListNetworkParametersRequest) Descriptor deprecated

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

Deprecated: Use ListNetworkParametersRequest.ProtoReflect.Descriptor instead.

func (*ListNetworkParametersRequest) GetNetworkParameterKey

func (x *ListNetworkParametersRequest) GetNetworkParameterKey() string

func (*ListNetworkParametersRequest) ProtoMessage

func (*ListNetworkParametersRequest) ProtoMessage()

func (*ListNetworkParametersRequest) ProtoReflect

func (*ListNetworkParametersRequest) Reset

func (x *ListNetworkParametersRequest) Reset()

func (*ListNetworkParametersRequest) String

type ListNetworkParametersResponse

type ListNetworkParametersResponse struct {
	NetworkParameters []*vega.NetworkParameter `protobuf:"bytes,1,rep,name=network_parameters,json=networkParameters,proto3" json:"network_parameters,omitempty"`
	// contains filtered or unexported fields
}

func (*ListNetworkParametersResponse) Descriptor deprecated

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

Deprecated: Use ListNetworkParametersResponse.ProtoReflect.Descriptor instead.

func (*ListNetworkParametersResponse) GetNetworkParameters

func (x *ListNetworkParametersResponse) GetNetworkParameters() []*vega.NetworkParameter

func (*ListNetworkParametersResponse) ProtoMessage

func (*ListNetworkParametersResponse) ProtoMessage()

func (*ListNetworkParametersResponse) ProtoReflect

func (*ListNetworkParametersResponse) Reset

func (x *ListNetworkParametersResponse) Reset()

func (*ListNetworkParametersResponse) String

type ListPartiesRequest

type ListPartiesRequest struct {
	// contains filtered or unexported fields
}

func (*ListPartiesRequest) Descriptor deprecated

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

Deprecated: Use ListPartiesRequest.ProtoReflect.Descriptor instead.

func (*ListPartiesRequest) ProtoMessage

func (*ListPartiesRequest) ProtoMessage()

func (*ListPartiesRequest) ProtoReflect

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

func (*ListPartiesRequest) Reset

func (x *ListPartiesRequest) Reset()

func (*ListPartiesRequest) String

func (x *ListPartiesRequest) String() string

type ListPartiesResponse

type ListPartiesResponse struct {
	Parties []*vega.Party `protobuf:"bytes,1,rep,name=parties,proto3" json:"parties,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPartiesResponse) Descriptor deprecated

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

Deprecated: Use ListPartiesResponse.ProtoReflect.Descriptor instead.

func (*ListPartiesResponse) GetParties

func (x *ListPartiesResponse) GetParties() []*vega.Party

func (*ListPartiesResponse) ProtoMessage

func (*ListPartiesResponse) ProtoMessage()

func (*ListPartiesResponse) ProtoReflect

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

func (*ListPartiesResponse) Reset

func (x *ListPartiesResponse) Reset()

func (*ListPartiesResponse) String

func (x *ListPartiesResponse) String() string

type ListPartiesStakeRequest

type ListPartiesStakeRequest struct {
	Party string `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPartiesStakeRequest) Descriptor deprecated

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

Deprecated: Use ListPartiesStakeRequest.ProtoReflect.Descriptor instead.

func (*ListPartiesStakeRequest) GetParty

func (x *ListPartiesStakeRequest) GetParty() string

func (*ListPartiesStakeRequest) ProtoMessage

func (*ListPartiesStakeRequest) ProtoMessage()

func (*ListPartiesStakeRequest) ProtoReflect

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

func (*ListPartiesStakeRequest) Reset

func (x *ListPartiesStakeRequest) Reset()

func (*ListPartiesStakeRequest) String

func (x *ListPartiesStakeRequest) String() string

type ListPartiesStakeResponse

type ListPartiesStakeResponse struct {
	PartiesStake []*PartyStake `protobuf:"bytes,1,rep,name=parties_stake,json=partiesStake,proto3" json:"parties_stake,omitempty"`
	// contains filtered or unexported fields
}

func (*ListPartiesStakeResponse) Descriptor deprecated

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

Deprecated: Use ListPartiesStakeResponse.ProtoReflect.Descriptor instead.

func (*ListPartiesStakeResponse) GetPartiesStake

func (x *ListPartiesStakeResponse) GetPartiesStake() []*PartyStake

func (*ListPartiesStakeResponse) ProtoMessage

func (*ListPartiesStakeResponse) ProtoMessage()

func (*ListPartiesStakeResponse) ProtoReflect

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

func (*ListPartiesStakeResponse) Reset

func (x *ListPartiesStakeResponse) Reset()

func (*ListPartiesStakeResponse) String

func (x *ListPartiesStakeResponse) String() string

type ListProposalsRequest

type ListProposalsRequest struct {
	Proposal string `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // optional ID
	Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` // optional party
	// contains filtered or unexported fields
}

func (*ListProposalsRequest) Descriptor deprecated

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

Deprecated: Use ListProposalsRequest.ProtoReflect.Descriptor instead.

func (*ListProposalsRequest) GetProposal

func (x *ListProposalsRequest) GetProposal() string

func (*ListProposalsRequest) GetProposer

func (x *ListProposalsRequest) GetProposer() string

func (*ListProposalsRequest) ProtoMessage

func (*ListProposalsRequest) ProtoMessage()

func (*ListProposalsRequest) ProtoReflect

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

func (*ListProposalsRequest) Reset

func (x *ListProposalsRequest) Reset()

func (*ListProposalsRequest) String

func (x *ListProposalsRequest) String() string

type ListProposalsResponse

type ListProposalsResponse struct {
	Proposals []*vega.Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProposalsResponse) Descriptor deprecated

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

Deprecated: Use ListProposalsResponse.ProtoReflect.Descriptor instead.

func (*ListProposalsResponse) GetProposals

func (x *ListProposalsResponse) GetProposals() []*vega.Proposal

func (*ListProposalsResponse) ProtoMessage

func (*ListProposalsResponse) ProtoMessage()

func (*ListProposalsResponse) ProtoReflect

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

func (*ListProposalsResponse) Reset

func (x *ListProposalsResponse) Reset()

func (*ListProposalsResponse) String

func (x *ListProposalsResponse) String() string

type ListValidatorsRequest

type ListValidatorsRequest struct {
	// contains filtered or unexported fields
}

func (*ListValidatorsRequest) Descriptor deprecated

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

Deprecated: Use ListValidatorsRequest.ProtoReflect.Descriptor instead.

func (*ListValidatorsRequest) ProtoMessage

func (*ListValidatorsRequest) ProtoMessage()

func (*ListValidatorsRequest) ProtoReflect

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

func (*ListValidatorsRequest) Reset

func (x *ListValidatorsRequest) Reset()

func (*ListValidatorsRequest) String

func (x *ListValidatorsRequest) String() string

type ListValidatorsResponse

type ListValidatorsResponse struct {
	Validators []*v1.ValidatorUpdate `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	// contains filtered or unexported fields
}

func (*ListValidatorsResponse) Descriptor deprecated

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

Deprecated: Use ListValidatorsResponse.ProtoReflect.Descriptor instead.

func (*ListValidatorsResponse) GetValidators

func (x *ListValidatorsResponse) GetValidators() []*v1.ValidatorUpdate

func (*ListValidatorsResponse) ProtoMessage

func (*ListValidatorsResponse) ProtoMessage()

func (*ListValidatorsResponse) ProtoReflect

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

func (*ListValidatorsResponse) Reset

func (x *ListValidatorsResponse) Reset()

func (*ListValidatorsResponse) String

func (x *ListValidatorsResponse) String() string

type ListVotesRequest

type ListVotesRequest struct {
	Proposal string `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	Party    string `protobuf:"bytes,2,opt,name=party,proto3" json:"party,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVotesRequest) Descriptor deprecated

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

Deprecated: Use ListVotesRequest.ProtoReflect.Descriptor instead.

func (*ListVotesRequest) GetParty

func (x *ListVotesRequest) GetParty() string

func (*ListVotesRequest) GetProposal

func (x *ListVotesRequest) GetProposal() string

func (*ListVotesRequest) ProtoMessage

func (*ListVotesRequest) ProtoMessage()

func (*ListVotesRequest) ProtoReflect

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

func (*ListVotesRequest) Reset

func (x *ListVotesRequest) Reset()

func (*ListVotesRequest) String

func (x *ListVotesRequest) String() string

type ListVotesResponse

type ListVotesResponse struct {
	Votes []*vega.Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"`
	// contains filtered or unexported fields
}

func (*ListVotesResponse) Descriptor deprecated

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

Deprecated: Use ListVotesResponse.ProtoReflect.Descriptor instead.

func (*ListVotesResponse) GetVotes

func (x *ListVotesResponse) GetVotes() []*vega.Vote

func (*ListVotesResponse) ProtoMessage

func (*ListVotesResponse) ProtoMessage()

func (*ListVotesResponse) ProtoReflect

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

func (*ListVotesResponse) Reset

func (x *ListVotesResponse) Reset()

func (*ListVotesResponse) String

func (x *ListVotesResponse) String() string

type ObserveEventBusRequest

type ObserveEventBusRequest struct {

	// One or more types of event, required field
	Type []v11.BusEventType `protobuf:"varint,1,rep,packed,name=type,proto3,enum=vega.events.v1.BusEventType" json:"type,omitempty"`
	// Market ID to filter events for, optional field. If omitted, no markets will be filtered out.
	MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// Party ID to filter events for, optional field. If omitted, no parties will be filtered out.
	PartyId string `protobuf:"bytes,3,opt,name=party_id,json=partyId,proto3" json:"party_id,omitempty"`
	// Batch size, optional field -
	// If not specified, any events received will be sent immediately. If the client is not ready
	// for the next data-set, data may be dropped a number of times, and eventually the stream is closed.
	// if specified, the first batch will be sent when ready. To receive the next set of events, the client
	// must write an `ObserveEventBatch` message on the stream to flush the buffer.
	// If no message is received in 5 seconds, the stream is closed.
	// Default: 0, send any and all events when they are available.
	BatchSize int64 `protobuf:"varint,4,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"`
	// contains filtered or unexported fields
}

Request to subscribe to a stream of one or more event types from the Vega event bus

func (*ObserveEventBusRequest) Descriptor deprecated

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

Deprecated: Use ObserveEventBusRequest.ProtoReflect.Descriptor instead.

func (*ObserveEventBusRequest) GetBatchSize

func (x *ObserveEventBusRequest) GetBatchSize() int64

func (*ObserveEventBusRequest) GetMarketId

func (x *ObserveEventBusRequest) GetMarketId() string

func (*ObserveEventBusRequest) GetPartyId

func (x *ObserveEventBusRequest) GetPartyId() string

func (*ObserveEventBusRequest) GetType

func (x *ObserveEventBusRequest) GetType() []v11.BusEventType

func (*ObserveEventBusRequest) ProtoMessage

func (*ObserveEventBusRequest) ProtoMessage()

func (*ObserveEventBusRequest) ProtoReflect

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

func (*ObserveEventBusRequest) Reset

func (x *ObserveEventBusRequest) Reset()

func (*ObserveEventBusRequest) String

func (x *ObserveEventBusRequest) String() string

type ObserveEventBusResponse

type ObserveEventBusResponse struct {

	// One or more events that match the subscription request criteria.
	Events []*v11.BusEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

Response to a subscribed stream of events from the Vega event bus

func (*ObserveEventBusResponse) Descriptor deprecated

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

Deprecated: Use ObserveEventBusResponse.ProtoReflect.Descriptor instead.

func (*ObserveEventBusResponse) GetEvents

func (x *ObserveEventBusResponse) GetEvents() []*v11.BusEvent

func (*ObserveEventBusResponse) ProtoMessage

func (*ObserveEventBusResponse) ProtoMessage()

func (*ObserveEventBusResponse) ProtoReflect

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

func (*ObserveEventBusResponse) Reset

func (x *ObserveEventBusResponse) Reset()

func (*ObserveEventBusResponse) String

func (x *ObserveEventBusResponse) String() string

type PartyStake

type PartyStake struct {
	Party                 string             `protobuf:"bytes,1,opt,name=party,proto3" json:"party,omitempty"`
	CurrentStakeAvailable string             `` /* 126-byte string literal not displayed */
	StakeLinkings         []*v1.StakeLinking `protobuf:"bytes,3,rep,name=stake_linkings,json=stakeLinkings,proto3" json:"stake_linkings,omitempty"`
	// contains filtered or unexported fields
}

func (*PartyStake) Descriptor deprecated

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

Deprecated: Use PartyStake.ProtoReflect.Descriptor instead.

func (*PartyStake) GetCurrentStakeAvailable

func (x *PartyStake) GetCurrentStakeAvailable() string

func (*PartyStake) GetParty

func (x *PartyStake) GetParty() string

func (*PartyStake) GetStakeLinkings

func (x *PartyStake) GetStakeLinkings() []*v1.StakeLinking

func (*PartyStake) ProtoMessage

func (*PartyStake) ProtoMessage()

func (*PartyStake) ProtoReflect

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

func (*PartyStake) Reset

func (x *PartyStake) Reset()

func (*PartyStake) String

func (x *PartyStake) String() string

type PoWBlockState added in v0.67.0

type PoWBlockState struct {

	// Block height for the current Proof of Work state statistics
	BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// Hash of the current block
	BlockHash string `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	// Total number of transactions seen in the block
	TransactionsSeen uint64 `protobuf:"varint,3,opt,name=transactions_seen,json=transactionsSeen,proto3" json:"transactions_seen,omitempty"`
	// This is the minimum required difficulty for the next transaction submitted on this block
	// if it is possible to submit more transactions on this block, otherwise nil.
	ExpectedDifficulty *uint64 `protobuf:"varint,4,opt,name=expected_difficulty,json=expectedDifficulty,proto3,oneof" json:"expected_difficulty,omitempty"`
	// Hashing function used to calculate the block hash
	HashFunction string `protobuf:"bytes,5,opt,name=hash_function,json=hashFunction,proto3" json:"hash_function,omitempty"`
	// Base difficulty for this block for when transactions seen < tx_per_block
	Difficulty uint64 `protobuf:"varint,6,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	// Number of transactions that can have their proof-of-work calculated with this block hash before
	// either the difficulty increases, or no more transactions can use this block hash
	TxPerBlock uint64 `protobuf:"varint,7,opt,name=tx_per_block,json=txPerBlock,proto3" json:"tx_per_block,omitempty"`
	// Whether or not this block allows for increasing proof-of-work difficulty if the
	// tx-per-block-hash limit has been reached
	IncreasingDifficulty bool `protobuf:"varint,8,opt,name=increasing_difficulty,json=increasingDifficulty,proto3" json:"increasing_difficulty,omitempty"`
	// contains filtered or unexported fields
}

Proof of Work state for a given block

func (*PoWBlockState) Descriptor deprecated added in v0.67.0

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

Deprecated: Use PoWBlockState.ProtoReflect.Descriptor instead.

func (*PoWBlockState) GetBlockHash added in v0.67.0

func (x *PoWBlockState) GetBlockHash() string

func (*PoWBlockState) GetBlockHeight added in v0.67.0

func (x *PoWBlockState) GetBlockHeight() uint64

func (*PoWBlockState) GetDifficulty added in v0.68.0

func (x *PoWBlockState) GetDifficulty() uint64

func (*PoWBlockState) GetExpectedDifficulty added in v0.67.0

func (x *PoWBlockState) GetExpectedDifficulty() uint64

func (*PoWBlockState) GetHashFunction added in v0.67.0

func (x *PoWBlockState) GetHashFunction() string

func (*PoWBlockState) GetIncreasingDifficulty added in v0.68.0

func (x *PoWBlockState) GetIncreasingDifficulty() bool

func (*PoWBlockState) GetTransactionsSeen added in v0.67.0

func (x *PoWBlockState) GetTransactionsSeen() uint64

func (*PoWBlockState) GetTxPerBlock added in v0.68.0

func (x *PoWBlockState) GetTxPerBlock() uint64

func (*PoWBlockState) ProtoMessage added in v0.67.0

func (*PoWBlockState) ProtoMessage()

func (*PoWBlockState) ProtoReflect added in v0.67.0

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

func (*PoWBlockState) Reset added in v0.67.0

func (x *PoWBlockState) Reset()

func (*PoWBlockState) String added in v0.67.0

func (x *PoWBlockState) String() string

type PoWStatistic added in v0.67.0

type PoWStatistic struct {

	// Block state for each block in scope for PoW calculation
	BlockStates []*PoWBlockState `protobuf:"bytes,1,rep,name=block_states,json=blockStates,proto3" json:"block_states,omitempty"`
	// PoW banned until timestamp as RFC3339Nano
	BannedUntil *string `protobuf:"bytes,2,opt,name=banned_until,json=bannedUntil,proto3,oneof" json:"banned_until,omitempty"`
	// Number of block behind the current block whose hash can be used for proof-of-work calculations
	NumberOfPastBlocks uint64 `protobuf:"varint,3,opt,name=number_of_past_blocks,json=numberOfPastBlocks,proto3" json:"number_of_past_blocks,omitempty"`
	// contains filtered or unexported fields
}

Proof of work statistics for a party

func (*PoWStatistic) Descriptor deprecated added in v0.67.0

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

Deprecated: Use PoWStatistic.ProtoReflect.Descriptor instead.

func (*PoWStatistic) GetBannedUntil added in v0.67.0

func (x *PoWStatistic) GetBannedUntil() string

func (*PoWStatistic) GetBlockStates added in v0.67.0

func (x *PoWStatistic) GetBlockStates() []*PoWBlockState

func (*PoWStatistic) GetNumberOfPastBlocks added in v0.68.0

func (x *PoWStatistic) GetNumberOfPastBlocks() uint64

func (*PoWStatistic) ProtoMessage added in v0.67.0

func (*PoWStatistic) ProtoMessage()

func (*PoWStatistic) ProtoReflect added in v0.67.0

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

func (*PoWStatistic) Reset added in v0.67.0

func (x *PoWStatistic) Reset()

func (*PoWStatistic) String added in v0.67.0

func (x *PoWStatistic) String() string

type PropagateChainEventRequest

type PropagateChainEventRequest struct {

	// Chain event to propagate.
	Event []byte `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// Public key of the key pair used to sign messages.
	PubKey string `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	// Signature generated by the private key associated with the public key.
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

Request for a new event sent by the blockchain queue to be propagated on Vega

func (*PropagateChainEventRequest) Descriptor deprecated

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

Deprecated: Use PropagateChainEventRequest.ProtoReflect.Descriptor instead.

func (*PropagateChainEventRequest) GetEvent

func (x *PropagateChainEventRequest) GetEvent() []byte

func (*PropagateChainEventRequest) GetPubKey

func (x *PropagateChainEventRequest) GetPubKey() string

func (*PropagateChainEventRequest) GetSignature

func (x *PropagateChainEventRequest) GetSignature() []byte

func (*PropagateChainEventRequest) ProtoMessage

func (*PropagateChainEventRequest) ProtoMessage()

func (*PropagateChainEventRequest) ProtoReflect

func (*PropagateChainEventRequest) Reset

func (x *PropagateChainEventRequest) Reset()

func (*PropagateChainEventRequest) String

func (x *PropagateChainEventRequest) String() string

type PropagateChainEventResponse

type PropagateChainEventResponse struct {

	// Success will be true if the event was accepted by the node,
	// **Important** - success does not mean that the event is confirmed by consensus
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

Response for a new event sent by the blockchain queue to be propagated on Vega

func (*PropagateChainEventResponse) Descriptor deprecated

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

Deprecated: Use PropagateChainEventResponse.ProtoReflect.Descriptor instead.

func (*PropagateChainEventResponse) GetSuccess

func (x *PropagateChainEventResponse) GetSuccess() bool

func (*PropagateChainEventResponse) ProtoMessage

func (*PropagateChainEventResponse) ProtoMessage()

func (*PropagateChainEventResponse) ProtoReflect

func (*PropagateChainEventResponse) Reset

func (x *PropagateChainEventResponse) Reset()

func (*PropagateChainEventResponse) String

func (x *PropagateChainEventResponse) String() string

type SpamStatistic added in v0.67.0

type SpamStatistic struct {

	// Current transaction count received from the party during this epoch for this policy
	CountForEpoch uint64 `protobuf:"varint,1,opt,name=count_for_epoch,json=countForEpoch,proto3" json:"count_for_epoch,omitempty"`
	// Maximum number of transactions allowed for this policy in an epoch
	MaxForEpoch uint64 `protobuf:"varint,2,opt,name=max_for_epoch,json=maxForEpoch,proto3" json:"max_for_epoch,omitempty"`
	// If blocked the timestamp when the party will be unblocked as RFC3339Nano
	BannedUntil *string `protobuf:"bytes,4,opt,name=banned_until,json=bannedUntil,proto3,oneof" json:"banned_until,omitempty"`
	// Effective minimum number of tokens required to submit a transaction of this type
	MinTokensRequired string `protobuf:"bytes,5,opt,name=min_tokens_required,json=minTokensRequired,proto3" json:"min_tokens_required,omitempty"`
	// contains filtered or unexported fields
}

Statistics for a given spam policy

func (*SpamStatistic) Descriptor deprecated added in v0.67.0

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

Deprecated: Use SpamStatistic.ProtoReflect.Descriptor instead.

func (*SpamStatistic) GetBannedUntil added in v0.67.0

func (x *SpamStatistic) GetBannedUntil() string

func (*SpamStatistic) GetCountForEpoch added in v0.67.0

func (x *SpamStatistic) GetCountForEpoch() uint64

func (*SpamStatistic) GetMaxForEpoch added in v0.67.0

func (x *SpamStatistic) GetMaxForEpoch() uint64

func (*SpamStatistic) GetMinTokensRequired added in v0.68.0

func (x *SpamStatistic) GetMinTokensRequired() string

func (*SpamStatistic) ProtoMessage added in v0.67.0

func (*SpamStatistic) ProtoMessage()

func (*SpamStatistic) ProtoReflect added in v0.67.0

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

func (*SpamStatistic) Reset added in v0.67.0

func (x *SpamStatistic) Reset()

func (*SpamStatistic) String added in v0.67.0

func (x *SpamStatistic) String() string

type SpamStatistics added in v0.67.0

type SpamStatistics struct {

	// Statistics for proposal transactions made by the party.
	Proposals *SpamStatistic `protobuf:"bytes,1,opt,name=proposals,proto3" json:"proposals,omitempty"`
	// Statistics for delegation transactions made by the party.
	Delegations *SpamStatistic `protobuf:"bytes,2,opt,name=delegations,proto3" json:"delegations,omitempty"`
	// Statistics for transfer transactions made by the party.
	Transfers *SpamStatistic `protobuf:"bytes,3,opt,name=transfers,proto3" json:"transfers,omitempty"`
	// Statistics for node announcement transactions made by the party.
	NodeAnnouncements *SpamStatistic `protobuf:"bytes,4,opt,name=node_announcements,json=nodeAnnouncements,proto3" json:"node_announcements,omitempty"`
	// Statistics for proposal votes made by the party.
	Votes *VoteSpamStatistics `protobuf:"bytes,5,opt,name=votes,proto3" json:"votes,omitempty"`
	// Statistics for proof of work difficulty observed per block for the party.
	Pow *PoWStatistic `protobuf:"bytes,6,opt,name=pow,proto3" json:"pow,omitempty"`
	// Statistics for multisig signatures issued for the party.
	IssueSignatures *SpamStatistic `protobuf:"bytes,7,opt,name=issue_signatures,json=issueSignatures,proto3" json:"issue_signatures,omitempty"`
	// Epoch in which these statistics apply to.
	EpochSeq uint64 `protobuf:"varint,8,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"`
	// Statistics for transactions made by the party to create referral sets.
	CreateReferralSet *SpamStatistic `protobuf:"bytes,9,opt,name=create_referral_set,json=createReferralSet,proto3" json:"create_referral_set,omitempty"`
	// Statistics for transactions made by the party to update referral sets.
	UpdateReferralSet *SpamStatistic `protobuf:"bytes,10,opt,name=update_referral_set,json=updateReferralSet,proto3" json:"update_referral_set,omitempty"`
	// Statistics for transactions made by the party to apply referral codes.
	ApplyReferralCode *SpamStatistic `protobuf:"bytes,11,opt,name=apply_referral_code,json=applyReferralCode,proto3" json:"apply_referral_code,omitempty"`
	// contains filtered or unexported fields
}

Complete spam statistics captured for a given party

func (*SpamStatistics) Descriptor deprecated added in v0.67.0

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

Deprecated: Use SpamStatistics.ProtoReflect.Descriptor instead.

func (*SpamStatistics) GetApplyReferralCode added in v0.73.0

func (x *SpamStatistics) GetApplyReferralCode() *SpamStatistic

func (*SpamStatistics) GetCreateReferralSet added in v0.73.0

func (x *SpamStatistics) GetCreateReferralSet() *SpamStatistic

func (*SpamStatistics) GetDelegations added in v0.67.0

func (x *SpamStatistics) GetDelegations() *SpamStatistic

func (*SpamStatistics) GetEpochSeq added in v0.68.0

func (x *SpamStatistics) GetEpochSeq() uint64

func (*SpamStatistics) GetIssueSignatures added in v0.68.0

func (x *SpamStatistics) GetIssueSignatures() *SpamStatistic

func (*SpamStatistics) GetNodeAnnouncements added in v0.67.0

func (x *SpamStatistics) GetNodeAnnouncements() *SpamStatistic

func (*SpamStatistics) GetPow added in v0.67.0

func (x *SpamStatistics) GetPow() *PoWStatistic

func (*SpamStatistics) GetProposals added in v0.67.0

func (x *SpamStatistics) GetProposals() *SpamStatistic

func (*SpamStatistics) GetTransfers added in v0.67.0

func (x *SpamStatistics) GetTransfers() *SpamStatistic

func (*SpamStatistics) GetUpdateReferralSet added in v0.73.0

func (x *SpamStatistics) GetUpdateReferralSet() *SpamStatistic

func (*SpamStatistics) GetVotes added in v0.67.0

func (x *SpamStatistics) GetVotes() *VoteSpamStatistics

func (*SpamStatistics) ProtoMessage added in v0.67.0

func (*SpamStatistics) ProtoMessage()

func (*SpamStatistics) ProtoReflect added in v0.67.0

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

func (*SpamStatistics) Reset added in v0.67.0

func (x *SpamStatistics) Reset()

func (*SpamStatistics) String added in v0.67.0

func (x *SpamStatistics) String() string

type Statistics

type Statistics struct {

	// Current block height as reported by the Vega blockchain
	BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// Current backlog length i.e., number of transactions, that are waiting to be included in a block
	BacklogLength uint64 `protobuf:"varint,2,opt,name=backlog_length,json=backlogLength,proto3" json:"backlog_length,omitempty"`
	// Total number of connected peers to this node
	TotalPeers uint64 `protobuf:"varint,3,opt,name=total_peers,json=totalPeers,proto3" json:"total_peers,omitempty"`
	// Genesis block date and time formatted in ISO-8601 datetime format with nanosecond precision
	GenesisTime string `protobuf:"bytes,4,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`
	// Current system date and time formatted in ISO-8601 datetime format with nanosecond precision
	CurrentTime string `protobuf:"bytes,5,opt,name=current_time,json=currentTime,proto3" json:"current_time,omitempty"`
	// Current Vega date and time formatted in ISO-8601 datetime format with nanosecond precision
	VegaTime string `protobuf:"bytes,6,opt,name=vega_time,json=vegaTime,proto3" json:"vega_time,omitempty"`
	// Status of the connection to the Vega blockchain
	Status vega.ChainStatus `protobuf:"varint,7,opt,name=status,proto3,enum=vega.ChainStatus" json:"status,omitempty"`
	// Transactions per block
	TxPerBlock uint64 `protobuf:"varint,8,opt,name=tx_per_block,json=txPerBlock,proto3" json:"tx_per_block,omitempty"`
	// Average transaction size in bytes
	AverageTxBytes uint64 `protobuf:"varint,9,opt,name=average_tx_bytes,json=averageTxBytes,proto3" json:"average_tx_bytes,omitempty"`
	// Average orders per block
	AverageOrdersPerBlock uint64 `` /* 130-byte string literal not displayed */
	// Trades emitted per second
	TradesPerSecond uint64 `protobuf:"varint,11,opt,name=trades_per_second,json=tradesPerSecond,proto3" json:"trades_per_second,omitempty"`
	// Orders processed per second
	OrdersPerSecond uint64 `protobuf:"varint,12,opt,name=orders_per_second,json=ordersPerSecond,proto3" json:"orders_per_second,omitempty"`
	// Total markets on this Vega network
	TotalMarkets uint64 `protobuf:"varint,13,opt,name=total_markets,json=totalMarkets,proto3" json:"total_markets,omitempty"`
	// Total number of order amendments since genesis across all markets
	TotalAmendOrder uint64 `protobuf:"varint,16,opt,name=total_amend_order,json=totalAmendOrder,proto3" json:"total_amend_order,omitempty"`
	// Total number of order cancellations since genesis across all markets
	TotalCancelOrder uint64 `protobuf:"varint,17,opt,name=total_cancel_order,json=totalCancelOrder,proto3" json:"total_cancel_order,omitempty"`
	// Total number of order submissions since genesis across all markets
	TotalCreateOrder uint64 `protobuf:"varint,18,opt,name=total_create_order,json=totalCreateOrder,proto3" json:"total_create_order,omitempty"`
	// Total number of orders processed since genesis across all markets
	TotalOrders uint64 `protobuf:"varint,19,opt,name=total_orders,json=totalOrders,proto3" json:"total_orders,omitempty"`
	// Total number of trades emitted since genesis across all markets
	TotalTrades uint64 `protobuf:"varint,20,opt,name=total_trades,json=totalTrades,proto3" json:"total_trades,omitempty"`
	// Current number of stream subscribers to order data
	OrderSubscriptions uint32 `protobuf:"varint,21,opt,name=order_subscriptions,json=orderSubscriptions,proto3" json:"order_subscriptions,omitempty"`
	// Current number of stream subscribers to trade data
	TradeSubscriptions uint32 `protobuf:"varint,22,opt,name=trade_subscriptions,json=tradeSubscriptions,proto3" json:"trade_subscriptions,omitempty"`
	// Current number of stream subscribers to candlestick data
	CandleSubscriptions uint32 `protobuf:"varint,23,opt,name=candle_subscriptions,json=candleSubscriptions,proto3" json:"candle_subscriptions,omitempty"`
	// Current number of stream subscribers to market depth data
	MarketDepthSubscriptions uint32 `` /* 137-byte string literal not displayed */
	// Current number of stream subscribers to positions data
	PositionsSubscriptions uint32 `` /* 129-byte string literal not displayed */
	// Current number of stream subscribers to account data
	AccountSubscriptions uint32 `protobuf:"varint,26,opt,name=account_subscriptions,json=accountSubscriptions,proto3" json:"account_subscriptions,omitempty"`
	// Current number of stream subscribers to market data
	MarketDataSubscriptions uint32 `` /* 134-byte string literal not displayed */
	// Version hash of the Vega node software
	AppVersionHash string `protobuf:"bytes,28,opt,name=app_version_hash,json=appVersionHash,proto3" json:"app_version_hash,omitempty"`
	// Version of the Vega node software
	AppVersion string `protobuf:"bytes,29,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
	// Version of the underlying Vega blockchain
	ChainVersion string `protobuf:"bytes,30,opt,name=chain_version,json=chainVersion,proto3" json:"chain_version,omitempty"`
	// Current block duration, in nanoseconds
	BlockDuration uint64 `protobuf:"varint,31,opt,name=block_duration,json=blockDuration,proto3" json:"block_duration,omitempty"`
	// Total uptime for this node formatted in ISO-8601 datetime format with nanosecond precision
	Uptime string `protobuf:"bytes,32,opt,name=uptime,proto3" json:"uptime,omitempty"`
	// Unique ID for the underlying Vega blockchain
	ChainId string `protobuf:"bytes,33,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Current number of stream subscribers to market depth update data
	MarketDepthUpdatesSubscriptions uint32 `` /* 160-byte string literal not displayed */
	// Current block hash
	BlockHash string `protobuf:"bytes,35,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	// Current epoch
	EpochSeq uint64 `protobuf:"varint,36,opt,name=epoch_seq,json=epochSeq,proto3" json:"epoch_seq,omitempty"`
	// Epoch start time
	EpochStartTime string `protobuf:"bytes,37,opt,name=epoch_start_time,json=epochStartTime,proto3" json:"epoch_start_time,omitempty"`
	// Epoch expected end time
	EpochExpiryTime string `protobuf:"bytes,38,opt,name=epoch_expiry_time,json=epochExpiryTime,proto3" json:"epoch_expiry_time,omitempty"`
	// Number of events in the last block
	EventCount uint64 `protobuf:"varint,39,opt,name=event_count,json=eventCount,proto3" json:"event_count,omitempty"`
	// Rate of events per second in the last block
	EventsPerSecond uint64 `protobuf:"varint,40,opt,name=events_per_second,json=eventsPerSecond,proto3" json:"events_per_second,omitempty"`
	// contains filtered or unexported fields
}

Vega domain specific statistics as reported by the node the caller is connected to

func (*Statistics) Descriptor deprecated

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

Deprecated: Use Statistics.ProtoReflect.Descriptor instead.

func (*Statistics) GetAccountSubscriptions

func (x *Statistics) GetAccountSubscriptions() uint32

func (*Statistics) GetAppVersion

func (x *Statistics) GetAppVersion() string

func (*Statistics) GetAppVersionHash

func (x *Statistics) GetAppVersionHash() string

func (*Statistics) GetAverageOrdersPerBlock

func (x *Statistics) GetAverageOrdersPerBlock() uint64

func (*Statistics) GetAverageTxBytes

func (x *Statistics) GetAverageTxBytes() uint64

func (*Statistics) GetBacklogLength

func (x *Statistics) GetBacklogLength() uint64

func (*Statistics) GetBlockDuration

func (x *Statistics) GetBlockDuration() uint64

func (*Statistics) GetBlockHash

func (x *Statistics) GetBlockHash() string

func (*Statistics) GetBlockHeight

func (x *Statistics) GetBlockHeight() uint64

func (*Statistics) GetCandleSubscriptions

func (x *Statistics) GetCandleSubscriptions() uint32

func (*Statistics) GetChainId

func (x *Statistics) GetChainId() string

func (*Statistics) GetChainVersion

func (x *Statistics) GetChainVersion() string

func (*Statistics) GetCurrentTime

func (x *Statistics) GetCurrentTime() string

func (*Statistics) GetEpochExpiryTime added in v0.59.0

func (x *Statistics) GetEpochExpiryTime() string

func (*Statistics) GetEpochSeq added in v0.59.0

func (x *Statistics) GetEpochSeq() uint64

func (*Statistics) GetEpochStartTime added in v0.59.0

func (x *Statistics) GetEpochStartTime() string

func (*Statistics) GetEventCount added in v0.68.0

func (x *Statistics) GetEventCount() uint64

func (*Statistics) GetEventsPerSecond added in v0.68.0

func (x *Statistics) GetEventsPerSecond() uint64

func (*Statistics) GetGenesisTime

func (x *Statistics) GetGenesisTime() string

func (*Statistics) GetMarketDataSubscriptions

func (x *Statistics) GetMarketDataSubscriptions() uint32

func (*Statistics) GetMarketDepthSubscriptions

func (x *Statistics) GetMarketDepthSubscriptions() uint32

func (*Statistics) GetMarketDepthUpdatesSubscriptions

func (x *Statistics) GetMarketDepthUpdatesSubscriptions() uint32

func (*Statistics) GetOrderSubscriptions

func (x *Statistics) GetOrderSubscriptions() uint32

func (*Statistics) GetOrdersPerSecond

func (x *Statistics) GetOrdersPerSecond() uint64

func (*Statistics) GetPositionsSubscriptions

func (x *Statistics) GetPositionsSubscriptions() uint32

func (*Statistics) GetStatus

func (x *Statistics) GetStatus() vega.ChainStatus

func (*Statistics) GetTotalAmendOrder

func (x *Statistics) GetTotalAmendOrder() uint64

func (*Statistics) GetTotalCancelOrder

func (x *Statistics) GetTotalCancelOrder() uint64

func (*Statistics) GetTotalCreateOrder

func (x *Statistics) GetTotalCreateOrder() uint64

func (*Statistics) GetTotalMarkets

func (x *Statistics) GetTotalMarkets() uint64

func (*Statistics) GetTotalOrders

func (x *Statistics) GetTotalOrders() uint64

func (*Statistics) GetTotalPeers

func (x *Statistics) GetTotalPeers() uint64

func (*Statistics) GetTotalTrades

func (x *Statistics) GetTotalTrades() uint64

func (*Statistics) GetTradeSubscriptions

func (x *Statistics) GetTradeSubscriptions() uint32

func (*Statistics) GetTradesPerSecond

func (x *Statistics) GetTradesPerSecond() uint64

func (*Statistics) GetTxPerBlock

func (x *Statistics) GetTxPerBlock() uint64

func (*Statistics) GetUptime

func (x *Statistics) GetUptime() string

func (*Statistics) GetVegaTime

func (x *Statistics) GetVegaTime() string

func (*Statistics) ProtoMessage

func (*Statistics) ProtoMessage()

func (*Statistics) ProtoReflect

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

func (*Statistics) Reset

func (x *Statistics) Reset()

func (*Statistics) String

func (x *Statistics) String() string

type StatisticsRequest

type StatisticsRequest struct {
	// contains filtered or unexported fields
}

Request for statistics about the Vega network

func (*StatisticsRequest) Descriptor deprecated

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

Deprecated: Use StatisticsRequest.ProtoReflect.Descriptor instead.

func (*StatisticsRequest) ProtoMessage

func (*StatisticsRequest) ProtoMessage()

func (*StatisticsRequest) ProtoReflect

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

func (*StatisticsRequest) Reset

func (x *StatisticsRequest) Reset()

func (*StatisticsRequest) String

func (x *StatisticsRequest) String() string

type StatisticsResponse

type StatisticsResponse struct {
	Statistics *Statistics `protobuf:"bytes,1,opt,name=statistics,proto3" json:"statistics,omitempty"`
	// contains filtered or unexported fields
}

Response containing statistics about the Vega network

func (*StatisticsResponse) Descriptor deprecated

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

Deprecated: Use StatisticsResponse.ProtoReflect.Descriptor instead.

func (*StatisticsResponse) GetStatistics

func (x *StatisticsResponse) GetStatistics() *Statistics

func (*StatisticsResponse) ProtoMessage

func (*StatisticsResponse) ProtoMessage()

func (*StatisticsResponse) ProtoReflect

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

func (*StatisticsResponse) Reset

func (x *StatisticsResponse) Reset()

func (*StatisticsResponse) String

func (x *StatisticsResponse) String() string

type SubmitRawTransactionRequest

type SubmitRawTransactionRequest struct {

	// Bundle of signed payload and signature marshalled into a byte array, to form a transaction that will be submitted to the Vega blockchain
	Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	// Type of transaction request, for example ASYNC, meaning the transaction will be submitted and not block on a response
	Type SubmitRawTransactionRequest_Type `protobuf:"varint,2,opt,name=type,proto3,enum=vega.api.v1.SubmitRawTransactionRequest_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Request for submitting a version agnostic transaction on Vega

func (*SubmitRawTransactionRequest) Descriptor deprecated

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

Deprecated: Use SubmitRawTransactionRequest.ProtoReflect.Descriptor instead.

func (*SubmitRawTransactionRequest) GetTx

func (x *SubmitRawTransactionRequest) GetTx() []byte

func (*SubmitRawTransactionRequest) GetType

func (*SubmitRawTransactionRequest) ProtoMessage

func (*SubmitRawTransactionRequest) ProtoMessage()

func (*SubmitRawTransactionRequest) ProtoReflect

func (*SubmitRawTransactionRequest) Reset

func (x *SubmitRawTransactionRequest) Reset()

func (*SubmitRawTransactionRequest) String

func (x *SubmitRawTransactionRequest) String() string

type SubmitRawTransactionRequest_Type

type SubmitRawTransactionRequest_Type int32

Blockchain transaction type

const (
	SubmitRawTransactionRequest_TYPE_UNSPECIFIED SubmitRawTransactionRequest_Type = 0
	// Transaction will be submitted without waiting for response
	SubmitRawTransactionRequest_TYPE_ASYNC SubmitRawTransactionRequest_Type = 1
	// Transaction will be submitted, and blocking until the
	// tendermint mempool returns a response
	SubmitRawTransactionRequest_TYPE_SYNC SubmitRawTransactionRequest_Type = 2
	// Transaction will be submitted, and blocking until the tendermint
	// network has committed it into a block. Used only for debugging,
	// not for submitting transactions
	SubmitRawTransactionRequest_TYPE_COMMIT SubmitRawTransactionRequest_Type = 3
)

func (SubmitRawTransactionRequest_Type) Descriptor

func (SubmitRawTransactionRequest_Type) Enum

func (SubmitRawTransactionRequest_Type) EnumDescriptor deprecated

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

Deprecated: Use SubmitRawTransactionRequest_Type.Descriptor instead.

func (SubmitRawTransactionRequest_Type) Number

func (SubmitRawTransactionRequest_Type) String

func (SubmitRawTransactionRequest_Type) Type

type SubmitRawTransactionResponse

type SubmitRawTransactionResponse struct {

	// Whether or not the transaction was validated and submitted to the chain's mempool.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// Hash of the transaction, which can be used to identify the transaction in a node's event stream.
	TxHash string `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	// Error code to indicate the category of failure if the transaction was not successfully submitted.
	Code uint32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"`
	// Further details for why the transaction was not successfully submitted.
	Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// Further details for the underlying consensus layer of the result of the transaction.
	Log string `protobuf:"bytes,5,opt,name=log,proto3" json:"log,omitempty"`
	// Unused.
	Height int64 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

Response for submitting a version agnostic transaction on Vega

func (*SubmitRawTransactionResponse) Descriptor deprecated

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

Deprecated: Use SubmitRawTransactionResponse.ProtoReflect.Descriptor instead.

func (*SubmitRawTransactionResponse) GetCode

func (x *SubmitRawTransactionResponse) GetCode() uint32

func (*SubmitRawTransactionResponse) GetData

func (x *SubmitRawTransactionResponse) GetData() string

func (*SubmitRawTransactionResponse) GetHeight

func (x *SubmitRawTransactionResponse) GetHeight() int64

func (*SubmitRawTransactionResponse) GetLog

func (*SubmitRawTransactionResponse) GetSuccess

func (x *SubmitRawTransactionResponse) GetSuccess() bool

func (*SubmitRawTransactionResponse) GetTxHash

func (x *SubmitRawTransactionResponse) GetTxHash() string

func (*SubmitRawTransactionResponse) ProtoMessage

func (*SubmitRawTransactionResponse) ProtoMessage()

func (*SubmitRawTransactionResponse) ProtoReflect

func (*SubmitRawTransactionResponse) Reset

func (x *SubmitRawTransactionResponse) Reset()

func (*SubmitRawTransactionResponse) String

type SubmitTransactionRequest

type SubmitTransactionRequest struct {

	// Transaction containing a command to execute on the network, and a signature to provide authentication.
	Tx *v1.Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	// Method of submission.
	Type SubmitTransactionRequest_Type `protobuf:"varint,2,opt,name=type,proto3,enum=vega.api.v1.SubmitTransactionRequest_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Request for submitting a transaction v2 on Vega

func (*SubmitTransactionRequest) Descriptor deprecated

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

Deprecated: Use SubmitTransactionRequest.ProtoReflect.Descriptor instead.

func (*SubmitTransactionRequest) GetTx

func (*SubmitTransactionRequest) GetType

func (*SubmitTransactionRequest) ProtoMessage

func (*SubmitTransactionRequest) ProtoMessage()

func (*SubmitTransactionRequest) ProtoReflect

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

func (*SubmitTransactionRequest) Reset

func (x *SubmitTransactionRequest) Reset()

func (*SubmitTransactionRequest) String

func (x *SubmitTransactionRequest) String() string

type SubmitTransactionRequest_Type

type SubmitTransactionRequest_Type int32

Blockchain transaction type.

const (
	SubmitTransactionRequest_TYPE_UNSPECIFIED SubmitTransactionRequest_Type = 0
	// Transaction will be submitted without waiting for a response.
	SubmitTransactionRequest_TYPE_ASYNC SubmitTransactionRequest_Type = 1
	// Transaction will be submitted, and blocking until the mempool returns a response.
	SubmitTransactionRequest_TYPE_SYNC SubmitTransactionRequest_Type = 2
	// Transaction will be submitted, and blocking until the network has committed it into a block.
	// Used only for debugging local network, not for submitting transactions.
	SubmitTransactionRequest_TYPE_COMMIT SubmitTransactionRequest_Type = 3
)

func (SubmitTransactionRequest_Type) Descriptor

func (SubmitTransactionRequest_Type) Enum

func (SubmitTransactionRequest_Type) EnumDescriptor deprecated

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

Deprecated: Use SubmitTransactionRequest_Type.Descriptor instead.

func (SubmitTransactionRequest_Type) Number

func (SubmitTransactionRequest_Type) String

func (SubmitTransactionRequest_Type) Type

type SubmitTransactionResponse

type SubmitTransactionResponse struct {

	// Whether or not the transaction was validated and submitted to the chain's mempool.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// Hash of the transaction, which can be used to identify the transaction in a node's event stream.
	TxHash string `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	// Error code to indicate the category of failure if the transaction was not successfully submitted.
	Code uint32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"`
	// Further details for why the transaction was not successfully submitted.
	Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// Further details for the underlying consensus layer of the result of the transaction.
	Log string `protobuf:"bytes,5,opt,name=log,proto3" json:"log,omitempty"`
	// Unused.
	Height int64 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

Response for submitting a transaction on the network.

func (*SubmitTransactionResponse) Descriptor deprecated

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

Deprecated: Use SubmitTransactionResponse.ProtoReflect.Descriptor instead.

func (*SubmitTransactionResponse) GetCode

func (x *SubmitTransactionResponse) GetCode() uint32

func (*SubmitTransactionResponse) GetData

func (x *SubmitTransactionResponse) GetData() string

func (*SubmitTransactionResponse) GetHeight

func (x *SubmitTransactionResponse) GetHeight() int64

func (*SubmitTransactionResponse) GetLog

func (x *SubmitTransactionResponse) GetLog() string

func (*SubmitTransactionResponse) GetSuccess

func (x *SubmitTransactionResponse) GetSuccess() bool

func (*SubmitTransactionResponse) GetTxHash

func (x *SubmitTransactionResponse) GetTxHash() string

func (*SubmitTransactionResponse) ProtoMessage

func (*SubmitTransactionResponse) ProtoMessage()

func (*SubmitTransactionResponse) ProtoReflect

func (*SubmitTransactionResponse) Reset

func (x *SubmitTransactionResponse) Reset()

func (*SubmitTransactionResponse) String

func (x *SubmitTransactionResponse) String() string

type UnimplementedCoreServiceServer

type UnimplementedCoreServiceServer struct {
}

UnimplementedCoreServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCoreServiceServer) CheckTransaction

func (UnimplementedCoreServiceServer) GetSpamStatistics added in v0.67.0

func (UnimplementedCoreServiceServer) GetVegaTime

func (UnimplementedCoreServiceServer) LastBlockHeight

func (UnimplementedCoreServiceServer) ObserveEventBus

func (UnimplementedCoreServiceServer) Statistics

func (UnimplementedCoreServiceServer) SubmitTransaction

type UnimplementedCoreStateServiceServer

type UnimplementedCoreStateServiceServer struct {
}

UnimplementedCoreStateServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCoreStateServiceServer) ListAccounts

func (UnimplementedCoreStateServiceServer) ListAssets

func (UnimplementedCoreStateServiceServer) ListDelegations

func (UnimplementedCoreStateServiceServer) ListMarkets

func (UnimplementedCoreStateServiceServer) ListMarketsData

func (UnimplementedCoreStateServiceServer) ListNetworkLimits

func (UnimplementedCoreStateServiceServer) ListParties

func (UnimplementedCoreStateServiceServer) ListPartiesStake

func (UnimplementedCoreStateServiceServer) ListProposals

func (UnimplementedCoreStateServiceServer) ListValidators

func (UnimplementedCoreStateServiceServer) ListVotes

type UnsafeCoreServiceServer

type UnsafeCoreServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCoreServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CoreServiceServer will result in compilation errors.

type UnsafeCoreStateServiceServer

type UnsafeCoreStateServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCoreStateServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CoreStateServiceServer will result in compilation errors.

type VoteSpamStatistic added in v0.67.0

type VoteSpamStatistic struct {

	// Unique ID of the proposal being voted on by the party.
	Proposal string `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// Current vote count received from the party for the given proposal during this epoch
	CountForEpoch uint64 `protobuf:"varint,2,opt,name=count_for_epoch,json=countForEpoch,proto3" json:"count_for_epoch,omitempty"`
	// Effective minimum number of tokens required to vote on the proposal
	MinTokensRequired string `protobuf:"bytes,3,opt,name=min_tokens_required,json=minTokensRequired,proto3" json:"min_tokens_required,omitempty"`
	// contains filtered or unexported fields
}

Vote statistics for the voting spam policies which are calculated as a ratio of the total votes that have been rejected.

func (*VoteSpamStatistic) Descriptor deprecated added in v0.67.0

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

Deprecated: Use VoteSpamStatistic.ProtoReflect.Descriptor instead.

func (*VoteSpamStatistic) GetCountForEpoch added in v0.67.0

func (x *VoteSpamStatistic) GetCountForEpoch() uint64

func (*VoteSpamStatistic) GetMinTokensRequired added in v0.67.0

func (x *VoteSpamStatistic) GetMinTokensRequired() string

func (*VoteSpamStatistic) GetProposal added in v0.67.0

func (x *VoteSpamStatistic) GetProposal() string

func (*VoteSpamStatistic) ProtoMessage added in v0.67.0

func (*VoteSpamStatistic) ProtoMessage()

func (*VoteSpamStatistic) ProtoReflect added in v0.67.0

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

func (*VoteSpamStatistic) Reset added in v0.67.0

func (x *VoteSpamStatistic) Reset()

func (*VoteSpamStatistic) String added in v0.67.0

func (x *VoteSpamStatistic) String() string

type VoteSpamStatistics added in v0.67.0

type VoteSpamStatistics struct {

	// List of statistics for proposals voted on by the party
	Statistics []*VoteSpamStatistic `protobuf:"bytes,1,rep,name=statistics,proto3" json:"statistics,omitempty"`
	// Maximum number of votes per proposal allowed in an epoch
	MaxForEpoch uint64 `protobuf:"varint,2,opt,name=max_for_epoch,json=maxForEpoch,proto3" json:"max_for_epoch,omitempty"`
	// If blocked the timestamp when the party will be unblocked as RFC3339Nano
	BannedUntil *string `protobuf:"bytes,3,opt,name=banned_until,json=bannedUntil,proto3,oneof" json:"banned_until,omitempty"`
	// contains filtered or unexported fields
}

Voting statistics by proposal for a given party for the current epoch

func (*VoteSpamStatistics) Descriptor deprecated added in v0.67.0

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

Deprecated: Use VoteSpamStatistics.ProtoReflect.Descriptor instead.

func (*VoteSpamStatistics) GetBannedUntil added in v0.67.0

func (x *VoteSpamStatistics) GetBannedUntil() string

func (*VoteSpamStatistics) GetMaxForEpoch added in v0.67.0

func (x *VoteSpamStatistics) GetMaxForEpoch() uint64

func (*VoteSpamStatistics) GetStatistics added in v0.67.0

func (x *VoteSpamStatistics) GetStatistics() []*VoteSpamStatistic

func (*VoteSpamStatistics) ProtoMessage added in v0.67.0

func (*VoteSpamStatistics) ProtoMessage()

func (*VoteSpamStatistics) ProtoReflect added in v0.67.0

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

func (*VoteSpamStatistics) Reset added in v0.67.0

func (x *VoteSpamStatistics) Reset()

func (*VoteSpamStatistics) String added in v0.67.0

func (x *VoteSpamStatistics) String() string

Jump to

Keyboard shortcuts

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