@paxoslabs/amplify-sdk 0.5.2 → 1.0.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/dist/index.d.mts +3158 -725
- package/dist/index.d.ts +3158 -725
- package/dist/index.js +15013 -171
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15067 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -86
- package/CHANGELOG.md +0 -320
- package/LICENSE +0 -28
- package/README.md +0 -119
- package/dist/chain-utils-BdJecHBA.d.mts +0 -334
- package/dist/chain-utils-BdJecHBA.d.ts +0 -334
- package/dist/chunk-5OK753GA.js +0 -1989
- package/dist/chunk-5OK753GA.js.map +0 -1
- package/dist/chunk-6CU533DM.mjs +0 -39
- package/dist/chunk-6CU533DM.mjs.map +0 -1
- package/dist/chunk-7JQQ2TH4.mjs +0 -1231
- package/dist/chunk-7JQQ2TH4.mjs.map +0 -1
- package/dist/chunk-HU5CTL4C.mjs +0 -1962
- package/dist/chunk-HU5CTL4C.mjs.map +0 -1
- package/dist/chunk-NNDY5TID.js +0 -1143
- package/dist/chunk-NNDY5TID.js.map +0 -1
- package/dist/chunk-Q5FXJU5Y.mjs +0 -1133
- package/dist/chunk-Q5FXJU5Y.mjs.map +0 -1
- package/dist/chunk-QZHI2T7O.mjs +0 -457
- 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-TNL23CO2.js +0 -45
- package/dist/chunk-TNL23CO2.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/core.d.mts +0 -152
- package/dist/core.d.ts +0 -152
- package/dist/core.js +0 -1220
- package/dist/core.js.map +0 -1
- package/dist/core.mjs +0 -1194
- package/dist/core.mjs.map +0 -1
- package/dist/display.d.mts +0 -263
- package/dist/display.d.ts +0 -263
- package/dist/display.js +0 -36
- package/dist/display.js.map +0 -1
- package/dist/display.mjs +0 -7
- package/dist/display.mjs.map +0 -1
- package/dist/index-DXXA8gEA.d.mts +0 -5026
- package/dist/index-aE5lTOUH.d.ts +0 -5026
- package/dist/utils.d.mts +0 -112
- package/dist/utils.d.ts +0 -112
- package/dist/utils.js +0 -67
- package/dist/utils.js.map +0 -1
- package/dist/utils.mjs +0 -25
- package/dist/utils.mjs.map +0 -1
- package/dist/vaults.d.mts +0 -4
- package/dist/vaults.d.ts +0 -4
- package/dist/vaults.js +0 -96
- package/dist/vaults.js.map +0 -1
- package/dist/vaults.mjs +0 -7
- package/dist/vaults.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/types/withdraw-errors.ts","../src/client/resolve-vault.ts","../src/abi/withdraw-queue-abi.ts"],"names":["__publicField","isValidAddress","APIError","isValidChainId","getCache","getChainNameById"],"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;AAZf;AAAA;AAAA;AAAA;AAAA,IAAAA,8BAAA,CAAA,IAAA,EAAS,MAAA,CAAA;AAKT;AAAA;AAAA;AAAA,IAAAA,8BAAA,CAAA,IAAA,EAAS,SAAA,CAAA;AAQP,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;A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A,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-ZKDXRGI5.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 {\n APIError,\n isValidAddress,\n isValidChainId,\n} from '../types/amplify-sdk-api'\nimport { VaultNotFoundByNameError } from '../types/withdraw-errors'\nimport { getChainNameById } from '../utils/chain-utils'\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 const supportedChainIds = new Set<number>([vault.chainId])\n for (const a of vault.supportedAssets) {\n if (a.chainId != null) {\n supportedChainIds.add(a.chainId)\n }\n }\n\n if (!supportedChainIds.has(chainId)) {\n const chains = Array.from(supportedChainIds).join(', ')\n throw new APIError(\n `Vault \"${vaultName}\" supports chains [${chains}], but ${getChainNameById(chainId)} (${chainId}) was requested.`,\n { endpoint: callerEndpoint }\n )\n }\n\n const matchedAsset = vault.supportedAssets.find(\n (a) =>\n a.address.toLowerCase() === assetAddress.toLowerCase() &&\n (a.chainId == null || a.chainId === chainId)\n )\n if (!matchedAsset) {\n const supported = vault.supportedAssets\n .filter((a) => a.chainId == null || a.chainId === chainId)\n .map((a) => `${a.address} (${a.symbol})`)\n .join(', ')\n throw new APIError(\n `Vault \"${vaultName}\" supports assets [${supported}] on chain ${chainId}, 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
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
export { Address } from 'viem';
|
|
3
|
-
import { C as ChainId } from './chain-utils-BdJecHBA.mjs';
|
|
4
|
-
export { t as toChainId } from './chain-utils-BdJecHBA.mjs';
|
|
5
|
-
import 'viem/chains';
|
|
6
|
-
|
|
7
|
-
type AccountantBaseProps = {
|
|
8
|
-
accountantAddress: Address;
|
|
9
|
-
chainId: ChainId;
|
|
10
|
-
};
|
|
11
|
-
type RateInQuoteWithAssetDecimalsProps = AccountantBaseProps & {
|
|
12
|
-
assetAddress: Address;
|
|
13
|
-
};
|
|
14
|
-
declare const getRateInQuoteWithAssetDecimals: ({ assetAddress, accountantAddress, chainId, }: RateInQuoteWithAssetDecimalsProps) => Promise<[{
|
|
15
|
-
error?: undefined;
|
|
16
|
-
result: number;
|
|
17
|
-
status: "success";
|
|
18
|
-
} | {
|
|
19
|
-
error: Error;
|
|
20
|
-
result?: undefined;
|
|
21
|
-
status: "failure";
|
|
22
|
-
}, {
|
|
23
|
-
error: Error;
|
|
24
|
-
result?: undefined;
|
|
25
|
-
status: "failure";
|
|
26
|
-
} | {
|
|
27
|
-
error?: undefined;
|
|
28
|
-
result: bigint;
|
|
29
|
-
status: "success";
|
|
30
|
-
}]>;
|
|
31
|
-
|
|
32
|
-
type AllowanceProps = {
|
|
33
|
-
tokenAddress: Address;
|
|
34
|
-
spenderAddress: Address;
|
|
35
|
-
recipientAddress: Address;
|
|
36
|
-
chainId: ChainId;
|
|
37
|
-
};
|
|
38
|
-
declare function getVaultAllowance({ tokenAddress, spenderAddress, recipientAddress, chainId, }: AllowanceProps): Promise<bigint>;
|
|
39
|
-
type TotalSupplyProps = {
|
|
40
|
-
tokenAddress: Address;
|
|
41
|
-
chainId: ChainId;
|
|
42
|
-
};
|
|
43
|
-
declare function getTotalSupply({ tokenAddress, chainId, }: TotalSupplyProps): Promise<bigint>;
|
|
44
|
-
|
|
45
|
-
interface GetEthPriceProps {
|
|
46
|
-
chainId: ChainId;
|
|
47
|
-
}
|
|
48
|
-
declare function getEthPrice({ chainId, }: GetEthPriceProps): Promise<bigint>;
|
|
49
|
-
|
|
50
|
-
interface GetErc20BalanceParams {
|
|
51
|
-
chainId: ChainId;
|
|
52
|
-
tokenAddress: Address;
|
|
53
|
-
recipientAddress: Address;
|
|
54
|
-
}
|
|
55
|
-
declare const getErc20Balance: ({ chainId, tokenAddress, recipientAddress, }: GetErc20BalanceParams) => Promise<bigint>;
|
|
56
|
-
interface GetErc20DecimalsParams {
|
|
57
|
-
chainId: ChainId;
|
|
58
|
-
tokenAddress: Address;
|
|
59
|
-
}
|
|
60
|
-
declare const getErc20Decimals: ({ chainId, tokenAddress, }: GetErc20DecimalsParams) => Promise<number>;
|
|
61
|
-
interface GetErc20AllowanceParams {
|
|
62
|
-
chainId: ChainId;
|
|
63
|
-
tokenAddress: Address;
|
|
64
|
-
recipientAddress: Address;
|
|
65
|
-
spenderAddress: Address;
|
|
66
|
-
}
|
|
67
|
-
declare const getErc20Allowance: ({ chainId, tokenAddress, recipientAddress, spenderAddress, }: GetErc20AllowanceParams) => Promise<bigint>;
|
|
68
|
-
|
|
69
|
-
type PausedStatusProps = {
|
|
70
|
-
accountantAddress: Address;
|
|
71
|
-
tellerAddress: Address;
|
|
72
|
-
chainId: ChainId;
|
|
73
|
-
};
|
|
74
|
-
declare const getPausedStates: ({ accountantAddress, tellerAddress, chainId, }: PausedStatusProps) => Promise<[{
|
|
75
|
-
error: Error;
|
|
76
|
-
result?: undefined;
|
|
77
|
-
status: "failure";
|
|
78
|
-
} | {
|
|
79
|
-
error?: undefined;
|
|
80
|
-
result: boolean;
|
|
81
|
-
status: "success";
|
|
82
|
-
}, {
|
|
83
|
-
error: Error;
|
|
84
|
-
result?: undefined;
|
|
85
|
-
status: "failure";
|
|
86
|
-
} | {
|
|
87
|
-
error?: undefined;
|
|
88
|
-
result: readonly [`0x${string}`, bigint, bigint, bigint, number, number, bigint, isPaused: boolean, number, number];
|
|
89
|
-
status: "success";
|
|
90
|
-
}]>;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Gets the slippage value for a specific asset in a vault
|
|
94
|
-
* @param chainId The chain ID
|
|
95
|
-
* @param vaultAddress The boring vault address
|
|
96
|
-
* @param tokenAddress The token address
|
|
97
|
-
* @param defaultSlippage Optional default slippage value if none is found (defaults to 0)
|
|
98
|
-
* @returns Promise<number> The slippage value
|
|
99
|
-
* @throws {AssetSlippageError} If there's an error fetching or processing the slippage data
|
|
100
|
-
*/
|
|
101
|
-
declare function getAssetSlippage(chainId: ChainId, vaultAddress: Address, tokenAddress: Address, defaultSlippage?: number): Promise<number>;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @fileoverview Functions for interacting with the Teller contract
|
|
105
|
-
*/
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Arguments required by the bridge contract for cross-chain transfers
|
|
109
|
-
* @interface BridgeData
|
|
110
|
-
* @property {number} chainSelector - Unique identifier for the destination chain
|
|
111
|
-
* @property {Address} destinationChainReceiver - Address that will receive the bridged tokens
|
|
112
|
-
* @property {Address} bridgeFeeToken - Token used to pay the bridge fee
|
|
113
|
-
* @property {bigint} messageGas - Amount of gas allocated for the cross-chain message
|
|
114
|
-
* @property {`0x${string}`} data - Additional data required for the bridge operation (hex encoded)
|
|
115
|
-
*/
|
|
116
|
-
type BridgeData = {
|
|
117
|
-
chainSelector: number;
|
|
118
|
-
destinationChainReceiver: Address;
|
|
119
|
-
bridgeFeeToken: Address;
|
|
120
|
-
messageGas: bigint;
|
|
121
|
-
data: `0x${string}`;
|
|
122
|
-
};
|
|
123
|
-
type GetPreviewFeeProps = {
|
|
124
|
-
shareAmount: bigint;
|
|
125
|
-
bridgeData: BridgeData;
|
|
126
|
-
contractAddress: Address;
|
|
127
|
-
chainId: ChainId;
|
|
128
|
-
};
|
|
129
|
-
declare const getPreviewFee: ({ shareAmount, bridgeData, contractAddress, chainId, }: GetPreviewFeeProps) => Promise<bigint>;
|
|
130
|
-
|
|
131
|
-
interface WithdrawAssetsResponse {
|
|
132
|
-
[chainId: string]: {
|
|
133
|
-
[vaultAddress: string]: {
|
|
134
|
-
[tokenAddress: string]: number;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Interface for optional parameters when fetching withdraw assets
|
|
140
|
-
*/
|
|
141
|
-
interface FetchWithdrawAssetsParams {
|
|
142
|
-
chainId?: ChainId;
|
|
143
|
-
vaultAddress?: Address;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Fetches withdraw assets configuration from the API
|
|
147
|
-
* @param params Optional parameters for chainId and vaultAddress
|
|
148
|
-
* @returns Promise<WithdrawAssetsResponse>
|
|
149
|
-
*/
|
|
150
|
-
declare function fetchWithdrawAssets(params?: FetchWithdrawAssetsParams): Promise<WithdrawAssetsResponse>;
|
|
151
|
-
|
|
152
|
-
export { type BridgeData, ChainId, fetchWithdrawAssets, getAssetSlippage, getErc20Allowance, getErc20Balance, getErc20Decimals, getEthPrice, getPausedStates, getPreviewFee, getRateInQuoteWithAssetDecimals, getTotalSupply, getVaultAllowance };
|
package/dist/core.d.ts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
2
|
-
export { Address } from 'viem';
|
|
3
|
-
import { C as ChainId } from './chain-utils-BdJecHBA.js';
|
|
4
|
-
export { t as toChainId } from './chain-utils-BdJecHBA.js';
|
|
5
|
-
import 'viem/chains';
|
|
6
|
-
|
|
7
|
-
type AccountantBaseProps = {
|
|
8
|
-
accountantAddress: Address;
|
|
9
|
-
chainId: ChainId;
|
|
10
|
-
};
|
|
11
|
-
type RateInQuoteWithAssetDecimalsProps = AccountantBaseProps & {
|
|
12
|
-
assetAddress: Address;
|
|
13
|
-
};
|
|
14
|
-
declare const getRateInQuoteWithAssetDecimals: ({ assetAddress, accountantAddress, chainId, }: RateInQuoteWithAssetDecimalsProps) => Promise<[{
|
|
15
|
-
error?: undefined;
|
|
16
|
-
result: number;
|
|
17
|
-
status: "success";
|
|
18
|
-
} | {
|
|
19
|
-
error: Error;
|
|
20
|
-
result?: undefined;
|
|
21
|
-
status: "failure";
|
|
22
|
-
}, {
|
|
23
|
-
error: Error;
|
|
24
|
-
result?: undefined;
|
|
25
|
-
status: "failure";
|
|
26
|
-
} | {
|
|
27
|
-
error?: undefined;
|
|
28
|
-
result: bigint;
|
|
29
|
-
status: "success";
|
|
30
|
-
}]>;
|
|
31
|
-
|
|
32
|
-
type AllowanceProps = {
|
|
33
|
-
tokenAddress: Address;
|
|
34
|
-
spenderAddress: Address;
|
|
35
|
-
recipientAddress: Address;
|
|
36
|
-
chainId: ChainId;
|
|
37
|
-
};
|
|
38
|
-
declare function getVaultAllowance({ tokenAddress, spenderAddress, recipientAddress, chainId, }: AllowanceProps): Promise<bigint>;
|
|
39
|
-
type TotalSupplyProps = {
|
|
40
|
-
tokenAddress: Address;
|
|
41
|
-
chainId: ChainId;
|
|
42
|
-
};
|
|
43
|
-
declare function getTotalSupply({ tokenAddress, chainId, }: TotalSupplyProps): Promise<bigint>;
|
|
44
|
-
|
|
45
|
-
interface GetEthPriceProps {
|
|
46
|
-
chainId: ChainId;
|
|
47
|
-
}
|
|
48
|
-
declare function getEthPrice({ chainId, }: GetEthPriceProps): Promise<bigint>;
|
|
49
|
-
|
|
50
|
-
interface GetErc20BalanceParams {
|
|
51
|
-
chainId: ChainId;
|
|
52
|
-
tokenAddress: Address;
|
|
53
|
-
recipientAddress: Address;
|
|
54
|
-
}
|
|
55
|
-
declare const getErc20Balance: ({ chainId, tokenAddress, recipientAddress, }: GetErc20BalanceParams) => Promise<bigint>;
|
|
56
|
-
interface GetErc20DecimalsParams {
|
|
57
|
-
chainId: ChainId;
|
|
58
|
-
tokenAddress: Address;
|
|
59
|
-
}
|
|
60
|
-
declare const getErc20Decimals: ({ chainId, tokenAddress, }: GetErc20DecimalsParams) => Promise<number>;
|
|
61
|
-
interface GetErc20AllowanceParams {
|
|
62
|
-
chainId: ChainId;
|
|
63
|
-
tokenAddress: Address;
|
|
64
|
-
recipientAddress: Address;
|
|
65
|
-
spenderAddress: Address;
|
|
66
|
-
}
|
|
67
|
-
declare const getErc20Allowance: ({ chainId, tokenAddress, recipientAddress, spenderAddress, }: GetErc20AllowanceParams) => Promise<bigint>;
|
|
68
|
-
|
|
69
|
-
type PausedStatusProps = {
|
|
70
|
-
accountantAddress: Address;
|
|
71
|
-
tellerAddress: Address;
|
|
72
|
-
chainId: ChainId;
|
|
73
|
-
};
|
|
74
|
-
declare const getPausedStates: ({ accountantAddress, tellerAddress, chainId, }: PausedStatusProps) => Promise<[{
|
|
75
|
-
error: Error;
|
|
76
|
-
result?: undefined;
|
|
77
|
-
status: "failure";
|
|
78
|
-
} | {
|
|
79
|
-
error?: undefined;
|
|
80
|
-
result: boolean;
|
|
81
|
-
status: "success";
|
|
82
|
-
}, {
|
|
83
|
-
error: Error;
|
|
84
|
-
result?: undefined;
|
|
85
|
-
status: "failure";
|
|
86
|
-
} | {
|
|
87
|
-
error?: undefined;
|
|
88
|
-
result: readonly [`0x${string}`, bigint, bigint, bigint, number, number, bigint, isPaused: boolean, number, number];
|
|
89
|
-
status: "success";
|
|
90
|
-
}]>;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Gets the slippage value for a specific asset in a vault
|
|
94
|
-
* @param chainId The chain ID
|
|
95
|
-
* @param vaultAddress The boring vault address
|
|
96
|
-
* @param tokenAddress The token address
|
|
97
|
-
* @param defaultSlippage Optional default slippage value if none is found (defaults to 0)
|
|
98
|
-
* @returns Promise<number> The slippage value
|
|
99
|
-
* @throws {AssetSlippageError} If there's an error fetching or processing the slippage data
|
|
100
|
-
*/
|
|
101
|
-
declare function getAssetSlippage(chainId: ChainId, vaultAddress: Address, tokenAddress: Address, defaultSlippage?: number): Promise<number>;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @fileoverview Functions for interacting with the Teller contract
|
|
105
|
-
*/
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Arguments required by the bridge contract for cross-chain transfers
|
|
109
|
-
* @interface BridgeData
|
|
110
|
-
* @property {number} chainSelector - Unique identifier for the destination chain
|
|
111
|
-
* @property {Address} destinationChainReceiver - Address that will receive the bridged tokens
|
|
112
|
-
* @property {Address} bridgeFeeToken - Token used to pay the bridge fee
|
|
113
|
-
* @property {bigint} messageGas - Amount of gas allocated for the cross-chain message
|
|
114
|
-
* @property {`0x${string}`} data - Additional data required for the bridge operation (hex encoded)
|
|
115
|
-
*/
|
|
116
|
-
type BridgeData = {
|
|
117
|
-
chainSelector: number;
|
|
118
|
-
destinationChainReceiver: Address;
|
|
119
|
-
bridgeFeeToken: Address;
|
|
120
|
-
messageGas: bigint;
|
|
121
|
-
data: `0x${string}`;
|
|
122
|
-
};
|
|
123
|
-
type GetPreviewFeeProps = {
|
|
124
|
-
shareAmount: bigint;
|
|
125
|
-
bridgeData: BridgeData;
|
|
126
|
-
contractAddress: Address;
|
|
127
|
-
chainId: ChainId;
|
|
128
|
-
};
|
|
129
|
-
declare const getPreviewFee: ({ shareAmount, bridgeData, contractAddress, chainId, }: GetPreviewFeeProps) => Promise<bigint>;
|
|
130
|
-
|
|
131
|
-
interface WithdrawAssetsResponse {
|
|
132
|
-
[chainId: string]: {
|
|
133
|
-
[vaultAddress: string]: {
|
|
134
|
-
[tokenAddress: string]: number;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Interface for optional parameters when fetching withdraw assets
|
|
140
|
-
*/
|
|
141
|
-
interface FetchWithdrawAssetsParams {
|
|
142
|
-
chainId?: ChainId;
|
|
143
|
-
vaultAddress?: Address;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Fetches withdraw assets configuration from the API
|
|
147
|
-
* @param params Optional parameters for chainId and vaultAddress
|
|
148
|
-
* @returns Promise<WithdrawAssetsResponse>
|
|
149
|
-
*/
|
|
150
|
-
declare function fetchWithdrawAssets(params?: FetchWithdrawAssetsParams): Promise<WithdrawAssetsResponse>;
|
|
151
|
-
|
|
152
|
-
export { type BridgeData, ChainId, fetchWithdrawAssets, getAssetSlippage, getErc20Allowance, getErc20Balance, getErc20Decimals, getEthPrice, getPausedStates, getPreviewFee, getRateInQuoteWithAssetDecimals, getTotalSupply, getVaultAllowance };
|