@morpho-org/bundler-sdk-viem 3.3.0 → 3.3.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/lib/operations.js +10 -1
- package/package.json +7 -7
package/lib/operations.js
CHANGED
|
@@ -623,7 +623,6 @@ const finalizeBundle = (operations, startData, receiver, unwrapTokens = new Set(
|
|
|
623
623
|
case "Blue_Repay":
|
|
624
624
|
case "Blue_Supply":
|
|
625
625
|
case "Blue_Withdraw":
|
|
626
|
-
case "Blue_Paraswap_BuyDebt":
|
|
627
626
|
uniqueSkimTokens.add(startData.getMarket(operation.args.id).params.loanToken);
|
|
628
627
|
break;
|
|
629
628
|
case "Blue_WithdrawCollateral":
|
|
@@ -634,7 +633,17 @@ const finalizeBundle = (operations, startData, receiver, unwrapTokens = new Set(
|
|
|
634
633
|
uniqueSkimTokens.add(operation.args.token);
|
|
635
634
|
break;
|
|
636
635
|
case "Paraswap_Buy":
|
|
636
|
+
uniqueSkimTokens.add(operation.address);
|
|
637
|
+
uniqueSkimTokens.add(operation.args.srcToken);
|
|
638
|
+
break;
|
|
639
|
+
case "Blue_Paraswap_BuyDebt":
|
|
640
|
+
uniqueSkimTokens.add(startData.getMarket(operation.args.id).params.loanToken);
|
|
641
|
+
uniqueSkimTokens.add(operation.args.srcToken);
|
|
642
|
+
break;
|
|
637
643
|
case "Paraswap_Sell":
|
|
644
|
+
uniqueSkimTokens.add(operation.address);
|
|
645
|
+
uniqueSkimTokens.add(operation.args.dstToken);
|
|
646
|
+
break;
|
|
638
647
|
case "Erc20_Transfer":
|
|
639
648
|
case "Erc20_Transfer2":
|
|
640
649
|
uniqueSkimTokens.add(operation.address);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morpho-org/bundler-sdk-viem",
|
|
3
3
|
"description": "Viem-based extension of `@morpho-org/simulation-sdk` that exports utilities to transform simple interactions on Morpho (such as `Blue_Borrow`) and Morpho Vaults (such as `MetaMorpho_Deposit`) into the required bundles (with ERC20 approvals, transfers, etc) to submit to the bundler onchain.",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.1",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Rubilmax <rmilon@gmail.com>"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
],
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"viem": "^2.0.0",
|
|
22
|
+
"@morpho-org/blue-sdk": "^4.10.0",
|
|
22
23
|
"@morpho-org/blue-sdk-viem": "^3.1.2",
|
|
23
24
|
"@morpho-org/morpho-ts": "^2.4.1",
|
|
24
|
-
"@morpho-org/simulation-sdk": "^3.1.3"
|
|
25
|
-
"@morpho-org/blue-sdk": "^4.9.1"
|
|
25
|
+
"@morpho-org/simulation-sdk": "^3.1.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@tanstack/query-core": "^5.62.16",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"typescript": "^5.7.2",
|
|
35
35
|
"viem": "^2.23.0",
|
|
36
36
|
"vitest": "^3.0.5",
|
|
37
|
-
"@morpho-org/blue-sdk": "^4.
|
|
38
|
-
"@morpho-org/morpho-ts": "^2.4.1",
|
|
37
|
+
"@morpho-org/blue-sdk": "^4.10.0",
|
|
39
38
|
"@morpho-org/blue-sdk-viem": "^3.1.2",
|
|
40
|
-
"@morpho-org/simulation-sdk": "^3.1.3",
|
|
41
39
|
"@morpho-org/morpho-test": "^2.4.0",
|
|
40
|
+
"@morpho-org/morpho-ts": "^2.4.1",
|
|
41
|
+
"@morpho-org/simulation-sdk": "^3.1.3",
|
|
42
42
|
"@morpho-org/simulation-sdk-wagmi": "^3.0.3",
|
|
43
43
|
"@morpho-org/test-wagmi": "^2.0.4",
|
|
44
|
-
"@morpho-org/test": "^2.
|
|
44
|
+
"@morpho-org/test": "^2.4.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"prepublish": "$npm_execpath build",
|