@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.
@@ -1,5 +1,8 @@
1
- import { BundlerAction } from "./BundlerAction.js";
2
- export class ActionBundleRequirements {
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
- export class ActionBundle {
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;