-
Notifications
You must be signed in to change notification settings - Fork 28
/
marketplace.go
48 lines (40 loc) · 936 Bytes
/
marketplace.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
package exported
import (
"time"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
sdk "github.com/cosmos/cosmos-sdk/types"
)
type ListingI interface {
GetId() string
GetDenomId() string
GetNftId() string
GetPrice() sdk.Coin
GetOwner() sdk.AccAddress
GetSplitShares() interface{}
}
type AuctionListingI interface {
GetId() uint64
GetDenomId() string
GetNftId() string
GetStartPrice() sdk.Coin
GetStartTime() time.Time
GetIncrementPercentage() sdk.Dec
GetOwner() sdk.AccAddress
GetSplitShares() interface{}
GetStatus() string
}
type BidI interface {
GetAuctionId() uint64
GetAmount() sdk.Coin
GetBidder() sdk.AccAddress
}
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)
}
)