@paxoslabs/amplify-sdk 0.1.1-alpha.1 → 0.1.1-alpha.2
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 +6 -0
- package/dist/index.d.mts +3 -5
- package/dist/index.d.ts +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,12 @@ 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.2](///compare/v0.1.1-alpha.1...v0.1.1-alpha.2) (2025-12-10)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **types:** correct DepositTxData args tuple and withdraw docs 748593e
|
|
16
|
+
|
|
11
17
|
## [0.1.1-alpha.1](///compare/v0.1.1-alpha.0...v0.1.1-alpha.1) (2025-12-10)
|
|
12
18
|
|
|
13
19
|
### Bug Fixes
|
package/dist/index.d.mts
CHANGED
|
@@ -836,7 +836,7 @@ interface DepositTxData {
|
|
|
836
836
|
abi: typeof CommunityCodeDepositorAbi;
|
|
837
837
|
address: Address;
|
|
838
838
|
functionName: "deposit";
|
|
839
|
-
args: [Address, bigint, bigint, Address, ByteArray];
|
|
839
|
+
args: readonly [Address, bigint, bigint, Address, ByteArray];
|
|
840
840
|
chainId: number;
|
|
841
841
|
}
|
|
842
842
|
/**
|
|
@@ -3457,7 +3457,6 @@ type UserRequest = {
|
|
|
3457
3457
|
* @property {Address} wantAssetAddress - Address of the want token
|
|
3458
3458
|
* @property {ChainId} chainId - ID of the chain where the withdrawal will occur
|
|
3459
3459
|
* @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
3460
|
* @property {number} [deadline] - Unix timestamp when the request expires (optional)
|
|
3462
3461
|
* @property {number} [slippage] - Maximum acceptable slippage in basis points (optional, default: 100 for 1%)
|
|
3463
3462
|
*
|
|
@@ -3522,10 +3521,9 @@ interface WithdrawTxData {
|
|
|
3522
3521
|
* yieldType: 'PRIME',
|
|
3523
3522
|
* wantAssetAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
3524
3523
|
* chainId: 1,
|
|
3525
|
-
* recipientAddress: '0x1234...',
|
|
3526
3524
|
* offerAmount: "1.0", // 1 vault share
|
|
3527
|
-
* deadline: Math.floor(Date.now() / 1000) + 3600, //
|
|
3528
|
-
* slippage: 100, //
|
|
3525
|
+
* deadline: Math.floor(Date.now() / 1000) + 3600, // Optional: Defaults to 3 days from now
|
|
3526
|
+
* slippage: 100, // Optional: Defaults to 0.5% slippage (50 bps)
|
|
3529
3527
|
* });
|
|
3530
3528
|
* ```
|
|
3531
3529
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -836,7 +836,7 @@ interface DepositTxData {
|
|
|
836
836
|
abi: typeof CommunityCodeDepositorAbi;
|
|
837
837
|
address: Address;
|
|
838
838
|
functionName: "deposit";
|
|
839
|
-
args: [Address, bigint, bigint, Address, ByteArray];
|
|
839
|
+
args: readonly [Address, bigint, bigint, Address, ByteArray];
|
|
840
840
|
chainId: number;
|
|
841
841
|
}
|
|
842
842
|
/**
|
|
@@ -3457,7 +3457,6 @@ type UserRequest = {
|
|
|
3457
3457
|
* @property {Address} wantAssetAddress - Address of the want token
|
|
3458
3458
|
* @property {ChainId} chainId - ID of the chain where the withdrawal will occur
|
|
3459
3459
|
* @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
3460
|
* @property {number} [deadline] - Unix timestamp when the request expires (optional)
|
|
3462
3461
|
* @property {number} [slippage] - Maximum acceptable slippage in basis points (optional, default: 100 for 1%)
|
|
3463
3462
|
*
|
|
@@ -3522,10 +3521,9 @@ interface WithdrawTxData {
|
|
|
3522
3521
|
* yieldType: 'PRIME',
|
|
3523
3522
|
* wantAssetAddress: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
3524
3523
|
* chainId: 1,
|
|
3525
|
-
* recipientAddress: '0x1234...',
|
|
3526
3524
|
* offerAmount: "1.0", // 1 vault share
|
|
3527
|
-
* deadline: Math.floor(Date.now() / 1000) + 3600, //
|
|
3528
|
-
* slippage: 100, //
|
|
3525
|
+
* deadline: Math.floor(Date.now() / 1000) + 3600, // Optional: Defaults to 3 days from now
|
|
3526
|
+
* slippage: 100, // Optional: Defaults to 0.5% slippage (50 bps)
|
|
3529
3527
|
* });
|
|
3530
3528
|
* ```
|
|
3531
3529
|
*
|