@hardkas/testing 0.11.2-alpha → 0.11.4-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/adversarial-fixtures.js +1 -1
- package/dist/{chunk-3RG5ZIWI.js → chunk-MCKGQKYU.js} +6 -1
- package/dist/harness.js +1 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +293 -162
- package/dist/kaspa_wasm-KISXGKGE.js +8679 -0
- package/dist/mass-setup.js +1 -1
- package/dist/reproducibility.js +1 -1
- package/dist/scenarios.js +2 -4
- package/dist/setup.js +1 -1
- package/package.json +13 -9
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
1
2
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
3
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
4
|
}) : x)(function(x) {
|
|
4
5
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
6
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
7
|
});
|
|
8
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
7
11
|
|
|
8
12
|
export {
|
|
9
|
-
__require
|
|
13
|
+
__require,
|
|
14
|
+
__commonJS
|
|
10
15
|
};
|
package/dist/harness.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { TestHarness } from './harness.js';
|
|
2
2
|
export { HarnessConfig, SendResult, clearMassRecords, createTestHarness, disableMassTracking, enableMassTracking, getMassRecords } from './harness.js';
|
|
3
|
+
import { ExternalHardkasSigner, TxPlanArtifact, SignedTxArtifact } from '@hardkas/artifacts';
|
|
4
|
+
import { HardkasTxPlanSigner, HardkasSignerKind, SignTxPlanInput, SignTxPlanResult } from '@hardkas/accounts';
|
|
3
5
|
export { ReproducibilityReport, generateReproducibilityReport } from './reproducibility.js';
|
|
4
6
|
export { AdversarialFixtures } from './adversarial-fixtures.js';
|
|
5
7
|
import '@hardkas/localnet';
|
|
@@ -97,6 +99,28 @@ declare const hardKasMatchers: {
|
|
|
97
99
|
};
|
|
98
100
|
};
|
|
99
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Deterministic fixture signer for Docker testing on simnet.
|
|
104
|
+
* Never to be used with real funds or mainnet.
|
|
105
|
+
*/
|
|
106
|
+
declare class HardkasFixtureSigner implements ExternalHardkasSigner {
|
|
107
|
+
private networkId;
|
|
108
|
+
private readonly FIXTURE_PK;
|
|
109
|
+
constructor(networkId?: string);
|
|
110
|
+
private loadKaspa;
|
|
111
|
+
getAddress(): Promise<string>;
|
|
112
|
+
signTransaction(plan: TxPlanArtifact): Promise<SignedTxArtifact>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Simulated signer for simnet development.
|
|
117
|
+
* Produces deterministic signatures without real private keys.
|
|
118
|
+
*/
|
|
119
|
+
declare class SimulatedTxPlanSigner implements HardkasTxPlanSigner {
|
|
120
|
+
kind: HardkasSignerKind;
|
|
121
|
+
signTxPlan(input: SignTxPlanInput): Promise<SignTxPlanResult>;
|
|
122
|
+
}
|
|
123
|
+
|
|
100
124
|
declare class LcgPrng {
|
|
101
125
|
private state;
|
|
102
126
|
constructor(seed: number);
|
|
@@ -170,4 +194,4 @@ declare class TortureInvariantError extends Error {
|
|
|
170
194
|
constructor(message: string, code: string, severity?: "info" | "warning" | "critical" | "catastrophic");
|
|
171
195
|
}
|
|
172
196
|
|
|
173
|
-
export { type FixtureDefinition, type HardKasMatchers, LcgPrng, TestHarness, type TortureBucket, type TortureBucketContext, type TortureCaseResult, TortureInvariantError, createFixture, getAllTortureBuckets, getTortureBucket, hardKasMatchers };
|
|
197
|
+
export { type FixtureDefinition, type HardKasMatchers, HardkasFixtureSigner, LcgPrng, SimulatedTxPlanSigner, TestHarness, type TortureBucket, type TortureBucketContext, type TortureCaseResult, TortureInvariantError, createFixture, getAllTortureBuckets, getTortureBucket, hardKasMatchers };
|