@hardkas/testing 0.5.4-alpha → 0.6.0-alpha

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,4 +1,5 @@
1
1
  // src/harness.ts
2
+ import { systemRuntimeContext } from "@hardkas/core";
2
3
  import {
3
4
  createInitialLocalnetState,
4
5
  applySimulatedPayment,
@@ -39,7 +40,7 @@ function createTestHarness(config) {
39
40
  from: getAccountBalanceSompi(currentState, opts.from),
40
41
  to: getAccountBalanceSompi(currentState, opts.to)
41
42
  };
42
- const result = applySimulatedPayment(currentState, opts);
43
+ const result = applySimulatedPayment(currentState, opts, systemRuntimeContext);
43
44
  if (result.ok) {
44
45
  currentState = result.state;
45
46
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createTestHarness
3
- } from "./chunk-CUJL53GG.js";
3
+ } from "./chunk-DDZQ5CH4.js";
4
4
 
5
5
  // src/reproducibility.ts
6
6
  import { calculateContentHash, HARDKAS_VERSION } from "@hardkas/artifacts";
package/dist/harness.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  disableMassTracking,
5
5
  enableMassTracking,
6
6
  getMassRecords
7
- } from "./chunk-CUJL53GG.js";
7
+ } from "./chunk-DDZQ5CH4.js";
8
8
  export {
9
9
  clearMassRecords,
10
10
  createTestHarness,
package/dist/index.js CHANGED
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-HH4OIGEG.js";
4
4
  import {
5
5
  generateReproducibilityReport
6
- } from "./chunk-LI6KLOLV.js";
6
+ } from "./chunk-SIJI3FRM.js";
7
7
  import {
8
8
  clearMassRecords,
9
9
  createTestHarness,
10
10
  disableMassTracking,
11
11
  enableMassTracking,
12
12
  getMassRecords
13
- } from "./chunk-CUJL53GG.js";
13
+ } from "./chunk-DDZQ5CH4.js";
14
14
  import {
15
15
  hardKasMatchers
16
16
  } from "./chunk-IRVMANZV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  enableMassTracking
3
- } from "./chunk-CUJL53GG.js";
3
+ } from "./chunk-DDZQ5CH4.js";
4
4
 
5
5
  // src/mass-setup.ts
6
6
  if (process.env.HARDKAS_MASS_TRACKING === "1") {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generateReproducibilityReport
3
- } from "./chunk-LI6KLOLV.js";
4
- import "./chunk-CUJL53GG.js";
3
+ } from "./chunk-SIJI3FRM.js";
4
+ import "./chunk-DDZQ5CH4.js";
5
5
  export {
6
6
  generateReproducibilityReport
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hardkas/testing",
3
- "version": "0.5.4-alpha",
3
+ "version": "0.6.0-alpha",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -12,14 +12,14 @@
12
12
  "./mass-setup": "./dist/mass-setup.js"
13
13
  },
14
14
  "dependencies": {
15
- "@hardkas/artifacts": "0.5.4-alpha",
16
- "@hardkas/kaspa-rpc": "0.5.4-alpha",
17
- "@hardkas/core": "0.5.4-alpha",
18
- "@hardkas/localnet": "0.5.4-alpha",
19
- "@hardkas/query-store": "0.5.4-alpha",
20
- "@hardkas/sdk": "0.5.4-alpha",
21
- "@hardkas/simulator": "0.5.4-alpha",
22
- "@hardkas/tx-builder": "0.5.4-alpha"
15
+ "@hardkas/artifacts": "0.6.0-alpha",
16
+ "@hardkas/core": "0.6.0-alpha",
17
+ "@hardkas/kaspa-rpc": "0.6.0-alpha",
18
+ "@hardkas/localnet": "0.6.0-alpha",
19
+ "@hardkas/query-store": "0.6.0-alpha",
20
+ "@hardkas/simulator": "0.6.0-alpha",
21
+ "@hardkas/sdk": "0.6.0-alpha",
22
+ "@hardkas/tx-builder": "0.6.0-alpha"
23
23
  },
24
24
  "devDependencies": {
25
25
  "tsup": "^8.3.5",