@paxoslabs/amplify-sdk 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chain-utils-BdJecHBA.d.mts → chain-utils-5r2UnCDS.d.mts} +47 -1
- package/dist/{chain-utils-BdJecHBA.d.ts → chain-utils-5r2UnCDS.d.ts} +47 -1
- package/dist/{chunk-5OK753GA.js → chunk-4NQPS3JC.js} +470 -358
- package/dist/chunk-4NQPS3JC.js.map +1 -0
- package/dist/chunk-6JLKHV6O.js +128 -0
- package/dist/chunk-6JLKHV6O.js.map +1 -0
- package/dist/{chunk-NNDY5TID.js → chunk-FHE43NKY.js} +12 -12
- package/dist/{chunk-NNDY5TID.js.map → chunk-FHE43NKY.js.map} +1 -1
- package/dist/chunk-GOJQYEJQ.js +3212 -0
- package/dist/chunk-GOJQYEJQ.js.map +1 -0
- package/dist/{chunk-HU5CTL4C.mjs → chunk-LMNADWTH.mjs} +364 -253
- package/dist/chunk-LMNADWTH.mjs.map +1 -0
- package/dist/chunk-ODXJYXUH.mjs +3168 -0
- package/dist/chunk-ODXJYXUH.mjs.map +1 -0
- package/dist/{chunk-QZHI2T7O.mjs → chunk-QMFYPHX5.mjs} +280 -47
- package/dist/chunk-QMFYPHX5.mjs.map +1 -0
- package/dist/{chunk-Q5FXJU5Y.mjs → chunk-UY2WD7MF.mjs} +3 -3
- package/dist/{chunk-Q5FXJU5Y.mjs.map → chunk-UY2WD7MF.mjs.map} +1 -1
- package/dist/chunk-WD6QFSXZ.js +701 -0
- package/dist/chunk-WD6QFSXZ.js.map +1 -0
- package/dist/chunk-Y5LBT2WT.mjs +118 -0
- package/dist/chunk-Y5LBT2WT.mjs.map +1 -0
- package/dist/core.d.mts +50 -7
- package/dist/core.d.ts +50 -7
- package/dist/core.js +32 -16
- package/dist/core.mjs +4 -4
- package/dist/display.d.mts +211 -2
- package/dist/display.d.ts +211 -2
- package/dist/display.js +26 -10
- package/dist/display.mjs +4 -4
- package/dist/{index-DXXA8gEA.d.mts → index-D8RtV9cB.d.mts} +498 -410
- package/dist/{index-aE5lTOUH.d.ts → index-ev_V5sjt.d.ts} +498 -410
- package/dist/index.d.mts +40 -5
- package/dist/index.d.ts +40 -5
- package/dist/index.js +80 -60
- package/dist/index.mjs +5 -5
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +7 -7
- package/dist/utils.mjs +2 -2
- package/dist/vaults.d.mts +2 -2
- package/dist/vaults.d.ts +2 -2
- package/dist/vaults.js +25 -25
- package/dist/vaults.mjs +4 -4
- package/package.json +1 -1
- package/dist/chunk-5OK753GA.js.map +0 -1
- package/dist/chunk-7JQQ2TH4.mjs +0 -1231
- package/dist/chunk-7JQQ2TH4.mjs.map +0 -1
- package/dist/chunk-HU5CTL4C.mjs.map +0 -1
- package/dist/chunk-QZHI2T7O.mjs.map +0 -1
- package/dist/chunk-SWUG4PTB.js +0 -464
- package/dist/chunk-SWUG4PTB.js.map +0 -1
- package/dist/chunk-WK7EJRBB.mjs +0 -1482
- package/dist/chunk-WK7EJRBB.mjs.map +0 -1
- package/dist/chunk-WYBYBPX5.js +0 -1518
- package/dist/chunk-WYBYBPX5.js.map +0 -1
- package/dist/chunk-ZKDXRGI5.js +0 -1239
- package/dist/chunk-ZKDXRGI5.js.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { GetMinimumMintParams, GetMinimumWithdrawalOrderSizeParams, GetVaultAPYParams, GetVaultTVLParams, GetWithdrawalFeeParams, GetWithdrawalRequestsParams, MinimumMintResult, MinimumWithdrawalOrderSizeResult, VaultAPYResult, VaultTVLResult, WithdrawalFeeResult, WithdrawalRequest, WithdrawalRequestStatus, WithdrawalRequestsResult, getMinimumMint, getMinimumWithdrawalOrderSize, getVaultAPY, getVaultTVL, getWithdrawalFee, getWithdrawalRequests } from './display.mjs';
|
|
1
|
+
export { CalculateDepositFeeParams, CurrentSupplyResult, GetCurrentSupplyParams, GetDepositCapParams, GetMinimumMintParams, GetMinimumWithdrawalOrderSizeParams, GetShareValueParams, GetVaultAPYParams, GetVaultTVLParams, GetWithdrawalFeeParams, GetWithdrawalRequestsParams, MinimumMintResult, MinimumWithdrawalOrderSizeResult, ShareValueResult, VaultAPYResult, VaultTVLResult, WithdrawalFeeResult, WithdrawalRequest, WithdrawalRequestStatus, WithdrawalRequestsResult, calculateDepositFee, getCurrentSupply, getDepositCap, getMinimumMint, getMinimumWithdrawalOrderSize, getShareValue, getVaultAPY, getVaultTVL, getWithdrawalFee, getWithdrawalRequests } from './display.mjs';
|
|
2
2
|
import { Address } from 'viem';
|
|
3
|
-
import { A as AmplifyVault, S as SupportedAsset, Y as YieldType, a as AssetFilterOptions, V as VaultFilterOptions, W as WithdrawSupportedAsset, C as ChainId } from './chain-utils-
|
|
4
|
-
export { b as APIError, E as EnterpriseConfig, d as
|
|
5
|
-
|
|
3
|
+
import { A as AmplifyVault, S as SupportedAsset, Y as YieldType, a as AssetFilterOptions, V as VaultFilterOptions, W as WithdrawSupportedAsset, C as ChainId } from './chain-utils-5r2UnCDS.mjs';
|
|
4
|
+
export { b as APIError, E as EnterpriseConfig, d as VaultDepositFees, e as VaultSLA, f as VaultSupportedAsset, h as VaultWithdrawFees } from './chain-utils-5r2UnCDS.mjs';
|
|
5
|
+
import { A as Attestation } from './index-D8RtV9cB.mjs';
|
|
6
|
+
export { a as AlreadyApprovedAuthorizationResult, b as ApprovalAuthorizationResult, c as ApproveDepositTokenTxData, d as ApproveWithdrawOrderTxData, C as CancelWithdrawOrderTxData, D as DepositAuthMethod, e as DepositAuthorizationResult, f as DepositTxData, g as DepositType, h as DepositWithPermitData, E as EIP712Domain, K as KytDepositTxData, i as KytDepositWithPermitData, P as PERMIT_TYPES, j as ParsedPermitSignature, k as PermitAuthorizationResult, l as PermitDepositResult, m as PermitSignatureData, n as PrepareCancelWithdrawOrderTxDataParams, o as PrepareDepositAuthorizationParams, p as PrepareDepositParams, q as PrepareDepositPermitSignatureParams, r as PrepareDepositResult, s as PrepareDepositWithPermitTxDataParams, t as PrepareWithdrawOrderTxDataParams, u as PrepareWithdrawalAuthorizationParams, v as PrepareWithdrawalParams, w as PrepareWithdrawalResult, S as StandardDepositResult, x as StandardDepositTxData, y as StandardDepositWithPermitData, U as UnencodedDepositWithPermitData, W as WithdrawAlreadyApprovedAuthorizationResult, z as WithdrawApprovalAuthorizationResult, B as WithdrawAuthMethod, F as WithdrawAuthorizationResult, G as WithdrawOrderTxData, H as isAlreadyApprovedAuth, I as isApprovalAuth, J as isKytDeposit, L as isPermitAuth, M as isStandardDeposit, N as isWithdrawAlreadyApprovedAuth, O as isWithdrawApprovalAuth, Q as parsePermitSignature, R as prepareApproveDepositTokenTxData, T as prepareApproveWithdrawOrderTxData, V as prepareCancelWithdrawOrderTxData, X as prepareDeposit, Y as prepareDepositAuthorization, Z as prepareDepositPermitSignature, _ as prepareDepositTxData, $ as prepareDepositWithPermitTxData, a0 as prepareWithdrawOrderTxData, a1 as prepareWithdrawal, a2 as prepareWithdrawalAuthorization, a3 as toEthSignTypedDataV4 } from './index-D8RtV9cB.mjs';
|
|
6
7
|
import 'viem/chains';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -75,6 +76,11 @@ declare class VaultCache {
|
|
|
75
76
|
* When non-null, a refresh is in progress and callers should await this promise
|
|
76
77
|
*/
|
|
77
78
|
private refreshPromise;
|
|
79
|
+
/**
|
|
80
|
+
* Unix timestamp (milliseconds) when current refresh started.
|
|
81
|
+
* Used to detect stale refresh promises.
|
|
82
|
+
*/
|
|
83
|
+
private refreshStartedAt;
|
|
78
84
|
/**
|
|
79
85
|
* Creates a new VaultCache instance
|
|
80
86
|
*
|
|
@@ -409,6 +415,35 @@ declare function getVaultsByConfig(params?: GetVaultsByConfigParams): Promise<Am
|
|
|
409
415
|
*/
|
|
410
416
|
declare function getWithdrawSupportedAssets(): Promise<WithdrawSupportedAsset[]>;
|
|
411
417
|
|
|
418
|
+
/**
|
|
419
|
+
* KYT (Know Your Transaction) API Client
|
|
420
|
+
*
|
|
421
|
+
* Calls the backend-v2 KYT attestation endpoint to obtain Predicate
|
|
422
|
+
* compliance attestations for deposit transactions.
|
|
423
|
+
*
|
|
424
|
+
* @module client/kyt-client
|
|
425
|
+
*/
|
|
426
|
+
|
|
427
|
+
interface FetchKytAttestationParams {
|
|
428
|
+
/** Destination contract address (e.g. the DCD contract receiving the deposit) */
|
|
429
|
+
to: Address;
|
|
430
|
+
/** User wallet address initiating the deposit */
|
|
431
|
+
from: Address;
|
|
432
|
+
/** Numeric chain ID where the deposit occurs */
|
|
433
|
+
chainId: number;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Fetches a KYT compliance attestation from backend-v2.
|
|
437
|
+
*
|
|
438
|
+
* Calls `POST /v2/kytAttestation` with the deposit's `to`, `from`, and `chain`
|
|
439
|
+
* parameters. The backend forwards the request to the Predicate API
|
|
440
|
+
* and returns the attestation if the transaction is compliant.
|
|
441
|
+
*
|
|
442
|
+
* @throws {APIError} If the request fails, the user is non-compliant (403),
|
|
443
|
+
* or the response is malformed.
|
|
444
|
+
*/
|
|
445
|
+
declare function fetchKytAttestation(params: FetchKytAttestationParams): Promise<Attestation>;
|
|
446
|
+
|
|
412
447
|
/**
|
|
413
448
|
* Telemetry Type Definitions
|
|
414
449
|
*
|
|
@@ -861,4 +896,4 @@ declare const isWithdrawalSpendApproved: ({ vaultName, chainId, wantAssetAddress
|
|
|
861
896
|
error: null;
|
|
862
897
|
}>;
|
|
863
898
|
|
|
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 };
|
|
899
|
+
export { AmplifyVault, AssetFilterOptions, Attestation, type FetchKytAttestationParams, type GetVaultsByConfigParams, type InitErrorCode, LogLevel, type Logger, type RequestHeaders, type SDKConfig, type SDKInitOptions, SupportedAsset, UnauthorizedVaultAccessError, VaultFilterOptions, VaultNotFoundByAddressError, VaultNotFoundByNameError, WithdrawSupportedAsset, YieldType, fetchKytAttestation, 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
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { GetMinimumMintParams, GetMinimumWithdrawalOrderSizeParams, GetVaultAPYParams, GetVaultTVLParams, GetWithdrawalFeeParams, GetWithdrawalRequestsParams, MinimumMintResult, MinimumWithdrawalOrderSizeResult, VaultAPYResult, VaultTVLResult, WithdrawalFeeResult, WithdrawalRequest, WithdrawalRequestStatus, WithdrawalRequestsResult, getMinimumMint, getMinimumWithdrawalOrderSize, getVaultAPY, getVaultTVL, getWithdrawalFee, getWithdrawalRequests } from './display.js';
|
|
1
|
+
export { CalculateDepositFeeParams, CurrentSupplyResult, GetCurrentSupplyParams, GetDepositCapParams, GetMinimumMintParams, GetMinimumWithdrawalOrderSizeParams, GetShareValueParams, GetVaultAPYParams, GetVaultTVLParams, GetWithdrawalFeeParams, GetWithdrawalRequestsParams, MinimumMintResult, MinimumWithdrawalOrderSizeResult, ShareValueResult, VaultAPYResult, VaultTVLResult, WithdrawalFeeResult, WithdrawalRequest, WithdrawalRequestStatus, WithdrawalRequestsResult, calculateDepositFee, getCurrentSupply, getDepositCap, getMinimumMint, getMinimumWithdrawalOrderSize, getShareValue, getVaultAPY, getVaultTVL, getWithdrawalFee, getWithdrawalRequests } from './display.js';
|
|
2
2
|
import { Address } from 'viem';
|
|
3
|
-
import { A as AmplifyVault, S as SupportedAsset, Y as YieldType, a as AssetFilterOptions, V as VaultFilterOptions, W as WithdrawSupportedAsset, C as ChainId } from './chain-utils-
|
|
4
|
-
export { b as APIError, E as EnterpriseConfig, d as
|
|
5
|
-
|
|
3
|
+
import { A as AmplifyVault, S as SupportedAsset, Y as YieldType, a as AssetFilterOptions, V as VaultFilterOptions, W as WithdrawSupportedAsset, C as ChainId } from './chain-utils-5r2UnCDS.js';
|
|
4
|
+
export { b as APIError, E as EnterpriseConfig, d as VaultDepositFees, e as VaultSLA, f as VaultSupportedAsset, h as VaultWithdrawFees } from './chain-utils-5r2UnCDS.js';
|
|
5
|
+
import { A as Attestation } from './index-ev_V5sjt.js';
|
|
6
|
+
export { a as AlreadyApprovedAuthorizationResult, b as ApprovalAuthorizationResult, c as ApproveDepositTokenTxData, d as ApproveWithdrawOrderTxData, C as CancelWithdrawOrderTxData, D as DepositAuthMethod, e as DepositAuthorizationResult, f as DepositTxData, g as DepositType, h as DepositWithPermitData, E as EIP712Domain, K as KytDepositTxData, i as KytDepositWithPermitData, P as PERMIT_TYPES, j as ParsedPermitSignature, k as PermitAuthorizationResult, l as PermitDepositResult, m as PermitSignatureData, n as PrepareCancelWithdrawOrderTxDataParams, o as PrepareDepositAuthorizationParams, p as PrepareDepositParams, q as PrepareDepositPermitSignatureParams, r as PrepareDepositResult, s as PrepareDepositWithPermitTxDataParams, t as PrepareWithdrawOrderTxDataParams, u as PrepareWithdrawalAuthorizationParams, v as PrepareWithdrawalParams, w as PrepareWithdrawalResult, S as StandardDepositResult, x as StandardDepositTxData, y as StandardDepositWithPermitData, U as UnencodedDepositWithPermitData, W as WithdrawAlreadyApprovedAuthorizationResult, z as WithdrawApprovalAuthorizationResult, B as WithdrawAuthMethod, F as WithdrawAuthorizationResult, G as WithdrawOrderTxData, H as isAlreadyApprovedAuth, I as isApprovalAuth, J as isKytDeposit, L as isPermitAuth, M as isStandardDeposit, N as isWithdrawAlreadyApprovedAuth, O as isWithdrawApprovalAuth, Q as parsePermitSignature, R as prepareApproveDepositTokenTxData, T as prepareApproveWithdrawOrderTxData, V as prepareCancelWithdrawOrderTxData, X as prepareDeposit, Y as prepareDepositAuthorization, Z as prepareDepositPermitSignature, _ as prepareDepositTxData, $ as prepareDepositWithPermitTxData, a0 as prepareWithdrawOrderTxData, a1 as prepareWithdrawal, a2 as prepareWithdrawalAuthorization, a3 as toEthSignTypedDataV4 } from './index-ev_V5sjt.js';
|
|
6
7
|
import 'viem/chains';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -75,6 +76,11 @@ declare class VaultCache {
|
|
|
75
76
|
* When non-null, a refresh is in progress and callers should await this promise
|
|
76
77
|
*/
|
|
77
78
|
private refreshPromise;
|
|
79
|
+
/**
|
|
80
|
+
* Unix timestamp (milliseconds) when current refresh started.
|
|
81
|
+
* Used to detect stale refresh promises.
|
|
82
|
+
*/
|
|
83
|
+
private refreshStartedAt;
|
|
78
84
|
/**
|
|
79
85
|
* Creates a new VaultCache instance
|
|
80
86
|
*
|
|
@@ -409,6 +415,35 @@ declare function getVaultsByConfig(params?: GetVaultsByConfigParams): Promise<Am
|
|
|
409
415
|
*/
|
|
410
416
|
declare function getWithdrawSupportedAssets(): Promise<WithdrawSupportedAsset[]>;
|
|
411
417
|
|
|
418
|
+
/**
|
|
419
|
+
* KYT (Know Your Transaction) API Client
|
|
420
|
+
*
|
|
421
|
+
* Calls the backend-v2 KYT attestation endpoint to obtain Predicate
|
|
422
|
+
* compliance attestations for deposit transactions.
|
|
423
|
+
*
|
|
424
|
+
* @module client/kyt-client
|
|
425
|
+
*/
|
|
426
|
+
|
|
427
|
+
interface FetchKytAttestationParams {
|
|
428
|
+
/** Destination contract address (e.g. the DCD contract receiving the deposit) */
|
|
429
|
+
to: Address;
|
|
430
|
+
/** User wallet address initiating the deposit */
|
|
431
|
+
from: Address;
|
|
432
|
+
/** Numeric chain ID where the deposit occurs */
|
|
433
|
+
chainId: number;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Fetches a KYT compliance attestation from backend-v2.
|
|
437
|
+
*
|
|
438
|
+
* Calls `POST /v2/kytAttestation` with the deposit's `to`, `from`, and `chain`
|
|
439
|
+
* parameters. The backend forwards the request to the Predicate API
|
|
440
|
+
* and returns the attestation if the transaction is compliant.
|
|
441
|
+
*
|
|
442
|
+
* @throws {APIError} If the request fails, the user is non-compliant (403),
|
|
443
|
+
* or the response is malformed.
|
|
444
|
+
*/
|
|
445
|
+
declare function fetchKytAttestation(params: FetchKytAttestationParams): Promise<Attestation>;
|
|
446
|
+
|
|
412
447
|
/**
|
|
413
448
|
* Telemetry Type Definitions
|
|
414
449
|
*
|
|
@@ -861,4 +896,4 @@ declare const isWithdrawalSpendApproved: ({ vaultName, chainId, wantAssetAddress
|
|
|
861
896
|
error: null;
|
|
862
897
|
}>;
|
|
863
898
|
|
|
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 };
|
|
899
|
+
export { AmplifyVault, AssetFilterOptions, Attestation, type FetchKytAttestationParams, type GetVaultsByConfigParams, type InitErrorCode, LogLevel, type Logger, type RequestHeaders, type SDKConfig, type SDKInitOptions, SupportedAsset, UnauthorizedVaultAccessError, VaultFilterOptions, VaultNotFoundByAddressError, VaultNotFoundByNameError, WithdrawSupportedAsset, YieldType, fetchKytAttestation, 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,233 +1,253 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var chunk4NQPS3JC_js = require('./chunk-4NQPS3JC.js');
|
|
4
|
+
var chunkWD6QFSXZ_js = require('./chunk-WD6QFSXZ.js');
|
|
5
|
+
var chunk6JLKHV6O_js = require('./chunk-6JLKHV6O.js');
|
|
6
|
+
require('./chunk-FHE43NKY.js');
|
|
7
7
|
require('./chunk-TNL23CO2.js');
|
|
8
|
-
var
|
|
8
|
+
var chunkGOJQYEJQ_js = require('./chunk-GOJQYEJQ.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 chunk4NQPS3JC_js.DepositAuthMethod; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "DepositType", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk4NQPS3JC_js.DepositType; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "PERMIT_TYPES", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk4NQPS3JC_js.PERMIT_TYPES; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "WithdrawAuthMethod", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk4NQPS3JC_js.WithdrawAuthMethod; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "fetchKytAttestation", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunk4NQPS3JC_js.fetchKytAttestation; }
|
|
27
31
|
});
|
|
28
32
|
Object.defineProperty(exports, "isAlreadyApprovedAuth", {
|
|
29
33
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk4NQPS3JC_js.isAlreadyApprovedAuth; }
|
|
31
35
|
});
|
|
32
36
|
Object.defineProperty(exports, "isApprovalAuth", {
|
|
33
37
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk4NQPS3JC_js.isApprovalAuth; }
|
|
35
39
|
});
|
|
36
40
|
Object.defineProperty(exports, "isDepositSpendApproved", {
|
|
37
41
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk4NQPS3JC_js.isDepositSpendApproved; }
|
|
39
43
|
});
|
|
40
44
|
Object.defineProperty(exports, "isKytDeposit", {
|
|
41
45
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk4NQPS3JC_js.isKytDeposit; }
|
|
43
47
|
});
|
|
44
48
|
Object.defineProperty(exports, "isPermitAuth", {
|
|
45
49
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk4NQPS3JC_js.isPermitAuth; }
|
|
47
51
|
});
|
|
48
52
|
Object.defineProperty(exports, "isStandardDeposit", {
|
|
49
53
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk4NQPS3JC_js.isStandardDeposit; }
|
|
51
55
|
});
|
|
52
56
|
Object.defineProperty(exports, "isWithdrawAlreadyApprovedAuth", {
|
|
53
57
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk4NQPS3JC_js.isWithdrawAlreadyApprovedAuth; }
|
|
55
59
|
});
|
|
56
60
|
Object.defineProperty(exports, "isWithdrawApprovalAuth", {
|
|
57
61
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk4NQPS3JC_js.isWithdrawApprovalAuth; }
|
|
59
63
|
});
|
|
60
64
|
Object.defineProperty(exports, "isWithdrawalSpendApproved", {
|
|
61
65
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk4NQPS3JC_js.isWithdrawalSpendApproved; }
|
|
63
67
|
});
|
|
64
68
|
Object.defineProperty(exports, "parsePermitSignature", {
|
|
65
69
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk4NQPS3JC_js.parsePermitSignature; }
|
|
67
71
|
});
|
|
68
72
|
Object.defineProperty(exports, "prepareApproveDepositTokenTxData", {
|
|
69
73
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk4NQPS3JC_js.prepareApproveDepositTokenTxData; }
|
|
71
75
|
});
|
|
72
76
|
Object.defineProperty(exports, "prepareApproveWithdrawOrderTxData", {
|
|
73
77
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk4NQPS3JC_js.prepareApproveWithdrawOrderTxData; }
|
|
75
79
|
});
|
|
76
80
|
Object.defineProperty(exports, "prepareCancelWithdrawOrderTxData", {
|
|
77
81
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk4NQPS3JC_js.prepareCancelWithdrawOrderTxData; }
|
|
79
83
|
});
|
|
80
84
|
Object.defineProperty(exports, "prepareDeposit", {
|
|
81
85
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk4NQPS3JC_js.prepareDeposit; }
|
|
83
87
|
});
|
|
84
88
|
Object.defineProperty(exports, "prepareDepositAuthorization", {
|
|
85
89
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk4NQPS3JC_js.prepareDepositAuthorization; }
|
|
87
91
|
});
|
|
88
92
|
Object.defineProperty(exports, "prepareDepositPermitSignature", {
|
|
89
93
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk4NQPS3JC_js.prepareDepositPermitSignature; }
|
|
91
95
|
});
|
|
92
96
|
Object.defineProperty(exports, "prepareDepositTxData", {
|
|
93
97
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk4NQPS3JC_js.prepareDepositTxData; }
|
|
95
99
|
});
|
|
96
100
|
Object.defineProperty(exports, "prepareDepositWithPermitTxData", {
|
|
97
101
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk4NQPS3JC_js.prepareDepositWithPermitTxData; }
|
|
99
103
|
});
|
|
100
104
|
Object.defineProperty(exports, "prepareWithdrawOrderTxData", {
|
|
101
105
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk4NQPS3JC_js.prepareWithdrawOrderTxData; }
|
|
103
107
|
});
|
|
104
108
|
Object.defineProperty(exports, "prepareWithdrawal", {
|
|
105
109
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk4NQPS3JC_js.prepareWithdrawal; }
|
|
107
111
|
});
|
|
108
112
|
Object.defineProperty(exports, "prepareWithdrawalAuthorization", {
|
|
109
113
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk4NQPS3JC_js.prepareWithdrawalAuthorization; }
|
|
111
115
|
});
|
|
112
116
|
Object.defineProperty(exports, "toEthSignTypedDataV4", {
|
|
113
117
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk4NQPS3JC_js.toEthSignTypedDataV4; }
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "calculateDepositFee", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () { return chunkWD6QFSXZ_js.calculateDepositFee; }
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(exports, "getCurrentSupply", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
get: function () { return chunkWD6QFSXZ_js.getCurrentSupply; }
|
|
127
|
+
});
|
|
128
|
+
Object.defineProperty(exports, "getDepositCap", {
|
|
129
|
+
enumerable: true,
|
|
130
|
+
get: function () { return chunkWD6QFSXZ_js.getDepositCap; }
|
|
115
131
|
});
|
|
116
132
|
Object.defineProperty(exports, "getMinimumMint", {
|
|
117
133
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkWD6QFSXZ_js.getMinimumMint; }
|
|
119
135
|
});
|
|
120
136
|
Object.defineProperty(exports, "getMinimumWithdrawalOrderSize", {
|
|
121
137
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkWD6QFSXZ_js.getMinimumWithdrawalOrderSize; }
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "getShareValue", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function () { return chunkWD6QFSXZ_js.getShareValue; }
|
|
123
143
|
});
|
|
124
144
|
Object.defineProperty(exports, "getVaultAPY", {
|
|
125
145
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkWD6QFSXZ_js.getVaultAPY; }
|
|
127
147
|
});
|
|
128
148
|
Object.defineProperty(exports, "getVaultTVL", {
|
|
129
149
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkWD6QFSXZ_js.getVaultTVL; }
|
|
131
151
|
});
|
|
132
152
|
Object.defineProperty(exports, "getWithdrawalFee", {
|
|
133
153
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkWD6QFSXZ_js.getWithdrawalFee; }
|
|
135
155
|
});
|
|
136
156
|
Object.defineProperty(exports, "getWithdrawalRequests", {
|
|
137
157
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkWD6QFSXZ_js.getWithdrawalRequests; }
|
|
139
159
|
});
|
|
140
160
|
Object.defineProperty(exports, "UnauthorizedVaultAccessError", {
|
|
141
161
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunk6JLKHV6O_js.UnauthorizedVaultAccessError; }
|
|
143
163
|
});
|
|
144
164
|
Object.defineProperty(exports, "VaultNotFoundByAddressError", {
|
|
145
165
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunk6JLKHV6O_js.VaultNotFoundByAddressError; }
|
|
147
167
|
});
|
|
148
168
|
Object.defineProperty(exports, "VaultNotFoundByNameError", {
|
|
149
169
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunk6JLKHV6O_js.VaultNotFoundByNameError; }
|
|
151
171
|
});
|
|
152
172
|
Object.defineProperty(exports, "isVaultNotFoundByAddressError", {
|
|
153
173
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk6JLKHV6O_js.isVaultNotFoundByAddressError; }
|
|
155
175
|
});
|
|
156
176
|
Object.defineProperty(exports, "isVaultNotFoundByNameError", {
|
|
157
177
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunk6JLKHV6O_js.isVaultNotFoundByNameError; }
|
|
159
179
|
});
|
|
160
180
|
Object.defineProperty(exports, "APIError", {
|
|
161
181
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkGOJQYEJQ_js.APIError; }
|
|
163
183
|
});
|
|
164
184
|
Object.defineProperty(exports, "LogLevel", {
|
|
165
185
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkGOJQYEJQ_js.LogLevel; }
|
|
167
187
|
});
|
|
168
188
|
Object.defineProperty(exports, "YieldType", {
|
|
169
189
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkGOJQYEJQ_js.YieldType; }
|
|
171
191
|
});
|
|
172
192
|
Object.defineProperty(exports, "findVaultByConfig", {
|
|
173
193
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkGOJQYEJQ_js.findVaultByConfig; }
|
|
175
195
|
});
|
|
176
196
|
Object.defineProperty(exports, "getAssetsFromCache", {
|
|
177
197
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkGOJQYEJQ_js.getAssetsFromCache; }
|
|
179
199
|
});
|
|
180
200
|
Object.defineProperty(exports, "getCache", {
|
|
181
201
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkGOJQYEJQ_js.getCache; }
|
|
183
203
|
});
|
|
184
204
|
Object.defineProperty(exports, "getLogger", {
|
|
185
205
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkGOJQYEJQ_js.getLogger; }
|
|
187
207
|
});
|
|
188
208
|
Object.defineProperty(exports, "getSupportedAssets", {
|
|
189
209
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkGOJQYEJQ_js.getSupportedAssets; }
|
|
191
211
|
});
|
|
192
212
|
Object.defineProperty(exports, "getVaults", {
|
|
193
213
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkGOJQYEJQ_js.getVaults; }
|
|
195
215
|
});
|
|
196
216
|
Object.defineProperty(exports, "getVaultsByConfig", {
|
|
197
217
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkGOJQYEJQ_js.getVaultsByConfig; }
|
|
199
219
|
});
|
|
200
220
|
Object.defineProperty(exports, "getWithdrawSupportedAssets", {
|
|
201
221
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkGOJQYEJQ_js.getWithdrawSupportedAssets; }
|
|
203
223
|
});
|
|
204
224
|
Object.defineProperty(exports, "initAmplifySDK", {
|
|
205
225
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkGOJQYEJQ_js.initAmplifySDK; }
|
|
207
227
|
});
|
|
208
228
|
Object.defineProperty(exports, "initializeCache", {
|
|
209
229
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkGOJQYEJQ_js.initializeCache; }
|
|
211
231
|
});
|
|
212
232
|
Object.defineProperty(exports, "isCacheReady", {
|
|
213
233
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkGOJQYEJQ_js.isCacheReady; }
|
|
215
235
|
});
|
|
216
236
|
Object.defineProperty(exports, "refreshVaultCache", {
|
|
217
237
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkGOJQYEJQ_js.refreshVaultCache; }
|
|
219
239
|
});
|
|
220
240
|
Object.defineProperty(exports, "setLogLevel", {
|
|
221
241
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkGOJQYEJQ_js.setLogLevel; }
|
|
223
243
|
});
|
|
224
244
|
Object.defineProperty(exports, "setLogger", {
|
|
225
245
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkGOJQYEJQ_js.setLogger; }
|
|
227
247
|
});
|
|
228
248
|
Object.defineProperty(exports, "waitForCacheReady", {
|
|
229
249
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkGOJQYEJQ_js.waitForCacheReady; }
|
|
231
251
|
});
|
|
232
252
|
//# sourceMappingURL=index.js.map
|
|
233
253
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { DepositAuthMethod, DepositType, PERMIT_TYPES, WithdrawAuthMethod, isAlreadyApprovedAuth, isApprovalAuth, isDepositSpendApproved, isKytDeposit, isPermitAuth, isStandardDeposit, 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, DepositType, PERMIT_TYPES, WithdrawAuthMethod, fetchKytAttestation, isAlreadyApprovedAuth, isApprovalAuth, isDepositSpendApproved, isKytDeposit, isPermitAuth, isStandardDeposit, isWithdrawAlreadyApprovedAuth, isWithdrawApprovalAuth, isWithdrawalSpendApproved, parsePermitSignature, prepareApproveDepositTokenTxData, prepareApproveWithdrawOrderTxData, prepareCancelWithdrawOrderTxData, prepareDeposit, prepareDepositAuthorization, prepareDepositPermitSignature, prepareDepositTxData, prepareDepositWithPermitTxData, prepareWithdrawOrderTxData, prepareWithdrawal, prepareWithdrawalAuthorization, toEthSignTypedDataV4 } from './chunk-LMNADWTH.mjs';
|
|
2
|
+
export { calculateDepositFee, getCurrentSupply, getDepositCap, getMinimumMint, getMinimumWithdrawalOrderSize, getShareValue, getVaultAPY, getVaultTVL, getWithdrawalFee, getWithdrawalRequests } from './chunk-QMFYPHX5.mjs';
|
|
3
|
+
export { UnauthorizedVaultAccessError, VaultNotFoundByAddressError, VaultNotFoundByNameError, isVaultNotFoundByAddressError, isVaultNotFoundByNameError } from './chunk-Y5LBT2WT.mjs';
|
|
4
|
+
import './chunk-UY2WD7MF.mjs';
|
|
5
5
|
import './chunk-6CU533DM.mjs';
|
|
6
|
-
export { APIError, LogLevel, YieldType, findVaultByConfig, getAssetsFromCache, getCache, getLogger, getSupportedAssets, getVaults, getVaultsByConfig, getWithdrawSupportedAssets, initAmplifySDK, initializeCache, isCacheReady, refreshVaultCache, setLogLevel, setLogger, waitForCacheReady } from './chunk-
|
|
6
|
+
export { APIError, LogLevel, YieldType, findVaultByConfig, getAssetsFromCache, getCache, getLogger, getSupportedAssets, getVaults, getVaultsByConfig, getWithdrawSupportedAssets, initAmplifySDK, initializeCache, isCacheReady, refreshVaultCache, setLogLevel, setLogger, waitForCacheReady } from './chunk-ODXJYXUH.mjs';
|
|
7
7
|
//# sourceMappingURL=index.mjs.map
|
|
8
8
|
//# sourceMappingURL=index.mjs.map
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ChainId, c as clearChainsCache, g as getChainFromConfig, t as toChainId } from './chain-utils-
|
|
1
|
+
export { C as ChainId, c as clearChainsCache, g as getChainFromConfig, t as toChainId } from './chain-utils-5r2UnCDS.mjs';
|
|
2
2
|
import 'viem/chains';
|
|
3
3
|
import 'viem';
|
|
4
4
|
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ChainId, c as clearChainsCache, g as getChainFromConfig, t as toChainId } from './chain-utils-
|
|
1
|
+
export { C as ChainId, c as clearChainsCache, g as getChainFromConfig, t as toChainId } from './chain-utils-5r2UnCDS.js';
|
|
2
2
|
import 'viem/chains';
|
|
3
3
|
import 'viem';
|
|
4
4
|
|
package/dist/utils.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkTNL23CO2_js = require('./chunk-TNL23CO2.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkGOJQYEJQ_js = require('./chunk-GOJQYEJQ.js');
|
|
5
5
|
|
|
6
6
|
// src/utils/time.ts
|
|
7
|
-
var calculateDeadline = (daysFromNow =
|
|
7
|
+
var calculateDeadline = (daysFromNow = chunkGOJQYEJQ_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 chunkGOJQYEJQ_js.DEFAULT_TIMEOUT; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "clearChainsCache", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkGOJQYEJQ_js.clearChainsCache; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "createTimeoutSignal", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkGOJQYEJQ_js.createTimeoutSignal; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "getChainFromConfig", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkGOJQYEJQ_js.getChainFromConfig; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "toChainId", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkGOJQYEJQ_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-6CU533DM.mjs';
|
|
2
|
-
import { DEFAULT_DEADLINE } from './chunk-
|
|
3
|
-
export { DEFAULT_TIMEOUT, clearChainsCache, createTimeoutSignal, getChainFromConfig, toChainId } from './chunk-
|
|
2
|
+
import { DEFAULT_DEADLINE } from './chunk-ODXJYXUH.mjs';
|
|
3
|
+
export { DEFAULT_TIMEOUT, clearChainsCache, createTimeoutSignal, getChainFromConfig, toChainId } from './chunk-ODXJYXUH.mjs';
|
|
4
4
|
|
|
5
5
|
// src/utils/time.ts
|
|
6
6
|
var calculateDeadline = (daysFromNow = DEFAULT_DEADLINE) => {
|
package/dist/vaults.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as AlreadyApprovedAuthorizationResult, b as ApprovalAuthorizationResult, c as ApproveDepositTokenTxData, d as ApproveWithdrawOrderTxData, C as CancelWithdrawOrderTxData, D as DepositAuthMethod, e as DepositAuthorizationResult, f as DepositTxData, E as EIP712Domain, P as PERMIT_TYPES, j as ParsedPermitSignature, k as PermitAuthorizationResult, l as PermitDepositResult, m as PermitSignatureData, a4 as PrepareApproveDepositTokenTxParams, a5 as PrepareApproveWithdrawOrderTxDataParams, n as PrepareCancelWithdrawOrderTxDataParams, o as PrepareDepositAuthorizationParams, p as PrepareDepositParams, q as PrepareDepositPermitSignatureParams, r as PrepareDepositResult, a6 as PrepareDepositTxDataParams, s as PrepareDepositWithPermitTxDataParams, t as PrepareWithdrawOrderTxDataParams, u as PrepareWithdrawalAuthorizationParams, v as PrepareWithdrawalParams, w as PrepareWithdrawalResult, S as StandardDepositResult, U as UnencodedDepositWithPermitData, W as WithdrawAlreadyApprovedAuthorizationResult, z as WithdrawApprovalAuthorizationResult, B as WithdrawAuthMethod, F as WithdrawAuthorizationResult, G as WithdrawOrderTxData, H as isAlreadyApprovedAuth, I as isApprovalAuth, L as isPermitAuth, N as isWithdrawAlreadyApprovedAuth, O as isWithdrawApprovalAuth, Q as parsePermitSignature, R as prepareApproveDepositTokenTxData, T as prepareApproveWithdrawOrderTxData, V as prepareCancelWithdrawOrderTxData, X as prepareDeposit, Y as prepareDepositAuthorization, Z as prepareDepositPermitSignature, _ as prepareDepositTxData, $ as prepareDepositWithPermitTxData, a0 as prepareWithdrawOrderTxData, a1 as prepareWithdrawal, a2 as prepareWithdrawalAuthorization, a3 as toEthSignTypedDataV4 } from './index-D8RtV9cB.mjs';
|
|
2
2
|
import 'viem';
|
|
3
|
-
import './chain-utils-
|
|
3
|
+
import './chain-utils-5r2UnCDS.mjs';
|
|
4
4
|
import 'viem/chains';
|
package/dist/vaults.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as AlreadyApprovedAuthorizationResult, b as ApprovalAuthorizationResult, c as ApproveDepositTokenTxData, d as ApproveWithdrawOrderTxData, C as CancelWithdrawOrderTxData, D as DepositAuthMethod, e as DepositAuthorizationResult, f as DepositTxData, E as EIP712Domain, P as PERMIT_TYPES, j as ParsedPermitSignature, k as PermitAuthorizationResult, l as PermitDepositResult, m as PermitSignatureData, a4 as PrepareApproveDepositTokenTxParams, a5 as PrepareApproveWithdrawOrderTxDataParams, n as PrepareCancelWithdrawOrderTxDataParams, o as PrepareDepositAuthorizationParams, p as PrepareDepositParams, q as PrepareDepositPermitSignatureParams, r as PrepareDepositResult, a6 as PrepareDepositTxDataParams, s as PrepareDepositWithPermitTxDataParams, t as PrepareWithdrawOrderTxDataParams, u as PrepareWithdrawalAuthorizationParams, v as PrepareWithdrawalParams, w as PrepareWithdrawalResult, S as StandardDepositResult, U as UnencodedDepositWithPermitData, W as WithdrawAlreadyApprovedAuthorizationResult, z as WithdrawApprovalAuthorizationResult, B as WithdrawAuthMethod, F as WithdrawAuthorizationResult, G as WithdrawOrderTxData, H as isAlreadyApprovedAuth, I as isApprovalAuth, L as isPermitAuth, N as isWithdrawAlreadyApprovedAuth, O as isWithdrawApprovalAuth, Q as parsePermitSignature, R as prepareApproveDepositTokenTxData, T as prepareApproveWithdrawOrderTxData, V as prepareCancelWithdrawOrderTxData, X as prepareDeposit, Y as prepareDepositAuthorization, Z as prepareDepositPermitSignature, _ as prepareDepositTxData, $ as prepareDepositWithPermitTxData, a0 as prepareWithdrawOrderTxData, a1 as prepareWithdrawal, a2 as prepareWithdrawalAuthorization, a3 as toEthSignTypedDataV4 } from './index-ev_V5sjt.js';
|
|
2
2
|
import 'viem';
|
|
3
|
-
import './chain-utils-
|
|
3
|
+
import './chain-utils-5r2UnCDS.js';
|
|
4
4
|
import 'viem/chains';
|