@peddles/sdk 0.2.0
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/CLAUDE_PROMPT.md +159 -0
- package/LICENSE +21 -0
- package/README.md +186 -0
- package/dist/abis.d.ts +19 -0
- package/dist/abis.d.ts.map +1 -0
- package/dist/abis.generated.d.ts +2029 -0
- package/dist/abis.generated.d.ts.map +1 -0
- package/dist/abis.generated.js +2723 -0
- package/dist/abis.generated.js.map +1 -0
- package/dist/abis.js +19 -0
- package/dist/abis.js.map +1 -0
- package/dist/artDex.d.ts +937 -0
- package/dist/artDex.d.ts.map +1 -0
- package/dist/artDex.js +155 -0
- package/dist/artDex.js.map +1 -0
- package/dist/client.d.ts +10 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -0
- package/dist/clog.d.ts +75 -0
- package/dist/clog.d.ts.map +1 -0
- package/dist/clog.js +91 -0
- package/dist/clog.js.map +1 -0
- package/dist/clogInflow.d.ts +136 -0
- package/dist/clogInflow.d.ts.map +1 -0
- package/dist/clogInflow.js +177 -0
- package/dist/clogInflow.js.map +1 -0
- package/dist/deployments.d.ts +30 -0
- package/dist/deployments.d.ts.map +1 -0
- package/dist/deployments.generated.d.ts +92 -0
- package/dist/deployments.generated.d.ts.map +1 -0
- package/dist/deployments.generated.js +93 -0
- package/dist/deployments.generated.js.map +1 -0
- package/dist/deployments.js +52 -0
- package/dist/deployments.js.map +1 -0
- package/dist/feeSplit.d.ts +54 -0
- package/dist/feeSplit.d.ts.map +1 -0
- package/dist/feeSplit.js +69 -0
- package/dist/feeSplit.js.map +1 -0
- package/dist/feeTerms.d.ts +46 -0
- package/dist/feeTerms.d.ts.map +1 -0
- package/dist/feeTerms.js +80 -0
- package/dist/feeTerms.js.map +1 -0
- package/dist/index.d.ts +102 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +108 -0
- package/dist/index.js.map +1 -0
- package/dist/launch/abi.generated.d.ts +2667 -0
- package/dist/launch/abi.generated.d.ts.map +1 -0
- package/dist/launch/abi.generated.js +2472 -0
- package/dist/launch/abi.generated.js.map +1 -0
- package/dist/launch/addresses.d.ts +24 -0
- package/dist/launch/addresses.d.ts.map +1 -0
- package/dist/launch/addresses.js +35 -0
- package/dist/launch/addresses.js.map +1 -0
- package/dist/launch/feeTerms.d.ts +52 -0
- package/dist/launch/feeTerms.d.ts.map +1 -0
- package/dist/launch/feeTerms.js +72 -0
- package/dist/launch/feeTerms.js.map +1 -0
- package/dist/launch/index.d.ts +33 -0
- package/dist/launch/index.d.ts.map +1 -0
- package/dist/launch/index.js +24 -0
- package/dist/launch/index.js.map +1 -0
- package/dist/launch/revert.d.ts +23 -0
- package/dist/launch/revert.d.ts.map +1 -0
- package/dist/launch/revert.js +169 -0
- package/dist/launch/revert.js.map +1 -0
- package/dist/launch/salt.d.ts +90 -0
- package/dist/launch/salt.d.ts.map +1 -0
- package/dist/launch/salt.js +153 -0
- package/dist/launch/salt.js.map +1 -0
- package/dist/launch/stockCall.d.ts +122 -0
- package/dist/launch/stockCall.d.ts.map +1 -0
- package/dist/launch/stockCall.js +144 -0
- package/dist/launch/stockCall.js.map +1 -0
- package/dist/launch/tickMath.d.ts +39 -0
- package/dist/launch/tickMath.d.ts.map +1 -0
- package/dist/launch/tickMath.js +109 -0
- package/dist/launch/tickMath.js.map +1 -0
- package/dist/launch/variants.d.ts +64 -0
- package/dist/launch/variants.d.ts.map +1 -0
- package/dist/launch/variants.js +131 -0
- package/dist/launch/variants.js.map +1 -0
- package/dist/launch/wethCall.d.ts +133 -0
- package/dist/launch/wethCall.d.ts.map +1 -0
- package/dist/launch/wethCall.js +173 -0
- package/dist/launch/wethCall.js.map +1 -0
- package/dist/launch/wethPlan.d.ts +71 -0
- package/dist/launch/wethPlan.d.ts.map +1 -0
- package/dist/launch/wethPlan.js +146 -0
- package/dist/launch/wethPlan.js.map +1 -0
- package/dist/perps/abi.generated.d.ts +794 -0
- package/dist/perps/abi.generated.d.ts.map +1 -0
- package/dist/perps/abi.generated.js +738 -0
- package/dist/perps/abi.generated.js.map +1 -0
- package/dist/perps/index.d.ts +160 -0
- package/dist/perps/index.d.ts.map +1 -0
- package/dist/perps/index.js +147 -0
- package/dist/perps/index.js.map +1 -0
- package/package.json +105 -0
- package/src/abis.generated.ts +2738 -0
- package/src/abis.ts +35 -0
- package/src/artDex.ts +254 -0
- package/src/client.ts +10 -0
- package/src/clog.ts +171 -0
- package/src/clogInflow.ts +217 -0
- package/src/deployments.generated.ts +98 -0
- package/src/deployments.ts +60 -0
- package/src/feeSplit.ts +76 -0
- package/src/feeTerms.ts +137 -0
- package/src/index.ts +233 -0
- package/src/launch/abi.generated.ts +2481 -0
- package/src/launch/addresses.ts +58 -0
- package/src/launch/feeTerms.ts +93 -0
- package/src/launch/index.ts +93 -0
- package/src/launch/revert.ts +188 -0
- package/src/launch/salt.ts +216 -0
- package/src/launch/stockCall.ts +223 -0
- package/src/launch/tickMath.ts +139 -0
- package/src/launch/variants.ts +183 -0
- package/src/launch/wethCall.ts +240 -0
- package/src/launch/wethPlan.ts +257 -0
- package/src/perps/abi.generated.ts +741 -0
- package/src/perps/index.ts +263 -0
package/dist/artDex.d.ts
ADDED
|
@@ -0,0 +1,937 @@
|
|
|
1
|
+
import type { ReadClient } from './client.js';
|
|
2
|
+
import type { Address, Hex } from 'viem';
|
|
3
|
+
export interface RelayParams {
|
|
4
|
+
readonly chainId: number;
|
|
5
|
+
/** The PeddlesNftStockGraduationOrchestrator the consent is for. */
|
|
6
|
+
readonly orchestrator: Address;
|
|
7
|
+
readonly collection: Address;
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly symbol: string;
|
|
10
|
+
readonly quote: Address;
|
|
11
|
+
readonly holderShareBps: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* `relayParamsHash` computed off chain — `keccak256(abi.encode(chainid, orchestrator, collection, name,
|
|
15
|
+
* symbol, quote, holderShareBps))`, exactly as the orchestrator hashes it. The collection owner signs
|
|
16
|
+
* `setStockGraduationOptIn(collection, hash)`; a relay whose parameters hash to anything else reverts.
|
|
17
|
+
* Chain id and orchestrator are part of it, so consent never carries across chains or deployments.
|
|
18
|
+
*/
|
|
19
|
+
export declare function relayParamsHash(p: RelayParams): Hex;
|
|
20
|
+
/** Request for `setStockGraduationOptIn(collection, relayParamsHash(p))` (collection owner only). Zero revokes. */
|
|
21
|
+
export declare function stockGraduationOptInRequest(p: RelayParams): {
|
|
22
|
+
readonly address: `0x${string}`;
|
|
23
|
+
readonly abi: readonly [{
|
|
24
|
+
readonly type: "function";
|
|
25
|
+
readonly name: "graduateToStockWithTerms";
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly name: "g";
|
|
28
|
+
readonly type: "tuple";
|
|
29
|
+
readonly components: readonly [{
|
|
30
|
+
readonly name: "collection";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "name";
|
|
34
|
+
readonly type: "string";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "symbol";
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
}, {
|
|
39
|
+
readonly name: "quote";
|
|
40
|
+
readonly type: "address";
|
|
41
|
+
}, {
|
|
42
|
+
readonly name: "creatorTaxBps";
|
|
43
|
+
readonly type: "uint16";
|
|
44
|
+
}, {
|
|
45
|
+
readonly name: "excessToCreatorBps";
|
|
46
|
+
readonly type: "uint16";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "holderShareBps";
|
|
49
|
+
readonly type: "uint16";
|
|
50
|
+
}, {
|
|
51
|
+
readonly name: "devBuyQuoteIn";
|
|
52
|
+
readonly type: "uint256";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "minTokensOut";
|
|
55
|
+
readonly type: "uint256";
|
|
56
|
+
}];
|
|
57
|
+
}];
|
|
58
|
+
readonly outputs: readonly [{
|
|
59
|
+
readonly name: "token";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "tokensOut";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}];
|
|
65
|
+
readonly stateMutability: "payable";
|
|
66
|
+
}, {
|
|
67
|
+
readonly type: "function";
|
|
68
|
+
readonly name: "graduateToStock";
|
|
69
|
+
readonly inputs: readonly [{
|
|
70
|
+
readonly name: "collection";
|
|
71
|
+
readonly type: "address";
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "name";
|
|
74
|
+
readonly type: "string";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "symbol";
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
}, {
|
|
79
|
+
readonly name: "quote";
|
|
80
|
+
readonly type: "address";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "holdersBps";
|
|
83
|
+
readonly type: "uint16";
|
|
84
|
+
}];
|
|
85
|
+
readonly outputs: readonly [{
|
|
86
|
+
readonly name: "token";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
}];
|
|
89
|
+
readonly stateMutability: "payable";
|
|
90
|
+
}, {
|
|
91
|
+
readonly type: "function";
|
|
92
|
+
readonly name: "setStockGraduationOptIn";
|
|
93
|
+
readonly inputs: readonly [{
|
|
94
|
+
readonly name: "collection";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly name: "paramsHash";
|
|
98
|
+
readonly type: "bytes32";
|
|
99
|
+
}];
|
|
100
|
+
readonly outputs: readonly [];
|
|
101
|
+
readonly stateMutability: "nonpayable";
|
|
102
|
+
}, {
|
|
103
|
+
readonly type: "function";
|
|
104
|
+
readonly name: "stockGraduationOptIn";
|
|
105
|
+
readonly inputs: readonly [{
|
|
106
|
+
readonly name: "";
|
|
107
|
+
readonly type: "address";
|
|
108
|
+
}];
|
|
109
|
+
readonly outputs: readonly [{
|
|
110
|
+
readonly name: "";
|
|
111
|
+
readonly type: "bytes32";
|
|
112
|
+
}];
|
|
113
|
+
readonly stateMutability: "view";
|
|
114
|
+
}, {
|
|
115
|
+
readonly type: "function";
|
|
116
|
+
readonly name: "relayParamsHash";
|
|
117
|
+
readonly inputs: readonly [{
|
|
118
|
+
readonly name: "collection";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "name";
|
|
122
|
+
readonly type: "string";
|
|
123
|
+
}, {
|
|
124
|
+
readonly name: "symbol";
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "quote";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "holdersBps";
|
|
131
|
+
readonly type: "uint16";
|
|
132
|
+
}];
|
|
133
|
+
readonly outputs: readonly [{
|
|
134
|
+
readonly name: "";
|
|
135
|
+
readonly type: "bytes32";
|
|
136
|
+
}];
|
|
137
|
+
readonly stateMutability: "view";
|
|
138
|
+
}, {
|
|
139
|
+
readonly type: "function";
|
|
140
|
+
readonly name: "distributorOf";
|
|
141
|
+
readonly inputs: readonly [{
|
|
142
|
+
readonly name: "";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
}];
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly type: "address";
|
|
148
|
+
}];
|
|
149
|
+
readonly stateMutability: "view";
|
|
150
|
+
}, {
|
|
151
|
+
readonly type: "function";
|
|
152
|
+
readonly name: "nftFeeDistributorFactory";
|
|
153
|
+
readonly inputs: readonly [];
|
|
154
|
+
readonly outputs: readonly [{
|
|
155
|
+
readonly name: "";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
}];
|
|
158
|
+
readonly stateMutability: "view";
|
|
159
|
+
}, {
|
|
160
|
+
readonly type: "event";
|
|
161
|
+
readonly name: "NftGraduatedToStock";
|
|
162
|
+
readonly inputs: readonly [{
|
|
163
|
+
readonly name: "collection";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
readonly indexed: true;
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "token";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
readonly indexed: true;
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "quote";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
readonly indexed: true;
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "liquidityVault";
|
|
176
|
+
readonly type: "address";
|
|
177
|
+
readonly indexed: false;
|
|
178
|
+
}, {
|
|
179
|
+
readonly name: "burnVault";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
readonly indexed: false;
|
|
182
|
+
}];
|
|
183
|
+
readonly anonymous: false;
|
|
184
|
+
}, {
|
|
185
|
+
readonly type: "event";
|
|
186
|
+
readonly name: "HolderFeesCommitted";
|
|
187
|
+
readonly inputs: readonly [{
|
|
188
|
+
readonly name: "collection";
|
|
189
|
+
readonly type: "address";
|
|
190
|
+
readonly indexed: true;
|
|
191
|
+
}, {
|
|
192
|
+
readonly name: "token";
|
|
193
|
+
readonly type: "address";
|
|
194
|
+
readonly indexed: true;
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "distributor";
|
|
197
|
+
readonly type: "address";
|
|
198
|
+
readonly indexed: true;
|
|
199
|
+
}, {
|
|
200
|
+
readonly name: "poolId";
|
|
201
|
+
readonly type: "bytes32";
|
|
202
|
+
readonly indexed: false;
|
|
203
|
+
}, {
|
|
204
|
+
readonly name: "holderShareBps";
|
|
205
|
+
readonly type: "uint16";
|
|
206
|
+
readonly indexed: false;
|
|
207
|
+
}];
|
|
208
|
+
readonly anonymous: false;
|
|
209
|
+
}, {
|
|
210
|
+
readonly type: "event";
|
|
211
|
+
readonly name: "DevBought";
|
|
212
|
+
readonly inputs: readonly [{
|
|
213
|
+
readonly name: "token";
|
|
214
|
+
readonly type: "address";
|
|
215
|
+
readonly indexed: true;
|
|
216
|
+
}, {
|
|
217
|
+
readonly name: "buyer";
|
|
218
|
+
readonly type: "address";
|
|
219
|
+
readonly indexed: true;
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "quoteIn";
|
|
222
|
+
readonly type: "uint256";
|
|
223
|
+
readonly indexed: false;
|
|
224
|
+
}, {
|
|
225
|
+
readonly name: "tokensOut";
|
|
226
|
+
readonly type: "uint256";
|
|
227
|
+
readonly indexed: false;
|
|
228
|
+
}];
|
|
229
|
+
readonly anonymous: false;
|
|
230
|
+
}, {
|
|
231
|
+
readonly type: "event";
|
|
232
|
+
readonly name: "StockGraduationOptInSet";
|
|
233
|
+
readonly inputs: readonly [{
|
|
234
|
+
readonly name: "collection";
|
|
235
|
+
readonly type: "address";
|
|
236
|
+
readonly indexed: true;
|
|
237
|
+
}, {
|
|
238
|
+
readonly name: "collectionOwner";
|
|
239
|
+
readonly type: "address";
|
|
240
|
+
readonly indexed: true;
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "paramsHash";
|
|
243
|
+
readonly type: "bytes32";
|
|
244
|
+
readonly indexed: false;
|
|
245
|
+
}];
|
|
246
|
+
readonly anonymous: false;
|
|
247
|
+
}];
|
|
248
|
+
readonly functionName: "setStockGraduationOptIn";
|
|
249
|
+
readonly args: readonly [`0x${string}`, `0x${string}`];
|
|
250
|
+
};
|
|
251
|
+
export interface StockTermsLaunch {
|
|
252
|
+
readonly orchestrator: Address;
|
|
253
|
+
readonly collection: Address;
|
|
254
|
+
readonly name: string;
|
|
255
|
+
readonly symbol: string;
|
|
256
|
+
readonly quote: Address;
|
|
257
|
+
/** All-in pool tax, bps (100..1000). Permanent. */
|
|
258
|
+
readonly creatorTaxBps: number;
|
|
259
|
+
/** Creator's share of the tax above 1.00%, bps. Permanent. */
|
|
260
|
+
readonly excessToCreatorBps: number;
|
|
261
|
+
/** Share of the creator streams paid to NFT holders, bps. 0 unless the collection is committed. Permanent. */
|
|
262
|
+
readonly holderShareBps: number;
|
|
263
|
+
/** Quote base units for the in-launch dev buy (0 = none); pulled from the caller, so approve first. */
|
|
264
|
+
readonly devBuyQuoteIn: bigint;
|
|
265
|
+
readonly minTokensOut: bigint;
|
|
266
|
+
/** The launchpad's native launch fee, forwarded as msg.value. */
|
|
267
|
+
readonly launchFee: bigint;
|
|
268
|
+
}
|
|
269
|
+
/** Request for `graduateToStockWithTerms` (collection owner only). */
|
|
270
|
+
export declare function graduateToStockWithTermsRequest(l: StockTermsLaunch): {
|
|
271
|
+
readonly address: `0x${string}`;
|
|
272
|
+
readonly abi: readonly [{
|
|
273
|
+
readonly type: "function";
|
|
274
|
+
readonly name: "graduateToStockWithTerms";
|
|
275
|
+
readonly inputs: readonly [{
|
|
276
|
+
readonly name: "g";
|
|
277
|
+
readonly type: "tuple";
|
|
278
|
+
readonly components: readonly [{
|
|
279
|
+
readonly name: "collection";
|
|
280
|
+
readonly type: "address";
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "name";
|
|
283
|
+
readonly type: "string";
|
|
284
|
+
}, {
|
|
285
|
+
readonly name: "symbol";
|
|
286
|
+
readonly type: "string";
|
|
287
|
+
}, {
|
|
288
|
+
readonly name: "quote";
|
|
289
|
+
readonly type: "address";
|
|
290
|
+
}, {
|
|
291
|
+
readonly name: "creatorTaxBps";
|
|
292
|
+
readonly type: "uint16";
|
|
293
|
+
}, {
|
|
294
|
+
readonly name: "excessToCreatorBps";
|
|
295
|
+
readonly type: "uint16";
|
|
296
|
+
}, {
|
|
297
|
+
readonly name: "holderShareBps";
|
|
298
|
+
readonly type: "uint16";
|
|
299
|
+
}, {
|
|
300
|
+
readonly name: "devBuyQuoteIn";
|
|
301
|
+
readonly type: "uint256";
|
|
302
|
+
}, {
|
|
303
|
+
readonly name: "minTokensOut";
|
|
304
|
+
readonly type: "uint256";
|
|
305
|
+
}];
|
|
306
|
+
}];
|
|
307
|
+
readonly outputs: readonly [{
|
|
308
|
+
readonly name: "token";
|
|
309
|
+
readonly type: "address";
|
|
310
|
+
}, {
|
|
311
|
+
readonly name: "tokensOut";
|
|
312
|
+
readonly type: "uint256";
|
|
313
|
+
}];
|
|
314
|
+
readonly stateMutability: "payable";
|
|
315
|
+
}, {
|
|
316
|
+
readonly type: "function";
|
|
317
|
+
readonly name: "graduateToStock";
|
|
318
|
+
readonly inputs: readonly [{
|
|
319
|
+
readonly name: "collection";
|
|
320
|
+
readonly type: "address";
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "name";
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
}, {
|
|
325
|
+
readonly name: "symbol";
|
|
326
|
+
readonly type: "string";
|
|
327
|
+
}, {
|
|
328
|
+
readonly name: "quote";
|
|
329
|
+
readonly type: "address";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "holdersBps";
|
|
332
|
+
readonly type: "uint16";
|
|
333
|
+
}];
|
|
334
|
+
readonly outputs: readonly [{
|
|
335
|
+
readonly name: "token";
|
|
336
|
+
readonly type: "address";
|
|
337
|
+
}];
|
|
338
|
+
readonly stateMutability: "payable";
|
|
339
|
+
}, {
|
|
340
|
+
readonly type: "function";
|
|
341
|
+
readonly name: "setStockGraduationOptIn";
|
|
342
|
+
readonly inputs: readonly [{
|
|
343
|
+
readonly name: "collection";
|
|
344
|
+
readonly type: "address";
|
|
345
|
+
}, {
|
|
346
|
+
readonly name: "paramsHash";
|
|
347
|
+
readonly type: "bytes32";
|
|
348
|
+
}];
|
|
349
|
+
readonly outputs: readonly [];
|
|
350
|
+
readonly stateMutability: "nonpayable";
|
|
351
|
+
}, {
|
|
352
|
+
readonly type: "function";
|
|
353
|
+
readonly name: "stockGraduationOptIn";
|
|
354
|
+
readonly inputs: readonly [{
|
|
355
|
+
readonly name: "";
|
|
356
|
+
readonly type: "address";
|
|
357
|
+
}];
|
|
358
|
+
readonly outputs: readonly [{
|
|
359
|
+
readonly name: "";
|
|
360
|
+
readonly type: "bytes32";
|
|
361
|
+
}];
|
|
362
|
+
readonly stateMutability: "view";
|
|
363
|
+
}, {
|
|
364
|
+
readonly type: "function";
|
|
365
|
+
readonly name: "relayParamsHash";
|
|
366
|
+
readonly inputs: readonly [{
|
|
367
|
+
readonly name: "collection";
|
|
368
|
+
readonly type: "address";
|
|
369
|
+
}, {
|
|
370
|
+
readonly name: "name";
|
|
371
|
+
readonly type: "string";
|
|
372
|
+
}, {
|
|
373
|
+
readonly name: "symbol";
|
|
374
|
+
readonly type: "string";
|
|
375
|
+
}, {
|
|
376
|
+
readonly name: "quote";
|
|
377
|
+
readonly type: "address";
|
|
378
|
+
}, {
|
|
379
|
+
readonly name: "holdersBps";
|
|
380
|
+
readonly type: "uint16";
|
|
381
|
+
}];
|
|
382
|
+
readonly outputs: readonly [{
|
|
383
|
+
readonly name: "";
|
|
384
|
+
readonly type: "bytes32";
|
|
385
|
+
}];
|
|
386
|
+
readonly stateMutability: "view";
|
|
387
|
+
}, {
|
|
388
|
+
readonly type: "function";
|
|
389
|
+
readonly name: "distributorOf";
|
|
390
|
+
readonly inputs: readonly [{
|
|
391
|
+
readonly name: "";
|
|
392
|
+
readonly type: "address";
|
|
393
|
+
}];
|
|
394
|
+
readonly outputs: readonly [{
|
|
395
|
+
readonly name: "";
|
|
396
|
+
readonly type: "address";
|
|
397
|
+
}];
|
|
398
|
+
readonly stateMutability: "view";
|
|
399
|
+
}, {
|
|
400
|
+
readonly type: "function";
|
|
401
|
+
readonly name: "nftFeeDistributorFactory";
|
|
402
|
+
readonly inputs: readonly [];
|
|
403
|
+
readonly outputs: readonly [{
|
|
404
|
+
readonly name: "";
|
|
405
|
+
readonly type: "address";
|
|
406
|
+
}];
|
|
407
|
+
readonly stateMutability: "view";
|
|
408
|
+
}, {
|
|
409
|
+
readonly type: "event";
|
|
410
|
+
readonly name: "NftGraduatedToStock";
|
|
411
|
+
readonly inputs: readonly [{
|
|
412
|
+
readonly name: "collection";
|
|
413
|
+
readonly type: "address";
|
|
414
|
+
readonly indexed: true;
|
|
415
|
+
}, {
|
|
416
|
+
readonly name: "token";
|
|
417
|
+
readonly type: "address";
|
|
418
|
+
readonly indexed: true;
|
|
419
|
+
}, {
|
|
420
|
+
readonly name: "quote";
|
|
421
|
+
readonly type: "address";
|
|
422
|
+
readonly indexed: true;
|
|
423
|
+
}, {
|
|
424
|
+
readonly name: "liquidityVault";
|
|
425
|
+
readonly type: "address";
|
|
426
|
+
readonly indexed: false;
|
|
427
|
+
}, {
|
|
428
|
+
readonly name: "burnVault";
|
|
429
|
+
readonly type: "address";
|
|
430
|
+
readonly indexed: false;
|
|
431
|
+
}];
|
|
432
|
+
readonly anonymous: false;
|
|
433
|
+
}, {
|
|
434
|
+
readonly type: "event";
|
|
435
|
+
readonly name: "HolderFeesCommitted";
|
|
436
|
+
readonly inputs: readonly [{
|
|
437
|
+
readonly name: "collection";
|
|
438
|
+
readonly type: "address";
|
|
439
|
+
readonly indexed: true;
|
|
440
|
+
}, {
|
|
441
|
+
readonly name: "token";
|
|
442
|
+
readonly type: "address";
|
|
443
|
+
readonly indexed: true;
|
|
444
|
+
}, {
|
|
445
|
+
readonly name: "distributor";
|
|
446
|
+
readonly type: "address";
|
|
447
|
+
readonly indexed: true;
|
|
448
|
+
}, {
|
|
449
|
+
readonly name: "poolId";
|
|
450
|
+
readonly type: "bytes32";
|
|
451
|
+
readonly indexed: false;
|
|
452
|
+
}, {
|
|
453
|
+
readonly name: "holderShareBps";
|
|
454
|
+
readonly type: "uint16";
|
|
455
|
+
readonly indexed: false;
|
|
456
|
+
}];
|
|
457
|
+
readonly anonymous: false;
|
|
458
|
+
}, {
|
|
459
|
+
readonly type: "event";
|
|
460
|
+
readonly name: "DevBought";
|
|
461
|
+
readonly inputs: readonly [{
|
|
462
|
+
readonly name: "token";
|
|
463
|
+
readonly type: "address";
|
|
464
|
+
readonly indexed: true;
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "buyer";
|
|
467
|
+
readonly type: "address";
|
|
468
|
+
readonly indexed: true;
|
|
469
|
+
}, {
|
|
470
|
+
readonly name: "quoteIn";
|
|
471
|
+
readonly type: "uint256";
|
|
472
|
+
readonly indexed: false;
|
|
473
|
+
}, {
|
|
474
|
+
readonly name: "tokensOut";
|
|
475
|
+
readonly type: "uint256";
|
|
476
|
+
readonly indexed: false;
|
|
477
|
+
}];
|
|
478
|
+
readonly anonymous: false;
|
|
479
|
+
}, {
|
|
480
|
+
readonly type: "event";
|
|
481
|
+
readonly name: "StockGraduationOptInSet";
|
|
482
|
+
readonly inputs: readonly [{
|
|
483
|
+
readonly name: "collection";
|
|
484
|
+
readonly type: "address";
|
|
485
|
+
readonly indexed: true;
|
|
486
|
+
}, {
|
|
487
|
+
readonly name: "collectionOwner";
|
|
488
|
+
readonly type: "address";
|
|
489
|
+
readonly indexed: true;
|
|
490
|
+
}, {
|
|
491
|
+
readonly name: "paramsHash";
|
|
492
|
+
readonly type: "bytes32";
|
|
493
|
+
readonly indexed: false;
|
|
494
|
+
}];
|
|
495
|
+
readonly anonymous: false;
|
|
496
|
+
}];
|
|
497
|
+
readonly functionName: "graduateToStockWithTerms";
|
|
498
|
+
readonly args: readonly [{
|
|
499
|
+
readonly collection: `0x${string}`;
|
|
500
|
+
readonly name: string;
|
|
501
|
+
readonly symbol: string;
|
|
502
|
+
readonly quote: `0x${string}`;
|
|
503
|
+
readonly creatorTaxBps: number;
|
|
504
|
+
readonly excessToCreatorBps: number;
|
|
505
|
+
readonly holderShareBps: number;
|
|
506
|
+
readonly devBuyQuoteIn: bigint;
|
|
507
|
+
readonly minTokensOut: bigint;
|
|
508
|
+
}];
|
|
509
|
+
readonly value: bigint;
|
|
510
|
+
};
|
|
511
|
+
/**
|
|
512
|
+
* Request for `graduateAndBuy(input, holderShareBps, devBuyValue, minTokensOut)` — the ONLY WETH-path
|
|
513
|
+
* entry since 94d6564 (`graduate` was removed). A plain launch is `holderShareBps = 0, devBuyValue = 0,
|
|
514
|
+
* minTokensOut = 0`. `value` must cover the orchestrator's `launchFee()` (read it live —
|
|
515
|
+
* `readOrchestratorLaunchFee` in `@peddles/sdk/launch`) `+ input.factoryValue + devBuyValue`; a relay of
|
|
516
|
+
* a committed graduation carries exactly `launchFee()` (`RELAY_FEE_ONLY`).
|
|
517
|
+
*
|
|
518
|
+
* `input` is the orchestrator's `GraduateInput` tuple, built by the launch kit exactly as for any V20
|
|
519
|
+
* launch; this helper only positions the Art->DEX arguments around it.
|
|
520
|
+
*/
|
|
521
|
+
export declare function graduateAndBuyRequest(p: {
|
|
522
|
+
readonly orchestrator: Address;
|
|
523
|
+
readonly input: unknown;
|
|
524
|
+
readonly holderShareBps: number;
|
|
525
|
+
readonly devBuyValue: bigint;
|
|
526
|
+
readonly minTokensOut: bigint;
|
|
527
|
+
readonly value: bigint;
|
|
528
|
+
}): {
|
|
529
|
+
readonly address: `0x${string}`;
|
|
530
|
+
readonly abi: readonly [{
|
|
531
|
+
readonly type: "function";
|
|
532
|
+
readonly name: "graduateAndBuy";
|
|
533
|
+
readonly inputs: readonly [{
|
|
534
|
+
readonly name: "input";
|
|
535
|
+
readonly type: "tuple";
|
|
536
|
+
readonly components: readonly [{
|
|
537
|
+
readonly name: "collection";
|
|
538
|
+
readonly type: "address";
|
|
539
|
+
}, {
|
|
540
|
+
readonly name: "variant";
|
|
541
|
+
readonly type: "uint8";
|
|
542
|
+
}, {
|
|
543
|
+
readonly name: "salt";
|
|
544
|
+
readonly type: "bytes32";
|
|
545
|
+
}, {
|
|
546
|
+
readonly name: "params";
|
|
547
|
+
readonly type: "bytes";
|
|
548
|
+
}, {
|
|
549
|
+
readonly name: "initCalls";
|
|
550
|
+
readonly type: "bytes[]";
|
|
551
|
+
}, {
|
|
552
|
+
readonly name: "vaultInput";
|
|
553
|
+
readonly type: "tuple";
|
|
554
|
+
readonly components: readonly [{
|
|
555
|
+
readonly name: "token";
|
|
556
|
+
readonly type: "address";
|
|
557
|
+
}, {
|
|
558
|
+
readonly name: "creator";
|
|
559
|
+
readonly type: "address";
|
|
560
|
+
}, {
|
|
561
|
+
readonly name: "liquidityBps";
|
|
562
|
+
readonly type: "uint16";
|
|
563
|
+
}, {
|
|
564
|
+
readonly name: "airdropBps";
|
|
565
|
+
readonly type: "uint16";
|
|
566
|
+
}, {
|
|
567
|
+
readonly name: "vestingBps";
|
|
568
|
+
readonly type: "uint16";
|
|
569
|
+
}, {
|
|
570
|
+
readonly name: "burnBps";
|
|
571
|
+
readonly type: "uint16";
|
|
572
|
+
}, {
|
|
573
|
+
readonly name: "vaultBps";
|
|
574
|
+
readonly type: "uint16";
|
|
575
|
+
}, {
|
|
576
|
+
readonly name: "clogBps";
|
|
577
|
+
readonly type: "uint16";
|
|
578
|
+
}, {
|
|
579
|
+
readonly name: "airdropEnabled";
|
|
580
|
+
readonly type: "bool";
|
|
581
|
+
}, {
|
|
582
|
+
readonly name: "liquidityAmount";
|
|
583
|
+
readonly type: "uint256";
|
|
584
|
+
}, {
|
|
585
|
+
readonly name: "airdropAmount";
|
|
586
|
+
readonly type: "uint256";
|
|
587
|
+
}, {
|
|
588
|
+
readonly name: "vestingAmount";
|
|
589
|
+
readonly type: "uint256";
|
|
590
|
+
}, {
|
|
591
|
+
readonly name: "burnAmount";
|
|
592
|
+
readonly type: "uint256";
|
|
593
|
+
}, {
|
|
594
|
+
readonly name: "vestingStart";
|
|
595
|
+
readonly type: "uint64";
|
|
596
|
+
}, {
|
|
597
|
+
readonly name: "vestingCliff";
|
|
598
|
+
readonly type: "uint64";
|
|
599
|
+
}, {
|
|
600
|
+
readonly name: "vestingDuration";
|
|
601
|
+
readonly type: "uint64";
|
|
602
|
+
}, {
|
|
603
|
+
readonly name: "airdropStartsAt";
|
|
604
|
+
readonly type: "uint64";
|
|
605
|
+
}, {
|
|
606
|
+
readonly name: "airdropEpochLength";
|
|
607
|
+
readonly type: "uint32";
|
|
608
|
+
}, {
|
|
609
|
+
readonly name: "airdropEpochCount";
|
|
610
|
+
readonly type: "uint16";
|
|
611
|
+
}, {
|
|
612
|
+
readonly name: "burnStartsAt";
|
|
613
|
+
readonly type: "uint64";
|
|
614
|
+
}, {
|
|
615
|
+
readonly name: "burnEpochLength";
|
|
616
|
+
readonly type: "uint32";
|
|
617
|
+
}, {
|
|
618
|
+
readonly name: "firstBurnBps";
|
|
619
|
+
readonly type: "uint16";
|
|
620
|
+
}, {
|
|
621
|
+
readonly name: "minVoteBps";
|
|
622
|
+
readonly type: "uint16";
|
|
623
|
+
}, {
|
|
624
|
+
readonly name: "maxVoteBps";
|
|
625
|
+
readonly type: "uint16";
|
|
626
|
+
}, {
|
|
627
|
+
readonly name: "defaultVoteBps";
|
|
628
|
+
readonly type: "uint16";
|
|
629
|
+
}, {
|
|
630
|
+
readonly name: "quoteToken";
|
|
631
|
+
readonly type: "address";
|
|
632
|
+
}, {
|
|
633
|
+
readonly name: "poolManager";
|
|
634
|
+
readonly type: "address";
|
|
635
|
+
}, {
|
|
636
|
+
readonly name: "positionManager";
|
|
637
|
+
readonly type: "address";
|
|
638
|
+
}, {
|
|
639
|
+
readonly name: "hook";
|
|
640
|
+
readonly type: "address";
|
|
641
|
+
}, {
|
|
642
|
+
readonly name: "liquidityManager";
|
|
643
|
+
readonly type: "address";
|
|
644
|
+
}, {
|
|
645
|
+
readonly name: "airdropPublisher";
|
|
646
|
+
readonly type: "address";
|
|
647
|
+
}, {
|
|
648
|
+
readonly name: "fee";
|
|
649
|
+
readonly type: "uint24";
|
|
650
|
+
}, {
|
|
651
|
+
readonly name: "tickSpacing";
|
|
652
|
+
readonly type: "int24";
|
|
653
|
+
}];
|
|
654
|
+
}, {
|
|
655
|
+
readonly name: "creatorTaxBps";
|
|
656
|
+
readonly type: "uint16";
|
|
657
|
+
}, {
|
|
658
|
+
readonly name: "excessToCreatorBps";
|
|
659
|
+
readonly type: "uint16";
|
|
660
|
+
}, {
|
|
661
|
+
readonly name: "factoryValue";
|
|
662
|
+
readonly type: "uint256";
|
|
663
|
+
}, {
|
|
664
|
+
readonly name: "amountPeddles";
|
|
665
|
+
readonly type: "uint256";
|
|
666
|
+
}, {
|
|
667
|
+
readonly name: "sqrtPriceX96";
|
|
668
|
+
readonly type: "uint160";
|
|
669
|
+
}, {
|
|
670
|
+
readonly name: "tickLower";
|
|
671
|
+
readonly type: "int24";
|
|
672
|
+
}, {
|
|
673
|
+
readonly name: "tickUpper";
|
|
674
|
+
readonly type: "int24";
|
|
675
|
+
}, {
|
|
676
|
+
readonly name: "liquidity";
|
|
677
|
+
readonly type: "uint256";
|
|
678
|
+
}];
|
|
679
|
+
}, {
|
|
680
|
+
readonly name: "holderShareBps";
|
|
681
|
+
readonly type: "uint16";
|
|
682
|
+
}, {
|
|
683
|
+
readonly name: "devBuyValue";
|
|
684
|
+
readonly type: "uint256";
|
|
685
|
+
}, {
|
|
686
|
+
readonly name: "minTokensOut";
|
|
687
|
+
readonly type: "uint256";
|
|
688
|
+
}];
|
|
689
|
+
readonly outputs: readonly [{
|
|
690
|
+
readonly name: "token";
|
|
691
|
+
readonly type: "address";
|
|
692
|
+
}, {
|
|
693
|
+
readonly name: "vaults";
|
|
694
|
+
readonly type: "tuple";
|
|
695
|
+
readonly components: readonly [{
|
|
696
|
+
readonly name: "liquidityVault";
|
|
697
|
+
readonly type: "address";
|
|
698
|
+
}, {
|
|
699
|
+
readonly name: "airdropVault";
|
|
700
|
+
readonly type: "address";
|
|
701
|
+
}, {
|
|
702
|
+
readonly name: "vestingVault";
|
|
703
|
+
readonly type: "address";
|
|
704
|
+
}, {
|
|
705
|
+
readonly name: "burnVault";
|
|
706
|
+
readonly type: "address";
|
|
707
|
+
}];
|
|
708
|
+
}, {
|
|
709
|
+
readonly name: "poolId";
|
|
710
|
+
readonly type: "bytes32";
|
|
711
|
+
}, {
|
|
712
|
+
readonly name: "positionId";
|
|
713
|
+
readonly type: "uint256";
|
|
714
|
+
}, {
|
|
715
|
+
readonly name: "tokensOut";
|
|
716
|
+
readonly type: "uint256";
|
|
717
|
+
}];
|
|
718
|
+
readonly stateMutability: "payable";
|
|
719
|
+
}, {
|
|
720
|
+
readonly type: "function";
|
|
721
|
+
readonly name: "nftFeeDistributorFactory";
|
|
722
|
+
readonly inputs: readonly [];
|
|
723
|
+
readonly outputs: readonly [{
|
|
724
|
+
readonly name: "";
|
|
725
|
+
readonly type: "address";
|
|
726
|
+
}];
|
|
727
|
+
readonly stateMutability: "view";
|
|
728
|
+
}, {
|
|
729
|
+
readonly type: "function";
|
|
730
|
+
readonly name: "launchFee";
|
|
731
|
+
readonly inputs: readonly [];
|
|
732
|
+
readonly outputs: readonly [{
|
|
733
|
+
readonly name: "";
|
|
734
|
+
readonly type: "uint256";
|
|
735
|
+
}];
|
|
736
|
+
readonly stateMutability: "view";
|
|
737
|
+
}, {
|
|
738
|
+
readonly type: "function";
|
|
739
|
+
readonly name: "maxLaunchFee";
|
|
740
|
+
readonly inputs: readonly [];
|
|
741
|
+
readonly outputs: readonly [{
|
|
742
|
+
readonly name: "";
|
|
743
|
+
readonly type: "uint256";
|
|
744
|
+
}];
|
|
745
|
+
readonly stateMutability: "view";
|
|
746
|
+
}, {
|
|
747
|
+
readonly type: "function";
|
|
748
|
+
readonly name: "launchFeeTreasury";
|
|
749
|
+
readonly inputs: readonly [];
|
|
750
|
+
readonly outputs: readonly [{
|
|
751
|
+
readonly name: "";
|
|
752
|
+
readonly type: "address";
|
|
753
|
+
}];
|
|
754
|
+
readonly stateMutability: "view";
|
|
755
|
+
}, {
|
|
756
|
+
readonly type: "function";
|
|
757
|
+
readonly name: "setLaunchFee";
|
|
758
|
+
readonly inputs: readonly [{
|
|
759
|
+
readonly name: "next";
|
|
760
|
+
readonly type: "uint256";
|
|
761
|
+
}];
|
|
762
|
+
readonly outputs: readonly [];
|
|
763
|
+
readonly stateMutability: "nonpayable";
|
|
764
|
+
}, {
|
|
765
|
+
readonly type: "event";
|
|
766
|
+
readonly name: "NFTBondingGraduatedV20";
|
|
767
|
+
readonly inputs: readonly [{
|
|
768
|
+
readonly name: "collection";
|
|
769
|
+
readonly type: "address";
|
|
770
|
+
readonly indexed: true;
|
|
771
|
+
}, {
|
|
772
|
+
readonly name: "creator";
|
|
773
|
+
readonly type: "address";
|
|
774
|
+
readonly indexed: true;
|
|
775
|
+
}, {
|
|
776
|
+
readonly name: "token";
|
|
777
|
+
readonly type: "address";
|
|
778
|
+
readonly indexed: true;
|
|
779
|
+
}, {
|
|
780
|
+
readonly name: "liquidityVault";
|
|
781
|
+
readonly type: "address";
|
|
782
|
+
readonly indexed: false;
|
|
783
|
+
}, {
|
|
784
|
+
readonly name: "airdropVault";
|
|
785
|
+
readonly type: "address";
|
|
786
|
+
readonly indexed: false;
|
|
787
|
+
}, {
|
|
788
|
+
readonly name: "vestingVault";
|
|
789
|
+
readonly type: "address";
|
|
790
|
+
readonly indexed: false;
|
|
791
|
+
}, {
|
|
792
|
+
readonly name: "burnVault";
|
|
793
|
+
readonly type: "address";
|
|
794
|
+
readonly indexed: false;
|
|
795
|
+
}, {
|
|
796
|
+
readonly name: "creatorTaxBps";
|
|
797
|
+
readonly type: "uint16";
|
|
798
|
+
readonly indexed: false;
|
|
799
|
+
}, {
|
|
800
|
+
readonly name: "excessToCreatorBps";
|
|
801
|
+
readonly type: "uint16";
|
|
802
|
+
readonly indexed: false;
|
|
803
|
+
}, {
|
|
804
|
+
readonly name: "poolId";
|
|
805
|
+
readonly type: "bytes32";
|
|
806
|
+
readonly indexed: false;
|
|
807
|
+
}, {
|
|
808
|
+
readonly name: "positionId";
|
|
809
|
+
readonly type: "uint256";
|
|
810
|
+
readonly indexed: false;
|
|
811
|
+
}];
|
|
812
|
+
readonly anonymous: false;
|
|
813
|
+
}, {
|
|
814
|
+
readonly type: "event";
|
|
815
|
+
readonly name: "HolderFeesCommitted";
|
|
816
|
+
readonly inputs: readonly [{
|
|
817
|
+
readonly name: "collection";
|
|
818
|
+
readonly type: "address";
|
|
819
|
+
readonly indexed: true;
|
|
820
|
+
}, {
|
|
821
|
+
readonly name: "token";
|
|
822
|
+
readonly type: "address";
|
|
823
|
+
readonly indexed: true;
|
|
824
|
+
}, {
|
|
825
|
+
readonly name: "distributor";
|
|
826
|
+
readonly type: "address";
|
|
827
|
+
readonly indexed: true;
|
|
828
|
+
}, {
|
|
829
|
+
readonly name: "poolId";
|
|
830
|
+
readonly type: "bytes32";
|
|
831
|
+
readonly indexed: false;
|
|
832
|
+
}, {
|
|
833
|
+
readonly name: "holderShareBps";
|
|
834
|
+
readonly type: "uint16";
|
|
835
|
+
readonly indexed: false;
|
|
836
|
+
}];
|
|
837
|
+
readonly anonymous: false;
|
|
838
|
+
}, {
|
|
839
|
+
readonly type: "event";
|
|
840
|
+
readonly name: "DevBought";
|
|
841
|
+
readonly inputs: readonly [{
|
|
842
|
+
readonly name: "token";
|
|
843
|
+
readonly type: "address";
|
|
844
|
+
readonly indexed: true;
|
|
845
|
+
}, {
|
|
846
|
+
readonly name: "buyer";
|
|
847
|
+
readonly type: "address";
|
|
848
|
+
readonly indexed: true;
|
|
849
|
+
}, {
|
|
850
|
+
readonly name: "ethIn";
|
|
851
|
+
readonly type: "uint256";
|
|
852
|
+
readonly indexed: false;
|
|
853
|
+
}, {
|
|
854
|
+
readonly name: "tokensOut";
|
|
855
|
+
readonly type: "uint256";
|
|
856
|
+
readonly indexed: false;
|
|
857
|
+
}];
|
|
858
|
+
readonly anonymous: false;
|
|
859
|
+
}, {
|
|
860
|
+
readonly type: "event";
|
|
861
|
+
readonly name: "LaunchFeePaid";
|
|
862
|
+
readonly inputs: readonly [{
|
|
863
|
+
readonly name: "payer";
|
|
864
|
+
readonly type: "address";
|
|
865
|
+
readonly indexed: true;
|
|
866
|
+
}, {
|
|
867
|
+
readonly name: "amount";
|
|
868
|
+
readonly type: "uint256";
|
|
869
|
+
readonly indexed: false;
|
|
870
|
+
}];
|
|
871
|
+
readonly anonymous: false;
|
|
872
|
+
}, {
|
|
873
|
+
readonly type: "event";
|
|
874
|
+
readonly name: "LaunchFeeUpdated";
|
|
875
|
+
readonly inputs: readonly [{
|
|
876
|
+
readonly name: "launchFee";
|
|
877
|
+
readonly type: "uint256";
|
|
878
|
+
readonly indexed: false;
|
|
879
|
+
}];
|
|
880
|
+
readonly anonymous: false;
|
|
881
|
+
}];
|
|
882
|
+
readonly functionName: "graduateAndBuy";
|
|
883
|
+
readonly args: readonly [unknown, number, bigint, bigint];
|
|
884
|
+
readonly value: bigint;
|
|
885
|
+
};
|
|
886
|
+
/** The canonical distributor address for `collection` (CREATE2; exists or not). */
|
|
887
|
+
export declare function predictDistributor(client: ReadClient, distributorFactory: Address, collection: Address): Promise<Address>;
|
|
888
|
+
export interface HolderCommitment {
|
|
889
|
+
/** True when the collection is bound to its canonical Peddles distributor. */
|
|
890
|
+
readonly committed: boolean;
|
|
891
|
+
/** The bound `holderRewards` (zero = none). */
|
|
892
|
+
readonly holderRewards: Address;
|
|
893
|
+
/** True when the Peddles NFT factory made this collection. */
|
|
894
|
+
readonly peddlesCollection: boolean;
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Whether a collection's creator streams are committed to its holders — the same three reads the
|
|
898
|
+
* orchestrators make: `holderRewards()`, `factory.isDistributor(d)`, `d.collection() == collection`.
|
|
899
|
+
* Also reports factory provenance, which the orchestrators do NOT check.
|
|
900
|
+
*/
|
|
901
|
+
export declare function getHolderCommitment(client: ReadClient, a: {
|
|
902
|
+
nftFactory: Address;
|
|
903
|
+
distributorFactory: Address;
|
|
904
|
+
collection: Address;
|
|
905
|
+
}): Promise<HolderCommitment>;
|
|
906
|
+
export interface DistributorState {
|
|
907
|
+
readonly distributor: Address;
|
|
908
|
+
readonly collection: Address;
|
|
909
|
+
/** Zero until launch. */
|
|
910
|
+
readonly quote: Address;
|
|
911
|
+
readonly token: Address;
|
|
912
|
+
readonly holderShareBps: number;
|
|
913
|
+
readonly assetsInitialized: boolean;
|
|
914
|
+
readonly creatorShareOwed: {
|
|
915
|
+
readonly quote: bigint;
|
|
916
|
+
readonly token: bigint;
|
|
917
|
+
};
|
|
918
|
+
readonly owedToHolders: {
|
|
919
|
+
readonly quote: bigint;
|
|
920
|
+
readonly token: bigint;
|
|
921
|
+
};
|
|
922
|
+
/** False while minted pieces are unmirrored — holder distribution waits until they are synced. */
|
|
923
|
+
readonly mirrorComplete: boolean;
|
|
924
|
+
}
|
|
925
|
+
export declare function getDistributorState(client: ReadClient, distributor: Address): Promise<DistributorState>;
|
|
926
|
+
export interface HolderClaimable {
|
|
927
|
+
readonly quote: bigint;
|
|
928
|
+
readonly token: bigint;
|
|
929
|
+
/** Shares the distributor has mirrored for the holder. */
|
|
930
|
+
readonly shares: bigint;
|
|
931
|
+
/** Pieces the holder holds on the collection. */
|
|
932
|
+
readonly pieces: bigint;
|
|
933
|
+
/** `shares != pieces`: claims under-accrue until `syncAccount(holder)` runs. */
|
|
934
|
+
readonly needsSync: boolean;
|
|
935
|
+
}
|
|
936
|
+
export declare function holderClaimable(client: ReadClient, distributor: Address, collection: Address, holder: Address): Promise<HolderClaimable>;
|
|
937
|
+
//# sourceMappingURL=artDex.d.ts.map
|