@morpho-org/bundler-sdk-viem 2.0.0-next.32 → 2.0.0-next.33
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/BundlerAction.d.ts +2 -2
- package/lib/types/actions.d.ts +2 -2
- package/package.json +9 -9
package/lib/BundlerAction.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Address, type Hex } from "viem";
|
|
2
|
-
import type { Action, Authorization, InputMarketParams,
|
|
2
|
+
import type { Action, Authorization, InputMarketParams, InputReallocation, Permit2PermitSingle } from "./types/index.js";
|
|
3
3
|
export type BundlerCall = Hex;
|
|
4
4
|
/**
|
|
5
5
|
* Namespace to easily encode calls to the Bundler contract, using ethers.
|
|
@@ -176,7 +176,7 @@ export declare namespace BundlerAction {
|
|
|
176
176
|
* @param withdrawals The array of withdrawals to perform, before supplying everything to the supply market.
|
|
177
177
|
* @param supplyMarketParams The market params to reallocate to.
|
|
178
178
|
*/
|
|
179
|
-
function metaMorphoReallocateTo(publicAllocator: Address, vault: Address, value: bigint, withdrawals:
|
|
179
|
+
function metaMorphoReallocateTo(publicAllocator: Address, vault: Address, value: bigint, withdrawals: InputReallocation[], supplyMarketParams: InputMarketParams): BundlerCall;
|
|
180
180
|
/**
|
|
181
181
|
* Encodes a call to the Bundler to claim rewards from the Universal Rewards Distributor.
|
|
182
182
|
* @param distributor The address of the distributor to claim rewards from.
|
package/lib/types/actions.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface Authorization {
|
|
|
9
9
|
nonce: bigint;
|
|
10
10
|
deadline: bigint;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface InputReallocation {
|
|
13
13
|
marketParams: InputMarketParams;
|
|
14
14
|
amount: bigint;
|
|
15
15
|
}
|
|
@@ -132,7 +132,7 @@ export interface ActionArgs {
|
|
|
132
132
|
publicAllocator: Address,
|
|
133
133
|
vault: Address,
|
|
134
134
|
value: bigint,
|
|
135
|
-
withdrawals:
|
|
135
|
+
withdrawals: InputReallocation[],
|
|
136
136
|
supplyMarket: InputMarketParams
|
|
137
137
|
];
|
|
138
138
|
urdClaim: [
|
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": "2.0.0-next.
|
|
4
|
+
"version": "2.0.0-next.33",
|
|
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": "^2.0.0-next.31",
|
|
24
|
-
"@morpho-org/
|
|
25
|
-
"@morpho-org/simulation-sdk": "^2.0.0-next.
|
|
26
|
-
"@morpho-org/
|
|
24
|
+
"@morpho-org/blue-sdk-viem": "^2.0.0-next.30",
|
|
25
|
+
"@morpho-org/simulation-sdk": "^2.0.0-next.29",
|
|
26
|
+
"@morpho-org/morpho-ts": "^2.0.0-next.16"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@tanstack/query-core": "^5.60.5",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"typescript": "^5.7.2",
|
|
36
36
|
"viem": "^2.21.54",
|
|
37
37
|
"vitest": "^2.1.8",
|
|
38
|
-
"@morpho-org/blue-sdk-viem": "^2.0.0-next.28",
|
|
39
38
|
"@morpho-org/blue-sdk": "^2.0.0-next.31",
|
|
39
|
+
"@morpho-org/blue-sdk-viem": "^2.0.0-next.30",
|
|
40
|
+
"@morpho-org/morpho-test": "^2.0.0-next.20",
|
|
40
41
|
"@morpho-org/morpho-ts": "^2.0.0-next.16",
|
|
41
|
-
"@morpho-org/simulation-sdk": "^2.0.0-next.
|
|
42
|
-
"@morpho-org/
|
|
42
|
+
"@morpho-org/simulation-sdk": "^2.0.0-next.29",
|
|
43
|
+
"@morpho-org/simulation-sdk-wagmi": "^2.0.0-next.25",
|
|
43
44
|
"@morpho-org/test": "^2.0.0-next.26",
|
|
44
|
-
"@morpho-org/test-wagmi": "^2.0.0-next.
|
|
45
|
-
"@morpho-org/simulation-sdk-wagmi": "^2.0.0-next.26"
|
|
45
|
+
"@morpho-org/test-wagmi": "^2.0.0-next.25"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"prepublish": "$npm_execpath build",
|