Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type ClaimRecord
- func (*ClaimRecord) Descriptor() ([]byte, []int)
- func (m *ClaimRecord) GetActionCompleted() []bool
- func (m *ClaimRecord) GetAddress() string
- func (m *ClaimRecord) GetClaimableAmount() []types.Coin
- func (m *ClaimRecord) Marshal() (dAtA []byte, err error)
- func (m *ClaimRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *ClaimRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClaimRecord) ProtoMessage()
- func (m *ClaimRecord) Reset()
- func (m *ClaimRecord) Size() (n int)
- func (m *ClaimRecord) String() string
- func (m *ClaimRecord) Unmarshal(dAtA []byte) error
- func (m *ClaimRecord) XXX_DiscardUnknown()
- func (m *ClaimRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClaimRecord) XXX_Merge(src proto.Message)
- func (m *ClaimRecord) XXX_Size() int
- func (m *ClaimRecord) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetClaimRecords() []ClaimRecord
- func (m *GenesisState) GetModuleAccountBalance() types.Coin
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClaim
- func (*MsgClaim) Descriptor() ([]byte, []int)
- func (m *MsgClaim) GetClaimAction() string
- func (m *MsgClaim) GetSender() string
- func (msg MsgClaim) GetSignBytes() []byte
- func (msg MsgClaim) GetSigners() []sdk.AccAddress
- func (m *MsgClaim) Marshal() (dAtA []byte, err error)
- func (m *MsgClaim) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaim) ProtoMessage()
- func (m *MsgClaim) Reset()
- func (msg MsgClaim) Route() string
- func (m *MsgClaim) Size() (n int)
- func (m *MsgClaim) String() string
- func (msg MsgClaim) Type() string
- func (m *MsgClaim) Unmarshal(dAtA []byte) error
- func (msg MsgClaim) ValidateBasic() error
- func (m *MsgClaim) XXX_DiscardUnknown()
- func (m *MsgClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaim) XXX_Merge(src proto.Message)
- func (m *MsgClaim) XXX_Size() int
- func (m *MsgClaim) XXX_Unmarshal(b []byte) error
- type MsgClaimResponse
- func (*MsgClaimResponse) Descriptor() ([]byte, []int)
- func (m *MsgClaimResponse) GetClaimedAmount() types.Coin
- func (m *MsgClaimResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClaimResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClaimResponse) ProtoMessage()
- func (m *MsgClaimResponse) Reset()
- func (m *MsgClaimResponse) Size() (n int)
- func (m *MsgClaimResponse) String() string
- func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClaimResponse) XXX_DiscardUnknown()
- func (m *MsgClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClaimResponse) XXX_Merge(src proto.Message)
- func (m *MsgClaimResponse) XXX_Size() int
- func (m *MsgClaimResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAirdropEnabled() bool
- func (m *Params) GetAirdropStartTime() time.Time
- func (m *Params) GetClaimDenom() string
- func (m *Params) GetDurationOfDecay() time.Duration
- func (m *Params) GetDurationUntilDecay() time.Duration
- func (p Params) IsAirdropEnabled(t time.Time) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClaimRecordRequest
- func (*QueryClaimRecordRequest) Descriptor() ([]byte, []int)
- func (m *QueryClaimRecordRequest) GetAddress() string
- func (m *QueryClaimRecordRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimRecordRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimRecordRequest) ProtoMessage()
- func (m *QueryClaimRecordRequest) Reset()
- func (m *QueryClaimRecordRequest) Size() (n int)
- func (m *QueryClaimRecordRequest) String() string
- func (m *QueryClaimRecordRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClaimRecordRequest) XXX_DiscardUnknown()
- func (m *QueryClaimRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimRecordRequest) XXX_Merge(src proto.Message)
- func (m *QueryClaimRecordRequest) XXX_Size() int
- func (m *QueryClaimRecordRequest) XXX_Unmarshal(b []byte) error
- type QueryClaimRecordResponse
- func (*QueryClaimRecordResponse) Descriptor() ([]byte, []int)
- func (m *QueryClaimRecordResponse) GetClaimRecord() ClaimRecord
- func (m *QueryClaimRecordResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimRecordResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimRecordResponse) ProtoMessage()
- func (m *QueryClaimRecordResponse) Reset()
- func (m *QueryClaimRecordResponse) Size() (n int)
- func (m *QueryClaimRecordResponse) String() string
- func (m *QueryClaimRecordResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClaimRecordResponse) XXX_DiscardUnknown()
- func (m *QueryClaimRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimRecordResponse) XXX_Merge(src proto.Message)
- func (m *QueryClaimRecordResponse) XXX_Size() int
- func (m *QueryClaimRecordResponse) XXX_Unmarshal(b []byte) error
- type QueryClaimableForActionRequest
- func (*QueryClaimableForActionRequest) Descriptor() ([]byte, []int)
- func (m *QueryClaimableForActionRequest) GetAction() string
- func (m *QueryClaimableForActionRequest) GetAddress() string
- func (m *QueryClaimableForActionRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimableForActionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimableForActionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimableForActionRequest) ProtoMessage()
- func (m *QueryClaimableForActionRequest) Reset()
- func (m *QueryClaimableForActionRequest) Size() (n int)
- func (m *QueryClaimableForActionRequest) String() string
- func (m *QueryClaimableForActionRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClaimableForActionRequest) XXX_DiscardUnknown()
- func (m *QueryClaimableForActionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimableForActionRequest) XXX_Merge(src proto.Message)
- func (m *QueryClaimableForActionRequest) XXX_Size() int
- func (m *QueryClaimableForActionRequest) XXX_Unmarshal(b []byte) error
- type QueryClaimableForActionResponse
- func (*QueryClaimableForActionResponse) Descriptor() ([]byte, []int)
- func (m *QueryClaimableForActionResponse) GetAmount() types.Coin
- func (m *QueryClaimableForActionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimableForActionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimableForActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimableForActionResponse) ProtoMessage()
- func (m *QueryClaimableForActionResponse) Reset()
- func (m *QueryClaimableForActionResponse) Size() (n int)
- func (m *QueryClaimableForActionResponse) String() string
- func (m *QueryClaimableForActionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClaimableForActionResponse) XXX_DiscardUnknown()
- func (m *QueryClaimableForActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimableForActionResponse) XXX_Merge(src proto.Message)
- func (m *QueryClaimableForActionResponse) XXX_Size() int
- func (m *QueryClaimableForActionResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryModuleAccountBalanceRequest
- func (*QueryModuleAccountBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryModuleAccountBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleAccountBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleAccountBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleAccountBalanceRequest) ProtoMessage()
- func (m *QueryModuleAccountBalanceRequest) Reset()
- func (m *QueryModuleAccountBalanceRequest) Size() (n int)
- func (m *QueryModuleAccountBalanceRequest) String() string
- func (m *QueryModuleAccountBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryModuleAccountBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryModuleAccountBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleAccountBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryModuleAccountBalanceRequest) XXX_Size() int
- func (m *QueryModuleAccountBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryModuleAccountBalanceResponse
- func (*QueryModuleAccountBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryModuleAccountBalanceResponse) GetModuleAccountBalance() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryModuleAccountBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleAccountBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleAccountBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleAccountBalanceResponse) ProtoMessage()
- func (m *QueryModuleAccountBalanceResponse) Reset()
- func (m *QueryModuleAccountBalanceResponse) Size() (n int)
- func (m *QueryModuleAccountBalanceResponse) String() string
- func (m *QueryModuleAccountBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryModuleAccountBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryModuleAccountBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleAccountBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryModuleAccountBalanceResponse) XXX_Size() int
- func (m *QueryModuleAccountBalanceResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryTotalClaimableRequest
- func (*QueryTotalClaimableRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalClaimableRequest) GetAddress() string
- func (m *QueryTotalClaimableRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalClaimableRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalClaimableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalClaimableRequest) ProtoMessage()
- func (m *QueryTotalClaimableRequest) Reset()
- func (m *QueryTotalClaimableRequest) Size() (n int)
- func (m *QueryTotalClaimableRequest) String() string
- func (m *QueryTotalClaimableRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalClaimableRequest) XXX_DiscardUnknown()
- func (m *QueryTotalClaimableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalClaimableRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalClaimableRequest) XXX_Size() int
- func (m *QueryTotalClaimableRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalClaimableResponse
- func (*QueryTotalClaimableResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalClaimableResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryTotalClaimableResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalClaimableResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalClaimableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalClaimableResponse) ProtoMessage()
- func (m *QueryTotalClaimableResponse) Reset()
- func (m *QueryTotalClaimableResponse) Size() (n int)
- func (m *QueryTotalClaimableResponse) String() string
- func (m *QueryTotalClaimableResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalClaimableResponse) XXX_DiscardUnknown()
- func (m *QueryTotalClaimableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalClaimableResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalClaimableResponse) XXX_Size() int
- func (m *QueryTotalClaimableResponse) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ClaimRecord(ctx context.Context, req *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error)
- func (*UnimplementedQueryServer) ClaimableForAction(ctx context.Context, req *QueryClaimableForActionRequest) (*QueryClaimableForActionResponse, error)
- func (*UnimplementedQueryServer) ModuleAccountBalance(ctx context.Context, req *QueryModuleAccountBalanceRequest) (*QueryModuleAccountBalanceResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) TotalClaimable(ctx context.Context, req *QueryTotalClaimableRequest) (*QueryTotalClaimableResponse, error)
Constants ¶
const ( // ActionInitialClaim defines a initial claim actions for airdrop. ActionInitialClaim int32 = 0 // DelegateActionStake defines Delegate Action Stake InitialClaim = "ActionInitialClaim" )
const ( EventTypeClaim = "claim" AttributeValueCategory = ModuleName )
claim module event types
const ( // ModuleName defines the module name ModuleName = "claim" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // ActionKey defines the store key to store user accomplished actions ActionKey = "action" // ParamsKey defines the store key for claim module parameters ParamsKey = "params" )
const (
TypeMsgClaim = "claim"
)
msg types
Variables ¶
var ( ErrInvalidLengthClaimRecord = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClaimRecord = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupClaimRecord = fmt.Errorf("proto: unexpected end of group") )
var ( ErrAirdropNotEnabled = sdkerrors.Register(ModuleName, 2, "airdrop not enabled") ErrIncorrectModuleAccountBalance = sdkerrors.Register(ModuleName, 3, "claim module account balance != sum of all claim record InitialClaimableAmounts") )
x/claim module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( DefaultClaimDenom = "upasg" DefaultDurationUntilDecay = time.Hour DefaultDurationOfDecay = time.Hour * 5 )
var ( KeyEnabled = []byte("Enabled") KeyStartTime = []byte("StartTime") KeyClaimDenom = []byte("ClaimDenom") KeyDurationUntilDecal = []byte("DurationUntilDecay") KeyDurationOfDecay = []byte("DurationOfDecay") )
Parameter store keys
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var Action_name = map[int32]string{
0: "ActionInitialClaim",
}
var Action_value = map[string]int32{
"ActionInitialClaim": 0,
}
var ( // ClaimRecordsStorePrefix defines the store prefix for the claim records ClaimRecordsStorePrefix = []byte{0x01} )
KVStore keys
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type ClaimRecord ¶
type ClaimRecord struct { // address of claim user Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` // claimable amount for claim actions ClaimableAmount []types.Coin `protobuf:"bytes,2,rep,name=claimable_amount,json=claimableAmount,proto3" json:"claimable_amount" yaml:"claimable_amount"` // true if action is completed // index of bool in array refers to action enum # ActionCompleted []bool `` /* 138-byte string literal not displayed */ }
A Claim Records is the metadata of claim data per address
func (*ClaimRecord) Descriptor ¶
func (*ClaimRecord) Descriptor() ([]byte, []int)
func (*ClaimRecord) GetActionCompleted ¶
func (m *ClaimRecord) GetActionCompleted() []bool
func (*ClaimRecord) GetAddress ¶
func (m *ClaimRecord) GetAddress() string
func (*ClaimRecord) GetClaimableAmount ¶
func (m *ClaimRecord) GetClaimableAmount() []types.Coin
func (*ClaimRecord) Marshal ¶
func (m *ClaimRecord) Marshal() (dAtA []byte, err error)
func (*ClaimRecord) MarshalToSizedBuffer ¶
func (m *ClaimRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClaimRecord) ProtoMessage ¶
func (*ClaimRecord) ProtoMessage()
func (*ClaimRecord) Reset ¶
func (m *ClaimRecord) Reset()
func (*ClaimRecord) Size ¶
func (m *ClaimRecord) Size() (n int)
func (*ClaimRecord) String ¶
func (m *ClaimRecord) String() string
func (*ClaimRecord) Unmarshal ¶
func (m *ClaimRecord) Unmarshal(dAtA []byte) error
func (*ClaimRecord) XXX_DiscardUnknown ¶
func (m *ClaimRecord) XXX_DiscardUnknown()
func (*ClaimRecord) XXX_Marshal ¶
func (m *ClaimRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClaimRecord) XXX_Merge ¶
func (m *ClaimRecord) XXX_Merge(src proto.Message)
func (*ClaimRecord) XXX_Size ¶
func (m *ClaimRecord) XXX_Size() int
func (*ClaimRecord) XXX_Unmarshal ¶
func (m *ClaimRecord) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // balance of the claim module's account ModuleAccountBalance types.Coin `` /* 143-byte string literal not displayed */ // params defines all the parameters of the module. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params" yaml:"params"` // list of claim records, one for every airdrop recipient ClaimRecords []ClaimRecord `protobuf:"bytes,3,rep,name=claim_records,json=claimRecords,proto3" json:"claim_records" yaml:"claim_records"` }
GenesisState defines the claim module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetClaimRecords ¶
func (m *GenesisState) GetClaimRecords() []ClaimRecord
func (*GenesisState) GetModuleAccountBalance ¶
func (m *GenesisState) GetModuleAccountBalance() types.Coin
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
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 MsgClaim ¶
type MsgClaim struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` ClaimAction string `protobuf:"bytes,2,opt,name=claim_action,json=claimAction,proto3" json:"claim_action,omitempty"` }
MsgInitialClaim defines request message for InitialClaim RPC request
func NewMsgClaim ¶
func (*MsgClaim) Descriptor ¶
func (*MsgClaim) GetClaimAction ¶
func (MsgClaim) GetSignBytes ¶
func (MsgClaim) GetSigners ¶
func (msg MsgClaim) GetSigners() []sdk.AccAddress
func (*MsgClaim) MarshalToSizedBuffer ¶
func (*MsgClaim) ProtoMessage ¶
func (*MsgClaim) ProtoMessage()
func (MsgClaim) ValidateBasic ¶
func (*MsgClaim) XXX_DiscardUnknown ¶
func (m *MsgClaim) XXX_DiscardUnknown()
func (*MsgClaim) XXX_Marshal ¶
func (*MsgClaim) XXX_Unmarshal ¶
type MsgClaimResponse ¶
type MsgClaimResponse struct { // total initial claimable amount for the user ClaimedAmount types.Coin `` /* 166-byte string literal not displayed */ }
MsgInitialClaimResponse defines response for InitialClaim RPC request
func (*MsgClaimResponse) Descriptor ¶
func (*MsgClaimResponse) Descriptor() ([]byte, []int)
func (*MsgClaimResponse) GetClaimedAmount ¶
func (m *MsgClaimResponse) GetClaimedAmount() types.Coin
func (*MsgClaimResponse) Marshal ¶
func (m *MsgClaimResponse) Marshal() (dAtA []byte, err error)
func (*MsgClaimResponse) MarshalToSizedBuffer ¶
func (m *MsgClaimResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClaimResponse) ProtoMessage ¶
func (*MsgClaimResponse) ProtoMessage()
func (*MsgClaimResponse) Reset ¶
func (m *MsgClaimResponse) Reset()
func (*MsgClaimResponse) Size ¶
func (m *MsgClaimResponse) Size() (n int)
func (*MsgClaimResponse) String ¶
func (m *MsgClaimResponse) String() string
func (*MsgClaimResponse) Unmarshal ¶
func (m *MsgClaimResponse) Unmarshal(dAtA []byte) error
func (*MsgClaimResponse) XXX_DiscardUnknown ¶
func (m *MsgClaimResponse) XXX_DiscardUnknown()
func (*MsgClaimResponse) XXX_Marshal ¶
func (m *MsgClaimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClaimResponse) XXX_Merge ¶
func (m *MsgClaimResponse) XXX_Merge(src proto.Message)
func (*MsgClaimResponse) XXX_Size ¶
func (m *MsgClaimResponse) XXX_Size() int
func (*MsgClaimResponse) XXX_Unmarshal ¶
func (m *MsgClaimResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // InitialClaim defines RPC service for claim Claim(ctx context.Context, in *MsgClaim, opts ...grpc.CallOption) (*MsgClaimResponse, 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 { // InitialClaim defines RPC service for claim Claim(context.Context, *MsgClaim) (*MsgClaimResponse, error) }
MsgServer is the server API for Msg service.
type Params ¶
type Params struct { AirdropEnabled bool `protobuf:"varint,1,opt,name=airdrop_enabled,json=airdropEnabled,proto3" json:"airdrop_enabled,omitempty"` // airdrop starting time AirdropStartTime time.Time `` /* 135-byte string literal not displayed */ DurationUntilDecay time.Duration `` /* 157-byte string literal not displayed */ DurationOfDecay time.Duration `` /* 145-byte string literal not displayed */ // denom of claimable asset ClaimDenom string `protobuf:"bytes,5,opt,name=claim_denom,json=claimDenom,proto3" json:"claim_denom,omitempty"` }
Params defines the claim module's parameters.
func (*Params) Descriptor ¶
func (*Params) GetAirdropEnabled ¶
func (*Params) GetAirdropStartTime ¶
func (*Params) GetClaimDenom ¶
func (*Params) GetDurationOfDecay ¶
func (*Params) GetDurationUntilDecay ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs - Implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClaimRecordRequest ¶
type QueryClaimRecordRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}
QueryClaimRecordRequest is the request type for the Query/ClaimRecord RPC method.
func (*QueryClaimRecordRequest) Descriptor ¶
func (*QueryClaimRecordRequest) Descriptor() ([]byte, []int)
func (*QueryClaimRecordRequest) GetAddress ¶
func (m *QueryClaimRecordRequest) GetAddress() string
func (*QueryClaimRecordRequest) Marshal ¶
func (m *QueryClaimRecordRequest) Marshal() (dAtA []byte, err error)
func (*QueryClaimRecordRequest) MarshalTo ¶
func (m *QueryClaimRecordRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimRecordRequest) MarshalToSizedBuffer ¶
func (m *QueryClaimRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimRecordRequest) ProtoMessage ¶
func (*QueryClaimRecordRequest) ProtoMessage()
func (*QueryClaimRecordRequest) Reset ¶
func (m *QueryClaimRecordRequest) Reset()
func (*QueryClaimRecordRequest) Size ¶
func (m *QueryClaimRecordRequest) Size() (n int)
func (*QueryClaimRecordRequest) String ¶
func (m *QueryClaimRecordRequest) String() string
func (*QueryClaimRecordRequest) Unmarshal ¶
func (m *QueryClaimRecordRequest) Unmarshal(dAtA []byte) error
func (*QueryClaimRecordRequest) XXX_DiscardUnknown ¶
func (m *QueryClaimRecordRequest) XXX_DiscardUnknown()
func (*QueryClaimRecordRequest) XXX_Marshal ¶
func (m *QueryClaimRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimRecordRequest) XXX_Merge ¶
func (m *QueryClaimRecordRequest) XXX_Merge(src proto.Message)
func (*QueryClaimRecordRequest) XXX_Size ¶
func (m *QueryClaimRecordRequest) XXX_Size() int
func (*QueryClaimRecordRequest) XXX_Unmarshal ¶
func (m *QueryClaimRecordRequest) XXX_Unmarshal(b []byte) error
type QueryClaimRecordResponse ¶
type QueryClaimRecordResponse struct {
ClaimRecord ClaimRecord `protobuf:"bytes,1,opt,name=claim_record,json=claimRecord,proto3" json:"claim_record" yaml:"claim_record"`
}
QueryClaimRecordResponse is the response type for the Query/ClaimRecord RPC method.
func (*QueryClaimRecordResponse) Descriptor ¶
func (*QueryClaimRecordResponse) Descriptor() ([]byte, []int)
func (*QueryClaimRecordResponse) GetClaimRecord ¶
func (m *QueryClaimRecordResponse) GetClaimRecord() ClaimRecord
func (*QueryClaimRecordResponse) Marshal ¶
func (m *QueryClaimRecordResponse) Marshal() (dAtA []byte, err error)
func (*QueryClaimRecordResponse) MarshalTo ¶
func (m *QueryClaimRecordResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimRecordResponse) MarshalToSizedBuffer ¶
func (m *QueryClaimRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimRecordResponse) ProtoMessage ¶
func (*QueryClaimRecordResponse) ProtoMessage()
func (*QueryClaimRecordResponse) Reset ¶
func (m *QueryClaimRecordResponse) Reset()
func (*QueryClaimRecordResponse) Size ¶
func (m *QueryClaimRecordResponse) Size() (n int)
func (*QueryClaimRecordResponse) String ¶
func (m *QueryClaimRecordResponse) String() string
func (*QueryClaimRecordResponse) Unmarshal ¶
func (m *QueryClaimRecordResponse) Unmarshal(dAtA []byte) error
func (*QueryClaimRecordResponse) XXX_DiscardUnknown ¶
func (m *QueryClaimRecordResponse) XXX_DiscardUnknown()
func (*QueryClaimRecordResponse) XXX_Marshal ¶
func (m *QueryClaimRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimRecordResponse) XXX_Merge ¶
func (m *QueryClaimRecordResponse) XXX_Merge(src proto.Message)
func (*QueryClaimRecordResponse) XXX_Size ¶
func (m *QueryClaimRecordResponse) XXX_Size() int
func (*QueryClaimRecordResponse) XXX_Unmarshal ¶
func (m *QueryClaimRecordResponse) XXX_Unmarshal(b []byte) error
type QueryClaimableForActionRequest ¶
type QueryClaimableForActionRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty" yaml:"action"` }
QueryClaimableForActionRequest is the request type for the Query/ClaimRecord RPC method.
func (*QueryClaimableForActionRequest) Descriptor ¶
func (*QueryClaimableForActionRequest) Descriptor() ([]byte, []int)
func (*QueryClaimableForActionRequest) GetAction ¶
func (m *QueryClaimableForActionRequest) GetAction() string
func (*QueryClaimableForActionRequest) GetAddress ¶
func (m *QueryClaimableForActionRequest) GetAddress() string
func (*QueryClaimableForActionRequest) Marshal ¶
func (m *QueryClaimableForActionRequest) Marshal() (dAtA []byte, err error)
func (*QueryClaimableForActionRequest) MarshalTo ¶
func (m *QueryClaimableForActionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimableForActionRequest) MarshalToSizedBuffer ¶
func (m *QueryClaimableForActionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimableForActionRequest) ProtoMessage ¶
func (*QueryClaimableForActionRequest) ProtoMessage()
func (*QueryClaimableForActionRequest) Reset ¶
func (m *QueryClaimableForActionRequest) Reset()
func (*QueryClaimableForActionRequest) Size ¶
func (m *QueryClaimableForActionRequest) Size() (n int)
func (*QueryClaimableForActionRequest) String ¶
func (m *QueryClaimableForActionRequest) String() string
func (*QueryClaimableForActionRequest) Unmarshal ¶
func (m *QueryClaimableForActionRequest) Unmarshal(dAtA []byte) error
func (*QueryClaimableForActionRequest) XXX_DiscardUnknown ¶
func (m *QueryClaimableForActionRequest) XXX_DiscardUnknown()
func (*QueryClaimableForActionRequest) XXX_Marshal ¶
func (m *QueryClaimableForActionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimableForActionRequest) XXX_Merge ¶
func (m *QueryClaimableForActionRequest) XXX_Merge(src proto.Message)
func (*QueryClaimableForActionRequest) XXX_Size ¶
func (m *QueryClaimableForActionRequest) XXX_Size() int
func (*QueryClaimableForActionRequest) XXX_Unmarshal ¶
func (m *QueryClaimableForActionRequest) XXX_Unmarshal(b []byte) error
type QueryClaimableForActionResponse ¶
type QueryClaimableForActionResponse struct {
Amount types.Coin `protobuf:"bytes,1,opt,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount" yaml:"amount"`
}
QueryClaimableForActionResponse is the response type for the Query/ClaimRecord RPC method.
func (*QueryClaimableForActionResponse) Descriptor ¶
func (*QueryClaimableForActionResponse) Descriptor() ([]byte, []int)
func (*QueryClaimableForActionResponse) GetAmount ¶
func (m *QueryClaimableForActionResponse) GetAmount() types.Coin
func (*QueryClaimableForActionResponse) Marshal ¶
func (m *QueryClaimableForActionResponse) Marshal() (dAtA []byte, err error)
func (*QueryClaimableForActionResponse) MarshalTo ¶
func (m *QueryClaimableForActionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimableForActionResponse) MarshalToSizedBuffer ¶
func (m *QueryClaimableForActionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimableForActionResponse) ProtoMessage ¶
func (*QueryClaimableForActionResponse) ProtoMessage()
func (*QueryClaimableForActionResponse) Reset ¶
func (m *QueryClaimableForActionResponse) Reset()
func (*QueryClaimableForActionResponse) Size ¶
func (m *QueryClaimableForActionResponse) Size() (n int)
func (*QueryClaimableForActionResponse) String ¶
func (m *QueryClaimableForActionResponse) String() string
func (*QueryClaimableForActionResponse) Unmarshal ¶
func (m *QueryClaimableForActionResponse) Unmarshal(dAtA []byte) error
func (*QueryClaimableForActionResponse) XXX_DiscardUnknown ¶
func (m *QueryClaimableForActionResponse) XXX_DiscardUnknown()
func (*QueryClaimableForActionResponse) XXX_Marshal ¶
func (m *QueryClaimableForActionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimableForActionResponse) XXX_Merge ¶
func (m *QueryClaimableForActionResponse) XXX_Merge(src proto.Message)
func (*QueryClaimableForActionResponse) XXX_Size ¶
func (m *QueryClaimableForActionResponse) XXX_Size() int
func (*QueryClaimableForActionResponse) XXX_Unmarshal ¶
func (m *QueryClaimableForActionResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // ModuleAccountBalance RPC returns the claim module account balance ModuleAccountBalance(ctx context.Context, in *QueryModuleAccountBalanceRequest, opts ...grpc.CallOption) (*QueryModuleAccountBalanceResponse, error) // Params RPC returns claim module params Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // ClaimRecord RPC returns claim record for an address ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, error) // ClaimableForAction RPC returns claimable amount for an action of an address ClaimableForAction(ctx context.Context, in *QueryClaimableForActionRequest, opts ...grpc.CallOption) (*QueryClaimableForActionResponse, error) // TotalClaimable RPC returns total claimable amount for address TotalClaimable(ctx context.Context, in *QueryTotalClaimableRequest, opts ...grpc.CallOption) (*QueryTotalClaimableResponse, 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 ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryModuleAccountBalanceRequest ¶
type QueryModuleAccountBalanceRequest struct { }
QueryModuleAccountBalanceRequest is the request type for the Query/ModuleAccountBalance RPC method.
func (*QueryModuleAccountBalanceRequest) Descriptor ¶
func (*QueryModuleAccountBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryModuleAccountBalanceRequest) Marshal ¶
func (m *QueryModuleAccountBalanceRequest) Marshal() (dAtA []byte, err error)
func (*QueryModuleAccountBalanceRequest) MarshalTo ¶
func (m *QueryModuleAccountBalanceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleAccountBalanceRequest) MarshalToSizedBuffer ¶
func (m *QueryModuleAccountBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleAccountBalanceRequest) ProtoMessage ¶
func (*QueryModuleAccountBalanceRequest) ProtoMessage()
func (*QueryModuleAccountBalanceRequest) Reset ¶
func (m *QueryModuleAccountBalanceRequest) Reset()
func (*QueryModuleAccountBalanceRequest) Size ¶
func (m *QueryModuleAccountBalanceRequest) Size() (n int)
func (*QueryModuleAccountBalanceRequest) String ¶
func (m *QueryModuleAccountBalanceRequest) String() string
func (*QueryModuleAccountBalanceRequest) Unmarshal ¶
func (m *QueryModuleAccountBalanceRequest) Unmarshal(dAtA []byte) error
func (*QueryModuleAccountBalanceRequest) XXX_DiscardUnknown ¶
func (m *QueryModuleAccountBalanceRequest) XXX_DiscardUnknown()
func (*QueryModuleAccountBalanceRequest) XXX_Marshal ¶
func (m *QueryModuleAccountBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleAccountBalanceRequest) XXX_Merge ¶
func (m *QueryModuleAccountBalanceRequest) XXX_Merge(src proto.Message)
func (*QueryModuleAccountBalanceRequest) XXX_Size ¶
func (m *QueryModuleAccountBalanceRequest) XXX_Size() int
func (*QueryModuleAccountBalanceRequest) XXX_Unmarshal ¶
func (m *QueryModuleAccountBalanceRequest) XXX_Unmarshal(b []byte) error
type QueryModuleAccountBalanceResponse ¶
type QueryModuleAccountBalanceResponse struct { // params defines the parameters of the module. ModuleAccountBalance github_com_cosmos_cosmos_sdk_types.Coins `` /* 180-byte string literal not displayed */ }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryModuleAccountBalanceResponse) Descriptor ¶
func (*QueryModuleAccountBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryModuleAccountBalanceResponse) GetModuleAccountBalance ¶
func (m *QueryModuleAccountBalanceResponse) GetModuleAccountBalance() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryModuleAccountBalanceResponse) Marshal ¶
func (m *QueryModuleAccountBalanceResponse) Marshal() (dAtA []byte, err error)
func (*QueryModuleAccountBalanceResponse) MarshalTo ¶
func (m *QueryModuleAccountBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleAccountBalanceResponse) MarshalToSizedBuffer ¶
func (m *QueryModuleAccountBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleAccountBalanceResponse) ProtoMessage ¶
func (*QueryModuleAccountBalanceResponse) ProtoMessage()
func (*QueryModuleAccountBalanceResponse) Reset ¶
func (m *QueryModuleAccountBalanceResponse) Reset()
func (*QueryModuleAccountBalanceResponse) Size ¶
func (m *QueryModuleAccountBalanceResponse) Size() (n int)
func (*QueryModuleAccountBalanceResponse) String ¶
func (m *QueryModuleAccountBalanceResponse) String() string
func (*QueryModuleAccountBalanceResponse) Unmarshal ¶
func (m *QueryModuleAccountBalanceResponse) Unmarshal(dAtA []byte) error
func (*QueryModuleAccountBalanceResponse) XXX_DiscardUnknown ¶
func (m *QueryModuleAccountBalanceResponse) XXX_DiscardUnknown()
func (*QueryModuleAccountBalanceResponse) XXX_Marshal ¶
func (m *QueryModuleAccountBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleAccountBalanceResponse) XXX_Merge ¶
func (m *QueryModuleAccountBalanceResponse) XXX_Merge(src proto.Message)
func (*QueryModuleAccountBalanceResponse) XXX_Size ¶
func (m *QueryModuleAccountBalanceResponse) XXX_Size() int
func (*QueryModuleAccountBalanceResponse) XXX_Unmarshal ¶
func (m *QueryModuleAccountBalanceResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // ModuleAccountBalance RPC returns the claim module account balance ModuleAccountBalance(context.Context, *QueryModuleAccountBalanceRequest) (*QueryModuleAccountBalanceResponse, error) // Params RPC returns claim module params Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // ClaimRecord RPC returns claim record for an address ClaimRecord(context.Context, *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error) // ClaimableForAction RPC returns claimable amount for an action of an address ClaimableForAction(context.Context, *QueryClaimableForActionRequest) (*QueryClaimableForActionResponse, error) // TotalClaimable RPC returns total claimable amount for address TotalClaimable(context.Context, *QueryTotalClaimableRequest) (*QueryTotalClaimableResponse, error) }
QueryServer is the server API for Query service.
type QueryTotalClaimableRequest ¶
type QueryTotalClaimableRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}
QueryTotalClaimableRequest is the request type for the Query/TotalClaimableRequest RPC method.
func (*QueryTotalClaimableRequest) Descriptor ¶
func (*QueryTotalClaimableRequest) Descriptor() ([]byte, []int)
func (*QueryTotalClaimableRequest) GetAddress ¶
func (m *QueryTotalClaimableRequest) GetAddress() string
func (*QueryTotalClaimableRequest) Marshal ¶
func (m *QueryTotalClaimableRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalClaimableRequest) MarshalTo ¶
func (m *QueryTotalClaimableRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalClaimableRequest) MarshalToSizedBuffer ¶
func (m *QueryTotalClaimableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalClaimableRequest) ProtoMessage ¶
func (*QueryTotalClaimableRequest) ProtoMessage()
func (*QueryTotalClaimableRequest) Reset ¶
func (m *QueryTotalClaimableRequest) Reset()
func (*QueryTotalClaimableRequest) Size ¶
func (m *QueryTotalClaimableRequest) Size() (n int)
func (*QueryTotalClaimableRequest) String ¶
func (m *QueryTotalClaimableRequest) String() string
func (*QueryTotalClaimableRequest) Unmarshal ¶
func (m *QueryTotalClaimableRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalClaimableRequest) XXX_DiscardUnknown ¶
func (m *QueryTotalClaimableRequest) XXX_DiscardUnknown()
func (*QueryTotalClaimableRequest) XXX_Marshal ¶
func (m *QueryTotalClaimableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalClaimableRequest) XXX_Merge ¶
func (m *QueryTotalClaimableRequest) XXX_Merge(src proto.Message)
func (*QueryTotalClaimableRequest) XXX_Size ¶
func (m *QueryTotalClaimableRequest) XXX_Size() int
func (*QueryTotalClaimableRequest) XXX_Unmarshal ¶
func (m *QueryTotalClaimableRequest) XXX_Unmarshal(b []byte) error
type QueryTotalClaimableResponse ¶
type QueryTotalClaimableResponse struct {
Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"`
}
QueryTotalClaimableResponse is the response type for the Query/TotalClaimableResponse RPC method.
func (*QueryTotalClaimableResponse) Descriptor ¶
func (*QueryTotalClaimableResponse) Descriptor() ([]byte, []int)
func (*QueryTotalClaimableResponse) GetCoins ¶
func (m *QueryTotalClaimableResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryTotalClaimableResponse) Marshal ¶
func (m *QueryTotalClaimableResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalClaimableResponse) MarshalTo ¶
func (m *QueryTotalClaimableResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalClaimableResponse) MarshalToSizedBuffer ¶
func (m *QueryTotalClaimableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalClaimableResponse) ProtoMessage ¶
func (*QueryTotalClaimableResponse) ProtoMessage()
func (*QueryTotalClaimableResponse) Reset ¶
func (m *QueryTotalClaimableResponse) Reset()
func (*QueryTotalClaimableResponse) Size ¶
func (m *QueryTotalClaimableResponse) Size() (n int)
func (*QueryTotalClaimableResponse) String ¶
func (m *QueryTotalClaimableResponse) String() string
func (*QueryTotalClaimableResponse) Unmarshal ¶
func (m *QueryTotalClaimableResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalClaimableResponse) XXX_DiscardUnknown ¶
func (m *QueryTotalClaimableResponse) XXX_DiscardUnknown()
func (*QueryTotalClaimableResponse) XXX_Marshal ¶
func (m *QueryTotalClaimableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalClaimableResponse) XXX_Merge ¶
func (m *QueryTotalClaimableResponse) XXX_Merge(src proto.Message)
func (*QueryTotalClaimableResponse) XXX_Size ¶
func (m *QueryTotalClaimableResponse) XXX_Size() int
func (*QueryTotalClaimableResponse) XXX_Unmarshal ¶
func (m *QueryTotalClaimableResponse) XXX_Unmarshal(b []byte) error
type StakingKeeper ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Claim ¶
func (*UnimplementedMsgServer) Claim(ctx context.Context, req *MsgClaim) (*MsgClaimResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ClaimRecord ¶
func (*UnimplementedQueryServer) ClaimRecord(ctx context.Context, req *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error)
func (*UnimplementedQueryServer) ClaimableForAction ¶
func (*UnimplementedQueryServer) ClaimableForAction(ctx context.Context, req *QueryClaimableForActionRequest) (*QueryClaimableForActionResponse, error)
func (*UnimplementedQueryServer) ModuleAccountBalance ¶
func (*UnimplementedQueryServer) ModuleAccountBalance(ctx context.Context, req *QueryModuleAccountBalanceRequest) (*QueryModuleAccountBalanceResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) TotalClaimable ¶
func (*UnimplementedQueryServer) TotalClaimable(ctx context.Context, req *QueryTotalClaimableRequest) (*QueryTotalClaimableResponse, error)