cli

package
v23.3.0-testnet Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
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

func CmdAddAllocations() *cobra.Command

Admin transaction to add multiple user allocations for a given airdrop

func CmdClaimDaily

func CmdClaimDaily() *cobra.Command

User transaction to claim all the pending airdrop rewards up to the current day

func CmdClaimEarly

func CmdClaimEarly() *cobra.Command

User transaction to claim half of their total amount now, and forfeit the other half to be clawed back

func CmdCreateAirdrop

func CmdCreateAirdrop() *cobra.Command

Admin transaction to create a new airdrop

func CmdLinkAddresses

func CmdLinkAddresses() *cobra.Command

Admin address to link a stride and non-stride address, merging their allocations

func CmdQueryAirdrop

func CmdQueryAirdrop() *cobra.Command

Queries the configuration for a given airdrop

func CmdQueryAllAirdrops

func CmdQueryAllAirdrops() *cobra.Command

Queries all airdrop configurations

func CmdQueryAllAllocations

func CmdQueryAllAllocations() *cobra.Command

Queries all allocations for a given airdrop

func CmdQueryUserAllocation

func CmdQueryUserAllocation() *cobra.Command

Queries the allocation for a given user for an airdrop

func CmdQueryUserAllocations

func CmdQueryUserAllocations() *cobra.Command

Queries the allocations for a given user across all airdrops

func CmdQueryUserSummary

func CmdQueryUserSummary() *cobra.Command

Queries the claim type of an address for an airdrop (daily claim or claim early), and the amount claimed and remaining

func CmdUpdateAirdrop

func CmdUpdateAirdrop() *cobra.Command

Admin transaction to update an existing airdrop

func CmdUpdateUserAllocation

func CmdUpdateUserAllocation() *cobra.Command

Admin transaction to update a user's allocation to an airdrop

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module.

func GetTxCmd

func GetTxCmd() *cobra.Command

GetTxCmd returns the transaction 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.

Jump to

Keyboard shortcuts

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