@hardkas/localnet 0.9.0-alpha → 0.9.2-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 +1 -1
- package/dist/index.js +6 -2
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -377,7 +377,7 @@ declare function moveSink(dag: SimulatedDag, newSinkId: string, txProvider: (txI
|
|
|
377
377
|
inputs: string[];
|
|
378
378
|
} | undefined): SimulatedDag;
|
|
379
379
|
/**
|
|
380
|
-
* Deterministic Conflict Resolution (Approximation for 0.9.
|
|
380
|
+
* Deterministic Conflict Resolution (Approximation for 0.9.2-alpha)
|
|
381
381
|
* Priority:
|
|
382
382
|
* 1. sink ancestry priority (is part of selectedPathToSink?)
|
|
383
383
|
* 2. deterministic block order (daaScore then block ID)
|
package/dist/index.js
CHANGED
|
@@ -225,7 +225,9 @@ async function loadLocalnetState(filePath) {
|
|
|
225
225
|
try {
|
|
226
226
|
const legacyContent = await fs.readFile(legacyPath, "utf-8");
|
|
227
227
|
await fs.writeFile(targetPath, legacyContent, "utf-8");
|
|
228
|
-
console.warn(
|
|
228
|
+
console.warn(
|
|
229
|
+
`[HardKAS] Migrated legacy localnet-state.json to localnet.json. The old file was kept for compatibility.`
|
|
230
|
+
);
|
|
229
231
|
return JSON.parse(legacyContent);
|
|
230
232
|
} catch {
|
|
231
233
|
return null;
|
|
@@ -1237,7 +1239,9 @@ var LocalnetSimulatedProvider = class {
|
|
|
1237
1239
|
return allUtxos;
|
|
1238
1240
|
}
|
|
1239
1241
|
async submitTransaction(rawTransaction) {
|
|
1240
|
-
throw new Error(
|
|
1242
|
+
throw new Error(
|
|
1243
|
+
"submitTransaction not implemented on SimulatedProvider. Use sdk.tx.simulate instead."
|
|
1244
|
+
);
|
|
1241
1245
|
}
|
|
1242
1246
|
async getMempoolEntry(txId) {
|
|
1243
1247
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hardkas/localnet",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2-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.9.
|
|
17
|
-
"@hardkas/kaspa-rpc": "0.9.
|
|
18
|
-
"@hardkas/simulator": "0.9.
|
|
19
|
-
"@hardkas/core": "0.9.
|
|
20
|
-
"@hardkas/
|
|
21
|
-
"@hardkas/
|
|
16
|
+
"@hardkas/artifacts": "0.9.2-alpha",
|
|
17
|
+
"@hardkas/kaspa-rpc": "0.9.2-alpha",
|
|
18
|
+
"@hardkas/simulator": "0.9.2-alpha",
|
|
19
|
+
"@hardkas/core": "0.9.2-alpha",
|
|
20
|
+
"@hardkas/query": "0.9.2-alpha",
|
|
21
|
+
"@hardkas/tx-builder": "0.9.2-alpha"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"fast-check": "^4.8.0",
|