@cloakely/sdk 0.0.0-stage → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +99 -2
- package/dist/abis.d.ts +4584 -0
- package/dist/abis.js +5916 -0
- package/dist/bytecode.d.ts +17 -0
- package/dist/bytecode.js +2 -0
- package/dist/chains.d.ts +74 -0
- package/dist/chains.js +20 -0
- package/dist/cloak.d.ts +1113 -0
- package/dist/cloak.js +415 -0
- package/dist/deployments.d.ts +27 -0
- package/dist/deployments.js +27 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/private/client.d.ts +162 -0
- package/dist/private/client.js +539 -0
- package/dist/private/crypto.d.ts +75 -0
- package/dist/private/crypto.js +135 -0
- package/dist/private/index.d.ts +5 -0
- package/dist/private/index.js +5 -0
- package/dist/private/prover.d.ts +31 -0
- package/dist/private/prover.js +55 -0
- package/dist/private/tree.d.ts +13 -0
- package/dist/private/tree.js +52 -0
- package/dist/private/tx.d.ts +121 -0
- package/dist/private/tx.js +157 -0
- package/dist/seal.d.ts +17 -0
- package/dist/seal.js +41 -0
- package/package.json +75 -4
package/dist/cloak.d.ts
ADDED
|
@@ -0,0 +1,1113 @@
|
|
|
1
|
+
import { type Account, type Address, type Chain, type Hex, type PublicClient, type Transport, type WalletClient } from "viem";
|
|
2
|
+
import { type BidPreimage } from "./seal.js";
|
|
3
|
+
export type Wallet = WalletClient<Transport, Chain, Account>;
|
|
4
|
+
export interface LaunchParams {
|
|
5
|
+
name: string;
|
|
6
|
+
symbol: string;
|
|
7
|
+
/** Tokens sold in the auction (18 decimals). */
|
|
8
|
+
saleSupply: bigint;
|
|
9
|
+
/** Tokens paired with HYPE at the clearing price. Defaults to `saleSupply`. */
|
|
10
|
+
lpReserve?: bigint;
|
|
11
|
+
/** Creator share, at most 20% of the supply. It vests linearly from the end of the auction. */
|
|
12
|
+
creatorAlloc?: bigint;
|
|
13
|
+
/** Vesting length for the creator share, in seconds (at least 30 days; default 90 days). */
|
|
14
|
+
creatorVestSecs?: number;
|
|
15
|
+
/** Wei of HYPE per whole token at the lowest tick. */
|
|
16
|
+
minPrice: bigint;
|
|
17
|
+
tickSize: bigint;
|
|
18
|
+
numTicks?: number;
|
|
19
|
+
/** Unix seconds. */
|
|
20
|
+
commitEnd: number;
|
|
21
|
+
revealEnd: number;
|
|
22
|
+
/** Share of the raise that seeds the pool, in bps (default 5000). */
|
|
23
|
+
lpBps?: number;
|
|
24
|
+
/** Unix seconds until LP shares can be released to the creator; 0 / "burn" burns them (default). */
|
|
25
|
+
lpLockUntil?: number | "burn";
|
|
26
|
+
noRevealPenaltyBps?: number;
|
|
27
|
+
creator?: Address;
|
|
28
|
+
metadataURI?: string;
|
|
29
|
+
}
|
|
30
|
+
export interface AuctionState {
|
|
31
|
+
address: Address;
|
|
32
|
+
token: Address;
|
|
33
|
+
creator: Address;
|
|
34
|
+
saleSupply: bigint;
|
|
35
|
+
lpReserve: bigint;
|
|
36
|
+
minPrice: bigint;
|
|
37
|
+
tickSize: bigint;
|
|
38
|
+
numTicks: number;
|
|
39
|
+
commitEnd: number;
|
|
40
|
+
revealEnd: number;
|
|
41
|
+
lpBps: number;
|
|
42
|
+
noRevealPenaltyBps: number;
|
|
43
|
+
lpLockUntil: number;
|
|
44
|
+
tlockRound: number;
|
|
45
|
+
phase: "commit" | "reveal" | "settle" | "settled";
|
|
46
|
+
commits: number;
|
|
47
|
+
reveals: number;
|
|
48
|
+
totalDeposits: bigint;
|
|
49
|
+
totalDemand: bigint;
|
|
50
|
+
settled: boolean;
|
|
51
|
+
failed: boolean;
|
|
52
|
+
clearingTick: number;
|
|
53
|
+
clearingPrice: bigint;
|
|
54
|
+
sold: bigint;
|
|
55
|
+
raised: bigint;
|
|
56
|
+
pair: Address;
|
|
57
|
+
tokenName: string;
|
|
58
|
+
tokenSymbol: string;
|
|
59
|
+
/** Launch fee on a successful raise, fixed when the auction was created. */
|
|
60
|
+
launchFeeBps: number;
|
|
61
|
+
/** HYPE caps fixed at creation (0 = none): per bid deposit, and in total. */
|
|
62
|
+
bidCap: bigint;
|
|
63
|
+
depositCap: bigint;
|
|
64
|
+
/** Settled money waiting to be pulled: the creator's proceeds and the protocol's launch fee. */
|
|
65
|
+
creatorOwed: bigint;
|
|
66
|
+
feesOwed: bigint;
|
|
67
|
+
}
|
|
68
|
+
/** Everything a bidder must keep to reveal manually; auto-reveal makes losing it harmless. */
|
|
69
|
+
export interface BidSecret extends BidPreimage {
|
|
70
|
+
id: bigint;
|
|
71
|
+
deposit: bigint;
|
|
72
|
+
commitment: Hex;
|
|
73
|
+
txHash: Hex;
|
|
74
|
+
}
|
|
75
|
+
export interface BidQuote {
|
|
76
|
+
tick: number;
|
|
77
|
+
price: bigint;
|
|
78
|
+
cost: bigint;
|
|
79
|
+
deposit: bigint;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Budget buckets: deposits are rounded up to 1, 2 or 5 × 10ⁿ wei, so the deposit only reveals the bid's order of
|
|
83
|
+
* magnitude (every bid within ~2.5× of another looks the same) at any price scale.
|
|
84
|
+
*/
|
|
85
|
+
export declare function budgetBuckets(atLeast: bigint, count?: number): bigint[];
|
|
86
|
+
export declare function commitmentOf(auction: Address, bidder: Address, tick: number, quantity: bigint, salt: Hex): Hex;
|
|
87
|
+
export declare function randomSalt(): Hex;
|
|
88
|
+
/** Round a required deposit up to the next 1/2/5 × 10ⁿ bucket. */
|
|
89
|
+
export declare function bucketDeposit(cost: bigint): bigint;
|
|
90
|
+
export declare class Cloak {
|
|
91
|
+
readonly publicClient: PublicClient;
|
|
92
|
+
readonly walletClient?: Wallet | undefined;
|
|
93
|
+
readonly factory?: Address | undefined;
|
|
94
|
+
/** The first deployment's factory, so its launches still list and settle. */
|
|
95
|
+
readonly legacyFactory?: Address | undefined;
|
|
96
|
+
constructor(publicClient: PublicClient, walletClient?: Wallet | undefined, factory?: Address | undefined,
|
|
97
|
+
/** The first deployment's factory, so its launches still list and settle. */
|
|
98
|
+
legacyFactory?: Address | undefined);
|
|
99
|
+
private wallet;
|
|
100
|
+
private send;
|
|
101
|
+
createLaunch(p: LaunchParams): Promise<{
|
|
102
|
+
auction: Address;
|
|
103
|
+
token: Address;
|
|
104
|
+
txHash: Hex;
|
|
105
|
+
block: bigint;
|
|
106
|
+
}>;
|
|
107
|
+
/**
|
|
108
|
+
* Every launch, newest factory first. Launches from `legacyFactory` (the first deployment) are included with
|
|
109
|
+
* `legacy: true`; they have no vesting contract.
|
|
110
|
+
*/
|
|
111
|
+
listLaunches(): Promise<{
|
|
112
|
+
auction: Address;
|
|
113
|
+
token: Address;
|
|
114
|
+
creator: Address;
|
|
115
|
+
launchpad: Address;
|
|
116
|
+
creatorAlloc: bigint;
|
|
117
|
+
vesting: Address;
|
|
118
|
+
legacy?: boolean;
|
|
119
|
+
}[]>;
|
|
120
|
+
private listLegacy;
|
|
121
|
+
private listCurrent;
|
|
122
|
+
getAuction(auction: Address): Promise<AuctionState>;
|
|
123
|
+
/** Revealed demand per tick (empty until the reveal phase — that is the point). */
|
|
124
|
+
demandCurve(auction: Address): Promise<{
|
|
125
|
+
tick: number;
|
|
126
|
+
price: bigint;
|
|
127
|
+
demand: bigint;
|
|
128
|
+
}[]>;
|
|
129
|
+
pairPrice(pair: Address): Promise<bigint>;
|
|
130
|
+
/** Pick the tick for a max price (rounded down to a tick) and the bucketed deposit that hides the bid size. */
|
|
131
|
+
quoteBid(s: Pick<AuctionState, "minPrice" | "tickSize" | "numTicks">, maxPrice: bigint, quantity: bigint): BidQuote;
|
|
132
|
+
/**
|
|
133
|
+
* Seal and commit a bid. Only a hash and a drand-timelocked ciphertext go on-chain, so neither the sequencer nor other
|
|
134
|
+
* bidders learn the price or size. After commit closes, any keeper can decrypt and reveal it — no second visit needed.
|
|
135
|
+
*/
|
|
136
|
+
bid(auction: Address, opts: {
|
|
137
|
+
maxPrice: bigint;
|
|
138
|
+
quantity: bigint;
|
|
139
|
+
deposit?: bigint;
|
|
140
|
+
}): Promise<BidSecret>;
|
|
141
|
+
reveal(secret: BidSecret): Promise<Hex>;
|
|
142
|
+
settle(auction: Address): Promise<Hex>;
|
|
143
|
+
/** Pay out a settled launch's creator proceeds, and send its launch fee to the treasury (anyone can call either). */
|
|
144
|
+
payOut(auction: Address): Promise<Hex[]>;
|
|
145
|
+
claim(auction: Address, ids: bigint[]): Promise<Hex>;
|
|
146
|
+
bidsOf(auction: Address, bidder: Address, fromBlock?: bigint): Promise<{
|
|
147
|
+
tokens: bigint;
|
|
148
|
+
refund: bigint;
|
|
149
|
+
penalty: bigint;
|
|
150
|
+
bidder: `0x${string}`;
|
|
151
|
+
tick: number;
|
|
152
|
+
revealed: boolean;
|
|
153
|
+
claimed: boolean;
|
|
154
|
+
deposit: bigint;
|
|
155
|
+
quantity: bigint;
|
|
156
|
+
commitment: `0x${string}`;
|
|
157
|
+
id: bigint;
|
|
158
|
+
}[]>;
|
|
159
|
+
committedLogs(auction: Address, fromBlock?: bigint): Promise<import("viem").GetContractEventsReturnType<readonly [{
|
|
160
|
+
readonly type: "constructor";
|
|
161
|
+
readonly inputs: readonly [{
|
|
162
|
+
readonly name: "p";
|
|
163
|
+
readonly type: "tuple";
|
|
164
|
+
readonly internalType: "struct CloakAuction.Params";
|
|
165
|
+
readonly components: readonly [{
|
|
166
|
+
readonly name: "creator";
|
|
167
|
+
readonly type: "address";
|
|
168
|
+
readonly internalType: "address";
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "saleSupply";
|
|
171
|
+
readonly type: "uint256";
|
|
172
|
+
readonly internalType: "uint256";
|
|
173
|
+
}, {
|
|
174
|
+
readonly name: "lpReserve";
|
|
175
|
+
readonly type: "uint256";
|
|
176
|
+
readonly internalType: "uint256";
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "minPrice";
|
|
179
|
+
readonly type: "uint256";
|
|
180
|
+
readonly internalType: "uint256";
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "tickSize";
|
|
183
|
+
readonly type: "uint256";
|
|
184
|
+
readonly internalType: "uint256";
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "numTicks";
|
|
187
|
+
readonly type: "uint16";
|
|
188
|
+
readonly internalType: "uint16";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "commitEnd";
|
|
191
|
+
readonly type: "uint64";
|
|
192
|
+
readonly internalType: "uint64";
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "revealEnd";
|
|
195
|
+
readonly type: "uint64";
|
|
196
|
+
readonly internalType: "uint64";
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "lpBps";
|
|
199
|
+
readonly type: "uint16";
|
|
200
|
+
readonly internalType: "uint16";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "noRevealPenaltyBps";
|
|
203
|
+
readonly type: "uint16";
|
|
204
|
+
readonly internalType: "uint16";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "lpLockUntil";
|
|
207
|
+
readonly type: "uint64";
|
|
208
|
+
readonly internalType: "uint64";
|
|
209
|
+
}, {
|
|
210
|
+
readonly name: "tlockRound";
|
|
211
|
+
readonly type: "uint64";
|
|
212
|
+
readonly internalType: "uint64";
|
|
213
|
+
}];
|
|
214
|
+
}, {
|
|
215
|
+
readonly name: "config_";
|
|
216
|
+
readonly type: "address";
|
|
217
|
+
readonly internalType: "contract CloakConfig";
|
|
218
|
+
}];
|
|
219
|
+
readonly stateMutability: "nonpayable";
|
|
220
|
+
}, {
|
|
221
|
+
readonly type: "function";
|
|
222
|
+
readonly name: "DEAD";
|
|
223
|
+
readonly inputs: readonly [];
|
|
224
|
+
readonly outputs: readonly [{
|
|
225
|
+
readonly name: "";
|
|
226
|
+
readonly type: "address";
|
|
227
|
+
readonly internalType: "address";
|
|
228
|
+
}];
|
|
229
|
+
readonly stateMutability: "view";
|
|
230
|
+
}, {
|
|
231
|
+
readonly type: "function";
|
|
232
|
+
readonly name: "DRAND_GENESIS";
|
|
233
|
+
readonly inputs: readonly [];
|
|
234
|
+
readonly outputs: readonly [{
|
|
235
|
+
readonly name: "";
|
|
236
|
+
readonly type: "uint256";
|
|
237
|
+
readonly internalType: "uint256";
|
|
238
|
+
}];
|
|
239
|
+
readonly stateMutability: "view";
|
|
240
|
+
}, {
|
|
241
|
+
readonly type: "function";
|
|
242
|
+
readonly name: "DRAND_PERIOD";
|
|
243
|
+
readonly inputs: readonly [];
|
|
244
|
+
readonly outputs: readonly [{
|
|
245
|
+
readonly name: "";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
readonly internalType: "uint256";
|
|
248
|
+
}];
|
|
249
|
+
readonly stateMutability: "view";
|
|
250
|
+
}, {
|
|
251
|
+
readonly type: "function";
|
|
252
|
+
readonly name: "MAX_TICKS";
|
|
253
|
+
readonly inputs: readonly [];
|
|
254
|
+
readonly outputs: readonly [{
|
|
255
|
+
readonly name: "";
|
|
256
|
+
readonly type: "uint256";
|
|
257
|
+
readonly internalType: "uint256";
|
|
258
|
+
}];
|
|
259
|
+
readonly stateMutability: "view";
|
|
260
|
+
}, {
|
|
261
|
+
readonly type: "function";
|
|
262
|
+
readonly name: "MIN_NO_REVEAL_PENALTY_BPS";
|
|
263
|
+
readonly inputs: readonly [];
|
|
264
|
+
readonly outputs: readonly [{
|
|
265
|
+
readonly name: "";
|
|
266
|
+
readonly type: "uint16";
|
|
267
|
+
readonly internalType: "uint16";
|
|
268
|
+
}];
|
|
269
|
+
readonly stateMutability: "view";
|
|
270
|
+
}, {
|
|
271
|
+
readonly type: "function";
|
|
272
|
+
readonly name: "REVEAL_MARGIN";
|
|
273
|
+
readonly inputs: readonly [];
|
|
274
|
+
readonly outputs: readonly [{
|
|
275
|
+
readonly name: "";
|
|
276
|
+
readonly type: "uint256";
|
|
277
|
+
readonly internalType: "uint256";
|
|
278
|
+
}];
|
|
279
|
+
readonly stateMutability: "view";
|
|
280
|
+
}, {
|
|
281
|
+
readonly type: "function";
|
|
282
|
+
readonly name: "allocationOf";
|
|
283
|
+
readonly inputs: readonly [{
|
|
284
|
+
readonly name: "id";
|
|
285
|
+
readonly type: "uint256";
|
|
286
|
+
readonly internalType: "uint256";
|
|
287
|
+
}];
|
|
288
|
+
readonly outputs: readonly [{
|
|
289
|
+
readonly name: "tokens";
|
|
290
|
+
readonly type: "uint256";
|
|
291
|
+
readonly internalType: "uint256";
|
|
292
|
+
}, {
|
|
293
|
+
readonly name: "refund";
|
|
294
|
+
readonly type: "uint256";
|
|
295
|
+
readonly internalType: "uint256";
|
|
296
|
+
}, {
|
|
297
|
+
readonly name: "penalty";
|
|
298
|
+
readonly type: "uint256";
|
|
299
|
+
readonly internalType: "uint256";
|
|
300
|
+
}];
|
|
301
|
+
readonly stateMutability: "view";
|
|
302
|
+
}, {
|
|
303
|
+
readonly type: "function";
|
|
304
|
+
readonly name: "bidCap";
|
|
305
|
+
readonly inputs: readonly [];
|
|
306
|
+
readonly outputs: readonly [{
|
|
307
|
+
readonly name: "";
|
|
308
|
+
readonly type: "uint256";
|
|
309
|
+
readonly internalType: "uint256";
|
|
310
|
+
}];
|
|
311
|
+
readonly stateMutability: "view";
|
|
312
|
+
}, {
|
|
313
|
+
readonly type: "function";
|
|
314
|
+
readonly name: "bidsCount";
|
|
315
|
+
readonly inputs: readonly [];
|
|
316
|
+
readonly outputs: readonly [{
|
|
317
|
+
readonly name: "";
|
|
318
|
+
readonly type: "uint256";
|
|
319
|
+
readonly internalType: "uint256";
|
|
320
|
+
}];
|
|
321
|
+
readonly stateMutability: "view";
|
|
322
|
+
}, {
|
|
323
|
+
readonly type: "function";
|
|
324
|
+
readonly name: "claim";
|
|
325
|
+
readonly inputs: readonly [{
|
|
326
|
+
readonly name: "id";
|
|
327
|
+
readonly type: "uint256";
|
|
328
|
+
readonly internalType: "uint256";
|
|
329
|
+
}];
|
|
330
|
+
readonly outputs: readonly [];
|
|
331
|
+
readonly stateMutability: "nonpayable";
|
|
332
|
+
}, {
|
|
333
|
+
readonly type: "function";
|
|
334
|
+
readonly name: "claimBatch";
|
|
335
|
+
readonly inputs: readonly [{
|
|
336
|
+
readonly name: "ids";
|
|
337
|
+
readonly type: "uint256[]";
|
|
338
|
+
readonly internalType: "uint256[]";
|
|
339
|
+
}];
|
|
340
|
+
readonly outputs: readonly [];
|
|
341
|
+
readonly stateMutability: "nonpayable";
|
|
342
|
+
}, {
|
|
343
|
+
readonly type: "function";
|
|
344
|
+
readonly name: "claimedCount";
|
|
345
|
+
readonly inputs: readonly [];
|
|
346
|
+
readonly outputs: readonly [{
|
|
347
|
+
readonly name: "";
|
|
348
|
+
readonly type: "uint256";
|
|
349
|
+
readonly internalType: "uint256";
|
|
350
|
+
}];
|
|
351
|
+
readonly stateMutability: "view";
|
|
352
|
+
}, {
|
|
353
|
+
readonly type: "function";
|
|
354
|
+
readonly name: "clearingPrice";
|
|
355
|
+
readonly inputs: readonly [];
|
|
356
|
+
readonly outputs: readonly [{
|
|
357
|
+
readonly name: "";
|
|
358
|
+
readonly type: "uint256";
|
|
359
|
+
readonly internalType: "uint256";
|
|
360
|
+
}];
|
|
361
|
+
readonly stateMutability: "view";
|
|
362
|
+
}, {
|
|
363
|
+
readonly type: "function";
|
|
364
|
+
readonly name: "clearingTick";
|
|
365
|
+
readonly inputs: readonly [];
|
|
366
|
+
readonly outputs: readonly [{
|
|
367
|
+
readonly name: "";
|
|
368
|
+
readonly type: "uint16";
|
|
369
|
+
readonly internalType: "uint16";
|
|
370
|
+
}];
|
|
371
|
+
readonly stateMutability: "view";
|
|
372
|
+
}, {
|
|
373
|
+
readonly type: "function";
|
|
374
|
+
readonly name: "collectFees";
|
|
375
|
+
readonly inputs: readonly [];
|
|
376
|
+
readonly outputs: readonly [];
|
|
377
|
+
readonly stateMutability: "nonpayable";
|
|
378
|
+
}, {
|
|
379
|
+
readonly type: "function";
|
|
380
|
+
readonly name: "commit";
|
|
381
|
+
readonly inputs: readonly [{
|
|
382
|
+
readonly name: "commitment";
|
|
383
|
+
readonly type: "bytes32";
|
|
384
|
+
readonly internalType: "bytes32";
|
|
385
|
+
}, {
|
|
386
|
+
readonly name: "sealedBid";
|
|
387
|
+
readonly type: "bytes";
|
|
388
|
+
readonly internalType: "bytes";
|
|
389
|
+
}];
|
|
390
|
+
readonly outputs: readonly [{
|
|
391
|
+
readonly name: "id";
|
|
392
|
+
readonly type: "uint256";
|
|
393
|
+
readonly internalType: "uint256";
|
|
394
|
+
}];
|
|
395
|
+
readonly stateMutability: "payable";
|
|
396
|
+
}, {
|
|
397
|
+
readonly type: "function";
|
|
398
|
+
readonly name: "commitmentOf";
|
|
399
|
+
readonly inputs: readonly [{
|
|
400
|
+
readonly name: "bidder";
|
|
401
|
+
readonly type: "address";
|
|
402
|
+
readonly internalType: "address";
|
|
403
|
+
}, {
|
|
404
|
+
readonly name: "tick";
|
|
405
|
+
readonly type: "uint16";
|
|
406
|
+
readonly internalType: "uint16";
|
|
407
|
+
}, {
|
|
408
|
+
readonly name: "quantity";
|
|
409
|
+
readonly type: "uint128";
|
|
410
|
+
readonly internalType: "uint128";
|
|
411
|
+
}, {
|
|
412
|
+
readonly name: "salt";
|
|
413
|
+
readonly type: "bytes32";
|
|
414
|
+
readonly internalType: "bytes32";
|
|
415
|
+
}];
|
|
416
|
+
readonly outputs: readonly [{
|
|
417
|
+
readonly name: "";
|
|
418
|
+
readonly type: "bytes32";
|
|
419
|
+
readonly internalType: "bytes32";
|
|
420
|
+
}];
|
|
421
|
+
readonly stateMutability: "view";
|
|
422
|
+
}, {
|
|
423
|
+
readonly type: "function";
|
|
424
|
+
readonly name: "config";
|
|
425
|
+
readonly inputs: readonly [];
|
|
426
|
+
readonly outputs: readonly [{
|
|
427
|
+
readonly name: "";
|
|
428
|
+
readonly type: "address";
|
|
429
|
+
readonly internalType: "contract CloakConfig";
|
|
430
|
+
}];
|
|
431
|
+
readonly stateMutability: "view";
|
|
432
|
+
}, {
|
|
433
|
+
readonly type: "function";
|
|
434
|
+
readonly name: "costOf";
|
|
435
|
+
readonly inputs: readonly [{
|
|
436
|
+
readonly name: "tick";
|
|
437
|
+
readonly type: "uint16";
|
|
438
|
+
readonly internalType: "uint16";
|
|
439
|
+
}, {
|
|
440
|
+
readonly name: "quantity";
|
|
441
|
+
readonly type: "uint256";
|
|
442
|
+
readonly internalType: "uint256";
|
|
443
|
+
}];
|
|
444
|
+
readonly outputs: readonly [{
|
|
445
|
+
readonly name: "";
|
|
446
|
+
readonly type: "uint256";
|
|
447
|
+
readonly internalType: "uint256";
|
|
448
|
+
}];
|
|
449
|
+
readonly stateMutability: "view";
|
|
450
|
+
}, {
|
|
451
|
+
readonly type: "function";
|
|
452
|
+
readonly name: "creatorOwed";
|
|
453
|
+
readonly inputs: readonly [];
|
|
454
|
+
readonly outputs: readonly [{
|
|
455
|
+
readonly name: "";
|
|
456
|
+
readonly type: "uint256";
|
|
457
|
+
readonly internalType: "uint256";
|
|
458
|
+
}];
|
|
459
|
+
readonly stateMutability: "view";
|
|
460
|
+
}, {
|
|
461
|
+
readonly type: "function";
|
|
462
|
+
readonly name: "demand";
|
|
463
|
+
readonly inputs: readonly [{
|
|
464
|
+
readonly name: "";
|
|
465
|
+
readonly type: "uint256";
|
|
466
|
+
readonly internalType: "uint256";
|
|
467
|
+
}];
|
|
468
|
+
readonly outputs: readonly [{
|
|
469
|
+
readonly name: "";
|
|
470
|
+
readonly type: "uint256";
|
|
471
|
+
readonly internalType: "uint256";
|
|
472
|
+
}];
|
|
473
|
+
readonly stateMutability: "view";
|
|
474
|
+
}, {
|
|
475
|
+
readonly type: "function";
|
|
476
|
+
readonly name: "demandCurve";
|
|
477
|
+
readonly inputs: readonly [];
|
|
478
|
+
readonly outputs: readonly [{
|
|
479
|
+
readonly name: "curve";
|
|
480
|
+
readonly type: "uint256[]";
|
|
481
|
+
readonly internalType: "uint256[]";
|
|
482
|
+
}];
|
|
483
|
+
readonly stateMutability: "view";
|
|
484
|
+
}, {
|
|
485
|
+
readonly type: "function";
|
|
486
|
+
readonly name: "depositCap";
|
|
487
|
+
readonly inputs: readonly [];
|
|
488
|
+
readonly outputs: readonly [{
|
|
489
|
+
readonly name: "";
|
|
490
|
+
readonly type: "uint256";
|
|
491
|
+
readonly internalType: "uint256";
|
|
492
|
+
}];
|
|
493
|
+
readonly stateMutability: "view";
|
|
494
|
+
}, {
|
|
495
|
+
readonly type: "function";
|
|
496
|
+
readonly name: "factory";
|
|
497
|
+
readonly inputs: readonly [];
|
|
498
|
+
readonly outputs: readonly [{
|
|
499
|
+
readonly name: "";
|
|
500
|
+
readonly type: "address";
|
|
501
|
+
readonly internalType: "address";
|
|
502
|
+
}];
|
|
503
|
+
readonly stateMutability: "view";
|
|
504
|
+
}, {
|
|
505
|
+
readonly type: "function";
|
|
506
|
+
readonly name: "failed";
|
|
507
|
+
readonly inputs: readonly [];
|
|
508
|
+
readonly outputs: readonly [{
|
|
509
|
+
readonly name: "";
|
|
510
|
+
readonly type: "bool";
|
|
511
|
+
readonly internalType: "bool";
|
|
512
|
+
}];
|
|
513
|
+
readonly stateMutability: "view";
|
|
514
|
+
}, {
|
|
515
|
+
readonly type: "function";
|
|
516
|
+
readonly name: "feesOwed";
|
|
517
|
+
readonly inputs: readonly [];
|
|
518
|
+
readonly outputs: readonly [{
|
|
519
|
+
readonly name: "";
|
|
520
|
+
readonly type: "uint256";
|
|
521
|
+
readonly internalType: "uint256";
|
|
522
|
+
}];
|
|
523
|
+
readonly stateMutability: "view";
|
|
524
|
+
}, {
|
|
525
|
+
readonly type: "function";
|
|
526
|
+
readonly name: "getBid";
|
|
527
|
+
readonly inputs: readonly [{
|
|
528
|
+
readonly name: "id";
|
|
529
|
+
readonly type: "uint256";
|
|
530
|
+
readonly internalType: "uint256";
|
|
531
|
+
}];
|
|
532
|
+
readonly outputs: readonly [{
|
|
533
|
+
readonly name: "";
|
|
534
|
+
readonly type: "tuple";
|
|
535
|
+
readonly internalType: "struct CloakAuction.Bid";
|
|
536
|
+
readonly components: readonly [{
|
|
537
|
+
readonly name: "bidder";
|
|
538
|
+
readonly type: "address";
|
|
539
|
+
readonly internalType: "address";
|
|
540
|
+
}, {
|
|
541
|
+
readonly name: "tick";
|
|
542
|
+
readonly type: "uint16";
|
|
543
|
+
readonly internalType: "uint16";
|
|
544
|
+
}, {
|
|
545
|
+
readonly name: "revealed";
|
|
546
|
+
readonly type: "bool";
|
|
547
|
+
readonly internalType: "bool";
|
|
548
|
+
}, {
|
|
549
|
+
readonly name: "claimed";
|
|
550
|
+
readonly type: "bool";
|
|
551
|
+
readonly internalType: "bool";
|
|
552
|
+
}, {
|
|
553
|
+
readonly name: "deposit";
|
|
554
|
+
readonly type: "uint128";
|
|
555
|
+
readonly internalType: "uint128";
|
|
556
|
+
}, {
|
|
557
|
+
readonly name: "quantity";
|
|
558
|
+
readonly type: "uint128";
|
|
559
|
+
readonly internalType: "uint128";
|
|
560
|
+
}, {
|
|
561
|
+
readonly name: "commitment";
|
|
562
|
+
readonly type: "bytes32";
|
|
563
|
+
readonly internalType: "bytes32";
|
|
564
|
+
}];
|
|
565
|
+
}];
|
|
566
|
+
readonly stateMutability: "view";
|
|
567
|
+
}, {
|
|
568
|
+
readonly type: "function";
|
|
569
|
+
readonly name: "init";
|
|
570
|
+
readonly inputs: readonly [{
|
|
571
|
+
readonly name: "token_";
|
|
572
|
+
readonly type: "address";
|
|
573
|
+
readonly internalType: "address";
|
|
574
|
+
}];
|
|
575
|
+
readonly outputs: readonly [];
|
|
576
|
+
readonly stateMutability: "nonpayable";
|
|
577
|
+
}, {
|
|
578
|
+
readonly type: "function";
|
|
579
|
+
readonly name: "launchFeeBps";
|
|
580
|
+
readonly inputs: readonly [];
|
|
581
|
+
readonly outputs: readonly [{
|
|
582
|
+
readonly name: "";
|
|
583
|
+
readonly type: "uint16";
|
|
584
|
+
readonly internalType: "uint16";
|
|
585
|
+
}];
|
|
586
|
+
readonly stateMutability: "view";
|
|
587
|
+
}, {
|
|
588
|
+
readonly type: "function";
|
|
589
|
+
readonly name: "lpReleased";
|
|
590
|
+
readonly inputs: readonly [];
|
|
591
|
+
readonly outputs: readonly [{
|
|
592
|
+
readonly name: "";
|
|
593
|
+
readonly type: "bool";
|
|
594
|
+
readonly internalType: "bool";
|
|
595
|
+
}];
|
|
596
|
+
readonly stateMutability: "view";
|
|
597
|
+
}, {
|
|
598
|
+
readonly type: "function";
|
|
599
|
+
readonly name: "lpShares";
|
|
600
|
+
readonly inputs: readonly [];
|
|
601
|
+
readonly outputs: readonly [{
|
|
602
|
+
readonly name: "";
|
|
603
|
+
readonly type: "uint256";
|
|
604
|
+
readonly internalType: "uint256";
|
|
605
|
+
}];
|
|
606
|
+
readonly stateMutability: "view";
|
|
607
|
+
}, {
|
|
608
|
+
readonly type: "function";
|
|
609
|
+
readonly name: "marginalDemand";
|
|
610
|
+
readonly inputs: readonly [];
|
|
611
|
+
readonly outputs: readonly [{
|
|
612
|
+
readonly name: "";
|
|
613
|
+
readonly type: "uint256";
|
|
614
|
+
readonly internalType: "uint256";
|
|
615
|
+
}];
|
|
616
|
+
readonly stateMutability: "view";
|
|
617
|
+
}, {
|
|
618
|
+
readonly type: "function";
|
|
619
|
+
readonly name: "marginalRemaining";
|
|
620
|
+
readonly inputs: readonly [];
|
|
621
|
+
readonly outputs: readonly [{
|
|
622
|
+
readonly name: "";
|
|
623
|
+
readonly type: "uint256";
|
|
624
|
+
readonly internalType: "uint256";
|
|
625
|
+
}];
|
|
626
|
+
readonly stateMutability: "view";
|
|
627
|
+
}, {
|
|
628
|
+
readonly type: "function";
|
|
629
|
+
readonly name: "pair";
|
|
630
|
+
readonly inputs: readonly [];
|
|
631
|
+
readonly outputs: readonly [{
|
|
632
|
+
readonly name: "";
|
|
633
|
+
readonly type: "address";
|
|
634
|
+
readonly internalType: "contract CloakPair";
|
|
635
|
+
}];
|
|
636
|
+
readonly stateMutability: "view";
|
|
637
|
+
}, {
|
|
638
|
+
readonly type: "function";
|
|
639
|
+
readonly name: "params";
|
|
640
|
+
readonly inputs: readonly [];
|
|
641
|
+
readonly outputs: readonly [{
|
|
642
|
+
readonly name: "creator";
|
|
643
|
+
readonly type: "address";
|
|
644
|
+
readonly internalType: "address";
|
|
645
|
+
}, {
|
|
646
|
+
readonly name: "saleSupply";
|
|
647
|
+
readonly type: "uint256";
|
|
648
|
+
readonly internalType: "uint256";
|
|
649
|
+
}, {
|
|
650
|
+
readonly name: "lpReserve";
|
|
651
|
+
readonly type: "uint256";
|
|
652
|
+
readonly internalType: "uint256";
|
|
653
|
+
}, {
|
|
654
|
+
readonly name: "minPrice";
|
|
655
|
+
readonly type: "uint256";
|
|
656
|
+
readonly internalType: "uint256";
|
|
657
|
+
}, {
|
|
658
|
+
readonly name: "tickSize";
|
|
659
|
+
readonly type: "uint256";
|
|
660
|
+
readonly internalType: "uint256";
|
|
661
|
+
}, {
|
|
662
|
+
readonly name: "numTicks";
|
|
663
|
+
readonly type: "uint16";
|
|
664
|
+
readonly internalType: "uint16";
|
|
665
|
+
}, {
|
|
666
|
+
readonly name: "commitEnd";
|
|
667
|
+
readonly type: "uint64";
|
|
668
|
+
readonly internalType: "uint64";
|
|
669
|
+
}, {
|
|
670
|
+
readonly name: "revealEnd";
|
|
671
|
+
readonly type: "uint64";
|
|
672
|
+
readonly internalType: "uint64";
|
|
673
|
+
}, {
|
|
674
|
+
readonly name: "lpBps";
|
|
675
|
+
readonly type: "uint16";
|
|
676
|
+
readonly internalType: "uint16";
|
|
677
|
+
}, {
|
|
678
|
+
readonly name: "noRevealPenaltyBps";
|
|
679
|
+
readonly type: "uint16";
|
|
680
|
+
readonly internalType: "uint16";
|
|
681
|
+
}, {
|
|
682
|
+
readonly name: "lpLockUntil";
|
|
683
|
+
readonly type: "uint64";
|
|
684
|
+
readonly internalType: "uint64";
|
|
685
|
+
}, {
|
|
686
|
+
readonly name: "tlockRound";
|
|
687
|
+
readonly type: "uint64";
|
|
688
|
+
readonly internalType: "uint64";
|
|
689
|
+
}];
|
|
690
|
+
readonly stateMutability: "view";
|
|
691
|
+
}, {
|
|
692
|
+
readonly type: "function";
|
|
693
|
+
readonly name: "phase";
|
|
694
|
+
readonly inputs: readonly [];
|
|
695
|
+
readonly outputs: readonly [{
|
|
696
|
+
readonly name: "";
|
|
697
|
+
readonly type: "uint8";
|
|
698
|
+
readonly internalType: "uint8";
|
|
699
|
+
}];
|
|
700
|
+
readonly stateMutability: "view";
|
|
701
|
+
}, {
|
|
702
|
+
readonly type: "function";
|
|
703
|
+
readonly name: "priceAt";
|
|
704
|
+
readonly inputs: readonly [{
|
|
705
|
+
readonly name: "tick";
|
|
706
|
+
readonly type: "uint16";
|
|
707
|
+
readonly internalType: "uint16";
|
|
708
|
+
}];
|
|
709
|
+
readonly outputs: readonly [{
|
|
710
|
+
readonly name: "";
|
|
711
|
+
readonly type: "uint256";
|
|
712
|
+
readonly internalType: "uint256";
|
|
713
|
+
}];
|
|
714
|
+
readonly stateMutability: "view";
|
|
715
|
+
}, {
|
|
716
|
+
readonly type: "function";
|
|
717
|
+
readonly name: "raised";
|
|
718
|
+
readonly inputs: readonly [];
|
|
719
|
+
readonly outputs: readonly [{
|
|
720
|
+
readonly name: "";
|
|
721
|
+
readonly type: "uint256";
|
|
722
|
+
readonly internalType: "uint256";
|
|
723
|
+
}];
|
|
724
|
+
readonly stateMutability: "view";
|
|
725
|
+
}, {
|
|
726
|
+
readonly type: "function";
|
|
727
|
+
readonly name: "releaseLP";
|
|
728
|
+
readonly inputs: readonly [];
|
|
729
|
+
readonly outputs: readonly [];
|
|
730
|
+
readonly stateMutability: "nonpayable";
|
|
731
|
+
}, {
|
|
732
|
+
readonly type: "function";
|
|
733
|
+
readonly name: "reveal";
|
|
734
|
+
readonly inputs: readonly [{
|
|
735
|
+
readonly name: "id";
|
|
736
|
+
readonly type: "uint256";
|
|
737
|
+
readonly internalType: "uint256";
|
|
738
|
+
}, {
|
|
739
|
+
readonly name: "tick";
|
|
740
|
+
readonly type: "uint16";
|
|
741
|
+
readonly internalType: "uint16";
|
|
742
|
+
}, {
|
|
743
|
+
readonly name: "quantity";
|
|
744
|
+
readonly type: "uint128";
|
|
745
|
+
readonly internalType: "uint128";
|
|
746
|
+
}, {
|
|
747
|
+
readonly name: "salt";
|
|
748
|
+
readonly type: "bytes32";
|
|
749
|
+
readonly internalType: "bytes32";
|
|
750
|
+
}];
|
|
751
|
+
readonly outputs: readonly [];
|
|
752
|
+
readonly stateMutability: "nonpayable";
|
|
753
|
+
}, {
|
|
754
|
+
readonly type: "function";
|
|
755
|
+
readonly name: "revealBatch";
|
|
756
|
+
readonly inputs: readonly [{
|
|
757
|
+
readonly name: "reveals";
|
|
758
|
+
readonly type: "tuple[]";
|
|
759
|
+
readonly internalType: "struct CloakAuction.Reveal[]";
|
|
760
|
+
readonly components: readonly [{
|
|
761
|
+
readonly name: "id";
|
|
762
|
+
readonly type: "uint256";
|
|
763
|
+
readonly internalType: "uint256";
|
|
764
|
+
}, {
|
|
765
|
+
readonly name: "tick";
|
|
766
|
+
readonly type: "uint16";
|
|
767
|
+
readonly internalType: "uint16";
|
|
768
|
+
}, {
|
|
769
|
+
readonly name: "quantity";
|
|
770
|
+
readonly type: "uint128";
|
|
771
|
+
readonly internalType: "uint128";
|
|
772
|
+
}, {
|
|
773
|
+
readonly name: "salt";
|
|
774
|
+
readonly type: "bytes32";
|
|
775
|
+
readonly internalType: "bytes32";
|
|
776
|
+
}];
|
|
777
|
+
}];
|
|
778
|
+
readonly outputs: readonly [{
|
|
779
|
+
readonly name: "ok";
|
|
780
|
+
readonly type: "uint256";
|
|
781
|
+
readonly internalType: "uint256";
|
|
782
|
+
}];
|
|
783
|
+
readonly stateMutability: "nonpayable";
|
|
784
|
+
}, {
|
|
785
|
+
readonly type: "function";
|
|
786
|
+
readonly name: "revealCount";
|
|
787
|
+
readonly inputs: readonly [];
|
|
788
|
+
readonly outputs: readonly [{
|
|
789
|
+
readonly name: "";
|
|
790
|
+
readonly type: "uint256";
|
|
791
|
+
readonly internalType: "uint256";
|
|
792
|
+
}];
|
|
793
|
+
readonly stateMutability: "view";
|
|
794
|
+
}, {
|
|
795
|
+
readonly type: "function";
|
|
796
|
+
readonly name: "settle";
|
|
797
|
+
readonly inputs: readonly [];
|
|
798
|
+
readonly outputs: readonly [];
|
|
799
|
+
readonly stateMutability: "nonpayable";
|
|
800
|
+
}, {
|
|
801
|
+
readonly type: "function";
|
|
802
|
+
readonly name: "settled";
|
|
803
|
+
readonly inputs: readonly [];
|
|
804
|
+
readonly outputs: readonly [{
|
|
805
|
+
readonly name: "";
|
|
806
|
+
readonly type: "bool";
|
|
807
|
+
readonly internalType: "bool";
|
|
808
|
+
}];
|
|
809
|
+
readonly stateMutability: "view";
|
|
810
|
+
}, {
|
|
811
|
+
readonly type: "function";
|
|
812
|
+
readonly name: "sold";
|
|
813
|
+
readonly inputs: readonly [];
|
|
814
|
+
readonly outputs: readonly [{
|
|
815
|
+
readonly name: "";
|
|
816
|
+
readonly type: "uint256";
|
|
817
|
+
readonly internalType: "uint256";
|
|
818
|
+
}];
|
|
819
|
+
readonly stateMutability: "view";
|
|
820
|
+
}, {
|
|
821
|
+
readonly type: "function";
|
|
822
|
+
readonly name: "sweepDust";
|
|
823
|
+
readonly inputs: readonly [];
|
|
824
|
+
readonly outputs: readonly [];
|
|
825
|
+
readonly stateMutability: "nonpayable";
|
|
826
|
+
}, {
|
|
827
|
+
readonly type: "function";
|
|
828
|
+
readonly name: "token";
|
|
829
|
+
readonly inputs: readonly [];
|
|
830
|
+
readonly outputs: readonly [{
|
|
831
|
+
readonly name: "";
|
|
832
|
+
readonly type: "address";
|
|
833
|
+
readonly internalType: "contract IERC20Approve";
|
|
834
|
+
}];
|
|
835
|
+
readonly stateMutability: "view";
|
|
836
|
+
}, {
|
|
837
|
+
readonly type: "function";
|
|
838
|
+
readonly name: "totalDemand";
|
|
839
|
+
readonly inputs: readonly [];
|
|
840
|
+
readonly outputs: readonly [{
|
|
841
|
+
readonly name: "";
|
|
842
|
+
readonly type: "uint256";
|
|
843
|
+
readonly internalType: "uint256";
|
|
844
|
+
}];
|
|
845
|
+
readonly stateMutability: "view";
|
|
846
|
+
}, {
|
|
847
|
+
readonly type: "function";
|
|
848
|
+
readonly name: "totalDeposits";
|
|
849
|
+
readonly inputs: readonly [];
|
|
850
|
+
readonly outputs: readonly [{
|
|
851
|
+
readonly name: "";
|
|
852
|
+
readonly type: "uint256";
|
|
853
|
+
readonly internalType: "uint256";
|
|
854
|
+
}];
|
|
855
|
+
readonly stateMutability: "view";
|
|
856
|
+
}, {
|
|
857
|
+
readonly type: "function";
|
|
858
|
+
readonly name: "withdrawProceeds";
|
|
859
|
+
readonly inputs: readonly [];
|
|
860
|
+
readonly outputs: readonly [];
|
|
861
|
+
readonly stateMutability: "nonpayable";
|
|
862
|
+
}, {
|
|
863
|
+
readonly type: "event";
|
|
864
|
+
readonly name: "Claimed";
|
|
865
|
+
readonly inputs: readonly [{
|
|
866
|
+
readonly name: "id";
|
|
867
|
+
readonly type: "uint256";
|
|
868
|
+
readonly indexed: true;
|
|
869
|
+
readonly internalType: "uint256";
|
|
870
|
+
}, {
|
|
871
|
+
readonly name: "bidder";
|
|
872
|
+
readonly type: "address";
|
|
873
|
+
readonly indexed: true;
|
|
874
|
+
readonly internalType: "address";
|
|
875
|
+
}, {
|
|
876
|
+
readonly name: "tokens";
|
|
877
|
+
readonly type: "uint256";
|
|
878
|
+
readonly indexed: false;
|
|
879
|
+
readonly internalType: "uint256";
|
|
880
|
+
}, {
|
|
881
|
+
readonly name: "refund";
|
|
882
|
+
readonly type: "uint256";
|
|
883
|
+
readonly indexed: false;
|
|
884
|
+
readonly internalType: "uint256";
|
|
885
|
+
}, {
|
|
886
|
+
readonly name: "penalty";
|
|
887
|
+
readonly type: "uint256";
|
|
888
|
+
readonly indexed: false;
|
|
889
|
+
readonly internalType: "uint256";
|
|
890
|
+
}];
|
|
891
|
+
readonly anonymous: false;
|
|
892
|
+
}, {
|
|
893
|
+
readonly type: "event";
|
|
894
|
+
readonly name: "Committed";
|
|
895
|
+
readonly inputs: readonly [{
|
|
896
|
+
readonly name: "id";
|
|
897
|
+
readonly type: "uint256";
|
|
898
|
+
readonly indexed: true;
|
|
899
|
+
readonly internalType: "uint256";
|
|
900
|
+
}, {
|
|
901
|
+
readonly name: "bidder";
|
|
902
|
+
readonly type: "address";
|
|
903
|
+
readonly indexed: true;
|
|
904
|
+
readonly internalType: "address";
|
|
905
|
+
}, {
|
|
906
|
+
readonly name: "deposit";
|
|
907
|
+
readonly type: "uint256";
|
|
908
|
+
readonly indexed: false;
|
|
909
|
+
readonly internalType: "uint256";
|
|
910
|
+
}, {
|
|
911
|
+
readonly name: "commitment";
|
|
912
|
+
readonly type: "bytes32";
|
|
913
|
+
readonly indexed: false;
|
|
914
|
+
readonly internalType: "bytes32";
|
|
915
|
+
}, {
|
|
916
|
+
readonly name: "sealedBid";
|
|
917
|
+
readonly type: "bytes";
|
|
918
|
+
readonly indexed: false;
|
|
919
|
+
readonly internalType: "bytes";
|
|
920
|
+
}];
|
|
921
|
+
readonly anonymous: false;
|
|
922
|
+
}, {
|
|
923
|
+
readonly type: "event";
|
|
924
|
+
readonly name: "DustSwept";
|
|
925
|
+
readonly inputs: readonly [{
|
|
926
|
+
readonly name: "hype";
|
|
927
|
+
readonly type: "uint256";
|
|
928
|
+
readonly indexed: false;
|
|
929
|
+
readonly internalType: "uint256";
|
|
930
|
+
}, {
|
|
931
|
+
readonly name: "tokens";
|
|
932
|
+
readonly type: "uint256";
|
|
933
|
+
readonly indexed: false;
|
|
934
|
+
readonly internalType: "uint256";
|
|
935
|
+
}];
|
|
936
|
+
readonly anonymous: false;
|
|
937
|
+
}, {
|
|
938
|
+
readonly type: "event";
|
|
939
|
+
readonly name: "Failed";
|
|
940
|
+
readonly inputs: readonly [];
|
|
941
|
+
readonly anonymous: false;
|
|
942
|
+
}, {
|
|
943
|
+
readonly type: "event";
|
|
944
|
+
readonly name: "FairLaunch";
|
|
945
|
+
readonly inputs: readonly [{
|
|
946
|
+
readonly name: "token";
|
|
947
|
+
readonly type: "address";
|
|
948
|
+
readonly indexed: true;
|
|
949
|
+
readonly internalType: "address";
|
|
950
|
+
}, {
|
|
951
|
+
readonly name: "pair";
|
|
952
|
+
readonly type: "address";
|
|
953
|
+
readonly indexed: false;
|
|
954
|
+
readonly internalType: "address";
|
|
955
|
+
}, {
|
|
956
|
+
readonly name: "clearingPrice";
|
|
957
|
+
readonly type: "uint256";
|
|
958
|
+
readonly indexed: false;
|
|
959
|
+
readonly internalType: "uint256";
|
|
960
|
+
}, {
|
|
961
|
+
readonly name: "sold";
|
|
962
|
+
readonly type: "uint256";
|
|
963
|
+
readonly indexed: false;
|
|
964
|
+
readonly internalType: "uint256";
|
|
965
|
+
}, {
|
|
966
|
+
readonly name: "raised";
|
|
967
|
+
readonly type: "uint256";
|
|
968
|
+
readonly indexed: false;
|
|
969
|
+
readonly internalType: "uint256";
|
|
970
|
+
}, {
|
|
971
|
+
readonly name: "lpHype";
|
|
972
|
+
readonly type: "uint256";
|
|
973
|
+
readonly indexed: false;
|
|
974
|
+
readonly internalType: "uint256";
|
|
975
|
+
}, {
|
|
976
|
+
readonly name: "lpTokens";
|
|
977
|
+
readonly type: "uint256";
|
|
978
|
+
readonly indexed: false;
|
|
979
|
+
readonly internalType: "uint256";
|
|
980
|
+
}, {
|
|
981
|
+
readonly name: "lpLockUntil";
|
|
982
|
+
readonly type: "uint64";
|
|
983
|
+
readonly indexed: false;
|
|
984
|
+
readonly internalType: "uint64";
|
|
985
|
+
}, {
|
|
986
|
+
readonly name: "bidders";
|
|
987
|
+
readonly type: "uint256";
|
|
988
|
+
readonly indexed: false;
|
|
989
|
+
readonly internalType: "uint256";
|
|
990
|
+
}, {
|
|
991
|
+
readonly name: "commits";
|
|
992
|
+
readonly type: "uint256";
|
|
993
|
+
readonly indexed: false;
|
|
994
|
+
readonly internalType: "uint256";
|
|
995
|
+
}];
|
|
996
|
+
readonly anonymous: false;
|
|
997
|
+
}, {
|
|
998
|
+
readonly type: "event";
|
|
999
|
+
readonly name: "FeesCollected";
|
|
1000
|
+
readonly inputs: readonly [{
|
|
1001
|
+
readonly name: "to";
|
|
1002
|
+
readonly type: "address";
|
|
1003
|
+
readonly indexed: false;
|
|
1004
|
+
readonly internalType: "address";
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly name: "amount";
|
|
1007
|
+
readonly type: "uint256";
|
|
1008
|
+
readonly indexed: false;
|
|
1009
|
+
readonly internalType: "uint256";
|
|
1010
|
+
}];
|
|
1011
|
+
readonly anonymous: false;
|
|
1012
|
+
}, {
|
|
1013
|
+
readonly type: "event";
|
|
1014
|
+
readonly name: "LPReleased";
|
|
1015
|
+
readonly inputs: readonly [{
|
|
1016
|
+
readonly name: "to";
|
|
1017
|
+
readonly type: "address";
|
|
1018
|
+
readonly indexed: false;
|
|
1019
|
+
readonly internalType: "address";
|
|
1020
|
+
}, {
|
|
1021
|
+
readonly name: "shares";
|
|
1022
|
+
readonly type: "uint256";
|
|
1023
|
+
readonly indexed: false;
|
|
1024
|
+
readonly internalType: "uint256";
|
|
1025
|
+
}];
|
|
1026
|
+
readonly anonymous: false;
|
|
1027
|
+
}, {
|
|
1028
|
+
readonly type: "event";
|
|
1029
|
+
readonly name: "ProceedsWithdrawn";
|
|
1030
|
+
readonly inputs: readonly [{
|
|
1031
|
+
readonly name: "to";
|
|
1032
|
+
readonly type: "address";
|
|
1033
|
+
readonly indexed: false;
|
|
1034
|
+
readonly internalType: "address";
|
|
1035
|
+
}, {
|
|
1036
|
+
readonly name: "amount";
|
|
1037
|
+
readonly type: "uint256";
|
|
1038
|
+
readonly indexed: false;
|
|
1039
|
+
readonly internalType: "uint256";
|
|
1040
|
+
}];
|
|
1041
|
+
readonly anonymous: false;
|
|
1042
|
+
}, {
|
|
1043
|
+
readonly type: "event";
|
|
1044
|
+
readonly name: "Revealed";
|
|
1045
|
+
readonly inputs: readonly [{
|
|
1046
|
+
readonly name: "id";
|
|
1047
|
+
readonly type: "uint256";
|
|
1048
|
+
readonly indexed: true;
|
|
1049
|
+
readonly internalType: "uint256";
|
|
1050
|
+
}, {
|
|
1051
|
+
readonly name: "bidder";
|
|
1052
|
+
readonly type: "address";
|
|
1053
|
+
readonly indexed: true;
|
|
1054
|
+
readonly internalType: "address";
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly name: "tick";
|
|
1057
|
+
readonly type: "uint16";
|
|
1058
|
+
readonly indexed: false;
|
|
1059
|
+
readonly internalType: "uint16";
|
|
1060
|
+
}, {
|
|
1061
|
+
readonly name: "quantity";
|
|
1062
|
+
readonly type: "uint256";
|
|
1063
|
+
readonly indexed: false;
|
|
1064
|
+
readonly internalType: "uint256";
|
|
1065
|
+
}];
|
|
1066
|
+
readonly anonymous: false;
|
|
1067
|
+
}, {
|
|
1068
|
+
readonly type: "event";
|
|
1069
|
+
readonly name: "Settled";
|
|
1070
|
+
readonly inputs: readonly [{
|
|
1071
|
+
readonly name: "clearingTick";
|
|
1072
|
+
readonly type: "uint16";
|
|
1073
|
+
readonly indexed: false;
|
|
1074
|
+
readonly internalType: "uint16";
|
|
1075
|
+
}, {
|
|
1076
|
+
readonly name: "clearingPrice";
|
|
1077
|
+
readonly type: "uint256";
|
|
1078
|
+
readonly indexed: false;
|
|
1079
|
+
readonly internalType: "uint256";
|
|
1080
|
+
}, {
|
|
1081
|
+
readonly name: "sold";
|
|
1082
|
+
readonly type: "uint256";
|
|
1083
|
+
readonly indexed: false;
|
|
1084
|
+
readonly internalType: "uint256";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly name: "raised";
|
|
1087
|
+
readonly type: "uint256";
|
|
1088
|
+
readonly indexed: false;
|
|
1089
|
+
readonly internalType: "uint256";
|
|
1090
|
+
}];
|
|
1091
|
+
readonly anonymous: false;
|
|
1092
|
+
}], "Committed", true, bigint, bigint>>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Decrypt every sealed bid whose drand round has passed and reveal them in batches. Anyone can run this — it needs no
|
|
1095
|
+
* key material, only the public beacon. Bids whose ciphertext is garbage are skipped (and get penalised at claim).
|
|
1096
|
+
*/
|
|
1097
|
+
revealAll(auction: Address, opts?: {
|
|
1098
|
+
fromBlock?: bigint;
|
|
1099
|
+
batchSize?: number;
|
|
1100
|
+
log?: (m: string) => void;
|
|
1101
|
+
}): Promise<{
|
|
1102
|
+
revealed: number;
|
|
1103
|
+
txs: `0x${string}`[];
|
|
1104
|
+
}>;
|
|
1105
|
+
/** Claim on behalf of every bidder (tokens and refunds always go to the bidder, never the caller). */
|
|
1106
|
+
claimAll(auction: Address, opts?: {
|
|
1107
|
+
fromBlock?: bigint;
|
|
1108
|
+
batchSize?: number;
|
|
1109
|
+
}): Promise<{
|
|
1110
|
+
claimed: number;
|
|
1111
|
+
txs: `0x${string}`[];
|
|
1112
|
+
}>;
|
|
1113
|
+
}
|