types

package
v24.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "airdrop"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the routing key
	RouterKey = ModuleName
)
View Source
const (
	TypeMsgClaimDaily = "claim_daily"
	TypeMsgClaimEarly = "claim_early"

	TypeMsgCreateAirdrop        = "create_airdrop"
	TypeMsgUpdateAirdrop        = "update_airdrop"
	TypeMsgAddAllocations       = "add_allocations"
	TypeMsgUpdateUserAllocation = "update_user_allocation"
	TypeMsgLinkAddresses        = "link_addresses"
)

Variables

View Source
var (
	ErrInvalidLengthAirdrop        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAirdrop          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAirdrop = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
View Source
var (
	ErrAirdropAlreadyExists        = sdkerrors.Register(ModuleName, 2001, "airdrop already exists")
	ErrAirdropNotFound             = sdkerrors.Register(ModuleName, 2002, "airdrop not found")
	ErrUserAllocationAlreadyExists = sdkerrors.Register(ModuleName, 2003, "user allocation already exists")
	ErrUserAllocationNotFound      = sdkerrors.Register(ModuleName, 2004, "user allocation not found")
	ErrClaimTypeUnavailable        = sdkerrors.Register(ModuleName, 2005, "claim type is unavailable due to a previous selection")
	ErrAirdropNotStarted           = sdkerrors.Register(ModuleName, 2006, "airdrop has not started")
	ErrAirdropEnded                = sdkerrors.Register(ModuleName, 2007, "airdrop has ended")
	ErrNoUnclaimedRewards          = sdkerrors.Register(ModuleName, 2008, "no unclaimed rewards")
	ErrAfterDecisionDeadline       = sdkerrors.Register(ModuleName, 2009, "claim type decision deadline passed")
	ErrFailedToLinkAddresses       = sdkerrors.Register(ModuleName, 2010, "unable to link addresses")
	ErrInvalidAllocationListLength = sdkerrors.Register(ModuleName, 2011, "invalid allocations list length")
	ErrInvalidAdminAddress         = sdkerrors.Register(ModuleName, 2012, "invalid admin address")
)

x/airdrop module sentinel errors

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 (
	ParamsPrefix            = KeyPrefix("params")
	AirdropKeyPrefix        = KeyPrefix("airdrops")
	UserAllocationKeyPrefix = KeyPrefix("user-allocations")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ClaimType_name = map[int32]string{
	0: "CLAIM_DAILY",
	1: "CLAIM_EARLY",
}
View Source
var ClaimType_value = map[string]int32{
	"CLAIM_DAILY": 0,
	"CLAIM_EARLY": 1,
}

Functions

func AirdropConfigValidateBasic

func AirdropConfigValidateBasic(
	airdropId string,
	rewardDenom string,
	distributionStartDate *time.Time,
	distributionEndDate *time.Time,
	clawbackDate *time.Time,
	claimTypeDeadlineDate *time.Time,
	earlyClaimPenalty sdk.Dec,
	distributorAddress string,
	allocatorAddress string,
	linkerAddress string,
) error

Validates the airdrop creation or update message

func KeyPrefix

func KeyPrefix(p string) []byte

Generates a key byte prefix from a string

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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 UserAllocationKey

func UserAllocationKey(airdropId string, userAddress string) []byte

Types

type Airdrop

type Airdrop struct {
	// Airdrop ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Denom used when distributing rewards
	RewardDenom string `protobuf:"bytes,2,opt,name=reward_denom,json=rewardDenom,proto3" json:"reward_denom,omitempty"`
	// The first date that claiming begins and rewards are distributed
	DistributionStartDate *time.Time `` /* 134-byte string literal not displayed */
	// The last date for rewards to be distributed. Immediately after this date
	// the rewards can no longer be claimed, but rewards have not been clawed back
	// yet
	DistributionEndDate *time.Time `` /* 128-byte string literal not displayed */
	// Date with which the rewards are clawed back (occurs after the distribution
	// end date)
	ClawbackDate *time.Time `protobuf:"bytes,5,opt,name=clawback_date,json=clawbackDate,proto3,stdtime" json:"clawback_date,omitempty"`
	// Deadline for the user to make a decision on their claim type
	ClaimTypeDeadlineDate *time.Time `` /* 136-byte string literal not displayed */
	// Penalty for claiming rewards early - e.g. 0.5 means claiming early will
	// result in losing 50% of rewards
	EarlyClaimPenalty cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */
	// Account that holds the total reward balance and distributes to users
	DistributorAddress string `protobuf:"bytes,8,opt,name=distributor_address,json=distributorAddress,proto3" json:"distributor_address,omitempty"`
	// Admin account with permissions to add or update allocations
	AllocatorAddress string `protobuf:"bytes,9,opt,name=allocator_address,json=allocatorAddress,proto3" json:"allocator_address,omitempty"`
	// Admin account with permissions to link addresseses
	LinkerAddress string `protobuf:"bytes,10,opt,name=linker_address,json=linkerAddress,proto3" json:"linker_address,omitempty"`
}

Airdrop track the aggregate unbondings across an epoch

func (*Airdrop) Descriptor

func (*Airdrop) Descriptor() ([]byte, []int)

func (*Airdrop) GetAirdropPeriods

func (a *Airdrop) GetAirdropPeriods(periodLengthSeconds int64) int64

Returns number of periods in the airdrop periodLengthSeconds is the time between each element in the allocations array

func (*Airdrop) GetAllocatorAddress

func (m *Airdrop) GetAllocatorAddress() string

func (*Airdrop) GetClaimTypeDeadlineDate

func (m *Airdrop) GetClaimTypeDeadlineDate() *time.Time

func (*Airdrop) GetClawbackDate

func (m *Airdrop) GetClawbackDate() *time.Time

func (*Airdrop) GetCurrentDateIndex

func (a *Airdrop) GetCurrentDateIndex(ctx sdk.Context, periodLengthSeconds int64) (dateIndex int, err error)

Returns the date index in the allocations array using the current block time periodLengthSeconds is the time between each element in the allocations array

func (*Airdrop) GetDistributionEndDate

func (m *Airdrop) GetDistributionEndDate() *time.Time

func (*Airdrop) GetDistributionStartDate

func (m *Airdrop) GetDistributionStartDate() *time.Time

func (*Airdrop) GetDistributorAddress

func (m *Airdrop) GetDistributorAddress() string

func (*Airdrop) GetId

func (m *Airdrop) GetId() string

func (*Airdrop) GetLinkerAddress

func (m *Airdrop) GetLinkerAddress() string

func (*Airdrop) GetRewardDenom

func (m *Airdrop) GetRewardDenom() string

func (*Airdrop) Marshal

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

func (*Airdrop) MarshalTo

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

func (*Airdrop) MarshalToSizedBuffer

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

func (*Airdrop) ProtoMessage

func (*Airdrop) ProtoMessage()

func (*Airdrop) Reset

func (m *Airdrop) Reset()

func (*Airdrop) Size

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

func (*Airdrop) String

func (m *Airdrop) String() string

func (*Airdrop) Unmarshal

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

func (*Airdrop) XXX_DiscardUnknown

func (m *Airdrop) XXX_DiscardUnknown()

func (*Airdrop) XXX_Marshal

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

func (*Airdrop) XXX_Merge

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

func (*Airdrop) XXX_Size

func (m *Airdrop) XXX_Size() int

func (*Airdrop) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type ClaimType

type ClaimType int32

ClaimType enum represents the possible claim types for a user getting an airdrop

const (
	// CLAIM_DAILY indicates that the airdrop rewards are accumulated daily
	// A user can claim daily up front and change their decision within the
	// deadline window
	// This type is assigned to the user by default when their allocations are
	// added
	CLAIM_DAILY ClaimType = 0
	// CLAIM_EARLY indicates that the airdrop rewards have been claimed early,
	// with half going to the user and half being clawed back
	CLAIM_EARLY ClaimType = 1
)

func (ClaimType) EnumDescriptor

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

func (ClaimType) String

func (x ClaimType) String() string

type GenesisState

type GenesisState struct {
	// Module parameters
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
	// All airdrop config records
	Airdrops []Airdrop `protobuf:"bytes,2,rep,name=airdrops,proto3" json:"airdrops" yaml:"airdrops"`
	// All allocation records across all airdrops
	UserAllocations []UserAllocation `protobuf:"bytes,3,rep,name=user_allocations,json=userAllocations,proto3" json:"user_allocations" yaml:"user_allocations"`
}

GenesisState defines the airdrop module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetAirdrops

func (m *GenesisState) GetAirdrops() []Airdrop

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetUserAllocations

func (m *GenesisState) GetUserAllocations() []UserAllocation

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

type MsgAddAllocations struct {
	// Airdrop admin address
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// Airdrop ID
	AirdropId string `protobuf:"bytes,2,opt,name=airdrop_id,json=airdropId,proto3" json:"airdrop_id,omitempty"`
	// List of address/allocation pairs for each user
	Allocations []RawAllocation `protobuf:"bytes,3,rep,name=allocations,proto3" json:"allocations"`
}

AddAllocations

func NewMsgAddAllocations

func NewMsgAddAllocations(admin string, airdropId string, allocations []RawAllocation) *MsgAddAllocations

func (*MsgAddAllocations) Descriptor

func (*MsgAddAllocations) Descriptor() ([]byte, []int)

func (*MsgAddAllocations) GetAdmin

func (m *MsgAddAllocations) GetAdmin() string

func (*MsgAddAllocations) GetAirdropId

func (m *MsgAddAllocations) GetAirdropId() string

func (*MsgAddAllocations) GetAllocations

func (m *MsgAddAllocations) GetAllocations() []RawAllocation

func (*MsgAddAllocations) GetSignBytes

func (msg *MsgAddAllocations) GetSignBytes() []byte

func (*MsgAddAllocations) GetSigners

func (msg *MsgAddAllocations) GetSigners() []sdk.AccAddress

func (*MsgAddAllocations) Marshal

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

func (*MsgAddAllocations) MarshalTo

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

func (*MsgAddAllocations) MarshalToSizedBuffer

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

func (*MsgAddAllocations) ProtoMessage

func (*MsgAddAllocations) ProtoMessage()

func (*MsgAddAllocations) Reset

func (m *MsgAddAllocations) Reset()

func (MsgAddAllocations) Route

func (msg MsgAddAllocations) Route() string

func (*MsgAddAllocations) Size

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

func (*MsgAddAllocations) String

func (m *MsgAddAllocations) String() string

func (MsgAddAllocations) Type

func (msg MsgAddAllocations) Type() string

func (*MsgAddAllocations) Unmarshal

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

func (*MsgAddAllocations) ValidateBasic

func (msg *MsgAddAllocations) ValidateBasic() error

func (*MsgAddAllocations) XXX_DiscardUnknown

func (m *MsgAddAllocations) XXX_DiscardUnknown()

func (*MsgAddAllocations) XXX_Marshal

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

func (*MsgAddAllocations) XXX_Merge

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

func (*MsgAddAllocations) XXX_Size

func (m *MsgAddAllocations) XXX_Size() int

func (*MsgAddAllocations) XXX_Unmarshal

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

type MsgAddAllocationsResponse

type MsgAddAllocationsResponse struct {
}

func (*MsgAddAllocationsResponse) Descriptor

func (*MsgAddAllocationsResponse) Descriptor() ([]byte, []int)

func (*MsgAddAllocationsResponse) Marshal

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

func (*MsgAddAllocationsResponse) MarshalTo

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

func (*MsgAddAllocationsResponse) MarshalToSizedBuffer

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

func (*MsgAddAllocationsResponse) ProtoMessage

func (*MsgAddAllocationsResponse) ProtoMessage()

func (*MsgAddAllocationsResponse) Reset

func (m *MsgAddAllocationsResponse) Reset()

func (*MsgAddAllocationsResponse) Size

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

func (*MsgAddAllocationsResponse) String

func (m *MsgAddAllocationsResponse) String() string

func (*MsgAddAllocationsResponse) Unmarshal

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

func (*MsgAddAllocationsResponse) XXX_DiscardUnknown

func (m *MsgAddAllocationsResponse) XXX_DiscardUnknown()

func (*MsgAddAllocationsResponse) XXX_Marshal

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

func (*MsgAddAllocationsResponse) XXX_Merge

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

func (*MsgAddAllocationsResponse) XXX_Size

func (m *MsgAddAllocationsResponse) XXX_Size() int

func (*MsgAddAllocationsResponse) XXX_Unmarshal

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

type MsgClaimDaily

type MsgClaimDaily struct {
	// Address of the claimer
	Claimer string `protobuf:"bytes,1,opt,name=claimer,proto3" json:"claimer,omitempty"`
	// Airdrop ID
	AirdropId string `protobuf:"bytes,2,opt,name=airdrop_id,json=airdropId,proto3" json:"airdrop_id,omitempty"`
}

ClaimDaily

func NewMsgClaimDaily

func NewMsgClaimDaily(claimer, airdropId string) *MsgClaimDaily

func (*MsgClaimDaily) Descriptor

func (*MsgClaimDaily) Descriptor() ([]byte, []int)

func (*MsgClaimDaily) GetAirdropId

func (m *MsgClaimDaily) GetAirdropId() string

func (*MsgClaimDaily) GetClaimer

func (m *MsgClaimDaily) GetClaimer() string

func (*MsgClaimDaily) GetSignBytes

func (msg *MsgClaimDaily) GetSignBytes() []byte

func (*MsgClaimDaily) GetSigners

func (msg *MsgClaimDaily) GetSigners() []sdk.AccAddress

func (*MsgClaimDaily) Marshal

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

func (*MsgClaimDaily) MarshalTo

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

func (*MsgClaimDaily) MarshalToSizedBuffer

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

func (*MsgClaimDaily) ProtoMessage

func (*MsgClaimDaily) ProtoMessage()

func (*MsgClaimDaily) Reset

func (m *MsgClaimDaily) Reset()

func (MsgClaimDaily) Route

func (msg MsgClaimDaily) Route() string

func (*MsgClaimDaily) Size

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

func (*MsgClaimDaily) String

func (m *MsgClaimDaily) String() string

func (MsgClaimDaily) Type

func (msg MsgClaimDaily) Type() string

func (*MsgClaimDaily) Unmarshal

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

func (*MsgClaimDaily) ValidateBasic

func (msg *MsgClaimDaily) ValidateBasic() error

func (*MsgClaimDaily) XXX_DiscardUnknown

func (m *MsgClaimDaily) XXX_DiscardUnknown()

func (*MsgClaimDaily) XXX_Marshal

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

func (*MsgClaimDaily) XXX_Merge

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

func (*MsgClaimDaily) XXX_Size

func (m *MsgClaimDaily) XXX_Size() int

func (*MsgClaimDaily) XXX_Unmarshal

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

type MsgClaimDailyResponse

type MsgClaimDailyResponse struct {
}

func (*MsgClaimDailyResponse) Descriptor

func (*MsgClaimDailyResponse) Descriptor() ([]byte, []int)

func (*MsgClaimDailyResponse) Marshal

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

func (*MsgClaimDailyResponse) MarshalTo

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

func (*MsgClaimDailyResponse) MarshalToSizedBuffer

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

func (*MsgClaimDailyResponse) ProtoMessage

func (*MsgClaimDailyResponse) ProtoMessage()

func (*MsgClaimDailyResponse) Reset

func (m *MsgClaimDailyResponse) Reset()

func (*MsgClaimDailyResponse) Size

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

func (*MsgClaimDailyResponse) String

func (m *MsgClaimDailyResponse) String() string

func (*MsgClaimDailyResponse) Unmarshal

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

func (*MsgClaimDailyResponse) XXX_DiscardUnknown

func (m *MsgClaimDailyResponse) XXX_DiscardUnknown()

func (*MsgClaimDailyResponse) XXX_Marshal

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

func (*MsgClaimDailyResponse) XXX_Merge

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

func (*MsgClaimDailyResponse) XXX_Size

func (m *MsgClaimDailyResponse) XXX_Size() int

func (*MsgClaimDailyResponse) XXX_Unmarshal

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

type MsgClaimEarly

type MsgClaimEarly struct {
	// Address of the claimer
	Claimer string `protobuf:"bytes,1,opt,name=claimer,proto3" json:"claimer,omitempty"`
	// Airdrop ID
	AirdropId string `protobuf:"bytes,2,opt,name=airdrop_id,json=airdropId,proto3" json:"airdrop_id,omitempty"`
}

ClaimEarly

func NewMsgClaimEarly

func NewMsgClaimEarly(claimer, airdropId string) *MsgClaimEarly

func (*MsgClaimEarly) Descriptor

func (*MsgClaimEarly) Descriptor() ([]byte, []int)

func (*MsgClaimEarly) GetAirdropId

func (m *MsgClaimEarly) GetAirdropId() string

func (*MsgClaimEarly) GetClaimer

func (m *MsgClaimEarly) GetClaimer() string

func (*MsgClaimEarly) GetSignBytes

func (msg *MsgClaimEarly) GetSignBytes() []byte

func (*MsgClaimEarly) GetSigners

func (msg *MsgClaimEarly) GetSigners() []sdk.AccAddress

func (*MsgClaimEarly) Marshal

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

func (*MsgClaimEarly) MarshalTo

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

func (*MsgClaimEarly) MarshalToSizedBuffer

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

func (*MsgClaimEarly) ProtoMessage

func (*MsgClaimEarly) ProtoMessage()

func (*MsgClaimEarly) Reset

func (m *MsgClaimEarly) Reset()

func (MsgClaimEarly) Route

func (msg MsgClaimEarly) Route() string

func (*MsgClaimEarly) Size

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

func (*MsgClaimEarly) String

func (m *MsgClaimEarly) String() string

func (MsgClaimEarly) Type

func (msg MsgClaimEarly) Type() string

func (*MsgClaimEarly) Unmarshal

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

func (*MsgClaimEarly) ValidateBasic

func (msg *MsgClaimEarly) ValidateBasic() error

func (*MsgClaimEarly) XXX_DiscardUnknown

func (m *MsgClaimEarly) XXX_DiscardUnknown()

func (*MsgClaimEarly) XXX_Marshal

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

func (*MsgClaimEarly) XXX_Merge

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

func (*MsgClaimEarly) XXX_Size

func (m *MsgClaimEarly) XXX_Size() int

func (*MsgClaimEarly) XXX_Unmarshal

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

type MsgClaimEarlyResponse

type MsgClaimEarlyResponse struct {
}

func (*MsgClaimEarlyResponse) Descriptor

func (*MsgClaimEarlyResponse) Descriptor() ([]byte, []int)

func (*MsgClaimEarlyResponse) Marshal

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

func (*MsgClaimEarlyResponse) MarshalTo

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

func (*MsgClaimEarlyResponse) MarshalToSizedBuffer

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

func (*MsgClaimEarlyResponse) ProtoMessage

func (*MsgClaimEarlyResponse) ProtoMessage()

func (*MsgClaimEarlyResponse) Reset

func (m *MsgClaimEarlyResponse) Reset()

func (*MsgClaimEarlyResponse) Size

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

func (*MsgClaimEarlyResponse) String

func (m *MsgClaimEarlyResponse) String() string

func (*MsgClaimEarlyResponse) Unmarshal

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

func (*MsgClaimEarlyResponse) XXX_DiscardUnknown

func (m *MsgClaimEarlyResponse) XXX_DiscardUnknown()

func (*MsgClaimEarlyResponse) XXX_Marshal

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

func (*MsgClaimEarlyResponse) XXX_Merge

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

func (*MsgClaimEarlyResponse) XXX_Size

func (m *MsgClaimEarlyResponse) XXX_Size() int

func (*MsgClaimEarlyResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// User transaction to claim all the pending daily airdrop rewards
	ClaimDaily(ctx context.Context, in *MsgClaimDaily, opts ...grpc.CallOption) (*MsgClaimDailyResponse, error)
	// User transaction to claim a portion of their total amount now, and forfeit
	// the remainder to be clawed back
	ClaimEarly(ctx context.Context, in *MsgClaimEarly, opts ...grpc.CallOption) (*MsgClaimEarlyResponse, error)
	// Admin transaction to create a new airdrop
	CreateAirdrop(ctx context.Context, in *MsgCreateAirdrop, opts ...grpc.CallOption) (*MsgCreateAirdropResponse, error)
	// Admin transaction to update an existing airdrop
	UpdateAirdrop(ctx context.Context, in *MsgUpdateAirdrop, opts ...grpc.CallOption) (*MsgUpdateAirdropResponse, error)
	// Admin transaction to add multiple user allocations for a given airdrop
	AddAllocations(ctx context.Context, in *MsgAddAllocations, opts ...grpc.CallOption) (*MsgAddAllocationsResponse, error)
	// Admin transaction to update a user's allocation to an airdrop
	UpdateUserAllocation(ctx context.Context, in *MsgUpdateUserAllocation, opts ...grpc.CallOption) (*MsgUpdateUserAllocationResponse, error)
	// Admin address to link a stride and non-stride address, merging their
	// allocations
	LinkAddresses(ctx context.Context, in *MsgLinkAddresses, opts ...grpc.CallOption) (*MsgLinkAddressesResponse, 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 MsgCreateAirdrop

type MsgCreateAirdrop struct {
	// Airdrop admin address
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// Airdrop ID
	AirdropId string `protobuf:"bytes,2,opt,name=airdrop_id,json=airdropId,proto3" json:"airdrop_id,omitempty"`
	// Denom used when distributing rewards
	RewardDenom string `protobuf:"bytes,3,opt,name=reward_denom,json=rewardDenom,proto3" json:"reward_denom,omitempty"`
	// The first date that claiming begins and rewards are distributed
	DistributionStartDate *time.Time `` /* 134-byte string literal not displayed */
	// The last date for rewards to be distributed. Immediately after this date
	// the rewards can no longer be claimed, but rewards have not been clawed back
	// yet
	DistributionEndDate *time.Time `` /* 128-byte string literal not displayed */
	// Date with which the rewards are clawed back (occurs after the distribution
	// end date)
	ClawbackDate *time.Time `protobuf:"bytes,6,opt,name=clawback_date,json=clawbackDate,proto3,stdtime" json:"clawback_date,omitempty"`
	// Deadline for the user to make a decision on their claim type
	ClaimTypeDeadlineDate *time.Time `` /* 136-byte string literal not displayed */
	// Penalty for claiming rewards early - e.g. 0.5 means claiming early will
	// result in losing 50% of rewards
	EarlyClaimPenalty cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */
	// Account that holds the total reward balance and distributes to users
	DistributorAddress string `protobuf:"bytes,9,opt,name=distributor_address,json=distributorAddress,proto3" json:"distributor_address,omitempty"`
	// Admin account with permissions to add or update allocations
	AllocatorAddress string `protobuf:"bytes,10,opt,name=allocator_address,json=allocatorAddress,proto3" json:"allocator_address,omitempty"`
	// Admin account with permissions to link addresseses
	LinkerAddress string `protobuf:"bytes,11,opt,name=linker_address,json=linkerAddress,proto3" json:"linker_address,omitempty"`
}

CreateAirdrop

func NewMsgCreateAirdrop

func NewMsgCreateAirdrop(
	admin string,
	airdropId string,
	rewardDenom string,
	distributionStartDate *time.Time,
	distributionEndDate *time.Time,
	clawbackDate *time.Time,
	claimDeadlineDate *time.Time,
	earlyClaimPenalty sdk.Dec,
	distributorAddress string,
	allocatorAddress string,
	linkerAddress string,
) *MsgCreateAirdrop

func (*MsgCreateAirdrop) Descriptor

func (*MsgCreateAirdrop) Descriptor() ([]byte, []int)

func (*MsgCreateAirdrop) GetAdmin

func (m *MsgCreateAirdrop) GetAdmin() string

func (*MsgCreateAirdrop) GetAirdropId

func (m *MsgCreateAirdrop) GetAirdropId() string

func (*MsgCreateAirdrop) GetAllocatorAddress

func (m *MsgCreateAirdrop) GetAllocatorAddress() string

func (*MsgCreateAirdrop) GetClaimTypeDeadlineDate

func (m *MsgCreateAirdrop) GetClaimTypeDeadlineDate() *time.Time

func (*MsgCreateAirdrop) GetClawbackDate

func (m *MsgCreateAirdrop) GetClawbackDate() *time.Time

func (*MsgCreateAirdrop) GetDistributionEndDate

func (m *MsgCreateAirdrop) GetDistributionEndDate() *time.Time

func (*MsgCreateAirdrop) GetDistributionStartDate

func (m *MsgCreateAirdrop) GetDistributionStartDate() *time.Time

func (*MsgCreateAirdrop) GetDistributorAddress

func (m *MsgCreateAirdrop) GetDistributorAddress() string

func (*MsgCreateAirdrop) GetLinkerAddress

func (m *MsgCreateAirdrop) GetLinkerAddress() string

func (*MsgCreateAirdrop) GetRewardDenom

func (m *MsgCreateAirdrop) GetRewardDenom() string

func (*MsgCreateAirdrop) GetSignBytes

func (msg *MsgCreateAirdrop) GetSignBytes() []byte

func (*MsgCreateAirdrop) GetSigners

func (msg *MsgCreateAirdrop) GetSigners() []sdk.AccAddress

func (*MsgCreateAirdrop) Marshal

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

func (*MsgCreateAirdrop) MarshalTo

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

func (*MsgCreateAirdrop) MarshalToSizedBuffer

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

func (*MsgCreateAirdrop) ProtoMessage

func (*MsgCreateAirdrop) ProtoMessage()

func (*MsgCreateAirdrop) Reset

func (m *MsgCreateAirdrop) Reset()

func (MsgCreateAirdrop) Route

func (msg MsgCreateAirdrop) Route() string

func (*MsgCreateAirdrop) Size

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

func (*MsgCreateAirdrop) String

func (m *MsgCreateAirdrop) String() string

func (MsgCreateAirdrop) Type

func (msg MsgCreateAirdrop) Type() string

func (*MsgCreateAirdrop) Unmarshal

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

func (*MsgCreateAirdrop) ValidateBasic

func (msg *MsgCreateAirdrop) ValidateBasic() error

func (*MsgCreateAirdrop) XXX_DiscardUnknown

func (m *MsgCreateAirdrop) XXX_DiscardUnknown()

func (*MsgCreateAirdrop) XXX_Marshal

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

func (*MsgCreateAirdrop) XXX_Merge

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

func (*MsgCreateAirdrop) XXX_Size

func (m *MsgCreateAirdrop) XXX_Size() int

func (*MsgCreateAirdrop) XXX_Unmarshal

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

type MsgCreateAirdropResponse

type MsgCreateAirdropResponse struct {
}

func (*MsgCreateAirdropResponse) Descriptor

func (*MsgCreateAirdropResponse) Descriptor() ([]byte, []int)

func (*MsgCreateAirdropResponse) Marshal

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

func (*MsgCreateAirdropResponse) MarshalTo

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

func (*MsgCreateAirdropResponse) MarshalToSizedBuffer

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

func (*MsgCreateAirdropResponse) ProtoMessage

func (*MsgCreateAirdropResponse) ProtoMessage()

func (*MsgCreateAirdropResponse) Reset

func (m *MsgCreateAirdropResponse) Reset()

func (*MsgCreateAirdropResponse) Size

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

func (*MsgCreateAirdropResponse) String

func (m *MsgCreateAirdropResponse) String() string

func (*MsgCreateAirdropResponse) Unmarshal

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

func (*MsgCreateAirdropResponse) XXX_DiscardUnknown

func (m *MsgCreateAirdropResponse) XXX_DiscardUnknown()

func (*MsgCreateAirdropResponse) XXX_Marshal

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

func (*MsgCreateAirdropResponse) XXX_Merge

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

func (*MsgCreateAirdropResponse) XXX_Size

func (m *MsgCreateAirdropResponse) XXX_Size() int

func (*MsgCreateAirdropResponse) XXX_Unmarshal

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

type MsgLinkAddresses

type MsgLinkAddresses struct {
	// Airdrop admin address
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// Airdrop ID
	AirdropId string `protobuf:"bytes,2,opt,name=airdrop_id,json=airdropId,proto3" json:"airdrop_id,omitempty"`
	// Stride address - this address may or may not exist in allocations yet
	StrideAddress string `protobuf:"bytes,3,opt,name=stride_address,json=strideAddress,proto3" json:"stride_address,omitempty"`
	// Host address - this address must exist
	HostAddress string `protobuf:"bytes,4,opt,name=host_address,json=hostAddress,proto3" json:"host_address,omitempty"`
}

LinkAddresses

func NewMsgLinkAddresses

func NewMsgLinkAddresses(admin, airdropId, strideAddress, hostAddress string) *MsgLinkAddresses

func (*MsgLinkAddresses) Descriptor

func (*MsgLinkAddresses) Descriptor() ([]byte, []int)

func (*MsgLinkAddresses) GetAdmin

func (m *MsgLinkAddresses) GetAdmin() string

func (*MsgLinkAddresses) GetAirdropId

func (m *MsgLinkAddresses) GetAirdropId() string

func (*MsgLinkAddresses) GetHostAddress

func (m *MsgLinkAddresses) GetHostAddress() string

func (*MsgLinkAddresses) GetSignBytes

func (msg *MsgLinkAddresses) GetSignBytes() []byte

func (*MsgLinkAddresses) GetSigners

func (msg *MsgLinkAddresses) GetSigners() []sdk.AccAddress

func (*MsgLinkAddresses) GetStrideAddress

func (m *MsgLinkAddresses) GetStrideAddress() string

func (*MsgLinkAddresses) Marshal

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

func (*MsgLinkAddresses) MarshalTo

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

func (*MsgLinkAddresses) MarshalToSizedBuffer

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

func (*MsgLinkAddresses) ProtoMessage

func (*MsgLinkAddresses) ProtoMessage()

func (*MsgLinkAddresses) Reset

func (m *MsgLinkAddresses) Reset()

func (MsgLinkAddresses) Route

func (msg MsgLinkAddresses) Route() string

func (*MsgLinkAddresses) Size

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

func (*MsgLinkAddresses) String

func (m *MsgLinkAddresses) String() string

func (MsgLinkAddresses) Type

func (msg MsgLinkAddresses) Type() string

func (*MsgLinkAddresses) Unmarshal

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

func (*MsgLinkAddresses) ValidateBasic

func (msg *MsgLinkAddresses) ValidateBasic() error

func (*MsgLinkAddresses) XXX_DiscardUnknown

func (m *MsgLinkAddresses) XXX_DiscardUnknown()

func (*MsgLinkAddresses) XXX_Marshal

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

func (*MsgLinkAddresses) XXX_Merge

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

func (*MsgLinkAddresses) XXX_Size

func (m *MsgLinkAddresses) XXX_Size() int

func (*MsgLinkAddresses) XXX_Unmarshal

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

type MsgLinkAddressesResponse

type MsgLinkAddressesResponse struct {
}

func (*MsgLinkAddressesResponse) Descriptor

func (*MsgLinkAddressesResponse) Descriptor() ([]byte, []int)

func (*MsgLinkAddressesResponse) Marshal

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

func (*MsgLinkAddressesResponse) MarshalTo

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

func (*MsgLinkAddressesResponse) MarshalToSizedBuffer

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

func (*MsgLinkAddressesResponse) ProtoMessage

func (*MsgLinkAddressesResponse) ProtoMessage()

func (*MsgLinkAddressesResponse) Reset

func (m *MsgLinkAddressesResponse) Reset()

func (*MsgLinkAddressesResponse) Size

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

func (*MsgLinkAddressesResponse) String

func (m *MsgLinkAddressesResponse) String() string

func (*MsgLinkAddressesResponse) Unmarshal

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

func (*MsgLinkAddressesResponse) XXX_DiscardUnknown

func (m *MsgLinkAddressesResponse) XXX_DiscardUnknown()

func (*MsgLinkAddressesResponse) XXX_Marshal

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

func (*MsgLinkAddressesResponse) XXX_Merge

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

func (*MsgLinkAddressesResponse) XXX_Size

func (m *MsgLinkAddressesResponse) XXX_Size() int

func (*MsgLinkAddressesResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// User transaction to claim all the pending daily airdrop rewards
	ClaimDaily(context.Context, *MsgClaimDaily) (*MsgClaimDailyResponse, error)
	// User transaction to claim a portion of their total amount now, and forfeit
	// the remainder to be clawed back
	ClaimEarly(context.Context, *MsgClaimEarly) (*MsgClaimEarlyResponse, error)
	// Admin transaction to create a new airdrop
	CreateAirdrop(context.Context, *MsgCreateAirdrop) (*MsgCreateAirdropResponse, error)
	// Admin transaction to update an existing airdrop
	UpdateAirdrop(context.Context, *MsgUpdateAirdrop) (*MsgUpdateAirdropResponse, error)
	// Admin transaction to add multiple user allocations for a given airdrop
	AddAllocations(context.Context, *MsgAddAllocations) (*MsgAddAllocationsResponse, error)
	// Admin transaction to update a user's allocation to an airdrop
	UpdateUserAllocation(context.Context, *MsgUpdateUserAllocation) (*MsgUpdateUserAllocationResponse, error)
	// Admin address to link a stride and non-stride address, merging their
	// allocations
	LinkAddresses(context.Context, *MsgLinkAddresses) (*MsgLinkAddressesResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateAirdrop

type MsgUpdateAirdrop struct {
	// Airdrop admin address
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// Airdrop ID
	AirdropId string `protobuf:"bytes,2,opt,name=airdrop_id,json=airdropId,proto3" json:"airdrop_id,omitempty"`
	// Denom used when distributing rewards
	RewardDenom string `protobuf:"bytes,3,opt,name=reward_denom,json=rewardDenom,proto3" json:"reward_denom,omitempty"`
	// The first date that claiming begins and rewards are distributed
	DistributionStartDate *time.Time `` /* 134-byte string literal not displayed */
	// The last date for rewards to be distributed. Immediately after this date
	// the rewards can no longer be claimed, but rewards have not been clawed back
	// yet
	DistributionEndDate *time.Time `` /* 128-byte string literal not displayed */
	// Date with which the rewards are clawed back (occurs after the distribution
	// end date)
	ClawbackDate *time.Time `protobuf:"bytes,6,opt,name=clawback_date,json=clawbackDate,proto3,stdtime" json:"clawback_date,omitempty"`
	// Deadline for the user to make a decision on their claim type
	ClaimTypeDeadlineDate *time.Time `` /* 136-byte string literal not displayed */
	// Penalty for claiming rewards early - e.g. 0.5 means claiming early will
	// result in losing 50% of rewards
	EarlyClaimPenalty cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */
	// Account that holds the total reward balance and distributes to users
	DistributorAddress string `protobuf:"bytes,9,opt,name=distributor_address,json=distributorAddress,proto3" json:"distributor_address,omitempty"`
	// Admin account with permissions to add or update allocations
	AllocatorAddress string `protobuf:"bytes,10,opt,name=allocator_address,json=allocatorAddress,proto3" json:"allocator_address,omitempty"`
	// Admin account with permissions to link addresseses
	LinkerAddress string `protobuf:"bytes,11,opt,name=linker_address,json=linkerAddress,proto3" json:"linker_address,omitempty"`
}

UpdateAirdrop

func NewMsgUpdateAirdrop

func NewMsgUpdateAirdrop(
	admin string,
	airdropId string,
	rewardDenom string,
	distributionStartDate *time.Time,
	distributionEndDate *time.Time,
	clawbackDate *time.Time,
	claimDeadlineDate *time.Time,
	earlyClaimPenalty sdk.Dec,
	distributorAddress string,
	allocatorAddress string,
	linkerAddress string,
) *MsgUpdateAirdrop

func (*MsgUpdateAirdrop) Descriptor

func (*MsgUpdateAirdrop) Descriptor() ([]byte, []int)

func (*MsgUpdateAirdrop) GetAdmin

func (m *MsgUpdateAirdrop) GetAdmin() string

func (*MsgUpdateAirdrop) GetAirdropId

func (m *MsgUpdateAirdrop) GetAirdropId() string

func (*MsgUpdateAirdrop) GetAllocatorAddress

func (m *MsgUpdateAirdrop) GetAllocatorAddress() string

func (*MsgUpdateAirdrop) GetClaimTypeDeadlineDate

func (m *MsgUpdateAirdrop) GetClaimTypeDeadlineDate() *time.Time

func (*MsgUpdateAirdrop) GetClawbackDate

func (m *MsgUpdateAirdrop) GetClawbackDate() *time.Time

func (*MsgUpdateAirdrop) GetDistributionEndDate

func (m *MsgUpdateAirdrop) GetDistributionEndDate() *time.Time

func (*MsgUpdateAirdrop) GetDistributionStartDate

func (m *MsgUpdateAirdrop) GetDistributionStartDate() *time.Time

func (*MsgUpdateAirdrop) GetDistributorAddress

func (m *MsgUpdateAirdrop) GetDistributorAddress() string

func (*MsgUpdateAirdrop) GetLinkerAddress

func (m *MsgUpdateAirdrop) GetLinkerAddress() string

func (*MsgUpdateAirdrop) GetRewardDenom

func (m *MsgUpdateAirdrop) GetRewardDenom() string

func (*MsgUpdateAirdrop) GetSignBytes

func (msg *MsgUpdateAirdrop) GetSignBytes() []byte

func (*MsgUpdateAirdrop) GetSigners

func (msg *MsgUpdateAirdrop) GetSigners() []sdk.AccAddress

func (*MsgUpdateAirdrop) Marshal

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

func (*MsgUpdateAirdrop) MarshalTo

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

func (*MsgUpdateAirdrop) MarshalToSizedBuffer

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

func (*MsgUpdateAirdrop) ProtoMessage

func (*MsgUpdateAirdrop) ProtoMessage()

func (*MsgUpdateAirdrop) Reset

func (m *MsgUpdateAirdrop) Reset()

func (MsgUpdateAirdrop) Route

func (msg MsgUpdateAirdrop) Route() string

func (*MsgUpdateAirdrop) Size

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

func (*MsgUpdateAirdrop) String

func (m *MsgUpdateAirdrop) String() string

func (MsgUpdateAirdrop) Type

func (msg MsgUpdateAirdrop) Type() string

func (*MsgUpdateAirdrop) Unmarshal

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

func (*MsgUpdateAirdrop) ValidateBasic

func (msg *MsgUpdateAirdrop) ValidateBasic() error

func (*MsgUpdateAirdrop) XXX_DiscardUnknown

func (m *MsgUpdateAirdrop) XXX_DiscardUnknown()

func (*MsgUpdateAirdrop) XXX_Marshal

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

func (*MsgUpdateAirdrop) XXX_Merge

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

func (*MsgUpdateAirdrop) XXX_Size

func (m *MsgUpdateAirdrop) XXX_Size() int

func (*MsgUpdateAirdrop) XXX_Unmarshal

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

type MsgUpdateAirdropResponse

type MsgUpdateAirdropResponse struct {
}

func (*MsgUpdateAirdropResponse) Descriptor

func (*MsgUpdateAirdropResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateAirdropResponse) Marshal

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

func (*MsgUpdateAirdropResponse) MarshalTo

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

func (*MsgUpdateAirdropResponse) MarshalToSizedBuffer

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

func (*MsgUpdateAirdropResponse) ProtoMessage

func (*MsgUpdateAirdropResponse) ProtoMessage()

func (*MsgUpdateAirdropResponse) Reset

func (m *MsgUpdateAirdropResponse) Reset()

func (*MsgUpdateAirdropResponse) Size

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

func (*MsgUpdateAirdropResponse) String

func (m *MsgUpdateAirdropResponse) String() string

func (*MsgUpdateAirdropResponse) Unmarshal

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

func (*MsgUpdateAirdropResponse) XXX_DiscardUnknown

func (m *MsgUpdateAirdropResponse) XXX_DiscardUnknown()

func (*MsgUpdateAirdropResponse) XXX_Marshal

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

func (*MsgUpdateAirdropResponse) XXX_Merge

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

func (*MsgUpdateAirdropResponse) XXX_Size

func (m *MsgUpdateAirdropResponse) XXX_Size() int

func (*MsgUpdateAirdropResponse) XXX_Unmarshal

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

type MsgUpdateUserAllocation

type MsgUpdateUserAllocation struct {
	// Airdrop admin address
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// Airdrop ID
	AirdropId string `protobuf:"bytes,2,opt,name=airdrop_id,json=airdropId,proto3" json:"airdrop_id,omitempty"`
	// Address of the airdrop recipient
	UserAddress string `protobuf:"bytes,3,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"`
	// Allocations - as an array where each element represents the rewards for a
	// day
	Allocations []cosmossdk_io_math.Int `protobuf:"bytes,4,rep,name=allocations,proto3,customtype=cosmossdk.io/math.Int" json:"allocations"`
}

UpdateUserAllocation

func NewMsgUpdateUserAllocation

func NewMsgUpdateUserAllocation(admin, airdropId, userAddress string, allocations []sdkmath.Int) *MsgUpdateUserAllocation

func (*MsgUpdateUserAllocation) Descriptor

func (*MsgUpdateUserAllocation) Descriptor() ([]byte, []int)

func (*MsgUpdateUserAllocation) GetAdmin

func (m *MsgUpdateUserAllocation) GetAdmin() string

func (*MsgUpdateUserAllocation) GetAirdropId

func (m *MsgUpdateUserAllocation) GetAirdropId() string

func (*MsgUpdateUserAllocation) GetSignBytes

func (msg *MsgUpdateUserAllocation) GetSignBytes() []byte

func (*MsgUpdateUserAllocation) GetSigners

func (msg *MsgUpdateUserAllocation) GetSigners() []sdk.AccAddress

func (*MsgUpdateUserAllocation) GetUserAddress

func (m *MsgUpdateUserAllocation) GetUserAddress() string

func (*MsgUpdateUserAllocation) Marshal

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

func (*MsgUpdateUserAllocation) MarshalTo

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

func (*MsgUpdateUserAllocation) MarshalToSizedBuffer

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

func (*MsgUpdateUserAllocation) ProtoMessage

func (*MsgUpdateUserAllocation) ProtoMessage()

func (*MsgUpdateUserAllocation) Reset

func (m *MsgUpdateUserAllocation) Reset()

func (MsgUpdateUserAllocation) Route

func (msg MsgUpdateUserAllocation) Route() string

func (*MsgUpdateUserAllocation) Size

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

func (*MsgUpdateUserAllocation) String

func (m *MsgUpdateUserAllocation) String() string

func (MsgUpdateUserAllocation) Type

func (msg MsgUpdateUserAllocation) Type() string

func (*MsgUpdateUserAllocation) Unmarshal

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

func (*MsgUpdateUserAllocation) ValidateBasic

func (msg *MsgUpdateUserAllocation) ValidateBasic() error

func (*MsgUpdateUserAllocation) XXX_DiscardUnknown

func (m *MsgUpdateUserAllocation) XXX_DiscardUnknown()

func (*MsgUpdateUserAllocation) XXX_Marshal

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

func (*MsgUpdateUserAllocation) XXX_Merge

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

func (*MsgUpdateUserAllocation) XXX_Size

func (m *MsgUpdateUserAllocation) XXX_Size() int

func (*MsgUpdateUserAllocation) XXX_Unmarshal

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

type MsgUpdateUserAllocationResponse

type MsgUpdateUserAllocationResponse struct {
}

func (*MsgUpdateUserAllocationResponse) Descriptor

func (*MsgUpdateUserAllocationResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateUserAllocationResponse) Marshal

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

func (*MsgUpdateUserAllocationResponse) MarshalTo

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

func (*MsgUpdateUserAllocationResponse) MarshalToSizedBuffer

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

func (*MsgUpdateUserAllocationResponse) ProtoMessage

func (*MsgUpdateUserAllocationResponse) ProtoMessage()

func (*MsgUpdateUserAllocationResponse) Reset

func (*MsgUpdateUserAllocationResponse) Size

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

func (*MsgUpdateUserAllocationResponse) String

func (*MsgUpdateUserAllocationResponse) Unmarshal

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

func (*MsgUpdateUserAllocationResponse) XXX_DiscardUnknown

func (m *MsgUpdateUserAllocationResponse) XXX_DiscardUnknown()

func (*MsgUpdateUserAllocationResponse) XXX_Marshal

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

func (*MsgUpdateUserAllocationResponse) XXX_Merge

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

func (*MsgUpdateUserAllocationResponse) XXX_Size

func (m *MsgUpdateUserAllocationResponse) XXX_Size() int

func (*MsgUpdateUserAllocationResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// The number of seconds between each element in the allocations array
	// In practice this is always 24 hours, but it's customizable for testing
	PeriodLengthSeconds int64 `protobuf:"varint,1,opt,name=period_length_seconds,json=periodLengthSeconds,proto3" json:"period_length_seconds,omitempty"`
}

Airdrop module parameters

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetPeriodLengthSeconds

func (m *Params) GetPeriodLengthSeconds() int64

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

type QueryAirdropRequest

type QueryAirdropRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

Airdrop

func (*QueryAirdropRequest) Descriptor

func (*QueryAirdropRequest) Descriptor() ([]byte, []int)

func (*QueryAirdropRequest) GetId

func (m *QueryAirdropRequest) GetId() string

func (*QueryAirdropRequest) Marshal

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

func (*QueryAirdropRequest) MarshalTo

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

func (*QueryAirdropRequest) MarshalToSizedBuffer

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

func (*QueryAirdropRequest) ProtoMessage

func (*QueryAirdropRequest) ProtoMessage()

func (*QueryAirdropRequest) Reset

func (m *QueryAirdropRequest) Reset()

func (*QueryAirdropRequest) Size

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

func (*QueryAirdropRequest) String

func (m *QueryAirdropRequest) String() string

func (*QueryAirdropRequest) Unmarshal

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

func (*QueryAirdropRequest) XXX_DiscardUnknown

func (m *QueryAirdropRequest) XXX_DiscardUnknown()

func (*QueryAirdropRequest) XXX_Marshal

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

func (*QueryAirdropRequest) XXX_Merge

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

func (*QueryAirdropRequest) XXX_Size

func (m *QueryAirdropRequest) XXX_Size() int

func (*QueryAirdropRequest) XXX_Unmarshal

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

type QueryAirdropResponse

type QueryAirdropResponse struct {
	// Airdrop ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Denom used when distributing rewards
	RewardDenom string `protobuf:"bytes,2,opt,name=reward_denom,json=rewardDenom,proto3" json:"reward_denom,omitempty"`
	// The first date that claiming begins and rewards are distributed
	DistributionStartDate *time.Time `` /* 134-byte string literal not displayed */
	// The last date for rewards to be distributed. Immediately after this date
	// the rewards can no longer be claimed, but rewards have not been clawed back
	// yet
	DistributionEndDate *time.Time `` /* 128-byte string literal not displayed */
	// Date with which the rewards are clawed back (occurs after the distribution
	// end date)
	ClawbackDate *time.Time `protobuf:"bytes,5,opt,name=clawback_date,json=clawbackDate,proto3,stdtime" json:"clawback_date,omitempty"`
	// Deadline for the user to make a decision on their claim type
	ClaimTypeDeadlineDate *time.Time `` /* 136-byte string literal not displayed */
	// Penalty for claiming rewards early - e.g. 0.5 means claiming early will
	// result in losing 50% of rewards
	EarlyClaimPenalty cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */
	// Account that holds the total reward balance and distributes to users
	DistributorAddress string `protobuf:"bytes,8,opt,name=distributor_address,json=distributorAddress,proto3" json:"distributor_address,omitempty"`
	// Admin account with permissions to add or update allocations
	AllocatorAddress string `protobuf:"bytes,9,opt,name=allocator_address,json=allocatorAddress,proto3" json:"allocator_address,omitempty"`
	// Admin account with permissions to link addresseses
	LinkerAddress string `protobuf:"bytes,10,opt,name=linker_address,json=linkerAddress,proto3" json:"linker_address,omitempty"`
	// The current date index into the airdrop array
	CurrentDateIndex int64 `protobuf:"varint,11,opt,name=current_date_index,json=currentDateIndex,proto3" json:"current_date_index,omitempty"`
	// The length of the airdrop (i.e. number of periods in the airdrop array)
	AirdropLength int64 `protobuf:"varint,12,opt,name=airdrop_length,json=airdropLength,proto3" json:"airdrop_length,omitempty"`
}

func (*QueryAirdropResponse) Descriptor

func (*QueryAirdropResponse) Descriptor() ([]byte, []int)

func (*QueryAirdropResponse) GetAirdropLength

func (m *QueryAirdropResponse) GetAirdropLength() int64

func (*QueryAirdropResponse) GetAllocatorAddress

func (m *QueryAirdropResponse) GetAllocatorAddress() string

func (*QueryAirdropResponse) GetClaimTypeDeadlineDate

func (m *QueryAirdropResponse) GetClaimTypeDeadlineDate() *time.Time

func (*QueryAirdropResponse) GetClawbackDate

func (m *QueryAirdropResponse) GetClawbackDate() *time.Time

func (*QueryAirdropResponse) GetCurrentDateIndex

func (m *QueryAirdropResponse) GetCurrentDateIndex() int64

func (*QueryAirdropResponse) GetDistributionEndDate

func (m *QueryAirdropResponse) GetDistributionEndDate() *time.Time

func (*QueryAirdropResponse) GetDistributionStartDate

func (m *QueryAirdropResponse) GetDistributionStartDate() *time.Time

func (*QueryAirdropResponse) GetDistributorAddress

func (m *QueryAirdropResponse) GetDistributorAddress() string

func (*QueryAirdropResponse) GetId

func (m *QueryAirdropResponse) GetId() string

func (*QueryAirdropResponse) GetLinkerAddress

func (m *QueryAirdropResponse) GetLinkerAddress() string

func (*QueryAirdropResponse) GetRewardDenom

func (m *QueryAirdropResponse) GetRewardDenom() string

func (*QueryAirdropResponse) Marshal

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

func (*QueryAirdropResponse) MarshalTo

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

func (*QueryAirdropResponse) MarshalToSizedBuffer

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

func (*QueryAirdropResponse) ProtoMessage

func (*QueryAirdropResponse) ProtoMessage()

func (*QueryAirdropResponse) Reset

func (m *QueryAirdropResponse) Reset()

func (*QueryAirdropResponse) Size

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

func (*QueryAirdropResponse) String

func (m *QueryAirdropResponse) String() string

func (*QueryAirdropResponse) Unmarshal

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

func (*QueryAirdropResponse) XXX_DiscardUnknown

func (m *QueryAirdropResponse) XXX_DiscardUnknown()

func (*QueryAirdropResponse) XXX_Marshal

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

func (*QueryAirdropResponse) XXX_Merge

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

func (*QueryAirdropResponse) XXX_Size

func (m *QueryAirdropResponse) XXX_Size() int

func (*QueryAirdropResponse) XXX_Unmarshal

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

type QueryAllAirdropsRequest

type QueryAllAirdropsRequest struct {
}

Airdrops

func (*QueryAllAirdropsRequest) Descriptor

func (*QueryAllAirdropsRequest) Descriptor() ([]byte, []int)

func (*QueryAllAirdropsRequest) Marshal

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

func (*QueryAllAirdropsRequest) MarshalTo

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

func (*QueryAllAirdropsRequest) MarshalToSizedBuffer

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

func (*QueryAllAirdropsRequest) ProtoMessage

func (*QueryAllAirdropsRequest) ProtoMessage()

func (*QueryAllAirdropsRequest) Reset

func (m *QueryAllAirdropsRequest) Reset()

func (*QueryAllAirdropsRequest) Size

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

func (*QueryAllAirdropsRequest) String

func (m *QueryAllAirdropsRequest) String() string

func (*QueryAllAirdropsRequest) Unmarshal

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

func (*QueryAllAirdropsRequest) XXX_DiscardUnknown

func (m *QueryAllAirdropsRequest) XXX_DiscardUnknown()

func (*QueryAllAirdropsRequest) XXX_Marshal

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

func (*QueryAllAirdropsRequest) XXX_Merge

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

func (*QueryAllAirdropsRequest) XXX_Size

func (m *QueryAllAirdropsRequest) XXX_Size() int

func (*QueryAllAirdropsRequest) XXX_Unmarshal

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

type QueryAllAirdropsResponse

type QueryAllAirdropsResponse struct {
	Airdrops []Airdrop `protobuf:"bytes,1,rep,name=airdrops,proto3" json:"airdrops"`
}

func (*QueryAllAirdropsResponse) Descriptor

func (*QueryAllAirdropsResponse) Descriptor() ([]byte, []int)

func (*QueryAllAirdropsResponse) GetAirdrops

func (m *QueryAllAirdropsResponse) GetAirdrops() []Airdrop

func (*QueryAllAirdropsResponse) Marshal

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

func (*QueryAllAirdropsResponse) MarshalTo

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

func (*QueryAllAirdropsResponse) MarshalToSizedBuffer

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

func (*QueryAllAirdropsResponse) ProtoMessage

func (*QueryAllAirdropsResponse) ProtoMessage()

func (*QueryAllAirdropsResponse) Reset

func (m *QueryAllAirdropsResponse) Reset()

func (*QueryAllAirdropsResponse) Size

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

func (*QueryAllAirdropsResponse) String

func (m *QueryAllAirdropsResponse) String() string

func (*QueryAllAirdropsResponse) Unmarshal

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

func (*QueryAllAirdropsResponse) XXX_DiscardUnknown

func (m *QueryAllAirdropsResponse) XXX_DiscardUnknown()

func (*QueryAllAirdropsResponse) XXX_Marshal

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

func (*QueryAllAirdropsResponse) XXX_Merge

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

func (*QueryAllAirdropsResponse) XXX_Size

func (m *QueryAllAirdropsResponse) XXX_Size() int

func (*QueryAllAirdropsResponse) XXX_Unmarshal

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

type QueryAllAllocationsRequest

type QueryAllAllocationsRequest struct {
	AirdropId  string             `protobuf:"bytes,1,opt,name=airdrop_id,json=airdropId,proto3" json:"airdrop_id,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

AllAllocations

func (*QueryAllAllocationsRequest) Descriptor

func (*QueryAllAllocationsRequest) Descriptor() ([]byte, []int)

func (*QueryAllAllocationsRequest) GetAirdropId

func (m *QueryAllAllocationsRequest) GetAirdropId() string

func (*QueryAllAllocationsRequest) GetPagination

func (m *QueryAllAllocationsRequest) GetPagination() *query.PageRequest

func (*QueryAllAllocationsRequest) Marshal

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

func (*QueryAllAllocationsRequest) MarshalTo

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

func (*QueryAllAllocationsRequest) MarshalToSizedBuffer

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

func (*QueryAllAllocationsRequest) ProtoMessage

func (*QueryAllAllocationsRequest) ProtoMessage()

func (*QueryAllAllocationsRequest) Reset

func (m *QueryAllAllocationsRequest) Reset()

func (*QueryAllAllocationsRequest) Size

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

func (*QueryAllAllocationsRequest) String

func (m *QueryAllAllocationsRequest) String() string

func (*QueryAllAllocationsRequest) Unmarshal

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

func (*QueryAllAllocationsRequest) XXX_DiscardUnknown

func (m *QueryAllAllocationsRequest) XXX_DiscardUnknown()

func (*QueryAllAllocationsRequest) XXX_Marshal

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

func (*QueryAllAllocationsRequest) XXX_Merge

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

func (*QueryAllAllocationsRequest) XXX_Size

func (m *QueryAllAllocationsRequest) XXX_Size() int

func (*QueryAllAllocationsRequest) XXX_Unmarshal

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

type QueryAllAllocationsResponse

type QueryAllAllocationsResponse struct {
	Allocations []UserAllocation    `protobuf:"bytes,1,rep,name=allocations,proto3" json:"allocations"`
	Pagination  *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllAllocationsResponse) Descriptor

func (*QueryAllAllocationsResponse) Descriptor() ([]byte, []int)

func (*QueryAllAllocationsResponse) GetAllocations

func (m *QueryAllAllocationsResponse) GetAllocations() []UserAllocation

func (*QueryAllAllocationsResponse) GetPagination

func (m *QueryAllAllocationsResponse) GetPagination() *query.PageResponse

func (*QueryAllAllocationsResponse) Marshal

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

func (*QueryAllAllocationsResponse) MarshalTo

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

func (*QueryAllAllocationsResponse) MarshalToSizedBuffer

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

func (*QueryAllAllocationsResponse) ProtoMessage

func (*QueryAllAllocationsResponse) ProtoMessage()

func (*QueryAllAllocationsResponse) Reset

func (m *QueryAllAllocationsResponse) Reset()

func (*QueryAllAllocationsResponse) Size

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

func (*QueryAllAllocationsResponse) String

func (m *QueryAllAllocationsResponse) String() string

func (*QueryAllAllocationsResponse) Unmarshal

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

func (*QueryAllAllocationsResponse) XXX_DiscardUnknown

func (m *QueryAllAllocationsResponse) XXX_DiscardUnknown()

func (*QueryAllAllocationsResponse) XXX_Marshal

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

func (*QueryAllAllocationsResponse) XXX_Merge

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

func (*QueryAllAllocationsResponse) XXX_Size

func (m *QueryAllAllocationsResponse) XXX_Size() int

func (*QueryAllAllocationsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Queries the configuration for a given airdrop
	Airdrop(ctx context.Context, in *QueryAirdropRequest, opts ...grpc.CallOption) (*QueryAirdropResponse, error)
	// Queries all airdrop configurations
	AllAirdrops(ctx context.Context, in *QueryAllAirdropsRequest, opts ...grpc.CallOption) (*QueryAllAirdropsResponse, error)
	// Queries the allocation for a given user for an airdrop
	UserAllocation(ctx context.Context, in *QueryUserAllocationRequest, opts ...grpc.CallOption) (*QueryUserAllocationResponse, error)
	// Queries the allocations for a given user across all airdrops
	UserAllocations(ctx context.Context, in *QueryUserAllocationsRequest, opts ...grpc.CallOption) (*QueryUserAllocationsResponse, error)
	// Queries all allocations across all addresses
	AllAllocations(ctx context.Context, in *QueryAllAllocationsRequest, opts ...grpc.CallOption) (*QueryAllAllocationsResponse, error)
	// Queries the state of an address for an airdrop including the claim type,
	// amount claimed so far, and unclaimed amount
	UserSummary(ctx context.Context, in *QueryUserSummaryRequest, opts ...grpc.CallOption) (*QueryUserSummaryResponse, 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 QueryServer

type QueryServer interface {
	// Queries the configuration for a given airdrop
	Airdrop(context.Context, *QueryAirdropRequest) (*QueryAirdropResponse, error)
	// Queries all airdrop configurations
	AllAirdrops(context.Context, *QueryAllAirdropsRequest) (*QueryAllAirdropsResponse, error)
	// Queries the allocation for a given user for an airdrop
	UserAllocation(context.Context, *QueryUserAllocationRequest) (*QueryUserAllocationResponse, error)
	// Queries the allocations for a given user across all airdrops
	UserAllocations(context.Context, *QueryUserAllocationsRequest) (*QueryUserAllocationsResponse, error)
	// Queries all allocations across all addresses
	AllAllocations(context.Context, *QueryAllAllocationsRequest) (*QueryAllAllocationsResponse, error)
	// Queries the state of an address for an airdrop including the claim type,
	// amount claimed so far, and unclaimed amount
	UserSummary(context.Context, *QueryUserSummaryRequest) (*QueryUserSummaryResponse, error)
}

QueryServer is the server API for Query service.

type QueryUserAllocationRequest

type QueryUserAllocationRequest struct {
	AirdropId string `protobuf:"bytes,1,opt,name=airdrop_id,json=airdropId,proto3" json:"airdrop_id,omitempty"`
	Address   string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

UserAllocation

func (*QueryUserAllocationRequest) Descriptor

func (*QueryUserAllocationRequest) Descriptor() ([]byte, []int)

func (*QueryUserAllocationRequest) GetAddress

func (m *QueryUserAllocationRequest) GetAddress() string

func (*QueryUserAllocationRequest) GetAirdropId

func (m *QueryUserAllocationRequest) GetAirdropId() string

func (*QueryUserAllocationRequest) Marshal

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

func (*QueryUserAllocationRequest) MarshalTo

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

func (*QueryUserAllocationRequest) MarshalToSizedBuffer

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

func (*QueryUserAllocationRequest) ProtoMessage

func (*QueryUserAllocationRequest) ProtoMessage()

func (*QueryUserAllocationRequest) Reset

func (m *QueryUserAllocationRequest) Reset()

func (*QueryUserAllocationRequest) Size

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

func (*QueryUserAllocationRequest) String

func (m *QueryUserAllocationRequest) String() string

func (*QueryUserAllocationRequest) Unmarshal

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

func (*QueryUserAllocationRequest) XXX_DiscardUnknown

func (m *QueryUserAllocationRequest) XXX_DiscardUnknown()

func (*QueryUserAllocationRequest) XXX_Marshal

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

func (*QueryUserAllocationRequest) XXX_Merge

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

func (*QueryUserAllocationRequest) XXX_Size

func (m *QueryUserAllocationRequest) XXX_Size() int

func (*QueryUserAllocationRequest) XXX_Unmarshal

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

type QueryUserAllocationResponse

type QueryUserAllocationResponse struct {
	UserAllocation *UserAllocation `protobuf:"bytes,1,opt,name=user_allocation,json=userAllocation,proto3" json:"user_allocation,omitempty"`
}

func (*QueryUserAllocationResponse) Descriptor

func (*QueryUserAllocationResponse) Descriptor() ([]byte, []int)

func (*QueryUserAllocationResponse) GetUserAllocation

func (m *QueryUserAllocationResponse) GetUserAllocation() *UserAllocation

func (*QueryUserAllocationResponse) Marshal

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

func (*QueryUserAllocationResponse) MarshalTo

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

func (*QueryUserAllocationResponse) MarshalToSizedBuffer

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

func (*QueryUserAllocationResponse) ProtoMessage

func (*QueryUserAllocationResponse) ProtoMessage()

func (*QueryUserAllocationResponse) Reset

func (m *QueryUserAllocationResponse) Reset()

func (*QueryUserAllocationResponse) Size

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

func (*QueryUserAllocationResponse) String

func (m *QueryUserAllocationResponse) String() string

func (*QueryUserAllocationResponse) Unmarshal

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

func (*QueryUserAllocationResponse) XXX_DiscardUnknown

func (m *QueryUserAllocationResponse) XXX_DiscardUnknown()

func (*QueryUserAllocationResponse) XXX_Marshal

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

func (*QueryUserAllocationResponse) XXX_Merge

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

func (*QueryUserAllocationResponse) XXX_Size

func (m *QueryUserAllocationResponse) XXX_Size() int

func (*QueryUserAllocationResponse) XXX_Unmarshal

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

type QueryUserAllocationsRequest

type QueryUserAllocationsRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

UserAllocations

func (*QueryUserAllocationsRequest) Descriptor

func (*QueryUserAllocationsRequest) Descriptor() ([]byte, []int)

func (*QueryUserAllocationsRequest) GetAddress

func (m *QueryUserAllocationsRequest) GetAddress() string

func (*QueryUserAllocationsRequest) Marshal

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

func (*QueryUserAllocationsRequest) MarshalTo

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

func (*QueryUserAllocationsRequest) MarshalToSizedBuffer

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

func (*QueryUserAllocationsRequest) ProtoMessage

func (*QueryUserAllocationsRequest) ProtoMessage()

func (*QueryUserAllocationsRequest) Reset

func (m *QueryUserAllocationsRequest) Reset()

func (*QueryUserAllocationsRequest) Size

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

func (*QueryUserAllocationsRequest) String

func (m *QueryUserAllocationsRequest) String() string

func (*QueryUserAllocationsRequest) Unmarshal

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

func (*QueryUserAllocationsRequest) XXX_DiscardUnknown

func (m *QueryUserAllocationsRequest) XXX_DiscardUnknown()

func (*QueryUserAllocationsRequest) XXX_Marshal

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

func (*QueryUserAllocationsRequest) XXX_Merge

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

func (*QueryUserAllocationsRequest) XXX_Size

func (m *QueryUserAllocationsRequest) XXX_Size() int

func (*QueryUserAllocationsRequest) XXX_Unmarshal

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

type QueryUserAllocationsResponse

type QueryUserAllocationsResponse struct {
	UserAllocations []UserAllocation `protobuf:"bytes,1,rep,name=user_allocations,json=userAllocations,proto3" json:"user_allocations"`
}

func (*QueryUserAllocationsResponse) Descriptor

func (*QueryUserAllocationsResponse) Descriptor() ([]byte, []int)

func (*QueryUserAllocationsResponse) GetUserAllocations

func (m *QueryUserAllocationsResponse) GetUserAllocations() []UserAllocation

func (*QueryUserAllocationsResponse) Marshal

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

func (*QueryUserAllocationsResponse) MarshalTo

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

func (*QueryUserAllocationsResponse) MarshalToSizedBuffer

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

func (*QueryUserAllocationsResponse) ProtoMessage

func (*QueryUserAllocationsResponse) ProtoMessage()

func (*QueryUserAllocationsResponse) Reset

func (m *QueryUserAllocationsResponse) Reset()

func (*QueryUserAllocationsResponse) Size

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

func (*QueryUserAllocationsResponse) String

func (*QueryUserAllocationsResponse) Unmarshal

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

func (*QueryUserAllocationsResponse) XXX_DiscardUnknown

func (m *QueryUserAllocationsResponse) XXX_DiscardUnknown()

func (*QueryUserAllocationsResponse) XXX_Marshal

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

func (*QueryUserAllocationsResponse) XXX_Merge

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

func (*QueryUserAllocationsResponse) XXX_Size

func (m *QueryUserAllocationsResponse) XXX_Size() int

func (*QueryUserAllocationsResponse) XXX_Unmarshal

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

type QueryUserSummaryRequest

type QueryUserSummaryRequest struct {
	AirdropId string `protobuf:"bytes,1,opt,name=airdrop_id,json=airdropId,proto3" json:"airdrop_id,omitempty"`
	Address   string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

UserSummary

func (*QueryUserSummaryRequest) Descriptor

func (*QueryUserSummaryRequest) Descriptor() ([]byte, []int)

func (*QueryUserSummaryRequest) GetAddress

func (m *QueryUserSummaryRequest) GetAddress() string

func (*QueryUserSummaryRequest) GetAirdropId

func (m *QueryUserSummaryRequest) GetAirdropId() string

func (*QueryUserSummaryRequest) Marshal

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

func (*QueryUserSummaryRequest) MarshalTo

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

func (*QueryUserSummaryRequest) MarshalToSizedBuffer

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

func (*QueryUserSummaryRequest) ProtoMessage

func (*QueryUserSummaryRequest) ProtoMessage()

func (*QueryUserSummaryRequest) Reset

func (m *QueryUserSummaryRequest) Reset()

func (*QueryUserSummaryRequest) Size

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

func (*QueryUserSummaryRequest) String

func (m *QueryUserSummaryRequest) String() string

func (*QueryUserSummaryRequest) Unmarshal

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

func (*QueryUserSummaryRequest) XXX_DiscardUnknown

func (m *QueryUserSummaryRequest) XXX_DiscardUnknown()

func (*QueryUserSummaryRequest) XXX_Marshal

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

func (*QueryUserSummaryRequest) XXX_Merge

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

func (*QueryUserSummaryRequest) XXX_Size

func (m *QueryUserSummaryRequest) XXX_Size() int

func (*QueryUserSummaryRequest) XXX_Unmarshal

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

type QueryUserSummaryResponse

type QueryUserSummaryResponse struct {
	// The claim type (claim daily or claim early)
	ClaimType string `protobuf:"bytes,1,opt,name=claim_type,json=claimType,proto3" json:"claim_type,omitempty"`
	// The total rewards claimed so far
	Claimed github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=claimed,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"claimed"`
	// The total rewards forfeited (in the case of claiming early)
	Forfeited github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=forfeited,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"forfeited"`
	// The total rewards remaining
	Remaining github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=remaining,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"remaining"`
	// The total rewards that can be claimed right now
	Claimable github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=claimable,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"claimable"`
}

func (*QueryUserSummaryResponse) Descriptor

func (*QueryUserSummaryResponse) Descriptor() ([]byte, []int)

func (*QueryUserSummaryResponse) GetClaimType

func (m *QueryUserSummaryResponse) GetClaimType() string

func (*QueryUserSummaryResponse) Marshal

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

func (*QueryUserSummaryResponse) MarshalTo

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

func (*QueryUserSummaryResponse) MarshalToSizedBuffer

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

func (*QueryUserSummaryResponse) ProtoMessage

func (*QueryUserSummaryResponse) ProtoMessage()

func (*QueryUserSummaryResponse) Reset

func (m *QueryUserSummaryResponse) Reset()

func (*QueryUserSummaryResponse) Size

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

func (*QueryUserSummaryResponse) String

func (m *QueryUserSummaryResponse) String() string

func (*QueryUserSummaryResponse) Unmarshal

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

func (*QueryUserSummaryResponse) XXX_DiscardUnknown

func (m *QueryUserSummaryResponse) XXX_DiscardUnknown()

func (*QueryUserSummaryResponse) XXX_Marshal

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

func (*QueryUserSummaryResponse) XXX_Merge

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

func (*QueryUserSummaryResponse) XXX_Size

func (m *QueryUserSummaryResponse) XXX_Size() int

func (*QueryUserSummaryResponse) XXX_Unmarshal

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

type RawAllocation

type RawAllocation struct {
	UserAddress string                  `protobuf:"bytes,1,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"`
	Allocations []cosmossdk_io_math.Int `protobuf:"bytes,4,rep,name=allocations,proto3,customtype=cosmossdk.io/math.Int" json:"allocations"`
}

Allocation specification when bootstrapping reward data

func (*RawAllocation) Descriptor

func (*RawAllocation) Descriptor() ([]byte, []int)

func (*RawAllocation) GetUserAddress

func (m *RawAllocation) GetUserAddress() string

func (*RawAllocation) Marshal

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

func (*RawAllocation) MarshalTo

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

func (*RawAllocation) MarshalToSizedBuffer

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

func (*RawAllocation) ProtoMessage

func (*RawAllocation) ProtoMessage()

func (*RawAllocation) Reset

func (m *RawAllocation) Reset()

func (*RawAllocation) Size

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

func (*RawAllocation) String

func (m *RawAllocation) String() string

func (*RawAllocation) Unmarshal

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

func (*RawAllocation) XXX_DiscardUnknown

func (m *RawAllocation) XXX_DiscardUnknown()

func (*RawAllocation) XXX_Marshal

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

func (*RawAllocation) XXX_Merge

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

func (*RawAllocation) XXX_Size

func (m *RawAllocation) XXX_Size() int

func (*RawAllocation) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddAllocations

func (*UnimplementedMsgServer) ClaimDaily

func (*UnimplementedMsgServer) ClaimEarly

func (*UnimplementedMsgServer) CreateAirdrop

func (*UnimplementedMsgServer) LinkAddresses

func (*UnimplementedMsgServer) UpdateAirdrop

func (*UnimplementedMsgServer) UpdateUserAllocation

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Airdrop

func (*UnimplementedQueryServer) AllAirdrops

func (*UnimplementedQueryServer) AllAllocations

func (*UnimplementedQueryServer) UserAllocation

func (*UnimplementedQueryServer) UserAllocations

func (*UnimplementedQueryServer) UserSummary

type UserAllocation

type UserAllocation struct {
	// ID of the airdrop
	AirdropId string `protobuf:"bytes,1,opt,name=airdrop_id,json=airdropId,proto3" json:"airdrop_id,omitempty"`
	// Address of the account that is receiving the airdrop allocation
	// The address does not have to be a stride address - but non-stride addresses
	// must be linked and merged into a stride address before claiming
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// The total amount of tokens that have already been claimed
	Claimed cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=claimed,proto3,customtype=cosmossdk.io/math.Int" json:"claimed"`
	// The total amount of tokens that have been forfeited by the user for
	// claiming early
	Forfeited cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=forfeited,proto3,customtype=cosmossdk.io/math.Int" json:"forfeited"`
	// The current state of allocations for this airdrop
	//
	// Ex 1:
	//   Day 0: {claimed:0, allocations:[10,10,10]}
	//   *MsgClaim*
	//   Day 1: {claimed:10, allocations:[0,10,10]}
	//   *MsgClaim*
	//   Day 2: {claimed:20, allocations:[0,0,10]}
	//
	// Ex 2:
	//   Day 0: {claimed:0, allocations:[10,10,10]}
	//   *MsgClaimEarly*
	//   Day 1: {claimed:15, forfeited:15, allocations:[0,0,0]}
	Allocations []cosmossdk_io_math.Int `protobuf:"bytes,5,rep,name=allocations,proto3,customtype=cosmossdk.io/math.Int" json:"allocations"`
}

UserAllocation tracks the status of an allocation for a user on a specific airdrop

func (*UserAllocation) Descriptor

func (*UserAllocation) Descriptor() ([]byte, []int)

func (*UserAllocation) GetAddress

func (m *UserAllocation) GetAddress() string

func (*UserAllocation) GetAirdropId

func (m *UserAllocation) GetAirdropId() string

func (UserAllocation) GetClaimableAllocation

func (u UserAllocation) GetClaimableAllocation(currentDateIndex int) sdkmath.Int

Calculates the eligible allocations for a user by summing up to the current date index

func (UserAllocation) GetRemainingAllocations

func (u UserAllocation) GetRemainingAllocations() sdkmath.Int

Calculates the remaining allocations for a user by summing each day

func (*UserAllocation) Marshal

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

func (*UserAllocation) MarshalTo

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

func (*UserAllocation) MarshalToSizedBuffer

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

func (*UserAllocation) ProtoMessage

func (*UserAllocation) ProtoMessage()

func (*UserAllocation) Reset

func (m *UserAllocation) Reset()

func (*UserAllocation) Size

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

func (*UserAllocation) String

func (m *UserAllocation) String() string

func (*UserAllocation) Unmarshal

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

func (*UserAllocation) XXX_DiscardUnknown

func (m *UserAllocation) XXX_DiscardUnknown()

func (*UserAllocation) XXX_Marshal

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

func (*UserAllocation) XXX_Merge

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

func (*UserAllocation) XXX_Size

func (m *UserAllocation) XXX_Size() int

func (*UserAllocation) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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