@black-market/sdk 0.1.0 → 0.4.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/README.md +92 -20
- package/dist/abyss.d.ts +4 -2748
- package/dist/abyss.d.ts.map +1 -1
- package/dist/abyss.js +3 -1029
- package/dist/abyss.js.map +1 -1
- package/dist/addresses.d.ts +3 -7
- package/dist/addresses.d.ts.map +1 -1
- package/dist/addresses.js +6 -21
- package/dist/addresses.js.map +1 -1
- package/dist/auction.d.ts +2 -2
- package/dist/auction.d.ts.map +1 -1
- package/dist/auction.js +2 -2
- package/dist/auction.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/launch-api.d.ts +151 -0
- package/dist/launch-api.d.ts.map +1 -0
- package/dist/launch-api.js +117 -0
- package/dist/launch-api.js.map +1 -0
- package/dist/launch.d.ts +23 -185
- package/dist/launch.d.ts.map +1 -1
- package/dist/launch.js +35 -272
- package/dist/launch.js.map +1 -1
- package/dist/lifecycle/abi.d.ts +6391 -0
- package/dist/lifecycle/abi.d.ts.map +1 -0
- package/dist/lifecycle/abi.js +335 -0
- package/dist/lifecycle/abi.js.map +1 -0
- package/dist/lifecycle/authors.d.ts +133 -0
- package/dist/lifecycle/authors.d.ts.map +1 -0
- package/dist/lifecycle/authors.js +217 -0
- package/dist/lifecycle/authors.js.map +1 -0
- package/dist/lifecycle/fork.d.ts +15 -0
- package/dist/lifecycle/fork.d.ts.map +1 -0
- package/dist/lifecycle/fork.js +36 -0
- package/dist/lifecycle/fork.js.map +1 -0
- package/dist/lifecycle/index.d.ts +10 -0
- package/dist/lifecycle/index.d.ts.map +1 -0
- package/dist/lifecycle/index.js +10 -0
- package/dist/lifecycle/index.js.map +1 -0
- package/dist/lifecycle/markets.d.ts +349 -0
- package/dist/lifecycle/markets.d.ts.map +1 -0
- package/dist/lifecycle/markets.js +186 -0
- package/dist/lifecycle/markets.js.map +1 -0
- package/dist/lifecycle/planner.d.ts +20 -0
- package/dist/lifecycle/planner.d.ts.map +1 -0
- package/dist/lifecycle/planner.js +481 -0
- package/dist/lifecycle/planner.js.map +1 -0
- package/dist/lifecycle/progress.d.ts +43 -0
- package/dist/lifecycle/progress.d.ts.map +1 -0
- package/dist/lifecycle/progress.js +449 -0
- package/dist/lifecycle/progress.js.map +1 -0
- package/dist/lifecycle/rpc.d.ts +17 -0
- package/dist/lifecycle/rpc.d.ts.map +1 -0
- package/dist/lifecycle/rpc.js +100 -0
- package/dist/lifecycle/rpc.js.map +1 -0
- package/dist/lifecycle/schema.d.ts +1068 -0
- package/dist/lifecycle/schema.d.ts.map +1 -0
- package/dist/lifecycle/schema.js +335 -0
- package/dist/lifecycle/schema.js.map +1 -0
- package/dist/lifecycle/simulation.d.ts +3 -0
- package/dist/lifecycle/simulation.d.ts.map +1 -0
- package/dist/lifecycle/simulation.js +393 -0
- package/dist/lifecycle/simulation.js.map +1 -0
- package/dist/lifecycle/types.d.ts +273 -0
- package/dist/lifecycle/types.d.ts.map +1 -0
- package/dist/lifecycle/types.js +11 -0
- package/dist/lifecycle/types.js.map +1 -0
- package/docs/launch-lifecycle.md +243 -0
- package/package.json +12 -3
- package/src/abyss.ts +3 -1059
- package/src/addresses.ts +9 -26
- package/src/auction.ts +2 -2
- package/src/index.ts +2 -0
- package/src/launch-api.ts +110 -0
- package/src/launch.ts +43 -411
- package/src/lifecycle/abi.ts +343 -0
- package/src/lifecycle/authors.ts +203 -0
- package/src/lifecycle/fork.ts +36 -0
- package/src/lifecycle/index.ts +9 -0
- package/src/lifecycle/markets.ts +205 -0
- package/src/lifecycle/planner.ts +396 -0
- package/src/lifecycle/progress.ts +378 -0
- package/src/lifecycle/rpc.ts +88 -0
- package/src/lifecycle/schema.ts +387 -0
- package/src/lifecycle/simulation.ts +329 -0
- package/src/lifecycle/types.ts +132 -0
|
@@ -0,0 +1,1068 @@
|
|
|
1
|
+
import { type Address, type Hex } from "viem";
|
|
2
|
+
/** Current lifecycle wire schema; deployment and admission are always explicit. */
|
|
3
|
+
export declare enum LifecycleTokenKind {
|
|
4
|
+
ERC20 = 0,
|
|
5
|
+
ERC404 = 1
|
|
6
|
+
}
|
|
7
|
+
export declare enum LifecycleRewardMode {
|
|
8
|
+
None = 0,
|
|
9
|
+
Staking = 1,
|
|
10
|
+
Dividends = 2
|
|
11
|
+
}
|
|
12
|
+
export declare enum LifecycleFundingKind {
|
|
13
|
+
ERC20 = 0,
|
|
14
|
+
NativeWrap = 1,
|
|
15
|
+
Swap = 2
|
|
16
|
+
}
|
|
17
|
+
export declare enum LifecycleMode {
|
|
18
|
+
Atomic = 0,
|
|
19
|
+
Staged = 1
|
|
20
|
+
}
|
|
21
|
+
export declare enum LifecyclePhase {
|
|
22
|
+
None = 0,
|
|
23
|
+
Preparing = 1,
|
|
24
|
+
Ready = 2,
|
|
25
|
+
Activating = 3,
|
|
26
|
+
Active = 4,
|
|
27
|
+
Cancelled = 5
|
|
28
|
+
}
|
|
29
|
+
export declare enum LifecycleVenue {
|
|
30
|
+
UniswapV4 = 0,
|
|
31
|
+
Abyss = 1
|
|
32
|
+
}
|
|
33
|
+
export type LaunchExecutionMode = "atomic" | "staged";
|
|
34
|
+
export type TokenConfigV1 = {
|
|
35
|
+
kind: LifecycleTokenKind;
|
|
36
|
+
rewardMode: LifecycleRewardMode;
|
|
37
|
+
name: string;
|
|
38
|
+
symbol: string;
|
|
39
|
+
supply: bigint;
|
|
40
|
+
nftUnit: bigint;
|
|
41
|
+
metadataURI: string;
|
|
42
|
+
salt: Hex;
|
|
43
|
+
inventoryRecipient: Address;
|
|
44
|
+
burnOnCancel: boolean;
|
|
45
|
+
};
|
|
46
|
+
export type AssetFundingV1 = {
|
|
47
|
+
asset: Address;
|
|
48
|
+
amount: bigint;
|
|
49
|
+
kind: LifecycleFundingKind;
|
|
50
|
+
inputAsset: Address;
|
|
51
|
+
inputAmount: bigint;
|
|
52
|
+
target: Address;
|
|
53
|
+
data: Hex;
|
|
54
|
+
};
|
|
55
|
+
export type LifecycleFeeAssetPolicyV2 = {
|
|
56
|
+
asset: Address;
|
|
57
|
+
ownerBps: number;
|
|
58
|
+
rewardsBps: number;
|
|
59
|
+
burnBps: number;
|
|
60
|
+
};
|
|
61
|
+
export type MarketConfigV1 = {
|
|
62
|
+
adapterId: Hex;
|
|
63
|
+
profileId: Hex;
|
|
64
|
+
quoteAsset: Address;
|
|
65
|
+
tokenBudget: bigint;
|
|
66
|
+
configVersion: number;
|
|
67
|
+
config: Hex;
|
|
68
|
+
};
|
|
69
|
+
export type InitialBuyV1 = {
|
|
70
|
+
marketIndex: number;
|
|
71
|
+
quoteAmountIn: bigint;
|
|
72
|
+
minTokenOut: bigint;
|
|
73
|
+
recipient: Address;
|
|
74
|
+
sqrtPriceLimitX96: bigint;
|
|
75
|
+
};
|
|
76
|
+
export type LaunchPlanV1 = {
|
|
77
|
+
chainId: bigint;
|
|
78
|
+
orchestrator: Address;
|
|
79
|
+
creator: Address;
|
|
80
|
+
nonce: bigint;
|
|
81
|
+
token: TokenConfigV1;
|
|
82
|
+
funding: readonly AssetFundingV1[];
|
|
83
|
+
feeAssets: readonly LifecycleFeeAssetPolicyV2[];
|
|
84
|
+
markets: readonly MarketConfigV1[];
|
|
85
|
+
buys: readonly InitialBuyV1[];
|
|
86
|
+
deadline: bigint;
|
|
87
|
+
executorFeeBps: number;
|
|
88
|
+
};
|
|
89
|
+
export type MarketIdentityV1 = {
|
|
90
|
+
venue: LifecycleVenue;
|
|
91
|
+
canonicalId: Hex;
|
|
92
|
+
manager: Address;
|
|
93
|
+
factory: Address;
|
|
94
|
+
pool: Address;
|
|
95
|
+
poolId: Hex;
|
|
96
|
+
profileId: Hex;
|
|
97
|
+
currency0: Address;
|
|
98
|
+
currency1: Address;
|
|
99
|
+
fee: number;
|
|
100
|
+
tickSpacing: number;
|
|
101
|
+
hook: Address;
|
|
102
|
+
openingSqrtPriceX96: bigint;
|
|
103
|
+
};
|
|
104
|
+
export type PreparedMarketV1 = {
|
|
105
|
+
identity: MarketIdentityV1;
|
|
106
|
+
feeSource: Address;
|
|
107
|
+
custody: Address;
|
|
108
|
+
mintExecutor: Address;
|
|
109
|
+
buyExecutor: Address;
|
|
110
|
+
exclusions: readonly Address[];
|
|
111
|
+
positionCount: number;
|
|
112
|
+
};
|
|
113
|
+
export type PositionIdentityV1 = {
|
|
114
|
+
canonicalId: Hex;
|
|
115
|
+
marketId: Hex;
|
|
116
|
+
manager: Address;
|
|
117
|
+
custody: Address;
|
|
118
|
+
tokenId: bigint;
|
|
119
|
+
tickLower: number;
|
|
120
|
+
tickUpper: number;
|
|
121
|
+
salt: Hex;
|
|
122
|
+
liquidity: bigint;
|
|
123
|
+
};
|
|
124
|
+
export type LaunchExecutionContextV1 = {
|
|
125
|
+
launchId: Hex;
|
|
126
|
+
marketIndex: number;
|
|
127
|
+
operation: number;
|
|
128
|
+
adapter: Address;
|
|
129
|
+
executor: Address;
|
|
130
|
+
token: Address;
|
|
131
|
+
quoteAsset: Address;
|
|
132
|
+
manager: Address;
|
|
133
|
+
custody: Address;
|
|
134
|
+
recipient: Address;
|
|
135
|
+
amount: bigint;
|
|
136
|
+
};
|
|
137
|
+
export type LaunchProgressV1 = {
|
|
138
|
+
launchId: Hex;
|
|
139
|
+
planHash: Hex;
|
|
140
|
+
creator: Address;
|
|
141
|
+
nonce: bigint;
|
|
142
|
+
mode: LifecycleMode;
|
|
143
|
+
phase: LifecyclePhase;
|
|
144
|
+
token: Address;
|
|
145
|
+
feeHub: Address;
|
|
146
|
+
rewards: Address;
|
|
147
|
+
preparedMarkets: number;
|
|
148
|
+
marketCount: number;
|
|
149
|
+
buyCount: number;
|
|
150
|
+
positionCount: number;
|
|
151
|
+
deadline: bigint;
|
|
152
|
+
};
|
|
153
|
+
export type LaunchReceiptV1 = {
|
|
154
|
+
launchId: Hex;
|
|
155
|
+
planHash: Hex;
|
|
156
|
+
token: Address;
|
|
157
|
+
feeHub: Address;
|
|
158
|
+
rewards: Address;
|
|
159
|
+
marketCount: number;
|
|
160
|
+
positionCount: number;
|
|
161
|
+
quoteSpent: readonly bigint[];
|
|
162
|
+
tokenOut: readonly bigint[];
|
|
163
|
+
};
|
|
164
|
+
export type AdapterRegistrationV1 = {
|
|
165
|
+
implementation: Address;
|
|
166
|
+
codeHash: Hex;
|
|
167
|
+
capabilities: bigint;
|
|
168
|
+
configVersion: number;
|
|
169
|
+
enabled: boolean;
|
|
170
|
+
};
|
|
171
|
+
export type ProfileRegistrationV1 = {
|
|
172
|
+
adapterId: Hex;
|
|
173
|
+
configSchema: Hex;
|
|
174
|
+
dependencyDigest: Hex;
|
|
175
|
+
venue: Address;
|
|
176
|
+
factory: Address;
|
|
177
|
+
hook: Address;
|
|
178
|
+
capabilities: bigint;
|
|
179
|
+
enabled: boolean;
|
|
180
|
+
};
|
|
181
|
+
export type ProfileTopologyV1 = {
|
|
182
|
+
hookTopology: 0 | 1 | 2;
|
|
183
|
+
configVersion: number;
|
|
184
|
+
hookDeployer: Address;
|
|
185
|
+
hookCreationCodeHash: Hex;
|
|
186
|
+
};
|
|
187
|
+
export type MarketLiveStateV1 = {
|
|
188
|
+
sqrtPriceX96: bigint;
|
|
189
|
+
tick: number;
|
|
190
|
+
liquidity: bigint;
|
|
191
|
+
publicTrading: boolean;
|
|
192
|
+
oracleReadyAt: bigint;
|
|
193
|
+
};
|
|
194
|
+
export type LaunchBoundsV2 = {
|
|
195
|
+
minimumTickSpacing: number;
|
|
196
|
+
maximumTickSpacing: number;
|
|
197
|
+
maximumPositions: number;
|
|
198
|
+
maximumOracleCardinality: number;
|
|
199
|
+
feeModeFlags: number;
|
|
200
|
+
};
|
|
201
|
+
export type LaunchGraphV2 = {
|
|
202
|
+
manager: Address;
|
|
203
|
+
hookRoot: Address;
|
|
204
|
+
oracleFactory: Address;
|
|
205
|
+
locker: Address;
|
|
206
|
+
collectorFactory: Address;
|
|
207
|
+
collectorDeployer: Address;
|
|
208
|
+
hookDeployer: Address;
|
|
209
|
+
coreCodeHash: Hex;
|
|
210
|
+
managerCodeHash: Hex;
|
|
211
|
+
hookRuntimeCodeHash: Hex;
|
|
212
|
+
oracleFactoryCodeHash: Hex;
|
|
213
|
+
lockerCodeHash: Hex;
|
|
214
|
+
collectorFactoryCodeHash: Hex;
|
|
215
|
+
collectorDeployerCodeHash: Hex;
|
|
216
|
+
hookDeployerCodeHash: Hex;
|
|
217
|
+
hookCreationCodeHash: Hex;
|
|
218
|
+
codeChunk0: Address;
|
|
219
|
+
codeChunk0Hash: Hex;
|
|
220
|
+
codeChunk1: Address;
|
|
221
|
+
codeChunk1Hash: Hex;
|
|
222
|
+
sharedHookSalt: Hex;
|
|
223
|
+
};
|
|
224
|
+
export type LaunchEnvelopeV2 = {
|
|
225
|
+
artifactDigest: Hex;
|
|
226
|
+
reviewManifestDigest: Hex;
|
|
227
|
+
configBoundsDigest: Hex;
|
|
228
|
+
termsDigest: Hex;
|
|
229
|
+
topology: 1 | 2;
|
|
230
|
+
configVersion: number;
|
|
231
|
+
economicVersion: number;
|
|
232
|
+
capabilities: bigint;
|
|
233
|
+
flags: bigint;
|
|
234
|
+
callbackFlags: number;
|
|
235
|
+
callbackMask: number;
|
|
236
|
+
protocolTreasury: Address;
|
|
237
|
+
protocolFeeDenominator: number;
|
|
238
|
+
beneficiary: Address;
|
|
239
|
+
maximumDeveloperFeeBps: number;
|
|
240
|
+
bounds: LaunchBoundsV2;
|
|
241
|
+
graph: LaunchGraphV2;
|
|
242
|
+
};
|
|
243
|
+
export type LifecycleDeveloperTerms = {
|
|
244
|
+
adapter: Address;
|
|
245
|
+
beneficiary: Address;
|
|
246
|
+
maximumDeveloperFeeBps: number;
|
|
247
|
+
termsDigest: Hex;
|
|
248
|
+
enabled: boolean;
|
|
249
|
+
};
|
|
250
|
+
export type SourceTermsV3 = {
|
|
251
|
+
adapter: Address;
|
|
252
|
+
profileId: Hex;
|
|
253
|
+
termsDigest: Hex;
|
|
254
|
+
beneficiary: Address;
|
|
255
|
+
maximumDeveloperFeeBps: number;
|
|
256
|
+
developerFeeBps: number;
|
|
257
|
+
};
|
|
258
|
+
export declare const launchBoundsV2Components: readonly [{
|
|
259
|
+
readonly name: "minimumTickSpacing";
|
|
260
|
+
readonly type: "int24";
|
|
261
|
+
}, {
|
|
262
|
+
readonly name: "maximumTickSpacing";
|
|
263
|
+
readonly type: "int24";
|
|
264
|
+
}, {
|
|
265
|
+
readonly name: "maximumPositions";
|
|
266
|
+
readonly type: "uint16";
|
|
267
|
+
}, {
|
|
268
|
+
readonly name: "maximumOracleCardinality";
|
|
269
|
+
readonly type: "uint16";
|
|
270
|
+
}, {
|
|
271
|
+
readonly name: "feeModeFlags";
|
|
272
|
+
readonly type: "uint8";
|
|
273
|
+
}];
|
|
274
|
+
export declare const launchGraphV2Components: readonly [{
|
|
275
|
+
readonly name: "manager";
|
|
276
|
+
readonly type: "address";
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "hookRoot";
|
|
279
|
+
readonly type: "address";
|
|
280
|
+
}, {
|
|
281
|
+
readonly name: "oracleFactory";
|
|
282
|
+
readonly type: "address";
|
|
283
|
+
}, {
|
|
284
|
+
readonly name: "locker";
|
|
285
|
+
readonly type: "address";
|
|
286
|
+
}, {
|
|
287
|
+
readonly name: "collectorFactory";
|
|
288
|
+
readonly type: "address";
|
|
289
|
+
}, {
|
|
290
|
+
readonly name: "collectorDeployer";
|
|
291
|
+
readonly type: "address";
|
|
292
|
+
}, {
|
|
293
|
+
readonly name: "hookDeployer";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
}, {
|
|
296
|
+
readonly name: "coreCodeHash";
|
|
297
|
+
readonly type: "bytes32";
|
|
298
|
+
}, {
|
|
299
|
+
readonly name: "managerCodeHash";
|
|
300
|
+
readonly type: "bytes32";
|
|
301
|
+
}, {
|
|
302
|
+
readonly name: "hookRuntimeCodeHash";
|
|
303
|
+
readonly type: "bytes32";
|
|
304
|
+
}, {
|
|
305
|
+
readonly name: "oracleFactoryCodeHash";
|
|
306
|
+
readonly type: "bytes32";
|
|
307
|
+
}, {
|
|
308
|
+
readonly name: "lockerCodeHash";
|
|
309
|
+
readonly type: "bytes32";
|
|
310
|
+
}, {
|
|
311
|
+
readonly name: "collectorFactoryCodeHash";
|
|
312
|
+
readonly type: "bytes32";
|
|
313
|
+
}, {
|
|
314
|
+
readonly name: "collectorDeployerCodeHash";
|
|
315
|
+
readonly type: "bytes32";
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "hookDeployerCodeHash";
|
|
318
|
+
readonly type: "bytes32";
|
|
319
|
+
}, {
|
|
320
|
+
readonly name: "hookCreationCodeHash";
|
|
321
|
+
readonly type: "bytes32";
|
|
322
|
+
}, {
|
|
323
|
+
readonly name: "codeChunk0";
|
|
324
|
+
readonly type: "address";
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "codeChunk0Hash";
|
|
327
|
+
readonly type: "bytes32";
|
|
328
|
+
}, {
|
|
329
|
+
readonly name: "codeChunk1";
|
|
330
|
+
readonly type: "address";
|
|
331
|
+
}, {
|
|
332
|
+
readonly name: "codeChunk1Hash";
|
|
333
|
+
readonly type: "bytes32";
|
|
334
|
+
}, {
|
|
335
|
+
readonly name: "sharedHookSalt";
|
|
336
|
+
readonly type: "bytes32";
|
|
337
|
+
}];
|
|
338
|
+
export declare const launchEnvelopeV2Components: readonly [{
|
|
339
|
+
readonly name: "artifactDigest";
|
|
340
|
+
readonly type: "bytes32";
|
|
341
|
+
}, {
|
|
342
|
+
readonly name: "reviewManifestDigest";
|
|
343
|
+
readonly type: "bytes32";
|
|
344
|
+
}, {
|
|
345
|
+
readonly name: "configBoundsDigest";
|
|
346
|
+
readonly type: "bytes32";
|
|
347
|
+
}, {
|
|
348
|
+
readonly name: "termsDigest";
|
|
349
|
+
readonly type: "bytes32";
|
|
350
|
+
}, {
|
|
351
|
+
readonly name: "topology";
|
|
352
|
+
readonly type: "uint8";
|
|
353
|
+
}, {
|
|
354
|
+
readonly name: "configVersion";
|
|
355
|
+
readonly type: "uint32";
|
|
356
|
+
}, {
|
|
357
|
+
readonly name: "economicVersion";
|
|
358
|
+
readonly type: "uint32";
|
|
359
|
+
}, {
|
|
360
|
+
readonly name: "capabilities";
|
|
361
|
+
readonly type: "uint64";
|
|
362
|
+
}, {
|
|
363
|
+
readonly name: "flags";
|
|
364
|
+
readonly type: "uint64";
|
|
365
|
+
}, {
|
|
366
|
+
readonly name: "callbackFlags";
|
|
367
|
+
readonly type: "uint16";
|
|
368
|
+
}, {
|
|
369
|
+
readonly name: "callbackMask";
|
|
370
|
+
readonly type: "uint16";
|
|
371
|
+
}, {
|
|
372
|
+
readonly name: "protocolTreasury";
|
|
373
|
+
readonly type: "address";
|
|
374
|
+
}, {
|
|
375
|
+
readonly name: "protocolFeeDenominator";
|
|
376
|
+
readonly type: "uint8";
|
|
377
|
+
}, {
|
|
378
|
+
readonly name: "beneficiary";
|
|
379
|
+
readonly type: "address";
|
|
380
|
+
}, {
|
|
381
|
+
readonly name: "maximumDeveloperFeeBps";
|
|
382
|
+
readonly type: "uint16";
|
|
383
|
+
}, {
|
|
384
|
+
readonly name: "bounds";
|
|
385
|
+
readonly type: "tuple";
|
|
386
|
+
readonly components: readonly [{
|
|
387
|
+
readonly name: "minimumTickSpacing";
|
|
388
|
+
readonly type: "int24";
|
|
389
|
+
}, {
|
|
390
|
+
readonly name: "maximumTickSpacing";
|
|
391
|
+
readonly type: "int24";
|
|
392
|
+
}, {
|
|
393
|
+
readonly name: "maximumPositions";
|
|
394
|
+
readonly type: "uint16";
|
|
395
|
+
}, {
|
|
396
|
+
readonly name: "maximumOracleCardinality";
|
|
397
|
+
readonly type: "uint16";
|
|
398
|
+
}, {
|
|
399
|
+
readonly name: "feeModeFlags";
|
|
400
|
+
readonly type: "uint8";
|
|
401
|
+
}];
|
|
402
|
+
}, {
|
|
403
|
+
readonly name: "graph";
|
|
404
|
+
readonly type: "tuple";
|
|
405
|
+
readonly components: readonly [{
|
|
406
|
+
readonly name: "manager";
|
|
407
|
+
readonly type: "address";
|
|
408
|
+
}, {
|
|
409
|
+
readonly name: "hookRoot";
|
|
410
|
+
readonly type: "address";
|
|
411
|
+
}, {
|
|
412
|
+
readonly name: "oracleFactory";
|
|
413
|
+
readonly type: "address";
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "locker";
|
|
416
|
+
readonly type: "address";
|
|
417
|
+
}, {
|
|
418
|
+
readonly name: "collectorFactory";
|
|
419
|
+
readonly type: "address";
|
|
420
|
+
}, {
|
|
421
|
+
readonly name: "collectorDeployer";
|
|
422
|
+
readonly type: "address";
|
|
423
|
+
}, {
|
|
424
|
+
readonly name: "hookDeployer";
|
|
425
|
+
readonly type: "address";
|
|
426
|
+
}, {
|
|
427
|
+
readonly name: "coreCodeHash";
|
|
428
|
+
readonly type: "bytes32";
|
|
429
|
+
}, {
|
|
430
|
+
readonly name: "managerCodeHash";
|
|
431
|
+
readonly type: "bytes32";
|
|
432
|
+
}, {
|
|
433
|
+
readonly name: "hookRuntimeCodeHash";
|
|
434
|
+
readonly type: "bytes32";
|
|
435
|
+
}, {
|
|
436
|
+
readonly name: "oracleFactoryCodeHash";
|
|
437
|
+
readonly type: "bytes32";
|
|
438
|
+
}, {
|
|
439
|
+
readonly name: "lockerCodeHash";
|
|
440
|
+
readonly type: "bytes32";
|
|
441
|
+
}, {
|
|
442
|
+
readonly name: "collectorFactoryCodeHash";
|
|
443
|
+
readonly type: "bytes32";
|
|
444
|
+
}, {
|
|
445
|
+
readonly name: "collectorDeployerCodeHash";
|
|
446
|
+
readonly type: "bytes32";
|
|
447
|
+
}, {
|
|
448
|
+
readonly name: "hookDeployerCodeHash";
|
|
449
|
+
readonly type: "bytes32";
|
|
450
|
+
}, {
|
|
451
|
+
readonly name: "hookCreationCodeHash";
|
|
452
|
+
readonly type: "bytes32";
|
|
453
|
+
}, {
|
|
454
|
+
readonly name: "codeChunk0";
|
|
455
|
+
readonly type: "address";
|
|
456
|
+
}, {
|
|
457
|
+
readonly name: "codeChunk0Hash";
|
|
458
|
+
readonly type: "bytes32";
|
|
459
|
+
}, {
|
|
460
|
+
readonly name: "codeChunk1";
|
|
461
|
+
readonly type: "address";
|
|
462
|
+
}, {
|
|
463
|
+
readonly name: "codeChunk1Hash";
|
|
464
|
+
readonly type: "bytes32";
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "sharedHookSalt";
|
|
467
|
+
readonly type: "bytes32";
|
|
468
|
+
}];
|
|
469
|
+
}];
|
|
470
|
+
export declare const sourceTermsV3Components: readonly [{
|
|
471
|
+
readonly name: "adapter";
|
|
472
|
+
readonly type: "address";
|
|
473
|
+
}, {
|
|
474
|
+
readonly name: "profileId";
|
|
475
|
+
readonly type: "bytes32";
|
|
476
|
+
}, {
|
|
477
|
+
readonly name: "termsDigest";
|
|
478
|
+
readonly type: "bytes32";
|
|
479
|
+
}, {
|
|
480
|
+
readonly name: "beneficiary";
|
|
481
|
+
readonly type: "address";
|
|
482
|
+
}, {
|
|
483
|
+
readonly name: "maximumDeveloperFeeBps";
|
|
484
|
+
readonly type: "uint16";
|
|
485
|
+
}, {
|
|
486
|
+
readonly name: "developerFeeBps";
|
|
487
|
+
readonly type: "uint16";
|
|
488
|
+
}];
|
|
489
|
+
export declare function encodeLaunchBounds(bounds: LaunchBoundsV2): Hex;
|
|
490
|
+
export declare function decodeLaunchBounds(encoded: Hex): LaunchBoundsV2;
|
|
491
|
+
export declare function hashLaunchBounds(bounds: LaunchBoundsV2): Hex;
|
|
492
|
+
export declare function encodeLaunchEnvelope(envelope: LaunchEnvelopeV2): Hex;
|
|
493
|
+
export declare function decodeLaunchEnvelope(encoded: Hex): LaunchEnvelopeV2;
|
|
494
|
+
/** The registry identity deliberately excludes instance addresses and runtime immutables. */
|
|
495
|
+
export declare function hashLifecycleProfile(envelope: LaunchEnvelopeV2): Hex;
|
|
496
|
+
/** Exact LaunchGraphLibV2 domain; shared salt is provenance, not an economic dependency. */
|
|
497
|
+
export declare function hashLaunchDependencies(options: {
|
|
498
|
+
chainId: bigint;
|
|
499
|
+
core: Address;
|
|
500
|
+
registry: Address;
|
|
501
|
+
registrar: Address;
|
|
502
|
+
graph: LaunchGraphV2;
|
|
503
|
+
}): Hex;
|
|
504
|
+
export declare const LIFECYCLE_TOKEN_ONLY_CAPABILITY = 1n;
|
|
505
|
+
export declare const LIFECYCLE_EMPTY_PREPARE_CAPABILITY = 2n;
|
|
506
|
+
export declare const LIFECYCLE_PERMANENT_CUSTODY_CAPABILITY = 8n;
|
|
507
|
+
export declare const LIFECYCLE_CANONICAL_FEES_CAPABILITY = 16n;
|
|
508
|
+
export declare const LIFECYCLE_ERC404_CAPABILITY = 32n;
|
|
509
|
+
export declare const LIFECYCLE_MULTI_POSITION_CAPABILITY = 64n;
|
|
510
|
+
/** TOKEN_ONLY|EMPTY_PREPARE|PERMANENT_CUSTODY|CANONICAL_FEES. The retired POOL_GATE bit
|
|
511
|
+
* is never requested: preactivation safety is token transfer restrictions plus the
|
|
512
|
+
* activation-time canonical opening-state verification on both canonical venues. Atomic
|
|
513
|
+
* and staged share this mask; mode changes execution grouping, never venue eligibility. */
|
|
514
|
+
export declare const LIFECYCLE_REQUIRED_CAPABILITIES: bigint;
|
|
515
|
+
export declare const LIFECYCLE_MAX_ERC20_SUPPLY: bigint;
|
|
516
|
+
export declare const LIFECYCLE_MAX_REWARD_ERC20_SUPPLY: bigint;
|
|
517
|
+
export declare const LIFECYCLE_MAX_ERC404_SUPPLY: bigint;
|
|
518
|
+
export declare const lifecycleTokenComponents: readonly [{
|
|
519
|
+
readonly name: "kind";
|
|
520
|
+
readonly type: "uint8";
|
|
521
|
+
}, {
|
|
522
|
+
readonly name: "rewardMode";
|
|
523
|
+
readonly type: "uint8";
|
|
524
|
+
}, {
|
|
525
|
+
readonly name: "name";
|
|
526
|
+
readonly type: "string";
|
|
527
|
+
}, {
|
|
528
|
+
readonly name: "symbol";
|
|
529
|
+
readonly type: "string";
|
|
530
|
+
}, {
|
|
531
|
+
readonly name: "supply";
|
|
532
|
+
readonly type: "uint256";
|
|
533
|
+
}, {
|
|
534
|
+
readonly name: "nftUnit";
|
|
535
|
+
readonly type: "uint256";
|
|
536
|
+
}, {
|
|
537
|
+
readonly name: "metadataURI";
|
|
538
|
+
readonly type: "string";
|
|
539
|
+
}, {
|
|
540
|
+
readonly name: "salt";
|
|
541
|
+
readonly type: "bytes32";
|
|
542
|
+
}, {
|
|
543
|
+
readonly name: "inventoryRecipient";
|
|
544
|
+
readonly type: "address";
|
|
545
|
+
}, {
|
|
546
|
+
readonly name: "burnOnCancel";
|
|
547
|
+
readonly type: "bool";
|
|
548
|
+
}];
|
|
549
|
+
export declare const lifecycleFundingComponents: readonly [{
|
|
550
|
+
readonly name: "asset";
|
|
551
|
+
readonly type: "address";
|
|
552
|
+
}, {
|
|
553
|
+
readonly name: "amount";
|
|
554
|
+
readonly type: "uint256";
|
|
555
|
+
}, {
|
|
556
|
+
readonly name: "kind";
|
|
557
|
+
readonly type: "uint8";
|
|
558
|
+
}, {
|
|
559
|
+
readonly name: "inputAsset";
|
|
560
|
+
readonly type: "address";
|
|
561
|
+
}, {
|
|
562
|
+
readonly name: "inputAmount";
|
|
563
|
+
readonly type: "uint256";
|
|
564
|
+
}, {
|
|
565
|
+
readonly name: "target";
|
|
566
|
+
readonly type: "address";
|
|
567
|
+
}, {
|
|
568
|
+
readonly name: "data";
|
|
569
|
+
readonly type: "bytes";
|
|
570
|
+
}];
|
|
571
|
+
export declare const lifecycleFeePolicyComponents: readonly [{
|
|
572
|
+
readonly name: "asset";
|
|
573
|
+
readonly type: "address";
|
|
574
|
+
}, {
|
|
575
|
+
readonly name: "ownerBps";
|
|
576
|
+
readonly type: "uint16";
|
|
577
|
+
}, {
|
|
578
|
+
readonly name: "rewardsBps";
|
|
579
|
+
readonly type: "uint16";
|
|
580
|
+
}, {
|
|
581
|
+
readonly name: "burnBps";
|
|
582
|
+
readonly type: "uint16";
|
|
583
|
+
}];
|
|
584
|
+
export declare const lifecycleMarketComponents: readonly [{
|
|
585
|
+
readonly name: "adapterId";
|
|
586
|
+
readonly type: "bytes32";
|
|
587
|
+
}, {
|
|
588
|
+
readonly name: "profileId";
|
|
589
|
+
readonly type: "bytes32";
|
|
590
|
+
}, {
|
|
591
|
+
readonly name: "quoteAsset";
|
|
592
|
+
readonly type: "address";
|
|
593
|
+
}, {
|
|
594
|
+
readonly name: "tokenBudget";
|
|
595
|
+
readonly type: "uint256";
|
|
596
|
+
}, {
|
|
597
|
+
readonly name: "configVersion";
|
|
598
|
+
readonly type: "uint32";
|
|
599
|
+
}, {
|
|
600
|
+
readonly name: "config";
|
|
601
|
+
readonly type: "bytes";
|
|
602
|
+
}];
|
|
603
|
+
export declare const lifecycleBuyComponents: readonly [{
|
|
604
|
+
readonly name: "marketIndex";
|
|
605
|
+
readonly type: "uint32";
|
|
606
|
+
}, {
|
|
607
|
+
readonly name: "quoteAmountIn";
|
|
608
|
+
readonly type: "uint256";
|
|
609
|
+
}, {
|
|
610
|
+
readonly name: "minTokenOut";
|
|
611
|
+
readonly type: "uint256";
|
|
612
|
+
}, {
|
|
613
|
+
readonly name: "recipient";
|
|
614
|
+
readonly type: "address";
|
|
615
|
+
}, {
|
|
616
|
+
readonly name: "sqrtPriceLimitX96";
|
|
617
|
+
readonly type: "uint160";
|
|
618
|
+
}];
|
|
619
|
+
export declare const launchPlanV1Components: readonly [{
|
|
620
|
+
readonly name: "chainId";
|
|
621
|
+
readonly type: "uint256";
|
|
622
|
+
}, {
|
|
623
|
+
readonly name: "orchestrator";
|
|
624
|
+
readonly type: "address";
|
|
625
|
+
}, {
|
|
626
|
+
readonly name: "creator";
|
|
627
|
+
readonly type: "address";
|
|
628
|
+
}, {
|
|
629
|
+
readonly name: "nonce";
|
|
630
|
+
readonly type: "uint256";
|
|
631
|
+
}, {
|
|
632
|
+
readonly name: "token";
|
|
633
|
+
readonly type: "tuple";
|
|
634
|
+
readonly components: readonly [{
|
|
635
|
+
readonly name: "kind";
|
|
636
|
+
readonly type: "uint8";
|
|
637
|
+
}, {
|
|
638
|
+
readonly name: "rewardMode";
|
|
639
|
+
readonly type: "uint8";
|
|
640
|
+
}, {
|
|
641
|
+
readonly name: "name";
|
|
642
|
+
readonly type: "string";
|
|
643
|
+
}, {
|
|
644
|
+
readonly name: "symbol";
|
|
645
|
+
readonly type: "string";
|
|
646
|
+
}, {
|
|
647
|
+
readonly name: "supply";
|
|
648
|
+
readonly type: "uint256";
|
|
649
|
+
}, {
|
|
650
|
+
readonly name: "nftUnit";
|
|
651
|
+
readonly type: "uint256";
|
|
652
|
+
}, {
|
|
653
|
+
readonly name: "metadataURI";
|
|
654
|
+
readonly type: "string";
|
|
655
|
+
}, {
|
|
656
|
+
readonly name: "salt";
|
|
657
|
+
readonly type: "bytes32";
|
|
658
|
+
}, {
|
|
659
|
+
readonly name: "inventoryRecipient";
|
|
660
|
+
readonly type: "address";
|
|
661
|
+
}, {
|
|
662
|
+
readonly name: "burnOnCancel";
|
|
663
|
+
readonly type: "bool";
|
|
664
|
+
}];
|
|
665
|
+
}, {
|
|
666
|
+
readonly name: "funding";
|
|
667
|
+
readonly type: "tuple[]";
|
|
668
|
+
readonly components: readonly [{
|
|
669
|
+
readonly name: "asset";
|
|
670
|
+
readonly type: "address";
|
|
671
|
+
}, {
|
|
672
|
+
readonly name: "amount";
|
|
673
|
+
readonly type: "uint256";
|
|
674
|
+
}, {
|
|
675
|
+
readonly name: "kind";
|
|
676
|
+
readonly type: "uint8";
|
|
677
|
+
}, {
|
|
678
|
+
readonly name: "inputAsset";
|
|
679
|
+
readonly type: "address";
|
|
680
|
+
}, {
|
|
681
|
+
readonly name: "inputAmount";
|
|
682
|
+
readonly type: "uint256";
|
|
683
|
+
}, {
|
|
684
|
+
readonly name: "target";
|
|
685
|
+
readonly type: "address";
|
|
686
|
+
}, {
|
|
687
|
+
readonly name: "data";
|
|
688
|
+
readonly type: "bytes";
|
|
689
|
+
}];
|
|
690
|
+
}, {
|
|
691
|
+
readonly name: "feeAssets";
|
|
692
|
+
readonly type: "tuple[]";
|
|
693
|
+
readonly components: readonly [{
|
|
694
|
+
readonly name: "asset";
|
|
695
|
+
readonly type: "address";
|
|
696
|
+
}, {
|
|
697
|
+
readonly name: "ownerBps";
|
|
698
|
+
readonly type: "uint16";
|
|
699
|
+
}, {
|
|
700
|
+
readonly name: "rewardsBps";
|
|
701
|
+
readonly type: "uint16";
|
|
702
|
+
}, {
|
|
703
|
+
readonly name: "burnBps";
|
|
704
|
+
readonly type: "uint16";
|
|
705
|
+
}];
|
|
706
|
+
}, {
|
|
707
|
+
readonly name: "markets";
|
|
708
|
+
readonly type: "tuple[]";
|
|
709
|
+
readonly components: readonly [{
|
|
710
|
+
readonly name: "adapterId";
|
|
711
|
+
readonly type: "bytes32";
|
|
712
|
+
}, {
|
|
713
|
+
readonly name: "profileId";
|
|
714
|
+
readonly type: "bytes32";
|
|
715
|
+
}, {
|
|
716
|
+
readonly name: "quoteAsset";
|
|
717
|
+
readonly type: "address";
|
|
718
|
+
}, {
|
|
719
|
+
readonly name: "tokenBudget";
|
|
720
|
+
readonly type: "uint256";
|
|
721
|
+
}, {
|
|
722
|
+
readonly name: "configVersion";
|
|
723
|
+
readonly type: "uint32";
|
|
724
|
+
}, {
|
|
725
|
+
readonly name: "config";
|
|
726
|
+
readonly type: "bytes";
|
|
727
|
+
}];
|
|
728
|
+
}, {
|
|
729
|
+
readonly name: "buys";
|
|
730
|
+
readonly type: "tuple[]";
|
|
731
|
+
readonly components: readonly [{
|
|
732
|
+
readonly name: "marketIndex";
|
|
733
|
+
readonly type: "uint32";
|
|
734
|
+
}, {
|
|
735
|
+
readonly name: "quoteAmountIn";
|
|
736
|
+
readonly type: "uint256";
|
|
737
|
+
}, {
|
|
738
|
+
readonly name: "minTokenOut";
|
|
739
|
+
readonly type: "uint256";
|
|
740
|
+
}, {
|
|
741
|
+
readonly name: "recipient";
|
|
742
|
+
readonly type: "address";
|
|
743
|
+
}, {
|
|
744
|
+
readonly name: "sqrtPriceLimitX96";
|
|
745
|
+
readonly type: "uint160";
|
|
746
|
+
}];
|
|
747
|
+
}, {
|
|
748
|
+
readonly name: "deadline";
|
|
749
|
+
readonly type: "uint256";
|
|
750
|
+
}, {
|
|
751
|
+
readonly name: "executorFeeBps";
|
|
752
|
+
readonly type: "uint16";
|
|
753
|
+
}];
|
|
754
|
+
export declare const marketIdentityV1Components: readonly [{
|
|
755
|
+
readonly name: "venue";
|
|
756
|
+
readonly type: "uint8";
|
|
757
|
+
}, {
|
|
758
|
+
readonly name: "canonicalId";
|
|
759
|
+
readonly type: "bytes32";
|
|
760
|
+
}, {
|
|
761
|
+
readonly name: "manager";
|
|
762
|
+
readonly type: "address";
|
|
763
|
+
}, {
|
|
764
|
+
readonly name: "factory";
|
|
765
|
+
readonly type: "address";
|
|
766
|
+
}, {
|
|
767
|
+
readonly name: "pool";
|
|
768
|
+
readonly type: "address";
|
|
769
|
+
}, {
|
|
770
|
+
readonly name: "poolId";
|
|
771
|
+
readonly type: "bytes32";
|
|
772
|
+
}, {
|
|
773
|
+
readonly name: "profileId";
|
|
774
|
+
readonly type: "bytes32";
|
|
775
|
+
}, {
|
|
776
|
+
readonly name: "currency0";
|
|
777
|
+
readonly type: "address";
|
|
778
|
+
}, {
|
|
779
|
+
readonly name: "currency1";
|
|
780
|
+
readonly type: "address";
|
|
781
|
+
}, {
|
|
782
|
+
readonly name: "fee";
|
|
783
|
+
readonly type: "uint24";
|
|
784
|
+
}, {
|
|
785
|
+
readonly name: "tickSpacing";
|
|
786
|
+
readonly type: "int24";
|
|
787
|
+
}, {
|
|
788
|
+
readonly name: "hook";
|
|
789
|
+
readonly type: "address";
|
|
790
|
+
}, {
|
|
791
|
+
readonly name: "openingSqrtPriceX96";
|
|
792
|
+
readonly type: "uint160";
|
|
793
|
+
}];
|
|
794
|
+
export declare const preparedMarketV1Components: readonly [{
|
|
795
|
+
readonly name: "identity";
|
|
796
|
+
readonly type: "tuple";
|
|
797
|
+
readonly components: readonly [{
|
|
798
|
+
readonly name: "venue";
|
|
799
|
+
readonly type: "uint8";
|
|
800
|
+
}, {
|
|
801
|
+
readonly name: "canonicalId";
|
|
802
|
+
readonly type: "bytes32";
|
|
803
|
+
}, {
|
|
804
|
+
readonly name: "manager";
|
|
805
|
+
readonly type: "address";
|
|
806
|
+
}, {
|
|
807
|
+
readonly name: "factory";
|
|
808
|
+
readonly type: "address";
|
|
809
|
+
}, {
|
|
810
|
+
readonly name: "pool";
|
|
811
|
+
readonly type: "address";
|
|
812
|
+
}, {
|
|
813
|
+
readonly name: "poolId";
|
|
814
|
+
readonly type: "bytes32";
|
|
815
|
+
}, {
|
|
816
|
+
readonly name: "profileId";
|
|
817
|
+
readonly type: "bytes32";
|
|
818
|
+
}, {
|
|
819
|
+
readonly name: "currency0";
|
|
820
|
+
readonly type: "address";
|
|
821
|
+
}, {
|
|
822
|
+
readonly name: "currency1";
|
|
823
|
+
readonly type: "address";
|
|
824
|
+
}, {
|
|
825
|
+
readonly name: "fee";
|
|
826
|
+
readonly type: "uint24";
|
|
827
|
+
}, {
|
|
828
|
+
readonly name: "tickSpacing";
|
|
829
|
+
readonly type: "int24";
|
|
830
|
+
}, {
|
|
831
|
+
readonly name: "hook";
|
|
832
|
+
readonly type: "address";
|
|
833
|
+
}, {
|
|
834
|
+
readonly name: "openingSqrtPriceX96";
|
|
835
|
+
readonly type: "uint160";
|
|
836
|
+
}];
|
|
837
|
+
}, {
|
|
838
|
+
readonly name: "feeSource";
|
|
839
|
+
readonly type: "address";
|
|
840
|
+
}, {
|
|
841
|
+
readonly name: "custody";
|
|
842
|
+
readonly type: "address";
|
|
843
|
+
}, {
|
|
844
|
+
readonly name: "mintExecutor";
|
|
845
|
+
readonly type: "address";
|
|
846
|
+
}, {
|
|
847
|
+
readonly name: "buyExecutor";
|
|
848
|
+
readonly type: "address";
|
|
849
|
+
}, {
|
|
850
|
+
readonly name: "exclusions";
|
|
851
|
+
readonly type: "address[]";
|
|
852
|
+
}, {
|
|
853
|
+
readonly name: "positionCount";
|
|
854
|
+
readonly type: "uint32";
|
|
855
|
+
}];
|
|
856
|
+
export declare const positionIdentityV1Components: readonly [{
|
|
857
|
+
readonly name: "canonicalId";
|
|
858
|
+
readonly type: "bytes32";
|
|
859
|
+
}, {
|
|
860
|
+
readonly name: "marketId";
|
|
861
|
+
readonly type: "bytes32";
|
|
862
|
+
}, {
|
|
863
|
+
readonly name: "manager";
|
|
864
|
+
readonly type: "address";
|
|
865
|
+
}, {
|
|
866
|
+
readonly name: "custody";
|
|
867
|
+
readonly type: "address";
|
|
868
|
+
}, {
|
|
869
|
+
readonly name: "tokenId";
|
|
870
|
+
readonly type: "uint256";
|
|
871
|
+
}, {
|
|
872
|
+
readonly name: "tickLower";
|
|
873
|
+
readonly type: "int24";
|
|
874
|
+
}, {
|
|
875
|
+
readonly name: "tickUpper";
|
|
876
|
+
readonly type: "int24";
|
|
877
|
+
}, {
|
|
878
|
+
readonly name: "salt";
|
|
879
|
+
readonly type: "bytes32";
|
|
880
|
+
}, {
|
|
881
|
+
readonly name: "liquidity";
|
|
882
|
+
readonly type: "uint128";
|
|
883
|
+
}];
|
|
884
|
+
export declare const launchProgressV1Components: readonly [{
|
|
885
|
+
readonly name: "launchId";
|
|
886
|
+
readonly type: "bytes32";
|
|
887
|
+
}, {
|
|
888
|
+
readonly name: "planHash";
|
|
889
|
+
readonly type: "bytes32";
|
|
890
|
+
}, {
|
|
891
|
+
readonly name: "creator";
|
|
892
|
+
readonly type: "address";
|
|
893
|
+
}, {
|
|
894
|
+
readonly name: "nonce";
|
|
895
|
+
readonly type: "uint256";
|
|
896
|
+
}, {
|
|
897
|
+
readonly name: "mode";
|
|
898
|
+
readonly type: "uint8";
|
|
899
|
+
}, {
|
|
900
|
+
readonly name: "phase";
|
|
901
|
+
readonly type: "uint8";
|
|
902
|
+
}, {
|
|
903
|
+
readonly name: "token";
|
|
904
|
+
readonly type: "address";
|
|
905
|
+
}, {
|
|
906
|
+
readonly name: "feeHub";
|
|
907
|
+
readonly type: "address";
|
|
908
|
+
}, {
|
|
909
|
+
readonly name: "rewards";
|
|
910
|
+
readonly type: "address";
|
|
911
|
+
}, {
|
|
912
|
+
readonly name: "preparedMarkets";
|
|
913
|
+
readonly type: "uint32";
|
|
914
|
+
}, {
|
|
915
|
+
readonly name: "marketCount";
|
|
916
|
+
readonly type: "uint32";
|
|
917
|
+
}, {
|
|
918
|
+
readonly name: "buyCount";
|
|
919
|
+
readonly type: "uint32";
|
|
920
|
+
}, {
|
|
921
|
+
readonly name: "positionCount";
|
|
922
|
+
readonly type: "uint32";
|
|
923
|
+
}, {
|
|
924
|
+
readonly name: "deadline";
|
|
925
|
+
readonly type: "uint256";
|
|
926
|
+
}];
|
|
927
|
+
export declare const launchReceiptV1Components: readonly [{
|
|
928
|
+
readonly name: "launchId";
|
|
929
|
+
readonly type: "bytes32";
|
|
930
|
+
}, {
|
|
931
|
+
readonly name: "planHash";
|
|
932
|
+
readonly type: "bytes32";
|
|
933
|
+
}, {
|
|
934
|
+
readonly name: "token";
|
|
935
|
+
readonly type: "address";
|
|
936
|
+
}, {
|
|
937
|
+
readonly name: "feeHub";
|
|
938
|
+
readonly type: "address";
|
|
939
|
+
}, {
|
|
940
|
+
readonly name: "rewards";
|
|
941
|
+
readonly type: "address";
|
|
942
|
+
}, {
|
|
943
|
+
readonly name: "marketCount";
|
|
944
|
+
readonly type: "uint32";
|
|
945
|
+
}, {
|
|
946
|
+
readonly name: "positionCount";
|
|
947
|
+
readonly type: "uint32";
|
|
948
|
+
}, {
|
|
949
|
+
readonly name: "quoteSpent";
|
|
950
|
+
readonly type: "uint256[]";
|
|
951
|
+
}, {
|
|
952
|
+
readonly name: "tokenOut";
|
|
953
|
+
readonly type: "uint256[]";
|
|
954
|
+
}];
|
|
955
|
+
export declare const adapterRegistrationV1Components: readonly [{
|
|
956
|
+
readonly name: "implementation";
|
|
957
|
+
readonly type: "address";
|
|
958
|
+
}, {
|
|
959
|
+
readonly name: "codeHash";
|
|
960
|
+
readonly type: "bytes32";
|
|
961
|
+
}, {
|
|
962
|
+
readonly name: "capabilities";
|
|
963
|
+
readonly type: "uint64";
|
|
964
|
+
}, {
|
|
965
|
+
readonly name: "configVersion";
|
|
966
|
+
readonly type: "uint32";
|
|
967
|
+
}, {
|
|
968
|
+
readonly name: "enabled";
|
|
969
|
+
readonly type: "bool";
|
|
970
|
+
}];
|
|
971
|
+
export declare const profileRegistrationV1Components: readonly [{
|
|
972
|
+
readonly name: "adapterId";
|
|
973
|
+
readonly type: "bytes32";
|
|
974
|
+
}, {
|
|
975
|
+
readonly name: "configSchema";
|
|
976
|
+
readonly type: "bytes32";
|
|
977
|
+
}, {
|
|
978
|
+
readonly name: "dependencyDigest";
|
|
979
|
+
readonly type: "bytes32";
|
|
980
|
+
}, {
|
|
981
|
+
readonly name: "venue";
|
|
982
|
+
readonly type: "address";
|
|
983
|
+
}, {
|
|
984
|
+
readonly name: "factory";
|
|
985
|
+
readonly type: "address";
|
|
986
|
+
}, {
|
|
987
|
+
readonly name: "hook";
|
|
988
|
+
readonly type: "address";
|
|
989
|
+
}, {
|
|
990
|
+
readonly name: "capabilities";
|
|
991
|
+
readonly type: "uint64";
|
|
992
|
+
}, {
|
|
993
|
+
readonly name: "enabled";
|
|
994
|
+
readonly type: "bool";
|
|
995
|
+
}];
|
|
996
|
+
export declare const profileTopologyV1Components: readonly [{
|
|
997
|
+
readonly name: "hookTopology";
|
|
998
|
+
readonly type: "uint8";
|
|
999
|
+
}, {
|
|
1000
|
+
readonly name: "configVersion";
|
|
1001
|
+
readonly type: "uint32";
|
|
1002
|
+
}, {
|
|
1003
|
+
readonly name: "hookDeployer";
|
|
1004
|
+
readonly type: "address";
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly name: "hookCreationCodeHash";
|
|
1007
|
+
readonly type: "bytes32";
|
|
1008
|
+
}];
|
|
1009
|
+
export declare const marketLiveStateV1Components: readonly [{
|
|
1010
|
+
readonly name: "sqrtPriceX96";
|
|
1011
|
+
readonly type: "uint160";
|
|
1012
|
+
}, {
|
|
1013
|
+
readonly name: "tick";
|
|
1014
|
+
readonly type: "int24";
|
|
1015
|
+
}, {
|
|
1016
|
+
readonly name: "liquidity";
|
|
1017
|
+
readonly type: "uint128";
|
|
1018
|
+
}, {
|
|
1019
|
+
readonly name: "publicTrading";
|
|
1020
|
+
readonly type: "bool";
|
|
1021
|
+
}, {
|
|
1022
|
+
readonly name: "oracleReadyAt";
|
|
1023
|
+
readonly type: "uint256";
|
|
1024
|
+
}];
|
|
1025
|
+
export declare const launchExecutionContextV1Components: readonly [{
|
|
1026
|
+
readonly name: "launchId";
|
|
1027
|
+
readonly type: "bytes32";
|
|
1028
|
+
}, {
|
|
1029
|
+
readonly name: "marketIndex";
|
|
1030
|
+
readonly type: "uint32";
|
|
1031
|
+
}, {
|
|
1032
|
+
readonly name: "operation";
|
|
1033
|
+
readonly type: "uint8";
|
|
1034
|
+
}, {
|
|
1035
|
+
readonly name: "adapter";
|
|
1036
|
+
readonly type: "address";
|
|
1037
|
+
}, {
|
|
1038
|
+
readonly name: "executor";
|
|
1039
|
+
readonly type: "address";
|
|
1040
|
+
}, {
|
|
1041
|
+
readonly name: "token";
|
|
1042
|
+
readonly type: "address";
|
|
1043
|
+
}, {
|
|
1044
|
+
readonly name: "quoteAsset";
|
|
1045
|
+
readonly type: "address";
|
|
1046
|
+
}, {
|
|
1047
|
+
readonly name: "manager";
|
|
1048
|
+
readonly type: "address";
|
|
1049
|
+
}, {
|
|
1050
|
+
readonly name: "custody";
|
|
1051
|
+
readonly type: "address";
|
|
1052
|
+
}, {
|
|
1053
|
+
readonly name: "recipient";
|
|
1054
|
+
readonly type: "address";
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly name: "amount";
|
|
1057
|
+
readonly type: "uint256";
|
|
1058
|
+
}];
|
|
1059
|
+
export declare function encodeLaunchPlan(plan: LaunchPlanV1): Hex;
|
|
1060
|
+
export declare const LIFECYCLE_PLAN_DOMAIN: `0x${string}`;
|
|
1061
|
+
/** Commitment to all economic fields, including chain, orchestrator, creator and nonce. */
|
|
1062
|
+
export declare function hashLaunchPlan(plan: LaunchPlanV1): Hex;
|
|
1063
|
+
/** Stable across blocks and modes; token config is committed separately by CREATE2. */
|
|
1064
|
+
export declare function hashLaunchIdentity(plan: Pick<LaunchPlanV1, "chainId" | "orchestrator" | "creator" | "nonce">): Hex;
|
|
1065
|
+
/** Portable JSON uses decimal strings for uint160/uint256 fields, preserving exact integers. */
|
|
1066
|
+
export declare function serializeLaunchPlan(plan: LaunchPlanV1): string;
|
|
1067
|
+
export declare function parseLaunchPlan(json: string): LaunchPlanV1;
|
|
1068
|
+
//# sourceMappingURL=schema.d.ts.map
|