@midnightntwrk/mnkit-sim 0.2.0-rc.2 → 0.2.0-rc.4

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @midnightntwrk/mnkit-sim
2
2
 
3
3
  An in-memory harness for testing a compiled Compact contract: deploy it and
4
- call its circuits with `@midnight-ntwrk/midnight-js-protocol`'s compact
4
+ call its circuits with `@midnightntwrk/midnight-js-protocol`'s compact
5
5
  runtime, with no network and no proofs. Part of
6
6
  [mnkit](https://www.npmjs.com/package/mnkit), whose projects use it in
7
7
  `src/test/*.sim.test.ts`.
@@ -41,8 +41,8 @@ An mnkit project already has these. Anywhere else, add the peer and these
41
41
  }
42
42
  ```
43
43
 
44
- midnight-js-protocol 5.0.1 pins these at these versions today, but
45
- compact-runtime 0.21.0 asks for `onchain-runtime-v4` `^4.0.0-rc.3`. The
44
+ midnight-js-protocol 6.0.0 pins these at these versions today, but
45
+ compact-runtime 0.22.0 asks for `onchain-runtime-v4` `^4.0.2`. The
46
46
  overrides keep a later release, which mnkit doesn't test, out of your tree.
47
47
 
48
48
  Apache-2.0. Source: [midnight-examples/packages/sim](https://github.com/midnightntwrk/midnight-examples/tree/main/packages/sim).
package/dist/sim.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type ChargedState, type CircuitContext, type CircuitResults, type ConstructorContext, type ConstructorResult } from '@midnight-ntwrk/midnight-js-protocol/v9/compact-runtime';
1
+ import { type ChargedState, type CircuitContext, type CircuitResults, type ConstructorContext, type ConstructorResult } from '@midnightntwrk/midnight-js-protocol/v9/compact-runtime';
2
2
  /** Coin public key used when the test doesn't pick one (hex, 32 bytes). */
3
3
  export declare const SIM_COIN_PUBLIC_KEY: string;
4
4
  /** The parts of a compiler-generated `Contract<PS>` the harness uses. */
package/dist/sim.js CHANGED
@@ -12,7 +12,7 @@
12
12
  // From compact-runtime 0.20 (Compact 0.35) the constructor and circuits are
13
13
  // async, and createCircuitContext takes one options object; so deploy(),
14
14
  // call() and expectRejects() here are async too.
15
- import { createCircuitContext, createConstructorContext, sampleContractAddress, } from '@midnight-ntwrk/midnight-js-protocol/v9/compact-runtime';
15
+ import { createCircuitContext, createConstructorContext, sampleContractAddress, } from '@midnightntwrk/midnight-js-protocol/v9/compact-runtime';
16
16
  /** Coin public key used when the test doesn't pick one (hex, 32 bytes). */
17
17
  export const SIM_COIN_PUBLIC_KEY = '00'.repeat(32);
18
18
  export class Sim {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midnightntwrk/mnkit-sim",
3
- "version": "0.2.0-rc.2",
3
+ "version": "0.2.0-rc.4",
4
4
  "type": "module",
5
5
  "description": "In-memory contract harness for Midnight tests: deploy and call a compiled Compact contract without a network, expect rejections, and check that no secret reaches public state. Part of mnkit.",
6
6
  "license": "Apache-2.0",
@@ -33,13 +33,13 @@
33
33
  "test:sim": "vitest run"
34
34
  },
35
35
  "peerDependencies": {
36
- "@midnight-ntwrk/midnight-js-protocol": "~5.0.1"
36
+ "@midnightntwrk/midnight-js-protocol": "~6.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@midnight-ntwrk/midnight-js-protocol": "5.0.1",
39
+ "@midnightntwrk/midnight-js-protocol": "6.0.0",
40
40
  "@types/node": "^22.0.0",
41
41
  "typescript": "^5.7.0",
42
42
  "vite": "6.4.5",
43
- "vitest": "^5.0.4"
43
+ "vitest": "^5.1.2"
44
44
  }
45
45
  }