Documentation ¶
Index ¶
- Constants
- func CmdAddAllocations() *cobra.Command
- func CmdClaimDaily() *cobra.Command
- func CmdClaimEarly() *cobra.Command
- func CmdCreateAirdrop() *cobra.Command
- func CmdLinkAddresses() *cobra.Command
- func CmdQueryAirdrop() *cobra.Command
- func CmdQueryAllAirdrops() *cobra.Command
- func CmdQueryAllAllocations() *cobra.Command
- func CmdQueryUserAllocation() *cobra.Command
- func CmdQueryUserAllocations() *cobra.Command
- func CmdQueryUserSummary() *cobra.Command
- func CmdUpdateAirdrop() *cobra.Command
- func CmdUpdateUserAllocation() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func GetTxCmd() *cobra.Command
- func ParseUserAllocations(fileName string) ([]types.RawAllocation, error)
Constants ¶
const ( FlagDistributionStartDate = "distribution-start-date" FlagDistributionEndDate = "distribution-end-date" FlagClawbackDate = "clawback-date" FlagClaimTypeDeadlineDate = "claim-type-deadline-date" FlagEarlyClaimPenalty = "early-claim-penalty" FlagDistributorAddress = "distributor-address" FlagAllocatorAddress = "allocator-address" FlagLinkerAddress = "linker-address" FlagRewardDenom = "reward-denom" DefaultRewardDenom = "ustrd" DateLayout = "2006-01-02T15:04:05" )
Variables ¶
This section is empty.
Functions ¶
func CmdAddAllocations ¶
Admin transaction to add multiple user allocations for a given airdrop
func CmdClaimDaily ¶
User transaction to claim all the pending airdrop rewards up to the current day
func CmdClaimEarly ¶
User transaction to claim half of their total amount now, and forfeit the other half to be clawed back
func CmdCreateAirdrop ¶
Admin transaction to create a new airdrop
func CmdLinkAddresses ¶
Admin address to link a stride and non-stride address, merging their allocations
func CmdQueryAirdrop ¶
Queries the configuration for a given airdrop
func CmdQueryAllAirdrops ¶
Queries all airdrop configurations
func CmdQueryAllAllocations ¶
Queries all allocations for a given airdrop
func CmdQueryUserAllocation ¶
Queries the allocation for a given user for an airdrop
func CmdQueryUserAllocations ¶
Queries the allocations for a given user across all airdrops
func CmdQueryUserSummary ¶
Queries the claim type of an address for an airdrop (daily claim or claim early), and the amount claimed and remaining
func CmdUpdateAirdrop ¶
Admin transaction to update an existing airdrop
func CmdUpdateUserAllocation ¶
Admin transaction to update a user's allocation to an airdrop
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module.
func ParseUserAllocations ¶
func ParseUserAllocations(fileName string) ([]types.RawAllocation, error)
Parses an allocations CSV file consisting of allocations for various addresses
Example Schema:
strideXXX,10,10,20 strideYYY,0,10,0
Types ¶
This section is empty.