Documentation ¶
Index ¶
- Variables
- type Action
- 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 (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 (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 (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 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 (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 Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAirdropStartTime() time.Time
- func (m *Params) GetClaimsDenom() string
- func (m *Params) GetDurationOfDecay() time.Duration
- func (m *Params) GetDurationUntilDecay() time.Duration
- func (m *Params) GetEnableClaims() 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 (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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthClaims = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowClaims = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupClaims = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
View Source
var Action_name = map[int32]string{
0: "ACTION_UNSPECIFIED",
1: "ACTION_VOTE",
2: "ACTION_DELEGATE",
3: "ACTION_EVM",
4: "ACTION_IBC_TRANSFER",
}
View Source
var Action_value = map[string]int32{
"ACTION_UNSPECIFIED": 0,
"ACTION_VOTE": 1,
"ACTION_DELEGATE": 2,
"ACTION_EVM": 3,
"ACTION_IBC_TRANSFER": 4,
}
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action int32
Action defines the list of available actions to claim the airdrop tokens.
const ( // UNSPECIFIED defines an invalid action. ActionUnspecified Action = 0 // VOTE defines a proposal vote. ActionVote Action = 1 // DELEGATE defines an staking delegation. ActionDelegate Action = 2 // EVM defines an EVM transaction. ActionEVM Action = 3 // IBC Transfer defines a fungible token transfer transaction via IBC. ActionIBCTransfer Action = 4 )
func (Action) EnumDescriptor ¶
type Claim ¶
type Claim struct { // action enum Action Action `protobuf:"varint,1,opt,name=action,proto3,enum=kynno.claims.v1.Action" json:"action,omitempty"` // true if the action has been completed Completed bool `protobuf:"varint,2,opt,name=completed,proto3" json:"completed,omitempty"` // claimable token amount for the action. Zero if completed ClaimableAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */ }
Claim marks 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 { // total initial claimable amount for the user InitialClaimableAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 169-byte string literal not displayed */ // slice of the available actions 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 (*ClaimsRecord) Descriptor ¶
func (*ClaimsRecord) Descriptor() ([]byte, []int)
func (*ClaimsRecord) GetActionsCompleted ¶
func (m *ClaimsRecord) GetActionsCompleted() []bool
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) 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 { // bech32 or hex address of claim user Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // total initial claimable amount for the user InitialClaimableAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 169-byte string literal not displayed */ // slice of the available actions completed ActionsCompleted []bool `protobuf:"varint,3,rep,packed,name=actions_completed,json=actionsCompleted,proto3" json:"actions_completed,omitempty"` }
ClaimsRecordAddress is the metadata of claims data per address
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) 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 GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // 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 defines the claims module's 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) 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 Params ¶
type Params struct { // enable claiming process EnableClaims bool `protobuf:"varint,1,opt,name=enable_claims,json=enableClaims,proto3" json:"enable_claims,omitempty"` // 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 the token claim decay period DurationOfDecay time.Duration `protobuf:"bytes,4,opt,name=duration_of_decay,json=durationOfDecay,proto3,stdduration" json:"duration_of_decay"` // denom of claimable coin ClaimsDenom string `protobuf:"bytes,5,opt,name=claims_denom,json=claimsDenom,proto3" json:"claims_denom,omitempty"` }
Params defines the claims module's parameters.
func (*Params) Descriptor ¶
func (*Params) GetAirdropStartTime ¶
func (*Params) GetClaimsDenom ¶
func (*Params) GetDurationOfDecay ¶
func (*Params) GetDurationUntilDecay ¶
func (*Params) GetEnableClaims ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.