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 RegisterInterfaces(registry codectypes.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)
- func ValidateChannels(i interface{}) error
- type AccountKeeper
- type Action
- type BankKeeper
- type ChannelKeeper
- type Claim
- func (*Claim) Descriptor() ([]byte, []int)
- func (m *Claim) GetAction() Action
- func (m *Claim) GetCompleted() bool
- func (m *Claim) Marshal() (dAtA []byte, err error)
- func (m *Claim) MarshalTo(dAtA []byte) (int, error)
- func (m *Claim) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Claim) ProtoMessage()
- func (m *Claim) Reset()
- func (m *Claim) Size() (n int)
- func (m *Claim) String() string
- func (m *Claim) Unmarshal(dAtA []byte) error
- func (m *Claim) XXX_DiscardUnknown()
- func (m *Claim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Claim) XXX_Merge(src proto.Message)
- func (m *Claim) XXX_Size() int
- func (m *Claim) XXX_Unmarshal(b []byte) error
- type ClaimsRecord
- func (*ClaimsRecord) Descriptor() ([]byte, []int)
- func (m *ClaimsRecord) GetActionsCompleted() []bool
- func (cr ClaimsRecord) HasClaimedAction(action Action) bool
- func (cr ClaimsRecord) HasClaimedAll() bool
- func (cr ClaimsRecord) HasClaimedAny() bool
- func (cr *ClaimsRecord) MarkClaimed(action Action)
- func (m *ClaimsRecord) Marshal() (dAtA []byte, err error)
- func (m *ClaimsRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *ClaimsRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClaimsRecord) ProtoMessage()
- func (m *ClaimsRecord) Reset()
- func (m *ClaimsRecord) Size() (n int)
- func (m *ClaimsRecord) String() string
- func (m *ClaimsRecord) Unmarshal(dAtA []byte) error
- func (cr ClaimsRecord) Validate() error
- func (m *ClaimsRecord) XXX_DiscardUnknown()
- func (m *ClaimsRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClaimsRecord) XXX_Merge(src proto.Message)
- func (m *ClaimsRecord) XXX_Size() int
- func (m *ClaimsRecord) XXX_Unmarshal(b []byte) error
- type ClaimsRecordAddress
- func (*ClaimsRecordAddress) Descriptor() ([]byte, []int)
- func (m *ClaimsRecordAddress) GetActionsCompleted() []bool
- func (m *ClaimsRecordAddress) GetAddress() string
- func (m *ClaimsRecordAddress) Marshal() (dAtA []byte, err error)
- func (m *ClaimsRecordAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *ClaimsRecordAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClaimsRecordAddress) ProtoMessage()
- func (m *ClaimsRecordAddress) Reset()
- func (m *ClaimsRecordAddress) Size() (n int)
- func (m *ClaimsRecordAddress) String() string
- func (m *ClaimsRecordAddress) Unmarshal(dAtA []byte) error
- func (cra ClaimsRecordAddress) Validate() error
- func (m *ClaimsRecordAddress) XXX_DiscardUnknown()
- func (m *ClaimsRecordAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClaimsRecordAddress) XXX_Merge(src proto.Message)
- func (m *ClaimsRecordAddress) XXX_Size() int
- func (m *ClaimsRecordAddress) XXX_Unmarshal(b []byte) error
- type DistrKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetClaimsRecords() []ClaimsRecordAddress
- 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 LegacyParams
- type MsgClient
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m MsgUpdateParams) GetSignBytes() []byte
- func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (p Params) AirdropEndTime() time.Time
- func (p Params) DecayStartTime() time.Time
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAirdropStartTime() time.Time
- func (m *Params) GetAuthorizedChannels() []string
- func (m *Params) GetClaimsDenom() string
- func (m *Params) GetDurationOfDecay() time.Duration
- func (m *Params) GetDurationUntilDecay() time.Duration
- func (m *Params) GetEVMChannels() []string
- func (m *Params) GetEnableClaims() bool
- func (p Params) IsAuthorizedChannel(channel string) bool
- func (p Params) IsClaimsActive(blockTime time.Time) bool
- func (p Params) IsEVMChannel(channel string) 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 (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *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 QueryClaimsRecordRequest
- func (*QueryClaimsRecordRequest) Descriptor() ([]byte, []int)
- func (m *QueryClaimsRecordRequest) GetAddress() string
- func (m *QueryClaimsRecordRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimsRecordRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimsRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimsRecordRequest) ProtoMessage()
- func (m *QueryClaimsRecordRequest) Reset()
- func (m *QueryClaimsRecordRequest) Size() (n int)
- func (m *QueryClaimsRecordRequest) String() string
- func (m *QueryClaimsRecordRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClaimsRecordRequest) XXX_DiscardUnknown()
- func (m *QueryClaimsRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimsRecordRequest) XXX_Merge(src proto.Message)
- func (m *QueryClaimsRecordRequest) XXX_Size() int
- func (m *QueryClaimsRecordRequest) XXX_Unmarshal(b []byte) error
- type QueryClaimsRecordResponse
- func (*QueryClaimsRecordResponse) Descriptor() ([]byte, []int)
- func (m *QueryClaimsRecordResponse) GetClaims() []Claim
- func (m *QueryClaimsRecordResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimsRecordResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimsRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimsRecordResponse) ProtoMessage()
- func (m *QueryClaimsRecordResponse) Reset()
- func (m *QueryClaimsRecordResponse) Size() (n int)
- func (m *QueryClaimsRecordResponse) String() string
- func (m *QueryClaimsRecordResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClaimsRecordResponse) XXX_DiscardUnknown()
- func (m *QueryClaimsRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimsRecordResponse) XXX_Merge(src proto.Message)
- func (m *QueryClaimsRecordResponse) XXX_Size() int
- func (m *QueryClaimsRecordResponse) XXX_Unmarshal(b []byte) error
- type QueryClaimsRecordsRequest
- func (*QueryClaimsRecordsRequest) Descriptor() ([]byte, []int)
- func (m *QueryClaimsRecordsRequest) GetPagination() *query.PageRequest
- func (m *QueryClaimsRecordsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimsRecordsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimsRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimsRecordsRequest) ProtoMessage()
- func (m *QueryClaimsRecordsRequest) Reset()
- func (m *QueryClaimsRecordsRequest) Size() (n int)
- func (m *QueryClaimsRecordsRequest) String() string
- func (m *QueryClaimsRecordsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClaimsRecordsRequest) XXX_DiscardUnknown()
- func (m *QueryClaimsRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimsRecordsRequest) XXX_Merge(src proto.Message)
- func (m *QueryClaimsRecordsRequest) XXX_Size() int
- func (m *QueryClaimsRecordsRequest) XXX_Unmarshal(b []byte) error
- type QueryClaimsRecordsResponse
- func (*QueryClaimsRecordsResponse) Descriptor() ([]byte, []int)
- func (m *QueryClaimsRecordsResponse) GetClaims() []ClaimsRecordAddress
- func (m *QueryClaimsRecordsResponse) GetPagination() *query.PageResponse
- func (m *QueryClaimsRecordsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClaimsRecordsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClaimsRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClaimsRecordsResponse) ProtoMessage()
- func (m *QueryClaimsRecordsResponse) Reset()
- func (m *QueryClaimsRecordsResponse) Size() (n int)
- func (m *QueryClaimsRecordsResponse) String() string
- func (m *QueryClaimsRecordsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClaimsRecordsResponse) XXX_DiscardUnknown()
- func (m *QueryClaimsRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClaimsRecordsResponse) XXX_Merge(src proto.Message)
- func (m *QueryClaimsRecordsResponse) XXX_Size() int
- func (m *QueryClaimsRecordsResponse) 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) 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 QueryTotalUnclaimedRequest
- func (*QueryTotalUnclaimedRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalUnclaimedRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalUnclaimedRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalUnclaimedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalUnclaimedRequest) ProtoMessage()
- func (m *QueryTotalUnclaimedRequest) Reset()
- func (m *QueryTotalUnclaimedRequest) Size() (n int)
- func (m *QueryTotalUnclaimedRequest) String() string
- func (m *QueryTotalUnclaimedRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalUnclaimedRequest) XXX_DiscardUnknown()
- func (m *QueryTotalUnclaimedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalUnclaimedRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalUnclaimedRequest) XXX_Size() int
- func (m *QueryTotalUnclaimedRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalUnclaimedResponse
- func (*QueryTotalUnclaimedResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalUnclaimedResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryTotalUnclaimedResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalUnclaimedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalUnclaimedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalUnclaimedResponse) ProtoMessage()
- func (m *QueryTotalUnclaimedResponse) Reset()
- func (m *QueryTotalUnclaimedResponse) Size() (n int)
- func (m *QueryTotalUnclaimedResponse) String() string
- func (m *QueryTotalUnclaimedResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalUnclaimedResponse) XXX_DiscardUnknown()
- func (m *QueryTotalUnclaimedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalUnclaimedResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalUnclaimedResponse) XXX_Size() int
- func (m *QueryTotalUnclaimedResponse) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type Subspace
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ClaimsRecord(ctx context.Context, req *QueryClaimsRecordRequest) (*QueryClaimsRecordResponse, error)
- func (*UnimplementedQueryServer) ClaimsRecords(ctx context.Context, req *QueryClaimsRecordsRequest) (*QueryClaimsRecordsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) TotalUnclaimed(ctx context.Context, req *QueryTotalUnclaimedRequest) (*QueryTotalUnclaimedResponse, error)
Constants ¶
const ( EventTypeClaim = "claim" EventTypeMergeClaimsRecords = "merge_claims_records" AttributeKeyActionType = "action" AttributeKeyRecipient = "recipient" AttributeKeyClaimedCoins = "claimed_coins" AttributeKeyFundCommunityPoolCoins = "fund_community_pool_coins" )
claim module event types
const ( // ModuleName defines the module name ModuleName = "claims" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for claims RouterKey = ModuleName )
Variables ¶
var ( ErrInvalidLengthClaims = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClaims = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupClaims = fmt.Errorf("proto: unexpected end of group") )
var ( // IBCTriggerAmt is the amount required to trigger a merge/migration of claims records IBCTriggerAmt = "63743" // GenesisDust is the amount of atabi sent on genesis for accounts to be able to claim GenesisDust = int64(gomath.Pow10(15)) )
var ( // ModuleCdc references the global evm module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding. ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) // AminoCdc is a amino codec created to support amino JSON compatible msgs. AminoCdc = codec.NewAminoCodec(amino) )
var ( ErrClaimsRecordNotFound = errorsmod.Register(ModuleName, 2, "claims record not found") ErrInvalidAction = errorsmod.Register(ModuleName, 3, "invalid claim action type") ErrKeyTypeNotSupported = errorsmod.Register(ModuleName, 4, "key type 'secp256k1' not supported") )
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 ( // DefaultClaimsDenom is atabi DefaultClaimsDenom = utils.BaseDenom // DefaultDurationUntilDecay is 1 month = 30.4375 days DefaultDurationUntilDecay = 2629800 * time.Second // DefaultDurationOfDecay is 2 months DefaultDurationOfDecay = 2 * DefaultDurationUntilDecay // DefaultAuthorizedChannels defines the list of default IBC authorized channels that can perform // IBC address attestations in order to migrate claimable amounts. By default // only Osmosis and Cosmos Hub channels are authorized DefaultAuthorizedChannels = []string{ "channel-0", "channel-3", } DefaultEVMChannels = []string{ "channel-2", } DefaultEnableClaims = true DefaultAirdropStartTime = time.Time{} )
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: "ACTION_UNSPECIFIED",
1: "ACTION_VOTE",
2: "ACTION_DELEGATE",
3: "ACTION_EVM",
4: "ACTION_IBC_TRANSFER",
}
var Action_value = map[string]int32{
"ACTION_UNSPECIFIED": 0,
"ACTION_VOTE": 1,
"ACTION_DELEGATE": 2,
"ACTION_EVM": 3,
"ACTION_IBC_TRANSFER": 4,
}
var (
KeyPrefixClaimsRecords = []byte{prefixClaimsRecords}
)
KVStore key prefixes
var ParamsKey = []byte("Params")
ParamsKey store key for params
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the client interfaces to protobuf Any.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec required for EIP-712
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)
func ValidateChannels ¶
func ValidateChannels(i interface{}) error
ValidateChannels checks if channels ids are valid
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI SetModuleAccount(ctx sdk.Context, macc authtypes.ModuleAccountI) GetAccount(sdk.Context, sdk.AccAddress) authtypes.AccountI GetSequence(sdk.Context, sdk.AccAddress) (uint64, error) RemoveAccount(ctx sdk.Context, account authtypes.AccountI) }
AccountKeeper defines the expected account keeper used for simulations (noalias)
type Action ¶
type Action int32
Action defines the list of available actions to claim the airdrop tokens.
const ( // ACTION_UNSPECIFIED defines an invalid action. ActionUnspecified Action = 0 // ACTION_VOTE defines a proposal vote. ActionVote Action = 1 // ACTION_DELEGATE defines an staking delegation. ActionDelegate Action = 2 // ACTION_EVM defines an EVM transaction. ActionEVM Action = 3 // ACTION_IBC_TRANSFER defines a fungible token transfer transaction via IBC. ActionIBCTransfer Action = 4 )
func (Action) EnumDescriptor ¶
type BankKeeper ¶
type BankKeeper interface { SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderPool, recipientPool string, amt sdk.Coins) error GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BlockedAddr(address sdk.AccAddress) bool }
BankKeeper defines the banking contract that must be fulfilled when creating a x/claims keeper.
type ChannelKeeper ¶
type ChannelKeeper interface {
GetChannel(ctx sdk.Context, portID, channelID string) (channel channeltypes.Channel, found bool)
}
ChannelKeeper is the keeper that controls access to IBC channels
type Claim ¶
type Claim struct { // action enum Action Action `protobuf:"varint,1,opt,name=action,proto3,enum=tabi.claims.v1.Action" json:"action,omitempty"` // completed is true if the action has been completed Completed bool `protobuf:"varint,2,opt,name=completed,proto3" json:"completed,omitempty"` // claimable_amount of tokens for the action. Zero if completed ClaimableAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */ }
Claim defines the action, completed flag and the remaining claimable amount for a given user. This is only used during client queries.
func (*Claim) Descriptor ¶
func (*Claim) GetCompleted ¶
func (*Claim) ProtoMessage ¶
func (*Claim) ProtoMessage()
func (*Claim) XXX_DiscardUnknown ¶
func (m *Claim) XXX_DiscardUnknown()
func (*Claim) XXX_Marshal ¶
func (*Claim) XXX_Unmarshal ¶
type ClaimsRecord ¶
type ClaimsRecord struct { // initial_claimable_amount for the user InitialClaimableAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 169-byte string literal not displayed */ // actions_completed is a slice that describes which actions were completed ActionsCompleted []bool `protobuf:"varint,2,rep,packed,name=actions_completed,json=actionsCompleted,proto3" json:"actions_completed,omitempty"` }
ClaimsRecord defines the initial claimable airdrop amount and the list of completed actions to claim the tokens.
func NewClaimsRecord ¶
func NewClaimsRecord(initialClaimableAmt math.Int) ClaimsRecord
NewClaimsRecord creates a new claims record instance
func (*ClaimsRecord) Descriptor ¶
func (*ClaimsRecord) Descriptor() ([]byte, []int)
func (*ClaimsRecord) GetActionsCompleted ¶
func (m *ClaimsRecord) GetActionsCompleted() []bool
func (ClaimsRecord) HasClaimedAction ¶
func (cr ClaimsRecord) HasClaimedAction(action Action) bool
HasClaimedAction checks if the user has claimed a given action. It also returns false if the action is invalid or if the ActionsCompleted slice has an invalid length.
func (ClaimsRecord) HasClaimedAll ¶
func (cr ClaimsRecord) HasClaimedAll() bool
HasClaimedAll returns true if the user has claimed all the rewards from the available actions
func (ClaimsRecord) HasClaimedAny ¶
func (cr ClaimsRecord) HasClaimedAny() bool
HasClaimedAny returns true if the user has claimed at least one reward from the available actions
func (*ClaimsRecord) MarkClaimed ¶
func (cr *ClaimsRecord) MarkClaimed(action Action)
MarkClaimed marks the given action as completed (i.e claimed). It performs a no-op if the action is invalid or if the ActionsCompleted slice has an invalid length.
func (*ClaimsRecord) Marshal ¶
func (m *ClaimsRecord) Marshal() (dAtA []byte, err error)
func (*ClaimsRecord) MarshalToSizedBuffer ¶
func (m *ClaimsRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClaimsRecord) ProtoMessage ¶
func (*ClaimsRecord) ProtoMessage()
func (*ClaimsRecord) Reset ¶
func (m *ClaimsRecord) Reset()
func (*ClaimsRecord) Size ¶
func (m *ClaimsRecord) Size() (n int)
func (*ClaimsRecord) String ¶
func (m *ClaimsRecord) String() string
func (*ClaimsRecord) Unmarshal ¶
func (m *ClaimsRecord) Unmarshal(dAtA []byte) error
func (ClaimsRecord) Validate ¶
func (cr ClaimsRecord) Validate() error
Validate performs a stateless validation of the fields
func (*ClaimsRecord) XXX_DiscardUnknown ¶
func (m *ClaimsRecord) XXX_DiscardUnknown()
func (*ClaimsRecord) XXX_Marshal ¶
func (m *ClaimsRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClaimsRecord) XXX_Merge ¶
func (m *ClaimsRecord) XXX_Merge(src proto.Message)
func (*ClaimsRecord) XXX_Size ¶
func (m *ClaimsRecord) XXX_Size() int
func (*ClaimsRecord) XXX_Unmarshal ¶
func (m *ClaimsRecord) XXX_Unmarshal(b []byte) error
type ClaimsRecordAddress ¶
type ClaimsRecordAddress struct { // address of claiming user in either bech32 or hex format Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // initial_claimable_amount for the user InitialClaimableAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 169-byte string literal not displayed */ // actions_completed is a slice that describes which actions were completed ActionsCompleted []bool `protobuf:"varint,3,rep,packed,name=actions_completed,json=actionsCompleted,proto3" json:"actions_completed,omitempty"` }
ClaimsRecordAddress is the claims metadata per address that is used at Genesis.
func NewClaimsRecordAddress ¶
func NewClaimsRecordAddress(address sdk.AccAddress, initialClaimableAmt math.Int) ClaimsRecordAddress
NewClaimsRecordAddress creates a new claims record instance
func (*ClaimsRecordAddress) Descriptor ¶
func (*ClaimsRecordAddress) Descriptor() ([]byte, []int)
func (*ClaimsRecordAddress) GetActionsCompleted ¶
func (m *ClaimsRecordAddress) GetActionsCompleted() []bool
func (*ClaimsRecordAddress) GetAddress ¶
func (m *ClaimsRecordAddress) GetAddress() string
func (*ClaimsRecordAddress) Marshal ¶
func (m *ClaimsRecordAddress) Marshal() (dAtA []byte, err error)
func (*ClaimsRecordAddress) MarshalTo ¶
func (m *ClaimsRecordAddress) MarshalTo(dAtA []byte) (int, error)
func (*ClaimsRecordAddress) MarshalToSizedBuffer ¶
func (m *ClaimsRecordAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClaimsRecordAddress) ProtoMessage ¶
func (*ClaimsRecordAddress) ProtoMessage()
func (*ClaimsRecordAddress) Reset ¶
func (m *ClaimsRecordAddress) Reset()
func (*ClaimsRecordAddress) Size ¶
func (m *ClaimsRecordAddress) Size() (n int)
func (*ClaimsRecordAddress) String ¶
func (m *ClaimsRecordAddress) String() string
func (*ClaimsRecordAddress) Unmarshal ¶
func (m *ClaimsRecordAddress) Unmarshal(dAtA []byte) error
func (ClaimsRecordAddress) Validate ¶
func (cra ClaimsRecordAddress) Validate() error
Validate performs a stateless validation of the fields
func (*ClaimsRecordAddress) XXX_DiscardUnknown ¶
func (m *ClaimsRecordAddress) XXX_DiscardUnknown()
func (*ClaimsRecordAddress) XXX_Marshal ¶
func (m *ClaimsRecordAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClaimsRecordAddress) XXX_Merge ¶
func (m *ClaimsRecordAddress) XXX_Merge(src proto.Message)
func (*ClaimsRecordAddress) XXX_Size ¶
func (m *ClaimsRecordAddress) XXX_Size() int
func (*ClaimsRecordAddress) XXX_Unmarshal ¶
func (m *ClaimsRecordAddress) XXX_Unmarshal(b []byte) error
type DistrKeeper ¶
type DistrKeeper interface {
FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}
DistrKeeper is the keeper of the distribution store
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // claims_records is a list of claim records with the corresponding airdrop recipient ClaimsRecords []ClaimsRecordAddress `protobuf:"bytes,2,rep,name=claims_records,json=claimsRecords,proto3" json:"claims_records"` }
GenesisState define the claims module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default claims module genesis state
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState
GetGenesisStateFromAppState returns x/claims GenesisState given raw application genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetClaimsRecords ¶
func (m *GenesisState) GetClaimsRecords() []ClaimsRecordAddress
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 LegacyParams ¶
type LegacyParams = paramtypes.ParamSet
type MsgClient ¶
type MsgClient interface { // UpdateParams defined a governance operation for updating the x/claims module parameters. // The authority is hard-coded to the Cosmos SDK x/gov module account UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 { // UpdateParams defined a governance operation for updating the x/claims module parameters. // The authority is hard-coded to the Cosmos SDK x/gov module account UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/claims parameters to update. // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams defines a Msg for updating the x/claims module parameters.
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (MsgUpdateParams) GetSignBytes ¶
func (m MsgUpdateParams) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg interface.
func (*MsgUpdateParams) GetSigners ¶
func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message.
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check of the provided data
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct{}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // enable_claims is the parameter to enable the claiming process EnableClaims bool `protobuf:"varint,1,opt,name=enable_claims,json=enableClaims,proto3" json:"enable_claims,omitempty"` // airdrop_start_time defines the timestamp of the airdrop start AirdropStartTime time.Time `protobuf:"bytes,2,opt,name=airdrop_start_time,json=airdropStartTime,proto3,stdtime" json:"airdrop_start_time"` // duration_until_decay of claimable tokens begin DurationUntilDecay time.Duration `protobuf:"bytes,3,opt,name=duration_until_decay,json=durationUntilDecay,proto3,stdduration" json:"duration_until_decay"` // duration_of_decay for token claim decay period DurationOfDecay time.Duration `protobuf:"bytes,4,opt,name=duration_of_decay,json=durationOfDecay,proto3,stdduration" json:"duration_of_decay"` // claims_denom is the denomination of the claimable coin ClaimsDenom string `protobuf:"bytes,5,opt,name=claims_denom,json=claimsDenom,proto3" json:"claims_denom,omitempty"` // authorized_channels is the list of authorized channel identifiers that can perform address // attestations via IBC. AuthorizedChannels []string `protobuf:"bytes,6,rep,name=authorized_channels,json=authorizedChannels,proto3" json:"authorized_channels,omitempty"` // evm_channels is the list of channel identifiers from EVM compatible chains EVMChannels []string `protobuf:"bytes,7,rep,name=evm_channels,json=evmChannels,proto3" json:"evm_channels,omitempty"` }
Params defines the claims module's parameters.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams creates a parameter instance with default values for the claims module.
func NewParams ¶
func NewParams( enableClaim bool, claimsDenom string, airdropStartTime time.Time, durationUntilDecay, durationOfDecay time.Duration, authorizedChannels, evmChannels []string, ) Params
NewParams creates a new Params object
func (Params) AirdropEndTime ¶
AirdropEndTime returns the time at which no further claims will be processed.
func (Params) DecayStartTime ¶
DecayStartTime returns the time at which the Decay period starts
func (*Params) Descriptor ¶
func (*Params) GetAirdropStartTime ¶
func (*Params) GetAuthorizedChannels ¶
func (*Params) GetClaimsDenom ¶
func (*Params) GetDurationOfDecay ¶
func (*Params) GetDurationUntilDecay ¶
func (*Params) GetEVMChannels ¶
func (*Params) GetEnableClaims ¶
func (Params) IsAuthorizedChannel ¶
IsAuthorizedChannel returns true if the channel provided is in the list of authorized channels
func (Params) IsClaimsActive ¶
IsClaimsActive returns true if the claiming process is active: - claims are enabled AND - block time is equal or after the airdrop start time AND - block time is before or equal the airdrop end time
func (Params) IsEVMChannel ¶
IsEVMChannel returns true if the channel provided is in the list of EVM channels
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClaimsRecordRequest ¶
type QueryClaimsRecordRequest struct { // address defines the user to query claims record for Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` }
QueryClaimsRecordRequest is the request type for the Query/ClaimsRecord RPC method.
func (*QueryClaimsRecordRequest) Descriptor ¶
func (*QueryClaimsRecordRequest) Descriptor() ([]byte, []int)
func (*QueryClaimsRecordRequest) GetAddress ¶
func (m *QueryClaimsRecordRequest) GetAddress() string
func (*QueryClaimsRecordRequest) Marshal ¶
func (m *QueryClaimsRecordRequest) Marshal() (dAtA []byte, err error)
func (*QueryClaimsRecordRequest) MarshalTo ¶
func (m *QueryClaimsRecordRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimsRecordRequest) MarshalToSizedBuffer ¶
func (m *QueryClaimsRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimsRecordRequest) ProtoMessage ¶
func (*QueryClaimsRecordRequest) ProtoMessage()
func (*QueryClaimsRecordRequest) Reset ¶
func (m *QueryClaimsRecordRequest) Reset()
func (*QueryClaimsRecordRequest) Size ¶
func (m *QueryClaimsRecordRequest) Size() (n int)
func (*QueryClaimsRecordRequest) String ¶
func (m *QueryClaimsRecordRequest) String() string
func (*QueryClaimsRecordRequest) Unmarshal ¶
func (m *QueryClaimsRecordRequest) Unmarshal(dAtA []byte) error
func (*QueryClaimsRecordRequest) XXX_DiscardUnknown ¶
func (m *QueryClaimsRecordRequest) XXX_DiscardUnknown()
func (*QueryClaimsRecordRequest) XXX_Marshal ¶
func (m *QueryClaimsRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimsRecordRequest) XXX_Merge ¶
func (m *QueryClaimsRecordRequest) XXX_Merge(src proto.Message)
func (*QueryClaimsRecordRequest) XXX_Size ¶
func (m *QueryClaimsRecordRequest) XXX_Size() int
func (*QueryClaimsRecordRequest) XXX_Unmarshal ¶
func (m *QueryClaimsRecordRequest) XXX_Unmarshal(b []byte) error
type QueryClaimsRecordResponse ¶
type QueryClaimsRecordResponse struct { // initial_claimable_amount of the user InitialClaimableAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 169-byte string literal not displayed */ // claims of the user Claims []Claim `protobuf:"bytes,2,rep,name=claims,proto3" json:"claims"` }
QueryClaimsRecordResponse is the response type for the Query/ClaimsRecord RPC method.
func (*QueryClaimsRecordResponse) Descriptor ¶
func (*QueryClaimsRecordResponse) Descriptor() ([]byte, []int)
func (*QueryClaimsRecordResponse) GetClaims ¶
func (m *QueryClaimsRecordResponse) GetClaims() []Claim
func (*QueryClaimsRecordResponse) Marshal ¶
func (m *QueryClaimsRecordResponse) Marshal() (dAtA []byte, err error)
func (*QueryClaimsRecordResponse) MarshalTo ¶
func (m *QueryClaimsRecordResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimsRecordResponse) MarshalToSizedBuffer ¶
func (m *QueryClaimsRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimsRecordResponse) ProtoMessage ¶
func (*QueryClaimsRecordResponse) ProtoMessage()
func (*QueryClaimsRecordResponse) Reset ¶
func (m *QueryClaimsRecordResponse) Reset()
func (*QueryClaimsRecordResponse) Size ¶
func (m *QueryClaimsRecordResponse) Size() (n int)
func (*QueryClaimsRecordResponse) String ¶
func (m *QueryClaimsRecordResponse) String() string
func (*QueryClaimsRecordResponse) Unmarshal ¶
func (m *QueryClaimsRecordResponse) Unmarshal(dAtA []byte) error
func (*QueryClaimsRecordResponse) XXX_DiscardUnknown ¶
func (m *QueryClaimsRecordResponse) XXX_DiscardUnknown()
func (*QueryClaimsRecordResponse) XXX_Marshal ¶
func (m *QueryClaimsRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimsRecordResponse) XXX_Merge ¶
func (m *QueryClaimsRecordResponse) XXX_Merge(src proto.Message)
func (*QueryClaimsRecordResponse) XXX_Size ¶
func (m *QueryClaimsRecordResponse) XXX_Size() int
func (*QueryClaimsRecordResponse) XXX_Unmarshal ¶
func (m *QueryClaimsRecordResponse) XXX_Unmarshal(b []byte) error
type QueryClaimsRecordsRequest ¶
type QueryClaimsRecordsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryClaimsRecordsRequest is the request type for the Query/ClaimsRecords RPC method.
func (*QueryClaimsRecordsRequest) Descriptor ¶
func (*QueryClaimsRecordsRequest) Descriptor() ([]byte, []int)
func (*QueryClaimsRecordsRequest) GetPagination ¶
func (m *QueryClaimsRecordsRequest) GetPagination() *query.PageRequest
func (*QueryClaimsRecordsRequest) Marshal ¶
func (m *QueryClaimsRecordsRequest) Marshal() (dAtA []byte, err error)
func (*QueryClaimsRecordsRequest) MarshalTo ¶
func (m *QueryClaimsRecordsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimsRecordsRequest) MarshalToSizedBuffer ¶
func (m *QueryClaimsRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimsRecordsRequest) ProtoMessage ¶
func (*QueryClaimsRecordsRequest) ProtoMessage()
func (*QueryClaimsRecordsRequest) Reset ¶
func (m *QueryClaimsRecordsRequest) Reset()
func (*QueryClaimsRecordsRequest) Size ¶
func (m *QueryClaimsRecordsRequest) Size() (n int)
func (*QueryClaimsRecordsRequest) String ¶
func (m *QueryClaimsRecordsRequest) String() string
func (*QueryClaimsRecordsRequest) Unmarshal ¶
func (m *QueryClaimsRecordsRequest) Unmarshal(dAtA []byte) error
func (*QueryClaimsRecordsRequest) XXX_DiscardUnknown ¶
func (m *QueryClaimsRecordsRequest) XXX_DiscardUnknown()
func (*QueryClaimsRecordsRequest) XXX_Marshal ¶
func (m *QueryClaimsRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimsRecordsRequest) XXX_Merge ¶
func (m *QueryClaimsRecordsRequest) XXX_Merge(src proto.Message)
func (*QueryClaimsRecordsRequest) XXX_Size ¶
func (m *QueryClaimsRecordsRequest) XXX_Size() int
func (*QueryClaimsRecordsRequest) XXX_Unmarshal ¶
func (m *QueryClaimsRecordsRequest) XXX_Unmarshal(b []byte) error
type QueryClaimsRecordsResponse ¶
type QueryClaimsRecordsResponse struct { // claims defines all claims records Claims []ClaimsRecordAddress `protobuf:"bytes,1,rep,name=claims,proto3" json:"claims"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryClaimsRecordsResponse is the response type for the Query/ClaimsRecords RPC method.
func (*QueryClaimsRecordsResponse) Descriptor ¶
func (*QueryClaimsRecordsResponse) Descriptor() ([]byte, []int)
func (*QueryClaimsRecordsResponse) GetClaims ¶
func (m *QueryClaimsRecordsResponse) GetClaims() []ClaimsRecordAddress
func (*QueryClaimsRecordsResponse) GetPagination ¶
func (m *QueryClaimsRecordsResponse) GetPagination() *query.PageResponse
func (*QueryClaimsRecordsResponse) Marshal ¶
func (m *QueryClaimsRecordsResponse) Marshal() (dAtA []byte, err error)
func (*QueryClaimsRecordsResponse) MarshalTo ¶
func (m *QueryClaimsRecordsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClaimsRecordsResponse) MarshalToSizedBuffer ¶
func (m *QueryClaimsRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClaimsRecordsResponse) ProtoMessage ¶
func (*QueryClaimsRecordsResponse) ProtoMessage()
func (*QueryClaimsRecordsResponse) Reset ¶
func (m *QueryClaimsRecordsResponse) Reset()
func (*QueryClaimsRecordsResponse) Size ¶
func (m *QueryClaimsRecordsResponse) Size() (n int)
func (*QueryClaimsRecordsResponse) String ¶
func (m *QueryClaimsRecordsResponse) String() string
func (*QueryClaimsRecordsResponse) Unmarshal ¶
func (m *QueryClaimsRecordsResponse) Unmarshal(dAtA []byte) error
func (*QueryClaimsRecordsResponse) XXX_DiscardUnknown ¶
func (m *QueryClaimsRecordsResponse) XXX_DiscardUnknown()
func (*QueryClaimsRecordsResponse) XXX_Marshal ¶
func (m *QueryClaimsRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClaimsRecordsResponse) XXX_Merge ¶
func (m *QueryClaimsRecordsResponse) XXX_Merge(src proto.Message)
func (*QueryClaimsRecordsResponse) XXX_Size ¶
func (m *QueryClaimsRecordsResponse) XXX_Size() int
func (*QueryClaimsRecordsResponse) XXX_Unmarshal ¶
func (m *QueryClaimsRecordsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // TotalUnclaimed queries the total unclaimed tokens from the airdrop TotalUnclaimed(ctx context.Context, in *QueryTotalUnclaimedRequest, opts ...grpc.CallOption) (*QueryTotalUnclaimedResponse, error) // Params returns the claims module parameters Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // ClaimsRecords returns all claims records ClaimsRecords(ctx context.Context, in *QueryClaimsRecordsRequest, opts ...grpc.CallOption) (*QueryClaimsRecordsResponse, error) // ClaimsRecord returns the claims record for a given address ClaimsRecord(ctx context.Context, in *QueryClaimsRecordRequest, opts ...grpc.CallOption) (*QueryClaimsRecordResponse, 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) 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 { // TotalUnclaimed queries the total unclaimed tokens from the airdrop TotalUnclaimed(context.Context, *QueryTotalUnclaimedRequest) (*QueryTotalUnclaimedResponse, error) // Params returns the claims module parameters Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // ClaimsRecords returns all claims records ClaimsRecords(context.Context, *QueryClaimsRecordsRequest) (*QueryClaimsRecordsResponse, error) // ClaimsRecord returns the claims record for a given address ClaimsRecord(context.Context, *QueryClaimsRecordRequest) (*QueryClaimsRecordResponse, error) }
QueryServer is the server API for Query service.
type QueryTotalUnclaimedRequest ¶
type QueryTotalUnclaimedRequest struct{}
QueryTotalUnclaimedRequest is the request type for the Query/TotalUnclaimed RPC method.
func (*QueryTotalUnclaimedRequest) Descriptor ¶
func (*QueryTotalUnclaimedRequest) Descriptor() ([]byte, []int)
func (*QueryTotalUnclaimedRequest) Marshal ¶
func (m *QueryTotalUnclaimedRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalUnclaimedRequest) MarshalTo ¶
func (m *QueryTotalUnclaimedRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalUnclaimedRequest) MarshalToSizedBuffer ¶
func (m *QueryTotalUnclaimedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalUnclaimedRequest) ProtoMessage ¶
func (*QueryTotalUnclaimedRequest) ProtoMessage()
func (*QueryTotalUnclaimedRequest) Reset ¶
func (m *QueryTotalUnclaimedRequest) Reset()
func (*QueryTotalUnclaimedRequest) Size ¶
func (m *QueryTotalUnclaimedRequest) Size() (n int)
func (*QueryTotalUnclaimedRequest) String ¶
func (m *QueryTotalUnclaimedRequest) String() string
func (*QueryTotalUnclaimedRequest) Unmarshal ¶
func (m *QueryTotalUnclaimedRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalUnclaimedRequest) XXX_DiscardUnknown ¶
func (m *QueryTotalUnclaimedRequest) XXX_DiscardUnknown()
func (*QueryTotalUnclaimedRequest) XXX_Marshal ¶
func (m *QueryTotalUnclaimedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalUnclaimedRequest) XXX_Merge ¶
func (m *QueryTotalUnclaimedRequest) XXX_Merge(src proto.Message)
func (*QueryTotalUnclaimedRequest) XXX_Size ¶
func (m *QueryTotalUnclaimedRequest) XXX_Size() int
func (*QueryTotalUnclaimedRequest) XXX_Unmarshal ¶
func (m *QueryTotalUnclaimedRequest) XXX_Unmarshal(b []byte) error
type QueryTotalUnclaimedResponse ¶
type QueryTotalUnclaimedResponse struct { // coins defines the unclaimed coins 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"` }
QueryTotalUnclaimedResponse is the response type for the Query/TotalUnclaimed RPC method.
func (*QueryTotalUnclaimedResponse) Descriptor ¶
func (*QueryTotalUnclaimedResponse) Descriptor() ([]byte, []int)
func (*QueryTotalUnclaimedResponse) GetCoins ¶
func (m *QueryTotalUnclaimedResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryTotalUnclaimedResponse) Marshal ¶
func (m *QueryTotalUnclaimedResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalUnclaimedResponse) MarshalTo ¶
func (m *QueryTotalUnclaimedResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalUnclaimedResponse) MarshalToSizedBuffer ¶
func (m *QueryTotalUnclaimedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalUnclaimedResponse) ProtoMessage ¶
func (*QueryTotalUnclaimedResponse) ProtoMessage()
func (*QueryTotalUnclaimedResponse) Reset ¶
func (m *QueryTotalUnclaimedResponse) Reset()
func (*QueryTotalUnclaimedResponse) Size ¶
func (m *QueryTotalUnclaimedResponse) Size() (n int)
func (*QueryTotalUnclaimedResponse) String ¶
func (m *QueryTotalUnclaimedResponse) String() string
func (*QueryTotalUnclaimedResponse) Unmarshal ¶
func (m *QueryTotalUnclaimedResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalUnclaimedResponse) XXX_DiscardUnknown ¶
func (m *QueryTotalUnclaimedResponse) XXX_DiscardUnknown()
func (*QueryTotalUnclaimedResponse) XXX_Marshal ¶
func (m *QueryTotalUnclaimedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalUnclaimedResponse) XXX_Merge ¶
func (m *QueryTotalUnclaimedResponse) XXX_Merge(src proto.Message)
func (*QueryTotalUnclaimedResponse) XXX_Size ¶
func (m *QueryTotalUnclaimedResponse) XXX_Size() int
func (*QueryTotalUnclaimedResponse) XXX_Unmarshal ¶
func (m *QueryTotalUnclaimedResponse) XXX_Unmarshal(b []byte) error
type StakingKeeper ¶
type StakingKeeper interface { // BondDenom - Bondable coin denomination BondDenom(sdk.Context) string }
StakingKeeper expected staking keeper (noalias)
type Subspace ¶
type Subspace interface { GetParamSetIfExists(ctx sdk.Context, ps LegacyParams) WithKeyTable(table paramtypes.KeyTable) paramtypes.Subspace }
Subspace defines an interface that implements the legacy Cosmos SDK x/params Subspace type. NOTE: This is used solely for migration of the Cosmos SDK x/params managed parameters.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ClaimsRecord ¶
func (*UnimplementedQueryServer) ClaimsRecord(ctx context.Context, req *QueryClaimsRecordRequest) (*QueryClaimsRecordResponse, error)
func (*UnimplementedQueryServer) ClaimsRecords ¶
func (*UnimplementedQueryServer) ClaimsRecords(ctx context.Context, req *QueryClaimsRecordsRequest) (*QueryClaimsRecordsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) TotalUnclaimed ¶
func (*UnimplementedQueryServer) TotalUnclaimed(ctx context.Context, req *QueryTotalUnclaimedRequest) (*QueryTotalUnclaimedResponse, error)