@paxoslabs/amplify-sdk 0.1.1-alpha.3 → 0.1.1-alpha.5
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 +4 -0
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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.5](///compare/v0.1.1-alpha.4...v0.1.1-alpha.5) (2025-12-10)
|
|
12
|
+
|
|
13
|
+
## [0.1.1-alpha.4](///compare/v0.1.1-alpha.3...v0.1.1-alpha.4) (2025-12-10)
|
|
14
|
+
|
|
11
15
|
## [0.1.1-alpha.3](///compare/v0.1.1-alpha.2...v0.1.1-alpha.3) (2025-12-10)
|
|
12
16
|
|
|
13
17
|
## [0.1.1-alpha.2](///compare/v0.1.1-alpha.1...v0.1.1-alpha.2) (2025-12-10)
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, erc20Abi,
|
|
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';
|
|
@@ -828,7 +828,7 @@ declare const CommunityCodeDepositorAbi: readonly [{
|
|
|
828
828
|
* @property {typeof CommunityCodeDepositorAbi} abi - ABI for the CommunityCodeDepositor contract
|
|
829
829
|
* @property {Address} address - Address of the CommunityCodeDepositor contract
|
|
830
830
|
* @property {'deposit'} functionName - Name of the function to call
|
|
831
|
-
* @property {[Address, bigint, bigint, Address,
|
|
831
|
+
* @property {readonly [depositAsset: Address, depositAmount: bigint, minimumMint: bigint, to: Address, distributorCode: Hex]} args - Arguments for the deposit function:
|
|
832
832
|
* [depositAsset, depositAmount, minimumMint, recipientAddress, distributorCode]
|
|
833
833
|
* @property {number} chainId - ID of the chain where the transaction should be executed
|
|
834
834
|
*/
|
|
@@ -841,7 +841,7 @@ interface DepositTxData {
|
|
|
841
841
|
depositAmount: bigint,
|
|
842
842
|
minimumMint: bigint,
|
|
843
843
|
to: Address,
|
|
844
|
-
distributorCode:
|
|
844
|
+
distributorCode: Hex
|
|
845
845
|
];
|
|
846
846
|
chainId: number;
|
|
847
847
|
}
|
|
@@ -990,7 +990,7 @@ interface PrepareDepositPermitSignatureParams {
|
|
|
990
990
|
*
|
|
991
991
|
* @property abi - Contract ABI
|
|
992
992
|
* @property functionName - Function name to call
|
|
993
|
-
* @property args - Function arguments
|
|
993
|
+
* @property {readonly [depositAsset: Address, depositAmount: bigint, minimumMint: bigint, to: Address, distributorCode: Hex, deadline: bigint, v: number, r: Hex, s: Hex]} args - Function arguments
|
|
994
994
|
* @property address - Teller contract address
|
|
995
995
|
* @property chainId - Chain ID for transaction
|
|
996
996
|
*/
|
|
@@ -1002,7 +1002,7 @@ interface DepositWithPermitData {
|
|
|
1002
1002
|
depositAmount: bigint,
|
|
1003
1003
|
minimumMint: bigint,
|
|
1004
1004
|
to: Address,
|
|
1005
|
-
distributorCode:
|
|
1005
|
+
distributorCode: Hex,
|
|
1006
1006
|
deadline: bigint,
|
|
1007
1007
|
v: number,
|
|
1008
1008
|
r: Hex,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, erc20Abi,
|
|
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';
|
|
@@ -828,7 +828,7 @@ declare const CommunityCodeDepositorAbi: readonly [{
|
|
|
828
828
|
* @property {typeof CommunityCodeDepositorAbi} abi - ABI for the CommunityCodeDepositor contract
|
|
829
829
|
* @property {Address} address - Address of the CommunityCodeDepositor contract
|
|
830
830
|
* @property {'deposit'} functionName - Name of the function to call
|
|
831
|
-
* @property {[Address, bigint, bigint, Address,
|
|
831
|
+
* @property {readonly [depositAsset: Address, depositAmount: bigint, minimumMint: bigint, to: Address, distributorCode: Hex]} args - Arguments for the deposit function:
|
|
832
832
|
* [depositAsset, depositAmount, minimumMint, recipientAddress, distributorCode]
|
|
833
833
|
* @property {number} chainId - ID of the chain where the transaction should be executed
|
|
834
834
|
*/
|
|
@@ -841,7 +841,7 @@ interface DepositTxData {
|
|
|
841
841
|
depositAmount: bigint,
|
|
842
842
|
minimumMint: bigint,
|
|
843
843
|
to: Address,
|
|
844
|
-
distributorCode:
|
|
844
|
+
distributorCode: Hex
|
|
845
845
|
];
|
|
846
846
|
chainId: number;
|
|
847
847
|
}
|
|
@@ -990,7 +990,7 @@ interface PrepareDepositPermitSignatureParams {
|
|
|
990
990
|
*
|
|
991
991
|
* @property abi - Contract ABI
|
|
992
992
|
* @property functionName - Function name to call
|
|
993
|
-
* @property args - Function arguments
|
|
993
|
+
* @property {readonly [depositAsset: Address, depositAmount: bigint, minimumMint: bigint, to: Address, distributorCode: Hex, deadline: bigint, v: number, r: Hex, s: Hex]} args - Function arguments
|
|
994
994
|
* @property address - Teller contract address
|
|
995
995
|
* @property chainId - Chain ID for transaction
|
|
996
996
|
*/
|
|
@@ -1002,7 +1002,7 @@ interface DepositWithPermitData {
|
|
|
1002
1002
|
depositAmount: bigint,
|
|
1003
1003
|
minimumMint: bigint,
|
|
1004
1004
|
to: Address,
|
|
1005
|
-
distributorCode:
|
|
1005
|
+
distributorCode: Hex,
|
|
1006
1006
|
deadline: bigint,
|
|
1007
1007
|
v: number,
|
|
1008
1008
|
r: Hex,
|
package/dist/index.js
CHANGED
|
@@ -416,7 +416,7 @@ async function prepareDepositTxData(params) {
|
|
|
416
416
|
depositAmountAsBigInt,
|
|
417
417
|
minimumMint,
|
|
418
418
|
recipientAddress,
|
|
419
|
-
viem.
|
|
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.
|
|
790
|
+
viem.stringToHex(partnerCode || ""),
|
|
791
791
|
deadline,
|
|
792
792
|
v,
|
|
793
793
|
r,
|