@paxoslabs/amplify-sdk 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/CHANGELOG.md +7 -45
  2. package/README.md +22 -22
  3. package/dist/{chain-utils-D_b2LEEi.d.mts → chain-utils-5r2UnCDS.d.mts} +57 -1
  4. package/dist/{chain-utils-D_b2LEEi.d.ts → chain-utils-5r2UnCDS.d.ts} +57 -1
  5. package/dist/{chunk-L5XT67QZ.js → chunk-4NQPS3JC.js} +813 -147
  6. package/dist/chunk-4NQPS3JC.js.map +1 -0
  7. package/dist/{chunk-7RWWVUHP.mjs → chunk-6CU533DM.mjs} +2 -2
  8. package/dist/chunk-6CU533DM.mjs.map +1 -0
  9. package/dist/chunk-6JLKHV6O.js +128 -0
  10. package/dist/chunk-6JLKHV6O.js.map +1 -0
  11. package/dist/{chunk-YAYUSBC6.js → chunk-FHE43NKY.js} +12 -12
  12. package/dist/chunk-FHE43NKY.js.map +1 -0
  13. package/dist/chunk-GOJQYEJQ.js +3212 -0
  14. package/dist/chunk-GOJQYEJQ.js.map +1 -0
  15. package/dist/{chunk-3D6EDR3Z.mjs → chunk-LMNADWTH.mjs} +703 -41
  16. package/dist/chunk-LMNADWTH.mjs.map +1 -0
  17. package/dist/chunk-ODXJYXUH.mjs +3168 -0
  18. package/dist/chunk-ODXJYXUH.mjs.map +1 -0
  19. package/dist/{chunk-WJGSTAPB.mjs → chunk-QMFYPHX5.mjs} +300 -87
  20. package/dist/chunk-QMFYPHX5.mjs.map +1 -0
  21. package/dist/{chunk-3I3PYX2F.js → chunk-TNL23CO2.js} +2 -2
  22. package/dist/chunk-TNL23CO2.js.map +1 -0
  23. package/dist/{chunk-E6SBQNDA.mjs → chunk-UY2WD7MF.mjs} +3 -3
  24. package/dist/chunk-UY2WD7MF.mjs.map +1 -0
  25. package/dist/chunk-WD6QFSXZ.js +701 -0
  26. package/dist/chunk-WD6QFSXZ.js.map +1 -0
  27. package/dist/chunk-Y5LBT2WT.mjs +118 -0
  28. package/dist/chunk-Y5LBT2WT.mjs.map +1 -0
  29. package/dist/core.d.mts +50 -7
  30. package/dist/core.d.ts +50 -7
  31. package/dist/core.js +32 -16
  32. package/dist/core.js.map +1 -1
  33. package/dist/core.mjs +4 -4
  34. package/dist/core.mjs.map +1 -1
  35. package/dist/display.d.mts +212 -3
  36. package/dist/display.d.ts +212 -3
  37. package/dist/display.js +27 -11
  38. package/dist/display.mjs +5 -5
  39. package/dist/index-D8RtV9cB.d.mts +5114 -0
  40. package/dist/index-ev_V5sjt.d.ts +5114 -0
  41. package/dist/index.d.mts +41 -6
  42. package/dist/index.d.ts +41 -6
  43. package/dist/index.js +90 -58
  44. package/dist/index.mjs +6 -6
  45. package/dist/utils.d.mts +1 -1
  46. package/dist/utils.d.ts +1 -1
  47. package/dist/utils.js +13 -13
  48. package/dist/utils.js.map +1 -1
  49. package/dist/utils.mjs +3 -3
  50. package/dist/utils.mjs.map +1 -1
  51. package/dist/vaults.d.mts +3 -3817
  52. package/dist/vaults.d.ts +3 -3817
  53. package/dist/vaults.js +26 -26
  54. package/dist/vaults.mjs +5 -5
  55. package/package.json +30 -65
  56. package/dist/chunk-3D6EDR3Z.mjs.map +0 -1
  57. package/dist/chunk-3I3PYX2F.js.map +0 -1
  58. package/dist/chunk-7RWWVUHP.mjs.map +0 -1
  59. package/dist/chunk-AUDMOT6F.js +0 -1230
  60. package/dist/chunk-AUDMOT6F.js.map +0 -1
  61. package/dist/chunk-E5DH5YEE.js +0 -1485
  62. package/dist/chunk-E5DH5YEE.js.map +0 -1
  63. package/dist/chunk-E6SBQNDA.mjs.map +0 -1
  64. package/dist/chunk-JLZL25CY.mjs +0 -1450
  65. package/dist/chunk-JLZL25CY.mjs.map +0 -1
  66. package/dist/chunk-L5XT67QZ.js.map +0 -1
  67. package/dist/chunk-WJGSTAPB.mjs.map +0 -1
  68. package/dist/chunk-XVDK6J72.js +0 -484
  69. package/dist/chunk-XVDK6J72.js.map +0 -1
  70. package/dist/chunk-Y6RXVDQN.mjs +0 -1222
  71. package/dist/chunk-Y6RXVDQN.mjs.map +0 -1
  72. package/dist/chunk-YAYUSBC6.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Add KYT deposit support with discriminated union types, enterprise config-based routing, vault deprecation warnings, and flatten permit deposit return shape
8
+
3
9
  All notable changes to this project will be documented in this file.
4
10
 
5
11
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
@@ -7,55 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
13
 
8
14
  <!-- auto-changelog-above -->
9
15
 
10
-
11
- ## [0.5.1](https://github.com/paxoslabs/paxos-labs-monorepo/compare/v0.4.3-alpha.1...v0.5.1) (2026-03-23)
12
-
13
- ### Features
14
-
15
- * Add `oasdiff` to check for breaking backend API changes ([#25](https://github.com/paxoslabs/paxos-labs-monorepo/issues/25)) ([9aa1deb](https://github.com/paxoslabs/paxos-labs-monorepo/commit/9aa1debae1a0c97ca11430547450e38e1491f782))
16
- * Add Amplify SDK config management UI ([ce383ce](https://github.com/paxoslabs/paxos-labs-monorepo/commit/ce383cedcf1e0f7f520a0fa92b6573eb0ad0aa7c))
17
- * adding initial docs changes for new SDK version and changes ([be45fa6](https://github.com/paxoslabs/paxos-labs-monorepo/commit/be45fa6a6be4013ea4a7c58be40b9b130b3d5e69))
18
- * **address-book-admin:** address QA feedback for vault and SDK config flows ([ce87154](https://github.com/paxoslabs/paxos-labs-monorepo/commit/ce871540ab4c58ca35f57c2a932def81af094b31))
19
- * integrate TanStack Form with client-side validation and fix shadcn audit issues ([a5ec00c](https://github.com/paxoslabs/paxos-labs-monorepo/commit/a5ec00c5db1b5afb4a4e2b6c5601dbe4ed4ad47f))
20
- * Make backend-v2 + GitHub Actions source of migrations ([#39](https://github.com/paxoslabs/paxos-labs-monorepo/issues/39)) ([720aa9c](https://github.com/paxoslabs/paxos-labs-monorepo/commit/720aa9c9d91e185477fb587ce63392af8f140038))
21
- * Parametrize BASE_URL in SDK using env var replaced at build time by tsup ([#41](https://github.com/paxoslabs/paxos-labs-monorepo/issues/41)) ([a20e3a6](https://github.com/paxoslabs/paxos-labs-monorepo/commit/a20e3a69d76c30fef2e7f53d543ab47b323c77c4))
22
-
23
- ### Bug Fixes
24
-
25
- * address PR review feedback ([83c612c](https://github.com/paxoslabs/paxos-labs-monorepo/commit/83c612c24a2524b3d025cb0e9bd159f89a863ba1))
26
- * address PR review feedback — server errors, select a11y, startBlock validation ([d28669b](https://github.com/paxoslabs/paxos-labs-monorepo/commit/d28669b7d6d45743aef558a93364a45fc975d410))
27
- * address PR review feedback from CodeRabbit ([1567716](https://github.com/paxoslabs/paxos-labs-monorepo/commit/156771673510fa3bbd9f3e57f8dcdf401b777c5c))
28
- * **address-book-admin:** fix content overflow when sidebar is open ([61f3e61](https://github.com/paxoslabs/paxos-labs-monorepo/commit/61f3e61fe09b96bc80aed493867c269a69efb7c2))
29
- * **address-book-admin:** handle organizations query error explicitly ([a0e2163](https://github.com/paxoslabs/paxos-labs-monorepo/commit/a0e216393f314cb7abb627c1986b17d254205482))
30
- * **address-book-admin:** resolve tables not rendering due to client/server boundary violation ([c9b0006](https://github.com/paxoslabs/paxos-labs-monorepo/commit/c9b00062f833edd5f9d401fae038167eef15a1d1))
31
- * **backend-v2:** query org member by record id instead of userId in remove/update ([26bb1d0](https://github.com/paxoslabs/paxos-labs-monorepo/commit/26bb1d0fd72e1492e36b25015d57c4fbf547dcf0))
32
- * bound socket.io-parser override to ^4.2.6 to prevent unintended major upgrades ([c0f94ce](https://github.com/paxoslabs/paxos-labs-monorepo/commit/c0f94cefd24b0d1e1a11b2d372f971dcd063c390))
33
- * handle Supabase query errors in deposit token search ([7a44324](https://github.com/paxoslabs/paxos-labs-monorepo/commit/7a44324e522153e799358bac907b79aaffe39c9b))
34
- * optimistic update to continue showing new role after update succeeds ([d174c41](https://github.com/paxoslabs/paxos-labs-monorepo/commit/d174c419941d95f858d75d20aab7f9ac362374a1))
35
- * override socket.io-parser to >=4.2.6 to resolve GHSA-677m-j7p3-52f9 ([47406ea](https://github.com/paxoslabs/paxos-labs-monorepo/commit/47406ea41690428f91d72a723145c9d5d0190893))
36
- * Prevent adding deleted vault ([#35](https://github.com/paxoslabs/paxos-labs-monorepo/issues/35)) ([34b8b20](https://github.com/paxoslabs/paxos-labs-monorepo/commit/34b8b202a1b058b35ef70e8832ad751c30d4794b))
37
- * remove duplicate toast ([93fb035](https://github.com/paxoslabs/paxos-labs-monorepo/commit/93fb035ae98cc6db96c2b67fafe70975f61ee528))
38
- * revert address-book schema change ([1f77a7d](https://github.com/paxoslabs/paxos-labs-monorepo/commit/1f77a7d9608cfd714c2dffd1a3f5a41b2127976a))
39
- * sdk package version missmatch ([d89500a](https://github.com/paxoslabs/paxos-labs-monorepo/commit/d89500a161ae7ca149ba3fa4a6943c3c4a6841cd))
40
- * use viem isAddress for validation and fix TanStack Form error handling ([177bc3f](https://github.com/paxoslabs/paxos-labs-monorepo/commit/177bc3f264daddb955187c873d9f408fff30514b))
41
- * Vault deletion not working from the UI ([#34](https://github.com/paxoslabs/paxos-labs-monorepo/issues/34)) ([3328cca](https://github.com/paxoslabs/paxos-labs-monorepo/commit/3328cca120299ff256f358303a86295b5a4c0ea0))
42
-
43
- ### Documentation
44
-
45
- * **sdk:** replace deprecated getAssetsFromCache with getSupportedAssets in troubleshooting snippet ([6616961](https://github.com/paxoslabs/paxos-labs-monorepo/commit/66169611affd73f5807d66e0580c57df13d5c7bf))
46
-
47
- ### Code Refactoring
48
-
49
- * **address-book-admin:** replace Chain select with number input for Chain ID ([45fce7b](https://github.com/paxoslabs/paxos-labs-monorepo/commit/45fce7b71c1ffd97400f09573491d78577bf389f))
50
- * Extract shared utilities and simplify SDK config state ([ae23b66](https://github.com/paxoslabs/paxos-labs-monorepo/commit/ae23b6686cbd261ffef2cb7f5835e1974d59a03f))
51
- * isolate distributor_code_depositor column rename to DB layer ([631212b](https://github.com/paxoslabs/paxos-labs-monorepo/commit/631212b6fdcae70dac6e0c5f3b5c014d37471c96))
52
- * **sdk:** rename fetchVaults/fetchSupportedAssets to getVaults/getSupportedAssets ([8e65846](https://github.com/paxoslabs/paxos-labs-monorepo/commit/8e6584609eb0a184c6ffe9d4a42d36fe63f81b5a))
53
-
54
16
  ## [0.4.3-alpha.1] (2026-03-13)
55
17
 
56
18
  ### ⚠ BREAKING CHANGES
57
19
 
58
- * **vaults:** `yieldType` parameter removed from all deposit and withdrawal method arguments — replace with `vaultName: string` (e.g. `"Amplify USDC Core"`) across `prepareDepositTxData()`, `prepareDeposit()`, `prepareWithdrawOrderTxData()`, `prepareWithdrawal()`, and related authorization methods 209599d7
20
+ - **vaults:** `yieldType` parameter removed from all deposit and withdrawal method arguments — replace with `vaultName: string` (e.g. `"Amplify USDC Core"`) across `prepareDepositTxData()`, `prepareDeposit()`, `prepareWithdrawOrderTxData()`, `prepareWithdrawal()`, and related authorization methods 209599d7
59
21
 
60
22
  ### Features
61
23
 
package/README.md CHANGED
@@ -49,56 +49,56 @@ import {
49
49
  prepareDepositAuthorization,
50
50
  prepareDeposit,
51
51
  DepositAuthMethod,
52
- } from "@paxoslabs/amplify-sdk";
52
+ } from '@paxoslabs/amplify-sdk'
53
53
 
54
54
  // Initialize SDK with your API key
55
- await initAmplifySDK("pxl_your_api_key");
55
+ await initAmplifySDK('pxl_your_api_key')
56
56
 
57
57
  // Or initialize with custom RPC URLs for better reliability
58
- await initAmplifySDK("pxl_your_api_key", {
58
+ await initAmplifySDK('pxl_your_api_key', {
59
59
  rpcUrls: {
60
- 1: "https://my-eth-rpc.com", // Ethereum
61
- 999: "https://my-hyperEVM-rpc.com", // HyperEVM
60
+ 1: 'https://my-eth-rpc.com', // Ethereum
61
+ 999: 'https://my-hyperEVM-rpc.com', // HyperEVM
62
62
  },
63
- });
63
+ })
64
64
 
65
65
  // Prepare deposit authorization (auto-detects permit vs approval)
66
66
  const auth = await prepareDepositAuthorization({
67
- yieldType: "CORE",
68
- depositAsset: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC
69
- depositAmount: "1000.0",
67
+ yieldType: 'CORE',
68
+ depositAsset: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
69
+ depositAmount: '1000.0',
70
70
  to: userAddress,
71
71
  chainId: 1,
72
- });
72
+ })
73
73
 
74
74
  // Shared deposit parameters
75
75
  const depositParams = {
76
- yieldType: "CORE",
77
- depositAsset: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
78
- depositAmount: "1000.0",
76
+ yieldType: 'CORE',
77
+ depositAsset: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
78
+ depositAmount: '1000.0',
79
79
  to: userAddress,
80
80
  chainId: 1,
81
- };
81
+ }
82
82
 
83
83
  // Handle based on authorization method
84
84
  if (auth.method === DepositAuthMethod.PERMIT) {
85
85
  // Token supports EIP-2612: sign permit and deposit in one transaction
86
- const signature = await signTypedData(auth.permitData);
86
+ const signature = await signTypedData(auth.permitData)
87
87
  const tx = await prepareDeposit({
88
88
  ...depositParams,
89
89
  signature,
90
90
  deadline: auth.permitData.message.deadline,
91
- });
92
- await writeContract(tx.txData);
91
+ })
92
+ await writeContract(tx.txData)
93
93
  } else if (auth.method === DepositAuthMethod.APPROVAL) {
94
94
  // Token requires ERC20 approval: approve first, then deposit
95
- await writeContract(auth.txData);
96
- const tx = await prepareDeposit(depositParams);
97
- await writeContract(tx.txData);
95
+ await writeContract(auth.txData)
96
+ const tx = await prepareDeposit(depositParams)
97
+ await writeContract(tx.txData)
98
98
  } else if (auth.method === DepositAuthMethod.ALREADY_APPROVED) {
99
99
  // Sufficient allowance exists: proceed directly to deposit
100
- const tx = await prepareDeposit(depositParams);
101
- await writeContract(tx.txData);
100
+ const tx = await prepareDeposit(depositParams)
101
+ await writeContract(tx.txData)
102
102
  }
103
103
  ```
104
104
 
@@ -53,6 +53,14 @@ interface VaultContracts {
53
53
  baseTokenStandIn?: Address;
54
54
  communityCodeDepositorAddress?: Address;
55
55
  withdrawQueueAddress?: Address;
56
+ depositFeeModuleAddress?: Address;
57
+ withdrawFeeModuleAddress?: Address;
58
+ }
59
+ /**
60
+ * Enterprise customer configuration for compliance features (e.g. KYT).
61
+ */
62
+ interface EnterpriseConfig {
63
+ predicatePolicyId: string | null;
56
64
  }
57
65
  /**
58
66
  * A single depositable/withdrawable asset supported by a vault.
@@ -112,6 +120,39 @@ interface VaultSLA {
112
120
  externalWithdrawalQueueDelaySLA: number;
113
121
  externalAccountantRateUpdateSLA: number;
114
122
  }
123
+ /**
124
+ * Deposit cap data read on-chain from a CommunityCodeDepositor contract.
125
+ * Only populated for vaults that have both `communityCodeDepositorAddress`
126
+ * and `depositFeeModuleAddress` configured.
127
+ */
128
+ interface VaultDepositCap {
129
+ supplyCapInBase: bigint;
130
+ /** True when `supplyCapInBase` is neither `0` nor `maxUint256` (unlimited). */
131
+ hasDepositCap: boolean;
132
+ }
133
+ interface VaultDepositFeeEntry {
134
+ /** Deposit asset address, null for global/default fee that applies to all assets */
135
+ depositAsset: Address | null;
136
+ /** Fee percentage as raw bigint (denominator 1e18 for DCD contracts), 0n when no fee */
137
+ feePercentage: bigint;
138
+ /** Flat fee as raw bigint, 0n when no fee */
139
+ flatFee: bigint;
140
+ }
141
+ interface VaultDepositFees {
142
+ hasFees: boolean;
143
+ feeModuleAddress: Address | null;
144
+ fees: VaultDepositFeeEntry[];
145
+ /** ONE_HUNDRED_PERCENT constant from the fee module contract (denominator for percentage and flat fee calculations) */
146
+ oneHundredPercent?: bigint;
147
+ }
148
+ interface VaultWithdrawFees {
149
+ hasFees: boolean;
150
+ feeModuleAddress: Address | null;
151
+ /** Offer fee in basis points (e.g. 100n = 1%), 0n when no fee */
152
+ offerFeeBps: bigint;
153
+ /** Offer fee rate as raw bigint from indexer, 0n when no fee */
154
+ offerFeeRate: bigint;
155
+ }
115
156
  interface AmplifyVault {
116
157
  /** Unique identifier for the vault configuration */
117
158
  id: string;
@@ -121,12 +162,27 @@ interface AmplifyVault {
121
162
  yieldType: YieldType;
122
163
  /** Human-readable vault name */
123
164
  name: string;
165
+ /** Whether the vault is being deprecated */
166
+ inDeprecation: boolean;
124
167
  /** Vault smart contract addresses */
125
168
  vault: VaultContracts;
169
+ /** Enterprise customer configuration (compliance settings, e.g. KYT) */
170
+ enterpriseConfig?: EnterpriseConfig;
126
171
  /** SLA data from VaultSLAs table */
127
172
  sla?: VaultSLA;
173
+ /** Whether this vault uses atomic settlement via submitOrderAndProcessAll */
174
+ atomicWithdrawal: boolean;
128
175
  /** Supported deposit assets for this vault */
129
176
  supportedAssets: VaultSupportedAsset[];
177
+ /**
178
+ * Deposit cap data — only present for vaults with both a
179
+ * CommunityCodeDepositor and a deposit fee module.
180
+ */
181
+ depositCap?: VaultDepositCap;
182
+ /** (Optional) deposits fees for this vault */
183
+ depositFees?: VaultDepositFees;
184
+ /** (Optional) withdraw queue fees for this vault */
185
+ withdrawFees?: VaultWithdrawFees;
130
186
  }
131
187
  /**
132
188
  * Supported asset (token) metadata
@@ -321,4 +377,4 @@ declare function getChainFromConfig(chainId: number, config?: AmplifyVault[]): P
321
377
  */
322
378
  declare function clearChainsCache(): void;
323
379
 
324
- export { type AmplifyVault as A, type ChainId as C, type SupportedAsset as S, type VaultFilterOptions as V, type WithdrawSupportedAsset as W, YieldType as Y, type AssetFilterOptions as a, APIError as b, clearChainsCache as c, type VaultSLA as d, type VaultSupportedAsset as e, getChainFromConfig as g, toChainId as t };
380
+ export { type AmplifyVault as A, type ChainId as C, type EnterpriseConfig as E, type SupportedAsset as S, type VaultFilterOptions as V, type WithdrawSupportedAsset as W, YieldType as Y, type AssetFilterOptions as a, APIError as b, clearChainsCache as c, type VaultDepositFees as d, type VaultSLA as e, type VaultSupportedAsset as f, getChainFromConfig as g, type VaultWithdrawFees as h, toChainId as t };
@@ -53,6 +53,14 @@ interface VaultContracts {
53
53
  baseTokenStandIn?: Address;
54
54
  communityCodeDepositorAddress?: Address;
55
55
  withdrawQueueAddress?: Address;
56
+ depositFeeModuleAddress?: Address;
57
+ withdrawFeeModuleAddress?: Address;
58
+ }
59
+ /**
60
+ * Enterprise customer configuration for compliance features (e.g. KYT).
61
+ */
62
+ interface EnterpriseConfig {
63
+ predicatePolicyId: string | null;
56
64
  }
57
65
  /**
58
66
  * A single depositable/withdrawable asset supported by a vault.
@@ -112,6 +120,39 @@ interface VaultSLA {
112
120
  externalWithdrawalQueueDelaySLA: number;
113
121
  externalAccountantRateUpdateSLA: number;
114
122
  }
123
+ /**
124
+ * Deposit cap data read on-chain from a CommunityCodeDepositor contract.
125
+ * Only populated for vaults that have both `communityCodeDepositorAddress`
126
+ * and `depositFeeModuleAddress` configured.
127
+ */
128
+ interface VaultDepositCap {
129
+ supplyCapInBase: bigint;
130
+ /** True when `supplyCapInBase` is neither `0` nor `maxUint256` (unlimited). */
131
+ hasDepositCap: boolean;
132
+ }
133
+ interface VaultDepositFeeEntry {
134
+ /** Deposit asset address, null for global/default fee that applies to all assets */
135
+ depositAsset: Address | null;
136
+ /** Fee percentage as raw bigint (denominator 1e18 for DCD contracts), 0n when no fee */
137
+ feePercentage: bigint;
138
+ /** Flat fee as raw bigint, 0n when no fee */
139
+ flatFee: bigint;
140
+ }
141
+ interface VaultDepositFees {
142
+ hasFees: boolean;
143
+ feeModuleAddress: Address | null;
144
+ fees: VaultDepositFeeEntry[];
145
+ /** ONE_HUNDRED_PERCENT constant from the fee module contract (denominator for percentage and flat fee calculations) */
146
+ oneHundredPercent?: bigint;
147
+ }
148
+ interface VaultWithdrawFees {
149
+ hasFees: boolean;
150
+ feeModuleAddress: Address | null;
151
+ /** Offer fee in basis points (e.g. 100n = 1%), 0n when no fee */
152
+ offerFeeBps: bigint;
153
+ /** Offer fee rate as raw bigint from indexer, 0n when no fee */
154
+ offerFeeRate: bigint;
155
+ }
115
156
  interface AmplifyVault {
116
157
  /** Unique identifier for the vault configuration */
117
158
  id: string;
@@ -121,12 +162,27 @@ interface AmplifyVault {
121
162
  yieldType: YieldType;
122
163
  /** Human-readable vault name */
123
164
  name: string;
165
+ /** Whether the vault is being deprecated */
166
+ inDeprecation: boolean;
124
167
  /** Vault smart contract addresses */
125
168
  vault: VaultContracts;
169
+ /** Enterprise customer configuration (compliance settings, e.g. KYT) */
170
+ enterpriseConfig?: EnterpriseConfig;
126
171
  /** SLA data from VaultSLAs table */
127
172
  sla?: VaultSLA;
173
+ /** Whether this vault uses atomic settlement via submitOrderAndProcessAll */
174
+ atomicWithdrawal: boolean;
128
175
  /** Supported deposit assets for this vault */
129
176
  supportedAssets: VaultSupportedAsset[];
177
+ /**
178
+ * Deposit cap data — only present for vaults with both a
179
+ * CommunityCodeDepositor and a deposit fee module.
180
+ */
181
+ depositCap?: VaultDepositCap;
182
+ /** (Optional) deposits fees for this vault */
183
+ depositFees?: VaultDepositFees;
184
+ /** (Optional) withdraw queue fees for this vault */
185
+ withdrawFees?: VaultWithdrawFees;
130
186
  }
131
187
  /**
132
188
  * Supported asset (token) metadata
@@ -321,4 +377,4 @@ declare function getChainFromConfig(chainId: number, config?: AmplifyVault[]): P
321
377
  */
322
378
  declare function clearChainsCache(): void;
323
379
 
324
- export { type AmplifyVault as A, type ChainId as C, type SupportedAsset as S, type VaultFilterOptions as V, type WithdrawSupportedAsset as W, YieldType as Y, type AssetFilterOptions as a, APIError as b, clearChainsCache as c, type VaultSLA as d, type VaultSupportedAsset as e, getChainFromConfig as g, toChainId as t };
380
+ export { type AmplifyVault as A, type ChainId as C, type EnterpriseConfig as E, type SupportedAsset as S, type VaultFilterOptions as V, type WithdrawSupportedAsset as W, YieldType as Y, type AssetFilterOptions as a, APIError as b, clearChainsCache as c, type VaultDepositFees as d, type VaultSLA as e, type VaultSupportedAsset as f, getChainFromConfig as g, type VaultWithdrawFees as h, toChainId as t };