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