@morpho-org/bundler-sdk-viem 3.0.0 → 3.0.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/ActionBundle.js +9 -4
- package/lib/BundlerAction.js +230 -227
- package/lib/abis.js +80 -77
- package/lib/actions.js +75 -70
- package/lib/bundle.js +10 -6
- package/lib/errors.js +5 -2
- package/lib/index.js +24 -8
- package/lib/operations.js +81 -68
- package/lib/types/actions.js +2 -1
- package/lib/types/index.js +18 -2
- package/lib/types/operations.js +16 -10
- package/package.json +6 -7
package/lib/ActionBundle.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionBundle = exports.ActionBundleRequirements = void 0;
|
|
4
|
+
const BundlerAction_js_1 = require("./BundlerAction.js");
|
|
5
|
+
class ActionBundleRequirements {
|
|
3
6
|
txs;
|
|
4
7
|
signatures;
|
|
5
8
|
constructor(txs = [], signatures = []) {
|
|
@@ -10,7 +13,8 @@ export class ActionBundleRequirements {
|
|
|
10
13
|
return Promise.all(this.signatures.map((requirement) => requirement.sign(client, account)));
|
|
11
14
|
}
|
|
12
15
|
}
|
|
13
|
-
|
|
16
|
+
exports.ActionBundleRequirements = ActionBundleRequirements;
|
|
17
|
+
class ActionBundle {
|
|
14
18
|
actions;
|
|
15
19
|
requirements;
|
|
16
20
|
steps;
|
|
@@ -27,9 +31,10 @@ export class ActionBundle {
|
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
tx() {
|
|
30
|
-
return BundlerAction.encodeBundle(this.chainId, this.actions);
|
|
34
|
+
return BundlerAction_js_1.BundlerAction.encodeBundle(this.chainId, this.actions);
|
|
31
35
|
}
|
|
32
36
|
txs() {
|
|
33
37
|
return this.requirements.txs.map(({ tx }) => tx).concat([this.tx()]);
|
|
34
38
|
}
|
|
35
39
|
}
|
|
40
|
+
exports.ActionBundle = ActionBundle;
|