gateway

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_Params_FullMethodName      = "/poktroll.gateway.Query/Params"
	Query_Gateway_FullMethodName     = "/poktroll.gateway.Query/Gateway"
	Query_AllGateways_FullMethodName = "/poktroll.gateway.Query/AllGateways"
)
View Source
const (
	Msg_UpdateParams_FullMethodName   = "/poktroll.gateway.Msg/UpdateParams"
	Msg_StakeGateway_FullMethodName   = "/poktroll.gateway.Msg/StakeGateway"
	Msg_UnstakeGateway_FullMethodName = "/poktroll.gateway.Msg/UnstakeGateway"
)

Variables

View Source
var File_poktroll_gateway_event_proto protoreflect.FileDescriptor
View Source
var File_poktroll_gateway_gateway_proto protoreflect.FileDescriptor
View Source
var File_poktroll_gateway_genesis_proto protoreflect.FileDescriptor
View Source
var File_poktroll_gateway_params_proto protoreflect.FileDescriptor
View Source
var File_poktroll_gateway_query_proto protoreflect.FileDescriptor
View Source
var File_poktroll_gateway_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "poktroll.gateway.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "StakeGateway",
			Handler:    _Msg_StakeGateway_Handler,
		},
		{
			MethodName: "UnstakeGateway",
			Handler:    _Msg_UnstakeGateway_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "poktroll/gateway/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg 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 Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "poktroll.gateway.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Gateway",
			Handler:    _Query_Gateway_Handler,
		},
		{
			MethodName: "AllGateways",
			Handler:    _Query_AllGateways_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "poktroll/gateway/query.proto",
}

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

Functions

func RegisterMsgServer added in v0.0.3

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer added in v0.0.3

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type EventGatewayUnstaked added in v0.0.4

type EventGatewayUnstaked struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the gateway the application has changed their delegation of.
	// contains filtered or unexported fields
}

GatewayStaked defines the event emitted when a gateway has been unstaked.

func (*EventGatewayUnstaked) Descriptor deprecated added in v0.0.4

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

Deprecated: Use EventGatewayUnstaked.ProtoReflect.Descriptor instead.

func (*EventGatewayUnstaked) GetAddress added in v0.0.4

func (x *EventGatewayUnstaked) GetAddress() string

func (*EventGatewayUnstaked) ProtoMessage added in v0.0.4

func (*EventGatewayUnstaked) ProtoMessage()

func (*EventGatewayUnstaked) ProtoReflect added in v0.0.4

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

func (*EventGatewayUnstaked) Reset added in v0.0.4

func (x *EventGatewayUnstaked) Reset()

func (*EventGatewayUnstaked) String added in v0.0.4

func (x *EventGatewayUnstaked) String() string

type Gateway

type Gateway struct {
	Address string        `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the gateway
	Stake   *v1beta1.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"`     // The total amount of uPOKT the gateway has staked
	// contains filtered or unexported fields
}

func (*Gateway) Descriptor deprecated

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

Deprecated: Use Gateway.ProtoReflect.Descriptor instead.

func (*Gateway) GetAddress

func (x *Gateway) GetAddress() string

func (*Gateway) GetStake

func (x *Gateway) GetStake() *v1beta1.Coin

func (*Gateway) ProtoMessage

func (*Gateway) ProtoMessage()

func (*Gateway) ProtoReflect

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

func (*Gateway) Reset

func (x *Gateway) Reset()

func (*Gateway) String

func (x *Gateway) String() string

type GenesisState

type GenesisState struct {

	// params defines all the parameters of the module.
	Params      *Params    `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	GatewayList []*Gateway `protobuf:"bytes,2,rep,name=gateway_list,json=gatewayList,proto3" json:"gateway_list,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the gateway module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetGatewayList

func (x *GenesisState) GetGatewayList() []*Gateway

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

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

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgClient added in v0.0.3

type MsgClient interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	StakeGateway(ctx context.Context, in *MsgStakeGateway, opts ...grpc.CallOption) (*MsgStakeGatewayResponse, error)
	UnstakeGateway(ctx context.Context, in *MsgUnstakeGateway, opts ...grpc.CallOption) (*MsgUnstakeGatewayResponse, error)
}

MsgClient is the client API for Msg 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.

Msg defines the Msg service.

func NewMsgClient added in v0.0.3

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer added in v0.0.3

type MsgServer interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	StakeGateway(context.Context, *MsgStakeGateway) (*MsgStakeGatewayResponse, error)
	UnstakeGateway(context.Context, *MsgUnstakeGateway) (*MsgUnstakeGatewayResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

Msg defines the Msg service.

type MsgStakeGateway

type MsgStakeGateway struct {
	Address string        `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the gateway
	Stake   *v1beta1.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"`     // The total amount of uPOKT the gateway is staking. Must be ≥ to the current amount that the gateway has staked (if any)
	// contains filtered or unexported fields
}

func (*MsgStakeGateway) Descriptor deprecated

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

Deprecated: Use MsgStakeGateway.ProtoReflect.Descriptor instead.

func (*MsgStakeGateway) GetAddress

func (x *MsgStakeGateway) GetAddress() string

func (*MsgStakeGateway) GetStake

func (x *MsgStakeGateway) GetStake() *v1beta1.Coin

func (*MsgStakeGateway) ProtoMessage

func (*MsgStakeGateway) ProtoMessage()

func (*MsgStakeGateway) ProtoReflect

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

func (*MsgStakeGateway) Reset

func (x *MsgStakeGateway) Reset()

func (*MsgStakeGateway) String

func (x *MsgStakeGateway) String() string

type MsgStakeGatewayResponse

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

func (*MsgStakeGatewayResponse) Descriptor deprecated

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

Deprecated: Use MsgStakeGatewayResponse.ProtoReflect.Descriptor instead.

func (*MsgStakeGatewayResponse) ProtoMessage

func (*MsgStakeGatewayResponse) ProtoMessage()

func (*MsgStakeGatewayResponse) ProtoReflect

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

func (*MsgStakeGatewayResponse) Reset

func (x *MsgStakeGatewayResponse) Reset()

func (*MsgStakeGatewayResponse) String

func (x *MsgStakeGatewayResponse) String() string

type MsgUnstakeGateway

type MsgUnstakeGateway struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the gateway
	// contains filtered or unexported fields
}

func (*MsgUnstakeGateway) Descriptor deprecated

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

Deprecated: Use MsgUnstakeGateway.ProtoReflect.Descriptor instead.

func (*MsgUnstakeGateway) GetAddress

func (x *MsgUnstakeGateway) GetAddress() string

func (*MsgUnstakeGateway) ProtoMessage

func (*MsgUnstakeGateway) ProtoMessage()

func (*MsgUnstakeGateway) ProtoReflect

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

func (*MsgUnstakeGateway) Reset

func (x *MsgUnstakeGateway) Reset()

func (*MsgUnstakeGateway) String

func (x *MsgUnstakeGateway) String() string

type MsgUnstakeGatewayResponse

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

func (*MsgUnstakeGatewayResponse) Descriptor deprecated

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

Deprecated: Use MsgUnstakeGatewayResponse.ProtoReflect.Descriptor instead.

func (*MsgUnstakeGatewayResponse) ProtoMessage

func (*MsgUnstakeGatewayResponse) ProtoMessage()

func (*MsgUnstakeGatewayResponse) ProtoReflect

func (*MsgUnstakeGatewayResponse) Reset

func (x *MsgUnstakeGatewayResponse) Reset()

func (*MsgUnstakeGatewayResponse) String

func (x *MsgUnstakeGatewayResponse) String() string

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/gateway parameters to update.
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

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

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

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

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

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

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Params

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

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type QueryAllGatewaysRequest

type QueryAllGatewaysRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAllGatewaysRequest) Descriptor deprecated

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

Deprecated: Use QueryAllGatewaysRequest.ProtoReflect.Descriptor instead.

func (*QueryAllGatewaysRequest) GetPagination

func (x *QueryAllGatewaysRequest) GetPagination() *v1beta1.PageRequest

func (*QueryAllGatewaysRequest) ProtoMessage

func (*QueryAllGatewaysRequest) ProtoMessage()

func (*QueryAllGatewaysRequest) ProtoReflect

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

func (*QueryAllGatewaysRequest) Reset

func (x *QueryAllGatewaysRequest) Reset()

func (*QueryAllGatewaysRequest) String

func (x *QueryAllGatewaysRequest) String() string

type QueryAllGatewaysResponse

type QueryAllGatewaysResponse struct {
	Gateways   []*Gateway            `protobuf:"bytes,1,rep,name=gateways,proto3" json:"gateways,omitempty"`
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAllGatewaysResponse) Descriptor deprecated

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

Deprecated: Use QueryAllGatewaysResponse.ProtoReflect.Descriptor instead.

func (*QueryAllGatewaysResponse) GetGateways

func (x *QueryAllGatewaysResponse) GetGateways() []*Gateway

func (*QueryAllGatewaysResponse) GetPagination

func (x *QueryAllGatewaysResponse) GetPagination() *v1beta1.PageResponse

func (*QueryAllGatewaysResponse) ProtoMessage

func (*QueryAllGatewaysResponse) ProtoMessage()

func (*QueryAllGatewaysResponse) ProtoReflect

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

func (*QueryAllGatewaysResponse) Reset

func (x *QueryAllGatewaysResponse) Reset()

func (*QueryAllGatewaysResponse) String

func (x *QueryAllGatewaysResponse) String() string

type QueryClient added in v0.0.3

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of Gateway items.
	Gateway(ctx context.Context, in *QueryGetGatewayRequest, opts ...grpc.CallOption) (*QueryGetGatewayResponse, error)
	AllGateways(ctx context.Context, in *QueryAllGatewaysRequest, opts ...grpc.CallOption) (*QueryAllGatewaysResponse, error)
}

QueryClient is the client API for Query 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.

Query defines the gRPC querier service.

func NewQueryClient added in v0.0.3

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryGetGatewayRequest

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

func (*QueryGetGatewayRequest) Descriptor deprecated

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

Deprecated: Use QueryGetGatewayRequest.ProtoReflect.Descriptor instead.

func (*QueryGetGatewayRequest) GetAddress

func (x *QueryGetGatewayRequest) GetAddress() string

func (*QueryGetGatewayRequest) ProtoMessage

func (*QueryGetGatewayRequest) ProtoMessage()

func (*QueryGetGatewayRequest) ProtoReflect

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

func (*QueryGetGatewayRequest) Reset

func (x *QueryGetGatewayRequest) Reset()

func (*QueryGetGatewayRequest) String

func (x *QueryGetGatewayRequest) String() string

type QueryGetGatewayResponse

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

func (*QueryGetGatewayResponse) Descriptor deprecated

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

Deprecated: Use QueryGetGatewayResponse.ProtoReflect.Descriptor instead.

func (*QueryGetGatewayResponse) GetGateway

func (x *QueryGetGatewayResponse) GetGateway() *Gateway

func (*QueryGetGatewayResponse) ProtoMessage

func (*QueryGetGatewayResponse) ProtoMessage()

func (*QueryGetGatewayResponse) ProtoReflect

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

func (*QueryGetGatewayResponse) Reset

func (x *QueryGetGatewayResponse) Reset()

func (*QueryGetGatewayResponse) String

func (x *QueryGetGatewayResponse) String() string

type QueryParamsRequest

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

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

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

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

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

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryServer added in v0.0.3

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Gateway items.
	Gateway(context.Context, *QueryGetGatewayRequest) (*QueryGetGatewayResponse, error)
	AllGateways(context.Context, *QueryAllGatewaysRequest) (*QueryAllGatewaysResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

Query defines the gRPC querier service.

type UnimplementedMsgServer added in v0.0.3

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) StakeGateway added in v0.0.3

func (UnimplementedMsgServer) UnstakeGateway added in v0.0.3

func (UnimplementedMsgServer) UpdateParams added in v0.0.3

type UnimplementedQueryServer added in v0.0.3

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) AllGateways added in v0.0.3

func (UnimplementedQueryServer) Gateway added in v0.0.3

func (UnimplementedQueryServer) Params added in v0.0.3

type UnsafeMsgServer added in v0.0.3

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

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

type UnsafeQueryServer added in v0.0.3

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

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

Directories

Path Synopsis
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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