-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathauction.config.ts
More file actions
135 lines (124 loc) · 2.66 KB
/
auction.config.ts
File metadata and controls
135 lines (124 loc) · 2.66 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
import { auction1 } from "./data/auction1";
interface AuctionPreset {
startTime: number;
endTime: number;
hammerTimeDuration: number;
bidDecimals: number;
stepMin: number;
incMin: number;
incMax: number;
bidMultiplier: number;
}
interface TokenCounts {
none: number;
low: number;
medium: number;
high: number;
degen: number;
test: number;
}
interface AuctionPresets {
none: AuctionPreset;
low: AuctionPreset;
medium: AuctionPreset;
high: AuctionPreset;
degen: AuctionPreset;
test: AuctionPreset;
}
interface AuctionERC721Config {
id: string;
ercType: number;
// auction params
auctionTokenCounts: TokenCounts;
auctionPresets: AuctionPresets;
// if prexisiting listing
initialIndex: number;
//
token: string;
tokenId: number; // index to start auctioning from if 721
// or its the wearables id if erc 1155
// gbm deployment params
gbm: string;
}
const startTime = 1638457200; //Dec 2, 3PM UTC
const endTime = 1638716400; //Dec 5, 3PM UTC
export default <AuctionERC721Config>{
id: "realm auction 2", // human id
auctionPresets: {
none: {
startTime: startTime,
endTime: endTime,
hammerTimeDuration: 1200,
bidDecimals: 100000,
stepMin: 5000,
incMin: 0,
incMax: 0,
bidMultiplier: 0,
},
low: {
startTime: startTime,
endTime: endTime,
hammerTimeDuration: 1200,
bidDecimals: 100000,
stepMin: 5000,
incMin: 500,
incMax: 5000,
bidMultiplier: 5080,
},
medium: {
startTime: startTime,
endTime: endTime,
hammerTimeDuration: 1200,
bidDecimals: 100000,
stepMin: 10000,
incMin: 1000,
incMax: 10000,
bidMultiplier: 11120,
},
high: {
startTime: startTime,
endTime: endTime,
hammerTimeDuration: 1200,
bidDecimals: 100000,
stepMin: 15000,
incMin: 1500,
incMax: 15000,
bidMultiplier: 18700,
},
degen: {
startTime: startTime,
endTime: endTime,
hammerTimeDuration: 1200,
bidDecimals: 100000,
stepMin: 30000,
incMin: 3000,
incMax: 30000,
bidMultiplier: 48740,
},
test: {
startTime: startTime,
endTime: endTime,
hammerTimeDuration: 1200,
bidDecimals: 100000,
stepMin: 30000,
incMin: 3000,
incMax: 30000,
bidMultiplier: 48740,
},
},
auctionTokenCounts: {
none: 0,
low: 0,
medium: auction1.length,
high: 0,
degen: 0,
test: 0,
},
initialIndex: 0, // none previous, so start at 0
ercType: 721,
tokenId: 0, // if erc721, tokenId == 0
skip: 0,
token: "", // if erc
gbmInitiator: "",
gbm: "",
};