@bitgo/wasm-utxo 0.0.1 → 0.0.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 +33 -0
- package/dist/browser/js/ast/formatNode.d.ts +88 -0
- package/dist/browser/js/ast/formatNode.js +36 -0
- package/dist/browser/js/ast/fromWasmNode.d.ts +4 -0
- package/dist/browser/js/ast/fromWasmNode.js +120 -0
- package/dist/browser/js/ast/index.d.ts +2 -0
- package/dist/browser/js/ast/index.js +2 -0
- package/dist/browser/js/index.d.ts +37 -0
- package/dist/browser/js/index.js +11 -0
- package/dist/browser/js/wasm/wasm_utxo.d.ts +75 -0
- package/dist/browser/js/wasm/wasm_utxo.js +4 -0
- package/dist/browser/js/wasm/wasm_utxo_bg.js +1156 -0
- package/dist/browser/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/browser/js/wasm/wasm_utxo_bg.wasm.d.ts +49 -0
- package/dist/node/js/ast/formatNode.d.ts +88 -0
- package/dist/node/js/ast/formatNode.js +39 -0
- package/dist/node/js/ast/fromWasmNode.d.ts +4 -0
- package/dist/node/js/ast/fromWasmNode.js +124 -0
- package/dist/node/js/ast/index.d.ts +2 -0
- package/dist/node/js/ast/index.js +18 -0
- package/dist/node/js/index.d.ts +37 -0
- package/dist/node/js/index.js +50 -0
- package/dist/node/js/wasm/wasm_utxo.d.ts +75 -0
- package/dist/node/js/wasm/wasm_utxo.js +1163 -0
- package/dist/node/js/wasm/wasm_utxo_bg.wasm +0 -0
- package/dist/node/js/wasm/wasm_utxo_bg.wasm.d.ts +49 -0
- package/package.json +47 -5
|
Binary file
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const __wbg_addressnamespace_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_fixedscriptwalletnamespace_free: (a: number, b: number) => void;
|
|
6
|
+
export const __wbg_utxolibcompatnamespace_free: (a: number, b: number) => void;
|
|
7
|
+
export const __wbg_wrapdescriptor_free: (a: number, b: number) => void;
|
|
8
|
+
export const addressnamespace_from_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
9
|
+
export const addressnamespace_to_output_script_with_coin: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
10
|
+
export const fixedscriptwalletnamespace_address: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
11
|
+
export const fixedscriptwalletnamespace_output_script: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
12
|
+
export const utxolibcompatnamespace_from_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
13
|
+
export const utxolibcompatnamespace_to_output_script: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
14
|
+
export const wrapdescriptor_atDerivationIndex: (a: number, b: number, c: number) => void;
|
|
15
|
+
export const wrapdescriptor_descType: (a: number, b: number) => void;
|
|
16
|
+
export const wrapdescriptor_encode: (a: number, b: number) => void;
|
|
17
|
+
export const wrapdescriptor_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
18
|
+
export const wrapdescriptor_fromStringDetectType: (a: number, b: number, c: number) => void;
|
|
19
|
+
export const wrapdescriptor_hasWildcard: (a: number) => number;
|
|
20
|
+
export const wrapdescriptor_maxWeightToSatisfy: (a: number, b: number) => void;
|
|
21
|
+
export const wrapdescriptor_node: (a: number, b: number) => void;
|
|
22
|
+
export const wrapdescriptor_scriptPubkey: (a: number, b: number) => void;
|
|
23
|
+
export const wrapdescriptor_toAsmString: (a: number, b: number) => void;
|
|
24
|
+
export const wrapdescriptor_toString: (a: number, b: number) => void;
|
|
25
|
+
export const __wbg_wrapminiscript_free: (a: number, b: number) => void;
|
|
26
|
+
export const __wbg_wrappsbt_free: (a: number, b: number) => void;
|
|
27
|
+
export const wrapminiscript_encode: (a: number, b: number) => void;
|
|
28
|
+
export const wrapminiscript_fromBitcoinScript: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
29
|
+
export const wrapminiscript_fromString: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
30
|
+
export const wrapminiscript_node: (a: number, b: number) => void;
|
|
31
|
+
export const wrapminiscript_toAsmString: (a: number, b: number) => void;
|
|
32
|
+
export const wrapminiscript_toString: (a: number, b: number) => void;
|
|
33
|
+
export const wrappsbt_clone: (a: number) => number;
|
|
34
|
+
export const wrappsbt_deserialize: (a: number, b: number, c: number) => void;
|
|
35
|
+
export const wrappsbt_finalize: (a: number, b: number) => void;
|
|
36
|
+
export const wrappsbt_serialize: (a: number, b: number) => void;
|
|
37
|
+
export const wrappsbt_signWithPrv: (a: number, b: number, c: number, d: number) => void;
|
|
38
|
+
export const wrappsbt_signWithXprv: (a: number, b: number, c: number, d: number) => void;
|
|
39
|
+
export const wrappsbt_updateInputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
|
|
40
|
+
export const wrappsbt_updateOutputWithDescriptor: (a: number, b: number, c: number, d: number) => void;
|
|
41
|
+
export const rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
42
|
+
export const rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
43
|
+
export const rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
|
|
44
|
+
export const rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
|
|
45
|
+
export const __wbindgen_export_0: (a: number) => void;
|
|
46
|
+
export const __wbindgen_export_1: (a: number, b: number) => number;
|
|
47
|
+
export const __wbindgen_export_2: (a: number, b: number, c: number, d: number) => number;
|
|
48
|
+
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
49
|
+
export const __wbindgen_export_3: (a: number, b: number, c: number) => void;
|
package/package.json
CHANGED
|
@@ -1,11 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo/wasm-utxo",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"description": "WebAssembly wrapper for rust-bitcoin (beta)",
|
|
4
|
+
"version": "0.0.2",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/BitGo/BitGoWASM"
|
|
8
|
+
},
|
|
5
9
|
"license": "MIT",
|
|
6
|
-
"
|
|
7
|
-
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/*/js/wasm/wasm_utxo.d.ts",
|
|
12
|
+
"dist/*/js/wasm/wasm_utxo.js",
|
|
13
|
+
"dist/*/js/wasm/wasm_utxo_bg.js",
|
|
14
|
+
"dist/*/js/wasm/wasm_utxo_bg.wasm",
|
|
15
|
+
"dist/*/js/wasm/wasm_utxo_bg.wasm.d.ts",
|
|
16
|
+
"dist/*/js/ast/*",
|
|
17
|
+
"dist/*/js/index.*"
|
|
18
|
+
],
|
|
19
|
+
"main": "dist/node/js/index.js",
|
|
20
|
+
"types": "dist/node/js/index.d.ts",
|
|
21
|
+
"sideEffects": [
|
|
22
|
+
"./dist/node/js/wasm/wasm_utxo.js",
|
|
23
|
+
"./dist/browser/js/wasm/wasm_utxo.js"
|
|
24
|
+
],
|
|
25
|
+
"browser": {
|
|
26
|
+
"./dist/node/js/index.js": "./dist/browser/js/index.js"
|
|
27
|
+
},
|
|
8
28
|
"scripts": {
|
|
9
|
-
"test": "
|
|
29
|
+
"test": "npm run test:mocha && npm run test:wasm-pack",
|
|
30
|
+
"test:mocha": "mocha --recursive test",
|
|
31
|
+
"test:wasm-pack": "npm run test:wasm-pack-node && npm run test:wasm-pack-chrome",
|
|
32
|
+
"test:wasm-pack-node": "wasm-pack test --node",
|
|
33
|
+
"test:wasm-pack-chrome": "wasm-pack test --headless --chrome",
|
|
34
|
+
"build:wasm": "make js/wasm/ && make dist/node/js/wasm/ && make dist/browser/js/wasm/",
|
|
35
|
+
"build:ts-browser": "tsc --noEmit false --module es2020 --target es2020 --outDir dist/browser",
|
|
36
|
+
"build:ts-node": "tsc --noEmit false --outDir dist/node",
|
|
37
|
+
"build:ts": "npm run build:ts-browser && npm run build:ts-node",
|
|
38
|
+
"build": "npm run build:wasm && npm run build:ts",
|
|
39
|
+
"check-fmt": "prettier --check . && cargo fmt -- --check"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@bitgo/utxo-lib": "^10.1.0",
|
|
43
|
+
"@types/mocha": "^10.0.7",
|
|
44
|
+
"@types/node": "^22.10.5",
|
|
45
|
+
"mocha": "^10.6.0",
|
|
46
|
+
"tsx": "4.20.6",
|
|
47
|
+
"typescript": "^5.5.3"
|
|
48
|
+
},
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public",
|
|
51
|
+
"registry": "https://registry.npmjs.org/"
|
|
10
52
|
}
|
|
11
53
|
}
|