@paxoslabs/amplify-sdk 0.1.1-alpha.1 → 0.1.1-alpha.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.
- package/CHANGELOG.md +8 -0
- package/dist/index.d.mts +20 -6
- package/dist/index.d.ts +20 -6
- 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,14 @@ 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.3](///compare/v0.1.1-alpha.2...v0.1.1-alpha.3) (2025-12-10)
|
|
12
|
+
|
|
13
|
+
## [0.1.1-alpha.2](///compare/v0.1.1-alpha.1...v0.1.1-alpha.2) (2025-12-10)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **types:** correct DepositTxData args tuple and withdraw docs 748593e
|
|
18
|
+
|
|
11
19
|
## [0.1.1-alpha.1](///compare/v0.1.1-alpha.0...v0.1.1-alpha.1) (2025-12-10)
|
|
12
20
|
|
|
13
21
|
### Bug Fixes
|
package/dist/index.d.mts
CHANGED
|
@@ -836,7 +836,13 @@ interface DepositTxData {
|
|
|
836
836
|
abi: typeof CommunityCodeDepositorAbi;
|
|
837
837
|
address: Address;
|
|
838
838
|
functionName: "deposit";
|
|
839
|
-
args: [
|
|
839
|
+
args: readonly [
|
|
840
|
+
depositAsset: Address,
|
|
841
|
+
depositAmount: bigint,
|
|
842
|
+
minimumMint: bigint,
|
|
843
|
+
to: Address,
|
|
844
|
+
distributorCode: ByteArray
|
|
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: [
|
|
1000
|
+
args: readonly [
|
|
1001
|
+
depositAsset: Address,
|
|
1002
|
+
depositAmount: bigint,
|
|
1003
|
+
minimumMint: bigint,
|
|
1004
|
+
to: Address,
|
|
1005
|
+
distributorCode: ByteArray,
|
|
1006
|
+
deadline: bigint,
|
|
1007
|
+
v: number,
|
|
1008
|
+
r: Hex,
|
|
1009
|
+
s: Hex
|
|
1010
|
+
];
|
|
995
1011
|
}
|
|
996
1012
|
interface UnencodedDepositWithPermitData {
|
|
997
1013
|
data: DepositWithPermitData;
|
|
@@ -3457,7 +3473,6 @@ type UserRequest = {
|
|
|
3457
3473
|
* @property {Address} wantAssetAddress - Address of the want token
|
|
3458
3474
|
* @property {ChainId} chainId - ID of the chain where the withdrawal will occur
|
|
3459
3475
|
* @property {string} offerAmount - Amount of vault shares to withdraw as a decimal string
|
|
3460
|
-
* @property {Address} recipientAddress - Ethereum address of the user making the withdrawal
|
|
3461
3476
|
* @property {number} [deadline] - Unix timestamp when the request expires (optional)
|
|
3462
3477
|
* @property {number} [slippage] - Maximum acceptable slippage in basis points (optional, default: 100 for 1%)
|
|
3463
3478
|
*
|
|
@@ -3522,10 +3537,9 @@ interface WithdrawTxData {
|
|
|
3522
3537
|
* yieldType: 'PRIME',
|
|
3523
3538
|
* wantAssetAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
3524
3539
|
* chainId: 1,
|
|
3525
|
-
* recipientAddress: '0x1234...',
|
|
3526
3540
|
* offerAmount: "1.0", // 1 vault share
|
|
3527
|
-
* deadline: Math.floor(Date.now() / 1000) + 3600, //
|
|
3528
|
-
* slippage: 100, //
|
|
3541
|
+
* deadline: Math.floor(Date.now() / 1000) + 3600, // Optional: Defaults to 3 days from now
|
|
3542
|
+
* slippage: 100, // Optional: Defaults to 0.5% slippage (50 bps)
|
|
3529
3543
|
* });
|
|
3530
3544
|
* ```
|
|
3531
3545
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -836,7 +836,13 @@ interface DepositTxData {
|
|
|
836
836
|
abi: typeof CommunityCodeDepositorAbi;
|
|
837
837
|
address: Address;
|
|
838
838
|
functionName: "deposit";
|
|
839
|
-
args: [
|
|
839
|
+
args: readonly [
|
|
840
|
+
depositAsset: Address,
|
|
841
|
+
depositAmount: bigint,
|
|
842
|
+
minimumMint: bigint,
|
|
843
|
+
to: Address,
|
|
844
|
+
distributorCode: ByteArray
|
|
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: [
|
|
1000
|
+
args: readonly [
|
|
1001
|
+
depositAsset: Address,
|
|
1002
|
+
depositAmount: bigint,
|
|
1003
|
+
minimumMint: bigint,
|
|
1004
|
+
to: Address,
|
|
1005
|
+
distributorCode: ByteArray,
|
|
1006
|
+
deadline: bigint,
|
|
1007
|
+
v: number,
|
|
1008
|
+
r: Hex,
|
|
1009
|
+
s: Hex
|
|
1010
|
+
];
|
|
995
1011
|
}
|
|
996
1012
|
interface UnencodedDepositWithPermitData {
|
|
997
1013
|
data: DepositWithPermitData;
|
|
@@ -3457,7 +3473,6 @@ type UserRequest = {
|
|
|
3457
3473
|
* @property {Address} wantAssetAddress - Address of the want token
|
|
3458
3474
|
* @property {ChainId} chainId - ID of the chain where the withdrawal will occur
|
|
3459
3475
|
* @property {string} offerAmount - Amount of vault shares to withdraw as a decimal string
|
|
3460
|
-
* @property {Address} recipientAddress - Ethereum address of the user making the withdrawal
|
|
3461
3476
|
* @property {number} [deadline] - Unix timestamp when the request expires (optional)
|
|
3462
3477
|
* @property {number} [slippage] - Maximum acceptable slippage in basis points (optional, default: 100 for 1%)
|
|
3463
3478
|
*
|
|
@@ -3522,10 +3537,9 @@ interface WithdrawTxData {
|
|
|
3522
3537
|
* yieldType: 'PRIME',
|
|
3523
3538
|
* wantAssetAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
3524
3539
|
* chainId: 1,
|
|
3525
|
-
* recipientAddress: '0x1234...',
|
|
3526
3540
|
* offerAmount: "1.0", // 1 vault share
|
|
3527
|
-
* deadline: Math.floor(Date.now() / 1000) + 3600, //
|
|
3528
|
-
* slippage: 100, //
|
|
3541
|
+
* deadline: Math.floor(Date.now() / 1000) + 3600, // Optional: Defaults to 3 days from now
|
|
3542
|
+
* slippage: 100, // Optional: Defaults to 0.5% slippage (50 bps)
|
|
3529
3543
|
* });
|
|
3530
3544
|
* ```
|
|
3531
3545
|
*
|
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.stringToBytes(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.stringToBytes(partnerCode || ""),
|
|
791
791
|
deadline,
|
|
792
792
|
v,
|
|
793
793
|
r,
|