-
Notifications
You must be signed in to change notification settings - Fork 28
/
itc.go
47 lines (40 loc) · 1000 Bytes
/
itc.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
package exported
import (
"time"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)
type CampaignI interface {
GetId() uint64
GetName() string
GetDescription() string
GetStartTime() time.Time
GetEndTime() time.Time
GetNftDenomId() string
GetMaxAllowedClaims() uint64
GetClaimType() string
GetInteraction() string
GetCreator() sdk.AccAddress
GetTokensPerClaim() sdk.Coin
GetTotalTokens() sdk.Coin
GetAvailableTokens() sdk.Coin
GetReceivedNftIds() []string
GetNftMintDetails() interface{}
GetDistribution() interface{}
}
type ClaimI interface {
GetCampaignId() uint64
GetAddress() sdk.AccAddress
GetNftId() string
GetInteractionType() string
}
type (
ParamSet = paramtypes.ParamSet
// Subspace defines an interface that implements the legacy x/params Subspace
// type.
//
// NOTE: This is used solely for migration of x/params managed parameters.
Subspace interface {
GetParamSet(ctx sdk.Context, ps ParamSet)
}
)