-
Notifications
You must be signed in to change notification settings - Fork 28
/
flags.go
56 lines (50 loc) · 2.19 KB
/
flags.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package cli
import (
flag "github.com/spf13/pflag"
)
const (
FlagNftDenomId = "nft-denom-id"
FlagNftId = "nft-id"
FlagName = "name"
FlagDescription = "description"
FlagMaxAllowedClaims = "max-allowed-claims"
FlagTokensPerClaim = "tokens-per-claim"
FlagDeposit = "deposit"
FlagCreator = "creator"
FlagStatus = "status"
FlagClaimer = "claimer"
FlagStartTime = "start-time"
FlagDuration = "duration"
FlagAmount = "amount"
FlagInteractionType = "interaction-type"
FlagClaimType = "claim-type"
FlagDistributionType = "distribution-type"
FlagStreamDuration = "stream-duration"
FlagNftDetailsFile = "nft-details-file"
FlagCreationFee = "creation-fee"
)
var (
FsCreateCampaign = flag.NewFlagSet("", flag.ContinueOnError)
FsDepositCampaign = flag.NewFlagSet("", flag.ContinueOnError)
FsClaim = flag.NewFlagSet("", flag.ContinueOnError)
)
func init() {
FsCreateCampaign.String(FlagName, "", "name of the campaign")
FsCreateCampaign.String(FlagDescription, "", "description of the campaign")
FsCreateCampaign.String(FlagInteractionType, "", "interaction to claim")
FsCreateCampaign.String(FlagClaimType, "", "type of claim")
FsCreateCampaign.String(FlagNftDenomId, "", "nft denom id")
FsCreateCampaign.Uint64(FlagMaxAllowedClaims, 0, "maximum allowed claims for campaign")
FsCreateCampaign.String(FlagTokensPerClaim, "", "tokens per claim")
FsCreateCampaign.String(FlagDeposit, "", "tokens to deposit the campaign")
FsCreateCampaign.String(FlagStartTime, "", "campaign start time")
FsCreateCampaign.String(FlagDuration, "", "campaign duration")
FsCreateCampaign.String(FlagDistributionType, "instant", "type of distribution (default: instant)")
FsCreateCampaign.String(FlagStreamDuration, "", "claimed amount distribution duration")
FsCreateCampaign.String(FlagNftDetailsFile, "", "nft details file")
FsCreateCampaign.String(FlagCreationFee, "", "creation fee")
FsDepositCampaign.String(FlagAmount, "", "deposit amount")
FsClaim.String(FlagNftId, "", "nft id")
FsClaim.String(FlagInteractionType, "", "type of the interaction")
FsClaim.String(FlagClaimer, "", "claimer address")
}