@gitmyabi/zklighter 1.0.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/README.md +108 -0
- package/contracts/Proxy_json.d.ts +250 -0
- package/contracts/Proxy_json.js +267 -0
- package/contracts/Proxy_json.ts +344 -0
- package/contracts/ZkLighter_json.d.ts +3619 -0
- package/contracts/ZkLighter_json.js +3870 -0
- package/contracts/ZkLighter_json.ts +4747 -0
- package/contracts/index.d.ts +4 -0
- package/contracts/index.js +10 -0
- package/contracts/index.ts +5 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +43 -0
|
@@ -0,0 +1,3619 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* TxTypes.CreateMarket struct type
|
|
4
|
+
*/
|
|
5
|
+
export type TxTypes_CreateMarket = {
|
|
6
|
+
marketIndex: bigint;
|
|
7
|
+
marketType: bigint;
|
|
8
|
+
marketData: `0x${string}`;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* TxTypes.UpdateMarket struct type
|
|
12
|
+
*/
|
|
13
|
+
export type TxTypes_UpdateMarket = {
|
|
14
|
+
marketIndex: bigint;
|
|
15
|
+
marketType: bigint;
|
|
16
|
+
marketData: `0x${string}`;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* IZkLighter.CommitBatchInfo struct type
|
|
20
|
+
*/
|
|
21
|
+
export type IZkLighter_CommitBatchInfo = {
|
|
22
|
+
endBlockNumber: bigint;
|
|
23
|
+
batchSize: bigint;
|
|
24
|
+
startTimestamp: bigint;
|
|
25
|
+
endTimestamp: bigint;
|
|
26
|
+
priorityRequestCount: bigint;
|
|
27
|
+
prefixPriorityRequestHash: `0x${string}`;
|
|
28
|
+
onChainOperationsHash: `0x${string}`;
|
|
29
|
+
newStateRoot: `0x${string}`;
|
|
30
|
+
newValidiumRoot: `0x${string}`;
|
|
31
|
+
pubdataCommitments: `0x${string}`;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Storage.StoredBatchInfo struct type
|
|
35
|
+
*/
|
|
36
|
+
export type Storage_StoredBatchInfo = {
|
|
37
|
+
batchNumber: bigint;
|
|
38
|
+
endBlockNumber: bigint;
|
|
39
|
+
batchSize: bigint;
|
|
40
|
+
startTimestamp: bigint;
|
|
41
|
+
endTimestamp: bigint;
|
|
42
|
+
priorityRequestCount: bigint;
|
|
43
|
+
prefixPriorityRequestHash: `0x${string}`;
|
|
44
|
+
onChainOperationsHash: `0x${string}`;
|
|
45
|
+
stateRoot: `0x${string}`;
|
|
46
|
+
validiumRoot: `0x${string}`;
|
|
47
|
+
commitment: `0x${string}`;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* TxTypes.RegisterAsset struct type
|
|
51
|
+
*/
|
|
52
|
+
export type TxTypes_RegisterAsset = {
|
|
53
|
+
assetIndex: bigint;
|
|
54
|
+
extensionMultiplier: bigint;
|
|
55
|
+
minL2TransferAmount: bigint;
|
|
56
|
+
minL2WithdrawalAmount: bigint;
|
|
57
|
+
marginMode: bigint;
|
|
58
|
+
loanToValue: bigint;
|
|
59
|
+
liquidationThreshold: bigint;
|
|
60
|
+
liquidationFactor: bigint;
|
|
61
|
+
liquidationFee: bigint;
|
|
62
|
+
indexPriceDivider: bigint;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* TxTypes.SetSystemConfig struct type
|
|
66
|
+
*/
|
|
67
|
+
export type TxTypes_SetSystemConfig = {
|
|
68
|
+
liquidityPoolIndex: bigint;
|
|
69
|
+
stakingPoolIndex: bigint;
|
|
70
|
+
liquidityPoolCooldownPeriod: bigint;
|
|
71
|
+
stakingPoolLockupPeriod: bigint;
|
|
72
|
+
maxIntegratorPerpsTakerFee: bigint;
|
|
73
|
+
maxIntegratorPerpsMakerFee: bigint;
|
|
74
|
+
maxIntegratorSpotTakerFee: bigint;
|
|
75
|
+
maxIntegratorSpotMakerFee: bigint;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* TxTypes.UpdateAsset struct type
|
|
79
|
+
*/
|
|
80
|
+
export type TxTypes_UpdateAsset = {
|
|
81
|
+
assetIndex: bigint;
|
|
82
|
+
minL2TransferAmount: bigint;
|
|
83
|
+
minL2WithdrawalAmount: bigint;
|
|
84
|
+
marginMode: bigint;
|
|
85
|
+
loanToValue: bigint;
|
|
86
|
+
liquidationThreshold: bigint;
|
|
87
|
+
liquidationFactor: bigint;
|
|
88
|
+
liquidationFee: bigint;
|
|
89
|
+
indexPriceDivider: bigint;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* ZkLighter_json ABI
|
|
93
|
+
*
|
|
94
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
95
|
+
*/
|
|
96
|
+
export declare const ZkLighter_jsonAbi: readonly [{
|
|
97
|
+
readonly inputs: readonly [];
|
|
98
|
+
readonly stateMutability: "nonpayable";
|
|
99
|
+
readonly type: "constructor";
|
|
100
|
+
}, {
|
|
101
|
+
readonly inputs: readonly [];
|
|
102
|
+
readonly name: "ZkLighter_BatchNotInOnChainQueue";
|
|
103
|
+
readonly type: "error";
|
|
104
|
+
}, {
|
|
105
|
+
readonly inputs: readonly [];
|
|
106
|
+
readonly name: "ZkLighter_CannotBeInitialisedByImpl";
|
|
107
|
+
readonly type: "error";
|
|
108
|
+
}, {
|
|
109
|
+
readonly inputs: readonly [];
|
|
110
|
+
readonly name: "ZkLighter_CannotExecuteNonVerifiedBatch";
|
|
111
|
+
readonly type: "error";
|
|
112
|
+
}, {
|
|
113
|
+
readonly inputs: readonly [];
|
|
114
|
+
readonly name: "ZkLighter_CannotRevertExecutedBatch";
|
|
115
|
+
readonly type: "error";
|
|
116
|
+
}, {
|
|
117
|
+
readonly inputs: readonly [];
|
|
118
|
+
readonly name: "ZkLighter_CannotRevertGenesisBatch";
|
|
119
|
+
readonly type: "error";
|
|
120
|
+
}, {
|
|
121
|
+
readonly inputs: readonly [];
|
|
122
|
+
readonly name: "ZkLighter_CannotVerifyNonCommittedBatch";
|
|
123
|
+
readonly type: "error";
|
|
124
|
+
}, {
|
|
125
|
+
readonly inputs: readonly [];
|
|
126
|
+
readonly name: "ZkLighter_CommitBatchPriorityRequestCountMismatch";
|
|
127
|
+
readonly type: "error";
|
|
128
|
+
}, {
|
|
129
|
+
readonly inputs: readonly [];
|
|
130
|
+
readonly name: "ZkLighter_DesertError";
|
|
131
|
+
readonly type: "error";
|
|
132
|
+
}, {
|
|
133
|
+
readonly inputs: readonly [];
|
|
134
|
+
readonly name: "ZkLighter_DesertModeActive";
|
|
135
|
+
readonly type: "error";
|
|
136
|
+
}, {
|
|
137
|
+
readonly inputs: readonly [];
|
|
138
|
+
readonly name: "ZkLighter_ETHTransferFailed";
|
|
139
|
+
readonly type: "error";
|
|
140
|
+
}, {
|
|
141
|
+
readonly inputs: readonly [];
|
|
142
|
+
readonly name: "ZkLighter_ExecuteInputLengthGreaterThanPendingCount";
|
|
143
|
+
readonly type: "error";
|
|
144
|
+
}, {
|
|
145
|
+
readonly inputs: readonly [];
|
|
146
|
+
readonly name: "ZkLighter_ExecuteInputLengthMismatch";
|
|
147
|
+
readonly type: "error";
|
|
148
|
+
}, {
|
|
149
|
+
readonly inputs: readonly [];
|
|
150
|
+
readonly name: "ZkLighter_ImplCantDelegateToAddl";
|
|
151
|
+
readonly type: "error";
|
|
152
|
+
}, {
|
|
153
|
+
readonly inputs: readonly [];
|
|
154
|
+
readonly name: "ZkLighter_InsuranceFundOperatorCannotBeInUse";
|
|
155
|
+
readonly type: "error";
|
|
156
|
+
}, {
|
|
157
|
+
readonly inputs: readonly [];
|
|
158
|
+
readonly name: "ZkLighter_InsuranceFundOperatorCannotBeZero";
|
|
159
|
+
readonly type: "error";
|
|
160
|
+
}, {
|
|
161
|
+
readonly inputs: readonly [];
|
|
162
|
+
readonly name: "ZkLighter_InvalidAssetConfigParams";
|
|
163
|
+
readonly type: "error";
|
|
164
|
+
}, {
|
|
165
|
+
readonly inputs: readonly [];
|
|
166
|
+
readonly name: "ZkLighter_InvalidAssetIndex";
|
|
167
|
+
readonly type: "error";
|
|
168
|
+
}, {
|
|
169
|
+
readonly inputs: readonly [];
|
|
170
|
+
readonly name: "ZkLighter_InvalidBatchSize";
|
|
171
|
+
readonly type: "error";
|
|
172
|
+
}, {
|
|
173
|
+
readonly inputs: readonly [];
|
|
174
|
+
readonly name: "ZkLighter_InvalidBlobCommitmentParams";
|
|
175
|
+
readonly type: "error";
|
|
176
|
+
}, {
|
|
177
|
+
readonly inputs: readonly [{
|
|
178
|
+
readonly internalType: "uint256";
|
|
179
|
+
readonly name: "";
|
|
180
|
+
readonly type: "uint256";
|
|
181
|
+
}];
|
|
182
|
+
readonly name: "ZkLighter_InvalidBlobCount";
|
|
183
|
+
readonly type: "error";
|
|
184
|
+
}, {
|
|
185
|
+
readonly inputs: readonly [];
|
|
186
|
+
readonly name: "ZkLighter_InvalidInitializeParameters";
|
|
187
|
+
readonly type: "error";
|
|
188
|
+
}, {
|
|
189
|
+
readonly inputs: readonly [];
|
|
190
|
+
readonly name: "ZkLighter_InvalidPointEvaluationParams";
|
|
191
|
+
readonly type: "error";
|
|
192
|
+
}, {
|
|
193
|
+
readonly inputs: readonly [];
|
|
194
|
+
readonly name: "ZkLighter_InvalidPubDataLength";
|
|
195
|
+
readonly type: "error";
|
|
196
|
+
}, {
|
|
197
|
+
readonly inputs: readonly [];
|
|
198
|
+
readonly name: "ZkLighter_InvalidPubDataMode";
|
|
199
|
+
readonly type: "error";
|
|
200
|
+
}, {
|
|
201
|
+
readonly inputs: readonly [];
|
|
202
|
+
readonly name: "ZkLighter_InvalidPubDataType";
|
|
203
|
+
readonly type: "error";
|
|
204
|
+
}, {
|
|
205
|
+
readonly inputs: readonly [];
|
|
206
|
+
readonly name: "ZkLighter_InvalidUpgradeParameters";
|
|
207
|
+
readonly type: "error";
|
|
208
|
+
}, {
|
|
209
|
+
readonly inputs: readonly [];
|
|
210
|
+
readonly name: "ZkLighter_InvalidWithdrawAmount";
|
|
211
|
+
readonly type: "error";
|
|
212
|
+
}, {
|
|
213
|
+
readonly inputs: readonly [];
|
|
214
|
+
readonly name: "ZkLighter_NonIncreasingBlockNumber";
|
|
215
|
+
readonly type: "error";
|
|
216
|
+
}, {
|
|
217
|
+
readonly inputs: readonly [];
|
|
218
|
+
readonly name: "ZkLighter_NonIncreasingTimestamp";
|
|
219
|
+
readonly type: "error";
|
|
220
|
+
}, {
|
|
221
|
+
readonly inputs: readonly [];
|
|
222
|
+
readonly name: "ZkLighter_OnChainOperationsHashMismatch";
|
|
223
|
+
readonly type: "error";
|
|
224
|
+
}, {
|
|
225
|
+
readonly inputs: readonly [];
|
|
226
|
+
readonly name: "ZkLighter_OnlyProxyCanCallUpgrade";
|
|
227
|
+
readonly type: "error";
|
|
228
|
+
}, {
|
|
229
|
+
readonly inputs: readonly [];
|
|
230
|
+
readonly name: "ZkLighter_OnlyZkLighter";
|
|
231
|
+
readonly type: "error";
|
|
232
|
+
}, {
|
|
233
|
+
readonly inputs: readonly [];
|
|
234
|
+
readonly name: "ZkLighter_PriorityRequestPrefixHashMismatch";
|
|
235
|
+
readonly type: "error";
|
|
236
|
+
}, {
|
|
237
|
+
readonly inputs: readonly [];
|
|
238
|
+
readonly name: "ZkLighter_RollUpBalanceBiggerThanMaxAmount";
|
|
239
|
+
readonly type: "error";
|
|
240
|
+
}, {
|
|
241
|
+
readonly inputs: readonly [];
|
|
242
|
+
readonly name: "ZkLighter_StoredBatchInfoMismatch";
|
|
243
|
+
readonly type: "error";
|
|
244
|
+
}, {
|
|
245
|
+
readonly inputs: readonly [];
|
|
246
|
+
readonly name: "ZkLighter_TransferredAmountNotMultipleOfTickSize";
|
|
247
|
+
readonly type: "error";
|
|
248
|
+
}, {
|
|
249
|
+
readonly inputs: readonly [];
|
|
250
|
+
readonly name: "ZkLighter_TreasuryCannotBeInUse";
|
|
251
|
+
readonly type: "error";
|
|
252
|
+
}, {
|
|
253
|
+
readonly inputs: readonly [];
|
|
254
|
+
readonly name: "ZkLighter_TreasuryCannotBeZero";
|
|
255
|
+
readonly type: "error";
|
|
256
|
+
}, {
|
|
257
|
+
readonly inputs: readonly [];
|
|
258
|
+
readonly name: "ZkLighter_VerifyBatchNotInOrder";
|
|
259
|
+
readonly type: "error";
|
|
260
|
+
}, {
|
|
261
|
+
readonly inputs: readonly [];
|
|
262
|
+
readonly name: "ZkLighter_VerifyBatchProofFailed";
|
|
263
|
+
readonly type: "error";
|
|
264
|
+
}, {
|
|
265
|
+
readonly anonymous: false;
|
|
266
|
+
readonly inputs: readonly [{
|
|
267
|
+
readonly indexed: false;
|
|
268
|
+
readonly internalType: "uint64";
|
|
269
|
+
readonly name: "batchNumber";
|
|
270
|
+
readonly type: "uint64";
|
|
271
|
+
}, {
|
|
272
|
+
readonly indexed: false;
|
|
273
|
+
readonly internalType: "uint32";
|
|
274
|
+
readonly name: "batchSize";
|
|
275
|
+
readonly type: "uint32";
|
|
276
|
+
}, {
|
|
277
|
+
readonly indexed: false;
|
|
278
|
+
readonly internalType: "uint64";
|
|
279
|
+
readonly name: "endBlockNumber";
|
|
280
|
+
readonly type: "uint64";
|
|
281
|
+
}];
|
|
282
|
+
readonly name: "BatchCommit";
|
|
283
|
+
readonly type: "event";
|
|
284
|
+
}, {
|
|
285
|
+
readonly anonymous: false;
|
|
286
|
+
readonly inputs: readonly [{
|
|
287
|
+
readonly indexed: false;
|
|
288
|
+
readonly internalType: "uint64";
|
|
289
|
+
readonly name: "batchNumber";
|
|
290
|
+
readonly type: "uint64";
|
|
291
|
+
}, {
|
|
292
|
+
readonly indexed: false;
|
|
293
|
+
readonly internalType: "uint32";
|
|
294
|
+
readonly name: "batchSize";
|
|
295
|
+
readonly type: "uint32";
|
|
296
|
+
}, {
|
|
297
|
+
readonly indexed: false;
|
|
298
|
+
readonly internalType: "uint64";
|
|
299
|
+
readonly name: "endBlockNumber";
|
|
300
|
+
readonly type: "uint64";
|
|
301
|
+
}];
|
|
302
|
+
readonly name: "BatchVerification";
|
|
303
|
+
readonly type: "event";
|
|
304
|
+
}, {
|
|
305
|
+
readonly anonymous: false;
|
|
306
|
+
readonly inputs: readonly [{
|
|
307
|
+
readonly indexed: false;
|
|
308
|
+
readonly internalType: "uint64";
|
|
309
|
+
readonly name: "batchNumber";
|
|
310
|
+
readonly type: "uint64";
|
|
311
|
+
}, {
|
|
312
|
+
readonly indexed: false;
|
|
313
|
+
readonly internalType: "uint64";
|
|
314
|
+
readonly name: "endBlockNumber";
|
|
315
|
+
readonly type: "uint64";
|
|
316
|
+
}];
|
|
317
|
+
readonly name: "BatchesExecuted";
|
|
318
|
+
readonly type: "event";
|
|
319
|
+
}, {
|
|
320
|
+
readonly anonymous: false;
|
|
321
|
+
readonly inputs: readonly [{
|
|
322
|
+
readonly indexed: false;
|
|
323
|
+
readonly internalType: "uint64";
|
|
324
|
+
readonly name: "newTotalBlocksCommitted";
|
|
325
|
+
readonly type: "uint64";
|
|
326
|
+
}];
|
|
327
|
+
readonly name: "BatchesRevert";
|
|
328
|
+
readonly type: "event";
|
|
329
|
+
}, {
|
|
330
|
+
readonly anonymous: false;
|
|
331
|
+
readonly inputs: readonly [{
|
|
332
|
+
readonly components: readonly [{
|
|
333
|
+
readonly internalType: "uint16";
|
|
334
|
+
readonly name: "marketIndex";
|
|
335
|
+
readonly type: "uint16";
|
|
336
|
+
}, {
|
|
337
|
+
readonly internalType: "enum TxTypes.MarketType";
|
|
338
|
+
readonly name: "marketType";
|
|
339
|
+
readonly type: "uint8";
|
|
340
|
+
}, {
|
|
341
|
+
readonly internalType: "bytes";
|
|
342
|
+
readonly name: "marketData";
|
|
343
|
+
readonly type: "bytes";
|
|
344
|
+
}];
|
|
345
|
+
readonly indexed: false;
|
|
346
|
+
readonly internalType: "struct TxTypes.CreateMarket";
|
|
347
|
+
readonly name: "params";
|
|
348
|
+
readonly type: "tuple";
|
|
349
|
+
}, {
|
|
350
|
+
readonly indexed: false;
|
|
351
|
+
readonly internalType: "uint8";
|
|
352
|
+
readonly name: "sizeDecimals";
|
|
353
|
+
readonly type: "uint8";
|
|
354
|
+
}, {
|
|
355
|
+
readonly indexed: false;
|
|
356
|
+
readonly internalType: "uint8";
|
|
357
|
+
readonly name: "priceDecimals";
|
|
358
|
+
readonly type: "uint8";
|
|
359
|
+
}, {
|
|
360
|
+
readonly indexed: false;
|
|
361
|
+
readonly internalType: "bytes32";
|
|
362
|
+
readonly name: "symbol";
|
|
363
|
+
readonly type: "bytes32";
|
|
364
|
+
}];
|
|
365
|
+
readonly name: "CreateMarket";
|
|
366
|
+
readonly type: "event";
|
|
367
|
+
}, {
|
|
368
|
+
readonly anonymous: false;
|
|
369
|
+
readonly inputs: readonly [{
|
|
370
|
+
readonly indexed: false;
|
|
371
|
+
readonly internalType: "uint48";
|
|
372
|
+
readonly name: "toAccountIndex";
|
|
373
|
+
readonly type: "uint48";
|
|
374
|
+
}, {
|
|
375
|
+
readonly indexed: false;
|
|
376
|
+
readonly internalType: "address";
|
|
377
|
+
readonly name: "toAddress";
|
|
378
|
+
readonly type: "address";
|
|
379
|
+
}, {
|
|
380
|
+
readonly indexed: false;
|
|
381
|
+
readonly internalType: "uint16";
|
|
382
|
+
readonly name: "assetIndex";
|
|
383
|
+
readonly type: "uint16";
|
|
384
|
+
}, {
|
|
385
|
+
readonly indexed: false;
|
|
386
|
+
readonly internalType: "enum TxTypes.RouteType";
|
|
387
|
+
readonly name: "routeType";
|
|
388
|
+
readonly type: "uint8";
|
|
389
|
+
}, {
|
|
390
|
+
readonly indexed: false;
|
|
391
|
+
readonly internalType: "uint128";
|
|
392
|
+
readonly name: "baseAmount";
|
|
393
|
+
readonly type: "uint128";
|
|
394
|
+
}];
|
|
395
|
+
readonly name: "Deposit";
|
|
396
|
+
readonly type: "event";
|
|
397
|
+
}, {
|
|
398
|
+
readonly anonymous: false;
|
|
399
|
+
readonly inputs: readonly [];
|
|
400
|
+
readonly name: "DesertMode";
|
|
401
|
+
readonly type: "event";
|
|
402
|
+
}, {
|
|
403
|
+
readonly anonymous: false;
|
|
404
|
+
readonly inputs: readonly [{
|
|
405
|
+
readonly indexed: false;
|
|
406
|
+
readonly internalType: "uint8";
|
|
407
|
+
readonly name: "version";
|
|
408
|
+
readonly type: "uint8";
|
|
409
|
+
}];
|
|
410
|
+
readonly name: "Initialized";
|
|
411
|
+
readonly type: "event";
|
|
412
|
+
}, {
|
|
413
|
+
readonly anonymous: false;
|
|
414
|
+
readonly inputs: readonly [{
|
|
415
|
+
readonly indexed: false;
|
|
416
|
+
readonly internalType: "address";
|
|
417
|
+
readonly name: "newInsuranceFundOperator";
|
|
418
|
+
readonly type: "address";
|
|
419
|
+
}];
|
|
420
|
+
readonly name: "InsuranceFundOperatorUpdate";
|
|
421
|
+
readonly type: "event";
|
|
422
|
+
}, {
|
|
423
|
+
readonly anonymous: false;
|
|
424
|
+
readonly inputs: readonly [{
|
|
425
|
+
readonly indexed: false;
|
|
426
|
+
readonly internalType: "address";
|
|
427
|
+
readonly name: "sender";
|
|
428
|
+
readonly type: "address";
|
|
429
|
+
}, {
|
|
430
|
+
readonly indexed: false;
|
|
431
|
+
readonly internalType: "uint64";
|
|
432
|
+
readonly name: "serialId";
|
|
433
|
+
readonly type: "uint64";
|
|
434
|
+
}, {
|
|
435
|
+
readonly indexed: false;
|
|
436
|
+
readonly internalType: "uint8";
|
|
437
|
+
readonly name: "pubdataType";
|
|
438
|
+
readonly type: "uint8";
|
|
439
|
+
}, {
|
|
440
|
+
readonly indexed: false;
|
|
441
|
+
readonly internalType: "bytes";
|
|
442
|
+
readonly name: "pubData";
|
|
443
|
+
readonly type: "bytes";
|
|
444
|
+
}, {
|
|
445
|
+
readonly indexed: false;
|
|
446
|
+
readonly internalType: "uint64";
|
|
447
|
+
readonly name: "expirationTimestamp";
|
|
448
|
+
readonly type: "uint64";
|
|
449
|
+
}];
|
|
450
|
+
readonly name: "NewPriorityRequest";
|
|
451
|
+
readonly type: "event";
|
|
452
|
+
}, {
|
|
453
|
+
readonly anonymous: false;
|
|
454
|
+
readonly inputs: readonly [{
|
|
455
|
+
readonly indexed: false;
|
|
456
|
+
readonly internalType: "uint16";
|
|
457
|
+
readonly name: "assetIndex";
|
|
458
|
+
readonly type: "uint16";
|
|
459
|
+
}, {
|
|
460
|
+
readonly indexed: false;
|
|
461
|
+
readonly internalType: "address";
|
|
462
|
+
readonly name: "tokenAddress";
|
|
463
|
+
readonly type: "address";
|
|
464
|
+
}, {
|
|
465
|
+
readonly indexed: false;
|
|
466
|
+
readonly internalType: "uint8";
|
|
467
|
+
readonly name: "withdrawalsEnabled";
|
|
468
|
+
readonly type: "uint8";
|
|
469
|
+
}, {
|
|
470
|
+
readonly indexed: false;
|
|
471
|
+
readonly internalType: "uint56";
|
|
472
|
+
readonly name: "extensionMultiplier";
|
|
473
|
+
readonly type: "uint56";
|
|
474
|
+
}, {
|
|
475
|
+
readonly indexed: false;
|
|
476
|
+
readonly internalType: "uint128";
|
|
477
|
+
readonly name: "tickSize";
|
|
478
|
+
readonly type: "uint128";
|
|
479
|
+
}, {
|
|
480
|
+
readonly indexed: false;
|
|
481
|
+
readonly internalType: "uint64";
|
|
482
|
+
readonly name: "depositCapTicks";
|
|
483
|
+
readonly type: "uint64";
|
|
484
|
+
}, {
|
|
485
|
+
readonly indexed: false;
|
|
486
|
+
readonly internalType: "uint64";
|
|
487
|
+
readonly name: "minDepositTicks";
|
|
488
|
+
readonly type: "uint64";
|
|
489
|
+
}];
|
|
490
|
+
readonly name: "RegisterAssetConfig";
|
|
491
|
+
readonly type: "event";
|
|
492
|
+
}, {
|
|
493
|
+
readonly anonymous: false;
|
|
494
|
+
readonly inputs: readonly [{
|
|
495
|
+
readonly indexed: false;
|
|
496
|
+
readonly internalType: "uint64";
|
|
497
|
+
readonly name: "batchNumber";
|
|
498
|
+
readonly type: "uint64";
|
|
499
|
+
}, {
|
|
500
|
+
readonly indexed: false;
|
|
501
|
+
readonly internalType: "bytes32";
|
|
502
|
+
readonly name: "oldStateRoot";
|
|
503
|
+
readonly type: "bytes32";
|
|
504
|
+
}, {
|
|
505
|
+
readonly indexed: false;
|
|
506
|
+
readonly internalType: "bytes32";
|
|
507
|
+
readonly name: "newStateRoot";
|
|
508
|
+
readonly type: "bytes32";
|
|
509
|
+
}];
|
|
510
|
+
readonly name: "StateRootUpdate";
|
|
511
|
+
readonly type: "event";
|
|
512
|
+
}, {
|
|
513
|
+
readonly anonymous: false;
|
|
514
|
+
readonly inputs: readonly [{
|
|
515
|
+
readonly indexed: false;
|
|
516
|
+
readonly internalType: "address";
|
|
517
|
+
readonly name: "newTreasury";
|
|
518
|
+
readonly type: "address";
|
|
519
|
+
}];
|
|
520
|
+
readonly name: "TreasuryUpdate";
|
|
521
|
+
readonly type: "event";
|
|
522
|
+
}, {
|
|
523
|
+
readonly anonymous: false;
|
|
524
|
+
readonly inputs: readonly [{
|
|
525
|
+
readonly indexed: false;
|
|
526
|
+
readonly internalType: "uint16";
|
|
527
|
+
readonly name: "assetIndex";
|
|
528
|
+
readonly type: "uint16";
|
|
529
|
+
}, {
|
|
530
|
+
readonly indexed: false;
|
|
531
|
+
readonly internalType: "uint8";
|
|
532
|
+
readonly name: "withdrawalsEnabled";
|
|
533
|
+
readonly type: "uint8";
|
|
534
|
+
}, {
|
|
535
|
+
readonly indexed: false;
|
|
536
|
+
readonly internalType: "uint64";
|
|
537
|
+
readonly name: "depositCapTicks";
|
|
538
|
+
readonly type: "uint64";
|
|
539
|
+
}, {
|
|
540
|
+
readonly indexed: false;
|
|
541
|
+
readonly internalType: "uint64";
|
|
542
|
+
readonly name: "minDepositTicks";
|
|
543
|
+
readonly type: "uint64";
|
|
544
|
+
}];
|
|
545
|
+
readonly name: "UpdateAssetConfig";
|
|
546
|
+
readonly type: "event";
|
|
547
|
+
}, {
|
|
548
|
+
readonly anonymous: false;
|
|
549
|
+
readonly inputs: readonly [{
|
|
550
|
+
readonly components: readonly [{
|
|
551
|
+
readonly internalType: "uint16";
|
|
552
|
+
readonly name: "marketIndex";
|
|
553
|
+
readonly type: "uint16";
|
|
554
|
+
}, {
|
|
555
|
+
readonly internalType: "enum TxTypes.MarketType";
|
|
556
|
+
readonly name: "marketType";
|
|
557
|
+
readonly type: "uint8";
|
|
558
|
+
}, {
|
|
559
|
+
readonly internalType: "bytes";
|
|
560
|
+
readonly name: "marketData";
|
|
561
|
+
readonly type: "bytes";
|
|
562
|
+
}];
|
|
563
|
+
readonly indexed: false;
|
|
564
|
+
readonly internalType: "struct TxTypes.UpdateMarket";
|
|
565
|
+
readonly name: "params";
|
|
566
|
+
readonly type: "tuple";
|
|
567
|
+
}];
|
|
568
|
+
readonly name: "UpdateMarket";
|
|
569
|
+
readonly type: "event";
|
|
570
|
+
}, {
|
|
571
|
+
readonly anonymous: false;
|
|
572
|
+
readonly inputs: readonly [{
|
|
573
|
+
readonly indexed: true;
|
|
574
|
+
readonly internalType: "address";
|
|
575
|
+
readonly name: "owner";
|
|
576
|
+
readonly type: "address";
|
|
577
|
+
}, {
|
|
578
|
+
readonly indexed: false;
|
|
579
|
+
readonly internalType: "uint16";
|
|
580
|
+
readonly name: "assetIndex";
|
|
581
|
+
readonly type: "uint16";
|
|
582
|
+
}, {
|
|
583
|
+
readonly indexed: false;
|
|
584
|
+
readonly internalType: "uint128";
|
|
585
|
+
readonly name: "baseAmount";
|
|
586
|
+
readonly type: "uint128";
|
|
587
|
+
}];
|
|
588
|
+
readonly name: "WithdrawPending";
|
|
589
|
+
readonly type: "event";
|
|
590
|
+
}, {
|
|
591
|
+
readonly inputs: readonly [];
|
|
592
|
+
readonly name: "MAX_ACCOUNT_INDEX";
|
|
593
|
+
readonly outputs: readonly [{
|
|
594
|
+
readonly internalType: "uint48";
|
|
595
|
+
readonly name: "";
|
|
596
|
+
readonly type: "uint48";
|
|
597
|
+
}];
|
|
598
|
+
readonly stateMutability: "view";
|
|
599
|
+
readonly type: "function";
|
|
600
|
+
}, {
|
|
601
|
+
readonly inputs: readonly [];
|
|
602
|
+
readonly name: "MAX_API_KEY_INDEX";
|
|
603
|
+
readonly outputs: readonly [{
|
|
604
|
+
readonly internalType: "uint8";
|
|
605
|
+
readonly name: "";
|
|
606
|
+
readonly type: "uint8";
|
|
607
|
+
}];
|
|
608
|
+
readonly stateMutability: "view";
|
|
609
|
+
readonly type: "function";
|
|
610
|
+
}, {
|
|
611
|
+
readonly inputs: readonly [];
|
|
612
|
+
readonly name: "MAX_ASSET_INDEX";
|
|
613
|
+
readonly outputs: readonly [{
|
|
614
|
+
readonly internalType: "uint16";
|
|
615
|
+
readonly name: "";
|
|
616
|
+
readonly type: "uint16";
|
|
617
|
+
}];
|
|
618
|
+
readonly stateMutability: "view";
|
|
619
|
+
readonly type: "function";
|
|
620
|
+
}, {
|
|
621
|
+
readonly inputs: readonly [];
|
|
622
|
+
readonly name: "MAX_BATCH_DEPOSIT_LENGTH";
|
|
623
|
+
readonly outputs: readonly [{
|
|
624
|
+
readonly internalType: "uint64";
|
|
625
|
+
readonly name: "";
|
|
626
|
+
readonly type: "uint64";
|
|
627
|
+
}];
|
|
628
|
+
readonly stateMutability: "view";
|
|
629
|
+
readonly type: "function";
|
|
630
|
+
}, {
|
|
631
|
+
readonly inputs: readonly [];
|
|
632
|
+
readonly name: "MAX_DEPOSIT_CAP_TICKS";
|
|
633
|
+
readonly outputs: readonly [{
|
|
634
|
+
readonly internalType: "uint64";
|
|
635
|
+
readonly name: "";
|
|
636
|
+
readonly type: "uint64";
|
|
637
|
+
}];
|
|
638
|
+
readonly stateMutability: "view";
|
|
639
|
+
readonly type: "function";
|
|
640
|
+
}, {
|
|
641
|
+
readonly inputs: readonly [];
|
|
642
|
+
readonly name: "MAX_MASTER_ACCOUNT_INDEX";
|
|
643
|
+
readonly outputs: readonly [{
|
|
644
|
+
readonly internalType: "uint48";
|
|
645
|
+
readonly name: "";
|
|
646
|
+
readonly type: "uint48";
|
|
647
|
+
}];
|
|
648
|
+
readonly stateMutability: "view";
|
|
649
|
+
readonly type: "function";
|
|
650
|
+
}, {
|
|
651
|
+
readonly inputs: readonly [];
|
|
652
|
+
readonly name: "MAX_ORDER_BASE_AMOUNT";
|
|
653
|
+
readonly outputs: readonly [{
|
|
654
|
+
readonly internalType: "uint48";
|
|
655
|
+
readonly name: "";
|
|
656
|
+
readonly type: "uint48";
|
|
657
|
+
}];
|
|
658
|
+
readonly stateMutability: "view";
|
|
659
|
+
readonly type: "function";
|
|
660
|
+
}, {
|
|
661
|
+
readonly inputs: readonly [];
|
|
662
|
+
readonly name: "MAX_ORDER_PRICE";
|
|
663
|
+
readonly outputs: readonly [{
|
|
664
|
+
readonly internalType: "uint32";
|
|
665
|
+
readonly name: "";
|
|
666
|
+
readonly type: "uint32";
|
|
667
|
+
}];
|
|
668
|
+
readonly stateMutability: "view";
|
|
669
|
+
readonly type: "function";
|
|
670
|
+
}, {
|
|
671
|
+
readonly inputs: readonly [];
|
|
672
|
+
readonly name: "MAX_ORDER_QUOTE_AMOUNT";
|
|
673
|
+
readonly outputs: readonly [{
|
|
674
|
+
readonly internalType: "uint48";
|
|
675
|
+
readonly name: "";
|
|
676
|
+
readonly type: "uint48";
|
|
677
|
+
}];
|
|
678
|
+
readonly stateMutability: "view";
|
|
679
|
+
readonly type: "function";
|
|
680
|
+
}, {
|
|
681
|
+
readonly inputs: readonly [];
|
|
682
|
+
readonly name: "MAX_PERPS_MARKET_INDEX";
|
|
683
|
+
readonly outputs: readonly [{
|
|
684
|
+
readonly internalType: "uint16";
|
|
685
|
+
readonly name: "";
|
|
686
|
+
readonly type: "uint16";
|
|
687
|
+
}];
|
|
688
|
+
readonly stateMutability: "view";
|
|
689
|
+
readonly type: "function";
|
|
690
|
+
}, {
|
|
691
|
+
readonly inputs: readonly [];
|
|
692
|
+
readonly name: "MAX_POOL_SHARES_TO_MINT_OR_BURN";
|
|
693
|
+
readonly outputs: readonly [{
|
|
694
|
+
readonly internalType: "uint64";
|
|
695
|
+
readonly name: "";
|
|
696
|
+
readonly type: "uint64";
|
|
697
|
+
}];
|
|
698
|
+
readonly stateMutability: "view";
|
|
699
|
+
readonly type: "function";
|
|
700
|
+
}, {
|
|
701
|
+
readonly inputs: readonly [];
|
|
702
|
+
readonly name: "MAX_SPOT_MARKET_INDEX";
|
|
703
|
+
readonly outputs: readonly [{
|
|
704
|
+
readonly internalType: "uint16";
|
|
705
|
+
readonly name: "";
|
|
706
|
+
readonly type: "uint16";
|
|
707
|
+
}];
|
|
708
|
+
readonly stateMutability: "view";
|
|
709
|
+
readonly type: "function";
|
|
710
|
+
}, {
|
|
711
|
+
readonly inputs: readonly [];
|
|
712
|
+
readonly name: "MAX_STAKING_SHARES_TO_MINT_OR_BURN";
|
|
713
|
+
readonly outputs: readonly [{
|
|
714
|
+
readonly internalType: "uint64";
|
|
715
|
+
readonly name: "";
|
|
716
|
+
readonly type: "uint64";
|
|
717
|
+
}];
|
|
718
|
+
readonly stateMutability: "view";
|
|
719
|
+
readonly type: "function";
|
|
720
|
+
}, {
|
|
721
|
+
readonly inputs: readonly [];
|
|
722
|
+
readonly name: "MAX_TICK_SIZE";
|
|
723
|
+
readonly outputs: readonly [{
|
|
724
|
+
readonly internalType: "uint128";
|
|
725
|
+
readonly name: "";
|
|
726
|
+
readonly type: "uint128";
|
|
727
|
+
}];
|
|
728
|
+
readonly stateMutability: "view";
|
|
729
|
+
readonly type: "function";
|
|
730
|
+
}, {
|
|
731
|
+
readonly inputs: readonly [];
|
|
732
|
+
readonly name: "MIN_ASSET_INDEX";
|
|
733
|
+
readonly outputs: readonly [{
|
|
734
|
+
readonly internalType: "uint16";
|
|
735
|
+
readonly name: "";
|
|
736
|
+
readonly type: "uint16";
|
|
737
|
+
}];
|
|
738
|
+
readonly stateMutability: "view";
|
|
739
|
+
readonly type: "function";
|
|
740
|
+
}, {
|
|
741
|
+
readonly inputs: readonly [];
|
|
742
|
+
readonly name: "MIN_ORDER_PRICE";
|
|
743
|
+
readonly outputs: readonly [{
|
|
744
|
+
readonly internalType: "uint32";
|
|
745
|
+
readonly name: "";
|
|
746
|
+
readonly type: "uint32";
|
|
747
|
+
}];
|
|
748
|
+
readonly stateMutability: "view";
|
|
749
|
+
readonly type: "function";
|
|
750
|
+
}, {
|
|
751
|
+
readonly inputs: readonly [];
|
|
752
|
+
readonly name: "MIN_POOL_SHARES_TO_MINT_OR_BURN";
|
|
753
|
+
readonly outputs: readonly [{
|
|
754
|
+
readonly internalType: "uint64";
|
|
755
|
+
readonly name: "";
|
|
756
|
+
readonly type: "uint64";
|
|
757
|
+
}];
|
|
758
|
+
readonly stateMutability: "view";
|
|
759
|
+
readonly type: "function";
|
|
760
|
+
}, {
|
|
761
|
+
readonly inputs: readonly [];
|
|
762
|
+
readonly name: "MIN_SPOT_MARKET_INDEX";
|
|
763
|
+
readonly outputs: readonly [{
|
|
764
|
+
readonly internalType: "uint16";
|
|
765
|
+
readonly name: "";
|
|
766
|
+
readonly type: "uint16";
|
|
767
|
+
}];
|
|
768
|
+
readonly stateMutability: "view";
|
|
769
|
+
readonly type: "function";
|
|
770
|
+
}, {
|
|
771
|
+
readonly inputs: readonly [];
|
|
772
|
+
readonly name: "MIN_STAKING_SHARES_TO_MINT_OR_BURN";
|
|
773
|
+
readonly outputs: readonly [{
|
|
774
|
+
readonly internalType: "uint64";
|
|
775
|
+
readonly name: "";
|
|
776
|
+
readonly type: "uint64";
|
|
777
|
+
}];
|
|
778
|
+
readonly stateMutability: "view";
|
|
779
|
+
readonly type: "function";
|
|
780
|
+
}, {
|
|
781
|
+
readonly inputs: readonly [];
|
|
782
|
+
readonly name: "NATIVE_ASSET_INDEX";
|
|
783
|
+
readonly outputs: readonly [{
|
|
784
|
+
readonly internalType: "uint16";
|
|
785
|
+
readonly name: "";
|
|
786
|
+
readonly type: "uint16";
|
|
787
|
+
}];
|
|
788
|
+
readonly stateMutability: "view";
|
|
789
|
+
readonly type: "function";
|
|
790
|
+
}, {
|
|
791
|
+
readonly inputs: readonly [];
|
|
792
|
+
readonly name: "NIL_ACCOUNT_INDEX";
|
|
793
|
+
readonly outputs: readonly [{
|
|
794
|
+
readonly internalType: "uint48";
|
|
795
|
+
readonly name: "";
|
|
796
|
+
readonly type: "uint48";
|
|
797
|
+
}];
|
|
798
|
+
readonly stateMutability: "view";
|
|
799
|
+
readonly type: "function";
|
|
800
|
+
}, {
|
|
801
|
+
readonly inputs: readonly [];
|
|
802
|
+
readonly name: "PRIORITY_EXPIRATION";
|
|
803
|
+
readonly outputs: readonly [{
|
|
804
|
+
readonly internalType: "uint256";
|
|
805
|
+
readonly name: "";
|
|
806
|
+
readonly type: "uint256";
|
|
807
|
+
}];
|
|
808
|
+
readonly stateMutability: "view";
|
|
809
|
+
readonly type: "function";
|
|
810
|
+
}, {
|
|
811
|
+
readonly inputs: readonly [];
|
|
812
|
+
readonly name: "USDC_ASSET_INDEX";
|
|
813
|
+
readonly outputs: readonly [{
|
|
814
|
+
readonly internalType: "uint16";
|
|
815
|
+
readonly name: "";
|
|
816
|
+
readonly type: "uint16";
|
|
817
|
+
}];
|
|
818
|
+
readonly stateMutability: "view";
|
|
819
|
+
readonly type: "function";
|
|
820
|
+
}, {
|
|
821
|
+
readonly inputs: readonly [{
|
|
822
|
+
readonly internalType: "uint64";
|
|
823
|
+
readonly name: "";
|
|
824
|
+
readonly type: "uint64";
|
|
825
|
+
}];
|
|
826
|
+
readonly name: "__DEPRECATED_stateRootUpdates";
|
|
827
|
+
readonly outputs: readonly [{
|
|
828
|
+
readonly internalType: "bytes32";
|
|
829
|
+
readonly name: "";
|
|
830
|
+
readonly type: "bytes32";
|
|
831
|
+
}];
|
|
832
|
+
readonly stateMutability: "view";
|
|
833
|
+
readonly type: "function";
|
|
834
|
+
}, {
|
|
835
|
+
readonly inputs: readonly [];
|
|
836
|
+
readonly name: "activateDesertMode";
|
|
837
|
+
readonly outputs: readonly [{
|
|
838
|
+
readonly internalType: "bool";
|
|
839
|
+
readonly name: "";
|
|
840
|
+
readonly type: "bool";
|
|
841
|
+
}];
|
|
842
|
+
readonly stateMutability: "nonpayable";
|
|
843
|
+
readonly type: "function";
|
|
844
|
+
}, {
|
|
845
|
+
readonly inputs: readonly [{
|
|
846
|
+
readonly internalType: "address";
|
|
847
|
+
readonly name: "";
|
|
848
|
+
readonly type: "address";
|
|
849
|
+
}];
|
|
850
|
+
readonly name: "addressToAccountIndex";
|
|
851
|
+
readonly outputs: readonly [{
|
|
852
|
+
readonly internalType: "uint48";
|
|
853
|
+
readonly name: "";
|
|
854
|
+
readonly type: "uint48";
|
|
855
|
+
}];
|
|
856
|
+
readonly stateMutability: "view";
|
|
857
|
+
readonly type: "function";
|
|
858
|
+
}, {
|
|
859
|
+
readonly inputs: readonly [{
|
|
860
|
+
readonly internalType: "uint16";
|
|
861
|
+
readonly name: "";
|
|
862
|
+
readonly type: "uint16";
|
|
863
|
+
}];
|
|
864
|
+
readonly name: "assetConfigs";
|
|
865
|
+
readonly outputs: readonly [{
|
|
866
|
+
readonly internalType: "address";
|
|
867
|
+
readonly name: "tokenAddress";
|
|
868
|
+
readonly type: "address";
|
|
869
|
+
}, {
|
|
870
|
+
readonly internalType: "uint8";
|
|
871
|
+
readonly name: "withdrawalsEnabled";
|
|
872
|
+
readonly type: "uint8";
|
|
873
|
+
}, {
|
|
874
|
+
readonly internalType: "uint56";
|
|
875
|
+
readonly name: "extensionMultiplier";
|
|
876
|
+
readonly type: "uint56";
|
|
877
|
+
}, {
|
|
878
|
+
readonly internalType: "uint128";
|
|
879
|
+
readonly name: "tickSize";
|
|
880
|
+
readonly type: "uint128";
|
|
881
|
+
}, {
|
|
882
|
+
readonly internalType: "uint64";
|
|
883
|
+
readonly name: "depositCapTicks";
|
|
884
|
+
readonly type: "uint64";
|
|
885
|
+
}, {
|
|
886
|
+
readonly internalType: "uint64";
|
|
887
|
+
readonly name: "minDepositTicks";
|
|
888
|
+
readonly type: "uint64";
|
|
889
|
+
}];
|
|
890
|
+
readonly stateMutability: "view";
|
|
891
|
+
readonly type: "function";
|
|
892
|
+
}, {
|
|
893
|
+
readonly inputs: readonly [{
|
|
894
|
+
readonly internalType: "uint48";
|
|
895
|
+
readonly name: "_accountIndex";
|
|
896
|
+
readonly type: "uint48";
|
|
897
|
+
}, {
|
|
898
|
+
readonly internalType: "uint48";
|
|
899
|
+
readonly name: "_publicPoolIndex";
|
|
900
|
+
readonly type: "uint48";
|
|
901
|
+
}, {
|
|
902
|
+
readonly internalType: "uint64";
|
|
903
|
+
readonly name: "_shareAmount";
|
|
904
|
+
readonly type: "uint64";
|
|
905
|
+
}];
|
|
906
|
+
readonly name: "burnShares";
|
|
907
|
+
readonly outputs: readonly [];
|
|
908
|
+
readonly stateMutability: "nonpayable";
|
|
909
|
+
readonly type: "function";
|
|
910
|
+
}, {
|
|
911
|
+
readonly inputs: readonly [{
|
|
912
|
+
readonly internalType: "uint48";
|
|
913
|
+
readonly name: "_accountIndex";
|
|
914
|
+
readonly type: "uint48";
|
|
915
|
+
}];
|
|
916
|
+
readonly name: "cancelAllOrders";
|
|
917
|
+
readonly outputs: readonly [];
|
|
918
|
+
readonly stateMutability: "nonpayable";
|
|
919
|
+
readonly type: "function";
|
|
920
|
+
}, {
|
|
921
|
+
readonly inputs: readonly [{
|
|
922
|
+
readonly internalType: "uint64";
|
|
923
|
+
readonly name: "_n";
|
|
924
|
+
readonly type: "uint64";
|
|
925
|
+
}, {
|
|
926
|
+
readonly internalType: "bytes[]";
|
|
927
|
+
readonly name: "_priorityPubData";
|
|
928
|
+
readonly type: "bytes[]";
|
|
929
|
+
}];
|
|
930
|
+
readonly name: "cancelOutstandingDepositsForDesertMode";
|
|
931
|
+
readonly outputs: readonly [];
|
|
932
|
+
readonly stateMutability: "nonpayable";
|
|
933
|
+
readonly type: "function";
|
|
934
|
+
}, {
|
|
935
|
+
readonly inputs: readonly [{
|
|
936
|
+
readonly internalType: "uint48";
|
|
937
|
+
readonly name: "_accountIndex";
|
|
938
|
+
readonly type: "uint48";
|
|
939
|
+
}, {
|
|
940
|
+
readonly internalType: "uint8";
|
|
941
|
+
readonly name: "_apiKeyIndex";
|
|
942
|
+
readonly type: "uint8";
|
|
943
|
+
}, {
|
|
944
|
+
readonly internalType: "bytes";
|
|
945
|
+
readonly name: "_pubKey";
|
|
946
|
+
readonly type: "bytes";
|
|
947
|
+
}];
|
|
948
|
+
readonly name: "changePubKey";
|
|
949
|
+
readonly outputs: readonly [];
|
|
950
|
+
readonly stateMutability: "nonpayable";
|
|
951
|
+
readonly type: "function";
|
|
952
|
+
}, {
|
|
953
|
+
readonly inputs: readonly [{
|
|
954
|
+
readonly components: readonly [{
|
|
955
|
+
readonly internalType: "uint64";
|
|
956
|
+
readonly name: "endBlockNumber";
|
|
957
|
+
readonly type: "uint64";
|
|
958
|
+
}, {
|
|
959
|
+
readonly internalType: "uint32";
|
|
960
|
+
readonly name: "batchSize";
|
|
961
|
+
readonly type: "uint32";
|
|
962
|
+
}, {
|
|
963
|
+
readonly internalType: "uint64";
|
|
964
|
+
readonly name: "startTimestamp";
|
|
965
|
+
readonly type: "uint64";
|
|
966
|
+
}, {
|
|
967
|
+
readonly internalType: "uint64";
|
|
968
|
+
readonly name: "endTimestamp";
|
|
969
|
+
readonly type: "uint64";
|
|
970
|
+
}, {
|
|
971
|
+
readonly internalType: "uint32";
|
|
972
|
+
readonly name: "priorityRequestCount";
|
|
973
|
+
readonly type: "uint32";
|
|
974
|
+
}, {
|
|
975
|
+
readonly internalType: "bytes32";
|
|
976
|
+
readonly name: "prefixPriorityRequestHash";
|
|
977
|
+
readonly type: "bytes32";
|
|
978
|
+
}, {
|
|
979
|
+
readonly internalType: "bytes32";
|
|
980
|
+
readonly name: "onChainOperationsHash";
|
|
981
|
+
readonly type: "bytes32";
|
|
982
|
+
}, {
|
|
983
|
+
readonly internalType: "bytes32";
|
|
984
|
+
readonly name: "newStateRoot";
|
|
985
|
+
readonly type: "bytes32";
|
|
986
|
+
}, {
|
|
987
|
+
readonly internalType: "bytes32";
|
|
988
|
+
readonly name: "newValidiumRoot";
|
|
989
|
+
readonly type: "bytes32";
|
|
990
|
+
}, {
|
|
991
|
+
readonly internalType: "bytes";
|
|
992
|
+
readonly name: "pubdataCommitments";
|
|
993
|
+
readonly type: "bytes";
|
|
994
|
+
}];
|
|
995
|
+
readonly internalType: "struct IZkLighter.CommitBatchInfo";
|
|
996
|
+
readonly name: "newBatchData";
|
|
997
|
+
readonly type: "tuple";
|
|
998
|
+
}, {
|
|
999
|
+
readonly components: readonly [{
|
|
1000
|
+
readonly internalType: "uint64";
|
|
1001
|
+
readonly name: "batchNumber";
|
|
1002
|
+
readonly type: "uint64";
|
|
1003
|
+
}, {
|
|
1004
|
+
readonly internalType: "uint64";
|
|
1005
|
+
readonly name: "endBlockNumber";
|
|
1006
|
+
readonly type: "uint64";
|
|
1007
|
+
}, {
|
|
1008
|
+
readonly internalType: "uint32";
|
|
1009
|
+
readonly name: "batchSize";
|
|
1010
|
+
readonly type: "uint32";
|
|
1011
|
+
}, {
|
|
1012
|
+
readonly internalType: "uint64";
|
|
1013
|
+
readonly name: "startTimestamp";
|
|
1014
|
+
readonly type: "uint64";
|
|
1015
|
+
}, {
|
|
1016
|
+
readonly internalType: "uint64";
|
|
1017
|
+
readonly name: "endTimestamp";
|
|
1018
|
+
readonly type: "uint64";
|
|
1019
|
+
}, {
|
|
1020
|
+
readonly internalType: "uint32";
|
|
1021
|
+
readonly name: "priorityRequestCount";
|
|
1022
|
+
readonly type: "uint32";
|
|
1023
|
+
}, {
|
|
1024
|
+
readonly internalType: "bytes32";
|
|
1025
|
+
readonly name: "prefixPriorityRequestHash";
|
|
1026
|
+
readonly type: "bytes32";
|
|
1027
|
+
}, {
|
|
1028
|
+
readonly internalType: "bytes32";
|
|
1029
|
+
readonly name: "onChainOperationsHash";
|
|
1030
|
+
readonly type: "bytes32";
|
|
1031
|
+
}, {
|
|
1032
|
+
readonly internalType: "bytes32";
|
|
1033
|
+
readonly name: "stateRoot";
|
|
1034
|
+
readonly type: "bytes32";
|
|
1035
|
+
}, {
|
|
1036
|
+
readonly internalType: "bytes32";
|
|
1037
|
+
readonly name: "validiumRoot";
|
|
1038
|
+
readonly type: "bytes32";
|
|
1039
|
+
}, {
|
|
1040
|
+
readonly internalType: "bytes32";
|
|
1041
|
+
readonly name: "commitment";
|
|
1042
|
+
readonly type: "bytes32";
|
|
1043
|
+
}];
|
|
1044
|
+
readonly internalType: "struct Storage.StoredBatchInfo";
|
|
1045
|
+
readonly name: "lastStoredBatch";
|
|
1046
|
+
readonly type: "tuple";
|
|
1047
|
+
}];
|
|
1048
|
+
readonly name: "commitBatch";
|
|
1049
|
+
readonly outputs: readonly [];
|
|
1050
|
+
readonly stateMutability: "nonpayable";
|
|
1051
|
+
readonly type: "function";
|
|
1052
|
+
}, {
|
|
1053
|
+
readonly inputs: readonly [];
|
|
1054
|
+
readonly name: "committedBatchesCount";
|
|
1055
|
+
readonly outputs: readonly [{
|
|
1056
|
+
readonly internalType: "uint64";
|
|
1057
|
+
readonly name: "";
|
|
1058
|
+
readonly type: "uint64";
|
|
1059
|
+
}];
|
|
1060
|
+
readonly stateMutability: "view";
|
|
1061
|
+
readonly type: "function";
|
|
1062
|
+
}, {
|
|
1063
|
+
readonly inputs: readonly [];
|
|
1064
|
+
readonly name: "committedPriorityRequestCount";
|
|
1065
|
+
readonly outputs: readonly [{
|
|
1066
|
+
readonly internalType: "uint64";
|
|
1067
|
+
readonly name: "";
|
|
1068
|
+
readonly type: "uint64";
|
|
1069
|
+
}];
|
|
1070
|
+
readonly stateMutability: "view";
|
|
1071
|
+
readonly type: "function";
|
|
1072
|
+
}, {
|
|
1073
|
+
readonly inputs: readonly [{
|
|
1074
|
+
readonly internalType: "uint8";
|
|
1075
|
+
readonly name: "_size_decimals";
|
|
1076
|
+
readonly type: "uint8";
|
|
1077
|
+
}, {
|
|
1078
|
+
readonly internalType: "uint8";
|
|
1079
|
+
readonly name: "_price_decimals";
|
|
1080
|
+
readonly type: "uint8";
|
|
1081
|
+
}, {
|
|
1082
|
+
readonly internalType: "bytes32";
|
|
1083
|
+
readonly name: "_symbol";
|
|
1084
|
+
readonly type: "bytes32";
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly components: readonly [{
|
|
1087
|
+
readonly internalType: "uint16";
|
|
1088
|
+
readonly name: "marketIndex";
|
|
1089
|
+
readonly type: "uint16";
|
|
1090
|
+
}, {
|
|
1091
|
+
readonly internalType: "enum TxTypes.MarketType";
|
|
1092
|
+
readonly name: "marketType";
|
|
1093
|
+
readonly type: "uint8";
|
|
1094
|
+
}, {
|
|
1095
|
+
readonly internalType: "bytes";
|
|
1096
|
+
readonly name: "marketData";
|
|
1097
|
+
readonly type: "bytes";
|
|
1098
|
+
}];
|
|
1099
|
+
readonly internalType: "struct TxTypes.CreateMarket";
|
|
1100
|
+
readonly name: "_params";
|
|
1101
|
+
readonly type: "tuple";
|
|
1102
|
+
}];
|
|
1103
|
+
readonly name: "createMarket";
|
|
1104
|
+
readonly outputs: readonly [];
|
|
1105
|
+
readonly stateMutability: "nonpayable";
|
|
1106
|
+
readonly type: "function";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly inputs: readonly [{
|
|
1109
|
+
readonly internalType: "uint48";
|
|
1110
|
+
readonly name: "_accountIndex";
|
|
1111
|
+
readonly type: "uint48";
|
|
1112
|
+
}, {
|
|
1113
|
+
readonly internalType: "uint16";
|
|
1114
|
+
readonly name: "_marketIndex";
|
|
1115
|
+
readonly type: "uint16";
|
|
1116
|
+
}, {
|
|
1117
|
+
readonly internalType: "uint48";
|
|
1118
|
+
readonly name: "_baseAmount";
|
|
1119
|
+
readonly type: "uint48";
|
|
1120
|
+
}, {
|
|
1121
|
+
readonly internalType: "uint32";
|
|
1122
|
+
readonly name: "_price";
|
|
1123
|
+
readonly type: "uint32";
|
|
1124
|
+
}, {
|
|
1125
|
+
readonly internalType: "uint8";
|
|
1126
|
+
readonly name: "_isAsk";
|
|
1127
|
+
readonly type: "uint8";
|
|
1128
|
+
}, {
|
|
1129
|
+
readonly internalType: "uint8";
|
|
1130
|
+
readonly name: "_orderType";
|
|
1131
|
+
readonly type: "uint8";
|
|
1132
|
+
}];
|
|
1133
|
+
readonly name: "createOrder";
|
|
1134
|
+
readonly outputs: readonly [];
|
|
1135
|
+
readonly stateMutability: "nonpayable";
|
|
1136
|
+
readonly type: "function";
|
|
1137
|
+
}, {
|
|
1138
|
+
readonly inputs: readonly [{
|
|
1139
|
+
readonly internalType: "address";
|
|
1140
|
+
readonly name: "_to";
|
|
1141
|
+
readonly type: "address";
|
|
1142
|
+
}, {
|
|
1143
|
+
readonly internalType: "uint16";
|
|
1144
|
+
readonly name: "_assetIndex";
|
|
1145
|
+
readonly type: "uint16";
|
|
1146
|
+
}, {
|
|
1147
|
+
readonly internalType: "enum TxTypes.RouteType";
|
|
1148
|
+
readonly name: "_routeType";
|
|
1149
|
+
readonly type: "uint8";
|
|
1150
|
+
}, {
|
|
1151
|
+
readonly internalType: "uint256";
|
|
1152
|
+
readonly name: "_amount";
|
|
1153
|
+
readonly type: "uint256";
|
|
1154
|
+
}];
|
|
1155
|
+
readonly name: "deposit";
|
|
1156
|
+
readonly outputs: readonly [];
|
|
1157
|
+
readonly stateMutability: "payable";
|
|
1158
|
+
readonly type: "function";
|
|
1159
|
+
}, {
|
|
1160
|
+
readonly inputs: readonly [{
|
|
1161
|
+
readonly internalType: "uint64[]";
|
|
1162
|
+
readonly name: "_amount";
|
|
1163
|
+
readonly type: "uint64[]";
|
|
1164
|
+
}, {
|
|
1165
|
+
readonly internalType: "address[]";
|
|
1166
|
+
readonly name: "_to";
|
|
1167
|
+
readonly type: "address[]";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly internalType: "uint48[]";
|
|
1170
|
+
readonly name: "_accountIndex";
|
|
1171
|
+
readonly type: "uint48[]";
|
|
1172
|
+
}];
|
|
1173
|
+
readonly name: "depositBatch";
|
|
1174
|
+
readonly outputs: readonly [];
|
|
1175
|
+
readonly stateMutability: "nonpayable";
|
|
1176
|
+
readonly type: "function";
|
|
1177
|
+
}, {
|
|
1178
|
+
readonly inputs: readonly [];
|
|
1179
|
+
readonly name: "desertMode";
|
|
1180
|
+
readonly outputs: readonly [{
|
|
1181
|
+
readonly internalType: "bool";
|
|
1182
|
+
readonly name: "";
|
|
1183
|
+
readonly type: "bool";
|
|
1184
|
+
}];
|
|
1185
|
+
readonly stateMutability: "view";
|
|
1186
|
+
readonly type: "function";
|
|
1187
|
+
}, {
|
|
1188
|
+
readonly inputs: readonly [{
|
|
1189
|
+
readonly components: readonly [{
|
|
1190
|
+
readonly internalType: "uint64";
|
|
1191
|
+
readonly name: "batchNumber";
|
|
1192
|
+
readonly type: "uint64";
|
|
1193
|
+
}, {
|
|
1194
|
+
readonly internalType: "uint64";
|
|
1195
|
+
readonly name: "endBlockNumber";
|
|
1196
|
+
readonly type: "uint64";
|
|
1197
|
+
}, {
|
|
1198
|
+
readonly internalType: "uint32";
|
|
1199
|
+
readonly name: "batchSize";
|
|
1200
|
+
readonly type: "uint32";
|
|
1201
|
+
}, {
|
|
1202
|
+
readonly internalType: "uint64";
|
|
1203
|
+
readonly name: "startTimestamp";
|
|
1204
|
+
readonly type: "uint64";
|
|
1205
|
+
}, {
|
|
1206
|
+
readonly internalType: "uint64";
|
|
1207
|
+
readonly name: "endTimestamp";
|
|
1208
|
+
readonly type: "uint64";
|
|
1209
|
+
}, {
|
|
1210
|
+
readonly internalType: "uint32";
|
|
1211
|
+
readonly name: "priorityRequestCount";
|
|
1212
|
+
readonly type: "uint32";
|
|
1213
|
+
}, {
|
|
1214
|
+
readonly internalType: "bytes32";
|
|
1215
|
+
readonly name: "prefixPriorityRequestHash";
|
|
1216
|
+
readonly type: "bytes32";
|
|
1217
|
+
}, {
|
|
1218
|
+
readonly internalType: "bytes32";
|
|
1219
|
+
readonly name: "onChainOperationsHash";
|
|
1220
|
+
readonly type: "bytes32";
|
|
1221
|
+
}, {
|
|
1222
|
+
readonly internalType: "bytes32";
|
|
1223
|
+
readonly name: "stateRoot";
|
|
1224
|
+
readonly type: "bytes32";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly internalType: "bytes32";
|
|
1227
|
+
readonly name: "validiumRoot";
|
|
1228
|
+
readonly type: "bytes32";
|
|
1229
|
+
}, {
|
|
1230
|
+
readonly internalType: "bytes32";
|
|
1231
|
+
readonly name: "commitment";
|
|
1232
|
+
readonly type: "bytes32";
|
|
1233
|
+
}];
|
|
1234
|
+
readonly internalType: "struct Storage.StoredBatchInfo[]";
|
|
1235
|
+
readonly name: "batches";
|
|
1236
|
+
readonly type: "tuple[]";
|
|
1237
|
+
}, {
|
|
1238
|
+
readonly internalType: "bytes[]";
|
|
1239
|
+
readonly name: "onChainOperationsPubData";
|
|
1240
|
+
readonly type: "bytes[]";
|
|
1241
|
+
}];
|
|
1242
|
+
readonly name: "executeBatches";
|
|
1243
|
+
readonly outputs: readonly [];
|
|
1244
|
+
readonly stateMutability: "nonpayable";
|
|
1245
|
+
readonly type: "function";
|
|
1246
|
+
}, {
|
|
1247
|
+
readonly inputs: readonly [];
|
|
1248
|
+
readonly name: "executedBatchesCount";
|
|
1249
|
+
readonly outputs: readonly [{
|
|
1250
|
+
readonly internalType: "uint64";
|
|
1251
|
+
readonly name: "";
|
|
1252
|
+
readonly type: "uint64";
|
|
1253
|
+
}];
|
|
1254
|
+
readonly stateMutability: "view";
|
|
1255
|
+
readonly type: "function";
|
|
1256
|
+
}, {
|
|
1257
|
+
readonly inputs: readonly [];
|
|
1258
|
+
readonly name: "executedOnChainBatchesCount";
|
|
1259
|
+
readonly outputs: readonly [{
|
|
1260
|
+
readonly internalType: "uint64";
|
|
1261
|
+
readonly name: "";
|
|
1262
|
+
readonly type: "uint64";
|
|
1263
|
+
}];
|
|
1264
|
+
readonly stateMutability: "view";
|
|
1265
|
+
readonly type: "function";
|
|
1266
|
+
}, {
|
|
1267
|
+
readonly inputs: readonly [];
|
|
1268
|
+
readonly name: "executedPriorityRequestCount";
|
|
1269
|
+
readonly outputs: readonly [{
|
|
1270
|
+
readonly internalType: "uint64";
|
|
1271
|
+
readonly name: "";
|
|
1272
|
+
readonly type: "uint64";
|
|
1273
|
+
}];
|
|
1274
|
+
readonly stateMutability: "view";
|
|
1275
|
+
readonly type: "function";
|
|
1276
|
+
}, {
|
|
1277
|
+
readonly inputs: readonly [{
|
|
1278
|
+
readonly internalType: "address";
|
|
1279
|
+
readonly name: "_owner";
|
|
1280
|
+
readonly type: "address";
|
|
1281
|
+
}, {
|
|
1282
|
+
readonly internalType: "uint16";
|
|
1283
|
+
readonly name: "_assetIndex";
|
|
1284
|
+
readonly type: "uint16";
|
|
1285
|
+
}];
|
|
1286
|
+
readonly name: "getPendingBalance";
|
|
1287
|
+
readonly outputs: readonly [{
|
|
1288
|
+
readonly internalType: "uint128";
|
|
1289
|
+
readonly name: "";
|
|
1290
|
+
readonly type: "uint128";
|
|
1291
|
+
}];
|
|
1292
|
+
readonly stateMutability: "view";
|
|
1293
|
+
readonly type: "function";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly inputs: readonly [{
|
|
1296
|
+
readonly internalType: "address";
|
|
1297
|
+
readonly name: "_owner";
|
|
1298
|
+
readonly type: "address";
|
|
1299
|
+
}];
|
|
1300
|
+
readonly name: "getPendingBalanceLegacy";
|
|
1301
|
+
readonly outputs: readonly [{
|
|
1302
|
+
readonly internalType: "uint128";
|
|
1303
|
+
readonly name: "";
|
|
1304
|
+
readonly type: "uint128";
|
|
1305
|
+
}];
|
|
1306
|
+
readonly stateMutability: "view";
|
|
1307
|
+
readonly type: "function";
|
|
1308
|
+
}, {
|
|
1309
|
+
readonly inputs: readonly [{
|
|
1310
|
+
readonly internalType: "bytes";
|
|
1311
|
+
readonly name: "initializationParameters";
|
|
1312
|
+
readonly type: "bytes";
|
|
1313
|
+
}];
|
|
1314
|
+
readonly name: "initialize";
|
|
1315
|
+
readonly outputs: readonly [];
|
|
1316
|
+
readonly stateMutability: "nonpayable";
|
|
1317
|
+
readonly type: "function";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly inputs: readonly [];
|
|
1320
|
+
readonly name: "insuranceFundOperator";
|
|
1321
|
+
readonly outputs: readonly [{
|
|
1322
|
+
readonly internalType: "address";
|
|
1323
|
+
readonly name: "";
|
|
1324
|
+
readonly type: "address";
|
|
1325
|
+
}];
|
|
1326
|
+
readonly stateMutability: "view";
|
|
1327
|
+
readonly type: "function";
|
|
1328
|
+
}, {
|
|
1329
|
+
readonly inputs: readonly [];
|
|
1330
|
+
readonly name: "lastAccountIndex";
|
|
1331
|
+
readonly outputs: readonly [{
|
|
1332
|
+
readonly internalType: "uint48";
|
|
1333
|
+
readonly name: "";
|
|
1334
|
+
readonly type: "uint48";
|
|
1335
|
+
}];
|
|
1336
|
+
readonly stateMutability: "view";
|
|
1337
|
+
readonly type: "function";
|
|
1338
|
+
}, {
|
|
1339
|
+
readonly inputs: readonly [];
|
|
1340
|
+
readonly name: "lastVerifiedEndBlockNumber";
|
|
1341
|
+
readonly outputs: readonly [{
|
|
1342
|
+
readonly internalType: "uint64";
|
|
1343
|
+
readonly name: "";
|
|
1344
|
+
readonly type: "uint64";
|
|
1345
|
+
}];
|
|
1346
|
+
readonly stateMutability: "view";
|
|
1347
|
+
readonly type: "function";
|
|
1348
|
+
}, {
|
|
1349
|
+
readonly inputs: readonly [];
|
|
1350
|
+
readonly name: "lastVerifiedStateRoot";
|
|
1351
|
+
readonly outputs: readonly [{
|
|
1352
|
+
readonly internalType: "bytes32";
|
|
1353
|
+
readonly name: "";
|
|
1354
|
+
readonly type: "bytes32";
|
|
1355
|
+
}];
|
|
1356
|
+
readonly stateMutability: "view";
|
|
1357
|
+
readonly type: "function";
|
|
1358
|
+
}, {
|
|
1359
|
+
readonly inputs: readonly [];
|
|
1360
|
+
readonly name: "lastVerifiedValidiumRoot";
|
|
1361
|
+
readonly outputs: readonly [{
|
|
1362
|
+
readonly internalType: "bytes32";
|
|
1363
|
+
readonly name: "";
|
|
1364
|
+
readonly type: "bytes32";
|
|
1365
|
+
}];
|
|
1366
|
+
readonly stateMutability: "view";
|
|
1367
|
+
readonly type: "function";
|
|
1368
|
+
}, {
|
|
1369
|
+
readonly inputs: readonly [];
|
|
1370
|
+
readonly name: "openPriorityRequestCount";
|
|
1371
|
+
readonly outputs: readonly [{
|
|
1372
|
+
readonly internalType: "uint64";
|
|
1373
|
+
readonly name: "";
|
|
1374
|
+
readonly type: "uint64";
|
|
1375
|
+
}];
|
|
1376
|
+
readonly stateMutability: "view";
|
|
1377
|
+
readonly type: "function";
|
|
1378
|
+
}, {
|
|
1379
|
+
readonly inputs: readonly [];
|
|
1380
|
+
readonly name: "pendingOnChainBatchesCount";
|
|
1381
|
+
readonly outputs: readonly [{
|
|
1382
|
+
readonly internalType: "uint64";
|
|
1383
|
+
readonly name: "";
|
|
1384
|
+
readonly type: "uint64";
|
|
1385
|
+
}];
|
|
1386
|
+
readonly stateMutability: "view";
|
|
1387
|
+
readonly type: "function";
|
|
1388
|
+
}, {
|
|
1389
|
+
readonly inputs: readonly [{
|
|
1390
|
+
readonly internalType: "uint48";
|
|
1391
|
+
readonly name: "_accountIndex";
|
|
1392
|
+
readonly type: "uint48";
|
|
1393
|
+
}, {
|
|
1394
|
+
readonly internalType: "address";
|
|
1395
|
+
readonly name: "_l1Address";
|
|
1396
|
+
readonly type: "address";
|
|
1397
|
+
}, {
|
|
1398
|
+
readonly internalType: "uint16";
|
|
1399
|
+
readonly name: "_assetIndex";
|
|
1400
|
+
readonly type: "uint16";
|
|
1401
|
+
}, {
|
|
1402
|
+
readonly internalType: "uint128";
|
|
1403
|
+
readonly name: "_totalBaseAmount";
|
|
1404
|
+
readonly type: "uint128";
|
|
1405
|
+
}, {
|
|
1406
|
+
readonly internalType: "bytes";
|
|
1407
|
+
readonly name: "proof";
|
|
1408
|
+
readonly type: "bytes";
|
|
1409
|
+
}];
|
|
1410
|
+
readonly name: "performDesert";
|
|
1411
|
+
readonly outputs: readonly [];
|
|
1412
|
+
readonly stateMutability: "nonpayable";
|
|
1413
|
+
readonly type: "function";
|
|
1414
|
+
}, {
|
|
1415
|
+
readonly inputs: readonly [{
|
|
1416
|
+
readonly internalType: "uint8";
|
|
1417
|
+
readonly name: "_l1Decimals";
|
|
1418
|
+
readonly type: "uint8";
|
|
1419
|
+
}, {
|
|
1420
|
+
readonly internalType: "uint8";
|
|
1421
|
+
readonly name: "_l2Decimals";
|
|
1422
|
+
readonly type: "uint8";
|
|
1423
|
+
}, {
|
|
1424
|
+
readonly internalType: "uint8";
|
|
1425
|
+
readonly name: "_priceDecimals";
|
|
1426
|
+
readonly type: "uint8";
|
|
1427
|
+
}, {
|
|
1428
|
+
readonly internalType: "bytes32";
|
|
1429
|
+
readonly name: "_symbol";
|
|
1430
|
+
readonly type: "bytes32";
|
|
1431
|
+
}, {
|
|
1432
|
+
readonly components: readonly [{
|
|
1433
|
+
readonly internalType: "uint16";
|
|
1434
|
+
readonly name: "assetIndex";
|
|
1435
|
+
readonly type: "uint16";
|
|
1436
|
+
}, {
|
|
1437
|
+
readonly internalType: "uint56";
|
|
1438
|
+
readonly name: "extensionMultiplier";
|
|
1439
|
+
readonly type: "uint56";
|
|
1440
|
+
}, {
|
|
1441
|
+
readonly internalType: "uint64";
|
|
1442
|
+
readonly name: "minL2TransferAmount";
|
|
1443
|
+
readonly type: "uint64";
|
|
1444
|
+
}, {
|
|
1445
|
+
readonly internalType: "uint64";
|
|
1446
|
+
readonly name: "minL2WithdrawalAmount";
|
|
1447
|
+
readonly type: "uint64";
|
|
1448
|
+
}, {
|
|
1449
|
+
readonly internalType: "uint8";
|
|
1450
|
+
readonly name: "marginMode";
|
|
1451
|
+
readonly type: "uint8";
|
|
1452
|
+
}, {
|
|
1453
|
+
readonly internalType: "uint16";
|
|
1454
|
+
readonly name: "loanToValue";
|
|
1455
|
+
readonly type: "uint16";
|
|
1456
|
+
}, {
|
|
1457
|
+
readonly internalType: "uint16";
|
|
1458
|
+
readonly name: "liquidationThreshold";
|
|
1459
|
+
readonly type: "uint16";
|
|
1460
|
+
}, {
|
|
1461
|
+
readonly internalType: "uint16";
|
|
1462
|
+
readonly name: "liquidationFactor";
|
|
1463
|
+
readonly type: "uint16";
|
|
1464
|
+
}, {
|
|
1465
|
+
readonly internalType: "uint32";
|
|
1466
|
+
readonly name: "liquidationFee";
|
|
1467
|
+
readonly type: "uint32";
|
|
1468
|
+
}, {
|
|
1469
|
+
readonly internalType: "uint56";
|
|
1470
|
+
readonly name: "indexPriceDivider";
|
|
1471
|
+
readonly type: "uint56";
|
|
1472
|
+
}];
|
|
1473
|
+
readonly internalType: "struct TxTypes.RegisterAsset";
|
|
1474
|
+
readonly name: "_params";
|
|
1475
|
+
readonly type: "tuple";
|
|
1476
|
+
}];
|
|
1477
|
+
readonly name: "registerAsset";
|
|
1478
|
+
readonly outputs: readonly [];
|
|
1479
|
+
readonly stateMutability: "nonpayable";
|
|
1480
|
+
readonly type: "function";
|
|
1481
|
+
}, {
|
|
1482
|
+
readonly inputs: readonly [{
|
|
1483
|
+
readonly internalType: "uint16";
|
|
1484
|
+
readonly name: "assetIndex";
|
|
1485
|
+
readonly type: "uint16";
|
|
1486
|
+
}, {
|
|
1487
|
+
readonly internalType: "address";
|
|
1488
|
+
readonly name: "tokenAddress";
|
|
1489
|
+
readonly type: "address";
|
|
1490
|
+
}, {
|
|
1491
|
+
readonly internalType: "uint8";
|
|
1492
|
+
readonly name: "withdrawalsEnabled";
|
|
1493
|
+
readonly type: "uint8";
|
|
1494
|
+
}, {
|
|
1495
|
+
readonly internalType: "uint56";
|
|
1496
|
+
readonly name: "extensionMultiplier";
|
|
1497
|
+
readonly type: "uint56";
|
|
1498
|
+
}, {
|
|
1499
|
+
readonly internalType: "uint128";
|
|
1500
|
+
readonly name: "tickSize";
|
|
1501
|
+
readonly type: "uint128";
|
|
1502
|
+
}, {
|
|
1503
|
+
readonly internalType: "uint64";
|
|
1504
|
+
readonly name: "depositCapTicks";
|
|
1505
|
+
readonly type: "uint64";
|
|
1506
|
+
}, {
|
|
1507
|
+
readonly internalType: "uint64";
|
|
1508
|
+
readonly name: "minDepositTicks";
|
|
1509
|
+
readonly type: "uint64";
|
|
1510
|
+
}];
|
|
1511
|
+
readonly name: "registerAssetConfig";
|
|
1512
|
+
readonly outputs: readonly [];
|
|
1513
|
+
readonly stateMutability: "nonpayable";
|
|
1514
|
+
readonly type: "function";
|
|
1515
|
+
}, {
|
|
1516
|
+
readonly inputs: readonly [{
|
|
1517
|
+
readonly components: readonly [{
|
|
1518
|
+
readonly internalType: "uint64";
|
|
1519
|
+
readonly name: "batchNumber";
|
|
1520
|
+
readonly type: "uint64";
|
|
1521
|
+
}, {
|
|
1522
|
+
readonly internalType: "uint64";
|
|
1523
|
+
readonly name: "endBlockNumber";
|
|
1524
|
+
readonly type: "uint64";
|
|
1525
|
+
}, {
|
|
1526
|
+
readonly internalType: "uint32";
|
|
1527
|
+
readonly name: "batchSize";
|
|
1528
|
+
readonly type: "uint32";
|
|
1529
|
+
}, {
|
|
1530
|
+
readonly internalType: "uint64";
|
|
1531
|
+
readonly name: "startTimestamp";
|
|
1532
|
+
readonly type: "uint64";
|
|
1533
|
+
}, {
|
|
1534
|
+
readonly internalType: "uint64";
|
|
1535
|
+
readonly name: "endTimestamp";
|
|
1536
|
+
readonly type: "uint64";
|
|
1537
|
+
}, {
|
|
1538
|
+
readonly internalType: "uint32";
|
|
1539
|
+
readonly name: "priorityRequestCount";
|
|
1540
|
+
readonly type: "uint32";
|
|
1541
|
+
}, {
|
|
1542
|
+
readonly internalType: "bytes32";
|
|
1543
|
+
readonly name: "prefixPriorityRequestHash";
|
|
1544
|
+
readonly type: "bytes32";
|
|
1545
|
+
}, {
|
|
1546
|
+
readonly internalType: "bytes32";
|
|
1547
|
+
readonly name: "onChainOperationsHash";
|
|
1548
|
+
readonly type: "bytes32";
|
|
1549
|
+
}, {
|
|
1550
|
+
readonly internalType: "bytes32";
|
|
1551
|
+
readonly name: "stateRoot";
|
|
1552
|
+
readonly type: "bytes32";
|
|
1553
|
+
}, {
|
|
1554
|
+
readonly internalType: "bytes32";
|
|
1555
|
+
readonly name: "validiumRoot";
|
|
1556
|
+
readonly type: "bytes32";
|
|
1557
|
+
}, {
|
|
1558
|
+
readonly internalType: "bytes32";
|
|
1559
|
+
readonly name: "commitment";
|
|
1560
|
+
readonly type: "bytes32";
|
|
1561
|
+
}];
|
|
1562
|
+
readonly internalType: "struct Storage.StoredBatchInfo[]";
|
|
1563
|
+
readonly name: "_batchesToRevert";
|
|
1564
|
+
readonly type: "tuple[]";
|
|
1565
|
+
}, {
|
|
1566
|
+
readonly components: readonly [{
|
|
1567
|
+
readonly internalType: "uint64";
|
|
1568
|
+
readonly name: "batchNumber";
|
|
1569
|
+
readonly type: "uint64";
|
|
1570
|
+
}, {
|
|
1571
|
+
readonly internalType: "uint64";
|
|
1572
|
+
readonly name: "endBlockNumber";
|
|
1573
|
+
readonly type: "uint64";
|
|
1574
|
+
}, {
|
|
1575
|
+
readonly internalType: "uint32";
|
|
1576
|
+
readonly name: "batchSize";
|
|
1577
|
+
readonly type: "uint32";
|
|
1578
|
+
}, {
|
|
1579
|
+
readonly internalType: "uint64";
|
|
1580
|
+
readonly name: "startTimestamp";
|
|
1581
|
+
readonly type: "uint64";
|
|
1582
|
+
}, {
|
|
1583
|
+
readonly internalType: "uint64";
|
|
1584
|
+
readonly name: "endTimestamp";
|
|
1585
|
+
readonly type: "uint64";
|
|
1586
|
+
}, {
|
|
1587
|
+
readonly internalType: "uint32";
|
|
1588
|
+
readonly name: "priorityRequestCount";
|
|
1589
|
+
readonly type: "uint32";
|
|
1590
|
+
}, {
|
|
1591
|
+
readonly internalType: "bytes32";
|
|
1592
|
+
readonly name: "prefixPriorityRequestHash";
|
|
1593
|
+
readonly type: "bytes32";
|
|
1594
|
+
}, {
|
|
1595
|
+
readonly internalType: "bytes32";
|
|
1596
|
+
readonly name: "onChainOperationsHash";
|
|
1597
|
+
readonly type: "bytes32";
|
|
1598
|
+
}, {
|
|
1599
|
+
readonly internalType: "bytes32";
|
|
1600
|
+
readonly name: "stateRoot";
|
|
1601
|
+
readonly type: "bytes32";
|
|
1602
|
+
}, {
|
|
1603
|
+
readonly internalType: "bytes32";
|
|
1604
|
+
readonly name: "validiumRoot";
|
|
1605
|
+
readonly type: "bytes32";
|
|
1606
|
+
}, {
|
|
1607
|
+
readonly internalType: "bytes32";
|
|
1608
|
+
readonly name: "commitment";
|
|
1609
|
+
readonly type: "bytes32";
|
|
1610
|
+
}];
|
|
1611
|
+
readonly internalType: "struct Storage.StoredBatchInfo";
|
|
1612
|
+
readonly name: "_remainingBatch";
|
|
1613
|
+
readonly type: "tuple";
|
|
1614
|
+
}];
|
|
1615
|
+
readonly name: "revertBatches";
|
|
1616
|
+
readonly outputs: readonly [];
|
|
1617
|
+
readonly stateMutability: "nonpayable";
|
|
1618
|
+
readonly type: "function";
|
|
1619
|
+
}, {
|
|
1620
|
+
readonly inputs: readonly [{
|
|
1621
|
+
readonly internalType: "address";
|
|
1622
|
+
readonly name: "_newInsuranceFundOperator";
|
|
1623
|
+
readonly type: "address";
|
|
1624
|
+
}];
|
|
1625
|
+
readonly name: "setInsuranceFundOperator";
|
|
1626
|
+
readonly outputs: readonly [];
|
|
1627
|
+
readonly stateMutability: "nonpayable";
|
|
1628
|
+
readonly type: "function";
|
|
1629
|
+
}, {
|
|
1630
|
+
readonly inputs: readonly [{
|
|
1631
|
+
readonly components: readonly [{
|
|
1632
|
+
readonly internalType: "uint48";
|
|
1633
|
+
readonly name: "liquidityPoolIndex";
|
|
1634
|
+
readonly type: "uint48";
|
|
1635
|
+
}, {
|
|
1636
|
+
readonly internalType: "uint48";
|
|
1637
|
+
readonly name: "stakingPoolIndex";
|
|
1638
|
+
readonly type: "uint48";
|
|
1639
|
+
}, {
|
|
1640
|
+
readonly internalType: "uint48";
|
|
1641
|
+
readonly name: "liquidityPoolCooldownPeriod";
|
|
1642
|
+
readonly type: "uint48";
|
|
1643
|
+
}, {
|
|
1644
|
+
readonly internalType: "uint48";
|
|
1645
|
+
readonly name: "stakingPoolLockupPeriod";
|
|
1646
|
+
readonly type: "uint48";
|
|
1647
|
+
}, {
|
|
1648
|
+
readonly internalType: "uint32";
|
|
1649
|
+
readonly name: "maxIntegratorPerpsTakerFee";
|
|
1650
|
+
readonly type: "uint32";
|
|
1651
|
+
}, {
|
|
1652
|
+
readonly internalType: "uint32";
|
|
1653
|
+
readonly name: "maxIntegratorPerpsMakerFee";
|
|
1654
|
+
readonly type: "uint32";
|
|
1655
|
+
}, {
|
|
1656
|
+
readonly internalType: "uint32";
|
|
1657
|
+
readonly name: "maxIntegratorSpotTakerFee";
|
|
1658
|
+
readonly type: "uint32";
|
|
1659
|
+
}, {
|
|
1660
|
+
readonly internalType: "uint32";
|
|
1661
|
+
readonly name: "maxIntegratorSpotMakerFee";
|
|
1662
|
+
readonly type: "uint32";
|
|
1663
|
+
}];
|
|
1664
|
+
readonly internalType: "struct TxTypes.SetSystemConfig";
|
|
1665
|
+
readonly name: "_params";
|
|
1666
|
+
readonly type: "tuple";
|
|
1667
|
+
}];
|
|
1668
|
+
readonly name: "setSystemConfig";
|
|
1669
|
+
readonly outputs: readonly [];
|
|
1670
|
+
readonly stateMutability: "nonpayable";
|
|
1671
|
+
readonly type: "function";
|
|
1672
|
+
}, {
|
|
1673
|
+
readonly inputs: readonly [{
|
|
1674
|
+
readonly internalType: "address";
|
|
1675
|
+
readonly name: "_newTreasury";
|
|
1676
|
+
readonly type: "address";
|
|
1677
|
+
}];
|
|
1678
|
+
readonly name: "setTreasury";
|
|
1679
|
+
readonly outputs: readonly [];
|
|
1680
|
+
readonly stateMutability: "nonpayable";
|
|
1681
|
+
readonly type: "function";
|
|
1682
|
+
}, {
|
|
1683
|
+
readonly inputs: readonly [];
|
|
1684
|
+
readonly name: "stateRoot";
|
|
1685
|
+
readonly outputs: readonly [{
|
|
1686
|
+
readonly internalType: "bytes32";
|
|
1687
|
+
readonly name: "";
|
|
1688
|
+
readonly type: "bytes32";
|
|
1689
|
+
}];
|
|
1690
|
+
readonly stateMutability: "view";
|
|
1691
|
+
readonly type: "function";
|
|
1692
|
+
}, {
|
|
1693
|
+
readonly inputs: readonly [{
|
|
1694
|
+
readonly internalType: "uint64";
|
|
1695
|
+
readonly name: "";
|
|
1696
|
+
readonly type: "uint64";
|
|
1697
|
+
}];
|
|
1698
|
+
readonly name: "stateRootUpdates";
|
|
1699
|
+
readonly outputs: readonly [{
|
|
1700
|
+
readonly internalType: "bytes32";
|
|
1701
|
+
readonly name: "";
|
|
1702
|
+
readonly type: "bytes32";
|
|
1703
|
+
}];
|
|
1704
|
+
readonly stateMutability: "view";
|
|
1705
|
+
readonly type: "function";
|
|
1706
|
+
}, {
|
|
1707
|
+
readonly inputs: readonly [{
|
|
1708
|
+
readonly internalType: "uint64";
|
|
1709
|
+
readonly name: "";
|
|
1710
|
+
readonly type: "uint64";
|
|
1711
|
+
}];
|
|
1712
|
+
readonly name: "storedBatchHashes";
|
|
1713
|
+
readonly outputs: readonly [{
|
|
1714
|
+
readonly internalType: "bytes32";
|
|
1715
|
+
readonly name: "";
|
|
1716
|
+
readonly type: "bytes32";
|
|
1717
|
+
}];
|
|
1718
|
+
readonly stateMutability: "view";
|
|
1719
|
+
readonly type: "function";
|
|
1720
|
+
}, {
|
|
1721
|
+
readonly inputs: readonly [{
|
|
1722
|
+
readonly internalType: "address";
|
|
1723
|
+
readonly name: "";
|
|
1724
|
+
readonly type: "address";
|
|
1725
|
+
}];
|
|
1726
|
+
readonly name: "tokenToAssetIndex";
|
|
1727
|
+
readonly outputs: readonly [{
|
|
1728
|
+
readonly internalType: "uint16";
|
|
1729
|
+
readonly name: "";
|
|
1730
|
+
readonly type: "uint16";
|
|
1731
|
+
}];
|
|
1732
|
+
readonly stateMutability: "view";
|
|
1733
|
+
readonly type: "function";
|
|
1734
|
+
}, {
|
|
1735
|
+
readonly inputs: readonly [{
|
|
1736
|
+
readonly internalType: "contract IERC20";
|
|
1737
|
+
readonly name: "_token";
|
|
1738
|
+
readonly type: "address";
|
|
1739
|
+
}, {
|
|
1740
|
+
readonly internalType: "address";
|
|
1741
|
+
readonly name: "_to";
|
|
1742
|
+
readonly type: "address";
|
|
1743
|
+
}, {
|
|
1744
|
+
readonly internalType: "uint256";
|
|
1745
|
+
readonly name: "_amount";
|
|
1746
|
+
readonly type: "uint256";
|
|
1747
|
+
}, {
|
|
1748
|
+
readonly internalType: "uint256";
|
|
1749
|
+
readonly name: "_maxAmount";
|
|
1750
|
+
readonly type: "uint256";
|
|
1751
|
+
}];
|
|
1752
|
+
readonly name: "transferERC20";
|
|
1753
|
+
readonly outputs: readonly [{
|
|
1754
|
+
readonly internalType: "uint256";
|
|
1755
|
+
readonly name: "";
|
|
1756
|
+
readonly type: "uint256";
|
|
1757
|
+
}];
|
|
1758
|
+
readonly stateMutability: "nonpayable";
|
|
1759
|
+
readonly type: "function";
|
|
1760
|
+
}, {
|
|
1761
|
+
readonly inputs: readonly [{
|
|
1762
|
+
readonly internalType: "address";
|
|
1763
|
+
readonly name: "_to";
|
|
1764
|
+
readonly type: "address";
|
|
1765
|
+
}, {
|
|
1766
|
+
readonly internalType: "uint256";
|
|
1767
|
+
readonly name: "_amount";
|
|
1768
|
+
readonly type: "uint256";
|
|
1769
|
+
}];
|
|
1770
|
+
readonly name: "transferETH";
|
|
1771
|
+
readonly outputs: readonly [{
|
|
1772
|
+
readonly internalType: "uint256";
|
|
1773
|
+
readonly name: "";
|
|
1774
|
+
readonly type: "uint256";
|
|
1775
|
+
}];
|
|
1776
|
+
readonly stateMutability: "nonpayable";
|
|
1777
|
+
readonly type: "function";
|
|
1778
|
+
}, {
|
|
1779
|
+
readonly inputs: readonly [];
|
|
1780
|
+
readonly name: "treasury";
|
|
1781
|
+
readonly outputs: readonly [{
|
|
1782
|
+
readonly internalType: "address";
|
|
1783
|
+
readonly name: "";
|
|
1784
|
+
readonly type: "address";
|
|
1785
|
+
}];
|
|
1786
|
+
readonly stateMutability: "view";
|
|
1787
|
+
readonly type: "function";
|
|
1788
|
+
}, {
|
|
1789
|
+
readonly inputs: readonly [{
|
|
1790
|
+
readonly components: readonly [{
|
|
1791
|
+
readonly internalType: "uint16";
|
|
1792
|
+
readonly name: "assetIndex";
|
|
1793
|
+
readonly type: "uint16";
|
|
1794
|
+
}, {
|
|
1795
|
+
readonly internalType: "uint64";
|
|
1796
|
+
readonly name: "minL2TransferAmount";
|
|
1797
|
+
readonly type: "uint64";
|
|
1798
|
+
}, {
|
|
1799
|
+
readonly internalType: "uint64";
|
|
1800
|
+
readonly name: "minL2WithdrawalAmount";
|
|
1801
|
+
readonly type: "uint64";
|
|
1802
|
+
}, {
|
|
1803
|
+
readonly internalType: "uint8";
|
|
1804
|
+
readonly name: "marginMode";
|
|
1805
|
+
readonly type: "uint8";
|
|
1806
|
+
}, {
|
|
1807
|
+
readonly internalType: "uint16";
|
|
1808
|
+
readonly name: "loanToValue";
|
|
1809
|
+
readonly type: "uint16";
|
|
1810
|
+
}, {
|
|
1811
|
+
readonly internalType: "uint16";
|
|
1812
|
+
readonly name: "liquidationThreshold";
|
|
1813
|
+
readonly type: "uint16";
|
|
1814
|
+
}, {
|
|
1815
|
+
readonly internalType: "uint16";
|
|
1816
|
+
readonly name: "liquidationFactor";
|
|
1817
|
+
readonly type: "uint16";
|
|
1818
|
+
}, {
|
|
1819
|
+
readonly internalType: "uint32";
|
|
1820
|
+
readonly name: "liquidationFee";
|
|
1821
|
+
readonly type: "uint32";
|
|
1822
|
+
}, {
|
|
1823
|
+
readonly internalType: "uint56";
|
|
1824
|
+
readonly name: "indexPriceDivider";
|
|
1825
|
+
readonly type: "uint56";
|
|
1826
|
+
}];
|
|
1827
|
+
readonly internalType: "struct TxTypes.UpdateAsset";
|
|
1828
|
+
readonly name: "_params";
|
|
1829
|
+
readonly type: "tuple";
|
|
1830
|
+
}];
|
|
1831
|
+
readonly name: "updateAsset";
|
|
1832
|
+
readonly outputs: readonly [];
|
|
1833
|
+
readonly stateMutability: "nonpayable";
|
|
1834
|
+
readonly type: "function";
|
|
1835
|
+
}, {
|
|
1836
|
+
readonly inputs: readonly [{
|
|
1837
|
+
readonly internalType: "uint16";
|
|
1838
|
+
readonly name: "assetIndex";
|
|
1839
|
+
readonly type: "uint16";
|
|
1840
|
+
}, {
|
|
1841
|
+
readonly internalType: "uint8";
|
|
1842
|
+
readonly name: "withdrawalsEnabled";
|
|
1843
|
+
readonly type: "uint8";
|
|
1844
|
+
}, {
|
|
1845
|
+
readonly internalType: "uint64";
|
|
1846
|
+
readonly name: "depositCapTicks";
|
|
1847
|
+
readonly type: "uint64";
|
|
1848
|
+
}, {
|
|
1849
|
+
readonly internalType: "uint64";
|
|
1850
|
+
readonly name: "minDepositTicks";
|
|
1851
|
+
readonly type: "uint64";
|
|
1852
|
+
}];
|
|
1853
|
+
readonly name: "updateAssetConfig";
|
|
1854
|
+
readonly outputs: readonly [];
|
|
1855
|
+
readonly stateMutability: "nonpayable";
|
|
1856
|
+
readonly type: "function";
|
|
1857
|
+
}, {
|
|
1858
|
+
readonly inputs: readonly [{
|
|
1859
|
+
readonly components: readonly [{
|
|
1860
|
+
readonly internalType: "uint16";
|
|
1861
|
+
readonly name: "marketIndex";
|
|
1862
|
+
readonly type: "uint16";
|
|
1863
|
+
}, {
|
|
1864
|
+
readonly internalType: "enum TxTypes.MarketType";
|
|
1865
|
+
readonly name: "marketType";
|
|
1866
|
+
readonly type: "uint8";
|
|
1867
|
+
}, {
|
|
1868
|
+
readonly internalType: "bytes";
|
|
1869
|
+
readonly name: "marketData";
|
|
1870
|
+
readonly type: "bytes";
|
|
1871
|
+
}];
|
|
1872
|
+
readonly internalType: "struct TxTypes.UpdateMarket";
|
|
1873
|
+
readonly name: "_params";
|
|
1874
|
+
readonly type: "tuple";
|
|
1875
|
+
}];
|
|
1876
|
+
readonly name: "updateMarket";
|
|
1877
|
+
readonly outputs: readonly [];
|
|
1878
|
+
readonly stateMutability: "nonpayable";
|
|
1879
|
+
readonly type: "function";
|
|
1880
|
+
}, {
|
|
1881
|
+
readonly inputs: readonly [{
|
|
1882
|
+
readonly components: readonly [{
|
|
1883
|
+
readonly internalType: "uint64";
|
|
1884
|
+
readonly name: "batchNumber";
|
|
1885
|
+
readonly type: "uint64";
|
|
1886
|
+
}, {
|
|
1887
|
+
readonly internalType: "uint64";
|
|
1888
|
+
readonly name: "endBlockNumber";
|
|
1889
|
+
readonly type: "uint64";
|
|
1890
|
+
}, {
|
|
1891
|
+
readonly internalType: "uint32";
|
|
1892
|
+
readonly name: "batchSize";
|
|
1893
|
+
readonly type: "uint32";
|
|
1894
|
+
}, {
|
|
1895
|
+
readonly internalType: "uint64";
|
|
1896
|
+
readonly name: "startTimestamp";
|
|
1897
|
+
readonly type: "uint64";
|
|
1898
|
+
}, {
|
|
1899
|
+
readonly internalType: "uint64";
|
|
1900
|
+
readonly name: "endTimestamp";
|
|
1901
|
+
readonly type: "uint64";
|
|
1902
|
+
}, {
|
|
1903
|
+
readonly internalType: "uint32";
|
|
1904
|
+
readonly name: "priorityRequestCount";
|
|
1905
|
+
readonly type: "uint32";
|
|
1906
|
+
}, {
|
|
1907
|
+
readonly internalType: "bytes32";
|
|
1908
|
+
readonly name: "prefixPriorityRequestHash";
|
|
1909
|
+
readonly type: "bytes32";
|
|
1910
|
+
}, {
|
|
1911
|
+
readonly internalType: "bytes32";
|
|
1912
|
+
readonly name: "onChainOperationsHash";
|
|
1913
|
+
readonly type: "bytes32";
|
|
1914
|
+
}, {
|
|
1915
|
+
readonly internalType: "bytes32";
|
|
1916
|
+
readonly name: "stateRoot";
|
|
1917
|
+
readonly type: "bytes32";
|
|
1918
|
+
}, {
|
|
1919
|
+
readonly internalType: "bytes32";
|
|
1920
|
+
readonly name: "validiumRoot";
|
|
1921
|
+
readonly type: "bytes32";
|
|
1922
|
+
}, {
|
|
1923
|
+
readonly internalType: "bytes32";
|
|
1924
|
+
readonly name: "commitment";
|
|
1925
|
+
readonly type: "bytes32";
|
|
1926
|
+
}];
|
|
1927
|
+
readonly internalType: "struct Storage.StoredBatchInfo";
|
|
1928
|
+
readonly name: "_lastStoredBatch";
|
|
1929
|
+
readonly type: "tuple";
|
|
1930
|
+
}, {
|
|
1931
|
+
readonly internalType: "bytes32";
|
|
1932
|
+
readonly name: "_stateRoot";
|
|
1933
|
+
readonly type: "bytes32";
|
|
1934
|
+
}, {
|
|
1935
|
+
readonly internalType: "bytes32";
|
|
1936
|
+
readonly name: "_validiumRoot";
|
|
1937
|
+
readonly type: "bytes32";
|
|
1938
|
+
}, {
|
|
1939
|
+
readonly internalType: "bytes";
|
|
1940
|
+
readonly name: "proof";
|
|
1941
|
+
readonly type: "bytes";
|
|
1942
|
+
}];
|
|
1943
|
+
readonly name: "updateStateRoot";
|
|
1944
|
+
readonly outputs: readonly [];
|
|
1945
|
+
readonly stateMutability: "nonpayable";
|
|
1946
|
+
readonly type: "function";
|
|
1947
|
+
}, {
|
|
1948
|
+
readonly inputs: readonly [{
|
|
1949
|
+
readonly internalType: "bytes";
|
|
1950
|
+
readonly name: "upgradeParameters";
|
|
1951
|
+
readonly type: "bytes";
|
|
1952
|
+
}];
|
|
1953
|
+
readonly name: "upgrade";
|
|
1954
|
+
readonly outputs: readonly [];
|
|
1955
|
+
readonly stateMutability: "nonpayable";
|
|
1956
|
+
readonly type: "function";
|
|
1957
|
+
}, {
|
|
1958
|
+
readonly inputs: readonly [];
|
|
1959
|
+
readonly name: "validiumRoot";
|
|
1960
|
+
readonly outputs: readonly [{
|
|
1961
|
+
readonly internalType: "bytes32";
|
|
1962
|
+
readonly name: "";
|
|
1963
|
+
readonly type: "bytes32";
|
|
1964
|
+
}];
|
|
1965
|
+
readonly stateMutability: "view";
|
|
1966
|
+
readonly type: "function";
|
|
1967
|
+
}, {
|
|
1968
|
+
readonly inputs: readonly [];
|
|
1969
|
+
readonly name: "verifiedBatchesCount";
|
|
1970
|
+
readonly outputs: readonly [{
|
|
1971
|
+
readonly internalType: "uint64";
|
|
1972
|
+
readonly name: "";
|
|
1973
|
+
readonly type: "uint64";
|
|
1974
|
+
}];
|
|
1975
|
+
readonly stateMutability: "view";
|
|
1976
|
+
readonly type: "function";
|
|
1977
|
+
}, {
|
|
1978
|
+
readonly inputs: readonly [];
|
|
1979
|
+
readonly name: "verifiedPriorityRequestCount";
|
|
1980
|
+
readonly outputs: readonly [{
|
|
1981
|
+
readonly internalType: "uint64";
|
|
1982
|
+
readonly name: "";
|
|
1983
|
+
readonly type: "uint64";
|
|
1984
|
+
}];
|
|
1985
|
+
readonly stateMutability: "view";
|
|
1986
|
+
readonly type: "function";
|
|
1987
|
+
}, {
|
|
1988
|
+
readonly inputs: readonly [{
|
|
1989
|
+
readonly components: readonly [{
|
|
1990
|
+
readonly internalType: "uint64";
|
|
1991
|
+
readonly name: "batchNumber";
|
|
1992
|
+
readonly type: "uint64";
|
|
1993
|
+
}, {
|
|
1994
|
+
readonly internalType: "uint64";
|
|
1995
|
+
readonly name: "endBlockNumber";
|
|
1996
|
+
readonly type: "uint64";
|
|
1997
|
+
}, {
|
|
1998
|
+
readonly internalType: "uint32";
|
|
1999
|
+
readonly name: "batchSize";
|
|
2000
|
+
readonly type: "uint32";
|
|
2001
|
+
}, {
|
|
2002
|
+
readonly internalType: "uint64";
|
|
2003
|
+
readonly name: "startTimestamp";
|
|
2004
|
+
readonly type: "uint64";
|
|
2005
|
+
}, {
|
|
2006
|
+
readonly internalType: "uint64";
|
|
2007
|
+
readonly name: "endTimestamp";
|
|
2008
|
+
readonly type: "uint64";
|
|
2009
|
+
}, {
|
|
2010
|
+
readonly internalType: "uint32";
|
|
2011
|
+
readonly name: "priorityRequestCount";
|
|
2012
|
+
readonly type: "uint32";
|
|
2013
|
+
}, {
|
|
2014
|
+
readonly internalType: "bytes32";
|
|
2015
|
+
readonly name: "prefixPriorityRequestHash";
|
|
2016
|
+
readonly type: "bytes32";
|
|
2017
|
+
}, {
|
|
2018
|
+
readonly internalType: "bytes32";
|
|
2019
|
+
readonly name: "onChainOperationsHash";
|
|
2020
|
+
readonly type: "bytes32";
|
|
2021
|
+
}, {
|
|
2022
|
+
readonly internalType: "bytes32";
|
|
2023
|
+
readonly name: "stateRoot";
|
|
2024
|
+
readonly type: "bytes32";
|
|
2025
|
+
}, {
|
|
2026
|
+
readonly internalType: "bytes32";
|
|
2027
|
+
readonly name: "validiumRoot";
|
|
2028
|
+
readonly type: "bytes32";
|
|
2029
|
+
}, {
|
|
2030
|
+
readonly internalType: "bytes32";
|
|
2031
|
+
readonly name: "commitment";
|
|
2032
|
+
readonly type: "bytes32";
|
|
2033
|
+
}];
|
|
2034
|
+
readonly internalType: "struct Storage.StoredBatchInfo";
|
|
2035
|
+
readonly name: "batch";
|
|
2036
|
+
readonly type: "tuple";
|
|
2037
|
+
}, {
|
|
2038
|
+
readonly internalType: "bytes";
|
|
2039
|
+
readonly name: "proof";
|
|
2040
|
+
readonly type: "bytes";
|
|
2041
|
+
}];
|
|
2042
|
+
readonly name: "verifyBatch";
|
|
2043
|
+
readonly outputs: readonly [];
|
|
2044
|
+
readonly stateMutability: "nonpayable";
|
|
2045
|
+
readonly type: "function";
|
|
2046
|
+
}, {
|
|
2047
|
+
readonly inputs: readonly [{
|
|
2048
|
+
readonly internalType: "uint48";
|
|
2049
|
+
readonly name: "_accountIndex";
|
|
2050
|
+
readonly type: "uint48";
|
|
2051
|
+
}, {
|
|
2052
|
+
readonly internalType: "uint16";
|
|
2053
|
+
readonly name: "_assetIndex";
|
|
2054
|
+
readonly type: "uint16";
|
|
2055
|
+
}, {
|
|
2056
|
+
readonly internalType: "enum TxTypes.RouteType";
|
|
2057
|
+
readonly name: "_routeType";
|
|
2058
|
+
readonly type: "uint8";
|
|
2059
|
+
}, {
|
|
2060
|
+
readonly internalType: "uint64";
|
|
2061
|
+
readonly name: "_baseAmount";
|
|
2062
|
+
readonly type: "uint64";
|
|
2063
|
+
}];
|
|
2064
|
+
readonly name: "withdraw";
|
|
2065
|
+
readonly outputs: readonly [];
|
|
2066
|
+
readonly stateMutability: "nonpayable";
|
|
2067
|
+
readonly type: "function";
|
|
2068
|
+
}, {
|
|
2069
|
+
readonly inputs: readonly [{
|
|
2070
|
+
readonly internalType: "address";
|
|
2071
|
+
readonly name: "_owner";
|
|
2072
|
+
readonly type: "address";
|
|
2073
|
+
}, {
|
|
2074
|
+
readonly internalType: "uint16";
|
|
2075
|
+
readonly name: "_assetIndex";
|
|
2076
|
+
readonly type: "uint16";
|
|
2077
|
+
}, {
|
|
2078
|
+
readonly internalType: "uint128";
|
|
2079
|
+
readonly name: "_baseAmount";
|
|
2080
|
+
readonly type: "uint128";
|
|
2081
|
+
}];
|
|
2082
|
+
readonly name: "withdrawPendingBalance";
|
|
2083
|
+
readonly outputs: readonly [];
|
|
2084
|
+
readonly stateMutability: "nonpayable";
|
|
2085
|
+
readonly type: "function";
|
|
2086
|
+
}, {
|
|
2087
|
+
readonly inputs: readonly [{
|
|
2088
|
+
readonly internalType: "address";
|
|
2089
|
+
readonly name: "_owner";
|
|
2090
|
+
readonly type: "address";
|
|
2091
|
+
}, {
|
|
2092
|
+
readonly internalType: "uint128";
|
|
2093
|
+
readonly name: "_baseAmount";
|
|
2094
|
+
readonly type: "uint128";
|
|
2095
|
+
}];
|
|
2096
|
+
readonly name: "withdrawPendingBalanceLegacy";
|
|
2097
|
+
readonly outputs: readonly [];
|
|
2098
|
+
readonly stateMutability: "nonpayable";
|
|
2099
|
+
readonly type: "function";
|
|
2100
|
+
}];
|
|
2101
|
+
/**
|
|
2102
|
+
* Type-safe ABI for ZkLighter_json
|
|
2103
|
+
*/
|
|
2104
|
+
export type ZkLighter_jsonAbi = typeof ZkLighter_jsonAbi;
|
|
2105
|
+
/**
|
|
2106
|
+
* Contract instance type for ZkLighter_json
|
|
2107
|
+
*/
|
|
2108
|
+
export type ZkLighter_jsonContract = any;
|
|
2109
|
+
/**
|
|
2110
|
+
* ZkLighter_json Contract Class
|
|
2111
|
+
*
|
|
2112
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
2113
|
+
*
|
|
2114
|
+
* @example
|
|
2115
|
+
* ```typescript
|
|
2116
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
2117
|
+
* import { mainnet } from 'viem/chains';
|
|
2118
|
+
* import { ZkLighter_json } from 'ZkLighter_json';
|
|
2119
|
+
*
|
|
2120
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
2121
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
2122
|
+
*
|
|
2123
|
+
* const contract = new ZkLighter_json('0x...', { publicClient, walletClient });
|
|
2124
|
+
*
|
|
2125
|
+
* // Read functions
|
|
2126
|
+
* const result = await contract.balanceOf('0x...');
|
|
2127
|
+
*
|
|
2128
|
+
* // Write functions
|
|
2129
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
2130
|
+
*
|
|
2131
|
+
* // Simulate transactions (dry-run)
|
|
2132
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
2133
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
2134
|
+
*
|
|
2135
|
+
* // Watch events
|
|
2136
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2137
|
+
* console.log('Transfer event:', event);
|
|
2138
|
+
* });
|
|
2139
|
+
* ```
|
|
2140
|
+
*/
|
|
2141
|
+
export declare class ZkLighter_json {
|
|
2142
|
+
private contract;
|
|
2143
|
+
private contractAddress;
|
|
2144
|
+
private publicClient;
|
|
2145
|
+
constructor(address: Address, clients: {
|
|
2146
|
+
publicClient: PublicClient;
|
|
2147
|
+
walletClient?: WalletClient;
|
|
2148
|
+
});
|
|
2149
|
+
/**
|
|
2150
|
+
* Get the contract address
|
|
2151
|
+
*/
|
|
2152
|
+
get address(): Address;
|
|
2153
|
+
/**
|
|
2154
|
+
* Get the underlying viem contract instance
|
|
2155
|
+
*/
|
|
2156
|
+
getContract(): ZkLighter_jsonContract;
|
|
2157
|
+
/**
|
|
2158
|
+
* MAX_ACCOUNT_INDEX
|
|
2159
|
+
* view
|
|
2160
|
+
*/
|
|
2161
|
+
MAX_ACCOUNT_INDEX(): Promise<bigint>;
|
|
2162
|
+
/**
|
|
2163
|
+
* MAX_API_KEY_INDEX
|
|
2164
|
+
* view
|
|
2165
|
+
*/
|
|
2166
|
+
MAX_API_KEY_INDEX(): Promise<bigint>;
|
|
2167
|
+
/**
|
|
2168
|
+
* MAX_ASSET_INDEX
|
|
2169
|
+
* view
|
|
2170
|
+
*/
|
|
2171
|
+
MAX_ASSET_INDEX(): Promise<bigint>;
|
|
2172
|
+
/**
|
|
2173
|
+
* MAX_BATCH_DEPOSIT_LENGTH
|
|
2174
|
+
* view
|
|
2175
|
+
*/
|
|
2176
|
+
MAX_BATCH_DEPOSIT_LENGTH(): Promise<bigint>;
|
|
2177
|
+
/**
|
|
2178
|
+
* MAX_DEPOSIT_CAP_TICKS
|
|
2179
|
+
* view
|
|
2180
|
+
*/
|
|
2181
|
+
MAX_DEPOSIT_CAP_TICKS(): Promise<bigint>;
|
|
2182
|
+
/**
|
|
2183
|
+
* MAX_MASTER_ACCOUNT_INDEX
|
|
2184
|
+
* view
|
|
2185
|
+
*/
|
|
2186
|
+
MAX_MASTER_ACCOUNT_INDEX(): Promise<bigint>;
|
|
2187
|
+
/**
|
|
2188
|
+
* MAX_ORDER_BASE_AMOUNT
|
|
2189
|
+
* view
|
|
2190
|
+
*/
|
|
2191
|
+
MAX_ORDER_BASE_AMOUNT(): Promise<bigint>;
|
|
2192
|
+
/**
|
|
2193
|
+
* MAX_ORDER_PRICE
|
|
2194
|
+
* view
|
|
2195
|
+
*/
|
|
2196
|
+
MAX_ORDER_PRICE(): Promise<bigint>;
|
|
2197
|
+
/**
|
|
2198
|
+
* MAX_ORDER_QUOTE_AMOUNT
|
|
2199
|
+
* view
|
|
2200
|
+
*/
|
|
2201
|
+
MAX_ORDER_QUOTE_AMOUNT(): Promise<bigint>;
|
|
2202
|
+
/**
|
|
2203
|
+
* MAX_PERPS_MARKET_INDEX
|
|
2204
|
+
* view
|
|
2205
|
+
*/
|
|
2206
|
+
MAX_PERPS_MARKET_INDEX(): Promise<bigint>;
|
|
2207
|
+
/**
|
|
2208
|
+
* MAX_POOL_SHARES_TO_MINT_OR_BURN
|
|
2209
|
+
* view
|
|
2210
|
+
*/
|
|
2211
|
+
MAX_POOL_SHARES_TO_MINT_OR_BURN(): Promise<bigint>;
|
|
2212
|
+
/**
|
|
2213
|
+
* MAX_SPOT_MARKET_INDEX
|
|
2214
|
+
* view
|
|
2215
|
+
*/
|
|
2216
|
+
MAX_SPOT_MARKET_INDEX(): Promise<bigint>;
|
|
2217
|
+
/**
|
|
2218
|
+
* MAX_STAKING_SHARES_TO_MINT_OR_BURN
|
|
2219
|
+
* view
|
|
2220
|
+
*/
|
|
2221
|
+
MAX_STAKING_SHARES_TO_MINT_OR_BURN(): Promise<bigint>;
|
|
2222
|
+
/**
|
|
2223
|
+
* MAX_TICK_SIZE
|
|
2224
|
+
* view
|
|
2225
|
+
*/
|
|
2226
|
+
MAX_TICK_SIZE(): Promise<bigint>;
|
|
2227
|
+
/**
|
|
2228
|
+
* MIN_ASSET_INDEX
|
|
2229
|
+
* view
|
|
2230
|
+
*/
|
|
2231
|
+
MIN_ASSET_INDEX(): Promise<bigint>;
|
|
2232
|
+
/**
|
|
2233
|
+
* MIN_ORDER_PRICE
|
|
2234
|
+
* view
|
|
2235
|
+
*/
|
|
2236
|
+
MIN_ORDER_PRICE(): Promise<bigint>;
|
|
2237
|
+
/**
|
|
2238
|
+
* MIN_POOL_SHARES_TO_MINT_OR_BURN
|
|
2239
|
+
* view
|
|
2240
|
+
*/
|
|
2241
|
+
MIN_POOL_SHARES_TO_MINT_OR_BURN(): Promise<bigint>;
|
|
2242
|
+
/**
|
|
2243
|
+
* MIN_SPOT_MARKET_INDEX
|
|
2244
|
+
* view
|
|
2245
|
+
*/
|
|
2246
|
+
MIN_SPOT_MARKET_INDEX(): Promise<bigint>;
|
|
2247
|
+
/**
|
|
2248
|
+
* MIN_STAKING_SHARES_TO_MINT_OR_BURN
|
|
2249
|
+
* view
|
|
2250
|
+
*/
|
|
2251
|
+
MIN_STAKING_SHARES_TO_MINT_OR_BURN(): Promise<bigint>;
|
|
2252
|
+
/**
|
|
2253
|
+
* NATIVE_ASSET_INDEX
|
|
2254
|
+
* view
|
|
2255
|
+
*/
|
|
2256
|
+
NATIVE_ASSET_INDEX(): Promise<bigint>;
|
|
2257
|
+
/**
|
|
2258
|
+
* NIL_ACCOUNT_INDEX
|
|
2259
|
+
* view
|
|
2260
|
+
*/
|
|
2261
|
+
NIL_ACCOUNT_INDEX(): Promise<bigint>;
|
|
2262
|
+
/**
|
|
2263
|
+
* PRIORITY_EXPIRATION
|
|
2264
|
+
* view
|
|
2265
|
+
*/
|
|
2266
|
+
PRIORITY_EXPIRATION(): Promise<bigint>;
|
|
2267
|
+
/**
|
|
2268
|
+
* USDC_ASSET_INDEX
|
|
2269
|
+
* view
|
|
2270
|
+
*/
|
|
2271
|
+
USDC_ASSET_INDEX(): Promise<bigint>;
|
|
2272
|
+
/**
|
|
2273
|
+
* __DEPRECATED_stateRootUpdates
|
|
2274
|
+
* view
|
|
2275
|
+
*/
|
|
2276
|
+
__DEPRECATED_stateRootUpdates(arg0: bigint): Promise<`0x${string}`>;
|
|
2277
|
+
/**
|
|
2278
|
+
* addressToAccountIndex
|
|
2279
|
+
* view
|
|
2280
|
+
*/
|
|
2281
|
+
addressToAccountIndex(arg0: `0x${string}`): Promise<bigint>;
|
|
2282
|
+
/**
|
|
2283
|
+
* assetConfigs
|
|
2284
|
+
* view
|
|
2285
|
+
*/
|
|
2286
|
+
assetConfigs(arg0: bigint): Promise<[`0x${string}`, bigint, bigint, bigint, bigint, bigint]>;
|
|
2287
|
+
/**
|
|
2288
|
+
* committedBatchesCount
|
|
2289
|
+
* view
|
|
2290
|
+
*/
|
|
2291
|
+
committedBatchesCount(): Promise<bigint>;
|
|
2292
|
+
/**
|
|
2293
|
+
* committedPriorityRequestCount
|
|
2294
|
+
* view
|
|
2295
|
+
*/
|
|
2296
|
+
committedPriorityRequestCount(): Promise<bigint>;
|
|
2297
|
+
/**
|
|
2298
|
+
* desertMode
|
|
2299
|
+
* view
|
|
2300
|
+
*/
|
|
2301
|
+
desertMode(): Promise<boolean>;
|
|
2302
|
+
/**
|
|
2303
|
+
* executedBatchesCount
|
|
2304
|
+
* view
|
|
2305
|
+
*/
|
|
2306
|
+
executedBatchesCount(): Promise<bigint>;
|
|
2307
|
+
/**
|
|
2308
|
+
* executedOnChainBatchesCount
|
|
2309
|
+
* view
|
|
2310
|
+
*/
|
|
2311
|
+
executedOnChainBatchesCount(): Promise<bigint>;
|
|
2312
|
+
/**
|
|
2313
|
+
* executedPriorityRequestCount
|
|
2314
|
+
* view
|
|
2315
|
+
*/
|
|
2316
|
+
executedPriorityRequestCount(): Promise<bigint>;
|
|
2317
|
+
/**
|
|
2318
|
+
* getPendingBalance
|
|
2319
|
+
* view
|
|
2320
|
+
*/
|
|
2321
|
+
getPendingBalance(_owner: `0x${string}`, _assetIndex: bigint): Promise<bigint>;
|
|
2322
|
+
/**
|
|
2323
|
+
* getPendingBalanceLegacy
|
|
2324
|
+
* view
|
|
2325
|
+
*/
|
|
2326
|
+
getPendingBalanceLegacy(_owner: `0x${string}`): Promise<bigint>;
|
|
2327
|
+
/**
|
|
2328
|
+
* insuranceFundOperator
|
|
2329
|
+
* view
|
|
2330
|
+
*/
|
|
2331
|
+
insuranceFundOperator(): Promise<`0x${string}`>;
|
|
2332
|
+
/**
|
|
2333
|
+
* lastAccountIndex
|
|
2334
|
+
* view
|
|
2335
|
+
*/
|
|
2336
|
+
lastAccountIndex(): Promise<bigint>;
|
|
2337
|
+
/**
|
|
2338
|
+
* lastVerifiedEndBlockNumber
|
|
2339
|
+
* view
|
|
2340
|
+
*/
|
|
2341
|
+
lastVerifiedEndBlockNumber(): Promise<bigint>;
|
|
2342
|
+
/**
|
|
2343
|
+
* lastVerifiedStateRoot
|
|
2344
|
+
* view
|
|
2345
|
+
*/
|
|
2346
|
+
lastVerifiedStateRoot(): Promise<`0x${string}`>;
|
|
2347
|
+
/**
|
|
2348
|
+
* lastVerifiedValidiumRoot
|
|
2349
|
+
* view
|
|
2350
|
+
*/
|
|
2351
|
+
lastVerifiedValidiumRoot(): Promise<`0x${string}`>;
|
|
2352
|
+
/**
|
|
2353
|
+
* openPriorityRequestCount
|
|
2354
|
+
* view
|
|
2355
|
+
*/
|
|
2356
|
+
openPriorityRequestCount(): Promise<bigint>;
|
|
2357
|
+
/**
|
|
2358
|
+
* pendingOnChainBatchesCount
|
|
2359
|
+
* view
|
|
2360
|
+
*/
|
|
2361
|
+
pendingOnChainBatchesCount(): Promise<bigint>;
|
|
2362
|
+
/**
|
|
2363
|
+
* stateRoot
|
|
2364
|
+
* view
|
|
2365
|
+
*/
|
|
2366
|
+
stateRoot(): Promise<`0x${string}`>;
|
|
2367
|
+
/**
|
|
2368
|
+
* stateRootUpdates
|
|
2369
|
+
* view
|
|
2370
|
+
*/
|
|
2371
|
+
stateRootUpdates(arg0: bigint): Promise<`0x${string}`>;
|
|
2372
|
+
/**
|
|
2373
|
+
* storedBatchHashes
|
|
2374
|
+
* view
|
|
2375
|
+
*/
|
|
2376
|
+
storedBatchHashes(arg0: bigint): Promise<`0x${string}`>;
|
|
2377
|
+
/**
|
|
2378
|
+
* tokenToAssetIndex
|
|
2379
|
+
* view
|
|
2380
|
+
*/
|
|
2381
|
+
tokenToAssetIndex(arg0: `0x${string}`): Promise<bigint>;
|
|
2382
|
+
/**
|
|
2383
|
+
* treasury
|
|
2384
|
+
* view
|
|
2385
|
+
*/
|
|
2386
|
+
treasury(): Promise<`0x${string}`>;
|
|
2387
|
+
/**
|
|
2388
|
+
* validiumRoot
|
|
2389
|
+
* view
|
|
2390
|
+
*/
|
|
2391
|
+
validiumRoot(): Promise<`0x${string}`>;
|
|
2392
|
+
/**
|
|
2393
|
+
* verifiedBatchesCount
|
|
2394
|
+
* view
|
|
2395
|
+
*/
|
|
2396
|
+
verifiedBatchesCount(): Promise<bigint>;
|
|
2397
|
+
/**
|
|
2398
|
+
* verifiedPriorityRequestCount
|
|
2399
|
+
* view
|
|
2400
|
+
*/
|
|
2401
|
+
verifiedPriorityRequestCount(): Promise<bigint>;
|
|
2402
|
+
/**
|
|
2403
|
+
* activateDesertMode
|
|
2404
|
+
* nonpayable
|
|
2405
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2406
|
+
*/
|
|
2407
|
+
activateDesertMode(options?: {
|
|
2408
|
+
accessList?: import('viem').AccessList;
|
|
2409
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2410
|
+
chain?: import('viem').Chain | null;
|
|
2411
|
+
dataSuffix?: `0x${string}`;
|
|
2412
|
+
gas?: bigint;
|
|
2413
|
+
gasPrice?: bigint;
|
|
2414
|
+
maxFeePerGas?: bigint;
|
|
2415
|
+
maxPriorityFeePerGas?: bigint;
|
|
2416
|
+
nonce?: number;
|
|
2417
|
+
value?: bigint;
|
|
2418
|
+
}): Promise<`0x${string}`>;
|
|
2419
|
+
/**
|
|
2420
|
+
* burnShares
|
|
2421
|
+
* nonpayable
|
|
2422
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2423
|
+
*/
|
|
2424
|
+
burnShares(_accountIndex: bigint, _publicPoolIndex: bigint, _shareAmount: bigint, options?: {
|
|
2425
|
+
accessList?: import('viem').AccessList;
|
|
2426
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2427
|
+
chain?: import('viem').Chain | null;
|
|
2428
|
+
dataSuffix?: `0x${string}`;
|
|
2429
|
+
gas?: bigint;
|
|
2430
|
+
gasPrice?: bigint;
|
|
2431
|
+
maxFeePerGas?: bigint;
|
|
2432
|
+
maxPriorityFeePerGas?: bigint;
|
|
2433
|
+
nonce?: number;
|
|
2434
|
+
value?: bigint;
|
|
2435
|
+
}): Promise<`0x${string}`>;
|
|
2436
|
+
/**
|
|
2437
|
+
* cancelAllOrders
|
|
2438
|
+
* nonpayable
|
|
2439
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2440
|
+
*/
|
|
2441
|
+
cancelAllOrders(_accountIndex: bigint, options?: {
|
|
2442
|
+
accessList?: import('viem').AccessList;
|
|
2443
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2444
|
+
chain?: import('viem').Chain | null;
|
|
2445
|
+
dataSuffix?: `0x${string}`;
|
|
2446
|
+
gas?: bigint;
|
|
2447
|
+
gasPrice?: bigint;
|
|
2448
|
+
maxFeePerGas?: bigint;
|
|
2449
|
+
maxPriorityFeePerGas?: bigint;
|
|
2450
|
+
nonce?: number;
|
|
2451
|
+
value?: bigint;
|
|
2452
|
+
}): Promise<`0x${string}`>;
|
|
2453
|
+
/**
|
|
2454
|
+
* cancelOutstandingDepositsForDesertMode
|
|
2455
|
+
* nonpayable
|
|
2456
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2457
|
+
*/
|
|
2458
|
+
cancelOutstandingDepositsForDesertMode(_n: bigint, _priorityPubData: `0x${string}`[], options?: {
|
|
2459
|
+
accessList?: import('viem').AccessList;
|
|
2460
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2461
|
+
chain?: import('viem').Chain | null;
|
|
2462
|
+
dataSuffix?: `0x${string}`;
|
|
2463
|
+
gas?: bigint;
|
|
2464
|
+
gasPrice?: bigint;
|
|
2465
|
+
maxFeePerGas?: bigint;
|
|
2466
|
+
maxPriorityFeePerGas?: bigint;
|
|
2467
|
+
nonce?: number;
|
|
2468
|
+
value?: bigint;
|
|
2469
|
+
}): Promise<`0x${string}`>;
|
|
2470
|
+
/**
|
|
2471
|
+
* changePubKey
|
|
2472
|
+
* nonpayable
|
|
2473
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2474
|
+
*/
|
|
2475
|
+
changePubKey(_accountIndex: bigint, _apiKeyIndex: bigint, _pubKey: `0x${string}`, options?: {
|
|
2476
|
+
accessList?: import('viem').AccessList;
|
|
2477
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2478
|
+
chain?: import('viem').Chain | null;
|
|
2479
|
+
dataSuffix?: `0x${string}`;
|
|
2480
|
+
gas?: bigint;
|
|
2481
|
+
gasPrice?: bigint;
|
|
2482
|
+
maxFeePerGas?: bigint;
|
|
2483
|
+
maxPriorityFeePerGas?: bigint;
|
|
2484
|
+
nonce?: number;
|
|
2485
|
+
value?: bigint;
|
|
2486
|
+
}): Promise<`0x${string}`>;
|
|
2487
|
+
/**
|
|
2488
|
+
* commitBatch
|
|
2489
|
+
* nonpayable
|
|
2490
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2491
|
+
*/
|
|
2492
|
+
commitBatch(newBatchData: IZkLighter_CommitBatchInfo, lastStoredBatch: Storage_StoredBatchInfo, options?: {
|
|
2493
|
+
accessList?: import('viem').AccessList;
|
|
2494
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2495
|
+
chain?: import('viem').Chain | null;
|
|
2496
|
+
dataSuffix?: `0x${string}`;
|
|
2497
|
+
gas?: bigint;
|
|
2498
|
+
gasPrice?: bigint;
|
|
2499
|
+
maxFeePerGas?: bigint;
|
|
2500
|
+
maxPriorityFeePerGas?: bigint;
|
|
2501
|
+
nonce?: number;
|
|
2502
|
+
value?: bigint;
|
|
2503
|
+
}): Promise<`0x${string}`>;
|
|
2504
|
+
/**
|
|
2505
|
+
* createMarket
|
|
2506
|
+
* nonpayable
|
|
2507
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2508
|
+
*/
|
|
2509
|
+
createMarket(_size_decimals: bigint, _price_decimals: bigint, _symbol: `0x${string}`, _params: TxTypes_CreateMarket, options?: {
|
|
2510
|
+
accessList?: import('viem').AccessList;
|
|
2511
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2512
|
+
chain?: import('viem').Chain | null;
|
|
2513
|
+
dataSuffix?: `0x${string}`;
|
|
2514
|
+
gas?: bigint;
|
|
2515
|
+
gasPrice?: bigint;
|
|
2516
|
+
maxFeePerGas?: bigint;
|
|
2517
|
+
maxPriorityFeePerGas?: bigint;
|
|
2518
|
+
nonce?: number;
|
|
2519
|
+
value?: bigint;
|
|
2520
|
+
}): Promise<`0x${string}`>;
|
|
2521
|
+
/**
|
|
2522
|
+
* createOrder
|
|
2523
|
+
* nonpayable
|
|
2524
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2525
|
+
*/
|
|
2526
|
+
createOrder(_accountIndex: bigint, _marketIndex: bigint, _baseAmount: bigint, _price: bigint, _isAsk: bigint, _orderType: bigint, options?: {
|
|
2527
|
+
accessList?: import('viem').AccessList;
|
|
2528
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2529
|
+
chain?: import('viem').Chain | null;
|
|
2530
|
+
dataSuffix?: `0x${string}`;
|
|
2531
|
+
gas?: bigint;
|
|
2532
|
+
gasPrice?: bigint;
|
|
2533
|
+
maxFeePerGas?: bigint;
|
|
2534
|
+
maxPriorityFeePerGas?: bigint;
|
|
2535
|
+
nonce?: number;
|
|
2536
|
+
value?: bigint;
|
|
2537
|
+
}): Promise<`0x${string}`>;
|
|
2538
|
+
/**
|
|
2539
|
+
* deposit
|
|
2540
|
+
* payable
|
|
2541
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2542
|
+
*/
|
|
2543
|
+
deposit(_to: `0x${string}`, _assetIndex: bigint, _routeType: bigint, _amount: bigint, options?: {
|
|
2544
|
+
accessList?: import('viem').AccessList;
|
|
2545
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2546
|
+
chain?: import('viem').Chain | null;
|
|
2547
|
+
dataSuffix?: `0x${string}`;
|
|
2548
|
+
gas?: bigint;
|
|
2549
|
+
gasPrice?: bigint;
|
|
2550
|
+
maxFeePerGas?: bigint;
|
|
2551
|
+
maxPriorityFeePerGas?: bigint;
|
|
2552
|
+
nonce?: number;
|
|
2553
|
+
value?: bigint;
|
|
2554
|
+
}): Promise<`0x${string}`>;
|
|
2555
|
+
/**
|
|
2556
|
+
* depositBatch
|
|
2557
|
+
* nonpayable
|
|
2558
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2559
|
+
*/
|
|
2560
|
+
depositBatch(_amount: bigint[], _to: `0x${string}`[], _accountIndex: bigint[], options?: {
|
|
2561
|
+
accessList?: import('viem').AccessList;
|
|
2562
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2563
|
+
chain?: import('viem').Chain | null;
|
|
2564
|
+
dataSuffix?: `0x${string}`;
|
|
2565
|
+
gas?: bigint;
|
|
2566
|
+
gasPrice?: bigint;
|
|
2567
|
+
maxFeePerGas?: bigint;
|
|
2568
|
+
maxPriorityFeePerGas?: bigint;
|
|
2569
|
+
nonce?: number;
|
|
2570
|
+
value?: bigint;
|
|
2571
|
+
}): Promise<`0x${string}`>;
|
|
2572
|
+
/**
|
|
2573
|
+
* executeBatches
|
|
2574
|
+
* nonpayable
|
|
2575
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2576
|
+
*/
|
|
2577
|
+
executeBatches(batches: Storage_StoredBatchInfo[], onChainOperationsPubData: `0x${string}`[], options?: {
|
|
2578
|
+
accessList?: import('viem').AccessList;
|
|
2579
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2580
|
+
chain?: import('viem').Chain | null;
|
|
2581
|
+
dataSuffix?: `0x${string}`;
|
|
2582
|
+
gas?: bigint;
|
|
2583
|
+
gasPrice?: bigint;
|
|
2584
|
+
maxFeePerGas?: bigint;
|
|
2585
|
+
maxPriorityFeePerGas?: bigint;
|
|
2586
|
+
nonce?: number;
|
|
2587
|
+
value?: bigint;
|
|
2588
|
+
}): Promise<`0x${string}`>;
|
|
2589
|
+
/**
|
|
2590
|
+
* initialize
|
|
2591
|
+
* nonpayable
|
|
2592
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2593
|
+
*/
|
|
2594
|
+
initialize(initializationParameters: `0x${string}`, options?: {
|
|
2595
|
+
accessList?: import('viem').AccessList;
|
|
2596
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2597
|
+
chain?: import('viem').Chain | null;
|
|
2598
|
+
dataSuffix?: `0x${string}`;
|
|
2599
|
+
gas?: bigint;
|
|
2600
|
+
gasPrice?: bigint;
|
|
2601
|
+
maxFeePerGas?: bigint;
|
|
2602
|
+
maxPriorityFeePerGas?: bigint;
|
|
2603
|
+
nonce?: number;
|
|
2604
|
+
value?: bigint;
|
|
2605
|
+
}): Promise<`0x${string}`>;
|
|
2606
|
+
/**
|
|
2607
|
+
* performDesert
|
|
2608
|
+
* nonpayable
|
|
2609
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2610
|
+
*/
|
|
2611
|
+
performDesert(_accountIndex: bigint, _l1Address: `0x${string}`, _assetIndex: bigint, _totalBaseAmount: bigint, proof: `0x${string}`, options?: {
|
|
2612
|
+
accessList?: import('viem').AccessList;
|
|
2613
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2614
|
+
chain?: import('viem').Chain | null;
|
|
2615
|
+
dataSuffix?: `0x${string}`;
|
|
2616
|
+
gas?: bigint;
|
|
2617
|
+
gasPrice?: bigint;
|
|
2618
|
+
maxFeePerGas?: bigint;
|
|
2619
|
+
maxPriorityFeePerGas?: bigint;
|
|
2620
|
+
nonce?: number;
|
|
2621
|
+
value?: bigint;
|
|
2622
|
+
}): Promise<`0x${string}`>;
|
|
2623
|
+
/**
|
|
2624
|
+
* registerAsset
|
|
2625
|
+
* nonpayable
|
|
2626
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2627
|
+
*/
|
|
2628
|
+
registerAsset(_l1Decimals: bigint, _l2Decimals: bigint, _priceDecimals: bigint, _symbol: `0x${string}`, _params: TxTypes_RegisterAsset, options?: {
|
|
2629
|
+
accessList?: import('viem').AccessList;
|
|
2630
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2631
|
+
chain?: import('viem').Chain | null;
|
|
2632
|
+
dataSuffix?: `0x${string}`;
|
|
2633
|
+
gas?: bigint;
|
|
2634
|
+
gasPrice?: bigint;
|
|
2635
|
+
maxFeePerGas?: bigint;
|
|
2636
|
+
maxPriorityFeePerGas?: bigint;
|
|
2637
|
+
nonce?: number;
|
|
2638
|
+
value?: bigint;
|
|
2639
|
+
}): Promise<`0x${string}`>;
|
|
2640
|
+
/**
|
|
2641
|
+
* registerAssetConfig
|
|
2642
|
+
* nonpayable
|
|
2643
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2644
|
+
*/
|
|
2645
|
+
registerAssetConfig(assetIndex: bigint, tokenAddress: `0x${string}`, withdrawalsEnabled: bigint, extensionMultiplier: bigint, tickSize: bigint, depositCapTicks: bigint, minDepositTicks: bigint, options?: {
|
|
2646
|
+
accessList?: import('viem').AccessList;
|
|
2647
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2648
|
+
chain?: import('viem').Chain | null;
|
|
2649
|
+
dataSuffix?: `0x${string}`;
|
|
2650
|
+
gas?: bigint;
|
|
2651
|
+
gasPrice?: bigint;
|
|
2652
|
+
maxFeePerGas?: bigint;
|
|
2653
|
+
maxPriorityFeePerGas?: bigint;
|
|
2654
|
+
nonce?: number;
|
|
2655
|
+
value?: bigint;
|
|
2656
|
+
}): Promise<`0x${string}`>;
|
|
2657
|
+
/**
|
|
2658
|
+
* revertBatches
|
|
2659
|
+
* nonpayable
|
|
2660
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2661
|
+
*/
|
|
2662
|
+
revertBatches(_batchesToRevert: Storage_StoredBatchInfo[], _remainingBatch: Storage_StoredBatchInfo, options?: {
|
|
2663
|
+
accessList?: import('viem').AccessList;
|
|
2664
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2665
|
+
chain?: import('viem').Chain | null;
|
|
2666
|
+
dataSuffix?: `0x${string}`;
|
|
2667
|
+
gas?: bigint;
|
|
2668
|
+
gasPrice?: bigint;
|
|
2669
|
+
maxFeePerGas?: bigint;
|
|
2670
|
+
maxPriorityFeePerGas?: bigint;
|
|
2671
|
+
nonce?: number;
|
|
2672
|
+
value?: bigint;
|
|
2673
|
+
}): Promise<`0x${string}`>;
|
|
2674
|
+
/**
|
|
2675
|
+
* setInsuranceFundOperator
|
|
2676
|
+
* nonpayable
|
|
2677
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2678
|
+
*/
|
|
2679
|
+
setInsuranceFundOperator(_newInsuranceFundOperator: `0x${string}`, options?: {
|
|
2680
|
+
accessList?: import('viem').AccessList;
|
|
2681
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2682
|
+
chain?: import('viem').Chain | null;
|
|
2683
|
+
dataSuffix?: `0x${string}`;
|
|
2684
|
+
gas?: bigint;
|
|
2685
|
+
gasPrice?: bigint;
|
|
2686
|
+
maxFeePerGas?: bigint;
|
|
2687
|
+
maxPriorityFeePerGas?: bigint;
|
|
2688
|
+
nonce?: number;
|
|
2689
|
+
value?: bigint;
|
|
2690
|
+
}): Promise<`0x${string}`>;
|
|
2691
|
+
/**
|
|
2692
|
+
* setSystemConfig
|
|
2693
|
+
* nonpayable
|
|
2694
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2695
|
+
*/
|
|
2696
|
+
setSystemConfig(_params: TxTypes_SetSystemConfig, options?: {
|
|
2697
|
+
accessList?: import('viem').AccessList;
|
|
2698
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2699
|
+
chain?: import('viem').Chain | null;
|
|
2700
|
+
dataSuffix?: `0x${string}`;
|
|
2701
|
+
gas?: bigint;
|
|
2702
|
+
gasPrice?: bigint;
|
|
2703
|
+
maxFeePerGas?: bigint;
|
|
2704
|
+
maxPriorityFeePerGas?: bigint;
|
|
2705
|
+
nonce?: number;
|
|
2706
|
+
value?: bigint;
|
|
2707
|
+
}): Promise<`0x${string}`>;
|
|
2708
|
+
/**
|
|
2709
|
+
* setTreasury
|
|
2710
|
+
* nonpayable
|
|
2711
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2712
|
+
*/
|
|
2713
|
+
setTreasury(_newTreasury: `0x${string}`, options?: {
|
|
2714
|
+
accessList?: import('viem').AccessList;
|
|
2715
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2716
|
+
chain?: import('viem').Chain | null;
|
|
2717
|
+
dataSuffix?: `0x${string}`;
|
|
2718
|
+
gas?: bigint;
|
|
2719
|
+
gasPrice?: bigint;
|
|
2720
|
+
maxFeePerGas?: bigint;
|
|
2721
|
+
maxPriorityFeePerGas?: bigint;
|
|
2722
|
+
nonce?: number;
|
|
2723
|
+
value?: bigint;
|
|
2724
|
+
}): Promise<`0x${string}`>;
|
|
2725
|
+
/**
|
|
2726
|
+
* transferERC20
|
|
2727
|
+
* nonpayable
|
|
2728
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2729
|
+
*/
|
|
2730
|
+
transferERC20(_token: `0x${string}`, _to: `0x${string}`, _amount: bigint, _maxAmount: bigint, options?: {
|
|
2731
|
+
accessList?: import('viem').AccessList;
|
|
2732
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2733
|
+
chain?: import('viem').Chain | null;
|
|
2734
|
+
dataSuffix?: `0x${string}`;
|
|
2735
|
+
gas?: bigint;
|
|
2736
|
+
gasPrice?: bigint;
|
|
2737
|
+
maxFeePerGas?: bigint;
|
|
2738
|
+
maxPriorityFeePerGas?: bigint;
|
|
2739
|
+
nonce?: number;
|
|
2740
|
+
value?: bigint;
|
|
2741
|
+
}): Promise<`0x${string}`>;
|
|
2742
|
+
/**
|
|
2743
|
+
* transferETH
|
|
2744
|
+
* nonpayable
|
|
2745
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2746
|
+
*/
|
|
2747
|
+
transferETH(_to: `0x${string}`, _amount: bigint, options?: {
|
|
2748
|
+
accessList?: import('viem').AccessList;
|
|
2749
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2750
|
+
chain?: import('viem').Chain | null;
|
|
2751
|
+
dataSuffix?: `0x${string}`;
|
|
2752
|
+
gas?: bigint;
|
|
2753
|
+
gasPrice?: bigint;
|
|
2754
|
+
maxFeePerGas?: bigint;
|
|
2755
|
+
maxPriorityFeePerGas?: bigint;
|
|
2756
|
+
nonce?: number;
|
|
2757
|
+
value?: bigint;
|
|
2758
|
+
}): Promise<`0x${string}`>;
|
|
2759
|
+
/**
|
|
2760
|
+
* updateAsset
|
|
2761
|
+
* nonpayable
|
|
2762
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2763
|
+
*/
|
|
2764
|
+
updateAsset(_params: TxTypes_UpdateAsset, options?: {
|
|
2765
|
+
accessList?: import('viem').AccessList;
|
|
2766
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2767
|
+
chain?: import('viem').Chain | null;
|
|
2768
|
+
dataSuffix?: `0x${string}`;
|
|
2769
|
+
gas?: bigint;
|
|
2770
|
+
gasPrice?: bigint;
|
|
2771
|
+
maxFeePerGas?: bigint;
|
|
2772
|
+
maxPriorityFeePerGas?: bigint;
|
|
2773
|
+
nonce?: number;
|
|
2774
|
+
value?: bigint;
|
|
2775
|
+
}): Promise<`0x${string}`>;
|
|
2776
|
+
/**
|
|
2777
|
+
* updateAssetConfig
|
|
2778
|
+
* nonpayable
|
|
2779
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2780
|
+
*/
|
|
2781
|
+
updateAssetConfig(assetIndex: bigint, withdrawalsEnabled: bigint, depositCapTicks: bigint, minDepositTicks: bigint, options?: {
|
|
2782
|
+
accessList?: import('viem').AccessList;
|
|
2783
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2784
|
+
chain?: import('viem').Chain | null;
|
|
2785
|
+
dataSuffix?: `0x${string}`;
|
|
2786
|
+
gas?: bigint;
|
|
2787
|
+
gasPrice?: bigint;
|
|
2788
|
+
maxFeePerGas?: bigint;
|
|
2789
|
+
maxPriorityFeePerGas?: bigint;
|
|
2790
|
+
nonce?: number;
|
|
2791
|
+
value?: bigint;
|
|
2792
|
+
}): Promise<`0x${string}`>;
|
|
2793
|
+
/**
|
|
2794
|
+
* updateMarket
|
|
2795
|
+
* nonpayable
|
|
2796
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2797
|
+
*/
|
|
2798
|
+
updateMarket(_params: TxTypes_UpdateMarket, options?: {
|
|
2799
|
+
accessList?: import('viem').AccessList;
|
|
2800
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2801
|
+
chain?: import('viem').Chain | null;
|
|
2802
|
+
dataSuffix?: `0x${string}`;
|
|
2803
|
+
gas?: bigint;
|
|
2804
|
+
gasPrice?: bigint;
|
|
2805
|
+
maxFeePerGas?: bigint;
|
|
2806
|
+
maxPriorityFeePerGas?: bigint;
|
|
2807
|
+
nonce?: number;
|
|
2808
|
+
value?: bigint;
|
|
2809
|
+
}): Promise<`0x${string}`>;
|
|
2810
|
+
/**
|
|
2811
|
+
* updateStateRoot
|
|
2812
|
+
* nonpayable
|
|
2813
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2814
|
+
*/
|
|
2815
|
+
updateStateRoot(_lastStoredBatch: Storage_StoredBatchInfo, _stateRoot: `0x${string}`, _validiumRoot: `0x${string}`, proof: `0x${string}`, options?: {
|
|
2816
|
+
accessList?: import('viem').AccessList;
|
|
2817
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2818
|
+
chain?: import('viem').Chain | null;
|
|
2819
|
+
dataSuffix?: `0x${string}`;
|
|
2820
|
+
gas?: bigint;
|
|
2821
|
+
gasPrice?: bigint;
|
|
2822
|
+
maxFeePerGas?: bigint;
|
|
2823
|
+
maxPriorityFeePerGas?: bigint;
|
|
2824
|
+
nonce?: number;
|
|
2825
|
+
value?: bigint;
|
|
2826
|
+
}): Promise<`0x${string}`>;
|
|
2827
|
+
/**
|
|
2828
|
+
* upgrade
|
|
2829
|
+
* nonpayable
|
|
2830
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2831
|
+
*/
|
|
2832
|
+
upgrade(upgradeParameters: `0x${string}`, options?: {
|
|
2833
|
+
accessList?: import('viem').AccessList;
|
|
2834
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2835
|
+
chain?: import('viem').Chain | null;
|
|
2836
|
+
dataSuffix?: `0x${string}`;
|
|
2837
|
+
gas?: bigint;
|
|
2838
|
+
gasPrice?: bigint;
|
|
2839
|
+
maxFeePerGas?: bigint;
|
|
2840
|
+
maxPriorityFeePerGas?: bigint;
|
|
2841
|
+
nonce?: number;
|
|
2842
|
+
value?: bigint;
|
|
2843
|
+
}): Promise<`0x${string}`>;
|
|
2844
|
+
/**
|
|
2845
|
+
* verifyBatch
|
|
2846
|
+
* nonpayable
|
|
2847
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2848
|
+
*/
|
|
2849
|
+
verifyBatch(batch: Storage_StoredBatchInfo, proof: `0x${string}`, options?: {
|
|
2850
|
+
accessList?: import('viem').AccessList;
|
|
2851
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2852
|
+
chain?: import('viem').Chain | null;
|
|
2853
|
+
dataSuffix?: `0x${string}`;
|
|
2854
|
+
gas?: bigint;
|
|
2855
|
+
gasPrice?: bigint;
|
|
2856
|
+
maxFeePerGas?: bigint;
|
|
2857
|
+
maxPriorityFeePerGas?: bigint;
|
|
2858
|
+
nonce?: number;
|
|
2859
|
+
value?: bigint;
|
|
2860
|
+
}): Promise<`0x${string}`>;
|
|
2861
|
+
/**
|
|
2862
|
+
* withdraw
|
|
2863
|
+
* nonpayable
|
|
2864
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2865
|
+
*/
|
|
2866
|
+
withdraw(_accountIndex: bigint, _assetIndex: bigint, _routeType: bigint, _baseAmount: bigint, options?: {
|
|
2867
|
+
accessList?: import('viem').AccessList;
|
|
2868
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2869
|
+
chain?: import('viem').Chain | null;
|
|
2870
|
+
dataSuffix?: `0x${string}`;
|
|
2871
|
+
gas?: bigint;
|
|
2872
|
+
gasPrice?: bigint;
|
|
2873
|
+
maxFeePerGas?: bigint;
|
|
2874
|
+
maxPriorityFeePerGas?: bigint;
|
|
2875
|
+
nonce?: number;
|
|
2876
|
+
value?: bigint;
|
|
2877
|
+
}): Promise<`0x${string}`>;
|
|
2878
|
+
/**
|
|
2879
|
+
* withdrawPendingBalance
|
|
2880
|
+
* nonpayable
|
|
2881
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2882
|
+
*/
|
|
2883
|
+
withdrawPendingBalance(_owner: `0x${string}`, _assetIndex: bigint, _baseAmount: bigint, options?: {
|
|
2884
|
+
accessList?: import('viem').AccessList;
|
|
2885
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2886
|
+
chain?: import('viem').Chain | null;
|
|
2887
|
+
dataSuffix?: `0x${string}`;
|
|
2888
|
+
gas?: bigint;
|
|
2889
|
+
gasPrice?: bigint;
|
|
2890
|
+
maxFeePerGas?: bigint;
|
|
2891
|
+
maxPriorityFeePerGas?: bigint;
|
|
2892
|
+
nonce?: number;
|
|
2893
|
+
value?: bigint;
|
|
2894
|
+
}): Promise<`0x${string}`>;
|
|
2895
|
+
/**
|
|
2896
|
+
* withdrawPendingBalanceLegacy
|
|
2897
|
+
* nonpayable
|
|
2898
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2899
|
+
*/
|
|
2900
|
+
withdrawPendingBalanceLegacy(_owner: `0x${string}`, _baseAmount: bigint, options?: {
|
|
2901
|
+
accessList?: import('viem').AccessList;
|
|
2902
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2903
|
+
chain?: import('viem').Chain | null;
|
|
2904
|
+
dataSuffix?: `0x${string}`;
|
|
2905
|
+
gas?: bigint;
|
|
2906
|
+
gasPrice?: bigint;
|
|
2907
|
+
maxFeePerGas?: bigint;
|
|
2908
|
+
maxPriorityFeePerGas?: bigint;
|
|
2909
|
+
nonce?: number;
|
|
2910
|
+
value?: bigint;
|
|
2911
|
+
}): Promise<`0x${string}`>;
|
|
2912
|
+
/**
|
|
2913
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
2914
|
+
*
|
|
2915
|
+
* @example
|
|
2916
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
2917
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
2918
|
+
* console.log('Would succeed:', result.result);
|
|
2919
|
+
*/
|
|
2920
|
+
get simulate(): {
|
|
2921
|
+
/**
|
|
2922
|
+
* Simulate activateDesertMode
|
|
2923
|
+
* Returns gas estimate and result without sending transaction
|
|
2924
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2925
|
+
*/
|
|
2926
|
+
activateDesertMode(options?: {
|
|
2927
|
+
accessList?: import("viem").AccessList;
|
|
2928
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2929
|
+
chain?: import("viem").Chain | null;
|
|
2930
|
+
dataSuffix?: `0x${string}`;
|
|
2931
|
+
gas?: bigint;
|
|
2932
|
+
gasPrice?: bigint;
|
|
2933
|
+
maxFeePerGas?: bigint;
|
|
2934
|
+
maxPriorityFeePerGas?: bigint;
|
|
2935
|
+
nonce?: number;
|
|
2936
|
+
value?: bigint;
|
|
2937
|
+
}): Promise<boolean>;
|
|
2938
|
+
/**
|
|
2939
|
+
* Simulate burnShares
|
|
2940
|
+
* Returns gas estimate and result without sending transaction
|
|
2941
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2942
|
+
*/
|
|
2943
|
+
burnShares(_accountIndex: bigint, _publicPoolIndex: bigint, _shareAmount: bigint, options?: {
|
|
2944
|
+
accessList?: import("viem").AccessList;
|
|
2945
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2946
|
+
chain?: import("viem").Chain | null;
|
|
2947
|
+
dataSuffix?: `0x${string}`;
|
|
2948
|
+
gas?: bigint;
|
|
2949
|
+
gasPrice?: bigint;
|
|
2950
|
+
maxFeePerGas?: bigint;
|
|
2951
|
+
maxPriorityFeePerGas?: bigint;
|
|
2952
|
+
nonce?: number;
|
|
2953
|
+
value?: bigint;
|
|
2954
|
+
}): Promise<void>;
|
|
2955
|
+
/**
|
|
2956
|
+
* Simulate cancelAllOrders
|
|
2957
|
+
* Returns gas estimate and result without sending transaction
|
|
2958
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2959
|
+
*/
|
|
2960
|
+
cancelAllOrders(_accountIndex: bigint, options?: {
|
|
2961
|
+
accessList?: import("viem").AccessList;
|
|
2962
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2963
|
+
chain?: import("viem").Chain | null;
|
|
2964
|
+
dataSuffix?: `0x${string}`;
|
|
2965
|
+
gas?: bigint;
|
|
2966
|
+
gasPrice?: bigint;
|
|
2967
|
+
maxFeePerGas?: bigint;
|
|
2968
|
+
maxPriorityFeePerGas?: bigint;
|
|
2969
|
+
nonce?: number;
|
|
2970
|
+
value?: bigint;
|
|
2971
|
+
}): Promise<void>;
|
|
2972
|
+
/**
|
|
2973
|
+
* Simulate cancelOutstandingDepositsForDesertMode
|
|
2974
|
+
* Returns gas estimate and result without sending transaction
|
|
2975
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2976
|
+
*/
|
|
2977
|
+
cancelOutstandingDepositsForDesertMode(_n: bigint, _priorityPubData: `0x${string}`[], options?: {
|
|
2978
|
+
accessList?: import("viem").AccessList;
|
|
2979
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2980
|
+
chain?: import("viem").Chain | null;
|
|
2981
|
+
dataSuffix?: `0x${string}`;
|
|
2982
|
+
gas?: bigint;
|
|
2983
|
+
gasPrice?: bigint;
|
|
2984
|
+
maxFeePerGas?: bigint;
|
|
2985
|
+
maxPriorityFeePerGas?: bigint;
|
|
2986
|
+
nonce?: number;
|
|
2987
|
+
value?: bigint;
|
|
2988
|
+
}): Promise<void>;
|
|
2989
|
+
/**
|
|
2990
|
+
* Simulate changePubKey
|
|
2991
|
+
* Returns gas estimate and result without sending transaction
|
|
2992
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2993
|
+
*/
|
|
2994
|
+
changePubKey(_accountIndex: bigint, _apiKeyIndex: bigint, _pubKey: `0x${string}`, options?: {
|
|
2995
|
+
accessList?: import("viem").AccessList;
|
|
2996
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2997
|
+
chain?: import("viem").Chain | null;
|
|
2998
|
+
dataSuffix?: `0x${string}`;
|
|
2999
|
+
gas?: bigint;
|
|
3000
|
+
gasPrice?: bigint;
|
|
3001
|
+
maxFeePerGas?: bigint;
|
|
3002
|
+
maxPriorityFeePerGas?: bigint;
|
|
3003
|
+
nonce?: number;
|
|
3004
|
+
value?: bigint;
|
|
3005
|
+
}): Promise<void>;
|
|
3006
|
+
/**
|
|
3007
|
+
* Simulate commitBatch
|
|
3008
|
+
* Returns gas estimate and result without sending transaction
|
|
3009
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3010
|
+
*/
|
|
3011
|
+
commitBatch(newBatchData: IZkLighter_CommitBatchInfo, lastStoredBatch: Storage_StoredBatchInfo, options?: {
|
|
3012
|
+
accessList?: import("viem").AccessList;
|
|
3013
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3014
|
+
chain?: import("viem").Chain | null;
|
|
3015
|
+
dataSuffix?: `0x${string}`;
|
|
3016
|
+
gas?: bigint;
|
|
3017
|
+
gasPrice?: bigint;
|
|
3018
|
+
maxFeePerGas?: bigint;
|
|
3019
|
+
maxPriorityFeePerGas?: bigint;
|
|
3020
|
+
nonce?: number;
|
|
3021
|
+
value?: bigint;
|
|
3022
|
+
}): Promise<void>;
|
|
3023
|
+
/**
|
|
3024
|
+
* Simulate createMarket
|
|
3025
|
+
* Returns gas estimate and result without sending transaction
|
|
3026
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3027
|
+
*/
|
|
3028
|
+
createMarket(_size_decimals: bigint, _price_decimals: bigint, _symbol: `0x${string}`, _params: TxTypes_CreateMarket, options?: {
|
|
3029
|
+
accessList?: import("viem").AccessList;
|
|
3030
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3031
|
+
chain?: import("viem").Chain | null;
|
|
3032
|
+
dataSuffix?: `0x${string}`;
|
|
3033
|
+
gas?: bigint;
|
|
3034
|
+
gasPrice?: bigint;
|
|
3035
|
+
maxFeePerGas?: bigint;
|
|
3036
|
+
maxPriorityFeePerGas?: bigint;
|
|
3037
|
+
nonce?: number;
|
|
3038
|
+
value?: bigint;
|
|
3039
|
+
}): Promise<void>;
|
|
3040
|
+
/**
|
|
3041
|
+
* Simulate createOrder
|
|
3042
|
+
* Returns gas estimate and result without sending transaction
|
|
3043
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3044
|
+
*/
|
|
3045
|
+
createOrder(_accountIndex: bigint, _marketIndex: bigint, _baseAmount: bigint, _price: bigint, _isAsk: bigint, _orderType: bigint, options?: {
|
|
3046
|
+
accessList?: import("viem").AccessList;
|
|
3047
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3048
|
+
chain?: import("viem").Chain | null;
|
|
3049
|
+
dataSuffix?: `0x${string}`;
|
|
3050
|
+
gas?: bigint;
|
|
3051
|
+
gasPrice?: bigint;
|
|
3052
|
+
maxFeePerGas?: bigint;
|
|
3053
|
+
maxPriorityFeePerGas?: bigint;
|
|
3054
|
+
nonce?: number;
|
|
3055
|
+
value?: bigint;
|
|
3056
|
+
}): Promise<void>;
|
|
3057
|
+
/**
|
|
3058
|
+
* Simulate deposit
|
|
3059
|
+
* Returns gas estimate and result without sending transaction
|
|
3060
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3061
|
+
*/
|
|
3062
|
+
deposit(_to: `0x${string}`, _assetIndex: bigint, _routeType: bigint, _amount: bigint, options?: {
|
|
3063
|
+
accessList?: import("viem").AccessList;
|
|
3064
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3065
|
+
chain?: import("viem").Chain | null;
|
|
3066
|
+
dataSuffix?: `0x${string}`;
|
|
3067
|
+
gas?: bigint;
|
|
3068
|
+
gasPrice?: bigint;
|
|
3069
|
+
maxFeePerGas?: bigint;
|
|
3070
|
+
maxPriorityFeePerGas?: bigint;
|
|
3071
|
+
nonce?: number;
|
|
3072
|
+
value?: bigint;
|
|
3073
|
+
}): Promise<void>;
|
|
3074
|
+
/**
|
|
3075
|
+
* Simulate depositBatch
|
|
3076
|
+
* Returns gas estimate and result without sending transaction
|
|
3077
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3078
|
+
*/
|
|
3079
|
+
depositBatch(_amount: bigint[], _to: `0x${string}`[], _accountIndex: bigint[], options?: {
|
|
3080
|
+
accessList?: import("viem").AccessList;
|
|
3081
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3082
|
+
chain?: import("viem").Chain | null;
|
|
3083
|
+
dataSuffix?: `0x${string}`;
|
|
3084
|
+
gas?: bigint;
|
|
3085
|
+
gasPrice?: bigint;
|
|
3086
|
+
maxFeePerGas?: bigint;
|
|
3087
|
+
maxPriorityFeePerGas?: bigint;
|
|
3088
|
+
nonce?: number;
|
|
3089
|
+
value?: bigint;
|
|
3090
|
+
}): Promise<void>;
|
|
3091
|
+
/**
|
|
3092
|
+
* Simulate executeBatches
|
|
3093
|
+
* Returns gas estimate and result without sending transaction
|
|
3094
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3095
|
+
*/
|
|
3096
|
+
executeBatches(batches: Storage_StoredBatchInfo[], onChainOperationsPubData: `0x${string}`[], options?: {
|
|
3097
|
+
accessList?: import("viem").AccessList;
|
|
3098
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3099
|
+
chain?: import("viem").Chain | null;
|
|
3100
|
+
dataSuffix?: `0x${string}`;
|
|
3101
|
+
gas?: bigint;
|
|
3102
|
+
gasPrice?: bigint;
|
|
3103
|
+
maxFeePerGas?: bigint;
|
|
3104
|
+
maxPriorityFeePerGas?: bigint;
|
|
3105
|
+
nonce?: number;
|
|
3106
|
+
value?: bigint;
|
|
3107
|
+
}): Promise<void>;
|
|
3108
|
+
/**
|
|
3109
|
+
* Simulate initialize
|
|
3110
|
+
* Returns gas estimate and result without sending transaction
|
|
3111
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3112
|
+
*/
|
|
3113
|
+
initialize(initializationParameters: `0x${string}`, options?: {
|
|
3114
|
+
accessList?: import("viem").AccessList;
|
|
3115
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3116
|
+
chain?: import("viem").Chain | null;
|
|
3117
|
+
dataSuffix?: `0x${string}`;
|
|
3118
|
+
gas?: bigint;
|
|
3119
|
+
gasPrice?: bigint;
|
|
3120
|
+
maxFeePerGas?: bigint;
|
|
3121
|
+
maxPriorityFeePerGas?: bigint;
|
|
3122
|
+
nonce?: number;
|
|
3123
|
+
value?: bigint;
|
|
3124
|
+
}): Promise<void>;
|
|
3125
|
+
/**
|
|
3126
|
+
* Simulate performDesert
|
|
3127
|
+
* Returns gas estimate and result without sending transaction
|
|
3128
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3129
|
+
*/
|
|
3130
|
+
performDesert(_accountIndex: bigint, _l1Address: `0x${string}`, _assetIndex: bigint, _totalBaseAmount: bigint, proof: `0x${string}`, options?: {
|
|
3131
|
+
accessList?: import("viem").AccessList;
|
|
3132
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3133
|
+
chain?: import("viem").Chain | null;
|
|
3134
|
+
dataSuffix?: `0x${string}`;
|
|
3135
|
+
gas?: bigint;
|
|
3136
|
+
gasPrice?: bigint;
|
|
3137
|
+
maxFeePerGas?: bigint;
|
|
3138
|
+
maxPriorityFeePerGas?: bigint;
|
|
3139
|
+
nonce?: number;
|
|
3140
|
+
value?: bigint;
|
|
3141
|
+
}): Promise<void>;
|
|
3142
|
+
/**
|
|
3143
|
+
* Simulate registerAsset
|
|
3144
|
+
* Returns gas estimate and result without sending transaction
|
|
3145
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3146
|
+
*/
|
|
3147
|
+
registerAsset(_l1Decimals: bigint, _l2Decimals: bigint, _priceDecimals: bigint, _symbol: `0x${string}`, _params: TxTypes_RegisterAsset, options?: {
|
|
3148
|
+
accessList?: import("viem").AccessList;
|
|
3149
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3150
|
+
chain?: import("viem").Chain | null;
|
|
3151
|
+
dataSuffix?: `0x${string}`;
|
|
3152
|
+
gas?: bigint;
|
|
3153
|
+
gasPrice?: bigint;
|
|
3154
|
+
maxFeePerGas?: bigint;
|
|
3155
|
+
maxPriorityFeePerGas?: bigint;
|
|
3156
|
+
nonce?: number;
|
|
3157
|
+
value?: bigint;
|
|
3158
|
+
}): Promise<void>;
|
|
3159
|
+
/**
|
|
3160
|
+
* Simulate registerAssetConfig
|
|
3161
|
+
* Returns gas estimate and result without sending transaction
|
|
3162
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3163
|
+
*/
|
|
3164
|
+
registerAssetConfig(assetIndex: bigint, tokenAddress: `0x${string}`, withdrawalsEnabled: bigint, extensionMultiplier: bigint, tickSize: bigint, depositCapTicks: bigint, minDepositTicks: bigint, options?: {
|
|
3165
|
+
accessList?: import("viem").AccessList;
|
|
3166
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3167
|
+
chain?: import("viem").Chain | null;
|
|
3168
|
+
dataSuffix?: `0x${string}`;
|
|
3169
|
+
gas?: bigint;
|
|
3170
|
+
gasPrice?: bigint;
|
|
3171
|
+
maxFeePerGas?: bigint;
|
|
3172
|
+
maxPriorityFeePerGas?: bigint;
|
|
3173
|
+
nonce?: number;
|
|
3174
|
+
value?: bigint;
|
|
3175
|
+
}): Promise<void>;
|
|
3176
|
+
/**
|
|
3177
|
+
* Simulate revertBatches
|
|
3178
|
+
* Returns gas estimate and result without sending transaction
|
|
3179
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3180
|
+
*/
|
|
3181
|
+
revertBatches(_batchesToRevert: Storage_StoredBatchInfo[], _remainingBatch: Storage_StoredBatchInfo, options?: {
|
|
3182
|
+
accessList?: import("viem").AccessList;
|
|
3183
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3184
|
+
chain?: import("viem").Chain | null;
|
|
3185
|
+
dataSuffix?: `0x${string}`;
|
|
3186
|
+
gas?: bigint;
|
|
3187
|
+
gasPrice?: bigint;
|
|
3188
|
+
maxFeePerGas?: bigint;
|
|
3189
|
+
maxPriorityFeePerGas?: bigint;
|
|
3190
|
+
nonce?: number;
|
|
3191
|
+
value?: bigint;
|
|
3192
|
+
}): Promise<void>;
|
|
3193
|
+
/**
|
|
3194
|
+
* Simulate setInsuranceFundOperator
|
|
3195
|
+
* Returns gas estimate and result without sending transaction
|
|
3196
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3197
|
+
*/
|
|
3198
|
+
setInsuranceFundOperator(_newInsuranceFundOperator: `0x${string}`, options?: {
|
|
3199
|
+
accessList?: import("viem").AccessList;
|
|
3200
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3201
|
+
chain?: import("viem").Chain | null;
|
|
3202
|
+
dataSuffix?: `0x${string}`;
|
|
3203
|
+
gas?: bigint;
|
|
3204
|
+
gasPrice?: bigint;
|
|
3205
|
+
maxFeePerGas?: bigint;
|
|
3206
|
+
maxPriorityFeePerGas?: bigint;
|
|
3207
|
+
nonce?: number;
|
|
3208
|
+
value?: bigint;
|
|
3209
|
+
}): Promise<void>;
|
|
3210
|
+
/**
|
|
3211
|
+
* Simulate setSystemConfig
|
|
3212
|
+
* Returns gas estimate and result without sending transaction
|
|
3213
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3214
|
+
*/
|
|
3215
|
+
setSystemConfig(_params: TxTypes_SetSystemConfig, options?: {
|
|
3216
|
+
accessList?: import("viem").AccessList;
|
|
3217
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3218
|
+
chain?: import("viem").Chain | null;
|
|
3219
|
+
dataSuffix?: `0x${string}`;
|
|
3220
|
+
gas?: bigint;
|
|
3221
|
+
gasPrice?: bigint;
|
|
3222
|
+
maxFeePerGas?: bigint;
|
|
3223
|
+
maxPriorityFeePerGas?: bigint;
|
|
3224
|
+
nonce?: number;
|
|
3225
|
+
value?: bigint;
|
|
3226
|
+
}): Promise<void>;
|
|
3227
|
+
/**
|
|
3228
|
+
* Simulate setTreasury
|
|
3229
|
+
* Returns gas estimate and result without sending transaction
|
|
3230
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3231
|
+
*/
|
|
3232
|
+
setTreasury(_newTreasury: `0x${string}`, options?: {
|
|
3233
|
+
accessList?: import("viem").AccessList;
|
|
3234
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3235
|
+
chain?: import("viem").Chain | null;
|
|
3236
|
+
dataSuffix?: `0x${string}`;
|
|
3237
|
+
gas?: bigint;
|
|
3238
|
+
gasPrice?: bigint;
|
|
3239
|
+
maxFeePerGas?: bigint;
|
|
3240
|
+
maxPriorityFeePerGas?: bigint;
|
|
3241
|
+
nonce?: number;
|
|
3242
|
+
value?: bigint;
|
|
3243
|
+
}): Promise<void>;
|
|
3244
|
+
/**
|
|
3245
|
+
* Simulate transferERC20
|
|
3246
|
+
* Returns gas estimate and result without sending transaction
|
|
3247
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3248
|
+
*/
|
|
3249
|
+
transferERC20(_token: `0x${string}`, _to: `0x${string}`, _amount: bigint, _maxAmount: bigint, options?: {
|
|
3250
|
+
accessList?: import("viem").AccessList;
|
|
3251
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3252
|
+
chain?: import("viem").Chain | null;
|
|
3253
|
+
dataSuffix?: `0x${string}`;
|
|
3254
|
+
gas?: bigint;
|
|
3255
|
+
gasPrice?: bigint;
|
|
3256
|
+
maxFeePerGas?: bigint;
|
|
3257
|
+
maxPriorityFeePerGas?: bigint;
|
|
3258
|
+
nonce?: number;
|
|
3259
|
+
value?: bigint;
|
|
3260
|
+
}): Promise<bigint>;
|
|
3261
|
+
/**
|
|
3262
|
+
* Simulate transferETH
|
|
3263
|
+
* Returns gas estimate and result without sending transaction
|
|
3264
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3265
|
+
*/
|
|
3266
|
+
transferETH(_to: `0x${string}`, _amount: bigint, options?: {
|
|
3267
|
+
accessList?: import("viem").AccessList;
|
|
3268
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3269
|
+
chain?: import("viem").Chain | null;
|
|
3270
|
+
dataSuffix?: `0x${string}`;
|
|
3271
|
+
gas?: bigint;
|
|
3272
|
+
gasPrice?: bigint;
|
|
3273
|
+
maxFeePerGas?: bigint;
|
|
3274
|
+
maxPriorityFeePerGas?: bigint;
|
|
3275
|
+
nonce?: number;
|
|
3276
|
+
value?: bigint;
|
|
3277
|
+
}): Promise<bigint>;
|
|
3278
|
+
/**
|
|
3279
|
+
* Simulate updateAsset
|
|
3280
|
+
* Returns gas estimate and result without sending transaction
|
|
3281
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3282
|
+
*/
|
|
3283
|
+
updateAsset(_params: TxTypes_UpdateAsset, options?: {
|
|
3284
|
+
accessList?: import("viem").AccessList;
|
|
3285
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3286
|
+
chain?: import("viem").Chain | null;
|
|
3287
|
+
dataSuffix?: `0x${string}`;
|
|
3288
|
+
gas?: bigint;
|
|
3289
|
+
gasPrice?: bigint;
|
|
3290
|
+
maxFeePerGas?: bigint;
|
|
3291
|
+
maxPriorityFeePerGas?: bigint;
|
|
3292
|
+
nonce?: number;
|
|
3293
|
+
value?: bigint;
|
|
3294
|
+
}): Promise<void>;
|
|
3295
|
+
/**
|
|
3296
|
+
* Simulate updateAssetConfig
|
|
3297
|
+
* Returns gas estimate and result without sending transaction
|
|
3298
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3299
|
+
*/
|
|
3300
|
+
updateAssetConfig(assetIndex: bigint, withdrawalsEnabled: bigint, depositCapTicks: bigint, minDepositTicks: bigint, options?: {
|
|
3301
|
+
accessList?: import("viem").AccessList;
|
|
3302
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3303
|
+
chain?: import("viem").Chain | null;
|
|
3304
|
+
dataSuffix?: `0x${string}`;
|
|
3305
|
+
gas?: bigint;
|
|
3306
|
+
gasPrice?: bigint;
|
|
3307
|
+
maxFeePerGas?: bigint;
|
|
3308
|
+
maxPriorityFeePerGas?: bigint;
|
|
3309
|
+
nonce?: number;
|
|
3310
|
+
value?: bigint;
|
|
3311
|
+
}): Promise<void>;
|
|
3312
|
+
/**
|
|
3313
|
+
* Simulate updateMarket
|
|
3314
|
+
* Returns gas estimate and result without sending transaction
|
|
3315
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3316
|
+
*/
|
|
3317
|
+
updateMarket(_params: TxTypes_UpdateMarket, options?: {
|
|
3318
|
+
accessList?: import("viem").AccessList;
|
|
3319
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3320
|
+
chain?: import("viem").Chain | null;
|
|
3321
|
+
dataSuffix?: `0x${string}`;
|
|
3322
|
+
gas?: bigint;
|
|
3323
|
+
gasPrice?: bigint;
|
|
3324
|
+
maxFeePerGas?: bigint;
|
|
3325
|
+
maxPriorityFeePerGas?: bigint;
|
|
3326
|
+
nonce?: number;
|
|
3327
|
+
value?: bigint;
|
|
3328
|
+
}): Promise<void>;
|
|
3329
|
+
/**
|
|
3330
|
+
* Simulate updateStateRoot
|
|
3331
|
+
* Returns gas estimate and result without sending transaction
|
|
3332
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3333
|
+
*/
|
|
3334
|
+
updateStateRoot(_lastStoredBatch: Storage_StoredBatchInfo, _stateRoot: `0x${string}`, _validiumRoot: `0x${string}`, proof: `0x${string}`, options?: {
|
|
3335
|
+
accessList?: import("viem").AccessList;
|
|
3336
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3337
|
+
chain?: import("viem").Chain | null;
|
|
3338
|
+
dataSuffix?: `0x${string}`;
|
|
3339
|
+
gas?: bigint;
|
|
3340
|
+
gasPrice?: bigint;
|
|
3341
|
+
maxFeePerGas?: bigint;
|
|
3342
|
+
maxPriorityFeePerGas?: bigint;
|
|
3343
|
+
nonce?: number;
|
|
3344
|
+
value?: bigint;
|
|
3345
|
+
}): Promise<void>;
|
|
3346
|
+
/**
|
|
3347
|
+
* Simulate upgrade
|
|
3348
|
+
* Returns gas estimate and result without sending transaction
|
|
3349
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3350
|
+
*/
|
|
3351
|
+
upgrade(upgradeParameters: `0x${string}`, options?: {
|
|
3352
|
+
accessList?: import("viem").AccessList;
|
|
3353
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3354
|
+
chain?: import("viem").Chain | null;
|
|
3355
|
+
dataSuffix?: `0x${string}`;
|
|
3356
|
+
gas?: bigint;
|
|
3357
|
+
gasPrice?: bigint;
|
|
3358
|
+
maxFeePerGas?: bigint;
|
|
3359
|
+
maxPriorityFeePerGas?: bigint;
|
|
3360
|
+
nonce?: number;
|
|
3361
|
+
value?: bigint;
|
|
3362
|
+
}): Promise<void>;
|
|
3363
|
+
/**
|
|
3364
|
+
* Simulate verifyBatch
|
|
3365
|
+
* Returns gas estimate and result without sending transaction
|
|
3366
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3367
|
+
*/
|
|
3368
|
+
verifyBatch(batch: Storage_StoredBatchInfo, proof: `0x${string}`, options?: {
|
|
3369
|
+
accessList?: import("viem").AccessList;
|
|
3370
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3371
|
+
chain?: import("viem").Chain | null;
|
|
3372
|
+
dataSuffix?: `0x${string}`;
|
|
3373
|
+
gas?: bigint;
|
|
3374
|
+
gasPrice?: bigint;
|
|
3375
|
+
maxFeePerGas?: bigint;
|
|
3376
|
+
maxPriorityFeePerGas?: bigint;
|
|
3377
|
+
nonce?: number;
|
|
3378
|
+
value?: bigint;
|
|
3379
|
+
}): Promise<void>;
|
|
3380
|
+
/**
|
|
3381
|
+
* Simulate withdraw
|
|
3382
|
+
* Returns gas estimate and result without sending transaction
|
|
3383
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3384
|
+
*/
|
|
3385
|
+
withdraw(_accountIndex: bigint, _assetIndex: bigint, _routeType: bigint, _baseAmount: bigint, options?: {
|
|
3386
|
+
accessList?: import("viem").AccessList;
|
|
3387
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3388
|
+
chain?: import("viem").Chain | null;
|
|
3389
|
+
dataSuffix?: `0x${string}`;
|
|
3390
|
+
gas?: bigint;
|
|
3391
|
+
gasPrice?: bigint;
|
|
3392
|
+
maxFeePerGas?: bigint;
|
|
3393
|
+
maxPriorityFeePerGas?: bigint;
|
|
3394
|
+
nonce?: number;
|
|
3395
|
+
value?: bigint;
|
|
3396
|
+
}): Promise<void>;
|
|
3397
|
+
/**
|
|
3398
|
+
* Simulate withdrawPendingBalance
|
|
3399
|
+
* Returns gas estimate and result without sending transaction
|
|
3400
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3401
|
+
*/
|
|
3402
|
+
withdrawPendingBalance(_owner: `0x${string}`, _assetIndex: bigint, _baseAmount: bigint, options?: {
|
|
3403
|
+
accessList?: import("viem").AccessList;
|
|
3404
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3405
|
+
chain?: import("viem").Chain | null;
|
|
3406
|
+
dataSuffix?: `0x${string}`;
|
|
3407
|
+
gas?: bigint;
|
|
3408
|
+
gasPrice?: bigint;
|
|
3409
|
+
maxFeePerGas?: bigint;
|
|
3410
|
+
maxPriorityFeePerGas?: bigint;
|
|
3411
|
+
nonce?: number;
|
|
3412
|
+
value?: bigint;
|
|
3413
|
+
}): Promise<void>;
|
|
3414
|
+
/**
|
|
3415
|
+
* Simulate withdrawPendingBalanceLegacy
|
|
3416
|
+
* Returns gas estimate and result without sending transaction
|
|
3417
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
3418
|
+
*/
|
|
3419
|
+
withdrawPendingBalanceLegacy(_owner: `0x${string}`, _baseAmount: bigint, options?: {
|
|
3420
|
+
accessList?: import("viem").AccessList;
|
|
3421
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
3422
|
+
chain?: import("viem").Chain | null;
|
|
3423
|
+
dataSuffix?: `0x${string}`;
|
|
3424
|
+
gas?: bigint;
|
|
3425
|
+
gasPrice?: bigint;
|
|
3426
|
+
maxFeePerGas?: bigint;
|
|
3427
|
+
maxPriorityFeePerGas?: bigint;
|
|
3428
|
+
nonce?: number;
|
|
3429
|
+
value?: bigint;
|
|
3430
|
+
}): Promise<void>;
|
|
3431
|
+
};
|
|
3432
|
+
/**
|
|
3433
|
+
* Watch contract events
|
|
3434
|
+
*
|
|
3435
|
+
* @example
|
|
3436
|
+
* // Watch all Transfer events
|
|
3437
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
3438
|
+
* console.log('Transfer:', event);
|
|
3439
|
+
* });
|
|
3440
|
+
*
|
|
3441
|
+
* // Stop watching
|
|
3442
|
+
* unwatch();
|
|
3443
|
+
*/
|
|
3444
|
+
get watch(): {
|
|
3445
|
+
/**
|
|
3446
|
+
* Watch BatchCommit events
|
|
3447
|
+
* @param callback Function to call when event is emitted
|
|
3448
|
+
* @param filter Optional filter for indexed parameters
|
|
3449
|
+
* @returns Unwatch function to stop listening
|
|
3450
|
+
*/
|
|
3451
|
+
BatchCommit: (callback: (event: {
|
|
3452
|
+
batchNumber: bigint;
|
|
3453
|
+
batchSize: bigint;
|
|
3454
|
+
endBlockNumber: bigint;
|
|
3455
|
+
}) => void) => () => void;
|
|
3456
|
+
/**
|
|
3457
|
+
* Watch BatchVerification events
|
|
3458
|
+
* @param callback Function to call when event is emitted
|
|
3459
|
+
* @param filter Optional filter for indexed parameters
|
|
3460
|
+
* @returns Unwatch function to stop listening
|
|
3461
|
+
*/
|
|
3462
|
+
BatchVerification: (callback: (event: {
|
|
3463
|
+
batchNumber: bigint;
|
|
3464
|
+
batchSize: bigint;
|
|
3465
|
+
endBlockNumber: bigint;
|
|
3466
|
+
}) => void) => () => void;
|
|
3467
|
+
/**
|
|
3468
|
+
* Watch BatchesExecuted events
|
|
3469
|
+
* @param callback Function to call when event is emitted
|
|
3470
|
+
* @param filter Optional filter for indexed parameters
|
|
3471
|
+
* @returns Unwatch function to stop listening
|
|
3472
|
+
*/
|
|
3473
|
+
BatchesExecuted: (callback: (event: {
|
|
3474
|
+
batchNumber: bigint;
|
|
3475
|
+
endBlockNumber: bigint;
|
|
3476
|
+
}) => void) => () => void;
|
|
3477
|
+
/**
|
|
3478
|
+
* Watch BatchesRevert events
|
|
3479
|
+
* @param callback Function to call when event is emitted
|
|
3480
|
+
* @param filter Optional filter for indexed parameters
|
|
3481
|
+
* @returns Unwatch function to stop listening
|
|
3482
|
+
*/
|
|
3483
|
+
BatchesRevert: (callback: (event: {
|
|
3484
|
+
newTotalBlocksCommitted: bigint;
|
|
3485
|
+
}) => void) => () => void;
|
|
3486
|
+
/**
|
|
3487
|
+
* Watch CreateMarket events
|
|
3488
|
+
* @param callback Function to call when event is emitted
|
|
3489
|
+
* @param filter Optional filter for indexed parameters
|
|
3490
|
+
* @returns Unwatch function to stop listening
|
|
3491
|
+
*/
|
|
3492
|
+
CreateMarket: (callback: (event: {
|
|
3493
|
+
params: TxTypes_CreateMarket;
|
|
3494
|
+
sizeDecimals: bigint;
|
|
3495
|
+
priceDecimals: bigint;
|
|
3496
|
+
symbol: `0x${string}`;
|
|
3497
|
+
}) => void) => () => void;
|
|
3498
|
+
/**
|
|
3499
|
+
* Watch Deposit events
|
|
3500
|
+
* @param callback Function to call when event is emitted
|
|
3501
|
+
* @param filter Optional filter for indexed parameters
|
|
3502
|
+
* @returns Unwatch function to stop listening
|
|
3503
|
+
*/
|
|
3504
|
+
Deposit: (callback: (event: {
|
|
3505
|
+
toAccountIndex: bigint;
|
|
3506
|
+
toAddress: `0x${string}`;
|
|
3507
|
+
assetIndex: bigint;
|
|
3508
|
+
routeType: bigint;
|
|
3509
|
+
baseAmount: bigint;
|
|
3510
|
+
}) => void) => () => void;
|
|
3511
|
+
/**
|
|
3512
|
+
* Watch DesertMode events
|
|
3513
|
+
* @param callback Function to call when event is emitted
|
|
3514
|
+
* @param filter Optional filter for indexed parameters
|
|
3515
|
+
* @returns Unwatch function to stop listening
|
|
3516
|
+
*/
|
|
3517
|
+
DesertMode: (callback: (event: {}) => void) => () => void;
|
|
3518
|
+
/**
|
|
3519
|
+
* Watch Initialized events
|
|
3520
|
+
* @param callback Function to call when event is emitted
|
|
3521
|
+
* @param filter Optional filter for indexed parameters
|
|
3522
|
+
* @returns Unwatch function to stop listening
|
|
3523
|
+
*/
|
|
3524
|
+
Initialized: (callback: (event: {
|
|
3525
|
+
version: bigint;
|
|
3526
|
+
}) => void) => () => void;
|
|
3527
|
+
/**
|
|
3528
|
+
* Watch InsuranceFundOperatorUpdate events
|
|
3529
|
+
* @param callback Function to call when event is emitted
|
|
3530
|
+
* @param filter Optional filter for indexed parameters
|
|
3531
|
+
* @returns Unwatch function to stop listening
|
|
3532
|
+
*/
|
|
3533
|
+
InsuranceFundOperatorUpdate: (callback: (event: {
|
|
3534
|
+
newInsuranceFundOperator: `0x${string}`;
|
|
3535
|
+
}) => void) => () => void;
|
|
3536
|
+
/**
|
|
3537
|
+
* Watch NewPriorityRequest events
|
|
3538
|
+
* @param callback Function to call when event is emitted
|
|
3539
|
+
* @param filter Optional filter for indexed parameters
|
|
3540
|
+
* @returns Unwatch function to stop listening
|
|
3541
|
+
*/
|
|
3542
|
+
NewPriorityRequest: (callback: (event: {
|
|
3543
|
+
sender: `0x${string}`;
|
|
3544
|
+
serialId: bigint;
|
|
3545
|
+
pubdataType: bigint;
|
|
3546
|
+
pubData: `0x${string}`;
|
|
3547
|
+
expirationTimestamp: bigint;
|
|
3548
|
+
}) => void) => () => void;
|
|
3549
|
+
/**
|
|
3550
|
+
* Watch RegisterAssetConfig events
|
|
3551
|
+
* @param callback Function to call when event is emitted
|
|
3552
|
+
* @param filter Optional filter for indexed parameters
|
|
3553
|
+
* @returns Unwatch function to stop listening
|
|
3554
|
+
*/
|
|
3555
|
+
RegisterAssetConfig: (callback: (event: {
|
|
3556
|
+
assetIndex: bigint;
|
|
3557
|
+
tokenAddress: `0x${string}`;
|
|
3558
|
+
withdrawalsEnabled: bigint;
|
|
3559
|
+
extensionMultiplier: bigint;
|
|
3560
|
+
tickSize: bigint;
|
|
3561
|
+
depositCapTicks: bigint;
|
|
3562
|
+
minDepositTicks: bigint;
|
|
3563
|
+
}) => void) => () => void;
|
|
3564
|
+
/**
|
|
3565
|
+
* Watch StateRootUpdate events
|
|
3566
|
+
* @param callback Function to call when event is emitted
|
|
3567
|
+
* @param filter Optional filter for indexed parameters
|
|
3568
|
+
* @returns Unwatch function to stop listening
|
|
3569
|
+
*/
|
|
3570
|
+
StateRootUpdate: (callback: (event: {
|
|
3571
|
+
batchNumber: bigint;
|
|
3572
|
+
oldStateRoot: `0x${string}`;
|
|
3573
|
+
newStateRoot: `0x${string}`;
|
|
3574
|
+
}) => void) => () => void;
|
|
3575
|
+
/**
|
|
3576
|
+
* Watch TreasuryUpdate events
|
|
3577
|
+
* @param callback Function to call when event is emitted
|
|
3578
|
+
* @param filter Optional filter for indexed parameters
|
|
3579
|
+
* @returns Unwatch function to stop listening
|
|
3580
|
+
*/
|
|
3581
|
+
TreasuryUpdate: (callback: (event: {
|
|
3582
|
+
newTreasury: `0x${string}`;
|
|
3583
|
+
}) => void) => () => void;
|
|
3584
|
+
/**
|
|
3585
|
+
* Watch UpdateAssetConfig events
|
|
3586
|
+
* @param callback Function to call when event is emitted
|
|
3587
|
+
* @param filter Optional filter for indexed parameters
|
|
3588
|
+
* @returns Unwatch function to stop listening
|
|
3589
|
+
*/
|
|
3590
|
+
UpdateAssetConfig: (callback: (event: {
|
|
3591
|
+
assetIndex: bigint;
|
|
3592
|
+
withdrawalsEnabled: bigint;
|
|
3593
|
+
depositCapTicks: bigint;
|
|
3594
|
+
minDepositTicks: bigint;
|
|
3595
|
+
}) => void) => () => void;
|
|
3596
|
+
/**
|
|
3597
|
+
* Watch UpdateMarket events
|
|
3598
|
+
* @param callback Function to call when event is emitted
|
|
3599
|
+
* @param filter Optional filter for indexed parameters
|
|
3600
|
+
* @returns Unwatch function to stop listening
|
|
3601
|
+
*/
|
|
3602
|
+
UpdateMarket: (callback: (event: {
|
|
3603
|
+
params: TxTypes_UpdateMarket;
|
|
3604
|
+
}) => void) => () => void;
|
|
3605
|
+
/**
|
|
3606
|
+
* Watch WithdrawPending events
|
|
3607
|
+
* @param callback Function to call when event is emitted
|
|
3608
|
+
* @param filter Optional filter for indexed parameters
|
|
3609
|
+
* @returns Unwatch function to stop listening
|
|
3610
|
+
*/
|
|
3611
|
+
WithdrawPending: (callback: (event: {
|
|
3612
|
+
owner: `0x${string}`;
|
|
3613
|
+
assetIndex: bigint;
|
|
3614
|
+
baseAmount: bigint;
|
|
3615
|
+
}) => void, filter?: {
|
|
3616
|
+
owner: `0x${string}`;
|
|
3617
|
+
}) => () => void;
|
|
3618
|
+
};
|
|
3619
|
+
}
|