@xstoicunicornx/payjoin_test 0.1.0
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 +28 -0
- package/dist/generated/payjoin.d.ts +6189 -0
- package/dist/generated/payjoin.d.ts.map +1 -0
- package/dist/generated/payjoin.js +13273 -0
- package/dist/generated/payjoin.js.map +1 -0
- package/dist/generated/wasm-bindgen/index.d.ts +1067 -0
- package/dist/generated/wasm-bindgen/index.js +6068 -0
- package/dist/generated/wasm-bindgen/index_bg.wasm +0 -0
- package/dist/generated/wasm-bindgen/index_bg.wasm.d.ts +1019 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/index.web.js +26 -0
- package/package.json +39 -0
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Payjoin JavaScript Bindings
|
|
2
|
+
|
|
3
|
+
Welcome to the JavaScript language bindings for the [Payjoin Dev Kit](https://payjoindevkit.org/)!
|
|
4
|
+
|
|
5
|
+
## Running Tests
|
|
6
|
+
|
|
7
|
+
Follow these steps to clone the repository and run the tests.
|
|
8
|
+
This assumes you already have Rust and Node.js installed.
|
|
9
|
+
|
|
10
|
+
```shell
|
|
11
|
+
git clone https://github.com/payjoin/rust-payjoin.git
|
|
12
|
+
cd rust-payjoin/payjoin-ffi/javascript
|
|
13
|
+
|
|
14
|
+
# Clean out stale dependencies
|
|
15
|
+
npm run clean
|
|
16
|
+
rm -rf node_modules
|
|
17
|
+
# Install dependencies
|
|
18
|
+
cargo install wasm-bindgen-cli
|
|
19
|
+
npm install
|
|
20
|
+
# (macOS only - secp256k1-sys requires a WASM-capable C compiler)
|
|
21
|
+
brew install llvm
|
|
22
|
+
|
|
23
|
+
# Generate the bindings
|
|
24
|
+
bash ./scripts/generate_bindings.sh
|
|
25
|
+
|
|
26
|
+
# Run all tests
|
|
27
|
+
npm test
|
|
28
|
+
```
|