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