types

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: Apache-2.0 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 (
	AttributeKeyCollateral     = "collateral"
	AttributeKeyDenom          = "denom"
	AttributeKeyAccountAddress = "account_address"
	AttributeKeyAmount         = "amount"
	AttributeValueCategory     = ModuleName
)
View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "shield"

	// RouterKey is used to route messages.
	RouterKey = ModuleName

	// StoreKey is the prefix under which we store this module's data.
	StoreKey = ModuleName

	// QuerierRoute is used to handle abci_query requests.
	QuerierRoute = ModuleName

	// DefaultParamspace is the default name for parameter store.
	DefaultParamspace = ModuleName
)
View Source
const (
	TypeMsgWithdrawRewards = "withdraw_rewards"
)

Variables

View Source
var (
	ErrEmptySender      = sdkerrors.Register(ModuleName, errEmptySender, "no sender provided")
	ErrProviderNotFound = sdkerrors.Register(ModuleName, errProviderNotFound, "provider is not found")
)
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 (
	RemainingServiceFeesKey = []byte{0x06}
	ProviderKey             = []byte{0x0C}
	BlockServiceFeesKey     = []byte{0x12}
)
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 (
	ErrInvalidLengthShield        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowShield          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupShield = 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 (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	ParamStoreKeyStakingShieldRate = []byte("stakingshieldrateparams")
)

parameter keys

Functions

func GetBlockServiceFeesKey

func GetBlockServiceFeesKey() []byte

func GetProviderKey

func GetProviderKey(addr sdk.AccAddress) []byte

GetProviderKey gets the key for the delegator's tracker.

func GetRemainingServiceFeesKey

func GetRemainingServiceFeesKey() []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable is the key declaration for parameters.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the x/shield interfaces types with the interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

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

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

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis validates shield genesis data.

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	SetAccount(ctx sdk.Context, acc authtypes.AccountI)
	IterateAccounts(ctx sdk.Context, process func(authtypes.AccountI) (stop bool))
	GetModuleAddress(moduleName string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
}

AccountKeeper defines the expected account keeper.

type BankKeeper

type BankKeeper interface {
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	DelegateCoins(ctx sdk.Context, fromAdd, toAddr sdk.AccAddress, amt sdk.Coins) error
	UndelegateCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error

	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
}

BankKeeper defines the expected bank keeper.

type Fees

type Fees struct {
	Fees github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=fees,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"fees"`
}

Fees proto wrapper for pool.go methods

func (*Fees) Descriptor

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

func (*Fees) Marshal

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

func (*Fees) MarshalTo

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

func (*Fees) MarshalToSizedBuffer

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

func (*Fees) ProtoMessage

func (*Fees) ProtoMessage()

func (*Fees) Reset

func (m *Fees) Reset()

func (*Fees) Size

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

func (*Fees) String

func (m *Fees) String() string

func (*Fees) Unmarshal

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

func (*Fees) XXX_DiscardUnknown

func (m *Fees) XXX_DiscardUnknown()

func (*Fees) XXX_Marshal

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

func (*Fees) XXX_Merge

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

func (*Fees) XXX_Size

func (m *Fees) XXX_Size() int

func (*Fees) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	RemainingServiceFees github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 170-byte string literal not displayed */
	Providers            []Provider                                  `protobuf:"bytes,2,rep,name=providers,proto3" json:"providers" yaml:"providers"`
}

GenesisState defines the shield genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default genesis state.

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState

GetGenesisStateFromAppState returns GenesisState given raw application genesis state.

func NewGenesisState

func NewGenesisState(remainingServiceFees sdk.DecCoins, providers []Provider) GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	WithdrawRewards(ctx context.Context, in *MsgWithdrawRewards, opts ...grpc.CallOption) (*MsgWithdrawRewardsResponse, 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

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	WithdrawRewards(context.Context, *MsgWithdrawRewards) (*MsgWithdrawRewardsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgWithdrawRewards

type MsgWithdrawRewards struct {
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"`
}

MsgWithdrawForeignRewards defines attribute of withdraw rewards transaction.

func NewMsgWithdrawRewards

func NewMsgWithdrawRewards(sender sdk.AccAddress) *MsgWithdrawRewards

NewMsgWithdrawRewards creates a new MsgWithdrawRewards instance.

func (*MsgWithdrawRewards) Descriptor

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

func (MsgWithdrawRewards) GetSignBytes

func (msg MsgWithdrawRewards) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgWithdrawRewards) GetSigners

func (msg MsgWithdrawRewards) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface.

func (*MsgWithdrawRewards) Marshal

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

func (*MsgWithdrawRewards) MarshalTo

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

func (*MsgWithdrawRewards) MarshalToSizedBuffer

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

func (*MsgWithdrawRewards) ProtoMessage

func (*MsgWithdrawRewards) ProtoMessage()

func (*MsgWithdrawRewards) Reset

func (m *MsgWithdrawRewards) Reset()

func (MsgWithdrawRewards) Route

func (msg MsgWithdrawRewards) Route() string

Route implements the sdk.Msg interface.

func (*MsgWithdrawRewards) Size

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

func (*MsgWithdrawRewards) String

func (m *MsgWithdrawRewards) String() string

func (MsgWithdrawRewards) Type

func (msg MsgWithdrawRewards) Type() string

Type implements the sdk.Msg interface.

func (*MsgWithdrawRewards) Unmarshal

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

func (MsgWithdrawRewards) ValidateBasic

func (msg MsgWithdrawRewards) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgWithdrawRewards) XXX_DiscardUnknown

func (m *MsgWithdrawRewards) XXX_DiscardUnknown()

func (*MsgWithdrawRewards) XXX_Marshal

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

func (*MsgWithdrawRewards) XXX_Merge

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

func (*MsgWithdrawRewards) XXX_Size

func (m *MsgWithdrawRewards) XXX_Size() int

func (*MsgWithdrawRewards) XXX_Unmarshal

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

type MsgWithdrawRewardsResponse

type MsgWithdrawRewardsResponse struct {
}

func (*MsgWithdrawRewardsResponse) Descriptor

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

func (*MsgWithdrawRewardsResponse) Marshal

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

func (*MsgWithdrawRewardsResponse) MarshalTo

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

func (*MsgWithdrawRewardsResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawRewardsResponse) ProtoMessage

func (*MsgWithdrawRewardsResponse) ProtoMessage()

func (*MsgWithdrawRewardsResponse) Reset

func (m *MsgWithdrawRewardsResponse) Reset()

func (*MsgWithdrawRewardsResponse) Size

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

func (*MsgWithdrawRewardsResponse) String

func (m *MsgWithdrawRewardsResponse) String() string

func (*MsgWithdrawRewardsResponse) Unmarshal

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

func (*MsgWithdrawRewardsResponse) XXX_DiscardUnknown

func (m *MsgWithdrawRewardsResponse) XXX_DiscardUnknown()

func (*MsgWithdrawRewardsResponse) XXX_Marshal

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

func (*MsgWithdrawRewardsResponse) XXX_Merge

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

func (*MsgWithdrawRewardsResponse) XXX_Size

func (m *MsgWithdrawRewardsResponse) XXX_Size() int

func (*MsgWithdrawRewardsResponse) XXX_Unmarshal

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

type ParamSubspace

type ParamSubspace interface {
	Get(ctx sdk.Context, key []byte, ptr interface{})
	Set(ctx sdk.Context, key []byte, param interface{})
}

ParamSubspace defines the expected Subspace interface for parameters (noalias)

type Provider

type Provider struct {
	// Address is the address of the provider.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	// DelegationBonded is the amount of bonded delegation.
	DelegationBonded github_com_cosmos_cosmos_sdk_types.Int `` /* 165-byte string literal not displayed */
	// Collateral is amount of all collaterals for the provider, including
	// those in withdraw queue but excluding those currently locked, in all
	// pools.
	Collateral github_com_cosmos_cosmos_sdk_types.Int `` /* 131-byte string literal not displayed */
	// TotalLocked is the amount locked for pending claims.
	TotalLocked github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */
	// Withdrawing is the amount of collateral in withdraw queues.
	Withdrawing github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	// Rewards is the pooling rewards to be collected.
	Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,6,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"`
}

Provider tracks total delegation, total collateral, and rewards of a provider.

func (*Provider) Descriptor

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

func (*Provider) Marshal

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

func (*Provider) MarshalTo

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

func (*Provider) MarshalToSizedBuffer

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

func (*Provider) ProtoMessage

func (*Provider) ProtoMessage()

func (*Provider) Reset

func (m *Provider) Reset()

func (*Provider) Size

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

func (*Provider) String

func (m *Provider) String() string

func (*Provider) Unmarshal

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

func (*Provider) XXX_DiscardUnknown

func (m *Provider) XXX_DiscardUnknown()

func (*Provider) XXX_Marshal

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

func (*Provider) XXX_Merge

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

func (*Provider) XXX_Size

func (m *Provider) XXX_Size() int

func (*Provider) XXX_Unmarshal

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

type QueryClient

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

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryProviderRequest

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

func (*QueryProviderRequest) Descriptor

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

func (*QueryProviderRequest) GetAddress

func (m *QueryProviderRequest) GetAddress() string

func (*QueryProviderRequest) Marshal

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

func (*QueryProviderRequest) MarshalTo

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

func (*QueryProviderRequest) MarshalToSizedBuffer

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

func (*QueryProviderRequest) ProtoMessage

func (*QueryProviderRequest) ProtoMessage()

func (*QueryProviderRequest) Reset

func (m *QueryProviderRequest) Reset()

func (*QueryProviderRequest) Size

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

func (*QueryProviderRequest) String

func (m *QueryProviderRequest) String() string

func (*QueryProviderRequest) Unmarshal

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

func (*QueryProviderRequest) XXX_DiscardUnknown

func (m *QueryProviderRequest) XXX_DiscardUnknown()

func (*QueryProviderRequest) XXX_Marshal

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

func (*QueryProviderRequest) XXX_Merge

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

func (*QueryProviderRequest) XXX_Size

func (m *QueryProviderRequest) XXX_Size() int

func (*QueryProviderRequest) XXX_Unmarshal

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

type QueryProviderResponse

type QueryProviderResponse struct {
	Provider Provider `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider"`
}

func (*QueryProviderResponse) Descriptor

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

func (*QueryProviderResponse) GetProvider

func (m *QueryProviderResponse) GetProvider() Provider

func (*QueryProviderResponse) Marshal

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

func (*QueryProviderResponse) MarshalTo

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

func (*QueryProviderResponse) MarshalToSizedBuffer

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

func (*QueryProviderResponse) ProtoMessage

func (*QueryProviderResponse) ProtoMessage()

func (*QueryProviderResponse) Reset

func (m *QueryProviderResponse) Reset()

func (*QueryProviderResponse) Size

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

func (*QueryProviderResponse) String

func (m *QueryProviderResponse) String() string

func (*QueryProviderResponse) Unmarshal

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

func (*QueryProviderResponse) XXX_DiscardUnknown

func (m *QueryProviderResponse) XXX_DiscardUnknown()

func (*QueryProviderResponse) XXX_Marshal

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

func (*QueryProviderResponse) XXX_Merge

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

func (*QueryProviderResponse) XXX_Size

func (m *QueryProviderResponse) XXX_Size() int

func (*QueryProviderResponse) XXX_Unmarshal

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

type QueryProvidersRequest

type QueryProvidersRequest struct {
}

func (*QueryProvidersRequest) Descriptor

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

func (*QueryProvidersRequest) Marshal

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

func (*QueryProvidersRequest) MarshalTo

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

func (*QueryProvidersRequest) MarshalToSizedBuffer

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

func (*QueryProvidersRequest) ProtoMessage

func (*QueryProvidersRequest) ProtoMessage()

func (*QueryProvidersRequest) Reset

func (m *QueryProvidersRequest) Reset()

func (*QueryProvidersRequest) Size

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

func (*QueryProvidersRequest) String

func (m *QueryProvidersRequest) String() string

func (*QueryProvidersRequest) Unmarshal

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

func (*QueryProvidersRequest) XXX_DiscardUnknown

func (m *QueryProvidersRequest) XXX_DiscardUnknown()

func (*QueryProvidersRequest) XXX_Marshal

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

func (*QueryProvidersRequest) XXX_Merge

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

func (*QueryProvidersRequest) XXX_Size

func (m *QueryProvidersRequest) XXX_Size() int

func (*QueryProvidersRequest) XXX_Unmarshal

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

type QueryProvidersResponse

type QueryProvidersResponse struct {
	Providers []Provider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers"`
}

func (*QueryProvidersResponse) Descriptor

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

func (*QueryProvidersResponse) GetProviders

func (m *QueryProvidersResponse) GetProviders() []Provider

func (*QueryProvidersResponse) Marshal

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

func (*QueryProvidersResponse) MarshalTo

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

func (*QueryProvidersResponse) MarshalToSizedBuffer

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

func (*QueryProvidersResponse) ProtoMessage

func (*QueryProvidersResponse) ProtoMessage()

func (*QueryProvidersResponse) Reset

func (m *QueryProvidersResponse) Reset()

func (*QueryProvidersResponse) Size

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

func (*QueryProvidersResponse) String

func (m *QueryProvidersResponse) String() string

func (*QueryProvidersResponse) Unmarshal

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

func (*QueryProvidersResponse) XXX_DiscardUnknown

func (m *QueryProvidersResponse) XXX_DiscardUnknown()

func (*QueryProvidersResponse) XXX_Marshal

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

func (*QueryProvidersResponse) XXX_Merge

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

func (*QueryProvidersResponse) XXX_Size

func (m *QueryProvidersResponse) XXX_Size() int

func (*QueryProvidersResponse) XXX_Unmarshal

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

type QueryServer

QueryServer is the server API for Query service.

type QueryShieldStatusRequest

type QueryShieldStatusRequest struct {
}

func (*QueryShieldStatusRequest) Descriptor

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

func (*QueryShieldStatusRequest) Marshal

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

func (*QueryShieldStatusRequest) MarshalTo

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

func (*QueryShieldStatusRequest) MarshalToSizedBuffer

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

func (*QueryShieldStatusRequest) ProtoMessage

func (*QueryShieldStatusRequest) ProtoMessage()

func (*QueryShieldStatusRequest) Reset

func (m *QueryShieldStatusRequest) Reset()

func (*QueryShieldStatusRequest) Size

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

func (*QueryShieldStatusRequest) String

func (m *QueryShieldStatusRequest) String() string

func (*QueryShieldStatusRequest) Unmarshal

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

func (*QueryShieldStatusRequest) XXX_DiscardUnknown

func (m *QueryShieldStatusRequest) XXX_DiscardUnknown()

func (*QueryShieldStatusRequest) XXX_Marshal

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

func (*QueryShieldStatusRequest) XXX_Merge

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

func (*QueryShieldStatusRequest) XXX_Size

func (m *QueryShieldStatusRequest) XXX_Size() int

func (*QueryShieldStatusRequest) XXX_Unmarshal

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

type QueryShieldStatusResponse

type QueryShieldStatusResponse struct {
	RemainingServiceFees github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 170-byte string literal not displayed */
}

func (*QueryShieldStatusResponse) Descriptor

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

func (*QueryShieldStatusResponse) GetRemainingServiceFees

func (*QueryShieldStatusResponse) Marshal

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

func (*QueryShieldStatusResponse) MarshalTo

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

func (*QueryShieldStatusResponse) MarshalToSizedBuffer

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

func (*QueryShieldStatusResponse) ProtoMessage

func (*QueryShieldStatusResponse) ProtoMessage()

func (*QueryShieldStatusResponse) Reset

func (m *QueryShieldStatusResponse) Reset()

func (*QueryShieldStatusResponse) Size

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

func (*QueryShieldStatusResponse) String

func (m *QueryShieldStatusResponse) String() string

func (*QueryShieldStatusResponse) Unmarshal

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

func (*QueryShieldStatusResponse) XXX_DiscardUnknown

func (m *QueryShieldStatusResponse) XXX_DiscardUnknown()

func (*QueryShieldStatusResponse) XXX_Marshal

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

func (*QueryShieldStatusResponse) XXX_Merge

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

func (*QueryShieldStatusResponse) XXX_Size

func (m *QueryShieldStatusResponse) XXX_Size() int

func (*QueryShieldStatusResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) WithdrawRewards

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Provider

func (*UnimplementedQueryServer) Providers

func (*UnimplementedQueryServer) ShieldStatus

Jump to

Keyboard shortcuts

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