@paxoslabs/amplify-sdk 0.1.1-beta.0 → 0.1.1-beta.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.
- package/CHANGELOG.md +13 -1
- package/dist/index.d.mts +23 -9
- package/dist/index.d.ts +23 -9
- 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 +4 -4
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { calculateDeadline } from './chunk-REKEQLQA.mjs';
|
|
|
8
8
|
import { WAD } from './chunk-7RWWVUHP.mjs';
|
|
9
9
|
import { findVaultByConfig, APIError, getAssetsFromCache, DEFAULT_APPROVAL_AMOUNT, fetchSupportedAssets, ATOMIC_QUEUE_CONTRACT_ADDRESS, DEFAULT_DEADLINE } from './chunk-CUGK4ZBJ.mjs';
|
|
10
10
|
export { APIError, fetchSupportedAssets, fetchVaults, findVaultByConfig, getAssetsFromCache, getCache, getWithdrawSupportedAssets, initAmplifySDK, initializeCache, refreshVaultCache } from './chunk-CUGK4ZBJ.mjs';
|
|
11
|
-
import { parseUnits, erc20Abi,
|
|
11
|
+
import { parseUnits, erc20Abi, stringToHex, hexToSignature } from 'viem';
|
|
12
12
|
|
|
13
13
|
async function prepareApproveDepositTokenTxData({
|
|
14
14
|
yieldType,
|
|
@@ -416,7 +416,7 @@ async function prepareDepositTxData(params) {
|
|
|
416
416
|
depositAmountAsBigInt,
|
|
417
417
|
minimumMint,
|
|
418
418
|
recipientAddress,
|
|
419
|
-
|
|
419
|
+
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
|
-
|
|
790
|
+
stringToHex(partnerCode || ""),
|
|
791
791
|
deadline,
|
|
792
792
|
v,
|
|
793
793
|
r,
|