types

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "gateway"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_gateway"
)
View Source
const (
	// GatewayKeyPrefix is the prefix to retrieve all Gateways
	GatewayKeyPrefix = "Gateway/address/"
)

Variables

View Source
var (
	ErrGatewayInvalidSigner  = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message")
	ErrGatewayInvalidAddress = sdkerrors.Register(ModuleName, 1101, "invalid gateway address")
	ErrGatewayInvalidStake   = sdkerrors.Register(ModuleName, 1102, "invalid gateway stake")
	ErrGatewayUnauthorized   = sdkerrors.Register(ModuleName, 1103, "unauthorized signer")
	ErrGatewayNotFound       = sdkerrors.Register(ModuleName, 1104, "gateway not found")
	ErrGatewayParamInvalid   = sdkerrors.Register(ModuleName, 1105, "the provided param is invalid")
	ErrGatewayEmitEvent      = sdkerrors.Register(ModuleName, 1106, "unable to emit on-chain event")
)

x/gateway module sentinel errors

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (

	// TODO_MAINNET: Determine a sensible default value for the min stake amount.
	KeyMinStake     = []byte("MinStake")
	ParamMinStake   = "min_stake"
	DefaultMinStake = cosmostypes.NewInt64Coin(volatile.DenomuPOKT, 100)
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ParamsKey = []byte("p_gateway")

Functions

func GatewayKey

func GatewayKey(gatewayAddr string) []byte

GatewayKey returns the store key to retrieve a Gateway from the index fields

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer added in v0.0.3

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.0.3

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

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

func RegisterQueryHandlerClient added in v0.0.3

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

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

func RegisterQueryHandlerFromEndpoint added in v0.0.3

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

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

func RegisterQueryHandlerServer added in v0.0.3

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer 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 RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer added in v0.0.3

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateMinStake added in v0.0.10

func ValidateMinStake(minStakeAny any) error

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation

}

AccountKeeper defines the expected interface for the Account module.

type BankKeeper

type BankKeeper interface {
	// We use the bankkeeper SendXXX instead of DelegateXX methods
	// because their purpose is to "escrow" funds on behalf of an account rather
	// than "delegate" funds from one account to another which is more closely
	// linked to staking.
	SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface for the Bank module.

type EventGatewayStaked added in v0.0.10

type EventGatewayStaked struct {
	// The gateway that has been staked.
	Gateway *Gateway `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway"`
	// The end height of the session in which gateway was staked.
	SessionEndHeight int64 `protobuf:"varint,2,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
}

GatewayStaked is emitted when a gateway is staked or up-staked.

func (*EventGatewayStaked) Descriptor added in v0.0.10

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

func (*EventGatewayStaked) GetGateway added in v0.0.10

func (m *EventGatewayStaked) GetGateway() *Gateway

func (*EventGatewayStaked) GetSessionEndHeight added in v0.0.10

func (m *EventGatewayStaked) GetSessionEndHeight() int64

func (*EventGatewayStaked) Marshal added in v0.0.10

func (m *EventGatewayStaked) Marshal() (dAtA []byte, err error)

func (*EventGatewayStaked) MarshalTo added in v0.0.10

func (m *EventGatewayStaked) MarshalTo(dAtA []byte) (int, error)

func (*EventGatewayStaked) MarshalToSizedBuffer added in v0.0.10

func (m *EventGatewayStaked) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventGatewayStaked) ProtoMessage added in v0.0.10

func (*EventGatewayStaked) ProtoMessage()

func (*EventGatewayStaked) Reset added in v0.0.10

func (m *EventGatewayStaked) Reset()

func (*EventGatewayStaked) Size added in v0.0.10

func (m *EventGatewayStaked) Size() (n int)

func (*EventGatewayStaked) String added in v0.0.10

func (m *EventGatewayStaked) String() string

func (*EventGatewayStaked) Unmarshal added in v0.0.10

func (m *EventGatewayStaked) Unmarshal(dAtA []byte) error

func (*EventGatewayStaked) XXX_DiscardUnknown added in v0.0.10

func (m *EventGatewayStaked) XXX_DiscardUnknown()

func (*EventGatewayStaked) XXX_Marshal added in v0.0.10

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

func (*EventGatewayStaked) XXX_Merge added in v0.0.10

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

func (*EventGatewayStaked) XXX_Size added in v0.0.10

func (m *EventGatewayStaked) XXX_Size() int

func (*EventGatewayStaked) XXX_Unmarshal added in v0.0.10

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

type EventGatewayUnstaked added in v0.0.4

type EventGatewayUnstaked struct {
	// The gateway that has been unstaked.
	Gateway *Gateway `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway"`
	// The end height of the session in which gateway was unstaked.
	SessionEndHeight int64 `protobuf:"varint,2,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height"`
}

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

func (*EventGatewayUnstaked) Descriptor added in v0.0.4

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

func (*EventGatewayUnstaked) GetGateway added in v0.0.10

func (m *EventGatewayUnstaked) GetGateway() *Gateway

func (*EventGatewayUnstaked) GetSessionEndHeight added in v0.0.10

func (m *EventGatewayUnstaked) GetSessionEndHeight() int64

func (*EventGatewayUnstaked) Marshal added in v0.0.4

func (m *EventGatewayUnstaked) Marshal() (dAtA []byte, err error)

func (*EventGatewayUnstaked) MarshalTo added in v0.0.4

func (m *EventGatewayUnstaked) MarshalTo(dAtA []byte) (int, error)

func (*EventGatewayUnstaked) MarshalToSizedBuffer added in v0.0.4

func (m *EventGatewayUnstaked) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventGatewayUnstaked) ProtoMessage added in v0.0.4

func (*EventGatewayUnstaked) ProtoMessage()

func (*EventGatewayUnstaked) Reset added in v0.0.4

func (m *EventGatewayUnstaked) Reset()

func (*EventGatewayUnstaked) Size added in v0.0.4

func (m *EventGatewayUnstaked) Size() (n int)

func (*EventGatewayUnstaked) String added in v0.0.4

func (m *EventGatewayUnstaked) String() string

func (*EventGatewayUnstaked) Unmarshal added in v0.0.4

func (m *EventGatewayUnstaked) Unmarshal(dAtA []byte) error

func (*EventGatewayUnstaked) XXX_DiscardUnknown added in v0.0.4

func (m *EventGatewayUnstaked) XXX_DiscardUnknown()

func (*EventGatewayUnstaked) XXX_Marshal added in v0.0.4

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

func (*EventGatewayUnstaked) XXX_Merge added in v0.0.4

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

func (*EventGatewayUnstaked) XXX_Size added in v0.0.4

func (m *EventGatewayUnstaked) XXX_Size() int

func (*EventGatewayUnstaked) XXX_Unmarshal added in v0.0.4

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

type Gateway added in v0.0.3

type Gateway struct {
	Address string      `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Stake   *types.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"`
}

func (*Gateway) Descriptor added in v0.0.3

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

func (*Gateway) GetAddress added in v0.0.3

func (m *Gateway) GetAddress() string

func (*Gateway) GetStake added in v0.0.3

func (m *Gateway) GetStake() *types.Coin

func (*Gateway) Marshal added in v0.0.3

func (m *Gateway) Marshal() (dAtA []byte, err error)

func (*Gateway) MarshalTo added in v0.0.3

func (m *Gateway) MarshalTo(dAtA []byte) (int, error)

func (*Gateway) MarshalToSizedBuffer added in v0.0.3

func (m *Gateway) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Gateway) ProtoMessage added in v0.0.3

func (*Gateway) ProtoMessage()

func (*Gateway) Reset added in v0.0.3

func (m *Gateway) Reset()

func (*Gateway) Size added in v0.0.3

func (m *Gateway) Size() (n int)

func (*Gateway) String added in v0.0.3

func (m *Gateway) String() string

func (*Gateway) Unmarshal added in v0.0.3

func (m *Gateway) Unmarshal(dAtA []byte) error

func (*Gateway) XXX_DiscardUnknown added in v0.0.3

func (m *Gateway) XXX_DiscardUnknown()

func (*Gateway) XXX_Marshal added in v0.0.3

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

func (*Gateway) XXX_Merge added in v0.0.3

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

func (*Gateway) XXX_Size added in v0.0.3

func (m *Gateway) XXX_Size() int

func (*Gateway) XXX_Unmarshal added in v0.0.3

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

type GenesisState added in v0.0.3

type GenesisState struct {
	// params defines all the parameters of the module.
	Params      Params    `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	GatewayList []Gateway `protobuf:"bytes,2,rep,name=gateway_list,json=gatewayList,proto3" json:"gateway_list"`
}

GenesisState defines the gateway module's genesis state.

func DefaultGenesis added in v0.0.3

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor added in v0.0.3

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

func (*GenesisState) GetGatewayList added in v0.0.3

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

func (*GenesisState) GetParams added in v0.0.3

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal added in v0.0.3

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo added in v0.0.3

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer added in v0.0.3

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage added in v0.0.3

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.0.3

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.0.3

func (m *GenesisState) Size() (n int)

func (*GenesisState) String added in v0.0.3

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.0.3

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate added in v0.0.3

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown added in v0.0.3

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.0.3

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

func (*GenesisState) XXX_Merge added in v0.0.3

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

func (*GenesisState) XXX_Size added in v0.0.3

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.0.3

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

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)
	UpdateParam(ctx context.Context, in *MsgUpdateParam, opts ...grpc.CallOption) (*MsgUpdateParamResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient added in v0.0.3

func NewMsgClient(cc grpc1.ClientConn) 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)
	UpdateParam(context.Context, *MsgUpdateParam) (*MsgUpdateParamResponse, error)
}

MsgServer is the server API for Msg service.

type MsgStakeGateway added in v0.0.3

type MsgStakeGateway struct {
	Address string      `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Stake   *types.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"`
}

func NewMsgStakeGateway added in v0.0.3

func NewMsgStakeGateway(address string, stake sdk.Coin) *MsgStakeGateway

func (*MsgStakeGateway) Descriptor added in v0.0.3

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

func (*MsgStakeGateway) GetAddress added in v0.0.3

func (m *MsgStakeGateway) GetAddress() string

func (*MsgStakeGateway) GetStake added in v0.0.3

func (m *MsgStakeGateway) GetStake() *types.Coin

func (*MsgStakeGateway) Marshal added in v0.0.3

func (m *MsgStakeGateway) Marshal() (dAtA []byte, err error)

func (*MsgStakeGateway) MarshalTo added in v0.0.3

func (m *MsgStakeGateway) MarshalTo(dAtA []byte) (int, error)

func (*MsgStakeGateway) MarshalToSizedBuffer added in v0.0.3

func (m *MsgStakeGateway) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgStakeGateway) ProtoMessage added in v0.0.3

func (*MsgStakeGateway) ProtoMessage()

func (*MsgStakeGateway) Reset added in v0.0.3

func (m *MsgStakeGateway) Reset()

func (*MsgStakeGateway) Size added in v0.0.3

func (m *MsgStakeGateway) Size() (n int)

func (*MsgStakeGateway) String added in v0.0.3

func (m *MsgStakeGateway) String() string

func (*MsgStakeGateway) Unmarshal added in v0.0.3

func (m *MsgStakeGateway) Unmarshal(dAtA []byte) error

func (*MsgStakeGateway) ValidateBasic added in v0.0.3

func (msg *MsgStakeGateway) ValidateBasic() error

func (*MsgStakeGateway) XXX_DiscardUnknown added in v0.0.3

func (m *MsgStakeGateway) XXX_DiscardUnknown()

func (*MsgStakeGateway) XXX_Marshal added in v0.0.3

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

func (*MsgStakeGateway) XXX_Merge added in v0.0.3

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

func (*MsgStakeGateway) XXX_Size added in v0.0.3

func (m *MsgStakeGateway) XXX_Size() int

func (*MsgStakeGateway) XXX_Unmarshal added in v0.0.3

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

type MsgStakeGatewayResponse added in v0.0.3

type MsgStakeGatewayResponse struct {
	Gateway *Gateway `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway,omitempty"`
}

func (*MsgStakeGatewayResponse) Descriptor added in v0.0.3

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

func (*MsgStakeGatewayResponse) GetGateway added in v0.0.10

func (m *MsgStakeGatewayResponse) GetGateway() *Gateway

func (*MsgStakeGatewayResponse) Marshal added in v0.0.3

func (m *MsgStakeGatewayResponse) Marshal() (dAtA []byte, err error)

func (*MsgStakeGatewayResponse) MarshalTo added in v0.0.3

func (m *MsgStakeGatewayResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgStakeGatewayResponse) MarshalToSizedBuffer added in v0.0.3

func (m *MsgStakeGatewayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgStakeGatewayResponse) ProtoMessage added in v0.0.3

func (*MsgStakeGatewayResponse) ProtoMessage()

func (*MsgStakeGatewayResponse) Reset added in v0.0.3

func (m *MsgStakeGatewayResponse) Reset()

func (*MsgStakeGatewayResponse) Size added in v0.0.3

func (m *MsgStakeGatewayResponse) Size() (n int)

func (*MsgStakeGatewayResponse) String added in v0.0.3

func (m *MsgStakeGatewayResponse) String() string

func (*MsgStakeGatewayResponse) Unmarshal added in v0.0.3

func (m *MsgStakeGatewayResponse) Unmarshal(dAtA []byte) error

func (*MsgStakeGatewayResponse) XXX_DiscardUnknown added in v0.0.3

func (m *MsgStakeGatewayResponse) XXX_DiscardUnknown()

func (*MsgStakeGatewayResponse) XXX_Marshal added in v0.0.3

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

func (*MsgStakeGatewayResponse) XXX_Merge added in v0.0.3

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

func (*MsgStakeGatewayResponse) XXX_Size added in v0.0.3

func (m *MsgStakeGatewayResponse) XXX_Size() int

func (*MsgStakeGatewayResponse) XXX_Unmarshal added in v0.0.3

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

type MsgUnstakeGateway added in v0.0.3

type MsgUnstakeGateway struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func NewMsgUnstakeGateway added in v0.0.3

func NewMsgUnstakeGateway(address string) *MsgUnstakeGateway

func (*MsgUnstakeGateway) Descriptor added in v0.0.3

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

func (*MsgUnstakeGateway) GetAddress added in v0.0.3

func (m *MsgUnstakeGateway) GetAddress() string

func (*MsgUnstakeGateway) Marshal added in v0.0.3

func (m *MsgUnstakeGateway) Marshal() (dAtA []byte, err error)

func (*MsgUnstakeGateway) MarshalTo added in v0.0.3

func (m *MsgUnstakeGateway) MarshalTo(dAtA []byte) (int, error)

func (*MsgUnstakeGateway) MarshalToSizedBuffer added in v0.0.3

func (m *MsgUnstakeGateway) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUnstakeGateway) ProtoMessage added in v0.0.3

func (*MsgUnstakeGateway) ProtoMessage()

func (*MsgUnstakeGateway) Reset added in v0.0.3

func (m *MsgUnstakeGateway) Reset()

func (*MsgUnstakeGateway) Size added in v0.0.3

func (m *MsgUnstakeGateway) Size() (n int)

func (*MsgUnstakeGateway) String added in v0.0.3

func (m *MsgUnstakeGateway) String() string

func (*MsgUnstakeGateway) Unmarshal added in v0.0.3

func (m *MsgUnstakeGateway) Unmarshal(dAtA []byte) error

func (*MsgUnstakeGateway) ValidateBasic added in v0.0.3

func (msg *MsgUnstakeGateway) ValidateBasic() error

func (*MsgUnstakeGateway) XXX_DiscardUnknown added in v0.0.3

func (m *MsgUnstakeGateway) XXX_DiscardUnknown()

func (*MsgUnstakeGateway) XXX_Marshal added in v0.0.3

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

func (*MsgUnstakeGateway) XXX_Merge added in v0.0.3

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

func (*MsgUnstakeGateway) XXX_Size added in v0.0.3

func (m *MsgUnstakeGateway) XXX_Size() int

func (*MsgUnstakeGateway) XXX_Unmarshal added in v0.0.3

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

type MsgUnstakeGatewayResponse added in v0.0.3

type MsgUnstakeGatewayResponse struct {
}

func (*MsgUnstakeGatewayResponse) Descriptor added in v0.0.3

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

func (*MsgUnstakeGatewayResponse) Marshal added in v0.0.3

func (m *MsgUnstakeGatewayResponse) Marshal() (dAtA []byte, err error)

func (*MsgUnstakeGatewayResponse) MarshalTo added in v0.0.3

func (m *MsgUnstakeGatewayResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUnstakeGatewayResponse) MarshalToSizedBuffer added in v0.0.3

func (m *MsgUnstakeGatewayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUnstakeGatewayResponse) ProtoMessage added in v0.0.3

func (*MsgUnstakeGatewayResponse) ProtoMessage()

func (*MsgUnstakeGatewayResponse) Reset added in v0.0.3

func (m *MsgUnstakeGatewayResponse) Reset()

func (*MsgUnstakeGatewayResponse) Size added in v0.0.3

func (m *MsgUnstakeGatewayResponse) Size() (n int)

func (*MsgUnstakeGatewayResponse) String added in v0.0.3

func (m *MsgUnstakeGatewayResponse) String() string

func (*MsgUnstakeGatewayResponse) Unmarshal added in v0.0.3

func (m *MsgUnstakeGatewayResponse) Unmarshal(dAtA []byte) error

func (*MsgUnstakeGatewayResponse) XXX_DiscardUnknown added in v0.0.3

func (m *MsgUnstakeGatewayResponse) XXX_DiscardUnknown()

func (*MsgUnstakeGatewayResponse) XXX_Marshal added in v0.0.3

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

func (*MsgUnstakeGatewayResponse) XXX_Merge added in v0.0.3

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

func (*MsgUnstakeGatewayResponse) XXX_Size added in v0.0.3

func (m *MsgUnstakeGatewayResponse) XXX_Size() int

func (*MsgUnstakeGatewayResponse) XXX_Unmarshal added in v0.0.3

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

type MsgUpdateParam added in v0.0.10

type MsgUpdateParam 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"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are valid to be assigned to AsType:
	//
	//	*MsgUpdateParam_AsCoin
	AsType isMsgUpdateParam_AsType `protobuf_oneof:"as_type"`
}

MsgUpdateParam is the Msg/UpdateParam request type to update a single param.

func NewMsgUpdateParam added in v0.0.10

func NewMsgUpdateParam(authority string, name string, asType any) *MsgUpdateParam

func (*MsgUpdateParam) Descriptor added in v0.0.10

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

func (*MsgUpdateParam) GetAsCoin added in v0.0.10

func (m *MsgUpdateParam) GetAsCoin() *types.Coin

func (*MsgUpdateParam) GetAsType added in v0.0.10

func (m *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType

func (*MsgUpdateParam) GetAuthority added in v0.0.10

func (m *MsgUpdateParam) GetAuthority() string

func (*MsgUpdateParam) GetName added in v0.0.10

func (m *MsgUpdateParam) GetName() string

func (*MsgUpdateParam) Marshal added in v0.0.10

func (m *MsgUpdateParam) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParam) MarshalTo added in v0.0.10

func (m *MsgUpdateParam) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParam) MarshalToSizedBuffer added in v0.0.10

func (m *MsgUpdateParam) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParam) ProtoMessage added in v0.0.10

func (*MsgUpdateParam) ProtoMessage()

func (*MsgUpdateParam) Reset added in v0.0.10

func (m *MsgUpdateParam) Reset()

func (*MsgUpdateParam) Size added in v0.0.10

func (m *MsgUpdateParam) Size() (n int)

func (*MsgUpdateParam) String added in v0.0.10

func (m *MsgUpdateParam) String() string

func (*MsgUpdateParam) Unmarshal added in v0.0.10

func (m *MsgUpdateParam) Unmarshal(dAtA []byte) error

func (*MsgUpdateParam) ValidateBasic added in v0.0.10

func (msg *MsgUpdateParam) ValidateBasic() error

func (*MsgUpdateParam) XXX_DiscardUnknown added in v0.0.10

func (m *MsgUpdateParam) XXX_DiscardUnknown()

func (*MsgUpdateParam) XXX_Marshal added in v0.0.10

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

func (*MsgUpdateParam) XXX_Merge added in v0.0.10

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

func (*MsgUpdateParam) XXX_OneofWrappers added in v0.0.10

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

XXX_OneofWrappers is for the internal use of the proto package.

func (*MsgUpdateParam) XXX_Size added in v0.0.10

func (m *MsgUpdateParam) XXX_Size() int

func (*MsgUpdateParam) XXX_Unmarshal added in v0.0.10

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

type MsgUpdateParamResponse added in v0.0.10

type MsgUpdateParamResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

func (*MsgUpdateParamResponse) Descriptor added in v0.0.10

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

func (*MsgUpdateParamResponse) GetParams added in v0.0.10

func (m *MsgUpdateParamResponse) GetParams() *Params

func (*MsgUpdateParamResponse) Marshal added in v0.0.10

func (m *MsgUpdateParamResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamResponse) MarshalTo added in v0.0.10

func (m *MsgUpdateParamResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamResponse) MarshalToSizedBuffer added in v0.0.10

func (m *MsgUpdateParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamResponse) ProtoMessage added in v0.0.10

func (*MsgUpdateParamResponse) ProtoMessage()

func (*MsgUpdateParamResponse) Reset added in v0.0.10

func (m *MsgUpdateParamResponse) Reset()

func (*MsgUpdateParamResponse) Size added in v0.0.10

func (m *MsgUpdateParamResponse) Size() (n int)

func (*MsgUpdateParamResponse) String added in v0.0.10

func (m *MsgUpdateParamResponse) String() string

func (*MsgUpdateParamResponse) Unmarshal added in v0.0.10

func (m *MsgUpdateParamResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamResponse) XXX_DiscardUnknown added in v0.0.10

func (m *MsgUpdateParamResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamResponse) XXX_Marshal added in v0.0.10

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

func (*MsgUpdateParamResponse) XXX_Merge added in v0.0.10

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

func (*MsgUpdateParamResponse) XXX_Size added in v0.0.10

func (m *MsgUpdateParamResponse) XXX_Size() int

func (*MsgUpdateParamResponse) XXX_Unmarshal added in v0.0.10

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

type MsgUpdateParam_AsCoin added in v0.0.10

type MsgUpdateParam_AsCoin struct {
	AsCoin *types.Coin `protobuf:"bytes,3,opt,name=as_coin,json=asCoin,proto3,oneof" json:"as_coin"`
}

func (*MsgUpdateParam_AsCoin) MarshalTo added in v0.0.10

func (m *MsgUpdateParam_AsCoin) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParam_AsCoin) MarshalToSizedBuffer added in v0.0.10

func (m *MsgUpdateParam_AsCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParam_AsCoin) Size added in v0.0.10

func (m *MsgUpdateParam_AsCoin) Size() (n int)

type MsgUpdateParams added in v0.0.3

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"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor added in v0.0.3

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

func (*MsgUpdateParams) GetAuthority added in v0.0.3

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v0.0.3

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal added in v0.0.3

func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParams) MarshalTo added in v0.0.3

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParams) MarshalToSizedBuffer added in v0.0.3

func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParams) ProtoMessage added in v0.0.3

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v0.0.3

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v0.0.3

func (m *MsgUpdateParams) Size() (n int)

func (*MsgUpdateParams) String added in v0.0.3

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v0.0.3

func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error

func (*MsgUpdateParams) ValidateBasic added in v0.0.3

func (m *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown added in v0.0.3

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v0.0.3

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

func (*MsgUpdateParams) XXX_Merge added in v0.0.3

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

func (*MsgUpdateParams) XXX_Size added in v0.0.3

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v0.0.3

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

type MsgUpdateParamsResponse added in v0.0.3

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor added in v0.0.3

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

func (*MsgUpdateParamsResponse) Marshal added in v0.0.3

func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateParamsResponse) MarshalTo added in v0.0.3

func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v0.0.3

func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateParamsResponse) ProtoMessage added in v0.0.3

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v0.0.3

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v0.0.3

func (m *MsgUpdateParamsResponse) Size() (n int)

func (*MsgUpdateParamsResponse) String added in v0.0.3

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v0.0.3

func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v0.0.3

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v0.0.3

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v0.0.3

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

func (*MsgUpdateParamsResponse) XXX_Size added in v0.0.3

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v0.0.3

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

type Params added in v0.0.3

type Params struct {
	// min_stake is the minimum amount of uPOKT that a gateway must stake.
	MinStake *types.Coin `protobuf:"bytes,1,opt,name=min_stake,json=minStake,proto3" json:"min_stake"`
}

Params defines the parameters for the module.

func DefaultParams added in v0.0.3

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams added in v0.0.3

func NewParams(minStake *cosmostypes.Coin) Params

NewParams creates a new Params instance

func (*Params) Descriptor added in v0.0.3

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

func (*Params) Equal added in v0.0.3

func (this *Params) Equal(that interface{}) bool

func (*Params) GetMinStake added in v0.0.10

func (m *Params) GetMinStake() *types.Coin

func (*Params) Marshal added in v0.0.3

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo added in v0.0.3

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer added in v0.0.3

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs added in v0.0.3

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage added in v0.0.3

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.0.3

func (m *Params) Reset()

func (*Params) Size added in v0.0.3

func (m *Params) Size() (n int)

func (*Params) String added in v0.0.3

func (m *Params) String() string

func (*Params) Unmarshal added in v0.0.3

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate added in v0.0.3

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown added in v0.0.3

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.0.3

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

func (*Params) XXX_Merge added in v0.0.3

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

func (*Params) XXX_Size added in v0.0.3

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.0.3

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

type QueryAllGatewaysRequest added in v0.0.3

type QueryAllGatewaysRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllGatewaysRequest) Descriptor added in v0.0.3

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

func (*QueryAllGatewaysRequest) GetPagination added in v0.0.3

func (m *QueryAllGatewaysRequest) GetPagination() *query.PageRequest

func (*QueryAllGatewaysRequest) Marshal added in v0.0.3

func (m *QueryAllGatewaysRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllGatewaysRequest) MarshalTo added in v0.0.3

func (m *QueryAllGatewaysRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllGatewaysRequest) MarshalToSizedBuffer added in v0.0.3

func (m *QueryAllGatewaysRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllGatewaysRequest) ProtoMessage added in v0.0.3

func (*QueryAllGatewaysRequest) ProtoMessage()

func (*QueryAllGatewaysRequest) Reset added in v0.0.3

func (m *QueryAllGatewaysRequest) Reset()

func (*QueryAllGatewaysRequest) Size added in v0.0.3

func (m *QueryAllGatewaysRequest) Size() (n int)

func (*QueryAllGatewaysRequest) String added in v0.0.3

func (m *QueryAllGatewaysRequest) String() string

func (*QueryAllGatewaysRequest) Unmarshal added in v0.0.3

func (m *QueryAllGatewaysRequest) Unmarshal(dAtA []byte) error

func (*QueryAllGatewaysRequest) XXX_DiscardUnknown added in v0.0.3

func (m *QueryAllGatewaysRequest) XXX_DiscardUnknown()

func (*QueryAllGatewaysRequest) XXX_Marshal added in v0.0.3

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

func (*QueryAllGatewaysRequest) XXX_Merge added in v0.0.3

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

func (*QueryAllGatewaysRequest) XXX_Size added in v0.0.3

func (m *QueryAllGatewaysRequest) XXX_Size() int

func (*QueryAllGatewaysRequest) XXX_Unmarshal added in v0.0.3

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

type QueryAllGatewaysResponse added in v0.0.3

type QueryAllGatewaysResponse struct {
	Gateways   []Gateway           `protobuf:"bytes,1,rep,name=gateways,proto3" json:"gateways"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllGatewaysResponse) Descriptor added in v0.0.3

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

func (*QueryAllGatewaysResponse) GetGateways added in v0.0.3

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

func (*QueryAllGatewaysResponse) GetPagination added in v0.0.3

func (m *QueryAllGatewaysResponse) GetPagination() *query.PageResponse

func (*QueryAllGatewaysResponse) Marshal added in v0.0.3

func (m *QueryAllGatewaysResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllGatewaysResponse) MarshalTo added in v0.0.3

func (m *QueryAllGatewaysResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllGatewaysResponse) MarshalToSizedBuffer added in v0.0.3

func (m *QueryAllGatewaysResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllGatewaysResponse) ProtoMessage added in v0.0.3

func (*QueryAllGatewaysResponse) ProtoMessage()

func (*QueryAllGatewaysResponse) Reset added in v0.0.3

func (m *QueryAllGatewaysResponse) Reset()

func (*QueryAllGatewaysResponse) Size added in v0.0.3

func (m *QueryAllGatewaysResponse) Size() (n int)

func (*QueryAllGatewaysResponse) String added in v0.0.3

func (m *QueryAllGatewaysResponse) String() string

func (*QueryAllGatewaysResponse) Unmarshal added in v0.0.3

func (m *QueryAllGatewaysResponse) Unmarshal(dAtA []byte) error

func (*QueryAllGatewaysResponse) XXX_DiscardUnknown added in v0.0.3

func (m *QueryAllGatewaysResponse) XXX_DiscardUnknown()

func (*QueryAllGatewaysResponse) XXX_Marshal added in v0.0.3

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

func (*QueryAllGatewaysResponse) XXX_Merge added in v0.0.3

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

func (*QueryAllGatewaysResponse) XXX_Size added in v0.0.3

func (m *QueryAllGatewaysResponse) XXX_Size() int

func (*QueryAllGatewaysResponse) XXX_Unmarshal added in v0.0.3

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

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient added in v0.0.3

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGetGatewayRequest added in v0.0.3

type QueryGetGatewayRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryGetGatewayRequest) Descriptor added in v0.0.3

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

func (*QueryGetGatewayRequest) GetAddress added in v0.0.3

func (m *QueryGetGatewayRequest) GetAddress() string

func (*QueryGetGatewayRequest) Marshal added in v0.0.3

func (m *QueryGetGatewayRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetGatewayRequest) MarshalTo added in v0.0.3

func (m *QueryGetGatewayRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetGatewayRequest) MarshalToSizedBuffer added in v0.0.3

func (m *QueryGetGatewayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetGatewayRequest) ProtoMessage added in v0.0.3

func (*QueryGetGatewayRequest) ProtoMessage()

func (*QueryGetGatewayRequest) Reset added in v0.0.3

func (m *QueryGetGatewayRequest) Reset()

func (*QueryGetGatewayRequest) Size added in v0.0.3

func (m *QueryGetGatewayRequest) Size() (n int)

func (*QueryGetGatewayRequest) String added in v0.0.3

func (m *QueryGetGatewayRequest) String() string

func (*QueryGetGatewayRequest) Unmarshal added in v0.0.3

func (m *QueryGetGatewayRequest) Unmarshal(dAtA []byte) error

func (*QueryGetGatewayRequest) XXX_DiscardUnknown added in v0.0.3

func (m *QueryGetGatewayRequest) XXX_DiscardUnknown()

func (*QueryGetGatewayRequest) XXX_Marshal added in v0.0.3

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

func (*QueryGetGatewayRequest) XXX_Merge added in v0.0.3

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

func (*QueryGetGatewayRequest) XXX_Size added in v0.0.3

func (m *QueryGetGatewayRequest) XXX_Size() int

func (*QueryGetGatewayRequest) XXX_Unmarshal added in v0.0.3

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

type QueryGetGatewayResponse added in v0.0.3

type QueryGetGatewayResponse struct {
	Gateway Gateway `protobuf:"bytes,1,opt,name=gateway,proto3" json:"gateway"`
}

func (*QueryGetGatewayResponse) Descriptor added in v0.0.3

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

func (*QueryGetGatewayResponse) GetGateway added in v0.0.3

func (m *QueryGetGatewayResponse) GetGateway() Gateway

func (*QueryGetGatewayResponse) Marshal added in v0.0.3

func (m *QueryGetGatewayResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetGatewayResponse) MarshalTo added in v0.0.3

func (m *QueryGetGatewayResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetGatewayResponse) MarshalToSizedBuffer added in v0.0.3

func (m *QueryGetGatewayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetGatewayResponse) ProtoMessage added in v0.0.3

func (*QueryGetGatewayResponse) ProtoMessage()

func (*QueryGetGatewayResponse) Reset added in v0.0.3

func (m *QueryGetGatewayResponse) Reset()

func (*QueryGetGatewayResponse) Size added in v0.0.3

func (m *QueryGetGatewayResponse) Size() (n int)

func (*QueryGetGatewayResponse) String added in v0.0.3

func (m *QueryGetGatewayResponse) String() string

func (*QueryGetGatewayResponse) Unmarshal added in v0.0.3

func (m *QueryGetGatewayResponse) Unmarshal(dAtA []byte) error

func (*QueryGetGatewayResponse) XXX_DiscardUnknown added in v0.0.3

func (m *QueryGetGatewayResponse) XXX_DiscardUnknown()

func (*QueryGetGatewayResponse) XXX_Marshal added in v0.0.3

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

func (*QueryGetGatewayResponse) XXX_Merge added in v0.0.3

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

func (*QueryGetGatewayResponse) XXX_Size added in v0.0.3

func (m *QueryGetGatewayResponse) XXX_Size() int

func (*QueryGetGatewayResponse) XXX_Unmarshal added in v0.0.3

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

type QueryParamsRequest added in v0.0.3

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor added in v0.0.3

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

func (*QueryParamsRequest) Marshal added in v0.0.3

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo added in v0.0.3

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.0.3

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage added in v0.0.3

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.0.3

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.0.3

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String added in v0.0.3

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.0.3

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.0.3

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.0.3

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

func (*QueryParamsRequest) XXX_Merge added in v0.0.3

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

func (*QueryParamsRequest) XXX_Size added in v0.0.3

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.0.3

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

type QueryParamsResponse added in v0.0.3

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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

func (*QueryParamsResponse) Descriptor added in v0.0.3

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

func (*QueryParamsResponse) GetParams added in v0.0.3

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal added in v0.0.3

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo added in v0.0.3

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.0.3

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage added in v0.0.3

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.0.3

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.0.3

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String added in v0.0.3

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.0.3

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.0.3

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.0.3

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

func (*QueryParamsResponse) XXX_Merge added in v0.0.3

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

func (*QueryParamsResponse) XXX_Size added in v0.0.3

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.0.3

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

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

QueryServer is the server API for Query service.

type SharedKeeper added in v0.0.10

type SharedKeeper interface {
	GetParams(ctx context.Context) sharedtypes.Params
	GetSessionEndHeight(ctx context.Context, queryHeight int64) int64
}

type UnimplementedMsgServer added in v0.0.3

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can 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) UpdateParam added in v0.0.10

func (*UnimplementedMsgServer) UpdateParams added in v0.0.3

type UnimplementedQueryServer added in v0.0.3

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can 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

Jump to

Keyboard shortcuts

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