@paxoslabs/amplify-sdk 0.5.2 → 0.5.3

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.
Files changed (58) hide show
  1. package/dist/{chain-utils-BdJecHBA.d.mts → chain-utils-5r2UnCDS.d.mts} +47 -1
  2. package/dist/{chain-utils-BdJecHBA.d.ts → chain-utils-5r2UnCDS.d.ts} +47 -1
  3. package/dist/{chunk-5OK753GA.js → chunk-4NQPS3JC.js} +470 -358
  4. package/dist/chunk-4NQPS3JC.js.map +1 -0
  5. package/dist/chunk-6JLKHV6O.js +128 -0
  6. package/dist/chunk-6JLKHV6O.js.map +1 -0
  7. package/dist/{chunk-NNDY5TID.js → chunk-FHE43NKY.js} +12 -12
  8. package/dist/{chunk-NNDY5TID.js.map → chunk-FHE43NKY.js.map} +1 -1
  9. package/dist/chunk-GOJQYEJQ.js +3212 -0
  10. package/dist/chunk-GOJQYEJQ.js.map +1 -0
  11. package/dist/{chunk-HU5CTL4C.mjs → chunk-LMNADWTH.mjs} +364 -253
  12. package/dist/chunk-LMNADWTH.mjs.map +1 -0
  13. package/dist/chunk-ODXJYXUH.mjs +3168 -0
  14. package/dist/chunk-ODXJYXUH.mjs.map +1 -0
  15. package/dist/{chunk-QZHI2T7O.mjs → chunk-QMFYPHX5.mjs} +280 -47
  16. package/dist/chunk-QMFYPHX5.mjs.map +1 -0
  17. package/dist/{chunk-Q5FXJU5Y.mjs → chunk-UY2WD7MF.mjs} +3 -3
  18. package/dist/{chunk-Q5FXJU5Y.mjs.map → chunk-UY2WD7MF.mjs.map} +1 -1
  19. package/dist/chunk-WD6QFSXZ.js +701 -0
  20. package/dist/chunk-WD6QFSXZ.js.map +1 -0
  21. package/dist/chunk-Y5LBT2WT.mjs +118 -0
  22. package/dist/chunk-Y5LBT2WT.mjs.map +1 -0
  23. package/dist/core.d.mts +50 -7
  24. package/dist/core.d.ts +50 -7
  25. package/dist/core.js +32 -16
  26. package/dist/core.mjs +4 -4
  27. package/dist/display.d.mts +211 -2
  28. package/dist/display.d.ts +211 -2
  29. package/dist/display.js +26 -10
  30. package/dist/display.mjs +4 -4
  31. package/dist/{index-DXXA8gEA.d.mts → index-D8RtV9cB.d.mts} +498 -410
  32. package/dist/{index-aE5lTOUH.d.ts → index-ev_V5sjt.d.ts} +498 -410
  33. package/dist/index.d.mts +40 -5
  34. package/dist/index.d.ts +40 -5
  35. package/dist/index.js +80 -60
  36. package/dist/index.mjs +5 -5
  37. package/dist/utils.d.mts +1 -1
  38. package/dist/utils.d.ts +1 -1
  39. package/dist/utils.js +7 -7
  40. package/dist/utils.mjs +2 -2
  41. package/dist/vaults.d.mts +2 -2
  42. package/dist/vaults.d.ts +2 -2
  43. package/dist/vaults.js +25 -25
  44. package/dist/vaults.mjs +4 -4
  45. package/package.json +1 -1
  46. package/dist/chunk-5OK753GA.js.map +0 -1
  47. package/dist/chunk-7JQQ2TH4.mjs +0 -1231
  48. package/dist/chunk-7JQQ2TH4.mjs.map +0 -1
  49. package/dist/chunk-HU5CTL4C.mjs.map +0 -1
  50. package/dist/chunk-QZHI2T7O.mjs.map +0 -1
  51. package/dist/chunk-SWUG4PTB.js +0 -464
  52. package/dist/chunk-SWUG4PTB.js.map +0 -1
  53. package/dist/chunk-WK7EJRBB.mjs +0 -1482
  54. package/dist/chunk-WK7EJRBB.mjs.map +0 -1
  55. package/dist/chunk-WYBYBPX5.js +0 -1518
  56. package/dist/chunk-WYBYBPX5.js.map +0 -1
  57. package/dist/chunk-ZKDXRGI5.js +0 -1239
  58. package/dist/chunk-ZKDXRGI5.js.map +0 -1
@@ -1,1231 +0,0 @@
1
- import { isValidAddress, APIError, isValidChainId, getCache, getChainNameById, __publicField } from './chunk-WK7EJRBB.mjs';
2
-
3
- // src/types/withdraw-errors.ts
4
- var WithdrawError = class _WithdrawError extends Error {
5
- constructor(message, code, context) {
6
- super(message);
7
- /**
8
- * Error code for programmatic handling
9
- * @example "VAULT_NOT_FOUND", "INVALID_ADDRESS", "INSUFFICIENT_BALANCE"
10
- */
11
- __publicField(this, "code");
12
- /**
13
- * Additional context data for debugging
14
- */
15
- __publicField(this, "context");
16
- this.name = "WithdrawError";
17
- this.code = code;
18
- this.context = context;
19
- Object.setPrototypeOf(this, _WithdrawError.prototype);
20
- }
21
- };
22
- var VaultNotFoundByAddressError = class _VaultNotFoundByAddressError extends WithdrawError {
23
- constructor(message, context) {
24
- super(message, "VAULT_NOT_FOUND_BY_ADDRESS", context);
25
- this.name = "VaultNotFoundByAddressError";
26
- Object.setPrototypeOf(this, _VaultNotFoundByAddressError.prototype);
27
- }
28
- };
29
- var VaultNotFoundByNameError = class _VaultNotFoundByNameError extends WithdrawError {
30
- constructor(message, context) {
31
- super(message, "VAULT_NOT_FOUND_BY_NAME", context);
32
- this.name = "VaultNotFoundByNameError";
33
- Object.setPrototypeOf(this, _VaultNotFoundByNameError.prototype);
34
- }
35
- };
36
- var UnauthorizedVaultAccessError = class _UnauthorizedVaultAccessError extends WithdrawError {
37
- constructor(message, context) {
38
- super(message, "UNAUTHORIZED_VAULT_ACCESS", context);
39
- this.name = "UnauthorizedVaultAccessError";
40
- Object.setPrototypeOf(this, _UnauthorizedVaultAccessError.prototype);
41
- }
42
- };
43
- function isVaultNotFoundByAddressError(error) {
44
- return error instanceof VaultNotFoundByAddressError;
45
- }
46
- function isVaultNotFoundByNameError(error) {
47
- return error instanceof VaultNotFoundByNameError;
48
- }
49
-
50
- // src/client/resolve-vault.ts
51
- async function resolveVault(params) {
52
- const { vaultName, assetAddress, chainId, callerEndpoint } = params;
53
- if (!isValidAddress(assetAddress)) {
54
- throw new APIError(
55
- `Invalid assetAddress: ${assetAddress}. Must be a valid Ethereum address.`,
56
- { endpoint: callerEndpoint }
57
- );
58
- }
59
- if (!isValidChainId(chainId)) {
60
- throw new APIError(
61
- `Invalid chainId: ${chainId}. Must be a positive integer.`,
62
- { endpoint: callerEndpoint }
63
- );
64
- }
65
- const cache = getCache();
66
- if (cache.isEmpty() || cache.isExpired()) {
67
- await cache.refresh();
68
- }
69
- const vault = cache.getVaultByName(vaultName);
70
- if (!vault) {
71
- throw new VaultNotFoundByNameError(
72
- `No vault found with name "${vaultName}". The vault may not exist or may not be available for your organization.`,
73
- { vaultName, endpoint: callerEndpoint }
74
- );
75
- }
76
- const supportedChainIds = /* @__PURE__ */ new Set([vault.chainId]);
77
- for (const a of vault.supportedAssets) {
78
- if (a.chainId != null) {
79
- supportedChainIds.add(a.chainId);
80
- }
81
- }
82
- if (!supportedChainIds.has(chainId)) {
83
- const chains = Array.from(supportedChainIds).join(", ");
84
- throw new APIError(
85
- `Vault "${vaultName}" supports chains [${chains}], but ${getChainNameById(chainId)} (${chainId}) was requested.`,
86
- { endpoint: callerEndpoint }
87
- );
88
- }
89
- const matchedAsset = vault.supportedAssets.find(
90
- (a) => a.address.toLowerCase() === assetAddress.toLowerCase() && (a.chainId == null || a.chainId === chainId)
91
- );
92
- if (!matchedAsset) {
93
- const supported = vault.supportedAssets.filter((a) => a.chainId == null || a.chainId === chainId).map((a) => `${a.address} (${a.symbol})`).join(", ");
94
- throw new APIError(
95
- `Vault "${vaultName}" supports assets [${supported}] on chain ${chainId}, but asset ${assetAddress} was requested.`,
96
- { endpoint: callerEndpoint }
97
- );
98
- }
99
- return vault;
100
- }
101
-
102
- // src/abi/withdraw-queue-abi.ts
103
- var WithdrawQueueAbi = [
104
- {
105
- inputs: [
106
- { internalType: "string", name: "_name", type: "string" },
107
- { internalType: "string", name: "_symbol", type: "string" },
108
- { internalType: "address", name: "_feeRecipient", type: "address" },
109
- {
110
- internalType: "contract TellerWithMultiAssetSupport",
111
- name: "_tellerWithMultiAssetSupport",
112
- type: "address"
113
- },
114
- {
115
- internalType: "contract IFeeModule",
116
- name: "_feeModule",
117
- type: "address"
118
- },
119
- { internalType: "uint256", name: "_minimumOrderSize", type: "uint256" },
120
- { internalType: "address", name: "_owner", type: "address" }
121
- ],
122
- stateMutability: "nonpayable",
123
- type: "constructor"
124
- },
125
- { inputs: [], name: "ECDSAInvalidSignature", type: "error" },
126
- {
127
- inputs: [{ internalType: "uint256", name: "length", type: "uint256" }],
128
- name: "ECDSAInvalidSignatureLength",
129
- type: "error"
130
- },
131
- {
132
- inputs: [{ internalType: "bytes32", name: "s", type: "bytes32" }],
133
- name: "ECDSAInvalidSignatureS",
134
- type: "error"
135
- },
136
- { inputs: [], name: "ERC721EnumerableForbiddenBatchMint", type: "error" },
137
- {
138
- inputs: [
139
- { internalType: "address", name: "sender", type: "address" },
140
- { internalType: "uint256", name: "tokenId", type: "uint256" },
141
- { internalType: "address", name: "owner", type: "address" }
142
- ],
143
- name: "ERC721IncorrectOwner",
144
- type: "error"
145
- },
146
- {
147
- inputs: [
148
- { internalType: "address", name: "operator", type: "address" },
149
- { internalType: "uint256", name: "tokenId", type: "uint256" }
150
- ],
151
- name: "ERC721InsufficientApproval",
152
- type: "error"
153
- },
154
- {
155
- inputs: [{ internalType: "address", name: "approver", type: "address" }],
156
- name: "ERC721InvalidApprover",
157
- type: "error"
158
- },
159
- {
160
- inputs: [{ internalType: "address", name: "operator", type: "address" }],
161
- name: "ERC721InvalidOperator",
162
- type: "error"
163
- },
164
- {
165
- inputs: [{ internalType: "address", name: "owner", type: "address" }],
166
- name: "ERC721InvalidOwner",
167
- type: "error"
168
- },
169
- {
170
- inputs: [{ internalType: "address", name: "receiver", type: "address" }],
171
- name: "ERC721InvalidReceiver",
172
- type: "error"
173
- },
174
- {
175
- inputs: [{ internalType: "address", name: "sender", type: "address" }],
176
- name: "ERC721InvalidSender",
177
- type: "error"
178
- },
179
- {
180
- inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
181
- name: "ERC721NonexistentToken",
182
- type: "error"
183
- },
184
- {
185
- inputs: [
186
- { internalType: "address", name: "owner", type: "address" },
187
- { internalType: "uint256", name: "index", type: "uint256" }
188
- ],
189
- name: "ERC721OutOfBoundsIndex",
190
- type: "error"
191
- },
192
- {
193
- inputs: [{ internalType: "address", name: "token", type: "address" }],
194
- name: "SafeERC20FailedOperation",
195
- type: "error"
196
- },
197
- { inputs: [], name: "Unauthorized", type: "error" },
198
- { inputs: [], name: "ZeroAddress", type: "error" },
199
- {
200
- inputs: [{ internalType: "uint256", name: "orderIndex", type: "uint256" }],
201
- name: "OrderAlreadyProcessed",
202
- type: "error"
203
- },
204
- {
205
- inputs: [
206
- { internalType: "uint256", name: "orderIndex", type: "uint256" },
207
- {
208
- internalType: "enum WithdrawQueue.OrderType",
209
- name: "currentStatus",
210
- type: "uint8"
211
- }
212
- ],
213
- name: "InvalidOrderType",
214
- type: "error"
215
- },
216
- {
217
- inputs: [{ internalType: "uint256", name: "orderIndex", type: "uint256" }],
218
- name: "InvalidOrderIndex",
219
- type: "error"
220
- },
221
- {
222
- inputs: [
223
- { internalType: "uint256", name: "amount", type: "uint256" },
224
- { internalType: "uint256", name: "minimum", type: "uint256" }
225
- ],
226
- name: "AmountBelowMinimum",
227
- type: "error"
228
- },
229
- {
230
- inputs: [
231
- { internalType: "uint256", name: "deadline", type: "uint256" },
232
- { internalType: "uint256", name: "currentTimestamp", type: "uint256" }
233
- ],
234
- name: "SignatureExpired",
235
- type: "error"
236
- },
237
- {
238
- inputs: [
239
- { internalType: "uint256", name: "ordersToProcess", type: "uint256" },
240
- { internalType: "uint256", name: "latestOrder", type: "uint256" }
241
- ],
242
- name: "NotEnoughOrdersToProcess",
243
- type: "error"
244
- },
245
- {
246
- inputs: [
247
- { internalType: "uint256", name: "ordersToProcess", type: "uint256" }
248
- ],
249
- name: "InvalidOrdersCount",
250
- type: "error"
251
- },
252
- {
253
- inputs: [
254
- { internalType: "address", name: "intendedDepositor", type: "address" },
255
- { internalType: "address", name: "depositor", type: "address" }
256
- ],
257
- name: "InvalidEip2612Signature",
258
- type: "error"
259
- },
260
- {
261
- inputs: [
262
- { internalType: "address", name: "intendedDepositor", type: "address" },
263
- { internalType: "address", name: "depositor", type: "address" }
264
- ],
265
- name: "InvalidDepositor",
266
- type: "error"
267
- },
268
- { inputs: [], name: "PermitFailedAndAllowanceTooLow", type: "error" },
269
- { inputs: [], name: "TellerVaultMissmatch", type: "error" },
270
- {
271
- inputs: [
272
- { internalType: "address", name: "attemptedToCancel", type: "address" },
273
- { internalType: "address", name: "orderOwner", type: "address" }
274
- ],
275
- name: "OnlyOrderOwnerCanCancel",
276
- type: "error"
277
- },
278
- { inputs: [], name: "QueueMustBeEmpty", type: "error" },
279
- {
280
- inputs: [
281
- { internalType: "contract IERC20", name: "asset", type: "address" }
282
- ],
283
- name: "AssetNotSupported",
284
- type: "error"
285
- },
286
- { inputs: [], name: "InvalidAssetsOut", type: "error" },
287
- { inputs: [], name: "EmptyArray", type: "error" },
288
- {
289
- inputs: [
290
- { internalType: "contract IERC20", name: "wantAsset", type: "address" },
291
- { internalType: "uint256", name: "expectedAssetsOut", type: "uint256" },
292
- {
293
- internalType: "uint256",
294
- name: "vaultBalanceOfWantAsset",
295
- type: "uint256"
296
- }
297
- ],
298
- name: "VaultInsufficientBalance",
299
- type: "error"
300
- },
301
- { inputs: [], name: "TellerIsPaused", type: "error" },
302
- {
303
- anonymous: false,
304
- inputs: [
305
- {
306
- indexed: true,
307
- internalType: "address",
308
- name: "owner",
309
- type: "address"
310
- },
311
- {
312
- indexed: true,
313
- internalType: "address",
314
- name: "approved",
315
- type: "address"
316
- },
317
- {
318
- indexed: true,
319
- internalType: "uint256",
320
- name: "tokenId",
321
- type: "uint256"
322
- }
323
- ],
324
- name: "Approval",
325
- type: "event"
326
- },
327
- {
328
- anonymous: false,
329
- inputs: [
330
- {
331
- indexed: true,
332
- internalType: "address",
333
- name: "owner",
334
- type: "address"
335
- },
336
- {
337
- indexed: true,
338
- internalType: "address",
339
- name: "operator",
340
- type: "address"
341
- },
342
- { indexed: false, internalType: "bool", name: "approved", type: "bool" }
343
- ],
344
- name: "ApprovalForAll",
345
- type: "event"
346
- },
347
- {
348
- anonymous: false,
349
- inputs: [
350
- {
351
- indexed: true,
352
- internalType: "address",
353
- name: "user",
354
- type: "address"
355
- },
356
- {
357
- indexed: true,
358
- internalType: "address",
359
- name: "newAuthority",
360
- type: "address"
361
- }
362
- ],
363
- name: "AuthorityUpdated",
364
- type: "event"
365
- },
366
- {
367
- anonymous: false,
368
- inputs: [
369
- {
370
- indexed: true,
371
- internalType: "contract IFeeModule",
372
- name: "oldFeeModule",
373
- type: "address"
374
- },
375
- {
376
- indexed: true,
377
- internalType: "contract IFeeModule",
378
- name: "newFeeModule",
379
- type: "address"
380
- }
381
- ],
382
- name: "FeeModuleUpdated",
383
- type: "event"
384
- },
385
- {
386
- anonymous: false,
387
- inputs: [
388
- {
389
- indexed: true,
390
- internalType: "address",
391
- name: "oldFeeRecipient",
392
- type: "address"
393
- },
394
- {
395
- indexed: true,
396
- internalType: "address",
397
- name: "newFeeRecipient",
398
- type: "address"
399
- }
400
- ],
401
- name: "FeeRecipientUpdated",
402
- type: "event"
403
- },
404
- {
405
- anonymous: false,
406
- inputs: [
407
- {
408
- indexed: false,
409
- internalType: "uint256",
410
- name: "oldMinimum",
411
- type: "uint256"
412
- },
413
- {
414
- indexed: false,
415
- internalType: "uint256",
416
- name: "newMinimum",
417
- type: "uint256"
418
- }
419
- ],
420
- name: "MinimumOrderSizeUpdated",
421
- type: "event"
422
- },
423
- {
424
- anonymous: false,
425
- inputs: [
426
- {
427
- indexed: true,
428
- internalType: "uint256",
429
- name: "orderIndex",
430
- type: "uint256"
431
- },
432
- {
433
- components: [
434
- { internalType: "uint256", name: "amountOffer", type: "uint256" },
435
- {
436
- internalType: "contract IERC20",
437
- name: "wantAsset",
438
- type: "address"
439
- },
440
- { internalType: "address", name: "refundReceiver", type: "address" },
441
- {
442
- internalType: "enum WithdrawQueue.OrderType",
443
- name: "orderType",
444
- type: "uint8"
445
- },
446
- {
447
- internalType: "bool",
448
- name: "didOrderFailTransfer",
449
- type: "bool"
450
- }
451
- ],
452
- indexed: false,
453
- internalType: "struct WithdrawQueue.Order",
454
- name: "order",
455
- type: "tuple"
456
- },
457
- {
458
- indexed: true,
459
- internalType: "address",
460
- name: "receiver",
461
- type: "address"
462
- },
463
- {
464
- indexed: true,
465
- internalType: "address",
466
- name: "depositor",
467
- type: "address"
468
- },
469
- {
470
- indexed: false,
471
- internalType: "bool",
472
- name: "isSubmittedViaSignature",
473
- type: "bool"
474
- }
475
- ],
476
- name: "OrderSubmitted",
477
- type: "event"
478
- },
479
- {
480
- anonymous: false,
481
- inputs: [
482
- {
483
- indexed: true,
484
- internalType: "uint256",
485
- name: "startIndex",
486
- type: "uint256"
487
- },
488
- {
489
- indexed: true,
490
- internalType: "uint256",
491
- name: "endIndex",
492
- type: "uint256"
493
- }
494
- ],
495
- name: "OrdersProcessedInRange",
496
- type: "event"
497
- },
498
- {
499
- anonymous: false,
500
- inputs: [
501
- {
502
- indexed: true,
503
- internalType: "uint256",
504
- name: "orderIndex",
505
- type: "uint256"
506
- },
507
- {
508
- components: [
509
- { internalType: "uint256", name: "amountOffer", type: "uint256" },
510
- {
511
- internalType: "contract IERC20",
512
- name: "wantAsset",
513
- type: "address"
514
- },
515
- { internalType: "address", name: "refundReceiver", type: "address" },
516
- {
517
- internalType: "enum WithdrawQueue.OrderType",
518
- name: "orderType",
519
- type: "uint8"
520
- },
521
- {
522
- internalType: "bool",
523
- name: "didOrderFailTransfer",
524
- type: "bool"
525
- }
526
- ],
527
- indexed: false,
528
- internalType: "struct WithdrawQueue.Order",
529
- name: "order",
530
- type: "tuple"
531
- },
532
- {
533
- indexed: true,
534
- internalType: "address",
535
- name: "receiver",
536
- type: "address"
537
- },
538
- {
539
- indexed: true,
540
- internalType: "bool",
541
- name: "isForceProcessed",
542
- type: "bool"
543
- }
544
- ],
545
- name: "OrderProcessed",
546
- type: "event"
547
- },
548
- {
549
- anonymous: false,
550
- inputs: [
551
- {
552
- indexed: true,
553
- internalType: "uint256",
554
- name: "orderIndex",
555
- type: "uint256"
556
- },
557
- {
558
- components: [
559
- { internalType: "uint256", name: "amountOffer", type: "uint256" },
560
- {
561
- internalType: "contract IERC20",
562
- name: "wantAsset",
563
- type: "address"
564
- },
565
- { internalType: "address", name: "refundReceiver", type: "address" },
566
- {
567
- internalType: "enum WithdrawQueue.OrderType",
568
- name: "orderType",
569
- type: "uint8"
570
- },
571
- {
572
- internalType: "bool",
573
- name: "didOrderFailTransfer",
574
- type: "bool"
575
- }
576
- ],
577
- indexed: false,
578
- internalType: "struct WithdrawQueue.Order",
579
- name: "order",
580
- type: "tuple"
581
- }
582
- ],
583
- name: "OrderRefunded",
584
- type: "event"
585
- },
586
- {
587
- anonymous: false,
588
- inputs: [
589
- {
590
- indexed: true,
591
- internalType: "uint256",
592
- name: "orderIndex",
593
- type: "uint256"
594
- },
595
- {
596
- indexed: true,
597
- internalType: "bool",
598
- name: "isMarkedByUser",
599
- type: "bool"
600
- }
601
- ],
602
- name: "OrderMarkedForRefund",
603
- type: "event"
604
- },
605
- {
606
- anonymous: false,
607
- inputs: [
608
- {
609
- indexed: true,
610
- internalType: "address",
611
- name: "user",
612
- type: "address"
613
- },
614
- {
615
- indexed: true,
616
- internalType: "address",
617
- name: "newOwner",
618
- type: "address"
619
- }
620
- ],
621
- name: "OwnershipTransferred",
622
- type: "event"
623
- },
624
- {
625
- anonymous: false,
626
- inputs: [
627
- {
628
- indexed: true,
629
- internalType: "contract TellerWithMultiAssetSupport",
630
- name: "oldTeller",
631
- type: "address"
632
- },
633
- {
634
- indexed: true,
635
- internalType: "contract TellerWithMultiAssetSupport",
636
- name: "newTeller",
637
- type: "address"
638
- }
639
- ],
640
- name: "TellerUpdated",
641
- type: "event"
642
- },
643
- {
644
- anonymous: false,
645
- inputs: [
646
- {
647
- indexed: true,
648
- internalType: "address",
649
- name: "from",
650
- type: "address"
651
- },
652
- { indexed: true, internalType: "address", name: "to", type: "address" },
653
- {
654
- indexed: true,
655
- internalType: "uint256",
656
- name: "tokenId",
657
- type: "uint256"
658
- }
659
- ],
660
- name: "Transfer",
661
- type: "event"
662
- },
663
- {
664
- inputs: [],
665
- name: "CANCEL_ORDER_TYPEHASH",
666
- outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
667
- stateMutability: "view",
668
- type: "function"
669
- },
670
- {
671
- inputs: [],
672
- name: "authority",
673
- outputs: [
674
- { internalType: "contract Authority", name: "", type: "address" }
675
- ],
676
- stateMutability: "view",
677
- type: "function"
678
- },
679
- {
680
- inputs: [{ internalType: "address", name: "owner", type: "address" }],
681
- name: "balanceOf",
682
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
683
- stateMutability: "view",
684
- type: "function"
685
- },
686
- {
687
- inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
688
- name: "ownerOf",
689
- outputs: [{ internalType: "address", name: "", type: "address" }],
690
- stateMutability: "view",
691
- type: "function"
692
- },
693
- {
694
- inputs: [{ internalType: "uint256", name: "orderIndex", type: "uint256" }],
695
- name: "cancelOrder",
696
- outputs: [],
697
- stateMutability: "nonpayable",
698
- type: "function"
699
- },
700
- {
701
- inputs: [
702
- { internalType: "uint256", name: "orderIndex", type: "uint256" },
703
- { internalType: "uint256", name: "deadline", type: "uint256" },
704
- { internalType: "bytes", name: "cancelSignature", type: "bytes" }
705
- ],
706
- name: "cancelOrderWithSignature",
707
- outputs: [],
708
- stateMutability: "nonpayable",
709
- type: "function"
710
- },
711
- {
712
- inputs: [],
713
- name: "feeModule",
714
- outputs: [
715
- { internalType: "contract IFeeModule", name: "", type: "address" }
716
- ],
717
- stateMutability: "view",
718
- type: "function"
719
- },
720
- {
721
- inputs: [],
722
- name: "feeRecipient",
723
- outputs: [{ internalType: "address", name: "", type: "address" }],
724
- stateMutability: "view",
725
- type: "function"
726
- },
727
- {
728
- inputs: [{ internalType: "uint256", name: "orderIndex", type: "uint256" }],
729
- name: "forceProcess",
730
- outputs: [],
731
- stateMutability: "nonpayable",
732
- type: "function"
733
- },
734
- {
735
- inputs: [
736
- { internalType: "uint256[]", name: "orderIndices", type: "uint256[]" }
737
- ],
738
- name: "forceProcessOrders",
739
- outputs: [],
740
- stateMutability: "nonpayable",
741
- type: "function"
742
- },
743
- {
744
- inputs: [{ internalType: "uint256", name: "orderIndex", type: "uint256" }],
745
- name: "getOrderStatus",
746
- outputs: [
747
- {
748
- internalType: "enum WithdrawQueue.OrderStatus",
749
- name: "",
750
- type: "uint8"
751
- }
752
- ],
753
- stateMutability: "view",
754
- type: "function"
755
- },
756
- {
757
- inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
758
- name: "getApproved",
759
- outputs: [{ internalType: "address", name: "", type: "address" }],
760
- stateMutability: "view",
761
- type: "function"
762
- },
763
- {
764
- inputs: [],
765
- name: "lastProcessedOrder",
766
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
767
- stateMutability: "view",
768
- type: "function"
769
- },
770
- {
771
- inputs: [],
772
- name: "latestOrder",
773
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
774
- stateMutability: "view",
775
- type: "function"
776
- },
777
- {
778
- inputs: [
779
- { internalType: "contract IERC20", name: "token", type: "address" },
780
- { internalType: "uint256", name: "amount", type: "uint256" },
781
- { internalType: "address", name: "receiver", type: "address" }
782
- ],
783
- name: "manageERC20",
784
- outputs: [],
785
- stateMutability: "nonpayable",
786
- type: "function"
787
- },
788
- {
789
- inputs: [],
790
- name: "minimumOrderSize",
791
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
792
- stateMutability: "view",
793
- type: "function"
794
- },
795
- {
796
- inputs: [],
797
- name: "name",
798
- outputs: [{ internalType: "string", name: "", type: "string" }],
799
- stateMutability: "view",
800
- type: "function"
801
- },
802
- {
803
- inputs: [{ internalType: "address", name: "", type: "address" }],
804
- name: "nonces",
805
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
806
- stateMutability: "view",
807
- type: "function"
808
- },
809
- {
810
- inputs: [],
811
- name: "offerAsset",
812
- outputs: [{ internalType: "contract IERC20", name: "", type: "address" }],
813
- stateMutability: "view",
814
- type: "function"
815
- },
816
- {
817
- inputs: [],
818
- name: "owner",
819
- outputs: [{ internalType: "address", name: "", type: "address" }],
820
- stateMutability: "view",
821
- type: "function"
822
- },
823
- {
824
- inputs: [{ internalType: "uint256", name: "", type: "uint256" }],
825
- name: "orderAtQueueIndex",
826
- outputs: [
827
- {
828
- components: [
829
- { internalType: "uint256", name: "amountOffer", type: "uint256" },
830
- {
831
- internalType: "contract IERC20",
832
- name: "wantAsset",
833
- type: "address"
834
- },
835
- { internalType: "address", name: "refundReceiver", type: "address" },
836
- {
837
- internalType: "enum WithdrawQueue.OrderType",
838
- name: "orderType",
839
- type: "uint8"
840
- },
841
- {
842
- internalType: "bool",
843
- name: "didOrderFailTransfer",
844
- type: "bool"
845
- }
846
- ],
847
- internalType: "struct WithdrawQueue.Order",
848
- name: "",
849
- type: "tuple"
850
- }
851
- ],
852
- stateMutability: "view",
853
- type: "function"
854
- },
855
- {
856
- inputs: [
857
- { internalType: "address", name: "owner", type: "address" },
858
- { internalType: "address", name: "operator", type: "address" }
859
- ],
860
- name: "isApprovedForAll",
861
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
862
- stateMutability: "view",
863
- type: "function"
864
- },
865
- {
866
- inputs: [{ internalType: "uint256", name: "orderIndex", type: "uint256" }],
867
- name: "refundOrder",
868
- outputs: [],
869
- stateMutability: "nonpayable",
870
- type: "function"
871
- },
872
- {
873
- inputs: [
874
- { internalType: "uint256[]", name: "orderIndices", type: "uint256[]" }
875
- ],
876
- name: "refundOrders",
877
- outputs: [],
878
- stateMutability: "nonpayable",
879
- type: "function"
880
- },
881
- {
882
- inputs: [
883
- { internalType: "uint256", name: "ordersToProcess", type: "uint256" }
884
- ],
885
- name: "processOrders",
886
- outputs: [],
887
- stateMutability: "nonpayable",
888
- type: "function"
889
- },
890
- {
891
- inputs: [
892
- {
893
- components: [
894
- { internalType: "uint256", name: "amountOffer", type: "uint256" },
895
- {
896
- internalType: "contract IERC20",
897
- name: "wantAsset",
898
- type: "address"
899
- },
900
- {
901
- internalType: "address",
902
- name: "intendedDepositor",
903
- type: "address"
904
- },
905
- { internalType: "address", name: "receiver", type: "address" },
906
- { internalType: "address", name: "refundReceiver", type: "address" },
907
- {
908
- components: [
909
- {
910
- internalType: "enum WithdrawQueue.ApprovalMethod",
911
- name: "approvalMethod",
912
- type: "uint8"
913
- },
914
- { internalType: "uint8", name: "approvalV", type: "uint8" },
915
- { internalType: "bytes32", name: "approvalR", type: "bytes32" },
916
- { internalType: "bytes32", name: "approvalS", type: "bytes32" },
917
- {
918
- internalType: "bool",
919
- name: "submitWithSignature",
920
- type: "bool"
921
- },
922
- { internalType: "uint256", name: "deadline", type: "uint256" },
923
- {
924
- internalType: "bytes",
925
- name: "eip2612Signature",
926
- type: "bytes"
927
- }
928
- ],
929
- internalType: "struct WithdrawQueue.SignatureParams",
930
- name: "signatureParams",
931
- type: "tuple"
932
- }
933
- ],
934
- internalType: "struct WithdrawQueue.SubmitOrderParams",
935
- name: "params",
936
- type: "tuple"
937
- }
938
- ],
939
- name: "submitOrder",
940
- outputs: [{ internalType: "uint256", name: "orderIndex", type: "uint256" }],
941
- stateMutability: "nonpayable",
942
- type: "function"
943
- },
944
- {
945
- inputs: [
946
- {
947
- components: [
948
- { internalType: "uint256", name: "amountOffer", type: "uint256" },
949
- {
950
- internalType: "contract IERC20",
951
- name: "wantAsset",
952
- type: "address"
953
- },
954
- {
955
- internalType: "address",
956
- name: "intendedDepositor",
957
- type: "address"
958
- },
959
- { internalType: "address", name: "receiver", type: "address" },
960
- { internalType: "address", name: "refundReceiver", type: "address" },
961
- {
962
- components: [
963
- {
964
- internalType: "enum WithdrawQueue.ApprovalMethod",
965
- name: "approvalMethod",
966
- type: "uint8"
967
- },
968
- { internalType: "uint8", name: "approvalV", type: "uint8" },
969
- { internalType: "bytes32", name: "approvalR", type: "bytes32" },
970
- { internalType: "bytes32", name: "approvalS", type: "bytes32" },
971
- {
972
- internalType: "bool",
973
- name: "submitWithSignature",
974
- type: "bool"
975
- },
976
- { internalType: "uint256", name: "deadline", type: "uint256" },
977
- {
978
- internalType: "bytes",
979
- name: "eip2612Signature",
980
- type: "bytes"
981
- }
982
- ],
983
- internalType: "struct WithdrawQueue.SignatureParams",
984
- name: "signatureParams",
985
- type: "tuple"
986
- }
987
- ],
988
- internalType: "struct WithdrawQueue.SubmitOrderParams",
989
- name: "params",
990
- type: "tuple"
991
- },
992
- { internalType: "uint256", name: "ordersToProcess", type: "uint256" }
993
- ],
994
- name: "submitOrderAndProcess",
995
- outputs: [{ internalType: "uint256", name: "orderIndex", type: "uint256" }],
996
- stateMutability: "nonpayable",
997
- type: "function"
998
- },
999
- {
1000
- inputs: [
1001
- {
1002
- components: [
1003
- { internalType: "uint256", name: "amountOffer", type: "uint256" },
1004
- {
1005
- internalType: "contract IERC20",
1006
- name: "wantAsset",
1007
- type: "address"
1008
- },
1009
- {
1010
- internalType: "address",
1011
- name: "intendedDepositor",
1012
- type: "address"
1013
- },
1014
- { internalType: "address", name: "receiver", type: "address" },
1015
- { internalType: "address", name: "refundReceiver", type: "address" },
1016
- {
1017
- components: [
1018
- {
1019
- internalType: "enum WithdrawQueue.ApprovalMethod",
1020
- name: "approvalMethod",
1021
- type: "uint8"
1022
- },
1023
- { internalType: "uint8", name: "approvalV", type: "uint8" },
1024
- { internalType: "bytes32", name: "approvalR", type: "bytes32" },
1025
- { internalType: "bytes32", name: "approvalS", type: "bytes32" },
1026
- {
1027
- internalType: "bool",
1028
- name: "submitWithSignature",
1029
- type: "bool"
1030
- },
1031
- { internalType: "uint256", name: "deadline", type: "uint256" },
1032
- {
1033
- internalType: "bytes",
1034
- name: "eip2612Signature",
1035
- type: "bytes"
1036
- }
1037
- ],
1038
- internalType: "struct WithdrawQueue.SignatureParams",
1039
- name: "signatureParams",
1040
- type: "tuple"
1041
- }
1042
- ],
1043
- internalType: "struct WithdrawQueue.SubmitOrderParams",
1044
- name: "params",
1045
- type: "tuple"
1046
- }
1047
- ],
1048
- name: "submitOrderAndProcessAll",
1049
- outputs: [{ internalType: "uint256", name: "orderIndex", type: "uint256" }],
1050
- stateMutability: "nonpayable",
1051
- type: "function"
1052
- },
1053
- {
1054
- inputs: [],
1055
- name: "symbol",
1056
- outputs: [{ internalType: "string", name: "", type: "string" }],
1057
- stateMutability: "view",
1058
- type: "function"
1059
- },
1060
- {
1061
- inputs: [{ internalType: "bytes4", name: "interfaceId", type: "bytes4" }],
1062
- name: "supportsInterface",
1063
- outputs: [{ internalType: "bool", name: "", type: "bool" }],
1064
- stateMutability: "view",
1065
- type: "function"
1066
- },
1067
- {
1068
- inputs: [],
1069
- name: "tellerWithMultiAssetSupport",
1070
- outputs: [
1071
- {
1072
- internalType: "contract TellerWithMultiAssetSupport",
1073
- name: "",
1074
- type: "address"
1075
- }
1076
- ],
1077
- stateMutability: "view",
1078
- type: "function"
1079
- },
1080
- {
1081
- inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
1082
- name: "tokenByIndex",
1083
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1084
- stateMutability: "view",
1085
- type: "function"
1086
- },
1087
- {
1088
- inputs: [
1089
- { internalType: "address", name: "owner", type: "address" },
1090
- { internalType: "uint256", name: "index", type: "uint256" }
1091
- ],
1092
- name: "tokenOfOwnerByIndex",
1093
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1094
- stateMutability: "view",
1095
- type: "function"
1096
- },
1097
- {
1098
- inputs: [{ internalType: "uint256", name: "tokenId", type: "uint256" }],
1099
- name: "tokenURI",
1100
- outputs: [{ internalType: "string", name: "", type: "string" }],
1101
- stateMutability: "view",
1102
- type: "function"
1103
- },
1104
- {
1105
- inputs: [],
1106
- name: "totalSupply",
1107
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
1108
- stateMutability: "view",
1109
- type: "function"
1110
- },
1111
- {
1112
- inputs: [
1113
- { internalType: "address", name: "from", type: "address" },
1114
- { internalType: "address", name: "to", type: "address" },
1115
- { internalType: "uint256", name: "tokenId", type: "uint256" }
1116
- ],
1117
- name: "transferFrom",
1118
- outputs: [],
1119
- stateMutability: "nonpayable",
1120
- type: "function"
1121
- },
1122
- {
1123
- inputs: [
1124
- { internalType: "address", name: "from", type: "address" },
1125
- { internalType: "address", name: "to", type: "address" },
1126
- { internalType: "uint256", name: "tokenId", type: "uint256" }
1127
- ],
1128
- name: "safeTransferFrom",
1129
- outputs: [],
1130
- stateMutability: "nonpayable",
1131
- type: "function"
1132
- },
1133
- {
1134
- inputs: [
1135
- { internalType: "address", name: "from", type: "address" },
1136
- { internalType: "address", name: "to", type: "address" },
1137
- { internalType: "uint256", name: "tokenId", type: "uint256" },
1138
- { internalType: "bytes", name: "_data", type: "bytes" }
1139
- ],
1140
- name: "safeTransferFrom",
1141
- outputs: [],
1142
- stateMutability: "nonpayable",
1143
- type: "function"
1144
- },
1145
- {
1146
- inputs: [
1147
- { internalType: "address", name: "operator", type: "address" },
1148
- { internalType: "bool", name: "approved", type: "bool" }
1149
- ],
1150
- name: "setApprovalForAll",
1151
- outputs: [],
1152
- stateMutability: "nonpayable",
1153
- type: "function"
1154
- },
1155
- {
1156
- inputs: [
1157
- {
1158
- internalType: "contract IFeeModule",
1159
- name: "_feeModule",
1160
- type: "address"
1161
- }
1162
- ],
1163
- name: "setFeeModule",
1164
- outputs: [],
1165
- stateMutability: "nonpayable",
1166
- type: "function"
1167
- },
1168
- {
1169
- inputs: [
1170
- { internalType: "address", name: "_feeRecipient", type: "address" }
1171
- ],
1172
- name: "setFeeRecipient",
1173
- outputs: [],
1174
- stateMutability: "nonpayable",
1175
- type: "function"
1176
- },
1177
- {
1178
- inputs: [
1179
- {
1180
- internalType: "contract TellerWithMultiAssetSupport",
1181
- name: "_newTeller",
1182
- type: "address"
1183
- }
1184
- ],
1185
- name: "setTellerWithMultiAssetSupport",
1186
- outputs: [],
1187
- stateMutability: "nonpayable",
1188
- type: "function"
1189
- },
1190
- {
1191
- inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
1192
- name: "setOwner",
1193
- outputs: [],
1194
- stateMutability: "nonpayable",
1195
- type: "function"
1196
- },
1197
- {
1198
- inputs: [
1199
- {
1200
- internalType: "contract Authority",
1201
- name: "newAuthority",
1202
- type: "address"
1203
- }
1204
- ],
1205
- name: "setAuthority",
1206
- outputs: [],
1207
- stateMutability: "nonpayable",
1208
- type: "function"
1209
- },
1210
- {
1211
- inputs: [{ internalType: "uint256", name: "_newMinimum", type: "uint256" }],
1212
- name: "updateAssetMinimumOrderSize",
1213
- outputs: [],
1214
- stateMutability: "nonpayable",
1215
- type: "function"
1216
- },
1217
- {
1218
- inputs: [
1219
- { internalType: "address", name: "to", type: "address" },
1220
- { internalType: "uint256", name: "tokenId", type: "uint256" }
1221
- ],
1222
- name: "approve",
1223
- outputs: [],
1224
- stateMutability: "nonpayable",
1225
- type: "function"
1226
- }
1227
- ];
1228
-
1229
- export { UnauthorizedVaultAccessError, VaultNotFoundByAddressError, VaultNotFoundByNameError, WithdrawQueueAbi, isVaultNotFoundByAddressError, isVaultNotFoundByNameError, resolveVault };
1230
- //# sourceMappingURL=chunk-7JQQ2TH4.mjs.map
1231
- //# sourceMappingURL=chunk-7JQQ2TH4.mjs.map