types

package
v0.0.0-...-ba113fd Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func (Action) EnumDescriptor() ([]byte, []int)

func (Action) String

func (x Action) String() string

type Claim

type Claim struct {
	// action enum
	Action Action `protobuf:"varint,1,opt,name=action,proto3,enum=evmos.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) Descriptor() ([]byte, []int)

func (*Claim) GetAction

func (m *Claim) GetAction() Action

func (*Claim) GetCompleted

func (m *Claim) GetCompleted() bool

func (*Claim) Marshal

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

func (*Claim) MarshalTo

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

func (*Claim) MarshalToSizedBuffer

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

func (*Claim) ProtoMessage

func (*Claim) ProtoMessage()

func (*Claim) Reset

func (m *Claim) Reset()

func (*Claim) Size

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

func (*Claim) String

func (m *Claim) String() string

func (*Claim) Unmarshal

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

func (*Claim) XXX_DiscardUnknown

func (m *Claim) XXX_DiscardUnknown()

func (*Claim) XXX_Marshal

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

func (*Claim) XXX_Merge

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

func (*Claim) XXX_Size

func (m *Claim) XXX_Size() int

func (*Claim) XXX_Unmarshal

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

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) MarshalTo

func (m *ClaimsRecord) MarshalTo(dAtA []byte) (int, 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) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type 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) Descriptor() ([]byte, []int)

func (*Params) GetAirdropStartTime

func (m *Params) GetAirdropStartTime() time.Time

func (*Params) GetClaimsDenom

func (m *Params) GetClaimsDenom() string

func (*Params) GetDurationOfDecay

func (m *Params) GetDurationOfDecay() time.Duration

func (*Params) GetDurationUntilDecay

func (m *Params) GetDurationUntilDecay() time.Duration

func (*Params) GetEnableClaims

func (m *Params) GetEnableClaims() bool

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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