@paxoslabs/amplify-sdk 0.4.3-alpha.1 → 0.5.1

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 (48) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/{chain-utils-CpOJcWig.d.mts → chain-utils-D_b2LEEi.d.mts} +2 -0
  3. package/dist/{chain-utils-CpOJcWig.d.ts → chain-utils-D_b2LEEi.d.ts} +2 -0
  4. package/dist/{chunk-HV2LE2M6.mjs → chunk-3D6EDR3Z.mjs} +8 -8
  5. package/dist/{chunk-HV2LE2M6.mjs.map → chunk-3D6EDR3Z.mjs.map} +1 -1
  6. package/dist/{chunk-MB6HYA7R.js → chunk-AUDMOT6F.js} +22 -15
  7. package/dist/chunk-AUDMOT6F.js.map +1 -0
  8. package/dist/{chunk-PKGFLHZA.js → chunk-E5DH5YEE.js} +30 -13
  9. package/dist/chunk-E5DH5YEE.js.map +1 -0
  10. package/dist/{chunk-USF4CU2K.mjs → chunk-E6SBQNDA.mjs} +3 -3
  11. package/dist/{chunk-USF4CU2K.mjs.map → chunk-E6SBQNDA.mjs.map} +1 -1
  12. package/dist/{chunk-7JMQWERX.mjs → chunk-JLZL25CY.mjs} +29 -13
  13. package/dist/chunk-JLZL25CY.mjs.map +1 -0
  14. package/dist/{chunk-R35K46S5.js → chunk-L5XT67QZ.js} +111 -111
  15. package/dist/{chunk-R35K46S5.js.map → chunk-L5XT67QZ.js.map} +1 -1
  16. package/dist/{chunk-UM7S7U45.mjs → chunk-WJGSTAPB.mjs} +5 -5
  17. package/dist/{chunk-UM7S7U45.mjs.map → chunk-WJGSTAPB.mjs.map} +1 -1
  18. package/dist/{chunk-YEAWQB72.js → chunk-XVDK6J72.js} +62 -62
  19. package/dist/{chunk-YEAWQB72.js.map → chunk-XVDK6J72.js.map} +1 -1
  20. package/dist/{chunk-KXU3GSF4.mjs → chunk-Y6RXVDQN.mjs} +15 -8
  21. package/dist/chunk-Y6RXVDQN.mjs.map +1 -0
  22. package/dist/{chunk-JTURYJHV.js → chunk-YAYUSBC6.js} +12 -12
  23. package/dist/{chunk-JTURYJHV.js.map → chunk-YAYUSBC6.js.map} +1 -1
  24. package/dist/core.d.mts +2 -2
  25. package/dist/core.d.ts +2 -2
  26. package/dist/core.js +16 -16
  27. package/dist/core.mjs +4 -4
  28. package/dist/display.d.mts +1 -1
  29. package/dist/display.d.ts +1 -1
  30. package/dist/display.js +10 -10
  31. package/dist/display.mjs +4 -4
  32. package/dist/index.d.mts +21 -20
  33. package/dist/index.d.ts +21 -20
  34. package/dist/index.js +63 -63
  35. package/dist/index.mjs +5 -5
  36. package/dist/utils.d.mts +1 -1
  37. package/dist/utils.d.ts +1 -1
  38. package/dist/utils.js +7 -7
  39. package/dist/utils.mjs +2 -2
  40. package/dist/vaults.d.mts +1 -1
  41. package/dist/vaults.d.ts +1 -1
  42. package/dist/vaults.js +25 -25
  43. package/dist/vaults.mjs +4 -4
  44. package/package.json +1 -1
  45. package/dist/chunk-7JMQWERX.mjs.map +0 -1
  46. package/dist/chunk-KXU3GSF4.mjs.map +0 -1
  47. package/dist/chunk-MB6HYA7R.js.map +0 -1
  48. package/dist/chunk-PKGFLHZA.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  <!-- auto-changelog-above -->
9
9
 
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
+
10
54
  ## [0.4.3-alpha.1] (2026-03-13)
11
55
 
12
56
  ### ⚠ BREAKING CHANGES
@@ -60,6 +60,8 @@ interface VaultContracts {
60
60
  interface VaultSupportedAsset {
61
61
  /** Token contract address */
62
62
  address: Address;
63
+ /** Chain ID where this asset can be deposited/withdrawn (may differ from vault chain for cross-chain vaults) */
64
+ chainId?: number;
63
65
  /** Token symbol (e.g., USDC, USDT) */
64
66
  symbol: string;
65
67
  /** Full token name (e.g., USD Coin) */
@@ -60,6 +60,8 @@ interface VaultContracts {
60
60
  interface VaultSupportedAsset {
61
61
  /** Token contract address */
62
62
  address: Address;
63
+ /** Chain ID where this asset can be deposited/withdrawn (may differ from vault chain for cross-chain vaults) */
64
+ chainId?: number;
63
65
  /** Token symbol (e.g., USDC, USDT) */
64
66
  symbol: string;
65
67
  /** Full token name (e.g., USD Coin) */
@@ -1,7 +1,7 @@
1
- import { resolveVault, WithdrawQueueAbi } from './chunk-KXU3GSF4.mjs';
2
- import { getTokenPermitInfoWithAllowance, getErc20AllowanceWithDecimals, getRateInQuoteWithAssetDecimals, erc2612Abi, getErc20Decimals, BoringVaultAbi } from './chunk-USF4CU2K.mjs';
1
+ import { resolveVault, WithdrawQueueAbi } from './chunk-Y6RXVDQN.mjs';
2
+ import { getTokenPermitInfoWithAllowance, getErc20AllowanceWithDecimals, getRateInQuoteWithAssetDecimals, erc2612Abi, getErc20Decimals, BoringVaultAbi } from './chunk-E6SBQNDA.mjs';
3
3
  import { WAD } from './chunk-7RWWVUHP.mjs';
4
- import { toChainId, APIError, getAssetsFromCache, DEFAULT_APPROVAL_AMOUNT, DEFAULT_SLIPPAGE_BPS, getClient } from './chunk-7JMQWERX.mjs';
4
+ import { toChainId, APIError, getSupportedAssets, DEFAULT_APPROVAL_AMOUNT, DEFAULT_SLIPPAGE_BPS, getClient } from './chunk-JLZL25CY.mjs';
5
5
  import { formatUnits, parseUnits, erc20Abi, stringToHex, hexToSignature } from 'viem';
6
6
 
7
7
  var isDepositSpendApproved = async ({
@@ -151,7 +151,7 @@ async function prepareApproveDepositTokenTxData({
151
151
  { endpoint: "prepareApproveDepositToken" }
152
152
  );
153
153
  }
154
- const assets = await getAssetsFromCache({ address: depositAsset });
154
+ const assets = await getSupportedAssets({ address: depositAsset });
155
155
  if (assets.length === 0) {
156
156
  throw new APIError(
157
157
  `Asset metadata not found for token ${depositAsset} on chain ${normalizedChainId}`,
@@ -449,7 +449,7 @@ async function prepareDepositTxData(params) {
449
449
  chainId: normalizedChainId,
450
450
  callerEndpoint: "prepareDepositTransactionData"
451
451
  });
452
- const assets = await getAssetsFromCache({ address: depositAsset });
452
+ const assets = await getSupportedAssets({ address: depositAsset });
453
453
  const asset = assets.find((a) => a.chains.includes(normalizedChainId)) || assets.find((a) => a.address.toLowerCase() === depositAsset.toLowerCase());
454
454
  if (!asset) {
455
455
  throw new APIError(
@@ -776,7 +776,7 @@ async function prepareDepositWithPermitTxData(params) {
776
776
  callerEndpoint: "prepareDepositWithPermitTxData"
777
777
  });
778
778
  let asset = null;
779
- const assets = await getAssetsFromCache({ address: depositAsset });
779
+ const assets = await getSupportedAssets({ address: depositAsset });
780
780
  if (assets.length > 0) {
781
781
  asset = assets.find((a) => a.chains.includes(normalizedChainId)) || assets[0] || null;
782
782
  }
@@ -1407,5 +1407,5 @@ async function prepareWithdrawalAuthorization(params) {
1407
1407
  }
1408
1408
 
1409
1409
  export { DepositAuthMethod, PERMIT_TYPES, WithdrawAuthMethod, isAlreadyApprovedAuth, isApprovalAuth, isDepositSpendApproved, isPermitAuth, isWithdrawAlreadyApprovedAuth, isWithdrawApprovalAuth, isWithdrawalSpendApproved, parsePermitSignature, prepareApproveDepositTokenTxData, prepareApproveWithdrawOrderTxData, prepareCancelWithdrawOrderTxData, prepareDeposit, prepareDepositAuthorization, prepareDepositPermitSignature, prepareDepositTxData, prepareDepositWithPermitTxData, prepareWithdrawOrderTxData, prepareWithdrawal, prepareWithdrawalAuthorization, toEthSignTypedDataV4 };
1410
- //# sourceMappingURL=chunk-HV2LE2M6.mjs.map
1411
- //# sourceMappingURL=chunk-HV2LE2M6.mjs.map
1410
+ //# sourceMappingURL=chunk-3D6EDR3Z.mjs.map
1411
+ //# sourceMappingURL=chunk-3D6EDR3Z.mjs.map