Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func Decompress(data []byte) ([]byte, error)
- func GetKeyClaimRecord(chainID string, addr sdk.AccAddress) []byte
- func GetKeyZoneDrop(chainID string) []byte
- func GetPrefixClaimRecord(chainID string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error
- func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error
- 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 AccountKeeper
- type Action
- type BankKeeper
- type ClaimRecord
- func (*ClaimRecord) Descriptor() ([]byte, []int)
- 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 (cr *ClaimRecord) ValidateBasic() 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 CompletedAction
- func (*CompletedAction) Descriptor() ([]byte, []int)
- func (m *CompletedAction) Marshal() (dAtA []byte, err error)
- func (m *CompletedAction) MarshalTo(dAtA []byte) (int, error)
- func (m *CompletedAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CompletedAction) ProtoMessage()
- func (m *CompletedAction) Reset()
- func (m *CompletedAction) Size() (n int)
- func (m *CompletedAction) String() string
- func (m *CompletedAction) Unmarshal(dAtA []byte) error
- func (m *CompletedAction) XXX_DiscardUnknown()
- func (m *CompletedAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CompletedAction) XXX_Merge(src proto.Message)
- func (m *CompletedAction) XXX_Size() int
- func (m *CompletedAction) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 GovKeeper
- type InterchainStakingKeeper
- type MsgClaim
- func (*MsgClaim) Descriptor() ([]byte, []int)
- 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) 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 MsgIncentivePoolSpend
- func (*MsgIncentivePoolSpend) Descriptor() ([]byte, []int)
- func (msg MsgIncentivePoolSpend) GetSignBytes() []byte
- func (msg MsgIncentivePoolSpend) GetSigners() []sdk.AccAddress
- func (m *MsgIncentivePoolSpend) Marshal() (dAtA []byte, err error)
- func (m *MsgIncentivePoolSpend) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIncentivePoolSpend) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIncentivePoolSpend) ProtoMessage()
- func (m *MsgIncentivePoolSpend) Reset()
- func (msg MsgIncentivePoolSpend) Route() string
- func (m *MsgIncentivePoolSpend) Size() (n int)
- func (m *MsgIncentivePoolSpend) String() string
- func (msg MsgIncentivePoolSpend) Type() string
- func (m *MsgIncentivePoolSpend) Unmarshal(dAtA []byte) error
- func (msg MsgIncentivePoolSpend) ValidateBasic() error
- func (m *MsgIncentivePoolSpend) XXX_DiscardUnknown()
- func (m *MsgIncentivePoolSpend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIncentivePoolSpend) XXX_Merge(src proto.Message)
- func (m *MsgIncentivePoolSpend) XXX_Size() int
- func (m *MsgIncentivePoolSpend) XXX_Unmarshal(b []byte) error
- type MsgIncentivePoolSpendResponse
- func (*MsgIncentivePoolSpendResponse) Descriptor() ([]byte, []int)
- func (m *MsgIncentivePoolSpendResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIncentivePoolSpendResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIncentivePoolSpendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIncentivePoolSpendResponse) ProtoMessage()
- func (m *MsgIncentivePoolSpendResponse) Reset()
- func (m *MsgIncentivePoolSpendResponse) Size() (n int)
- func (m *MsgIncentivePoolSpendResponse) String() string
- func (m *MsgIncentivePoolSpendResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIncentivePoolSpendResponse) XXX_DiscardUnknown()
- func (m *MsgIncentivePoolSpendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIncentivePoolSpendResponse) XXX_Merge(src proto.Message)
- func (m *MsgIncentivePoolSpendResponse) XXX_Size() int
- func (m *MsgIncentivePoolSpendResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- 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 ParticipationRewardsKeeper
- type QueryAccountBalanceRequest
- func (*QueryAccountBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryAccountBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountBalanceRequest) ProtoMessage()
- func (m *QueryAccountBalanceRequest) Reset()
- func (m *QueryAccountBalanceRequest) Size() (n int)
- func (m *QueryAccountBalanceRequest) String() string
- func (m *QueryAccountBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAccountBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryAccountBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryAccountBalanceRequest) XXX_Size() int
- func (m *QueryAccountBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryAccountBalanceResponse
- func (*QueryAccountBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryAccountBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountBalanceResponse) ProtoMessage()
- func (m *QueryAccountBalanceResponse) Reset()
- func (m *QueryAccountBalanceResponse) Size() (n int)
- func (m *QueryAccountBalanceResponse) String() string
- func (m *QueryAccountBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAccountBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryAccountBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryAccountBalanceResponse) XXX_Size() int
- func (m *QueryAccountBalanceResponse) XXX_Unmarshal(b []byte) error
- type QueryClaimRecordRequest
- func (*QueryClaimRecordRequest) Descriptor() ([]byte, []int)
- 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) 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 QueryClaimRecordsRequest
- func (*QueryClaimRecordsRequest) Descriptor() ([]byte, []int)
- func (m *QueryClaimRecordsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimRecordsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimRecordsRequest) ProtoMessage()
- func (m *QueryClaimRecordsRequest) Reset()
- func (m *QueryClaimRecordsRequest) Size() (n int)
- func (m *QueryClaimRecordsRequest) String() string
- func (m *QueryClaimRecordsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClaimRecordsRequest) XXX_DiscardUnknown()
- func (m *QueryClaimRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimRecordsRequest) XXX_Merge(src proto.Message)
- func (m *QueryClaimRecordsRequest) XXX_Size() int
- func (m *QueryClaimRecordsRequest) XXX_Unmarshal(b []byte) error
- type QueryClaimRecordsResponse
- func (*QueryClaimRecordsResponse) Descriptor() ([]byte, []int)
- func (m *QueryClaimRecordsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimRecordsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimRecordsResponse) ProtoMessage()
- func (m *QueryClaimRecordsResponse) Reset()
- func (m *QueryClaimRecordsResponse) Size() (n int)
- func (m *QueryClaimRecordsResponse) String() string
- func (m *QueryClaimRecordsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClaimRecordsResponse) XXX_DiscardUnknown()
- func (m *QueryClaimRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimRecordsResponse) XXX_Merge(src proto.Message)
- func (m *QueryClaimRecordsResponse) XXX_Size() int
- func (m *QueryClaimRecordsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- 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) 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 QueryZoneDropRequest
- func (*QueryZoneDropRequest) Descriptor() ([]byte, []int)
- func (m *QueryZoneDropRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryZoneDropRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryZoneDropRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryZoneDropRequest) ProtoMessage()
- func (m *QueryZoneDropRequest) Reset()
- func (m *QueryZoneDropRequest) Size() (n int)
- func (m *QueryZoneDropRequest) String() string
- func (m *QueryZoneDropRequest) Unmarshal(dAtA []byte) error
- func (m *QueryZoneDropRequest) XXX_DiscardUnknown()
- func (m *QueryZoneDropRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryZoneDropRequest) XXX_Merge(src proto.Message)
- func (m *QueryZoneDropRequest) XXX_Size() int
- func (m *QueryZoneDropRequest) XXX_Unmarshal(b []byte) error
- type QueryZoneDropResponse
- func (*QueryZoneDropResponse) Descriptor() ([]byte, []int)
- func (m *QueryZoneDropResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryZoneDropResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryZoneDropResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryZoneDropResponse) ProtoMessage()
- func (m *QueryZoneDropResponse) Reset()
- func (m *QueryZoneDropResponse) Size() (n int)
- func (m *QueryZoneDropResponse) String() string
- func (m *QueryZoneDropResponse) Unmarshal(dAtA []byte) error
- func (m *QueryZoneDropResponse) XXX_DiscardUnknown()
- func (m *QueryZoneDropResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryZoneDropResponse) XXX_Merge(src proto.Message)
- func (m *QueryZoneDropResponse) XXX_Size() int
- func (m *QueryZoneDropResponse) XXX_Unmarshal(b []byte) error
- type QueryZoneDropsRequest
- func (*QueryZoneDropsRequest) Descriptor() ([]byte, []int)
- func (m *QueryZoneDropsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryZoneDropsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryZoneDropsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryZoneDropsRequest) ProtoMessage()
- func (m *QueryZoneDropsRequest) Reset()
- func (m *QueryZoneDropsRequest) Size() (n int)
- func (m *QueryZoneDropsRequest) String() string
- func (m *QueryZoneDropsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryZoneDropsRequest) XXX_DiscardUnknown()
- func (m *QueryZoneDropsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryZoneDropsRequest) XXX_Merge(src proto.Message)
- func (m *QueryZoneDropsRequest) XXX_Size() int
- func (m *QueryZoneDropsRequest) XXX_Unmarshal(b []byte) error
- type QueryZoneDropsResponse
- func (*QueryZoneDropsResponse) Descriptor() ([]byte, []int)
- func (m *QueryZoneDropsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryZoneDropsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryZoneDropsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryZoneDropsResponse) ProtoMessage()
- func (m *QueryZoneDropsResponse) Reset()
- func (m *QueryZoneDropsResponse) Size() (n int)
- func (m *QueryZoneDropsResponse) String() string
- func (m *QueryZoneDropsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryZoneDropsResponse) XXX_DiscardUnknown()
- func (m *QueryZoneDropsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryZoneDropsResponse) XXX_Merge(src proto.Message)
- func (m *QueryZoneDropsResponse) XXX_Size() int
- func (m *QueryZoneDropsResponse) XXX_Unmarshal(b []byte) error
- type RegisterZoneDropProposal
- func (*RegisterZoneDropProposal) Descriptor() ([]byte, []int)
- func (m *RegisterZoneDropProposal) GetDescription() string
- func (m *RegisterZoneDropProposal) GetTitle() string
- func (m *RegisterZoneDropProposal) Marshal() (dAtA []byte, err error)
- func (m *RegisterZoneDropProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterZoneDropProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *RegisterZoneDropProposal) ProposalRoute() string
- func (m *RegisterZoneDropProposal) ProposalType() string
- func (*RegisterZoneDropProposal) ProtoMessage()
- func (m *RegisterZoneDropProposal) Reset()
- func (m *RegisterZoneDropProposal) Size() (n int)
- func (m *RegisterZoneDropProposal) String() string
- func (m *RegisterZoneDropProposal) Unmarshal(dAtA []byte) error
- func (m *RegisterZoneDropProposal) ValidateBasic() error
- func (m *RegisterZoneDropProposal) XXX_DiscardUnknown()
- func (m *RegisterZoneDropProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterZoneDropProposal) XXX_Merge(src proto.Message)
- func (m *RegisterZoneDropProposal) XXX_Size() int
- func (m *RegisterZoneDropProposal) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type Status
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AccountBalance(ctx context.Context, req *QueryAccountBalanceRequest) (*QueryAccountBalanceResponse, error)
- func (*UnimplementedQueryServer) ClaimRecord(ctx context.Context, req *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error)
- func (*UnimplementedQueryServer) ClaimRecords(ctx context.Context, req *QueryClaimRecordsRequest) (*QueryClaimRecordsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) ZoneDrop(ctx context.Context, req *QueryZoneDropRequest) (*QueryZoneDropResponse, error)
- func (*UnimplementedQueryServer) ZoneDrops(ctx context.Context, req *QueryZoneDropsRequest) (*QueryZoneDropsResponse, error)
- type ZoneDrop
- func (*ZoneDrop) Descriptor() ([]byte, []int)
- func (m *ZoneDrop) Marshal() (dAtA []byte, err error)
- func (m *ZoneDrop) MarshalTo(dAtA []byte) (int, error)
- func (m *ZoneDrop) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ZoneDrop) ProtoMessage()
- func (m *ZoneDrop) Reset()
- func (m *ZoneDrop) Size() (n int)
- func (m *ZoneDrop) String() string
- func (m *ZoneDrop) Unmarshal(dAtA []byte) error
- func (zd *ZoneDrop) ValidateBasic() error
- func (m *ZoneDrop) XXX_DiscardUnknown()
- func (m *ZoneDrop) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ZoneDrop) XXX_Merge(src proto.Message)
- func (m *ZoneDrop) XXX_Size() int
- func (m *ZoneDrop) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeClaim = "airdrop_claim" EventTypeRegisterZoneDrop = "register_zonedrop" AttributeKeyZoneID = "chain_id" )
const ( // ModuleName defines the module name. ModuleName = "airdrop" // StoreKey defines the primary module store key. StoreKey = ModuleName // QuerierRoute is the querier route for the module. QuerierRoute = StoreKey // RouterKey is the message route for the module. RouterKey = ModuleName )
const ( TypeMsgClaim = "claim" TypeMsgIncentivePoolSpend = "incentive-pool-spend" )
const (
ProposalTypeRegisterZoneDrop = "RegisterZoneDrop"
)
Variables ¶
var ( ErrInvalidLengthAirdrop = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAirdrop = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAirdrop = fmt.Errorf("proto: unexpected end of group") )
var ( ErrZoneDropNotFound = sdkioerrors.Register(ModuleName, 1, "zone airdrop not found") ErrClaimRecordNotFound = sdkioerrors.Register(ModuleName, 2, "claim record not found") ErrUnknownStatus = sdkioerrors.Register(ModuleName, 3, "unknown status") ErrUndefinedAttribute = sdkioerrors.Register(ModuleName, 4, "expected attribute not defined") ErrInvalidDuration = sdkioerrors.Register(ModuleName, 5, "invalid duration") ErrActionOutOfBounds = sdkioerrors.Register(ModuleName, 6, fmt.Sprintf("invalid action, expects range [1-%d]", len(Action_value)-1)) ErrActionWeights = sdkioerrors.Register(ModuleName, 7, "sum of action weights must be 1.0") ErrDuplicateZoneDrop = sdkioerrors.Register(ModuleName, 8, "duplicate zone drop") ErrDuplicateClaimRecord = sdkioerrors.Register(ModuleName, 9, "duplicate claim record") ErrAllocationExceeded = sdkioerrors.Register(ModuleName, 10, "claim records allocations exceed zone drop allocation") ErrNoClaimRecords = sdkioerrors.Register(ModuleName, 11, "no claim records for zone drop") ErrZoneDropExpired = sdkioerrors.Register(ModuleName, 12, "nothing to claim, this zone drop has expired") ErrActionCompleted = sdkioerrors.Register(ModuleName, 13, "nothing to claim, action already completed") ErrNegativeAttribute = sdkioerrors.Register(ModuleName, 14, "expected attribute must not be negative") )
x/airdrop 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 ( KeyPrefixZoneDrop = []byte{0x01} KeyPrefixClaimRecord = []byte{0x02} )
var ( ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessages = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMessages = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthProposals = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposals = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposals = 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 Action_name = map[int32]string{
0: "ActionUndefined",
1: "ActionInitialClaim",
2: "ActionDepositT1",
3: "ActionDepositT2",
4: "ActionDepositT3",
5: "ActionDepositT4",
6: "ActionDepositT5",
7: "ActionStakeQCK",
8: "ActionSignalIntent",
9: "ActionQSGov",
10: "ActionGbP",
11: "ActionOsmosis",
}
var Action_value = map[string]int32{
"ActionUndefined": 0,
"ActionInitialClaim": 1,
"ActionDepositT1": 2,
"ActionDepositT2": 3,
"ActionDepositT3": 4,
"ActionDepositT4": 5,
"ActionDepositT5": 6,
"ActionStakeQCK": 7,
"ActionSignalIntent": 8,
"ActionQSGov": 9,
"ActionGbP": 10,
"ActionOsmosis": 11,
}
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var Status_name = map[int32]string{
0: "StatusUndefined",
1: "StatusActive",
2: "StatusFuture",
3: "StatusExpired",
}
var Status_value = map[string]int32{
"StatusUndefined": 0,
"StatusActive": 1,
"StatusFuture": 2,
"StatusExpired": 3,
}
Functions ¶
func Decompress ¶
func GetKeyClaimRecord ¶
func GetKeyClaimRecord(chainID string, addr sdk.AccAddress) []byte
func GetKeyZoneDrop ¶
func GetPrefixClaimRecord ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgHandler ¶
RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMsgHandlerClient ¶
RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.
func RegisterMsgHandlerFromEndpoint ¶
func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMsgHandlerServer ¶
RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer 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 RegisterMsgHandlerFromEndpoint instead.
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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetModuleAddress(name string) sdk.AccAddress
}
AccountKeeper defines the contract required for account APIs.
type Action ¶
type Action int32
Action is used as an enum to denote specific actions or tasks.
const ( // Undefined action (per protobuf spec) ActionUndefined Action = 0 // Initial claim action ActionInitialClaim Action = 1 // Deposit tier 1 (e.g. > 5% of base_value) ActionDepositT1 Action = 2 // Deposit tier 2 (e.g. > 10% of base_value) ActionDepositT2 Action = 3 // Deposit tier 3 (e.g. > 15% of base_value) ActionDepositT3 Action = 4 // Deposit tier 4 (e.g. > 22% of base_value) ActionDepositT4 Action = 5 // Deposit tier 5 (e.g. > 30% of base_value) ActionDepositT5 Action = 6 // Active QCK delegation ActionStakeQCK Action = 7 // Intent is set ActionSignalIntent Action = 8 // Cast governance vote on QS ActionQSGov Action = 9 // Governance By Proxy (GbP): cast vote on remote zone ActionGbP Action = 10 // Provide liquidity on Osmosis ActionOsmosis Action = 11 )
func (Action) EnumDescriptor ¶
type BankKeeper ¶
type BankKeeper interface { SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error BlockedAddr(addr sdk.AccAddress) bool }
BankKeeper defines the contract needed to be fulfilled for banking and supply dependencies.
type ClaimRecord ¶
type ClaimRecord struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // Protobuf3 does not allow enum as map key ActionsCompleted map[int32]*CompletedAction `` /* 198-byte string literal not displayed */ MaxAllocation uint64 `protobuf:"varint,4,opt,name=max_allocation,json=maxAllocation,proto3" json:"max_allocation,omitempty"` BaseValue uint64 `protobuf:"varint,5,opt,name=base_value,json=baseValue,proto3" json:"base_value,omitempty"` }
ClaimRecord represents a users' claim (including completed claims) for a given zone.
func (*ClaimRecord) Descriptor ¶
func (*ClaimRecord) Descriptor() ([]byte, []int)
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) ValidateBasic ¶
func (cr *ClaimRecord) ValidateBasic() 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 CompletedAction ¶
type CompletedAction struct { CompleteTime time.Time `protobuf:"bytes,1,opt,name=complete_time,json=completeTime,proto3,stdtime" json:"complete_time" yaml:"complete_time"` ClaimAmount uint64 `protobuf:"varint,2,opt,name=claim_amount,json=claimAmount,proto3" json:"claim_amount,omitempty"` }
CompletedAction represents a claim action completed by the user.
func (*CompletedAction) Descriptor ¶
func (*CompletedAction) Descriptor() ([]byte, []int)
func (*CompletedAction) Marshal ¶
func (m *CompletedAction) Marshal() (dAtA []byte, err error)
func (*CompletedAction) MarshalToSizedBuffer ¶
func (m *CompletedAction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CompletedAction) ProtoMessage ¶
func (*CompletedAction) ProtoMessage()
func (*CompletedAction) Reset ¶
func (m *CompletedAction) Reset()
func (*CompletedAction) Size ¶
func (m *CompletedAction) Size() (n int)
func (*CompletedAction) String ¶
func (m *CompletedAction) String() string
func (*CompletedAction) Unmarshal ¶
func (m *CompletedAction) Unmarshal(dAtA []byte) error
func (*CompletedAction) XXX_DiscardUnknown ¶
func (m *CompletedAction) XXX_DiscardUnknown()
func (*CompletedAction) XXX_Marshal ¶
func (m *CompletedAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CompletedAction) XXX_Merge ¶
func (m *CompletedAction) XXX_Merge(src proto.Message)
func (*CompletedAction) XXX_Size ¶
func (m *CompletedAction) XXX_Size() int
func (*CompletedAction) XXX_Unmarshal ¶
func (m *CompletedAction) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` ZoneDrops []*ZoneDrop `protobuf:"bytes,2,rep,name=zone_drops,json=zoneDrops,proto3" json:"zone_drops,omitempty"` ClaimRecords []*ClaimRecord `protobuf:"bytes,3,rep,name=claim_records,json=claimRecords,proto3" json:"claim_records,omitempty"` }
GenesisState defines the airdrop module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns the default ics genesis state.
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState
GetGenesisStateFromAppState returns x/airdrop GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params, zoneDrops []*ZoneDrop, claimRecords []*ClaimRecord) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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 validates the provided genesis state to ensure the expected invariants hold.
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 InterchainStakingKeeper ¶
type InterchainStakingKeeper interface { GetZone(ctx sdk.Context, chainID string) (icstypes.Zone, bool) GetDelegatorIntent(ctx sdk.Context, zone *icstypes.Zone, delegator string, snapshot bool) (icstypes.DelegatorIntent, bool) IterateZones(ctx sdk.Context, fn func(index int64, zone *icstypes.Zone) (stop bool)) UserZoneReceipts(ctx sdk.Context, zone *icstypes.Zone, addr sdk.AccAddress) ([]icstypes.Receipt, error) }
type MsgClaim ¶
type MsgClaim struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"` Action int64 `protobuf:"varint,2,opt,name=action,proto3" json:"action,omitempty" yaml:"action"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` Proofs []*types.Proof `protobuf:"bytes,4,rep,name=proofs,proto3" json:"proofs,omitempty" yaml:"proofs"` }
func NewMsgClaim ¶
NewMsgClaim constructs a msg to claim from a zone airdrop.
func (*MsgClaim) Descriptor ¶
func (MsgClaim) GetSignBytes ¶
GetSignBytes implements Msg.
func (MsgClaim) GetSigners ¶
func (msg MsgClaim) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
func (*MsgClaim) MarshalToSizedBuffer ¶
func (*MsgClaim) ProtoMessage ¶
func (*MsgClaim) ProtoMessage()
func (MsgClaim) ValidateBasic ¶
ValidateBasic implements Msg.
func (*MsgClaim) XXX_DiscardUnknown ¶
func (m *MsgClaim) XXX_DiscardUnknown()
func (*MsgClaim) XXX_Marshal ¶
func (*MsgClaim) XXX_Unmarshal ¶
type MsgClaimResponse ¶
type MsgClaimResponse struct {
Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty" yaml:"amount"`
}
func (*MsgClaimResponse) Descriptor ¶
func (*MsgClaimResponse) Descriptor() ([]byte, []int)
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 { Claim(ctx context.Context, in *MsgClaim, opts ...grpc.CallOption) (*MsgClaimResponse, error) IncentivePoolSpend(ctx context.Context, in *MsgIncentivePoolSpend, opts ...grpc.CallOption) (*MsgIncentivePoolSpendResponse, 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 MsgIncentivePoolSpend ¶
type MsgIncentivePoolSpend struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
MsgIncentivePoolSpend represents a message to send coins from one account to another.
func NewMsgIncentivePoolSpend ¶
func NewMsgIncentivePoolSpend(authority, toAddress sdk.Address, amt sdk.Coins) *MsgIncentivePoolSpend
NewMsgIncentivePoolSpend constructs a msg to claim from a zone airdrop.
func (*MsgIncentivePoolSpend) Descriptor ¶
func (*MsgIncentivePoolSpend) Descriptor() ([]byte, []int)
func (MsgIncentivePoolSpend) GetSignBytes ¶
func (msg MsgIncentivePoolSpend) GetSignBytes() []byte
GetSignBytes implements Msg.
func (MsgIncentivePoolSpend) GetSigners ¶
func (msg MsgIncentivePoolSpend) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
func (*MsgIncentivePoolSpend) Marshal ¶
func (m *MsgIncentivePoolSpend) Marshal() (dAtA []byte, err error)
func (*MsgIncentivePoolSpend) MarshalTo ¶
func (m *MsgIncentivePoolSpend) MarshalTo(dAtA []byte) (int, error)
func (*MsgIncentivePoolSpend) MarshalToSizedBuffer ¶
func (m *MsgIncentivePoolSpend) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIncentivePoolSpend) ProtoMessage ¶
func (*MsgIncentivePoolSpend) ProtoMessage()
func (*MsgIncentivePoolSpend) Reset ¶
func (m *MsgIncentivePoolSpend) Reset()
func (MsgIncentivePoolSpend) Route ¶
func (msg MsgIncentivePoolSpend) Route() string
Route implements Msg.
func (*MsgIncentivePoolSpend) Size ¶
func (m *MsgIncentivePoolSpend) Size() (n int)
func (*MsgIncentivePoolSpend) String ¶
func (m *MsgIncentivePoolSpend) String() string
func (MsgIncentivePoolSpend) Type ¶
func (msg MsgIncentivePoolSpend) Type() string
Type implements Msg.
func (*MsgIncentivePoolSpend) Unmarshal ¶
func (m *MsgIncentivePoolSpend) Unmarshal(dAtA []byte) error
func (MsgIncentivePoolSpend) ValidateBasic ¶
func (msg MsgIncentivePoolSpend) ValidateBasic() error
ValidateBasic implements Msg.
func (*MsgIncentivePoolSpend) XXX_DiscardUnknown ¶
func (m *MsgIncentivePoolSpend) XXX_DiscardUnknown()
func (*MsgIncentivePoolSpend) XXX_Marshal ¶
func (m *MsgIncentivePoolSpend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIncentivePoolSpend) XXX_Merge ¶
func (m *MsgIncentivePoolSpend) XXX_Merge(src proto.Message)
func (*MsgIncentivePoolSpend) XXX_Size ¶
func (m *MsgIncentivePoolSpend) XXX_Size() int
func (*MsgIncentivePoolSpend) XXX_Unmarshal ¶
func (m *MsgIncentivePoolSpend) XXX_Unmarshal(b []byte) error
type MsgIncentivePoolSpendResponse ¶
type MsgIncentivePoolSpendResponse struct { }
MsgIncentivePoolSpendResponse defines the MsgIncentivePoolSpend response type.
func (*MsgIncentivePoolSpendResponse) Descriptor ¶
func (*MsgIncentivePoolSpendResponse) Descriptor() ([]byte, []int)
func (*MsgIncentivePoolSpendResponse) Marshal ¶
func (m *MsgIncentivePoolSpendResponse) Marshal() (dAtA []byte, err error)
func (*MsgIncentivePoolSpendResponse) MarshalTo ¶
func (m *MsgIncentivePoolSpendResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgIncentivePoolSpendResponse) MarshalToSizedBuffer ¶
func (m *MsgIncentivePoolSpendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIncentivePoolSpendResponse) ProtoMessage ¶
func (*MsgIncentivePoolSpendResponse) ProtoMessage()
func (*MsgIncentivePoolSpendResponse) Reset ¶
func (m *MsgIncentivePoolSpendResponse) Reset()
func (*MsgIncentivePoolSpendResponse) Size ¶
func (m *MsgIncentivePoolSpendResponse) Size() (n int)
func (*MsgIncentivePoolSpendResponse) String ¶
func (m *MsgIncentivePoolSpendResponse) String() string
func (*MsgIncentivePoolSpendResponse) Unmarshal ¶
func (m *MsgIncentivePoolSpendResponse) Unmarshal(dAtA []byte) error
func (*MsgIncentivePoolSpendResponse) XXX_DiscardUnknown ¶
func (m *MsgIncentivePoolSpendResponse) XXX_DiscardUnknown()
func (*MsgIncentivePoolSpendResponse) XXX_Marshal ¶
func (m *MsgIncentivePoolSpendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIncentivePoolSpendResponse) XXX_Merge ¶
func (m *MsgIncentivePoolSpendResponse) XXX_Merge(src proto.Message)
func (*MsgIncentivePoolSpendResponse) XXX_Size ¶
func (m *MsgIncentivePoolSpendResponse) XXX_Size() int
func (*MsgIncentivePoolSpendResponse) XXX_Unmarshal ¶
func (m *MsgIncentivePoolSpendResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { Claim(context.Context, *MsgClaim) (*MsgClaimResponse, error) IncentivePoolSpend(context.Context, *MsgIncentivePoolSpend) (*MsgIncentivePoolSpendResponse, error) }
MsgServer is the server API for Msg service.
type Params ¶
type Params struct { }
Params holds parameters for the airdrop module.
func (*Params) Descriptor ¶
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 ParticipationRewardsKeeper ¶
type ParticipationRewardsKeeper interface {
GetProtocolData(ctx sdk.Context, pdType participationrewardstypes.ProtocolDataType, key string) (participationrewardstypes.ProtocolData, bool)
}
type QueryAccountBalanceRequest ¶
type QueryAccountBalanceRequest struct { // chain_id identifies the zone. ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"` }
QueryAccountBalanceRequest is the request type for Query/AccountBalance RPC method.
func (*QueryAccountBalanceRequest) Descriptor ¶
func (*QueryAccountBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryAccountBalanceRequest) Marshal ¶
func (m *QueryAccountBalanceRequest) Marshal() (dAtA []byte, err error)
func (*QueryAccountBalanceRequest) MarshalTo ¶
func (m *QueryAccountBalanceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountBalanceRequest) MarshalToSizedBuffer ¶
func (m *QueryAccountBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountBalanceRequest) ProtoMessage ¶
func (*QueryAccountBalanceRequest) ProtoMessage()
func (*QueryAccountBalanceRequest) Reset ¶
func (m *QueryAccountBalanceRequest) Reset()
func (*QueryAccountBalanceRequest) Size ¶
func (m *QueryAccountBalanceRequest) Size() (n int)
func (*QueryAccountBalanceRequest) String ¶
func (m *QueryAccountBalanceRequest) String() string
func (*QueryAccountBalanceRequest) Unmarshal ¶
func (m *QueryAccountBalanceRequest) Unmarshal(dAtA []byte) error
func (*QueryAccountBalanceRequest) XXX_DiscardUnknown ¶
func (m *QueryAccountBalanceRequest) XXX_DiscardUnknown()
func (*QueryAccountBalanceRequest) XXX_Marshal ¶
func (m *QueryAccountBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountBalanceRequest) XXX_Merge ¶
func (m *QueryAccountBalanceRequest) XXX_Merge(src proto.Message)
func (*QueryAccountBalanceRequest) XXX_Size ¶
func (m *QueryAccountBalanceRequest) XXX_Size() int
func (*QueryAccountBalanceRequest) XXX_Unmarshal ¶
func (m *QueryAccountBalanceRequest) XXX_Unmarshal(b []byte) error
type QueryAccountBalanceResponse ¶
type QueryAccountBalanceResponse struct {
AccountBalance *types.Coin `` /* 126-byte string literal not displayed */
}
QueryAccountBalanceResponse is the response type for Query/AccountBalance RPC method.
func (*QueryAccountBalanceResponse) Descriptor ¶
func (*QueryAccountBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryAccountBalanceResponse) Marshal ¶
func (m *QueryAccountBalanceResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccountBalanceResponse) MarshalTo ¶
func (m *QueryAccountBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountBalanceResponse) MarshalToSizedBuffer ¶
func (m *QueryAccountBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountBalanceResponse) ProtoMessage ¶
func (*QueryAccountBalanceResponse) ProtoMessage()
func (*QueryAccountBalanceResponse) Reset ¶
func (m *QueryAccountBalanceResponse) Reset()
func (*QueryAccountBalanceResponse) Size ¶
func (m *QueryAccountBalanceResponse) Size() (n int)
func (*QueryAccountBalanceResponse) String ¶
func (m *QueryAccountBalanceResponse) String() string
func (*QueryAccountBalanceResponse) Unmarshal ¶
func (m *QueryAccountBalanceResponse) Unmarshal(dAtA []byte) error
func (*QueryAccountBalanceResponse) XXX_DiscardUnknown ¶
func (m *QueryAccountBalanceResponse) XXX_DiscardUnknown()
func (*QueryAccountBalanceResponse) XXX_Marshal ¶
func (m *QueryAccountBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountBalanceResponse) XXX_Merge ¶
func (m *QueryAccountBalanceResponse) XXX_Merge(src proto.Message)
func (*QueryAccountBalanceResponse) XXX_Size ¶
func (m *QueryAccountBalanceResponse) XXX_Size() int
func (*QueryAccountBalanceResponse) XXX_Unmarshal ¶
func (m *QueryAccountBalanceResponse) XXX_Unmarshal(b []byte) error
type QueryClaimRecordRequest ¶
type QueryClaimRecordRequest struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` }
QueryClaimRecordRequest is the request type for Query/ClaimRecord RPC method.
func (*QueryClaimRecordRequest) Descriptor ¶
func (*QueryClaimRecordRequest) Descriptor() ([]byte, []int)
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,omitempty" yaml:"claim_record"`
}
QueryClaimRecordResponse is the response type for Query/ClaimRecord RPC method.
func (*QueryClaimRecordResponse) Descriptor ¶
func (*QueryClaimRecordResponse) Descriptor() ([]byte, []int)
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 QueryClaimRecordsRequest ¶
type QueryClaimRecordsRequest struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryClaimRecordsRequest is the request type for Query/ClaimRecords RPC method.
func (*QueryClaimRecordsRequest) Descriptor ¶
func (*QueryClaimRecordsRequest) Descriptor() ([]byte, []int)
func (*QueryClaimRecordsRequest) Marshal ¶
func (m *QueryClaimRecordsRequest) Marshal() (dAtA []byte, err error)
func (*QueryClaimRecordsRequest) MarshalTo ¶
func (m *QueryClaimRecordsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimRecordsRequest) MarshalToSizedBuffer ¶
func (m *QueryClaimRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimRecordsRequest) ProtoMessage ¶
func (*QueryClaimRecordsRequest) ProtoMessage()
func (*QueryClaimRecordsRequest) Reset ¶
func (m *QueryClaimRecordsRequest) Reset()
func (*QueryClaimRecordsRequest) Size ¶
func (m *QueryClaimRecordsRequest) Size() (n int)
func (*QueryClaimRecordsRequest) String ¶
func (m *QueryClaimRecordsRequest) String() string
func (*QueryClaimRecordsRequest) Unmarshal ¶
func (m *QueryClaimRecordsRequest) Unmarshal(dAtA []byte) error
func (*QueryClaimRecordsRequest) XXX_DiscardUnknown ¶
func (m *QueryClaimRecordsRequest) XXX_DiscardUnknown()
func (*QueryClaimRecordsRequest) XXX_Marshal ¶
func (m *QueryClaimRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimRecordsRequest) XXX_Merge ¶
func (m *QueryClaimRecordsRequest) XXX_Merge(src proto.Message)
func (*QueryClaimRecordsRequest) XXX_Size ¶
func (m *QueryClaimRecordsRequest) XXX_Size() int
func (*QueryClaimRecordsRequest) XXX_Unmarshal ¶
func (m *QueryClaimRecordsRequest) XXX_Unmarshal(b []byte) error
type QueryClaimRecordsResponse ¶
type QueryClaimRecordsResponse struct { ClaimRecords []ClaimRecord `protobuf:"bytes,1,rep,name=claim_records,json=claimRecords,proto3" json:"claim_records"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryClaimRecordsResponse is the response type for Query/ClaimRecords RPC method.
func (*QueryClaimRecordsResponse) Descriptor ¶
func (*QueryClaimRecordsResponse) Descriptor() ([]byte, []int)
func (*QueryClaimRecordsResponse) Marshal ¶
func (m *QueryClaimRecordsResponse) Marshal() (dAtA []byte, err error)
func (*QueryClaimRecordsResponse) MarshalTo ¶
func (m *QueryClaimRecordsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimRecordsResponse) MarshalToSizedBuffer ¶
func (m *QueryClaimRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimRecordsResponse) ProtoMessage ¶
func (*QueryClaimRecordsResponse) ProtoMessage()
func (*QueryClaimRecordsResponse) Reset ¶
func (m *QueryClaimRecordsResponse) Reset()
func (*QueryClaimRecordsResponse) Size ¶
func (m *QueryClaimRecordsResponse) Size() (n int)
func (*QueryClaimRecordsResponse) String ¶
func (m *QueryClaimRecordsResponse) String() string
func (*QueryClaimRecordsResponse) Unmarshal ¶
func (m *QueryClaimRecordsResponse) Unmarshal(dAtA []byte) error
func (*QueryClaimRecordsResponse) XXX_DiscardUnknown ¶
func (m *QueryClaimRecordsResponse) XXX_DiscardUnknown()
func (*QueryClaimRecordsResponse) XXX_Marshal ¶
func (m *QueryClaimRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimRecordsResponse) XXX_Merge ¶
func (m *QueryClaimRecordsResponse) XXX_Merge(src proto.Message)
func (*QueryClaimRecordsResponse) XXX_Size ¶
func (m *QueryClaimRecordsResponse) XXX_Size() int
func (*QueryClaimRecordsResponse) XXX_Unmarshal ¶
func (m *QueryClaimRecordsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params returns the total set of airdrop parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // ZoneDrop returns the details of the specified zone airdrop. ZoneDrop(ctx context.Context, in *QueryZoneDropRequest, opts ...grpc.CallOption) (*QueryZoneDropResponse, error) // AccountBalance returns the module account balance of the specified zone. AccountBalance(ctx context.Context, in *QueryAccountBalanceRequest, opts ...grpc.CallOption) (*QueryAccountBalanceResponse, error) // ZoneDrops returns all zone airdrops of the specified status. ZoneDrops(ctx context.Context, in *QueryZoneDropsRequest, opts ...grpc.CallOption) (*QueryZoneDropsResponse, error) // ClaimRecord returns the claim record that corresponds to the given zone and // address. ClaimRecord(ctx context.Context, in *QueryClaimRecordRequest, opts ...grpc.CallOption) (*QueryClaimRecordResponse, error) // ClaimRecords returns all the claim records of the given zone. ClaimRecords(ctx context.Context, in *QueryClaimRecordsRequest, opts ...grpc.CallOption) (*QueryClaimRecordsResponse, 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 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) 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 { // Params returns the total set of airdrop parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // ZoneDrop returns the details of the specified zone airdrop. ZoneDrop(context.Context, *QueryZoneDropRequest) (*QueryZoneDropResponse, error) // AccountBalance returns the module account balance of the specified zone. AccountBalance(context.Context, *QueryAccountBalanceRequest) (*QueryAccountBalanceResponse, error) // ZoneDrops returns all zone airdrops of the specified status. ZoneDrops(context.Context, *QueryZoneDropsRequest) (*QueryZoneDropsResponse, error) // ClaimRecord returns the claim record that corresponds to the given zone and // address. ClaimRecord(context.Context, *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error) // ClaimRecords returns all the claim records of the given zone. ClaimRecords(context.Context, *QueryClaimRecordsRequest) (*QueryClaimRecordsResponse, error) }
QueryServer is the server API for Query service.
type QueryZoneDropRequest ¶
type QueryZoneDropRequest struct { // chain_id identifies the zone. ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"` }
QueryZoneDropRequest is the request type for Query/ZoneDrop RPC method.
func (*QueryZoneDropRequest) Descriptor ¶
func (*QueryZoneDropRequest) Descriptor() ([]byte, []int)
func (*QueryZoneDropRequest) Marshal ¶
func (m *QueryZoneDropRequest) Marshal() (dAtA []byte, err error)
func (*QueryZoneDropRequest) MarshalTo ¶
func (m *QueryZoneDropRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryZoneDropRequest) MarshalToSizedBuffer ¶
func (m *QueryZoneDropRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryZoneDropRequest) ProtoMessage ¶
func (*QueryZoneDropRequest) ProtoMessage()
func (*QueryZoneDropRequest) Reset ¶
func (m *QueryZoneDropRequest) Reset()
func (*QueryZoneDropRequest) Size ¶
func (m *QueryZoneDropRequest) Size() (n int)
func (*QueryZoneDropRequest) String ¶
func (m *QueryZoneDropRequest) String() string
func (*QueryZoneDropRequest) Unmarshal ¶
func (m *QueryZoneDropRequest) Unmarshal(dAtA []byte) error
func (*QueryZoneDropRequest) XXX_DiscardUnknown ¶
func (m *QueryZoneDropRequest) XXX_DiscardUnknown()
func (*QueryZoneDropRequest) XXX_Marshal ¶
func (m *QueryZoneDropRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryZoneDropRequest) XXX_Merge ¶
func (m *QueryZoneDropRequest) XXX_Merge(src proto.Message)
func (*QueryZoneDropRequest) XXX_Size ¶
func (m *QueryZoneDropRequest) XXX_Size() int
func (*QueryZoneDropRequest) XXX_Unmarshal ¶
func (m *QueryZoneDropRequest) XXX_Unmarshal(b []byte) error
type QueryZoneDropResponse ¶
type QueryZoneDropResponse struct {
ZoneDrop ZoneDrop `protobuf:"bytes,1,opt,name=zone_drop,json=zoneDrop,proto3" json:"zone_drop"`
}
QueryZoneDropResponse is the response type for Query/ZoneDrop RPC method.
func (*QueryZoneDropResponse) Descriptor ¶
func (*QueryZoneDropResponse) Descriptor() ([]byte, []int)
func (*QueryZoneDropResponse) Marshal ¶
func (m *QueryZoneDropResponse) Marshal() (dAtA []byte, err error)
func (*QueryZoneDropResponse) MarshalTo ¶
func (m *QueryZoneDropResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryZoneDropResponse) MarshalToSizedBuffer ¶
func (m *QueryZoneDropResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryZoneDropResponse) ProtoMessage ¶
func (*QueryZoneDropResponse) ProtoMessage()
func (*QueryZoneDropResponse) Reset ¶
func (m *QueryZoneDropResponse) Reset()
func (*QueryZoneDropResponse) Size ¶
func (m *QueryZoneDropResponse) Size() (n int)
func (*QueryZoneDropResponse) String ¶
func (m *QueryZoneDropResponse) String() string
func (*QueryZoneDropResponse) Unmarshal ¶
func (m *QueryZoneDropResponse) Unmarshal(dAtA []byte) error
func (*QueryZoneDropResponse) XXX_DiscardUnknown ¶
func (m *QueryZoneDropResponse) XXX_DiscardUnknown()
func (*QueryZoneDropResponse) XXX_Marshal ¶
func (m *QueryZoneDropResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryZoneDropResponse) XXX_Merge ¶
func (m *QueryZoneDropResponse) XXX_Merge(src proto.Message)
func (*QueryZoneDropResponse) XXX_Size ¶
func (m *QueryZoneDropResponse) XXX_Size() int
func (*QueryZoneDropResponse) XXX_Unmarshal ¶
func (m *QueryZoneDropResponse) XXX_Unmarshal(b []byte) error
type QueryZoneDropsRequest ¶
type QueryZoneDropsRequest struct { // status enables to query zone airdrops matching a given status: // - Active // - Future // - Expired Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=quicksilver.airdrop.v1.Status" json:"status,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryZoneDropsRequest is the request type for Query/ZoneDrops RPC method.
func (*QueryZoneDropsRequest) Descriptor ¶
func (*QueryZoneDropsRequest) Descriptor() ([]byte, []int)
func (*QueryZoneDropsRequest) Marshal ¶
func (m *QueryZoneDropsRequest) Marshal() (dAtA []byte, err error)
func (*QueryZoneDropsRequest) MarshalTo ¶
func (m *QueryZoneDropsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryZoneDropsRequest) MarshalToSizedBuffer ¶
func (m *QueryZoneDropsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryZoneDropsRequest) ProtoMessage ¶
func (*QueryZoneDropsRequest) ProtoMessage()
func (*QueryZoneDropsRequest) Reset ¶
func (m *QueryZoneDropsRequest) Reset()
func (*QueryZoneDropsRequest) Size ¶
func (m *QueryZoneDropsRequest) Size() (n int)
func (*QueryZoneDropsRequest) String ¶
func (m *QueryZoneDropsRequest) String() string
func (*QueryZoneDropsRequest) Unmarshal ¶
func (m *QueryZoneDropsRequest) Unmarshal(dAtA []byte) error
func (*QueryZoneDropsRequest) XXX_DiscardUnknown ¶
func (m *QueryZoneDropsRequest) XXX_DiscardUnknown()
func (*QueryZoneDropsRequest) XXX_Marshal ¶
func (m *QueryZoneDropsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryZoneDropsRequest) XXX_Merge ¶
func (m *QueryZoneDropsRequest) XXX_Merge(src proto.Message)
func (*QueryZoneDropsRequest) XXX_Size ¶
func (m *QueryZoneDropsRequest) XXX_Size() int
func (*QueryZoneDropsRequest) XXX_Unmarshal ¶
func (m *QueryZoneDropsRequest) XXX_Unmarshal(b []byte) error
type QueryZoneDropsResponse ¶
type QueryZoneDropsResponse struct { ZoneDrops []ZoneDrop `protobuf:"bytes,1,rep,name=zone_drops,json=zoneDrops,proto3" json:"zone_drops"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryZoneDropResponse is the response type for Query/ZoneDrops RPC method.
func (*QueryZoneDropsResponse) Descriptor ¶
func (*QueryZoneDropsResponse) Descriptor() ([]byte, []int)
func (*QueryZoneDropsResponse) Marshal ¶
func (m *QueryZoneDropsResponse) Marshal() (dAtA []byte, err error)
func (*QueryZoneDropsResponse) MarshalTo ¶
func (m *QueryZoneDropsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryZoneDropsResponse) MarshalToSizedBuffer ¶
func (m *QueryZoneDropsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryZoneDropsResponse) ProtoMessage ¶
func (*QueryZoneDropsResponse) ProtoMessage()
func (*QueryZoneDropsResponse) Reset ¶
func (m *QueryZoneDropsResponse) Reset()
func (*QueryZoneDropsResponse) Size ¶
func (m *QueryZoneDropsResponse) Size() (n int)
func (*QueryZoneDropsResponse) String ¶
func (m *QueryZoneDropsResponse) String() string
func (*QueryZoneDropsResponse) Unmarshal ¶
func (m *QueryZoneDropsResponse) Unmarshal(dAtA []byte) error
func (*QueryZoneDropsResponse) XXX_DiscardUnknown ¶
func (m *QueryZoneDropsResponse) XXX_DiscardUnknown()
func (*QueryZoneDropsResponse) XXX_Marshal ¶
func (m *QueryZoneDropsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryZoneDropsResponse) XXX_Merge ¶
func (m *QueryZoneDropsResponse) XXX_Merge(src proto.Message)
func (*QueryZoneDropsResponse) XXX_Size ¶
func (m *QueryZoneDropsResponse) XXX_Size() int
func (*QueryZoneDropsResponse) XXX_Unmarshal ¶
func (m *QueryZoneDropsResponse) XXX_Unmarshal(b []byte) error
type RegisterZoneDropProposal ¶
type RegisterZoneDropProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` ZoneDrop *ZoneDrop `protobuf:"bytes,3,opt,name=zone_drop,json=zoneDrop,proto3" json:"zone_drop,omitempty" yaml:"zone_drop"` ClaimRecords []byte `protobuf:"bytes,4,opt,name=claim_records,json=claimRecords,proto3" json:"claim_records,omitempty" yaml:"claim_records"` }
func (*RegisterZoneDropProposal) Descriptor ¶
func (*RegisterZoneDropProposal) Descriptor() ([]byte, []int)
func (*RegisterZoneDropProposal) GetDescription ¶
func (m *RegisterZoneDropProposal) GetDescription() string
func (*RegisterZoneDropProposal) GetTitle ¶
func (m *RegisterZoneDropProposal) GetTitle() string
func (*RegisterZoneDropProposal) Marshal ¶
func (m *RegisterZoneDropProposal) Marshal() (dAtA []byte, err error)
func (*RegisterZoneDropProposal) MarshalTo ¶
func (m *RegisterZoneDropProposal) MarshalTo(dAtA []byte) (int, error)
func (*RegisterZoneDropProposal) MarshalToSizedBuffer ¶
func (m *RegisterZoneDropProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RegisterZoneDropProposal) ProposalRoute ¶
func (m *RegisterZoneDropProposal) ProposalRoute() string
func (*RegisterZoneDropProposal) ProposalType ¶
func (m *RegisterZoneDropProposal) ProposalType() string
func (*RegisterZoneDropProposal) ProtoMessage ¶
func (*RegisterZoneDropProposal) ProtoMessage()
func (*RegisterZoneDropProposal) Reset ¶
func (m *RegisterZoneDropProposal) Reset()
func (*RegisterZoneDropProposal) Size ¶
func (m *RegisterZoneDropProposal) Size() (n int)
func (*RegisterZoneDropProposal) String ¶
func (m *RegisterZoneDropProposal) String() string
String implements the Stringer interface.
func (*RegisterZoneDropProposal) Unmarshal ¶
func (m *RegisterZoneDropProposal) Unmarshal(dAtA []byte) error
func (*RegisterZoneDropProposal) ValidateBasic ¶
func (m *RegisterZoneDropProposal) ValidateBasic() error
ValidateBasic runs basic stateless validity checks.
ZoneDrop is validated in HandleRegisterZoneDropProposal. ClaimRecords are validated in HandleRegisterZoneDropProposal.
HandleRegisterZoneDropProposal does validation checks as ZoneDrop is related to ClaimRecords. ClaimRecords are in compressed []byte slice format and must be decompressed in order to be validated.
func (*RegisterZoneDropProposal) XXX_DiscardUnknown ¶
func (m *RegisterZoneDropProposal) XXX_DiscardUnknown()
func (*RegisterZoneDropProposal) XXX_Marshal ¶
func (m *RegisterZoneDropProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterZoneDropProposal) XXX_Merge ¶
func (m *RegisterZoneDropProposal) XXX_Merge(src proto.Message)
func (*RegisterZoneDropProposal) XXX_Size ¶
func (m *RegisterZoneDropProposal) XXX_Size() int
func (*RegisterZoneDropProposal) XXX_Unmarshal ¶
func (m *RegisterZoneDropProposal) XXX_Unmarshal(b []byte) error
type StakingKeeper ¶
type StakingKeeper interface { BondDenom(ctx sdk.Context) string GetDelegatorBonded(ctx sdk.Context, delegator sdk.AccAddress) sdkmath.Int }
StakingKeeper defines the contract for staking APIs.
type Status ¶
type Status int32
Status is used as an enum to denote zone status.
func (Status) EnumDescriptor ¶
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)
func (*UnimplementedMsgServer) IncentivePoolSpend ¶
func (*UnimplementedMsgServer) IncentivePoolSpend(ctx context.Context, req *MsgIncentivePoolSpend) (*MsgIncentivePoolSpendResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AccountBalance ¶
func (*UnimplementedQueryServer) AccountBalance(ctx context.Context, req *QueryAccountBalanceRequest) (*QueryAccountBalanceResponse, error)
func (*UnimplementedQueryServer) ClaimRecord ¶
func (*UnimplementedQueryServer) ClaimRecord(ctx context.Context, req *QueryClaimRecordRequest) (*QueryClaimRecordResponse, error)
func (*UnimplementedQueryServer) ClaimRecords ¶
func (*UnimplementedQueryServer) ClaimRecords(ctx context.Context, req *QueryClaimRecordsRequest) (*QueryClaimRecordsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) ZoneDrop ¶
func (*UnimplementedQueryServer) ZoneDrop(ctx context.Context, req *QueryZoneDropRequest) (*QueryZoneDropResponse, error)
func (*UnimplementedQueryServer) ZoneDrops ¶
func (*UnimplementedQueryServer) ZoneDrops(ctx context.Context, req *QueryZoneDropsRequest) (*QueryZoneDropsResponse, error)
type ZoneDrop ¶
type ZoneDrop struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` StartTime time.Time `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` Duration time.Duration `protobuf:"bytes,3,opt,name=duration,proto3,stdduration" json:"duration,omitempty" yaml:"duration"` Decay time.Duration `protobuf:"bytes,4,opt,name=decay,proto3,stdduration" json:"decay,omitempty" yaml:"decay"` Allocation uint64 `protobuf:"varint,5,opt,name=allocation,proto3" json:"allocation,omitempty"` Actions []github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,6,rep,name=actions,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"actions"` IsConcluded bool `protobuf:"varint,7,opt,name=is_concluded,json=isConcluded,proto3" json:"is_concluded,omitempty"` }
ZoneDrop represents an airdrop for a specific zone.
func (*ZoneDrop) Descriptor ¶
func (*ZoneDrop) MarshalToSizedBuffer ¶
func (*ZoneDrop) ProtoMessage ¶
func (*ZoneDrop) ProtoMessage()
func (*ZoneDrop) ValidateBasic ¶
func (*ZoneDrop) XXX_DiscardUnknown ¶
func (m *ZoneDrop) XXX_DiscardUnknown()