@paxoslabs/amplify-sdk 0.2.0-beta.0 → 0.2.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/README.md +18 -7
- package/dist/{chunk-TF3S7T6P.js → chunk-4ZYCWOFI.js} +8 -8
- package/dist/{chunk-TF3S7T6P.js.map → chunk-4ZYCWOFI.js.map} +1 -1
- package/dist/{chunk-EWJDKRSY.js → chunk-CK3BIPWI.js} +2 -2
- package/dist/{chunk-EWJDKRSY.js.map → chunk-CK3BIPWI.js.map} +1 -1
- package/dist/{chunk-4ORV7PFT.mjs → chunk-E3JM2RCC.mjs} +3 -3
- package/dist/{chunk-4ORV7PFT.mjs.map → chunk-E3JM2RCC.mjs.map} +1 -1
- package/dist/{chunk-SMIA4ULA.js → chunk-IJBG5TTI.js} +19 -19
- package/dist/{chunk-SMIA4ULA.js.map → chunk-IJBG5TTI.js.map} +1 -1
- package/dist/{chunk-YDMFT2R7.mjs → chunk-NZDHFDPQ.mjs} +2 -2
- package/dist/{chunk-YDMFT2R7.mjs.map → chunk-NZDHFDPQ.mjs.map} +1 -1
- package/dist/{chunk-WWTNCRXX.js → chunk-RSQQMUEQ.js} +4 -4
- package/dist/{chunk-WWTNCRXX.js.map → chunk-RSQQMUEQ.js.map} +1 -1
- package/dist/{chunk-UURNMLRT.mjs → chunk-RZN7S23Z.mjs} +3 -3
- package/dist/{chunk-UURNMLRT.mjs.map → chunk-RZN7S23Z.mjs.map} +1 -1
- package/dist/{chunk-Y3QNUDV6.mjs → chunk-VZ3D7CNR.mjs} +3 -3
- package/dist/{chunk-Y3QNUDV6.mjs.map → chunk-VZ3D7CNR.mjs.map} +1 -1
- package/dist/{chunk-LJPJWJ2Y.mjs → chunk-WDPR2NKT.mjs} +4 -4
- package/dist/{chunk-LJPJWJ2Y.mjs.map → chunk-WDPR2NKT.mjs.map} +1 -1
- package/dist/{chunk-76SRRIGW.js → chunk-ZRI7KBQ6.js} +8 -8
- package/dist/{chunk-76SRRIGW.js.map → chunk-ZRI7KBQ6.js.map} +1 -1
- package/dist/core.js +14 -14
- package/dist/core.mjs +4 -4
- package/dist/display.js +12 -12
- package/dist/display.mjs +4 -4
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +115 -115
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/utils.js +5 -5
- package/dist/utils.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkOJOKPBK7_js = require('./chunk-OJOKPBK7.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkIJBG5TTI_js = require('./chunk-IJBG5TTI.js');
|
|
5
|
+
var chunk4ZYCWOFI_js = require('./chunk-4ZYCWOFI.js');
|
|
6
6
|
require('./chunk-ICKDAKVS.js');
|
|
7
7
|
var chunkRUIAH5HY_js = require('./chunk-RUIAH5HY.js');
|
|
8
|
-
var
|
|
8
|
+
var chunkRSQQMUEQ_js = require('./chunk-RSQQMUEQ.js');
|
|
9
9
|
var chunk3I3PYX2F_js = require('./chunk-3I3PYX2F.js');
|
|
10
|
-
var
|
|
10
|
+
var chunkCK3BIPWI_js = require('./chunk-CK3BIPWI.js');
|
|
11
11
|
var viem = require('viem');
|
|
12
12
|
|
|
13
13
|
async function prepareApproveDepositTokenTxData({
|
|
@@ -18,33 +18,33 @@ async function prepareApproveDepositTokenTxData({
|
|
|
18
18
|
}) {
|
|
19
19
|
const normalizedChainId = chunkRUIAH5HY_js.toChainId(chainId);
|
|
20
20
|
try {
|
|
21
|
-
const config = await
|
|
21
|
+
const config = await chunkCK3BIPWI_js.findVaultByConfig({
|
|
22
22
|
assetAddress: depositToken,
|
|
23
23
|
yieldType,
|
|
24
24
|
chainId: normalizedChainId
|
|
25
25
|
});
|
|
26
26
|
if (!config) {
|
|
27
|
-
throw new
|
|
27
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
28
28
|
`No vault found for token address ${depositToken} with yield type '${yieldType}' on chain ${normalizedChainId}. This combination may not be supported.`,
|
|
29
29
|
{ endpoint: "prepareApproveDepositToken" }
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
const boringVaultAddress = config.vault.boringVaultAddress;
|
|
33
33
|
if (!boringVaultAddress) {
|
|
34
|
-
throw new
|
|
34
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
35
35
|
`BoringVault contract address not configured for vault ${config.id}`,
|
|
36
36
|
{ endpoint: "prepareApproveDepositToken" }
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
|
-
const assets = await
|
|
39
|
+
const assets = await chunkCK3BIPWI_js.getAssetsFromCache({ address: depositToken });
|
|
40
40
|
if (assets.length === 0) {
|
|
41
|
-
throw new
|
|
41
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
42
42
|
`Asset metadata not found for token ${depositToken} on chain ${normalizedChainId}`,
|
|
43
43
|
{ endpoint: "prepareApproveDepositToken" }
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
46
|
const decimals = assets[0].decimals;
|
|
47
|
-
const amount = approvalAmount ? viem.parseUnits(approvalAmount, decimals) :
|
|
47
|
+
const amount = approvalAmount ? viem.parseUnits(approvalAmount, decimals) : chunkCK3BIPWI_js.DEFAULT_APPROVAL_AMOUNT;
|
|
48
48
|
return {
|
|
49
49
|
abi: viem.erc20Abi,
|
|
50
50
|
address: depositToken,
|
|
@@ -52,10 +52,10 @@ async function prepareApproveDepositTokenTxData({
|
|
|
52
52
|
args: [boringVaultAddress, amount]
|
|
53
53
|
};
|
|
54
54
|
} catch (error) {
|
|
55
|
-
if (error instanceof
|
|
55
|
+
if (error instanceof chunkCK3BIPWI_js.APIError) {
|
|
56
56
|
throw error;
|
|
57
57
|
}
|
|
58
|
-
throw new
|
|
58
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
59
59
|
`Failed to prepare approval transaction: ${error instanceof Error ? error.message : String(error)}`,
|
|
60
60
|
{
|
|
61
61
|
endpoint: "prepareApproveDepositToken",
|
|
@@ -321,13 +321,13 @@ async function prepareDepositTxData(params) {
|
|
|
321
321
|
const normalizedChainId = chunkRUIAH5HY_js.toChainId(chainId);
|
|
322
322
|
let vault;
|
|
323
323
|
try {
|
|
324
|
-
vault = await
|
|
324
|
+
vault = await chunkCK3BIPWI_js.findVaultByConfig({
|
|
325
325
|
assetAddress: depositToken,
|
|
326
326
|
yieldType,
|
|
327
327
|
chainId: normalizedChainId
|
|
328
328
|
});
|
|
329
329
|
} catch (error) {
|
|
330
|
-
throw new
|
|
330
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
331
331
|
`Failed to resolve vault for token ${depositToken} with yield type ${yieldType} on chain ${normalizedChainId}: ${error instanceof Error ? error.message : "Unknown error"}`,
|
|
332
332
|
{
|
|
333
333
|
endpoint: "prepareDepositTransactionData",
|
|
@@ -336,7 +336,7 @@ async function prepareDepositTxData(params) {
|
|
|
336
336
|
);
|
|
337
337
|
}
|
|
338
338
|
if (!vault) {
|
|
339
|
-
throw new
|
|
339
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
340
340
|
`No vault found for token address ${depositToken} with yield type '${yieldType}' on chain ${normalizedChainId}. This combination may not be supported.`,
|
|
341
341
|
{
|
|
342
342
|
endpoint: "prepareDepositTransactionData"
|
|
@@ -344,12 +344,12 @@ async function prepareDepositTxData(params) {
|
|
|
344
344
|
);
|
|
345
345
|
}
|
|
346
346
|
let asset = null;
|
|
347
|
-
const assets = await
|
|
347
|
+
const assets = await chunkCK3BIPWI_js.getAssetsFromCache({ address: depositToken });
|
|
348
348
|
if (assets.length > 0) {
|
|
349
349
|
asset = assets.find((a) => a.chains.includes(normalizedChainId)) || assets[0] || null;
|
|
350
350
|
}
|
|
351
351
|
if (!asset) {
|
|
352
|
-
throw new
|
|
352
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
353
353
|
`Asset metadata not found for token ${depositToken} on chain ${normalizedChainId}`,
|
|
354
354
|
{
|
|
355
355
|
endpoint: "prepareDepositTransactionData"
|
|
@@ -359,13 +359,13 @@ async function prepareDepositTxData(params) {
|
|
|
359
359
|
const communityCodeDepositorAddress = vault.vault.communityCodeDepositorAddress;
|
|
360
360
|
const accountantAddress = vault.vault.accountantAddress;
|
|
361
361
|
const depositAssetAddress = asset.address;
|
|
362
|
-
const [depositAssetDecimalsResult, rateInQuoteResult] = await
|
|
362
|
+
const [depositAssetDecimalsResult, rateInQuoteResult] = await chunk4ZYCWOFI_js.getRateInQuoteWithAssetDecimals({
|
|
363
363
|
assetAddress: depositAssetAddress,
|
|
364
364
|
accountantAddress,
|
|
365
365
|
chainId: normalizedChainId
|
|
366
366
|
});
|
|
367
367
|
if (depositAssetDecimalsResult.status === "failure") {
|
|
368
|
-
throw new
|
|
368
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
369
369
|
`Failed to get asset decimals: ${depositAssetDecimalsResult.error?.message || "Unknown error"}`,
|
|
370
370
|
{
|
|
371
371
|
endpoint: "prepareDepositTransactionData",
|
|
@@ -374,7 +374,7 @@ async function prepareDepositTxData(params) {
|
|
|
374
374
|
);
|
|
375
375
|
}
|
|
376
376
|
if (rateInQuoteResult.status === "failure") {
|
|
377
|
-
throw new
|
|
377
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
378
378
|
`Failed to get exchange rate: ${rateInQuoteResult.error?.message || "Unknown error"}`,
|
|
379
379
|
{
|
|
380
380
|
endpoint: "prepareDepositTransactionData",
|
|
@@ -386,11 +386,11 @@ async function prepareDepositTxData(params) {
|
|
|
386
386
|
depositAmount,
|
|
387
387
|
depositAssetDecimalsResult.result
|
|
388
388
|
);
|
|
389
|
-
const vaultSharesAssets = await
|
|
389
|
+
const vaultSharesAssets = await chunkCK3BIPWI_js.fetchSupportedAssets({
|
|
390
390
|
address: vault.vault.boringVaultAddress
|
|
391
391
|
});
|
|
392
392
|
if (vaultSharesAssets.length === 0) {
|
|
393
|
-
throw new
|
|
393
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
394
394
|
`Vault shares token not found in supported assets: ${vault.vault.boringVaultAddress}`,
|
|
395
395
|
{ endpoint: "prepareDepositTransactionData" }
|
|
396
396
|
);
|
|
@@ -402,7 +402,7 @@ async function prepareDepositTxData(params) {
|
|
|
402
402
|
slippage
|
|
403
403
|
);
|
|
404
404
|
if (!communityCodeDepositorAddress) {
|
|
405
|
-
throw new
|
|
405
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
406
406
|
`CommunityCodeDepositor contract address not found for vault ${vault.id}`,
|
|
407
407
|
{ endpoint: "prepareDepositTransactionData" }
|
|
408
408
|
);
|
|
@@ -421,10 +421,10 @@ async function prepareDepositTxData(params) {
|
|
|
421
421
|
chainId: normalizedChainId
|
|
422
422
|
};
|
|
423
423
|
} catch (error) {
|
|
424
|
-
if (error instanceof
|
|
424
|
+
if (error instanceof chunkCK3BIPWI_js.APIError) {
|
|
425
425
|
throw error;
|
|
426
426
|
}
|
|
427
|
-
throw new
|
|
427
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
428
428
|
`Failed to prepare deposit transaction: ${error instanceof Error ? error.message : String(error)}`,
|
|
429
429
|
{
|
|
430
430
|
endpoint: "prepareDepositTransactionData",
|
|
@@ -460,13 +460,13 @@ async function prepareDepositPermitSignature(params) {
|
|
|
460
460
|
const normalizedChainId = chunkRUIAH5HY_js.toChainId(chainId);
|
|
461
461
|
let vault;
|
|
462
462
|
try {
|
|
463
|
-
vault = await
|
|
463
|
+
vault = await chunkCK3BIPWI_js.findVaultByConfig({
|
|
464
464
|
assetAddress: depositToken,
|
|
465
465
|
yieldType,
|
|
466
466
|
chainId: normalizedChainId
|
|
467
467
|
});
|
|
468
468
|
} catch (error) {
|
|
469
|
-
throw new
|
|
469
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
470
470
|
`Failed to resolve vault for token ${depositToken} with yield type ${yieldType} on chain ${normalizedChainId}: ${error instanceof Error ? error.message : "Unknown error"}`,
|
|
471
471
|
{
|
|
472
472
|
endpoint: "prepareDepositPermitSignature",
|
|
@@ -475,7 +475,7 @@ async function prepareDepositPermitSignature(params) {
|
|
|
475
475
|
);
|
|
476
476
|
}
|
|
477
477
|
if (!vault) {
|
|
478
|
-
throw new
|
|
478
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
479
479
|
`No vault found for token address ${depositToken} with yield type '${yieldType}' on chain ${normalizedChainId}. This combination may not be supported.`,
|
|
480
480
|
{
|
|
481
481
|
endpoint: "prepareDepositPermitSignature"
|
|
@@ -484,7 +484,7 @@ async function prepareDepositPermitSignature(params) {
|
|
|
484
484
|
}
|
|
485
485
|
const communityCodeDepositorAddress = vault.vault.communityCodeDepositorAddress;
|
|
486
486
|
if (!communityCodeDepositorAddress) {
|
|
487
|
-
throw new
|
|
487
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
488
488
|
`CommunityCodeDepositor contract address not found for vault ${vault.id}`,
|
|
489
489
|
{ endpoint: "prepareDepositPermitSignature" }
|
|
490
490
|
);
|
|
@@ -498,24 +498,24 @@ async function prepareDepositPermitSignature(params) {
|
|
|
498
498
|
resolvedTokenVersion = prefetchedTokenVersion;
|
|
499
499
|
resolvedNonce = prefetchedNonce;
|
|
500
500
|
} else {
|
|
501
|
-
const client = await
|
|
501
|
+
const client = await chunk4ZYCWOFI_js.getClient(normalizedChainId);
|
|
502
502
|
try {
|
|
503
503
|
const [nameResult, versionResult, nonceResult] = await client.multicall(
|
|
504
504
|
{
|
|
505
505
|
contracts: [
|
|
506
506
|
{
|
|
507
507
|
address: depositToken,
|
|
508
|
-
abi:
|
|
508
|
+
abi: chunk4ZYCWOFI_js.erc2612Abi,
|
|
509
509
|
functionName: "name"
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
512
|
address: depositToken,
|
|
513
|
-
abi:
|
|
513
|
+
abi: chunk4ZYCWOFI_js.erc2612Abi,
|
|
514
514
|
functionName: "version"
|
|
515
515
|
},
|
|
516
516
|
{
|
|
517
517
|
address: depositToken,
|
|
518
|
-
abi:
|
|
518
|
+
abi: chunk4ZYCWOFI_js.erc2612Abi,
|
|
519
519
|
functionName: "nonces",
|
|
520
520
|
args: [recipientAddress]
|
|
521
521
|
}
|
|
@@ -527,7 +527,7 @@ async function prepareDepositPermitSignature(params) {
|
|
|
527
527
|
} else if (nameResult.status === "success") {
|
|
528
528
|
resolvedTokenName = nameResult.result;
|
|
529
529
|
} else {
|
|
530
|
-
throw new
|
|
530
|
+
throw new chunkCK3BIPWI_js.APIError(`Failed to read token name from ${depositToken}`, {
|
|
531
531
|
endpoint: "prepareDepositPermitSignature",
|
|
532
532
|
cause: nameResult.error
|
|
533
533
|
});
|
|
@@ -544,7 +544,7 @@ async function prepareDepositPermitSignature(params) {
|
|
|
544
544
|
} else if (nonceResult.status === "success") {
|
|
545
545
|
resolvedNonce = nonceResult.result;
|
|
546
546
|
} else {
|
|
547
|
-
throw new
|
|
547
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
548
548
|
`Token ${depositToken} does not support EIP-2612 permit. Missing required function: nonces()`,
|
|
549
549
|
{
|
|
550
550
|
endpoint: "prepareDepositPermitSignature",
|
|
@@ -553,10 +553,10 @@ async function prepareDepositPermitSignature(params) {
|
|
|
553
553
|
);
|
|
554
554
|
}
|
|
555
555
|
} catch (error) {
|
|
556
|
-
if (error instanceof
|
|
556
|
+
if (error instanceof chunkCK3BIPWI_js.APIError) {
|
|
557
557
|
throw error;
|
|
558
558
|
}
|
|
559
|
-
throw new
|
|
559
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
560
560
|
`Failed to read token metadata: ${error instanceof Error ? error.message : "Unknown error"}`,
|
|
561
561
|
{
|
|
562
562
|
endpoint: "prepareDepositPermitSignature",
|
|
@@ -570,9 +570,9 @@ async function prepareDepositPermitSignature(params) {
|
|
|
570
570
|
if (prefetchedDecimals !== void 0) {
|
|
571
571
|
resolvedDecimals = prefetchedDecimals;
|
|
572
572
|
} else {
|
|
573
|
-
const assets = await
|
|
573
|
+
const assets = await chunkCK3BIPWI_js.fetchSupportedAssets({ address: depositToken });
|
|
574
574
|
if (assets.length === 0) {
|
|
575
|
-
throw new
|
|
575
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
576
576
|
`Asset metadata not found for token ${depositToken}`,
|
|
577
577
|
{
|
|
578
578
|
endpoint: "prepareDepositPermitSignature"
|
|
@@ -602,10 +602,10 @@ async function prepareDepositPermitSignature(params) {
|
|
|
602
602
|
types: PERMIT_TYPES
|
|
603
603
|
};
|
|
604
604
|
} catch (error) {
|
|
605
|
-
if (error instanceof
|
|
605
|
+
if (error instanceof chunkCK3BIPWI_js.APIError) {
|
|
606
606
|
throw error;
|
|
607
607
|
}
|
|
608
|
-
throw new
|
|
608
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
609
609
|
`Failed to prepare permit signature: ${error instanceof Error ? error.message : String(error)}`,
|
|
610
610
|
{
|
|
611
611
|
endpoint: "prepareDepositPermitSignature",
|
|
@@ -631,7 +631,7 @@ function parsePermitSignature(signature) {
|
|
|
631
631
|
s: parsed.s
|
|
632
632
|
};
|
|
633
633
|
} catch (error) {
|
|
634
|
-
throw new
|
|
634
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
635
635
|
`Invalid permit signature format. Expected hex string but received: ${signature}. ${error instanceof Error ? error.message : "Unknown error"}`,
|
|
636
636
|
{
|
|
637
637
|
endpoint: "parsePermitSignature",
|
|
@@ -655,7 +655,7 @@ async function prepareDepositWithPermitTxData(params) {
|
|
|
655
655
|
try {
|
|
656
656
|
const { v, r, s } = parsePermitSignature(signature);
|
|
657
657
|
if (slippage < 0 || slippage > 1e4) {
|
|
658
|
-
throw new
|
|
658
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
659
659
|
`Invalid slippage value: ${slippage}. Slippage must be between 0 and 10000 basis points.`,
|
|
660
660
|
{
|
|
661
661
|
endpoint: "prepareDepositWithPermitTxData"
|
|
@@ -665,13 +665,13 @@ async function prepareDepositWithPermitTxData(params) {
|
|
|
665
665
|
const normalizedChainId = chunkRUIAH5HY_js.toChainId(chainId);
|
|
666
666
|
let vault;
|
|
667
667
|
try {
|
|
668
|
-
vault = await
|
|
668
|
+
vault = await chunkCK3BIPWI_js.findVaultByConfig({
|
|
669
669
|
assetAddress: depositToken,
|
|
670
670
|
yieldType,
|
|
671
671
|
chainId: normalizedChainId
|
|
672
672
|
});
|
|
673
673
|
} catch (error) {
|
|
674
|
-
throw new
|
|
674
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
675
675
|
`Failed to resolve vault for token ${depositToken} with yield type ${yieldType} on chain ${normalizedChainId}: ${error instanceof Error ? error.message : "Unknown error"}`,
|
|
676
676
|
{
|
|
677
677
|
endpoint: "prepareDepositWithPermitTxData",
|
|
@@ -680,7 +680,7 @@ async function prepareDepositWithPermitTxData(params) {
|
|
|
680
680
|
);
|
|
681
681
|
}
|
|
682
682
|
if (!vault) {
|
|
683
|
-
throw new
|
|
683
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
684
684
|
`No vault found for token address ${depositToken} with yield type '${yieldType}' on chain ${normalizedChainId}. This combination may not be supported.`,
|
|
685
685
|
{
|
|
686
686
|
endpoint: "prepareDepositWithPermitTxData"
|
|
@@ -688,12 +688,12 @@ async function prepareDepositWithPermitTxData(params) {
|
|
|
688
688
|
);
|
|
689
689
|
}
|
|
690
690
|
let asset = null;
|
|
691
|
-
const assets = await
|
|
691
|
+
const assets = await chunkCK3BIPWI_js.fetchSupportedAssets({ address: depositToken });
|
|
692
692
|
if (assets.length > 0) {
|
|
693
693
|
asset = assets.find((a) => a.chains.includes(normalizedChainId)) || assets[0] || null;
|
|
694
694
|
}
|
|
695
695
|
if (!asset) {
|
|
696
|
-
throw new
|
|
696
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
697
697
|
`Asset metadata not found for token ${depositToken} on chain ${normalizedChainId}`,
|
|
698
698
|
{
|
|
699
699
|
endpoint: "prepareDepositWithPermitTxData"
|
|
@@ -701,7 +701,7 @@ async function prepareDepositWithPermitTxData(params) {
|
|
|
701
701
|
);
|
|
702
702
|
}
|
|
703
703
|
if (!asset.chains || !asset.chains.includes(normalizedChainId)) {
|
|
704
|
-
throw new
|
|
704
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
705
705
|
`Token ${asset.symbol || depositToken} not supported on chain ${normalizedChainId}`,
|
|
706
706
|
{
|
|
707
707
|
endpoint: "prepareDepositWithPermitTxData"
|
|
@@ -712,18 +712,18 @@ async function prepareDepositWithPermitTxData(params) {
|
|
|
712
712
|
const accountantAddress = vault.vault.accountantAddress;
|
|
713
713
|
const depositAssetAddress = asset.address;
|
|
714
714
|
if (!communityCodeDepositorAddress) {
|
|
715
|
-
throw new
|
|
715
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
716
716
|
`CommunityCodeDepositor contract address not found for vault ${vault.id}`,
|
|
717
717
|
{ endpoint: "prepareDepositWithPermitTxData" }
|
|
718
718
|
);
|
|
719
719
|
}
|
|
720
|
-
const [depositAssetDecimalsResult, rateInQuoteResult] = await
|
|
720
|
+
const [depositAssetDecimalsResult, rateInQuoteResult] = await chunk4ZYCWOFI_js.getRateInQuoteWithAssetDecimals({
|
|
721
721
|
assetAddress: depositAssetAddress,
|
|
722
722
|
accountantAddress,
|
|
723
723
|
chainId: normalizedChainId
|
|
724
724
|
});
|
|
725
725
|
if (depositAssetDecimalsResult.status === "failure") {
|
|
726
|
-
throw new
|
|
726
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
727
727
|
`Failed to get asset decimals: ${depositAssetDecimalsResult.error?.message || "Unknown error"}`,
|
|
728
728
|
{
|
|
729
729
|
endpoint: "prepareDepositWithPermitTxData",
|
|
@@ -732,7 +732,7 @@ async function prepareDepositWithPermitTxData(params) {
|
|
|
732
732
|
);
|
|
733
733
|
}
|
|
734
734
|
if (rateInQuoteResult.status === "failure") {
|
|
735
|
-
throw new
|
|
735
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
736
736
|
`Failed to get exchange rate: ${rateInQuoteResult.error?.message || "Unknown error"}`,
|
|
737
737
|
{
|
|
738
738
|
endpoint: "prepareDepositWithPermitTxData",
|
|
@@ -741,11 +741,11 @@ async function prepareDepositWithPermitTxData(params) {
|
|
|
741
741
|
);
|
|
742
742
|
}
|
|
743
743
|
const depositAmountAsBigInt = viem.parseUnits(depositAmount, asset.decimals);
|
|
744
|
-
const vaultSharesAssets = await
|
|
744
|
+
const vaultSharesAssets = await chunkCK3BIPWI_js.fetchSupportedAssets({
|
|
745
745
|
address: vault.vault.boringVaultAddress
|
|
746
746
|
});
|
|
747
747
|
if (vaultSharesAssets.length === 0) {
|
|
748
|
-
throw new
|
|
748
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
749
749
|
`Vault shares token not found in supported assets: ${vault.vault.boringVaultAddress}`,
|
|
750
750
|
{ endpoint: "prepareDepositWithPermitTxData" }
|
|
751
751
|
);
|
|
@@ -776,10 +776,10 @@ async function prepareDepositWithPermitTxData(params) {
|
|
|
776
776
|
chainId: normalizedChainId
|
|
777
777
|
};
|
|
778
778
|
} catch (error) {
|
|
779
|
-
if (error instanceof
|
|
779
|
+
if (error instanceof chunkCK3BIPWI_js.APIError) {
|
|
780
780
|
throw error;
|
|
781
781
|
}
|
|
782
|
-
throw new
|
|
782
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
783
783
|
`Failed to prepare deposit with permit transaction: ${error instanceof Error ? error.message : String(error)}`,
|
|
784
784
|
{
|
|
785
785
|
endpoint: "prepareDepositWithPermitTxData",
|
|
@@ -805,18 +805,18 @@ async function prepareDepositAuthorization(params) {
|
|
|
805
805
|
} = params;
|
|
806
806
|
try {
|
|
807
807
|
const normalizedChainId = chunkRUIAH5HY_js.toChainId(chainId);
|
|
808
|
-
const vault = await
|
|
808
|
+
const vault = await chunkCK3BIPWI_js.findVaultByConfig({
|
|
809
809
|
assetAddress: depositToken,
|
|
810
810
|
yieldType,
|
|
811
811
|
chainId: normalizedChainId
|
|
812
812
|
});
|
|
813
813
|
if (!vault) {
|
|
814
|
-
throw new
|
|
814
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
815
815
|
`No vault found for token ${depositToken} with yield type '${yieldType}' on chain ${normalizedChainId}`,
|
|
816
816
|
{ endpoint: "prepareDepositAuthorization" }
|
|
817
817
|
);
|
|
818
818
|
}
|
|
819
|
-
const tokenInfo = await
|
|
819
|
+
const tokenInfo = await chunkIJBG5TTI_js.isDepositSpendApproved({
|
|
820
820
|
yieldType,
|
|
821
821
|
chainId: normalizedChainId,
|
|
822
822
|
depositAssetAddress: depositToken,
|
|
@@ -896,10 +896,10 @@ async function prepareDepositAuthorization(params) {
|
|
|
896
896
|
currentAllowanceAsBigInt: tokenInfo.allowanceAsBigInt
|
|
897
897
|
};
|
|
898
898
|
} catch (error) {
|
|
899
|
-
if (error instanceof
|
|
899
|
+
if (error instanceof chunkCK3BIPWI_js.APIError) {
|
|
900
900
|
throw error;
|
|
901
901
|
}
|
|
902
|
-
throw new
|
|
902
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
903
903
|
`Failed to prepare deposit authorization: ${error instanceof Error ? error.message : String(error)}`,
|
|
904
904
|
{
|
|
905
905
|
endpoint: "prepareDepositAuthorization",
|
|
@@ -923,7 +923,7 @@ async function prepareDeposit(params) {
|
|
|
923
923
|
} = params;
|
|
924
924
|
try {
|
|
925
925
|
if (forceMethod === "permit" && (!signature || deadline === void 0)) {
|
|
926
|
-
throw new
|
|
926
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
927
927
|
"Permit deposit requires both signature and deadline parameters when forceMethod is 'permit'",
|
|
928
928
|
{ endpoint: "prepareDeposit" }
|
|
929
929
|
);
|
|
@@ -931,7 +931,7 @@ async function prepareDeposit(params) {
|
|
|
931
931
|
const usePermit = forceMethod === "permit" || forceMethod !== "approval" && signature !== void 0 && deadline !== void 0;
|
|
932
932
|
if (usePermit) {
|
|
933
933
|
if (!signature || deadline === void 0) {
|
|
934
|
-
throw new
|
|
934
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
935
935
|
"Permit deposit requires both signature and deadline parameters",
|
|
936
936
|
{ endpoint: "prepareDeposit" }
|
|
937
937
|
);
|
|
@@ -966,10 +966,10 @@ async function prepareDeposit(params) {
|
|
|
966
966
|
txData
|
|
967
967
|
};
|
|
968
968
|
} catch (error) {
|
|
969
|
-
if (error instanceof
|
|
969
|
+
if (error instanceof chunkCK3BIPWI_js.APIError) {
|
|
970
970
|
throw error;
|
|
971
971
|
}
|
|
972
|
-
throw new
|
|
972
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
973
973
|
`Failed to prepare deposit: ${error instanceof Error ? error.message : String(error)}`,
|
|
974
974
|
{
|
|
975
975
|
endpoint: "prepareDeposit",
|
|
@@ -986,45 +986,45 @@ async function prepareApproveWithdrawTxData({
|
|
|
986
986
|
}) {
|
|
987
987
|
try {
|
|
988
988
|
const normalizedChainId = chunkRUIAH5HY_js.toChainId(chainId);
|
|
989
|
-
const config = await
|
|
989
|
+
const config = await chunkCK3BIPWI_js.findVaultByConfig({
|
|
990
990
|
assetAddress: wantAssetAddress,
|
|
991
991
|
yieldType,
|
|
992
992
|
chainId: normalizedChainId
|
|
993
993
|
});
|
|
994
994
|
if (!config || config.chainId !== normalizedChainId) {
|
|
995
|
-
throw new
|
|
995
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
996
996
|
`Vault chain mismatch: vault is on chain ${config?.chainId}, requested chain ${normalizedChainId}`,
|
|
997
997
|
{ endpoint: "prepareApproveWithdrawToken" }
|
|
998
998
|
);
|
|
999
999
|
}
|
|
1000
1000
|
if (!config.vault.boringVaultAddress) {
|
|
1001
|
-
throw new
|
|
1001
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1002
1002
|
`BoringVault contract address not configured for vault ${config.id}`,
|
|
1003
1003
|
{ endpoint: "prepareApproveWithdrawToken" }
|
|
1004
1004
|
);
|
|
1005
1005
|
}
|
|
1006
1006
|
const boringVaultAddress = config.vault.boringVaultAddress;
|
|
1007
|
-
const vaultSharesAssets = await
|
|
1007
|
+
const vaultSharesAssets = await chunkCK3BIPWI_js.getAssetsFromCache({
|
|
1008
1008
|
address: boringVaultAddress
|
|
1009
1009
|
});
|
|
1010
1010
|
if (vaultSharesAssets.length === 0) {
|
|
1011
|
-
throw new
|
|
1011
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1012
1012
|
`Vault shares token not found in supported assets: ${boringVaultAddress}`,
|
|
1013
1013
|
{ endpoint: "prepareApproveWithdrawToken" }
|
|
1014
1014
|
);
|
|
1015
1015
|
}
|
|
1016
|
-
const withdrawAmountAsBigInt = withdrawAmount ? viem.parseUnits(withdrawAmount, vaultSharesAssets[0].decimals) :
|
|
1016
|
+
const withdrawAmountAsBigInt = withdrawAmount ? viem.parseUnits(withdrawAmount, vaultSharesAssets[0].decimals) : chunkCK3BIPWI_js.DEFAULT_APPROVAL_AMOUNT;
|
|
1017
1017
|
return {
|
|
1018
|
-
abi:
|
|
1018
|
+
abi: chunk4ZYCWOFI_js.BoringVaultAbi,
|
|
1019
1019
|
address: boringVaultAddress,
|
|
1020
1020
|
functionName: "approve",
|
|
1021
|
-
args: [
|
|
1021
|
+
args: [chunkCK3BIPWI_js.ATOMIC_QUEUE_CONTRACT_ADDRESS, withdrawAmountAsBigInt]
|
|
1022
1022
|
};
|
|
1023
1023
|
} catch (error) {
|
|
1024
|
-
if (error instanceof
|
|
1024
|
+
if (error instanceof chunkCK3BIPWI_js.APIError) {
|
|
1025
1025
|
throw error;
|
|
1026
1026
|
}
|
|
1027
|
-
throw new
|
|
1027
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1028
1028
|
`Failed to prepare approval transaction: ${error instanceof Error ? error.message : String(error)}`,
|
|
1029
1029
|
{
|
|
1030
1030
|
endpoint: "prepareApproveWithdrawToken",
|
|
@@ -1036,7 +1036,7 @@ async function prepareApproveWithdrawTxData({
|
|
|
1036
1036
|
|
|
1037
1037
|
// src/vaults/withdraw/utils.ts
|
|
1038
1038
|
var prepareUserRequest = (offerAmount, atomicPrice, deadline) => {
|
|
1039
|
-
const deadlineTimeStamp =
|
|
1039
|
+
const deadlineTimeStamp = chunkRSQQMUEQ_js.calculateDeadline(deadline);
|
|
1040
1040
|
return {
|
|
1041
1041
|
deadline: deadlineTimeStamp,
|
|
1042
1042
|
atomicPrice,
|
|
@@ -1062,30 +1062,30 @@ async function prepareBulkWithdrawTxData(params) {
|
|
|
1062
1062
|
} = params;
|
|
1063
1063
|
try {
|
|
1064
1064
|
const normalizedChainId = chunkRUIAH5HY_js.toChainId(chainId);
|
|
1065
|
-
const vault = await
|
|
1065
|
+
const vault = await chunkCK3BIPWI_js.findVaultByConfig({
|
|
1066
1066
|
assetAddress: wantAssetAddress,
|
|
1067
1067
|
yieldType,
|
|
1068
1068
|
chainId: normalizedChainId
|
|
1069
1069
|
});
|
|
1070
1070
|
if (vault && vault.chainId !== normalizedChainId) {
|
|
1071
|
-
throw new
|
|
1071
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1072
1072
|
`Vault chain mismatch: vault is on chain ${vault.chainId}, requested chain ${normalizedChainId}`,
|
|
1073
1073
|
{ endpoint: "prepareBulkWithdrawTransactionData" }
|
|
1074
1074
|
);
|
|
1075
1075
|
}
|
|
1076
1076
|
if (!vault || !vault.vault.boringVaultAddress) {
|
|
1077
|
-
throw new
|
|
1077
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1078
1078
|
`BoringVault contract address not configured for vault ${vault?.vault.boringVaultAddress}`,
|
|
1079
1079
|
{ endpoint: "prepareBulkWithdrawTransactionData" }
|
|
1080
1080
|
);
|
|
1081
1081
|
}
|
|
1082
1082
|
const boringVaultAddress = vault.vault.boringVaultAddress;
|
|
1083
1083
|
const accountantAddress = vault.vault.accountantAddress;
|
|
1084
|
-
const wantAsset = await
|
|
1084
|
+
const wantAsset = await chunkCK3BIPWI_js.getAssetsFromCache({
|
|
1085
1085
|
address: wantAssetAddress
|
|
1086
1086
|
});
|
|
1087
1087
|
if (wantAsset.length === 0) {
|
|
1088
|
-
throw new
|
|
1088
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1089
1089
|
`Vault shares token not found in supported assets: ${boringVaultAddress}`,
|
|
1090
1090
|
{ endpoint: "prepareBulkWithdrawTransactionData" }
|
|
1091
1091
|
);
|
|
@@ -1094,14 +1094,14 @@ async function prepareBulkWithdrawTxData(params) {
|
|
|
1094
1094
|
wantAssetDecimalsResult,
|
|
1095
1095
|
sharesAssetDecimalsResult,
|
|
1096
1096
|
rateInQuoteResult
|
|
1097
|
-
] = await
|
|
1097
|
+
] = await chunk4ZYCWOFI_js.getRateInQuoteAndSharesAndWantAssetDecimals({
|
|
1098
1098
|
sharesAssetAddress: boringVaultAddress,
|
|
1099
1099
|
wantAssetAddress,
|
|
1100
1100
|
accountantAddress,
|
|
1101
1101
|
chainId: normalizedChainId
|
|
1102
1102
|
});
|
|
1103
1103
|
if (rateInQuoteResult.status === "failure" || wantAssetDecimalsResult.status === "failure" || sharesAssetDecimalsResult.status === "failure") {
|
|
1104
|
-
throw new
|
|
1104
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1105
1105
|
`Failed to get exchange rate: ${rateInQuoteResult?.error?.message || wantAssetDecimalsResult?.error?.message || sharesAssetDecimalsResult?.error?.message}`,
|
|
1106
1106
|
{
|
|
1107
1107
|
endpoint: "prepareBulkWithdrawTransactionData",
|
|
@@ -1122,7 +1122,7 @@ async function prepareBulkWithdrawTxData(params) {
|
|
|
1122
1122
|
);
|
|
1123
1123
|
const minimumAssets = atomicPrice * offerAmountAsBigInt / BigInt(10 ** sharesAssetDecimalsResult.result);
|
|
1124
1124
|
return {
|
|
1125
|
-
abi:
|
|
1125
|
+
abi: chunk4ZYCWOFI_js.TellerAbi,
|
|
1126
1126
|
address: vault.vault.tellerAddress,
|
|
1127
1127
|
functionName: "bulkWithdraw",
|
|
1128
1128
|
args: [
|
|
@@ -1134,10 +1134,10 @@ async function prepareBulkWithdrawTxData(params) {
|
|
|
1134
1134
|
chainId: normalizedChainId
|
|
1135
1135
|
};
|
|
1136
1136
|
} catch (error) {
|
|
1137
|
-
if (error instanceof
|
|
1137
|
+
if (error instanceof chunkCK3BIPWI_js.APIError) {
|
|
1138
1138
|
throw error;
|
|
1139
1139
|
}
|
|
1140
|
-
throw new
|
|
1140
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1141
1141
|
`Failed to prepare withdrawal transaction: ${error instanceof Error ? error.message : String(error)}`,
|
|
1142
1142
|
{
|
|
1143
1143
|
endpoint: "prepareBulkWithdrawTransactionData",
|
|
@@ -1388,30 +1388,30 @@ var prepareWithdrawTxData = async ({
|
|
|
1388
1388
|
wantAssetAddress,
|
|
1389
1389
|
chainId,
|
|
1390
1390
|
offerAmount,
|
|
1391
|
-
deadline =
|
|
1391
|
+
deadline = chunkCK3BIPWI_js.DEFAULT_DEADLINE,
|
|
1392
1392
|
slippage = chunkOJOKPBK7_js.DEFAULT_SLIPPAGE_BPS
|
|
1393
1393
|
}) => {
|
|
1394
1394
|
try {
|
|
1395
1395
|
const normalizedChainId = chunkRUIAH5HY_js.toChainId(chainId);
|
|
1396
|
-
const config = await
|
|
1396
|
+
const config = await chunkCK3BIPWI_js.findVaultByConfig({
|
|
1397
1397
|
assetAddress: wantAssetAddress,
|
|
1398
1398
|
yieldType,
|
|
1399
1399
|
chainId: normalizedChainId
|
|
1400
1400
|
});
|
|
1401
1401
|
if (config && config.chainId !== normalizedChainId) {
|
|
1402
|
-
throw new
|
|
1402
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1403
1403
|
`Vault chain mismatch: vault is on chain ${config.chainId}, requested chain ${normalizedChainId}`,
|
|
1404
1404
|
{ endpoint: "prepareWithdrawTransactionData" }
|
|
1405
1405
|
);
|
|
1406
1406
|
}
|
|
1407
1407
|
if (!config || !config.vault.boringVaultAddress) {
|
|
1408
|
-
throw new
|
|
1408
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1409
1409
|
`BoringVault contract address not configured for vault ${config?.id}`,
|
|
1410
1410
|
{ endpoint: "prepareWithdrawTransactionData" }
|
|
1411
1411
|
);
|
|
1412
1412
|
}
|
|
1413
1413
|
if (!config.vault.accountantAddress) {
|
|
1414
|
-
throw new
|
|
1414
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1415
1415
|
`Accountant contract address not configured for vault ${config.id}`,
|
|
1416
1416
|
{ endpoint: "prepareWithdrawTransactionData" }
|
|
1417
1417
|
);
|
|
@@ -1422,14 +1422,14 @@ var prepareWithdrawTxData = async ({
|
|
|
1422
1422
|
wantAssetDecimalsResult,
|
|
1423
1423
|
sharesAssetDecimalsResult,
|
|
1424
1424
|
rateInQuoteResult
|
|
1425
|
-
] = await
|
|
1425
|
+
] = await chunk4ZYCWOFI_js.getRateInQuoteAndSharesAndWantAssetDecimals({
|
|
1426
1426
|
sharesAssetAddress: boringVaultAddress,
|
|
1427
1427
|
wantAssetAddress,
|
|
1428
1428
|
accountantAddress,
|
|
1429
1429
|
chainId: normalizedChainId
|
|
1430
1430
|
});
|
|
1431
1431
|
if (rateInQuoteResult?.status === "failure" || wantAssetDecimalsResult?.status === "failure" || sharesAssetDecimalsResult?.status === "failure") {
|
|
1432
|
-
throw new
|
|
1432
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1433
1433
|
`Failed to get exchange rate: ${rateInQuoteResult?.error?.message || wantAssetDecimalsResult?.error?.message || sharesAssetDecimalsResult?.error?.message}`,
|
|
1434
1434
|
{
|
|
1435
1435
|
endpoint: "prepareWithdrawTransactionData",
|
|
@@ -1455,16 +1455,16 @@ var prepareWithdrawTxData = async ({
|
|
|
1455
1455
|
);
|
|
1456
1456
|
return {
|
|
1457
1457
|
abi: AtomicQueueAbi,
|
|
1458
|
-
address:
|
|
1458
|
+
address: chunkCK3BIPWI_js.ATOMIC_QUEUE_CONTRACT_ADDRESS,
|
|
1459
1459
|
functionName: "updateAtomicRequest",
|
|
1460
1460
|
args: [boringVaultAddress, wantAssetAddress, userRequest],
|
|
1461
1461
|
chainId: normalizedChainId
|
|
1462
1462
|
};
|
|
1463
1463
|
} catch (error) {
|
|
1464
|
-
if (error instanceof
|
|
1464
|
+
if (error instanceof chunkCK3BIPWI_js.APIError) {
|
|
1465
1465
|
throw error;
|
|
1466
1466
|
}
|
|
1467
|
-
throw new
|
|
1467
|
+
throw new chunkCK3BIPWI_js.APIError(
|
|
1468
1468
|
`Failed to prepare withdrawal transaction: ${error instanceof Error ? error.message : String(error)}`,
|
|
1469
1469
|
{
|
|
1470
1470
|
endpoint: "prepareWithdrawTransactionData",
|
|
@@ -1480,75 +1480,75 @@ Object.defineProperty(exports, "YieldType", {
|
|
|
1480
1480
|
});
|
|
1481
1481
|
Object.defineProperty(exports, "getDepositExchangeRate", {
|
|
1482
1482
|
enumerable: true,
|
|
1483
|
-
get: function () { return
|
|
1483
|
+
get: function () { return chunkIJBG5TTI_js.getDepositExchangeRate; }
|
|
1484
1484
|
});
|
|
1485
1485
|
Object.defineProperty(exports, "getWithdrawExchangeRate", {
|
|
1486
1486
|
enumerable: true,
|
|
1487
|
-
get: function () { return
|
|
1487
|
+
get: function () { return chunkIJBG5TTI_js.getWithdrawExchangeRate; }
|
|
1488
1488
|
});
|
|
1489
1489
|
Object.defineProperty(exports, "isDepositSpendApproved", {
|
|
1490
1490
|
enumerable: true,
|
|
1491
|
-
get: function () { return
|
|
1491
|
+
get: function () { return chunkIJBG5TTI_js.isDepositSpendApproved; }
|
|
1492
1492
|
});
|
|
1493
1493
|
Object.defineProperty(exports, "isWithdrawalSpendApproved", {
|
|
1494
1494
|
enumerable: true,
|
|
1495
|
-
get: function () { return
|
|
1495
|
+
get: function () { return chunkIJBG5TTI_js.isWithdrawalSpendApproved; }
|
|
1496
1496
|
});
|
|
1497
1497
|
Object.defineProperty(exports, "APIError", {
|
|
1498
1498
|
enumerable: true,
|
|
1499
|
-
get: function () { return
|
|
1499
|
+
get: function () { return chunkCK3BIPWI_js.APIError; }
|
|
1500
1500
|
});
|
|
1501
1501
|
Object.defineProperty(exports, "LogLevel", {
|
|
1502
1502
|
enumerable: true,
|
|
1503
|
-
get: function () { return
|
|
1503
|
+
get: function () { return chunkCK3BIPWI_js.LogLevel; }
|
|
1504
1504
|
});
|
|
1505
1505
|
Object.defineProperty(exports, "fetchSupportedAssets", {
|
|
1506
1506
|
enumerable: true,
|
|
1507
|
-
get: function () { return
|
|
1507
|
+
get: function () { return chunkCK3BIPWI_js.fetchSupportedAssets; }
|
|
1508
1508
|
});
|
|
1509
1509
|
Object.defineProperty(exports, "fetchVaults", {
|
|
1510
1510
|
enumerable: true,
|
|
1511
|
-
get: function () { return
|
|
1511
|
+
get: function () { return chunkCK3BIPWI_js.fetchVaults; }
|
|
1512
1512
|
});
|
|
1513
1513
|
Object.defineProperty(exports, "findVaultByConfig", {
|
|
1514
1514
|
enumerable: true,
|
|
1515
|
-
get: function () { return
|
|
1515
|
+
get: function () { return chunkCK3BIPWI_js.findVaultByConfig; }
|
|
1516
1516
|
});
|
|
1517
1517
|
Object.defineProperty(exports, "getAssetsFromCache", {
|
|
1518
1518
|
enumerable: true,
|
|
1519
|
-
get: function () { return
|
|
1519
|
+
get: function () { return chunkCK3BIPWI_js.getAssetsFromCache; }
|
|
1520
1520
|
});
|
|
1521
1521
|
Object.defineProperty(exports, "getCache", {
|
|
1522
1522
|
enumerable: true,
|
|
1523
|
-
get: function () { return
|
|
1523
|
+
get: function () { return chunkCK3BIPWI_js.getCache; }
|
|
1524
1524
|
});
|
|
1525
1525
|
Object.defineProperty(exports, "getLogger", {
|
|
1526
1526
|
enumerable: true,
|
|
1527
|
-
get: function () { return
|
|
1527
|
+
get: function () { return chunkCK3BIPWI_js.getLogger; }
|
|
1528
1528
|
});
|
|
1529
1529
|
Object.defineProperty(exports, "getWithdrawSupportedAssets", {
|
|
1530
1530
|
enumerable: true,
|
|
1531
|
-
get: function () { return
|
|
1531
|
+
get: function () { return chunkCK3BIPWI_js.getWithdrawSupportedAssets; }
|
|
1532
1532
|
});
|
|
1533
1533
|
Object.defineProperty(exports, "initAmplifySDK", {
|
|
1534
1534
|
enumerable: true,
|
|
1535
|
-
get: function () { return
|
|
1535
|
+
get: function () { return chunkCK3BIPWI_js.initAmplifySDK; }
|
|
1536
1536
|
});
|
|
1537
1537
|
Object.defineProperty(exports, "initializeCache", {
|
|
1538
1538
|
enumerable: true,
|
|
1539
|
-
get: function () { return
|
|
1539
|
+
get: function () { return chunkCK3BIPWI_js.initializeCache; }
|
|
1540
1540
|
});
|
|
1541
1541
|
Object.defineProperty(exports, "refreshVaultCache", {
|
|
1542
1542
|
enumerable: true,
|
|
1543
|
-
get: function () { return
|
|
1543
|
+
get: function () { return chunkCK3BIPWI_js.refreshVaultCache; }
|
|
1544
1544
|
});
|
|
1545
1545
|
Object.defineProperty(exports, "setLogLevel", {
|
|
1546
1546
|
enumerable: true,
|
|
1547
|
-
get: function () { return
|
|
1547
|
+
get: function () { return chunkCK3BIPWI_js.setLogLevel; }
|
|
1548
1548
|
});
|
|
1549
1549
|
Object.defineProperty(exports, "setLogger", {
|
|
1550
1550
|
enumerable: true,
|
|
1551
|
-
get: function () { return
|
|
1551
|
+
get: function () { return chunkCK3BIPWI_js.setLogger; }
|
|
1552
1552
|
});
|
|
1553
1553
|
exports.DepositAuthMethod = DepositAuthMethod;
|
|
1554
1554
|
exports.PERMIT_TYPES = PERMIT_TYPES;
|