@midnightntwrk/mnkit-coins 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 +2 -2
- package/dist/coins.d.ts +1 -1
- package/dist/coins.js +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -28,8 +28,8 @@ An mnkit project already has these. Anywhere else, add the peer and these
|
|
|
28
28
|
}
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
midnight-js-protocol
|
|
32
|
-
compact-runtime 0.
|
|
31
|
+
midnight-js-protocol 6.0.0 pins these at these versions today, but
|
|
32
|
+
compact-runtime 0.22.0 asks for `onchain-runtime-v4` `^4.0.2`. The
|
|
33
33
|
overrides keep a later release, which mnkit doesn't test, out of your tree.
|
|
34
34
|
|
|
35
35
|
Apache-2.0. Source: [midnight-examples/packages/coins](https://github.com/midnightntwrk/midnight-examples/tree/main/packages/coins).
|
package/dist/coins.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ContractAddress } from '@
|
|
1
|
+
import { type ContractAddress } from '@midnightntwrk/midnight-js-protocol/v9/compact-runtime';
|
|
2
2
|
/** A coin as a circuit takes it: Compact's `ShieldedCoinInfo`. */
|
|
3
3
|
export type ShieldedCoinArg = {
|
|
4
4
|
nonce: Uint8Array;
|
package/dist/coins.js
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
// because each example owns its src/wallet.ts and they drift. Any provider
|
|
18
18
|
// with `wallet.waitForSyncedState()` and the two public keys fits.
|
|
19
19
|
import { randomBytes } from 'node:crypto';
|
|
20
|
-
import { decodeShieldedCoinInfo, encodeCoinPublicKey, encodeRawTokenType, encodeShieldedCoinInfo, } from '@
|
|
21
|
-
import { createShieldedCoinInfo, rawTokenType, ZswapOutput } from '@
|
|
20
|
+
import { decodeShieldedCoinInfo, encodeCoinPublicKey, encodeRawTokenType, encodeShieldedCoinInfo, } from '@midnightntwrk/midnight-js-protocol/v9/compact-runtime';
|
|
21
|
+
import { createShieldedCoinInfo, rawTokenType, ZswapOutput } from '@midnightntwrk/midnight-js-protocol/v9';
|
|
22
22
|
const fromHex = (h) => Uint8Array.from(Buffer.from(h, 'hex'));
|
|
23
23
|
const colorHex = (color) => (typeof color === 'string' ? color : color.hex);
|
|
24
24
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midnightntwrk/mnkit-coins",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shielded-coin helpers for Midnight tests: token colors, fresh coins as circuit arguments, a wallet's coins and balances and waiting for them, and the arguments a mint to another wallet needs. 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
|
-
"@
|
|
36
|
+
"@midnightntwrk/midnight-js-protocol": "~6.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@
|
|
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.
|
|
43
|
+
"vitest": "^5.1.2"
|
|
44
44
|
}
|
|
45
45
|
}
|