@paxoslabs/amplify-sdk 0.1.1-alpha.2 → 0.1.1-alpha.4

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 CHANGED
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
  <!-- auto-changelog-above -->
9
9
 
10
10
 
11
+ ## [0.1.1-alpha.4](///compare/v0.1.1-alpha.3...v0.1.1-alpha.4) (2025-12-10)
12
+
13
+ ## [0.1.1-alpha.3](///compare/v0.1.1-alpha.2...v0.1.1-alpha.3) (2025-12-10)
14
+
11
15
  ## [0.1.1-alpha.2](///compare/v0.1.1-alpha.1...v0.1.1-alpha.2) (2025-12-10)
12
16
 
13
17
  ### Bug Fixes
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Address, erc20Abi, ByteArray, Hex } from 'viem';
1
+ import { Address, erc20Abi, Hex } from 'viem';
2
2
  import { A as AmplifyVault, S as SupportedAsset, a as AssetFilterOptions, V as VaultFilterOptions, W as WithdrawSupportedAsset } from './amplify-sdk-api-Biol0OIp.mjs';
3
3
  export { b as APIError } from './amplify-sdk-api-Biol0OIp.mjs';
4
4
  export { g as getDepositExchangeRate, a as getWithdrawExchangeRate, i as isDepositSpendApproved, b as isWithdrawalSpendApproved } from './exchange-rate-BfPH_fQt.mjs';
@@ -836,7 +836,13 @@ interface DepositTxData {
836
836
  abi: typeof CommunityCodeDepositorAbi;
837
837
  address: Address;
838
838
  functionName: "deposit";
839
- args: readonly [Address, bigint, bigint, Address, ByteArray];
839
+ args: readonly [
840
+ depositAsset: Address,
841
+ depositAmount: bigint,
842
+ minimumMint: bigint,
843
+ to: Address,
844
+ distributorCode: Hex
845
+ ];
840
846
  chainId: number;
841
847
  }
842
848
  /**
@@ -991,7 +997,17 @@ interface PrepareDepositPermitSignatureParams {
991
997
  interface DepositWithPermitData {
992
998
  abi: typeof CommunityCodeDepositorAbi;
993
999
  functionName: "depositWithPermit";
994
- args: [Address, bigint, bigint, Address, ByteArray, bigint, number, Hex, Hex];
1000
+ args: readonly [
1001
+ depositAsset: Address,
1002
+ depositAmount: bigint,
1003
+ minimumMint: bigint,
1004
+ to: Address,
1005
+ distributorCode: Hex,
1006
+ deadline: bigint,
1007
+ v: number,
1008
+ r: Hex,
1009
+ s: Hex
1010
+ ];
995
1011
  }
996
1012
  interface UnencodedDepositWithPermitData {
997
1013
  data: DepositWithPermitData;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Address, erc20Abi, ByteArray, Hex } from 'viem';
1
+ import { Address, erc20Abi, Hex } from 'viem';
2
2
  import { A as AmplifyVault, S as SupportedAsset, a as AssetFilterOptions, V as VaultFilterOptions, W as WithdrawSupportedAsset } from './amplify-sdk-api-DGRgEybp.js';
3
3
  export { b as APIError } from './amplify-sdk-api-DGRgEybp.js';
4
4
  export { g as getDepositExchangeRate, a as getWithdrawExchangeRate, i as isDepositSpendApproved, b as isWithdrawalSpendApproved } from './exchange-rate-Cp1ddpw4.js';
@@ -836,7 +836,13 @@ interface DepositTxData {
836
836
  abi: typeof CommunityCodeDepositorAbi;
837
837
  address: Address;
838
838
  functionName: "deposit";
839
- args: readonly [Address, bigint, bigint, Address, ByteArray];
839
+ args: readonly [
840
+ depositAsset: Address,
841
+ depositAmount: bigint,
842
+ minimumMint: bigint,
843
+ to: Address,
844
+ distributorCode: Hex
845
+ ];
840
846
  chainId: number;
841
847
  }
842
848
  /**
@@ -991,7 +997,17 @@ interface PrepareDepositPermitSignatureParams {
991
997
  interface DepositWithPermitData {
992
998
  abi: typeof CommunityCodeDepositorAbi;
993
999
  functionName: "depositWithPermit";
994
- args: [Address, bigint, bigint, Address, ByteArray, bigint, number, Hex, Hex];
1000
+ args: readonly [
1001
+ depositAsset: Address,
1002
+ depositAmount: bigint,
1003
+ minimumMint: bigint,
1004
+ to: Address,
1005
+ distributorCode: Hex,
1006
+ deadline: bigint,
1007
+ v: number,
1008
+ r: Hex,
1009
+ s: Hex
1010
+ ];
995
1011
  }
996
1012
  interface UnencodedDepositWithPermitData {
997
1013
  data: DepositWithPermitData;
package/dist/index.js CHANGED
@@ -416,7 +416,7 @@ async function prepareDepositTxData(params) {
416
416
  depositAmountAsBigInt,
417
417
  minimumMint,
418
418
  recipientAddress,
419
- viem.toBytes(partnerCode || "")
419
+ viem.stringToHex(partnerCode || "")
420
420
  ],
421
421
  chainId: normalizedChainId
422
422
  };
@@ -787,7 +787,7 @@ async function prepareDepositWithPermitTxData(params) {
787
787
  depositAmountAsBigInt,
788
788
  minimumMint,
789
789
  recipientAddress,
790
- viem.toBytes(partnerCode || ""),
790
+ viem.stringToHex(partnerCode || ""),
791
791
  deadline,
792
792
  v,
793
793
  r,