@paxoslabs/amplify-sdk 0.4.3-alpha.0 → 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/{chain-utils-CbVFMjwR.d.mts → chain-utils-CpOJcWig.d.mts} +36 -29
- package/dist/{chain-utils-CbVFMjwR.d.ts → chain-utils-CpOJcWig.d.ts} +36 -29
- package/dist/{chunk-R5G6F7RP.js → chunk-2ZJWWK6D.js} +96 -51
- package/dist/chunk-2ZJWWK6D.js.map +1 -0
- package/dist/{chunk-L3X5UBG6.mjs → chunk-B5BII2XH.mjs} +8 -8
- package/dist/{chunk-L3X5UBG6.mjs.map → chunk-B5BII2XH.mjs.map} +1 -1
- package/dist/{chunk-EHRZFLWL.js → chunk-D7EMZAOQ.js} +12 -12
- package/dist/{chunk-EHRZFLWL.js.map → chunk-D7EMZAOQ.js.map} +1 -1
- package/dist/{chunk-GSYGURYO.mjs → chunk-GJPTAY5T.mjs} +5 -5
- package/dist/{chunk-GSYGURYO.mjs.map → chunk-GJPTAY5T.mjs.map} +1 -1
- package/dist/{chunk-ZJBJFFBQ.js → chunk-KTLGSVD6.js} +111 -111
- package/dist/{chunk-ZJBJFFBQ.js.map → chunk-KTLGSVD6.js.map} +1 -1
- package/dist/{chunk-7RAFG3NI.mjs → chunk-MPCRFKSD.mjs} +95 -50
- package/dist/chunk-MPCRFKSD.mjs.map +1 -0
- package/dist/{chunk-WHL5LQRP.js → chunk-N5UKVLSS.js} +62 -62
- package/dist/{chunk-WHL5LQRP.js.map → chunk-N5UKVLSS.js.map} +1 -1
- package/dist/{chunk-HBFBGNRH.mjs → chunk-SXIBMN7X.mjs} +3 -3
- package/dist/{chunk-HBFBGNRH.mjs.map → chunk-SXIBMN7X.mjs.map} +1 -1
- package/dist/{chunk-4OEL42W2.mjs → chunk-XA653JS3.mjs} +9 -5
- package/dist/chunk-XA653JS3.mjs.map +1 -0
- package/dist/{chunk-E2HBXOZY.js → chunk-XS4SELWC.js} +16 -12
- package/dist/chunk-XS4SELWC.js.map +1 -0
- package/dist/core.d.mts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +16 -16
- package/dist/core.mjs +4 -4
- package/dist/display.d.mts +1 -1
- package/dist/display.d.ts +1 -1
- package/dist/display.js +10 -10
- package/dist/display.mjs +4 -4
- package/dist/index.d.mts +21 -20
- package/dist/index.d.ts +21 -20
- package/dist/index.js +63 -63
- 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 +1 -1
- package/dist/vaults.d.ts +1 -1
- package/dist/vaults.js +25 -25
- package/dist/vaults.mjs +4 -4
- package/package.json +1 -1
- package/dist/chunk-4OEL42W2.mjs.map +0 -1
- package/dist/chunk-7RAFG3NI.mjs.map +0 -1
- package/dist/chunk-E2HBXOZY.js.map +0 -1
- package/dist/chunk-R5G6F7RP.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2ZJWWK6D_js = require('./chunk-2ZJWWK6D.js');
|
|
4
4
|
|
|
5
5
|
// src/types/withdraw-errors.ts
|
|
6
6
|
var WithdrawError = class _WithdrawError extends Error {
|
|
@@ -43,19 +43,19 @@ function isVaultNotFoundByNameError(error) {
|
|
|
43
43
|
// src/client/resolve-vault.ts
|
|
44
44
|
async function resolveVault(params) {
|
|
45
45
|
const { vaultName, assetAddress, chainId, callerEndpoint } = params;
|
|
46
|
-
if (!
|
|
47
|
-
throw new
|
|
46
|
+
if (!chunk2ZJWWK6D_js.isValidAddress(assetAddress)) {
|
|
47
|
+
throw new chunk2ZJWWK6D_js.APIError(
|
|
48
48
|
`Invalid assetAddress: ${assetAddress}. Must be a valid Ethereum address.`,
|
|
49
49
|
{ endpoint: callerEndpoint }
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
if (!
|
|
53
|
-
throw new
|
|
52
|
+
if (!chunk2ZJWWK6D_js.isValidChainId(chainId)) {
|
|
53
|
+
throw new chunk2ZJWWK6D_js.APIError(
|
|
54
54
|
`Invalid chainId: ${chainId}. Must be a positive integer.`,
|
|
55
55
|
{ endpoint: callerEndpoint }
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
|
-
const cache =
|
|
58
|
+
const cache = chunk2ZJWWK6D_js.getCache();
|
|
59
59
|
if (cache.isEmpty() || cache.isExpired()) {
|
|
60
60
|
await cache.refresh();
|
|
61
61
|
}
|
|
@@ -67,14 +67,18 @@ async function resolveVault(params) {
|
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
69
|
if (vault.chainId !== chainId) {
|
|
70
|
-
throw new
|
|
70
|
+
throw new chunk2ZJWWK6D_js.APIError(
|
|
71
71
|
`Vault "${vaultName}" is on chain ${vault.chainId}, but chainId ${chainId} was requested.`,
|
|
72
72
|
{ endpoint: callerEndpoint }
|
|
73
73
|
);
|
|
74
74
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
const matchedAsset = vault.supportedAssets.find(
|
|
76
|
+
(a) => a.address.toLowerCase() === assetAddress.toLowerCase()
|
|
77
|
+
);
|
|
78
|
+
if (!matchedAsset) {
|
|
79
|
+
const supported = vault.supportedAssets.map((a) => `${a.address} (${a.symbol})`).join(", ");
|
|
80
|
+
throw new chunk2ZJWWK6D_js.APIError(
|
|
81
|
+
`Vault "${vaultName}" supports assets [${supported}], but asset ${assetAddress} was requested.`,
|
|
78
82
|
{ endpoint: callerEndpoint }
|
|
79
83
|
);
|
|
80
84
|
}
|
|
@@ -1215,5 +1219,5 @@ exports.WithdrawQueueAbi = WithdrawQueueAbi;
|
|
|
1215
1219
|
exports.isVaultNotFoundByAddressError = isVaultNotFoundByAddressError;
|
|
1216
1220
|
exports.isVaultNotFoundByNameError = isVaultNotFoundByNameError;
|
|
1217
1221
|
exports.resolveVault = resolveVault;
|
|
1218
|
-
//# sourceMappingURL=chunk-
|
|
1219
|
-
//# sourceMappingURL=chunk-
|
|
1222
|
+
//# sourceMappingURL=chunk-XS4SELWC.js.map
|
|
1223
|
+
//# sourceMappingURL=chunk-XS4SELWC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/types/withdraw-errors.ts","../src/client/resolve-vault.ts","../src/abi/withdraw-queue-abi.ts"],"names":["isValidAddress","APIError","isValidChainId","getCache"],"mappings":";;;;;AAeO,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsB,KAAA,CAAM;AAAA,EAYvC,WAAA,CACE,OAAA,EACA,IAAA,EACA,OAAA,EACA;AACA,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,IAAA,CAAK,IAAA,GAAO,eAAA;AACZ,IAAA,IAAA,CAAK,IAAA,GAAO,IAAA;AACZ,IAAA,IAAA,CAAK,OAAA,GAAU,OAAA;AAGf,IAAA,MAAA,CAAO,cAAA,CAAe,IAAA,EAAM,cAAA,CAAc,SAAS,CAAA;AAAA,EACrD;AACF,CAAA;AA4QO,IAAM,2BAAA,GAAN,MAAM,4BAAA,SAAoC,aAAA,CAAc;AAAA,EAC7D,WAAA,CAAY,SAAiB,OAAA,EAAmC;AAC9D,IAAA,KAAA,CAAM,OAAA,EAAS,8BAA8B,OAAO,CAAA;AACpD,IAAA,IAAA,CAAK,IAAA,GAAO,6BAAA;AACZ,IAAA,MAAA,CAAO,cAAA,CAAe,IAAA,EAAM,4BAAA,CAA4B,SAAS,CAAA;AAAA,EACnE;AACF;AAEO,IAAM,wBAAA,GAAN,MAAM,yBAAA,SAAiC,aAAA,CAAc;AAAA,EAC1D,WAAA,CAAY,SAAiB,OAAA,EAAmC;AAC9D,IAAA,KAAA,CAAM,OAAA,EAAS,2BAA2B,OAAO,CAAA;AACjD,IAAA,IAAA,CAAK,IAAA,GAAO,0BAAA;AACZ,IAAA,MAAA,CAAO,cAAA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AAM,gCAAA;AAAA,IACN,SAAS,EAAC;AAAA,IACV,eAAA,EAAiB,YAAA;AAAA,IACjB,IAAA,EAAM;AAAA,GACR;AAAA,EACA;AAAA,IACE,MAAA,EAAQ,CAAC,EAAE,YAAA,EAAc,WAAW,IAAA,EAAM,UAAA,EAAY,IAAA,EAAM,SAAA,EAAW,CAAA;AAAA,IACvE,IAAA,EAAM,UAAA;AAAA,IACN,SAAS,EAAC;AAAA,IACV,eAAA,EAAiB,YAAA;AAAA,IACjB,IAAA,EAAM;AAAA,GACR;AAAA,EACA;AAAA,IACE,MAAA,EAAQ;AAAA,MACN;AAAA,QACE,YAAA,EAAc,oBAAA;AAAA,QACd,IAAA,EAAM,cAAA;AAAA,QACN,IAAA,EAAM;AAAA;AACR,KACF;AAAA,IACA,IAAA,EAAM,cAAA;AAAA,IACN,SAAS,EAAC;AAAA,IACV,eAAA,EAAiB,YAAA;AAAA,IACjB,IAAA,EAAM;AAAA,GACR;AAAA,EACA;AAAA,IACE,MAAA,EAAQ,CAAC,EAAE,YAAA,EAAc,WAAW,IAAA,EAAM,aAAA,EAAe,IAAA,EAAM,SAAA,EAAW,CAAA;AAAA,IAC1E,IAAA,EAAM,6BAAA;AAAA,IACN,SAAS,EAAC;AAAA,IACV,eAAA,EAAiB,YAAA;AAAA,IACjB,IAAA,EAAM;AAAA,GACR;AAAA,EACA;AAAA,IACE,MAAA,EAAQ;AAAA,MACN,EAAE,YAAA,EAAc,SAAA,EAAW,IAAA,EAAM,IAAA,EAAM,MAAM,SAAA,EAAU;AAAA,MACvD,EAAE,YAAA,EAAc,SAAA,EAAW,IAAA,EAAM,SAAA,EAAW,MAAM,SAAA;AAAU,KAC9D;AAAA,IACA,IAAA,EAAM,SAAA;AAAA,IACN,SAAS,EAAC;AAAA,IACV,eAAA,EAAiB,YAAA;AAAA,IACjB,IAAA,EAAM;AAAA;AAEV","file":"chunk-XS4SELWC.js","sourcesContent":["/**\n * Withdraw operation error types\n *\n * Defines all error classes and error scenarios specific to the withdraw flow.\n * Provides type-safe error handling with clear error messages for different failure modes.\n *\n * @module types/withdraw-errors\n */\n\n/**\n * Base class for all withdraw-related errors\n *\n * Extends Error with additional context information for better error handling\n * and debugging in consuming applications.\n */\nexport class WithdrawError extends Error {\n /**\n * Error code for programmatic handling\n * @example \"VAULT_NOT_FOUND\", \"INVALID_ADDRESS\", \"INSUFFICIENT_BALANCE\"\n */\n readonly code: string;\n\n /**\n * Additional context data for debugging\n */\n readonly context?: Record<string, unknown>;\n\n constructor(\n message: string,\n code: string,\n context?: Record<string, unknown>\n ) {\n super(message);\n this.name = \"WithdrawError\";\n this.code = code;\n this.context = context;\n\n // Maintain proper prototype chain for instanceof checks\n Object.setPrototypeOf(this, WithdrawError.prototype);\n }\n}\n\n/**\n * Thrown when vault lookup fails\n *\n * Occurs when no vault matches the provided (yieldType, wantToken, chainId)\n * combination in the vault cache.\n *\n * @example\n * ```typescript\n * throw new VaultNotFoundError(\n * \"No vault found matching yieldType 'UNKNOWN', token '0x...', and chain 1\",\n * { yieldType: \"UNKNOWN\", token: \"0x...\", chainId: 1 }\n * );\n * ```\n */\nexport class VaultNotFoundError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"VAULT_NOT_FOUND\", context);\n this.name = \"VaultNotFoundError\";\n Object.setPrototypeOf(this, VaultNotFoundError.prototype);\n }\n}\n\n/**\n * Thrown when multiple vaults match the lookup criteria\n *\n * Data integrity error indicating vault cache is corrupted or misconfigured.\n * Should not occur in production with well-formed vault data.\n *\n * @example\n * ```typescript\n * throw new MultipleVaultsFoundError(\n * \"Data integrity error: multiple vaults match yieldType 'CORE', token '0x...', chain 1\",\n * { count: 2, yieldType: \"CORE\" }\n * );\n * ```\n */\nexport class MultipleVaultsFoundError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"MULTIPLE_VAULTS_FOUND\", context);\n this.name = \"MultipleVaultsFoundError\";\n Object.setPrototypeOf(this, MultipleVaultsFoundError.prototype);\n }\n}\n\n/**\n * Thrown when recipient address is invalid\n *\n * Occurs when recipientAddress is:\n * - Not a valid Ethereum address format (0x + 40 hex chars)\n * - The zero address (0x0000...)\n * - Missing or empty\n *\n * @example\n * ```typescript\n * throw new InvalidAddressError(\n * \"Invalid recipient address: must be valid Ethereum address\",\n * { address: \"0xinvalid\", reason: \"not hex format\" }\n * );\n * ```\n */\nexport class InvalidAddressError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"INVALID_ADDRESS\", context);\n this.name = \"InvalidAddressError\";\n Object.setPrototypeOf(this, InvalidAddressError.prototype);\n }\n}\n\n/**\n * Thrown when share amount is invalid\n *\n * Occurs when shareAmount is:\n * - Not a valid number string\n * - Zero or negative\n * - Cannot be converted to BigInt\n *\n * @example\n * ```typescript\n * throw new InvalidShareAmountError(\n * \"Share amount must be greater than zero\",\n * { amount: \"0\", reason: \"zero not allowed\" }\n * );\n * ```\n */\nexport class InvalidShareAmountError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"INVALID_SHARE_AMOUNT\", context);\n this.name = \"InvalidShareAmountError\";\n Object.setPrototypeOf(this, InvalidShareAmountError.prototype);\n }\n}\n\n/**\n * Thrown when slippage value is invalid\n *\n * Occurs when slippage is:\n * - Negative\n * - Greater than 10000 (100%)\n * - Not an integer\n *\n * @example\n * ```typescript\n * throw new InvalidSlippageError(\n * \"Invalid slippage value: must be 0-10000 basis points\",\n * { slippage: -100, reason: \"negative not allowed\" }\n * );\n * ```\n */\nexport class InvalidSlippageError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"INVALID_SLIPPAGE\", context);\n this.name = \"InvalidSlippageError\";\n Object.setPrototypeOf(this, InvalidSlippageError.prototype);\n }\n}\n\n/**\n * Thrown when yield type is invalid\n *\n * Occurs when yieldType is:\n * - Not defined in YieldType enum\n * - Empty or null\n * - Case-sensitive mismatch\n *\n * @example\n * ```typescript\n * throw new InvalidYieldTypeError(\n * \"Invalid yield type: 'UNKNOWN' is not supported\",\n * { yieldType: \"UNKNOWN\", supportedTypes: [\"CORE\", \"TREASURY\", \"FRONTIER\"] }\n * );\n * ```\n */\nexport class InvalidYieldTypeError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"INVALID_YIELD_TYPE\", context);\n this.name = \"InvalidYieldTypeError\";\n Object.setPrototypeOf(this, InvalidYieldTypeError.prototype);\n }\n}\n\n/**\n * Thrown when chain ID is invalid\n *\n * Occurs when chainId is:\n * - Not a positive integer\n * - Not in list of supported chains\n * - Mismatches vault's supported networks\n *\n * @example\n * ```typescript\n * throw new InvalidChainIdError(\n * \"Chain ID 999999 is not supported\",\n * { chainId: 999999, supportedChains: [1, 288, 1329] }\n * );\n * ```\n */\nexport class InvalidChainIdError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"INVALID_CHAIN_ID\", context);\n this.name = \"InvalidChainIdError\";\n Object.setPrototypeOf(this, InvalidChainIdError.prototype);\n }\n}\n\n/**\n * Thrown when transaction data cannot be constructed\n *\n * Occurs during transaction data assembly if:\n * - Required vault addresses are missing\n * - ABI is unavailable\n * - Function encoding fails\n *\n * @example\n * ```typescript\n * throw new TransactionDataError(\n * \"Failed to construct transaction data: missing Teller address\",\n * { reason: \"missing address\", field: \"tellerAddress\" }\n * );\n * ```\n */\nexport class TransactionDataError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"TRANSACTION_DATA_ERROR\", context);\n this.name = \"TransactionDataError\";\n Object.setPrototypeOf(this, TransactionDataError.prototype);\n }\n}\n\n/**\n * Thrown when vault cache is empty or uninitialized\n *\n * Occurs when attempting to lookup vaults before cache is populated.\n * Consumer should call getVaults() or getSupportedAssets() first.\n *\n * @example\n * ```typescript\n * throw new VaultCacheEmptyError(\n * \"Vault cache is empty. Call getVaults() or getSupportedAssets() first.\",\n * { reason: \"cache not initialized\" }\n * );\n * ```\n */\nexport class VaultCacheEmptyError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"VAULT_CACHE_EMPTY\", context);\n this.name = \"VaultCacheEmptyError\";\n Object.setPrototypeOf(this, VaultCacheEmptyError.prototype);\n }\n}\n\n/**\n * Type guard for WithdrawError\n *\n * Safely check if an error is a WithdrawError\n *\n * @example\n * ```typescript\n * try {\n * await prepareWithdrawOrderTxData(params);\n * } catch (error) {\n * if (isWithdrawError(error)) {\n * console.error(`Withdraw error [${error.code}]: ${error.message}`);\n * }\n * }\n * ```\n */\nexport function isWithdrawError(error: unknown): error is WithdrawError {\n return error instanceof WithdrawError;\n}\n\n/**\n * Type guard for vault not found errors\n */\nexport function isVaultNotFoundError(\n error: unknown\n): error is VaultNotFoundError {\n return error instanceof VaultNotFoundError;\n}\n\n/**\n * Type guard for invalid address errors\n */\nexport function isInvalidAddressError(\n error: unknown\n): error is InvalidAddressError {\n return error instanceof InvalidAddressError;\n}\n\n/**\n * Type guard for invalid share amount errors\n */\nexport function isInvalidShareAmountError(\n error: unknown\n): error is InvalidShareAmountError {\n return error instanceof InvalidShareAmountError;\n}\n\n/**\n * Type guard for invalid slippage errors\n */\nexport function isInvalidSlippageError(\n error: unknown\n): error is InvalidSlippageError {\n return error instanceof InvalidSlippageError;\n}\n\nexport class VaultNotFoundByAddressError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"VAULT_NOT_FOUND_BY_ADDRESS\", context);\n this.name = \"VaultNotFoundByAddressError\";\n Object.setPrototypeOf(this, VaultNotFoundByAddressError.prototype);\n }\n}\n\nexport class VaultNotFoundByNameError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"VAULT_NOT_FOUND_BY_NAME\", context);\n this.name = \"VaultNotFoundByNameError\";\n Object.setPrototypeOf(this, VaultNotFoundByNameError.prototype);\n }\n}\n\nexport class UnauthorizedVaultAccessError extends WithdrawError {\n constructor(message: string, context?: Record<string, unknown>) {\n super(message, \"UNAUTHORIZED_VAULT_ACCESS\", context);\n this.name = \"UnauthorizedVaultAccessError\";\n Object.setPrototypeOf(this, UnauthorizedVaultAccessError.prototype);\n }\n}\n\nexport function isVaultNotFoundByAddressError(\n error: unknown\n): error is VaultNotFoundByAddressError {\n return error instanceof VaultNotFoundByAddressError;\n}\n\nexport function isVaultNotFoundByNameError(\n error: unknown\n): error is VaultNotFoundByNameError {\n return error instanceof VaultNotFoundByNameError;\n}\n\n/**\n * Helper to format error message for logging\n *\n * @param error - Any error to format\n * @returns Human-readable error message with context if available\n */\nexport function formatWithdrawError(error: unknown): string {\n if (isWithdrawError(error)) {\n const context =\n error.context && Object.keys(error.context).length > 0\n ? ` | context: ${JSON.stringify(error.context)}`\n : \"\";\n return `[${error.code}] ${error.message}${context}`;\n }\n if (error instanceof Error) {\n return error.message;\n }\n return String(error);\n}\n","import type { Address } from \"viem\";\nimport type { AmplifyVault } from \"../types/amplify-sdk-api\";\nimport { APIError, isValidAddress, isValidChainId } from \"../types/amplify-sdk-api\";\nimport { VaultNotFoundByNameError } from \"../types/withdraw-errors\";\nimport { getCache } from \"./amplify-sdk-client\";\n\n/**\n * Parameters for resolving a vault by name, chain, and asset.\n *\n * All three fields are required and validated against the resolved vault\n * to ensure the calldata is unambiguous — wrong chain or wrong asset will\n * throw an `APIError` before any transaction is prepared.\n *\n * @property {string} vaultName - Human-readable vault name (e.g. \"Amplify USDC Core\")\n * @property {Address} assetAddress - Token contract address for the deposit or want asset\n * @property {number} chainId - Chain ID where the vault is deployed\n * @property {string} callerEndpoint - Caller name included in error messages for tracing\n */\nexport interface ResolveVaultParams {\n vaultName: string;\n assetAddress: Address;\n chainId: number;\n callerEndpoint: string;\n}\n\n/**\n * Resolves a vault by name and validates it against the provided chain ID\n * and asset address.\n *\n * Throws an `APIError` when:\n * - `assetAddress` or `chainId` fail basic format validation\n * - No vault exists with the given `vaultName`\n * - The resolved vault is on a different chain than `chainId`\n * - The resolved vault's supported asset does not match `assetAddress`\n */\nexport async function resolveVault(\n params: ResolveVaultParams\n): Promise<AmplifyVault> {\n const { vaultName, assetAddress, chainId, callerEndpoint } = params;\n\n if (!isValidAddress(assetAddress)) {\n throw new APIError(\n `Invalid assetAddress: ${assetAddress}. Must be a valid Ethereum address.`,\n { endpoint: callerEndpoint }\n );\n }\n\n if (!isValidChainId(chainId)) {\n throw new APIError(\n `Invalid chainId: ${chainId}. Must be a positive integer.`,\n { endpoint: callerEndpoint }\n );\n }\n\n const cache = getCache();\n if (cache.isEmpty() || cache.isExpired()) {\n await cache.refresh();\n }\n\n const vault = cache.getVaultByName(vaultName);\n if (!vault) {\n throw new VaultNotFoundByNameError(\n `No vault found with name \"${vaultName}\". The vault may not exist or may not be available for your organization.`,\n { vaultName, endpoint: callerEndpoint }\n );\n }\n\n if (vault.chainId !== chainId) {\n throw new APIError(\n `Vault \"${vaultName}\" is on chain ${vault.chainId}, but chainId ${chainId} was requested.`,\n { endpoint: callerEndpoint }\n );\n }\n\n const matchedAsset = vault.supportedAssets.find(\n (a) => a.address.toLowerCase() === assetAddress.toLowerCase()\n );\n if (!matchedAsset) {\n const supported = vault.supportedAssets\n .map((a) => `${a.address} (${a.symbol})`)\n .join(\", \");\n throw new APIError(\n `Vault \"${vaultName}\" supports assets [${supported}], but asset ${assetAddress} was requested.`,\n { endpoint: callerEndpoint }\n );\n }\n\n return vault;\n}\n","export const WithdrawQueueAbi = [\n {\n inputs: [\n { internalType: \"string\", name: \"_name\", type: \"string\" },\n { internalType: \"string\", name: \"_symbol\", type: \"string\" },\n { internalType: \"address\", name: \"_feeRecipient\", type: \"address\" },\n {\n internalType: \"contract TellerWithMultiAssetSupport\",\n name: \"_tellerWithMultiAssetSupport\",\n type: \"address\",\n },\n {\n internalType: \"contract IFeeModule\",\n name: \"_feeModule\",\n type: \"address\",\n },\n { internalType: \"uint256\", name: \"_minimumOrderSize\", type: \"uint256\" },\n { internalType: \"address\", name: \"_owner\", type: \"address\" },\n ],\n stateMutability: \"nonpayable\",\n type: \"constructor\",\n },\n { inputs: [], name: \"ECDSAInvalidSignature\", type: \"error\" },\n {\n inputs: [{ internalType: \"uint256\", name: \"length\", type: \"uint256\" }],\n name: \"ECDSAInvalidSignatureLength\",\n type: \"error\",\n },\n {\n inputs: [{ internalType: \"bytes32\", name: \"s\", type: \"bytes32\" }],\n name: \"ECDSAInvalidSignatureS\",\n type: \"error\",\n },\n { inputs: [], name: \"ERC721EnumerableForbiddenBatchMint\", type: \"error\" },\n {\n inputs: [\n { internalType: \"address\", name: \"sender\", type: \"address\" },\n { internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" },\n { internalType: \"address\", name: \"owner\", type: \"address\" },\n ],\n name: \"ERC721IncorrectOwner\",\n type: \"error\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"operator\", type: \"address\" },\n { internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" },\n ],\n name: \"ERC721InsufficientApproval\",\n type: \"error\",\n },\n {\n inputs: [{ internalType: \"address\", name: \"approver\", type: \"address\" }],\n name: \"ERC721InvalidApprover\",\n type: \"error\",\n },\n {\n inputs: [{ internalType: \"address\", name: \"operator\", type: \"address\" }],\n name: \"ERC721InvalidOperator\",\n type: \"error\",\n },\n {\n inputs: [{ internalType: \"address\", name: \"owner\", type: \"address\" }],\n name: \"ERC721InvalidOwner\",\n type: \"error\",\n },\n {\n inputs: [{ internalType: \"address\", name: \"receiver\", type: \"address\" }],\n name: \"ERC721InvalidReceiver\",\n type: \"error\",\n },\n {\n inputs: [{ internalType: \"address\", name: \"sender\", type: \"address\" }],\n name: \"ERC721InvalidSender\",\n type: \"error\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" }],\n name: \"ERC721NonexistentToken\",\n type: \"error\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"owner\", type: \"address\" },\n { internalType: \"uint256\", name: \"index\", type: \"uint256\" },\n ],\n name: \"ERC721OutOfBoundsIndex\",\n type: \"error\",\n },\n {\n inputs: [{ internalType: \"address\", name: \"token\", type: \"address\" }],\n name: \"SafeERC20FailedOperation\",\n type: \"error\",\n },\n { inputs: [], name: \"Unauthorized\", type: \"error\" },\n { inputs: [], name: \"ZeroAddress\", type: \"error\" },\n {\n inputs: [{ internalType: \"uint256\", name: \"orderIndex\", type: \"uint256\" }],\n name: \"OrderAlreadyProcessed\",\n type: \"error\",\n },\n {\n inputs: [\n { internalType: \"uint256\", name: \"orderIndex\", type: \"uint256\" },\n {\n internalType: \"enum WithdrawQueue.OrderType\",\n name: \"currentStatus\",\n type: \"uint8\",\n },\n ],\n name: \"InvalidOrderType\",\n type: \"error\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"orderIndex\", type: \"uint256\" }],\n name: \"InvalidOrderIndex\",\n type: \"error\",\n },\n {\n inputs: [\n { internalType: \"uint256\", name: \"amount\", type: \"uint256\" },\n { internalType: \"uint256\", name: \"minimum\", type: \"uint256\" },\n ],\n name: \"AmountBelowMinimum\",\n type: \"error\",\n },\n {\n inputs: [\n { internalType: \"uint256\", name: \"deadline\", type: \"uint256\" },\n { internalType: \"uint256\", name: \"currentTimestamp\", type: \"uint256\" },\n ],\n name: \"SignatureExpired\",\n type: \"error\",\n },\n {\n inputs: [\n { internalType: \"uint256\", name: \"ordersToProcess\", type: \"uint256\" },\n { internalType: \"uint256\", name: \"latestOrder\", type: \"uint256\" },\n ],\n name: \"NotEnoughOrdersToProcess\",\n type: \"error\",\n },\n {\n inputs: [\n { internalType: \"uint256\", name: \"ordersToProcess\", type: \"uint256\" },\n ],\n name: \"InvalidOrdersCount\",\n type: \"error\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"intendedDepositor\", type: \"address\" },\n { internalType: \"address\", name: \"depositor\", type: \"address\" },\n ],\n name: \"InvalidEip2612Signature\",\n type: \"error\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"intendedDepositor\", type: \"address\" },\n { internalType: \"address\", name: \"depositor\", type: \"address\" },\n ],\n name: \"InvalidDepositor\",\n type: \"error\",\n },\n { inputs: [], name: \"PermitFailedAndAllowanceTooLow\", type: \"error\" },\n { inputs: [], name: \"TellerVaultMissmatch\", type: \"error\" },\n {\n inputs: [\n { internalType: \"address\", name: \"attemptedToCancel\", type: \"address\" },\n { internalType: \"address\", name: \"orderOwner\", type: \"address\" },\n ],\n name: \"OnlyOrderOwnerCanCancel\",\n type: \"error\",\n },\n { inputs: [], name: \"QueueMustBeEmpty\", type: \"error\" },\n {\n inputs: [\n { internalType: \"contract IERC20\", name: \"asset\", type: \"address\" },\n ],\n name: \"AssetNotSupported\",\n type: \"error\",\n },\n { inputs: [], name: \"InvalidAssetsOut\", type: \"error\" },\n { inputs: [], name: \"EmptyArray\", type: \"error\" },\n {\n inputs: [\n { internalType: \"contract IERC20\", name: \"wantAsset\", type: \"address\" },\n { internalType: \"uint256\", name: \"expectedAssetsOut\", type: \"uint256\" },\n {\n internalType: \"uint256\",\n name: \"vaultBalanceOfWantAsset\",\n type: \"uint256\",\n },\n ],\n name: \"VaultInsufficientBalance\",\n type: \"error\",\n },\n { inputs: [], name: \"TellerIsPaused\", type: \"error\" },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"owner\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"approved\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"uint256\",\n name: \"tokenId\",\n type: \"uint256\",\n },\n ],\n name: \"Approval\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"owner\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"operator\",\n type: \"address\",\n },\n { indexed: false, internalType: \"bool\", name: \"approved\", type: \"bool\" },\n ],\n name: \"ApprovalForAll\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"user\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"newAuthority\",\n type: \"address\",\n },\n ],\n name: \"AuthorityUpdated\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"contract IFeeModule\",\n name: \"oldFeeModule\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"contract IFeeModule\",\n name: \"newFeeModule\",\n type: \"address\",\n },\n ],\n name: \"FeeModuleUpdated\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"oldFeeRecipient\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"newFeeRecipient\",\n type: \"address\",\n },\n ],\n name: \"FeeRecipientUpdated\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: false,\n internalType: \"uint256\",\n name: \"oldMinimum\",\n type: \"uint256\",\n },\n {\n indexed: false,\n internalType: \"uint256\",\n name: \"newMinimum\",\n type: \"uint256\",\n },\n ],\n name: \"MinimumOrderSizeUpdated\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"uint256\",\n name: \"orderIndex\",\n type: \"uint256\",\n },\n {\n components: [\n { internalType: \"uint256\", name: \"amountOffer\", type: \"uint256\" },\n {\n internalType: \"contract IERC20\",\n name: \"wantAsset\",\n type: \"address\",\n },\n { internalType: \"address\", name: \"refundReceiver\", type: \"address\" },\n {\n internalType: \"enum WithdrawQueue.OrderType\",\n name: \"orderType\",\n type: \"uint8\",\n },\n {\n internalType: \"bool\",\n name: \"didOrderFailTransfer\",\n type: \"bool\",\n },\n ],\n indexed: false,\n internalType: \"struct WithdrawQueue.Order\",\n name: \"order\",\n type: \"tuple\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"receiver\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"depositor\",\n type: \"address\",\n },\n {\n indexed: false,\n internalType: \"bool\",\n name: \"isSubmittedViaSignature\",\n type: \"bool\",\n },\n ],\n name: \"OrderSubmitted\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"uint256\",\n name: \"startIndex\",\n type: \"uint256\",\n },\n {\n indexed: true,\n internalType: \"uint256\",\n name: \"endIndex\",\n type: \"uint256\",\n },\n ],\n name: \"OrdersProcessedInRange\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"uint256\",\n name: \"orderIndex\",\n type: \"uint256\",\n },\n {\n components: [\n { internalType: \"uint256\", name: \"amountOffer\", type: \"uint256\" },\n {\n internalType: \"contract IERC20\",\n name: \"wantAsset\",\n type: \"address\",\n },\n { internalType: \"address\", name: \"refundReceiver\", type: \"address\" },\n {\n internalType: \"enum WithdrawQueue.OrderType\",\n name: \"orderType\",\n type: \"uint8\",\n },\n {\n internalType: \"bool\",\n name: \"didOrderFailTransfer\",\n type: \"bool\",\n },\n ],\n indexed: false,\n internalType: \"struct WithdrawQueue.Order\",\n name: \"order\",\n type: \"tuple\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"receiver\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"bool\",\n name: \"isForceProcessed\",\n type: \"bool\",\n },\n ],\n name: \"OrderProcessed\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"uint256\",\n name: \"orderIndex\",\n type: \"uint256\",\n },\n {\n components: [\n { internalType: \"uint256\", name: \"amountOffer\", type: \"uint256\" },\n {\n internalType: \"contract IERC20\",\n name: \"wantAsset\",\n type: \"address\",\n },\n { internalType: \"address\", name: \"refundReceiver\", type: \"address\" },\n {\n internalType: \"enum WithdrawQueue.OrderType\",\n name: \"orderType\",\n type: \"uint8\",\n },\n {\n internalType: \"bool\",\n name: \"didOrderFailTransfer\",\n type: \"bool\",\n },\n ],\n indexed: false,\n internalType: \"struct WithdrawQueue.Order\",\n name: \"order\",\n type: \"tuple\",\n },\n ],\n name: \"OrderRefunded\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"uint256\",\n name: \"orderIndex\",\n type: \"uint256\",\n },\n {\n indexed: true,\n internalType: \"bool\",\n name: \"isMarkedByUser\",\n type: \"bool\",\n },\n ],\n name: \"OrderMarkedForRefund\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"user\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"address\",\n name: \"newOwner\",\n type: \"address\",\n },\n ],\n name: \"OwnershipTransferred\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"contract TellerWithMultiAssetSupport\",\n name: \"oldTeller\",\n type: \"address\",\n },\n {\n indexed: true,\n internalType: \"contract TellerWithMultiAssetSupport\",\n name: \"newTeller\",\n type: \"address\",\n },\n ],\n name: \"TellerUpdated\",\n type: \"event\",\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: \"address\",\n name: \"from\",\n type: \"address\",\n },\n { indexed: true, internalType: \"address\", name: \"to\", type: \"address\" },\n {\n indexed: true,\n internalType: \"uint256\",\n name: \"tokenId\",\n type: \"uint256\",\n },\n ],\n name: \"Transfer\",\n type: \"event\",\n },\n {\n inputs: [],\n name: \"CANCEL_ORDER_TYPEHASH\",\n outputs: [{ internalType: \"bytes32\", name: \"\", type: \"bytes32\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"authority\",\n outputs: [\n { internalType: \"contract Authority\", name: \"\", type: \"address\" },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"address\", name: \"owner\", type: \"address\" }],\n name: \"balanceOf\",\n outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" }],\n name: \"ownerOf\",\n outputs: [{ internalType: \"address\", name: \"\", type: \"address\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"orderIndex\", type: \"uint256\" }],\n name: \"cancelOrder\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"uint256\", name: \"orderIndex\", type: \"uint256\" },\n { internalType: \"uint256\", name: \"deadline\", type: \"uint256\" },\n { internalType: \"bytes\", name: \"cancelSignature\", type: \"bytes\" },\n ],\n name: \"cancelOrderWithSignature\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"feeModule\",\n outputs: [\n { internalType: \"contract IFeeModule\", name: \"\", type: \"address\" },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"feeRecipient\",\n outputs: [{ internalType: \"address\", name: \"\", type: \"address\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"orderIndex\", type: \"uint256\" }],\n name: \"forceProcess\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"uint256[]\", name: \"orderIndices\", type: \"uint256[]\" },\n ],\n name: \"forceProcessOrders\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"orderIndex\", type: \"uint256\" }],\n name: \"getOrderStatus\",\n outputs: [\n {\n internalType: \"enum WithdrawQueue.OrderStatus\",\n name: \"\",\n type: \"uint8\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" }],\n name: \"getApproved\",\n outputs: [{ internalType: \"address\", name: \"\", type: \"address\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"lastProcessedOrder\",\n outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"latestOrder\",\n outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"contract IERC20\", name: \"token\", type: \"address\" },\n { internalType: \"uint256\", name: \"amount\", type: \"uint256\" },\n { internalType: \"address\", name: \"receiver\", type: \"address\" },\n ],\n name: \"manageERC20\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"minimumOrderSize\",\n outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"name\",\n outputs: [{ internalType: \"string\", name: \"\", type: \"string\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"address\", name: \"\", type: \"address\" }],\n name: \"nonces\",\n outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"offerAsset\",\n outputs: [{ internalType: \"contract IERC20\", name: \"\", type: \"address\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"owner\",\n outputs: [{ internalType: \"address\", name: \"\", type: \"address\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n name: \"orderAtQueueIndex\",\n outputs: [\n {\n components: [\n { internalType: \"uint256\", name: \"amountOffer\", type: \"uint256\" },\n {\n internalType: \"contract IERC20\",\n name: \"wantAsset\",\n type: \"address\",\n },\n { internalType: \"address\", name: \"refundReceiver\", type: \"address\" },\n {\n internalType: \"enum WithdrawQueue.OrderType\",\n name: \"orderType\",\n type: \"uint8\",\n },\n {\n internalType: \"bool\",\n name: \"didOrderFailTransfer\",\n type: \"bool\",\n },\n ],\n internalType: \"struct WithdrawQueue.Order\",\n name: \"\",\n type: \"tuple\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"owner\", type: \"address\" },\n { internalType: \"address\", name: \"operator\", type: \"address\" },\n ],\n name: \"isApprovedForAll\",\n outputs: [{ internalType: \"bool\", name: \"\", type: \"bool\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"orderIndex\", type: \"uint256\" }],\n name: \"refundOrder\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"uint256[]\", name: \"orderIndices\", type: \"uint256[]\" },\n ],\n name: \"refundOrders\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"uint256\", name: \"ordersToProcess\", type: \"uint256\" },\n ],\n name: \"processOrders\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n components: [\n { internalType: \"uint256\", name: \"amountOffer\", type: \"uint256\" },\n {\n internalType: \"contract IERC20\",\n name: \"wantAsset\",\n type: \"address\",\n },\n {\n internalType: \"address\",\n name: \"intendedDepositor\",\n type: \"address\",\n },\n { internalType: \"address\", name: \"receiver\", type: \"address\" },\n { internalType: \"address\", name: \"refundReceiver\", type: \"address\" },\n {\n components: [\n {\n internalType: \"enum WithdrawQueue.ApprovalMethod\",\n name: \"approvalMethod\",\n type: \"uint8\",\n },\n { internalType: \"uint8\", name: \"approvalV\", type: \"uint8\" },\n { internalType: \"bytes32\", name: \"approvalR\", type: \"bytes32\" },\n { internalType: \"bytes32\", name: \"approvalS\", type: \"bytes32\" },\n {\n internalType: \"bool\",\n name: \"submitWithSignature\",\n type: \"bool\",\n },\n { internalType: \"uint256\", name: \"deadline\", type: \"uint256\" },\n {\n internalType: \"bytes\",\n name: \"eip2612Signature\",\n type: \"bytes\",\n },\n ],\n internalType: \"struct WithdrawQueue.SignatureParams\",\n name: \"signatureParams\",\n type: \"tuple\",\n },\n ],\n internalType: \"struct WithdrawQueue.SubmitOrderParams\",\n name: \"params\",\n type: \"tuple\",\n },\n ],\n name: \"submitOrder\",\n outputs: [{ internalType: \"uint256\", name: \"orderIndex\", type: \"uint256\" }],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n components: [\n { internalType: \"uint256\", name: \"amountOffer\", type: \"uint256\" },\n {\n internalType: \"contract IERC20\",\n name: \"wantAsset\",\n type: \"address\",\n },\n {\n internalType: \"address\",\n name: \"intendedDepositor\",\n type: \"address\",\n },\n { internalType: \"address\", name: \"receiver\", type: \"address\" },\n { internalType: \"address\", name: \"refundReceiver\", type: \"address\" },\n {\n components: [\n {\n internalType: \"enum WithdrawQueue.ApprovalMethod\",\n name: \"approvalMethod\",\n type: \"uint8\",\n },\n { internalType: \"uint8\", name: \"approvalV\", type: \"uint8\" },\n { internalType: \"bytes32\", name: \"approvalR\", type: \"bytes32\" },\n { internalType: \"bytes32\", name: \"approvalS\", type: \"bytes32\" },\n {\n internalType: \"bool\",\n name: \"submitWithSignature\",\n type: \"bool\",\n },\n { internalType: \"uint256\", name: \"deadline\", type: \"uint256\" },\n {\n internalType: \"bytes\",\n name: \"eip2612Signature\",\n type: \"bytes\",\n },\n ],\n internalType: \"struct WithdrawQueue.SignatureParams\",\n name: \"signatureParams\",\n type: \"tuple\",\n },\n ],\n internalType: \"struct WithdrawQueue.SubmitOrderParams\",\n name: \"params\",\n type: \"tuple\",\n },\n { internalType: \"uint256\", name: \"ordersToProcess\", type: \"uint256\" },\n ],\n name: \"submitOrderAndProcess\",\n outputs: [{ internalType: \"uint256\", name: \"orderIndex\", type: \"uint256\" }],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n components: [\n { internalType: \"uint256\", name: \"amountOffer\", type: \"uint256\" },\n {\n internalType: \"contract IERC20\",\n name: \"wantAsset\",\n type: \"address\",\n },\n {\n internalType: \"address\",\n name: \"intendedDepositor\",\n type: \"address\",\n },\n { internalType: \"address\", name: \"receiver\", type: \"address\" },\n { internalType: \"address\", name: \"refundReceiver\", type: \"address\" },\n {\n components: [\n {\n internalType: \"enum WithdrawQueue.ApprovalMethod\",\n name: \"approvalMethod\",\n type: \"uint8\",\n },\n { internalType: \"uint8\", name: \"approvalV\", type: \"uint8\" },\n { internalType: \"bytes32\", name: \"approvalR\", type: \"bytes32\" },\n { internalType: \"bytes32\", name: \"approvalS\", type: \"bytes32\" },\n {\n internalType: \"bool\",\n name: \"submitWithSignature\",\n type: \"bool\",\n },\n { internalType: \"uint256\", name: \"deadline\", type: \"uint256\" },\n {\n internalType: \"bytes\",\n name: \"eip2612Signature\",\n type: \"bytes\",\n },\n ],\n internalType: \"struct WithdrawQueue.SignatureParams\",\n name: \"signatureParams\",\n type: \"tuple\",\n },\n ],\n internalType: \"struct WithdrawQueue.SubmitOrderParams\",\n name: \"params\",\n type: \"tuple\",\n },\n ],\n name: \"submitOrderAndProcessAll\",\n outputs: [{ internalType: \"uint256\", name: \"orderIndex\", type: \"uint256\" }],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"symbol\",\n outputs: [{ internalType: \"string\", name: \"\", type: \"string\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"bytes4\", name: \"interfaceId\", type: \"bytes4\" }],\n name: \"supportsInterface\",\n outputs: [{ internalType: \"bool\", name: \"\", type: \"bool\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"tellerWithMultiAssetSupport\",\n outputs: [\n {\n internalType: \"contract TellerWithMultiAssetSupport\",\n name: \"\",\n type: \"address\",\n },\n ],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" }],\n name: \"tokenByIndex\",\n outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"owner\", type: \"address\" },\n { internalType: \"uint256\", name: \"index\", type: \"uint256\" },\n ],\n name: \"tokenOfOwnerByIndex\",\n outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" }],\n name: \"tokenURI\",\n outputs: [{ internalType: \"string\", name: \"\", type: \"string\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [],\n name: \"totalSupply\",\n outputs: [{ internalType: \"uint256\", name: \"\", type: \"uint256\" }],\n stateMutability: \"view\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"from\", type: \"address\" },\n { internalType: \"address\", name: \"to\", type: \"address\" },\n { internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" },\n ],\n name: \"transferFrom\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"from\", type: \"address\" },\n { internalType: \"address\", name: \"to\", type: \"address\" },\n { internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" },\n ],\n name: \"safeTransferFrom\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"from\", type: \"address\" },\n { internalType: \"address\", name: \"to\", type: \"address\" },\n { internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" },\n { internalType: \"bytes\", name: \"_data\", type: \"bytes\" },\n ],\n name: \"safeTransferFrom\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"operator\", type: \"address\" },\n { internalType: \"bool\", name: \"approved\", type: \"bool\" },\n ],\n name: \"setApprovalForAll\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"contract IFeeModule\",\n name: \"_feeModule\",\n type: \"address\",\n },\n ],\n name: \"setFeeModule\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"_feeRecipient\", type: \"address\" },\n ],\n name: \"setFeeRecipient\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"contract TellerWithMultiAssetSupport\",\n name: \"_newTeller\",\n type: \"address\",\n },\n ],\n name: \"setTellerWithMultiAssetSupport\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"address\", name: \"newOwner\", type: \"address\" }],\n name: \"setOwner\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n {\n internalType: \"contract Authority\",\n name: \"newAuthority\",\n type: \"address\",\n },\n ],\n name: \"setAuthority\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [{ internalType: \"uint256\", name: \"_newMinimum\", type: \"uint256\" }],\n name: \"updateAssetMinimumOrderSize\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n {\n inputs: [\n { internalType: \"address\", name: \"to\", type: \"address\" },\n { internalType: \"uint256\", name: \"tokenId\", type: \"uint256\" },\n ],\n name: \"approve\",\n outputs: [],\n stateMutability: \"nonpayable\",\n type: \"function\",\n },\n] as const;\n"]}
|
package/dist/core.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
2
|
export { Address } from 'viem';
|
|
3
|
-
import { C as ChainId } from './chain-utils-
|
|
4
|
-
export { t as toChainId } from './chain-utils-
|
|
3
|
+
import { C as ChainId } from './chain-utils-CpOJcWig.mjs';
|
|
4
|
+
export { t as toChainId } from './chain-utils-CpOJcWig.mjs';
|
|
5
5
|
import 'viem/chains';
|
|
6
6
|
|
|
7
7
|
type AccountantBaseProps = {
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
2
|
export { Address } from 'viem';
|
|
3
|
-
import { C as ChainId } from './chain-utils-
|
|
4
|
-
export { t as toChainId } from './chain-utils-
|
|
3
|
+
import { C as ChainId } from './chain-utils-CpOJcWig.js';
|
|
4
|
+
export { t as toChainId } from './chain-utils-CpOJcWig.js';
|
|
5
5
|
import 'viem/chains';
|
|
6
6
|
|
|
7
7
|
type AccountantBaseProps = {
|
package/dist/core.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkD7EMZAOQ_js = require('./chunk-D7EMZAOQ.js');
|
|
4
|
+
var chunk2ZJWWK6D_js = require('./chunk-2ZJWWK6D.js');
|
|
5
5
|
var viem = require('viem');
|
|
6
6
|
|
|
7
7
|
async function getVaultAllowance({
|
|
@@ -10,7 +10,7 @@ async function getVaultAllowance({
|
|
|
10
10
|
recipientAddress,
|
|
11
11
|
chainId
|
|
12
12
|
}) {
|
|
13
|
-
const client = await
|
|
13
|
+
const client = await chunk2ZJWWK6D_js.getClient(chainId);
|
|
14
14
|
const allowance = await client.readContract({
|
|
15
15
|
abi: viem.erc20Abi,
|
|
16
16
|
address: tokenAddress,
|
|
@@ -23,7 +23,7 @@ async function getTotalSupply({
|
|
|
23
23
|
tokenAddress,
|
|
24
24
|
chainId
|
|
25
25
|
}) {
|
|
26
|
-
const client = await
|
|
26
|
+
const client = await chunk2ZJWWK6D_js.getClient(chainId);
|
|
27
27
|
const totalSupply = await client.readContract({
|
|
28
28
|
abi: viem.erc20Abi,
|
|
29
29
|
address: tokenAddress,
|
|
@@ -73,10 +73,10 @@ var ChainlinkAbi = [
|
|
|
73
73
|
async function getEthPrice({
|
|
74
74
|
chainId
|
|
75
75
|
}) {
|
|
76
|
-
const client = await
|
|
76
|
+
const client = await chunk2ZJWWK6D_js.getClient(chainId);
|
|
77
77
|
const priceData = await client.readContract({
|
|
78
78
|
abi: ChainlinkAbi,
|
|
79
|
-
address:
|
|
79
|
+
address: chunk2ZJWWK6D_js.CHAINLINK_ADDRESS,
|
|
80
80
|
functionName: "latestRoundData",
|
|
81
81
|
args: []
|
|
82
82
|
});
|
|
@@ -1097,7 +1097,7 @@ var getPausedStates = async ({
|
|
|
1097
1097
|
tellerAddress,
|
|
1098
1098
|
chainId
|
|
1099
1099
|
}) => {
|
|
1100
|
-
const client = await
|
|
1100
|
+
const client = await chunk2ZJWWK6D_js.getClient(chainId);
|
|
1101
1101
|
const results = await client.multicall({
|
|
1102
1102
|
contracts: [
|
|
1103
1103
|
{
|
|
@@ -1106,7 +1106,7 @@ var getPausedStates = async ({
|
|
|
1106
1106
|
functionName: "isPaused"
|
|
1107
1107
|
},
|
|
1108
1108
|
{
|
|
1109
|
-
abi:
|
|
1109
|
+
abi: chunkD7EMZAOQ_js.AccountantAbi,
|
|
1110
1110
|
address: accountantAddress,
|
|
1111
1111
|
functionName: "accountantState"
|
|
1112
1112
|
}
|
|
@@ -1118,7 +1118,7 @@ var getPausedStates = async ({
|
|
|
1118
1118
|
// src/api/withdraw-assets.ts
|
|
1119
1119
|
var assetsCache = null;
|
|
1120
1120
|
function constructUrl(params) {
|
|
1121
|
-
const withdrawAssetsUrl = `${
|
|
1121
|
+
const withdrawAssetsUrl = `${chunk2ZJWWK6D_js.API_BASE_URL}/v1/protocol/withdraw-assets`;
|
|
1122
1122
|
if (!params) return withdrawAssetsUrl;
|
|
1123
1123
|
const queryParams = new URLSearchParams();
|
|
1124
1124
|
if (params.chainId) queryParams.append("chainId", params.chainId.toString());
|
|
@@ -1149,7 +1149,7 @@ async function fetchWithdrawAssets(params) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
|
|
1151
1151
|
// src/api/solver-slippage.ts
|
|
1152
|
-
async function getAssetSlippage(chainId, vaultAddress, tokenAddress, defaultSlippage =
|
|
1152
|
+
async function getAssetSlippage(chainId, vaultAddress, tokenAddress, defaultSlippage = chunk2ZJWWK6D_js.DEFAULT_SLIPPAGE_BPS) {
|
|
1153
1153
|
try {
|
|
1154
1154
|
const withdrawAssets = await fetchWithdrawAssets();
|
|
1155
1155
|
if (!withdrawAssets) {
|
|
@@ -1179,7 +1179,7 @@ var getPreviewFee = async ({
|
|
|
1179
1179
|
contractAddress,
|
|
1180
1180
|
chainId
|
|
1181
1181
|
}) => {
|
|
1182
|
-
const client = await
|
|
1182
|
+
const client = await chunk2ZJWWK6D_js.getClient(chainId);
|
|
1183
1183
|
const rate = await client.readContract({
|
|
1184
1184
|
abi: TellerAbi,
|
|
1185
1185
|
address: contractAddress,
|
|
@@ -1191,23 +1191,23 @@ var getPreviewFee = async ({
|
|
|
1191
1191
|
|
|
1192
1192
|
Object.defineProperty(exports, "getErc20Allowance", {
|
|
1193
1193
|
enumerable: true,
|
|
1194
|
-
get: function () { return
|
|
1194
|
+
get: function () { return chunkD7EMZAOQ_js.getErc20Allowance; }
|
|
1195
1195
|
});
|
|
1196
1196
|
Object.defineProperty(exports, "getErc20Balance", {
|
|
1197
1197
|
enumerable: true,
|
|
1198
|
-
get: function () { return
|
|
1198
|
+
get: function () { return chunkD7EMZAOQ_js.getErc20Balance; }
|
|
1199
1199
|
});
|
|
1200
1200
|
Object.defineProperty(exports, "getErc20Decimals", {
|
|
1201
1201
|
enumerable: true,
|
|
1202
|
-
get: function () { return
|
|
1202
|
+
get: function () { return chunkD7EMZAOQ_js.getErc20Decimals; }
|
|
1203
1203
|
});
|
|
1204
1204
|
Object.defineProperty(exports, "getRateInQuoteWithAssetDecimals", {
|
|
1205
1205
|
enumerable: true,
|
|
1206
|
-
get: function () { return
|
|
1206
|
+
get: function () { return chunkD7EMZAOQ_js.getRateInQuoteWithAssetDecimals; }
|
|
1207
1207
|
});
|
|
1208
1208
|
Object.defineProperty(exports, "toChainId", {
|
|
1209
1209
|
enumerable: true,
|
|
1210
|
-
get: function () { return
|
|
1210
|
+
get: function () { return chunk2ZJWWK6D_js.toChainId; }
|
|
1211
1211
|
});
|
|
1212
1212
|
exports.fetchWithdrawAssets = fetchWithdrawAssets;
|
|
1213
1213
|
exports.getAssetSlippage = getAssetSlippage;
|
package/dist/core.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AccountantAbi } from './chunk-
|
|
2
|
-
export { getErc20Allowance, getErc20Balance, getErc20Decimals, getRateInQuoteWithAssetDecimals } from './chunk-
|
|
3
|
-
import { DEFAULT_SLIPPAGE_BPS, getClient, CHAINLINK_ADDRESS, API_BASE_URL } from './chunk-
|
|
4
|
-
export { toChainId } from './chunk-
|
|
1
|
+
import { AccountantAbi } from './chunk-SXIBMN7X.mjs';
|
|
2
|
+
export { getErc20Allowance, getErc20Balance, getErc20Decimals, getRateInQuoteWithAssetDecimals } from './chunk-SXIBMN7X.mjs';
|
|
3
|
+
import { DEFAULT_SLIPPAGE_BPS, getClient, CHAINLINK_ADDRESS, API_BASE_URL } from './chunk-MPCRFKSD.mjs';
|
|
4
|
+
export { toChainId } from './chunk-MPCRFKSD.mjs';
|
|
5
5
|
import { erc20Abi } from 'viem';
|
|
6
6
|
|
|
7
7
|
async function getVaultAllowance({
|
package/dist/display.d.mts
CHANGED
package/dist/display.d.ts
CHANGED
package/dist/display.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkN5UKVLSS_js = require('./chunk-N5UKVLSS.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, "getMinimumMint", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkN5UKVLSS_js.getMinimumMint; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getMinimumWithdrawalOrderSize", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkN5UKVLSS_js.getMinimumWithdrawalOrderSize; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "getVaultAPY", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkN5UKVLSS_js.getVaultAPY; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getVaultTVL", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkN5UKVLSS_js.getVaultTVL; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getWithdrawalFee", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkN5UKVLSS_js.getWithdrawalFee; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getWithdrawalRequests", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkN5UKVLSS_js.getWithdrawalRequests; }
|
|
34
34
|
});
|
|
35
35
|
//# sourceMappingURL=display.js.map
|
|
36
36
|
//# sourceMappingURL=display.js.map
|
package/dist/display.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { getMinimumMint, getMinimumWithdrawalOrderSize, getVaultAPY, getVaultTVL, getWithdrawalFee, getWithdrawalRequests } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
export { getMinimumMint, getMinimumWithdrawalOrderSize, getVaultAPY, getVaultTVL, getWithdrawalFee, getWithdrawalRequests } from './chunk-GJPTAY5T.mjs';
|
|
2
|
+
import './chunk-XA653JS3.mjs';
|
|
3
|
+
import './chunk-SXIBMN7X.mjs';
|
|
4
4
|
import './chunk-7RWWVUHP.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-MPCRFKSD.mjs';
|
|
6
6
|
//# sourceMappingURL=display.mjs.map
|
|
7
7
|
//# sourceMappingURL=display.mjs.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
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';
|
|
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, d as VaultSLA } from './chain-utils-
|
|
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-CpOJcWig.mjs';
|
|
4
|
+
export { b as APIError, d as VaultSLA, e as VaultSupportedAsset } from './chain-utils-CpOJcWig.mjs';
|
|
5
5
|
export { AlreadyApprovedAuthorizationResult, ApprovalAuthorizationResult, ApproveDepositTokenTxData, ApproveWithdrawOrderTxData, CancelWithdrawOrderTxData, DepositAuthMethod, DepositAuthorizationResult, DepositTxData, EIP712Domain, PERMIT_TYPES, ParsedPermitSignature, PermitAuthorizationResult, PermitDepositResult, PermitSignatureData, PrepareCancelWithdrawOrderTxDataParams, PrepareDepositAuthorizationParams, PrepareDepositParams, PrepareDepositPermitSignatureParams, PrepareDepositResult, PrepareDepositWithPermitTxDataParams, PrepareWithdrawOrderTxDataParams, PrepareWithdrawalAuthorizationParams, PrepareWithdrawalParams, PrepareWithdrawalResult, StandardDepositResult, UnencodedDepositWithPermitData, WithdrawAlreadyApprovedAuthorizationResult, WithdrawApprovalAuthorizationResult, WithdrawAuthMethod, WithdrawAuthorizationResult, WithdrawOrderTxData, isAlreadyApprovedAuth, isApprovalAuth, isPermitAuth, isWithdrawAlreadyApprovedAuth, isWithdrawApprovalAuth, parsePermitSignature, prepareApproveDepositTokenTxData, prepareApproveWithdrawOrderTxData, prepareCancelWithdrawOrderTxData, prepareDeposit, prepareDepositAuthorization, prepareDepositPermitSignature, prepareDepositTxData, prepareDepositWithPermitTxData, prepareWithdrawOrderTxData, prepareWithdrawal, prepareWithdrawalAuthorization, toEthSignTypedDataV4 } from './vaults.mjs';
|
|
6
6
|
import 'viem/chains';
|
|
7
7
|
|
|
@@ -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 };
|