@neuraiproject/neurai-scripts 0.9.0 → 0.9.2
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 +37 -9
- package/dist/NeuraiScripts.global.js +51 -32
- package/dist/NeuraiScripts.global.js.map +1 -1
- package/dist/browser.js +51 -32
- package/dist/browser.js.map +1 -1
- package/dist/core/opcodes.d.ts +12 -1
- package/dist/core/script-parser.d.ts +3 -10
- package/dist/covenants/partial-fill/script-pq.d.ts +1 -1
- package/dist/index.cjs +51 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1227 -0
- package/dist/index.js +51 -32
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +4 -4
- package/package.json +16 -8
package/dist/types.d.ts
CHANGED
|
@@ -136,10 +136,10 @@ export interface PartialFillOrderPQParams {
|
|
|
136
136
|
/** Price in XNA satoshis per indivisible unit of the asset. */
|
|
137
137
|
unitPriceSats: bigint;
|
|
138
138
|
/**
|
|
139
|
-
* OP_TXHASH selector
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
139
|
+
* NIP-042 OP_TXHASH selector bound into the script as exactly two
|
|
140
|
+
* little-endian bytes. Default `0x1ff` commits all nine fields, including
|
|
141
|
+
* reference inputs. The seller signs `SHA256(OP_TXHASH(selector))` with
|
|
142
|
+
* their PQ key at cancel time.
|
|
143
143
|
*/
|
|
144
144
|
txHashSelector?: number;
|
|
145
145
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neuraiproject/neurai-scripts",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Script-assembly library for Neurai: opcode constants, ScriptBuilder, standard scripts (P2PKH, P2WPKH, P2WSH, AuthScript, multisig, OP_RETURN) and covenants (partial-fill sell orders, legacy + PQ) targeting the DePIN-Test opcode set",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -9,9 +9,14 @@
|
|
|
9
9
|
"types": "./dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
"import": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./dist/index.d.cts",
|
|
18
|
+
"default": "./dist/index.cjs"
|
|
19
|
+
}
|
|
15
20
|
},
|
|
16
21
|
"./browser": {
|
|
17
22
|
"types": "./dist/index.d.ts",
|
|
@@ -27,16 +32,18 @@
|
|
|
27
32
|
"access": "public"
|
|
28
33
|
},
|
|
29
34
|
"scripts": {
|
|
30
|
-
"build": "tsc -p tsconfig.json && rollup -c rollup.config.mjs",
|
|
35
|
+
"build": "tsc -p tsconfig.json && rollup -c rollup.config.mjs && rollup -c rollup.dts.config.mjs",
|
|
31
36
|
"build:ts": "tsc -p tsconfig.json",
|
|
32
37
|
"prepack": "npm run build",
|
|
33
38
|
"prepublishOnly": "npm run build",
|
|
34
|
-
"test": "npm run build && vitest run",
|
|
39
|
+
"test": "npm run build && vitest run && npm run test:types",
|
|
40
|
+
"test:types": "tsc -p tsconfig.types.json && tsc -p tsconfig.types-node16.json && tsc -p tsconfig.types-bundler.json",
|
|
41
|
+
"test:package": "npm run build && node scripts/check-package.mjs",
|
|
35
42
|
"test:run": "vitest run",
|
|
36
43
|
"test:watch": "vitest"
|
|
37
44
|
},
|
|
38
45
|
"dependencies": {
|
|
39
|
-
"@neuraiproject/neurai-create-transaction": "^0.9.
|
|
46
|
+
"@neuraiproject/neurai-create-transaction": "^0.9.2"
|
|
40
47
|
},
|
|
41
48
|
"keywords": [
|
|
42
49
|
"neurai",
|
|
@@ -60,12 +67,13 @@
|
|
|
60
67
|
],
|
|
61
68
|
"license": "MIT",
|
|
62
69
|
"devDependencies": {
|
|
63
|
-
"@neuraiproject/neurai-key": "^5.0.
|
|
70
|
+
"@neuraiproject/neurai-key": "^5.0.3",
|
|
64
71
|
"@rollup/plugin-commonjs": "^28.0.8",
|
|
65
72
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
66
73
|
"bech32": "^2.0.0",
|
|
67
74
|
"bs58check": "^4.0.0",
|
|
68
75
|
"rollup": "^4.52.4",
|
|
76
|
+
"rollup-plugin-dts": "^6.5.1",
|
|
69
77
|
"typescript": "^5.9.3",
|
|
70
78
|
"vitest": "^4.1.11"
|
|
71
79
|
}
|