@hardkas/localnet 0.8.13-alpha → 0.8.15-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.
package/dist/index.d.ts CHANGED
@@ -70,8 +70,13 @@ interface LocalnetUtxo {
70
70
  }
71
71
  interface LocalnetState extends HardkasArtifactBase {
72
72
  schema: "hardkas.localnetState.v1";
73
+ hardkasVersion: string;
74
+ version: string;
75
+ createdAt: string;
73
76
  mode: ExecutionMode;
74
77
  networkId: NetworkId;
78
+ workflowId?: string;
79
+ assumptionLevel?: string;
75
80
  daaScore: string;
76
81
  accounts: LocalnetAccount[];
77
82
  utxos: LocalnetUtxo[];
@@ -372,7 +377,7 @@ declare function moveSink(dag: SimulatedDag, newSinkId: string, txProvider: (txI
372
377
  inputs: string[];
373
378
  } | undefined): SimulatedDag;
374
379
  /**
375
- * Deterministic Conflict Resolution (Approximation for 0.8.13-alpha)
380
+ * Deterministic Conflict Resolution (Approximation for 0.8.15-alpha)
376
381
  * Priority:
377
382
  * 1. sink ancestry priority (is part of selectedPathToSink?)
378
383
  * 2. deterministic block order (daaScore then block ID)
package/dist/index.js CHANGED
@@ -154,6 +154,8 @@ function createInitialLocalnetState(options = {}) {
154
154
  // hardkas-determinism-allow: initial state creation timestamp
155
155
  mode: "simulated",
156
156
  networkId: "simnet",
157
+ workflowId: "wf_system_bootstrap",
158
+ assumptionLevel: "default",
157
159
  daaScore: "0",
158
160
  accounts: accounts.map((a) => ({
159
161
  name: a.name,
@@ -1141,6 +1143,8 @@ async function forkFromNetwork(rpc, opts) {
1141
1143
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
1142
1144
  // hardkas-determinism-allow: fork state creation timestamp
1143
1145
  networkId,
1146
+ workflowId: "wf_system_bootstrap",
1147
+ assumptionLevel: "default",
1144
1148
  daaScore: targetDaaScore,
1145
1149
  accounts: opts.addresses.map((addr, i) => ({
1146
1150
  name: `forked_${i}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hardkas/localnet",
3
- "version": "0.8.13-alpha",
3
+ "version": "0.8.15-alpha",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -13,12 +13,12 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "kaspa-wasm": "0.13.0",
16
- "@hardkas/artifacts": "0.8.13-alpha",
17
- "@hardkas/query": "0.8.13-alpha",
18
- "@hardkas/kaspa-rpc": "0.8.13-alpha",
19
- "@hardkas/tx-builder": "0.8.13-alpha",
20
- "@hardkas/simulator": "0.8.13-alpha",
21
- "@hardkas/core": "0.8.13-alpha"
16
+ "@hardkas/artifacts": "0.8.15-alpha",
17
+ "@hardkas/core": "0.8.15-alpha",
18
+ "@hardkas/query": "0.8.15-alpha",
19
+ "@hardkas/kaspa-rpc": "0.8.15-alpha",
20
+ "@hardkas/simulator": "0.8.15-alpha",
21
+ "@hardkas/tx-builder": "0.8.15-alpha"
22
22
  },
23
23
  "devDependencies": {
24
24
  "fast-check": "^4.8.0",