@gurge/sdk-react-native 0.3.105 → 0.3.115

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 +1,3 @@
1
- TODO
1
+ # @gurge/sdk-react-native
2
+
3
+ Prebundled Hinkal SDK for React Native. Wrap your app with `HinkalProvider`
@@ -2,9 +2,9 @@
2
2
  const domain = 'https://storage.googleapis.com/hinkal-workers-staging';
3
3
 
4
4
  const WORKER_CDN_URLS = {
5
- ZKProof: domain + '/0.3.105/' + 'zkProofWorkerLauncher.js',
6
- SnarkJS: domain + '/0.3.105/' + 'snarkjsWorkerLauncher.js',
7
- UTXO: domain + '/0.3.105/' + 'utxoWorkerLauncher.js',
5
+ ZKProof: domain + '/0.3.114/' + 'zkProofWorkerLauncher.js',
6
+ SnarkJS: domain + '/0.3.114/' + 'snarkjsWorkerLauncher.js',
7
+ UTXO: domain + '/0.3.114/' + 'utxoWorkerLauncher.js',
8
8
  };
9
9
 
10
10
  // Returns a blob:// URL which points
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gurge/sdk-react-native",
3
- "version": "0.3.105",
3
+ "version": "0.3.115",
4
4
  "description": "Prebundled Hinkal SDK for React Native — no Metro config required.",
5
5
  "homepage": "hinkal.io",
6
6
  "author": {
@@ -51,8 +51,29 @@
51
51
  "postinstall": "node ./scripts/patch-libsodium-for-rn.js"
52
52
  },
53
53
  "dependencies": {
54
+ "@coral-xyz/anchor": "^0.31.0",
55
+ "@solana/spl-token": "^0.4.14",
56
+ "@solana/web3.js": "^1.98.4",
57
+ "@solana/wallet-adapter-react": "^0.15.39",
58
+ "axios": "^1.15.0",
59
+ "async-mutex": "^0.4.0",
60
+ "bs58": "^6.0.0",
54
61
  "buffer": "6.0.3",
55
- "libsodium-wrappers": "^0.8.2"
62
+ "circomlibjs-hinkal-fork": "^0.0.10",
63
+ "dotenv": "^16.4.5",
64
+ "ethers": "^6.15.0",
65
+ "idb-keyval": "6.2.1",
66
+ "multiformats": "^9.4.2",
67
+ "snarkjs": "0.7.5",
68
+ "libsodium-wrappers": "^0.8.2",
69
+ "lodash": "^4.17.21",
70
+ "tweetnacl": "^1.0.3",
71
+ "process": "0.11.10",
72
+ "ua-parser-js": "^1.0.37",
73
+ "uuid": "^9.0.1",
74
+ "node-forge": "^1.3.1",
75
+ "poseidon-lite": "^0.3.0",
76
+ "tronweb": "^6.2.0"
56
77
  },
57
78
  "peerDependencies": {
58
79
  "react": ">=18.2.0",
@@ -71,4 +92,4 @@
71
92
  "optional": true
72
93
  }
73
94
  }
74
- }
95
+ }
package/shims/globals.cjs DELETED
@@ -1,26 +0,0 @@
1
- import { Buffer } from "buffer";
2
- import * as ReactNative from "react-native";
3
-
4
- if (typeof globalThis.WebAssembly === "undefined") {
5
- class WasmRuntimeError extends Error {
6
- constructor(message) {
7
- super(message);
8
- this.name = "RuntimeError";
9
- }
10
- }
11
- globalThis.WebAssembly = { RuntimeError: WasmRuntimeError };
12
- }
13
-
14
- global.Buffer = Buffer;
15
-
16
- // key-val-store probes indexedDB; without it the SDK falls back to FileKeyValStore (process.cwd).
17
- if (typeof globalThis.indexedDB === "undefined") {
18
- globalThis.indexedDB = {};
19
- }
20
-
21
- if (typeof global.require === "undefined") {
22
- global.require = (m) => {
23
- if (m === "react-native") return ReactNative;
24
- throw new Error(`global.require shim: unsupported module "${m}"`);
25
- };
26
- }
package/shims/globals.mjs DELETED
@@ -1,3 +0,0 @@
1
- import mod from "./globals.cjs";
2
- export function require_globals() { return mod; }
3
- export default mod;