@paxoslabs/amplify-sdk 0.4.3-alpha.1 → 0.5.0
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 +36 -0
- package/dist/{chunk-PKGFLHZA.js → chunk-2ZJWWK6D.js} +10 -10
- package/dist/chunk-2ZJWWK6D.js.map +1 -0
- package/dist/{chunk-HV2LE2M6.mjs → chunk-B5BII2XH.mjs} +8 -8
- package/dist/{chunk-HV2LE2M6.mjs.map → chunk-B5BII2XH.mjs.map} +1 -1
- package/dist/{chunk-JTURYJHV.js → chunk-D7EMZAOQ.js} +12 -12
- package/dist/{chunk-JTURYJHV.js.map → chunk-D7EMZAOQ.js.map} +1 -1
- package/dist/{chunk-UM7S7U45.mjs → chunk-GJPTAY5T.mjs} +5 -5
- package/dist/{chunk-UM7S7U45.mjs.map → chunk-GJPTAY5T.mjs.map} +1 -1
- package/dist/{chunk-R35K46S5.js → chunk-KTLGSVD6.js} +111 -111
- package/dist/{chunk-R35K46S5.js.map → chunk-KTLGSVD6.js.map} +1 -1
- package/dist/{chunk-7JMQWERX.mjs → chunk-MPCRFKSD.mjs} +9 -9
- package/dist/chunk-MPCRFKSD.mjs.map +1 -0
- package/dist/{chunk-YEAWQB72.js → chunk-N5UKVLSS.js} +62 -62
- package/dist/{chunk-YEAWQB72.js.map → chunk-N5UKVLSS.js.map} +1 -1
- package/dist/{chunk-USF4CU2K.mjs → chunk-SXIBMN7X.mjs} +3 -3
- package/dist/{chunk-USF4CU2K.mjs.map → chunk-SXIBMN7X.mjs.map} +1 -1
- package/dist/{chunk-KXU3GSF4.mjs → chunk-XA653JS3.mjs} +3 -3
- package/dist/{chunk-KXU3GSF4.mjs.map → chunk-XA653JS3.mjs.map} +1 -1
- package/dist/{chunk-MB6HYA7R.js → chunk-XS4SELWC.js} +10 -10
- package/dist/{chunk-MB6HYA7R.js.map → chunk-XS4SELWC.js.map} +1 -1
- package/dist/core.js +16 -16
- package/dist/core.mjs +4 -4
- package/dist/display.js +10 -10
- package/dist/display.mjs +4 -4
- package/dist/index.d.mts +19 -18
- package/dist/index.d.ts +19 -18
- package/dist/index.js +63 -63
- package/dist/index.mjs +5 -5
- package/dist/utils.js +7 -7
- package/dist/utils.mjs +2 -2
- package/dist/vaults.js +25 -25
- package/dist/vaults.mjs +4 -4
- package/package.json +1 -1
- package/dist/chunk-7JMQWERX.mjs.map +0 -1
- package/dist/chunk-PKGFLHZA.js.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -211,7 +211,7 @@ declare class VaultCache {
|
|
|
211
211
|
*/
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
|
-
*
|
|
214
|
+
* Gets vaults with cache-first strategy
|
|
215
215
|
*
|
|
216
216
|
* Checks the cache first and returns cached data if fresh.
|
|
217
217
|
* Falls back to API via cache.refresh() when cache is empty or expired.
|
|
@@ -223,24 +223,24 @@ declare class VaultCache {
|
|
|
223
223
|
*
|
|
224
224
|
* @example
|
|
225
225
|
* ```typescript
|
|
226
|
-
* //
|
|
227
|
-
* const allVaults = await
|
|
226
|
+
* // Get all vaults (cache-first)
|
|
227
|
+
* const allVaults = await getVaults();
|
|
228
228
|
*
|
|
229
|
-
* //
|
|
230
|
-
* const ethCores = await
|
|
229
|
+
* // Get CORE vaults on Ethereum (cache-first)
|
|
230
|
+
* const ethCores = await getVaults({
|
|
231
231
|
* chainId: 1,
|
|
232
232
|
* yieldType: "CORE"
|
|
233
233
|
* });
|
|
234
234
|
*
|
|
235
|
-
* //
|
|
236
|
-
* const usdcVaults = await
|
|
235
|
+
* // Get vaults accepting USDC (cache-first)
|
|
236
|
+
* const usdcVaults = await getVaults({
|
|
237
237
|
* depositTokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
|
|
238
238
|
* });
|
|
239
239
|
* ```
|
|
240
240
|
*/
|
|
241
|
-
declare function
|
|
241
|
+
declare function getVaults(options?: VaultFilterOptions): Promise<AmplifyVault[]>;
|
|
242
242
|
/**
|
|
243
|
-
*
|
|
243
|
+
* Gets supported assets with cache-first strategy
|
|
244
244
|
*
|
|
245
245
|
* Checks the cache first and returns cached data if fresh.
|
|
246
246
|
* Falls back to API via cache.refresh() when cache is empty or expired.
|
|
@@ -255,21 +255,21 @@ declare function fetchVaults(options?: VaultFilterOptions): Promise<AmplifyVault
|
|
|
255
255
|
*
|
|
256
256
|
* @example
|
|
257
257
|
* ```typescript
|
|
258
|
-
* //
|
|
259
|
-
* const allAssets = await
|
|
258
|
+
* // Get all supported assets (cache-first)
|
|
259
|
+
* const allAssets = await getSupportedAssets();
|
|
260
260
|
*
|
|
261
|
-
* //
|
|
262
|
-
* const ethAssets = await
|
|
261
|
+
* // Get assets supported on Ethereum and Base (cache-first)
|
|
262
|
+
* const ethAssets = await getSupportedAssets({
|
|
263
263
|
* chains: [1, 8453]
|
|
264
264
|
* });
|
|
265
265
|
*
|
|
266
|
-
* //
|
|
267
|
-
* const coreAssets = await
|
|
266
|
+
* // Get CORE yield type assets (API call - yieldType bypass)
|
|
267
|
+
* const coreAssets = await getSupportedAssets({
|
|
268
268
|
* yieldType: "CORE"
|
|
269
269
|
* });
|
|
270
270
|
* ```
|
|
271
271
|
*/
|
|
272
|
-
declare function
|
|
272
|
+
declare function getSupportedAssets(options?: AssetFilterOptions): Promise<SupportedAsset[]>;
|
|
273
273
|
/**
|
|
274
274
|
* Initializes the global vault cache
|
|
275
275
|
*
|
|
@@ -315,9 +315,10 @@ declare function refreshVaultCache(): Promise<void>;
|
|
|
315
315
|
/**
|
|
316
316
|
* Gets supported assets from cache with automatic refresh on expiry
|
|
317
317
|
*
|
|
318
|
-
* Delegates to
|
|
318
|
+
* Delegates to getSupportedAssets() which now has cache-first behavior.
|
|
319
319
|
* Retained for backward compatibility.
|
|
320
320
|
*
|
|
321
|
+
* @deprecated Use getSupportedAssets instead
|
|
321
322
|
* @param options - Optional filter options for asset queries
|
|
322
323
|
* @returns Promise resolving to array of SupportedAsset objects
|
|
323
324
|
* @throws {APIError} If the request fails or returns invalid data
|
|
@@ -860,4 +861,4 @@ declare const isWithdrawalSpendApproved: ({ vaultName, chainId, wantAssetAddress
|
|
|
860
861
|
error: null;
|
|
861
862
|
}>;
|
|
862
863
|
|
|
863
|
-
export { AmplifyVault, AssetFilterOptions, type GetVaultsByConfigParams, type InitErrorCode, LogLevel, type Logger, type RequestHeaders, type SDKConfig, type SDKInitOptions, SupportedAsset, UnauthorizedVaultAccessError, VaultFilterOptions, VaultNotFoundByAddressError, VaultNotFoundByNameError, WithdrawSupportedAsset, YieldType,
|
|
864
|
+
export { AmplifyVault, AssetFilterOptions, type GetVaultsByConfigParams, type InitErrorCode, LogLevel, type Logger, type RequestHeaders, type SDKConfig, type SDKInitOptions, SupportedAsset, UnauthorizedVaultAccessError, VaultFilterOptions, VaultNotFoundByAddressError, VaultNotFoundByNameError, WithdrawSupportedAsset, YieldType, findVaultByConfig, getAssetsFromCache, getCache, getLogger, getSupportedAssets, getVaults, getVaultsByConfig, getWithdrawSupportedAssets, initAmplifySDK, initializeCache, isCacheReady, isDepositSpendApproved, isVaultNotFoundByAddressError, isVaultNotFoundByNameError, isWithdrawalSpendApproved, refreshVaultCache, setLogLevel, setLogger, waitForCacheReady };
|
package/dist/index.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ declare class VaultCache {
|
|
|
211
211
|
*/
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
|
-
*
|
|
214
|
+
* Gets vaults with cache-first strategy
|
|
215
215
|
*
|
|
216
216
|
* Checks the cache first and returns cached data if fresh.
|
|
217
217
|
* Falls back to API via cache.refresh() when cache is empty or expired.
|
|
@@ -223,24 +223,24 @@ declare class VaultCache {
|
|
|
223
223
|
*
|
|
224
224
|
* @example
|
|
225
225
|
* ```typescript
|
|
226
|
-
* //
|
|
227
|
-
* const allVaults = await
|
|
226
|
+
* // Get all vaults (cache-first)
|
|
227
|
+
* const allVaults = await getVaults();
|
|
228
228
|
*
|
|
229
|
-
* //
|
|
230
|
-
* const ethCores = await
|
|
229
|
+
* // Get CORE vaults on Ethereum (cache-first)
|
|
230
|
+
* const ethCores = await getVaults({
|
|
231
231
|
* chainId: 1,
|
|
232
232
|
* yieldType: "CORE"
|
|
233
233
|
* });
|
|
234
234
|
*
|
|
235
|
-
* //
|
|
236
|
-
* const usdcVaults = await
|
|
235
|
+
* // Get vaults accepting USDC (cache-first)
|
|
236
|
+
* const usdcVaults = await getVaults({
|
|
237
237
|
* depositTokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
|
|
238
238
|
* });
|
|
239
239
|
* ```
|
|
240
240
|
*/
|
|
241
|
-
declare function
|
|
241
|
+
declare function getVaults(options?: VaultFilterOptions): Promise<AmplifyVault[]>;
|
|
242
242
|
/**
|
|
243
|
-
*
|
|
243
|
+
* Gets supported assets with cache-first strategy
|
|
244
244
|
*
|
|
245
245
|
* Checks the cache first and returns cached data if fresh.
|
|
246
246
|
* Falls back to API via cache.refresh() when cache is empty or expired.
|
|
@@ -255,21 +255,21 @@ declare function fetchVaults(options?: VaultFilterOptions): Promise<AmplifyVault
|
|
|
255
255
|
*
|
|
256
256
|
* @example
|
|
257
257
|
* ```typescript
|
|
258
|
-
* //
|
|
259
|
-
* const allAssets = await
|
|
258
|
+
* // Get all supported assets (cache-first)
|
|
259
|
+
* const allAssets = await getSupportedAssets();
|
|
260
260
|
*
|
|
261
|
-
* //
|
|
262
|
-
* const ethAssets = await
|
|
261
|
+
* // Get assets supported on Ethereum and Base (cache-first)
|
|
262
|
+
* const ethAssets = await getSupportedAssets({
|
|
263
263
|
* chains: [1, 8453]
|
|
264
264
|
* });
|
|
265
265
|
*
|
|
266
|
-
* //
|
|
267
|
-
* const coreAssets = await
|
|
266
|
+
* // Get CORE yield type assets (API call - yieldType bypass)
|
|
267
|
+
* const coreAssets = await getSupportedAssets({
|
|
268
268
|
* yieldType: "CORE"
|
|
269
269
|
* });
|
|
270
270
|
* ```
|
|
271
271
|
*/
|
|
272
|
-
declare function
|
|
272
|
+
declare function getSupportedAssets(options?: AssetFilterOptions): Promise<SupportedAsset[]>;
|
|
273
273
|
/**
|
|
274
274
|
* Initializes the global vault cache
|
|
275
275
|
*
|
|
@@ -315,9 +315,10 @@ declare function refreshVaultCache(): Promise<void>;
|
|
|
315
315
|
/**
|
|
316
316
|
* Gets supported assets from cache with automatic refresh on expiry
|
|
317
317
|
*
|
|
318
|
-
* Delegates to
|
|
318
|
+
* Delegates to getSupportedAssets() which now has cache-first behavior.
|
|
319
319
|
* Retained for backward compatibility.
|
|
320
320
|
*
|
|
321
|
+
* @deprecated Use getSupportedAssets instead
|
|
321
322
|
* @param options - Optional filter options for asset queries
|
|
322
323
|
* @returns Promise resolving to array of SupportedAsset objects
|
|
323
324
|
* @throws {APIError} If the request fails or returns invalid data
|
|
@@ -860,4 +861,4 @@ declare const isWithdrawalSpendApproved: ({ vaultName, chainId, wantAssetAddress
|
|
|
860
861
|
error: null;
|
|
861
862
|
}>;
|
|
862
863
|
|
|
863
|
-
export { AmplifyVault, AssetFilterOptions, type GetVaultsByConfigParams, type InitErrorCode, LogLevel, type Logger, type RequestHeaders, type SDKConfig, type SDKInitOptions, SupportedAsset, UnauthorizedVaultAccessError, VaultFilterOptions, VaultNotFoundByAddressError, VaultNotFoundByNameError, WithdrawSupportedAsset, YieldType,
|
|
864
|
+
export { AmplifyVault, AssetFilterOptions, type GetVaultsByConfigParams, type InitErrorCode, LogLevel, type Logger, type RequestHeaders, type SDKConfig, type SDKInitOptions, SupportedAsset, UnauthorizedVaultAccessError, VaultFilterOptions, VaultNotFoundByAddressError, VaultNotFoundByNameError, WithdrawSupportedAsset, YieldType, findVaultByConfig, getAssetsFromCache, getCache, getLogger, getSupportedAssets, getVaults, getVaultsByConfig, getWithdrawSupportedAssets, initAmplifySDK, initializeCache, isCacheReady, isDepositSpendApproved, isVaultNotFoundByAddressError, isVaultNotFoundByNameError, isWithdrawalSpendApproved, refreshVaultCache, setLogLevel, setLogger, waitForCacheReady };
|
package/dist/index.js
CHANGED
|
@@ -1,221 +1,221 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunkKTLGSVD6_js = require('./chunk-KTLGSVD6.js');
|
|
4
|
+
var chunkN5UKVLSS_js = require('./chunk-N5UKVLSS.js');
|
|
5
|
+
var chunkXS4SELWC_js = require('./chunk-XS4SELWC.js');
|
|
6
|
+
require('./chunk-D7EMZAOQ.js');
|
|
7
7
|
require('./chunk-3I3PYX2F.js');
|
|
8
|
-
var
|
|
8
|
+
var chunk2ZJWWK6D_js = require('./chunk-2ZJWWK6D.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "DepositAuthMethod", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkKTLGSVD6_js.DepositAuthMethod; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "PERMIT_TYPES", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkKTLGSVD6_js.PERMIT_TYPES; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "WithdrawAuthMethod", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkKTLGSVD6_js.WithdrawAuthMethod; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "isAlreadyApprovedAuth", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkKTLGSVD6_js.isAlreadyApprovedAuth; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "isApprovalAuth", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkKTLGSVD6_js.isApprovalAuth; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "isDepositSpendApproved", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkKTLGSVD6_js.isDepositSpendApproved; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "isPermitAuth", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkKTLGSVD6_js.isPermitAuth; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "isWithdrawAlreadyApprovedAuth", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkKTLGSVD6_js.isWithdrawAlreadyApprovedAuth; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "isWithdrawApprovalAuth", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkKTLGSVD6_js.isWithdrawApprovalAuth; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "isWithdrawalSpendApproved", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkKTLGSVD6_js.isWithdrawalSpendApproved; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "parsePermitSignature", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkKTLGSVD6_js.parsePermitSignature; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "prepareApproveDepositTokenTxData", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkKTLGSVD6_js.prepareApproveDepositTokenTxData; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "prepareApproveWithdrawOrderTxData", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkKTLGSVD6_js.prepareApproveWithdrawOrderTxData; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "prepareCancelWithdrawOrderTxData", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkKTLGSVD6_js.prepareCancelWithdrawOrderTxData; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "prepareDeposit", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkKTLGSVD6_js.prepareDeposit; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "prepareDepositAuthorization", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkKTLGSVD6_js.prepareDepositAuthorization; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "prepareDepositPermitSignature", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkKTLGSVD6_js.prepareDepositPermitSignature; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "prepareDepositTxData", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkKTLGSVD6_js.prepareDepositTxData; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "prepareDepositWithPermitTxData", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkKTLGSVD6_js.prepareDepositWithPermitTxData; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "prepareWithdrawOrderTxData", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkKTLGSVD6_js.prepareWithdrawOrderTxData; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "prepareWithdrawal", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkKTLGSVD6_js.prepareWithdrawal; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "prepareWithdrawalAuthorization", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkKTLGSVD6_js.prepareWithdrawalAuthorization; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "toEthSignTypedDataV4", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkKTLGSVD6_js.toEthSignTypedDataV4; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "getMinimumMint", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkN5UKVLSS_js.getMinimumMint; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "getMinimumWithdrawalOrderSize", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkN5UKVLSS_js.getMinimumWithdrawalOrderSize; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "getVaultAPY", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkN5UKVLSS_js.getVaultAPY; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "getVaultTVL", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkN5UKVLSS_js.getVaultTVL; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "getWithdrawalFee", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkN5UKVLSS_js.getWithdrawalFee; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "getWithdrawalRequests", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkN5UKVLSS_js.getWithdrawalRequests; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "UnauthorizedVaultAccessError", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkXS4SELWC_js.UnauthorizedVaultAccessError; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "VaultNotFoundByAddressError", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkXS4SELWC_js.VaultNotFoundByAddressError; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "VaultNotFoundByNameError", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkXS4SELWC_js.VaultNotFoundByNameError; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "isVaultNotFoundByAddressError", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkXS4SELWC_js.isVaultNotFoundByAddressError; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "isVaultNotFoundByNameError", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkXS4SELWC_js.isVaultNotFoundByNameError; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "APIError", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk2ZJWWK6D_js.APIError; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "LogLevel", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk2ZJWWK6D_js.LogLevel; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "YieldType", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
159
|
-
});
|
|
160
|
-
Object.defineProperty(exports, "fetchSupportedAssets", {
|
|
161
|
-
enumerable: true,
|
|
162
|
-
get: function () { return chunkPKGFLHZA_js.fetchSupportedAssets; }
|
|
163
|
-
});
|
|
164
|
-
Object.defineProperty(exports, "fetchVaults", {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function () { return chunkPKGFLHZA_js.fetchVaults; }
|
|
158
|
+
get: function () { return chunk2ZJWWK6D_js.YieldType; }
|
|
167
159
|
});
|
|
168
160
|
Object.defineProperty(exports, "findVaultByConfig", {
|
|
169
161
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunk2ZJWWK6D_js.findVaultByConfig; }
|
|
171
163
|
});
|
|
172
164
|
Object.defineProperty(exports, "getAssetsFromCache", {
|
|
173
165
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunk2ZJWWK6D_js.getAssetsFromCache; }
|
|
175
167
|
});
|
|
176
168
|
Object.defineProperty(exports, "getCache", {
|
|
177
169
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunk2ZJWWK6D_js.getCache; }
|
|
179
171
|
});
|
|
180
172
|
Object.defineProperty(exports, "getLogger", {
|
|
181
173
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk2ZJWWK6D_js.getLogger; }
|
|
175
|
+
});
|
|
176
|
+
Object.defineProperty(exports, "getSupportedAssets", {
|
|
177
|
+
enumerable: true,
|
|
178
|
+
get: function () { return chunk2ZJWWK6D_js.getSupportedAssets; }
|
|
179
|
+
});
|
|
180
|
+
Object.defineProperty(exports, "getVaults", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function () { return chunk2ZJWWK6D_js.getVaults; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "getVaultsByConfig", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunk2ZJWWK6D_js.getVaultsByConfig; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "getWithdrawSupportedAssets", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunk2ZJWWK6D_js.getWithdrawSupportedAssets; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "initAmplifySDK", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunk2ZJWWK6D_js.initAmplifySDK; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "initializeCache", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunk2ZJWWK6D_js.initializeCache; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "isCacheReady", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunk2ZJWWK6D_js.isCacheReady; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "refreshVaultCache", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunk2ZJWWK6D_js.refreshVaultCache; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "setLogLevel", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunk2ZJWWK6D_js.setLogLevel; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "setLogger", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunk2ZJWWK6D_js.setLogger; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "waitForCacheReady", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunk2ZJWWK6D_js.waitForCacheReady; }
|
|
219
219
|
});
|
|
220
220
|
//# sourceMappingURL=index.js.map
|
|
221
221
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { DepositAuthMethod, PERMIT_TYPES, WithdrawAuthMethod, isAlreadyApprovedAuth, isApprovalAuth, isDepositSpendApproved, isPermitAuth, isWithdrawAlreadyApprovedAuth, isWithdrawApprovalAuth, isWithdrawalSpendApproved, parsePermitSignature, prepareApproveDepositTokenTxData, prepareApproveWithdrawOrderTxData, prepareCancelWithdrawOrderTxData, prepareDeposit, prepareDepositAuthorization, prepareDepositPermitSignature, prepareDepositTxData, prepareDepositWithPermitTxData, prepareWithdrawOrderTxData, prepareWithdrawal, prepareWithdrawalAuthorization, toEthSignTypedDataV4 } from './chunk-
|
|
2
|
-
export { getMinimumMint, getMinimumWithdrawalOrderSize, getVaultAPY, getVaultTVL, getWithdrawalFee, getWithdrawalRequests } from './chunk-
|
|
3
|
-
export { UnauthorizedVaultAccessError, VaultNotFoundByAddressError, VaultNotFoundByNameError, isVaultNotFoundByAddressError, isVaultNotFoundByNameError } from './chunk-
|
|
4
|
-
import './chunk-
|
|
1
|
+
export { DepositAuthMethod, PERMIT_TYPES, WithdrawAuthMethod, isAlreadyApprovedAuth, isApprovalAuth, isDepositSpendApproved, isPermitAuth, isWithdrawAlreadyApprovedAuth, isWithdrawApprovalAuth, isWithdrawalSpendApproved, parsePermitSignature, prepareApproveDepositTokenTxData, prepareApproveWithdrawOrderTxData, prepareCancelWithdrawOrderTxData, prepareDeposit, prepareDepositAuthorization, prepareDepositPermitSignature, prepareDepositTxData, prepareDepositWithPermitTxData, prepareWithdrawOrderTxData, prepareWithdrawal, prepareWithdrawalAuthorization, toEthSignTypedDataV4 } from './chunk-B5BII2XH.mjs';
|
|
2
|
+
export { getMinimumMint, getMinimumWithdrawalOrderSize, getVaultAPY, getVaultTVL, getWithdrawalFee, getWithdrawalRequests } from './chunk-GJPTAY5T.mjs';
|
|
3
|
+
export { UnauthorizedVaultAccessError, VaultNotFoundByAddressError, VaultNotFoundByNameError, isVaultNotFoundByAddressError, isVaultNotFoundByNameError } from './chunk-XA653JS3.mjs';
|
|
4
|
+
import './chunk-SXIBMN7X.mjs';
|
|
5
5
|
import './chunk-7RWWVUHP.mjs';
|
|
6
|
-
export { APIError, LogLevel, YieldType,
|
|
6
|
+
export { APIError, LogLevel, YieldType, findVaultByConfig, getAssetsFromCache, getCache, getLogger, getSupportedAssets, getVaults, getVaultsByConfig, getWithdrawSupportedAssets, initAmplifySDK, initializeCache, isCacheReady, refreshVaultCache, setLogLevel, setLogger, waitForCacheReady } from './chunk-MPCRFKSD.mjs';
|
|
7
7
|
//# sourceMappingURL=index.mjs.map
|
|
8
8
|
//# sourceMappingURL=index.mjs.map
|
package/dist/utils.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk3I3PYX2F_js = require('./chunk-3I3PYX2F.js');
|
|
4
|
-
var
|
|
4
|
+
var chunk2ZJWWK6D_js = require('./chunk-2ZJWWK6D.js');
|
|
5
5
|
|
|
6
6
|
// src/utils/time.ts
|
|
7
|
-
var calculateDeadline = (daysFromNow =
|
|
7
|
+
var calculateDeadline = (daysFromNow = chunk2ZJWWK6D_js.DEFAULT_DEADLINE) => {
|
|
8
8
|
const daysInSeconds = daysFromNow * 24 * 60 * 60;
|
|
9
9
|
const currentTimeStamp = Math.floor(Date.now() / 1e3);
|
|
10
10
|
const deadline = currentTimeStamp + daysInSeconds;
|
|
@@ -43,23 +43,23 @@ Object.defineProperty(exports, "calculateExpectedSharesMinted", {
|
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "DEFAULT_TIMEOUT", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk2ZJWWK6D_js.DEFAULT_TIMEOUT; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "clearChainsCache", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk2ZJWWK6D_js.clearChainsCache; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "createTimeoutSignal", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk2ZJWWK6D_js.createTimeoutSignal; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "getChainFromConfig", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk2ZJWWK6D_js.getChainFromConfig; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "toChainId", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk2ZJWWK6D_js.toChainId; }
|
|
63
63
|
});
|
|
64
64
|
exports.calculateDeadline = calculateDeadline;
|
|
65
65
|
exports.tryCatch = tryCatch;
|
package/dist/utils.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { RAY, WAD, bigIntToNumberAsString, calculateAtomicPrice, calculateExpectedSharesMinted } from './chunk-7RWWVUHP.mjs';
|
|
2
|
-
import { DEFAULT_DEADLINE } from './chunk-
|
|
3
|
-
export { DEFAULT_TIMEOUT, clearChainsCache, createTimeoutSignal, getChainFromConfig, toChainId } from './chunk-
|
|
2
|
+
import { DEFAULT_DEADLINE } from './chunk-MPCRFKSD.mjs';
|
|
3
|
+
export { DEFAULT_TIMEOUT, clearChainsCache, createTimeoutSignal, getChainFromConfig, toChainId } from './chunk-MPCRFKSD.mjs';
|
|
4
4
|
|
|
5
5
|
// src/utils/time.ts
|
|
6
6
|
var calculateDeadline = (daysFromNow = DEFAULT_DEADLINE) => {
|
package/dist/vaults.js
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkKTLGSVD6_js = require('./chunk-KTLGSVD6.js');
|
|
4
|
+
require('./chunk-XS4SELWC.js');
|
|
5
|
+
require('./chunk-D7EMZAOQ.js');
|
|
6
6
|
require('./chunk-3I3PYX2F.js');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-2ZJWWK6D.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "DepositAuthMethod", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkKTLGSVD6_js.DepositAuthMethod; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "PERMIT_TYPES", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkKTLGSVD6_js.PERMIT_TYPES; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "WithdrawAuthMethod", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkKTLGSVD6_js.WithdrawAuthMethod; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "isAlreadyApprovedAuth", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkKTLGSVD6_js.isAlreadyApprovedAuth; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "isApprovalAuth", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkKTLGSVD6_js.isApprovalAuth; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "isPermitAuth", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkKTLGSVD6_js.isPermitAuth; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "isWithdrawAlreadyApprovedAuth", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkKTLGSVD6_js.isWithdrawAlreadyApprovedAuth; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isWithdrawApprovalAuth", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkKTLGSVD6_js.isWithdrawApprovalAuth; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "parsePermitSignature", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkKTLGSVD6_js.parsePermitSignature; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "prepareApproveDepositTokenTxData", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkKTLGSVD6_js.prepareApproveDepositTokenTxData; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "prepareApproveWithdrawOrderTxData", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkKTLGSVD6_js.prepareApproveWithdrawOrderTxData; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "prepareCancelWithdrawOrderTxData", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkKTLGSVD6_js.prepareCancelWithdrawOrderTxData; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "prepareDeposit", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkKTLGSVD6_js.prepareDeposit; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "prepareDepositAuthorization", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkKTLGSVD6_js.prepareDepositAuthorization; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "prepareDepositPermitSignature", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkKTLGSVD6_js.prepareDepositPermitSignature; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "prepareDepositTxData", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkKTLGSVD6_js.prepareDepositTxData; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "prepareDepositWithPermitTxData", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkKTLGSVD6_js.prepareDepositWithPermitTxData; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "prepareWithdrawOrderTxData", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkKTLGSVD6_js.prepareWithdrawOrderTxData; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "prepareWithdrawal", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkKTLGSVD6_js.prepareWithdrawal; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "prepareWithdrawalAuthorization", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkKTLGSVD6_js.prepareWithdrawalAuthorization; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "toEthSignTypedDataV4", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkKTLGSVD6_js.toEthSignTypedDataV4; }
|
|
94
94
|
});
|
|
95
95
|
//# sourceMappingURL=vaults.js.map
|
|
96
96
|
//# sourceMappingURL=vaults.js.map
|