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