@morpho-org/bundler-sdk-viem 4.3.0 → 4.3.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/lib/cjs/BundlerAction.js +2 -2
- package/lib/cjs/actions.js +12 -25
- package/lib/esm/BundlerAction.js +2 -2
- package/lib/esm/actions.js +12 -25
- package/package.json +8 -8
package/lib/cjs/BundlerAction.js
CHANGED
|
@@ -537,7 +537,7 @@ var BundlerAction;
|
|
|
537
537
|
args: [underlying, generalAdapter1, viem_1.maxUint256],
|
|
538
538
|
}),
|
|
539
539
|
value: 0n,
|
|
540
|
-
skipRevert,
|
|
540
|
+
skipRevert: false,
|
|
541
541
|
callbackHash: viem_1.zeroHash,
|
|
542
542
|
},
|
|
543
543
|
];
|
|
@@ -586,7 +586,7 @@ var BundlerAction;
|
|
|
586
586
|
args: [wrapper, generalAdapter1, viem_1.maxUint256],
|
|
587
587
|
}),
|
|
588
588
|
value: 0n,
|
|
589
|
-
skipRevert,
|
|
589
|
+
skipRevert: false,
|
|
590
590
|
callbackHash: viem_1.zeroHash,
|
|
591
591
|
},
|
|
592
592
|
];
|
package/lib/cjs/actions.js
CHANGED
|
@@ -684,13 +684,7 @@ const encodeOperation = (operation, dataBefore, supportsSignature = true, index
|
|
|
684
684
|
],
|
|
685
685
|
}, {
|
|
686
686
|
type: "erc20Transfer",
|
|
687
|
-
args: [
|
|
688
|
-
srcToken,
|
|
689
|
-
generalAdapter1,
|
|
690
|
-
viem_1.maxUint256,
|
|
691
|
-
paraswapAdapter,
|
|
692
|
-
operation.skipRevert,
|
|
693
|
-
],
|
|
687
|
+
args: [srcToken, generalAdapter1, viem_1.maxUint256, paraswapAdapter, false],
|
|
694
688
|
});
|
|
695
689
|
break;
|
|
696
690
|
}
|
|
@@ -724,17 +718,16 @@ const encodeOperation = (operation, dataBefore, supportsSignature = true, index
|
|
|
724
718
|
operation.skipRevert,
|
|
725
719
|
],
|
|
726
720
|
});
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
});
|
|
721
|
+
actions.push({
|
|
722
|
+
type: "erc20Transfer",
|
|
723
|
+
args: [
|
|
724
|
+
operation.address,
|
|
725
|
+
generalAdapter1,
|
|
726
|
+
viem_1.maxUint256,
|
|
727
|
+
paraswapAdapter,
|
|
728
|
+
false,
|
|
729
|
+
],
|
|
730
|
+
});
|
|
738
731
|
break;
|
|
739
732
|
}
|
|
740
733
|
case "Blue_Paraswap_BuyDebt": {
|
|
@@ -767,13 +760,7 @@ const encodeOperation = (operation, dataBefore, supportsSignature = true, index
|
|
|
767
760
|
],
|
|
768
761
|
}, {
|
|
769
762
|
type: "erc20Transfer",
|
|
770
|
-
args: [
|
|
771
|
-
srcToken,
|
|
772
|
-
generalAdapter1,
|
|
773
|
-
viem_1.maxUint256,
|
|
774
|
-
paraswapAdapter,
|
|
775
|
-
operation.skipRevert,
|
|
776
|
-
],
|
|
763
|
+
args: [srcToken, generalAdapter1, viem_1.maxUint256, paraswapAdapter, false],
|
|
777
764
|
});
|
|
778
765
|
break;
|
|
779
766
|
}
|
package/lib/esm/BundlerAction.js
CHANGED
|
@@ -534,7 +534,7 @@ export var BundlerAction;
|
|
|
534
534
|
args: [underlying, generalAdapter1, maxUint256],
|
|
535
535
|
}),
|
|
536
536
|
value: 0n,
|
|
537
|
-
skipRevert,
|
|
537
|
+
skipRevert: false,
|
|
538
538
|
callbackHash: zeroHash,
|
|
539
539
|
},
|
|
540
540
|
];
|
|
@@ -583,7 +583,7 @@ export var BundlerAction;
|
|
|
583
583
|
args: [wrapper, generalAdapter1, maxUint256],
|
|
584
584
|
}),
|
|
585
585
|
value: 0n,
|
|
586
|
-
skipRevert,
|
|
586
|
+
skipRevert: false,
|
|
587
587
|
callbackHash: zeroHash,
|
|
588
588
|
},
|
|
589
589
|
];
|
package/lib/esm/actions.js
CHANGED
|
@@ -680,13 +680,7 @@ export const encodeOperation = (operation, dataBefore, supportsSignature = true,
|
|
|
680
680
|
],
|
|
681
681
|
}, {
|
|
682
682
|
type: "erc20Transfer",
|
|
683
|
-
args: [
|
|
684
|
-
srcToken,
|
|
685
|
-
generalAdapter1,
|
|
686
|
-
maxUint256,
|
|
687
|
-
paraswapAdapter,
|
|
688
|
-
operation.skipRevert,
|
|
689
|
-
],
|
|
683
|
+
args: [srcToken, generalAdapter1, maxUint256, paraswapAdapter, false],
|
|
690
684
|
});
|
|
691
685
|
break;
|
|
692
686
|
}
|
|
@@ -720,17 +714,16 @@ export const encodeOperation = (operation, dataBefore, supportsSignature = true,
|
|
|
720
714
|
operation.skipRevert,
|
|
721
715
|
],
|
|
722
716
|
});
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
});
|
|
717
|
+
actions.push({
|
|
718
|
+
type: "erc20Transfer",
|
|
719
|
+
args: [
|
|
720
|
+
operation.address,
|
|
721
|
+
generalAdapter1,
|
|
722
|
+
maxUint256,
|
|
723
|
+
paraswapAdapter,
|
|
724
|
+
false,
|
|
725
|
+
],
|
|
726
|
+
});
|
|
734
727
|
break;
|
|
735
728
|
}
|
|
736
729
|
case "Blue_Paraswap_BuyDebt": {
|
|
@@ -763,13 +756,7 @@ export const encodeOperation = (operation, dataBefore, supportsSignature = true,
|
|
|
763
756
|
],
|
|
764
757
|
}, {
|
|
765
758
|
type: "erc20Transfer",
|
|
766
|
-
args: [
|
|
767
|
-
srcToken,
|
|
768
|
-
generalAdapter1,
|
|
769
|
-
maxUint256,
|
|
770
|
-
paraswapAdapter,
|
|
771
|
-
operation.skipRevert,
|
|
772
|
-
],
|
|
759
|
+
args: [srcToken, generalAdapter1, maxUint256, paraswapAdapter, false],
|
|
773
760
|
});
|
|
774
761
|
break;
|
|
775
762
|
}
|
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": "4.3.
|
|
4
|
+
"version": "4.3.2",
|
|
5
5
|
"author": "Morpho Association <contact@morpho.org>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Rubilmax <rmilon@gmail.com>"
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"viem": "^2.0.0",
|
|
23
23
|
"@morpho-org/blue-sdk": "^5.17.0",
|
|
24
|
-
"@morpho-org/
|
|
24
|
+
"@morpho-org/simulation-sdk": "^3.4.0",
|
|
25
25
|
"@morpho-org/morpho-ts": "^2.5.0",
|
|
26
|
-
"@morpho-org/
|
|
26
|
+
"@morpho-org/blue-sdk-viem": "^4.5.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@tanstack/query-core": "^5.62.16",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"typescript": "^5.9.3",
|
|
36
36
|
"viem": "^2.41.2",
|
|
37
37
|
"vitest": "^4.0.15",
|
|
38
|
-
"@morpho-org/blue-sdk": "^5.17.0",
|
|
39
|
-
"@morpho-org/simulation-sdk": "^3.4.0",
|
|
40
|
-
"@morpho-org/blue-sdk-viem": "^4.5.0",
|
|
41
38
|
"@morpho-org/morpho-test": "^2.5.0",
|
|
39
|
+
"@morpho-org/blue-sdk": "^5.17.0",
|
|
42
40
|
"@morpho-org/morpho-ts": "^2.5.0",
|
|
41
|
+
"@morpho-org/blue-sdk-viem": "^4.5.0",
|
|
42
|
+
"@morpho-org/simulation-sdk": "^3.4.0",
|
|
43
43
|
"@morpho-org/simulation-sdk-wagmi": "^3.3.0",
|
|
44
|
-
"@morpho-org/test
|
|
45
|
-
"@morpho-org/test": "^2.
|
|
44
|
+
"@morpho-org/test": "^2.7.0",
|
|
45
|
+
"@morpho-org/test-wagmi": "^2.1.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"prepublish": "$npm_execpath build",
|