@gurge/sdk-react-native 0.3.71 → 0.3.74

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.
Files changed (67) hide show
  1. package/_virtual/_rolldown/runtime.mjs +11 -2
  2. package/common/src/crypto/babyJub.cjs +1 -1
  3. package/common/src/crypto/babyJub.mjs +7 -6
  4. package/common/src/crypto/eddsa.cjs +1 -1
  5. package/common/src/crypto/eddsa.mjs +7 -6
  6. package/common/src/crypto/poseidon.cjs +1 -1
  7. package/common/src/crypto/poseidon.mjs +13 -13
  8. package/common/src/data-structures/IndexedDB/activity-db.cjs +1 -1
  9. package/common/src/data-structures/IndexedDB/activity-db.mjs +38 -38
  10. package/common/src/data-structures/IndexedDB/balances-db.cjs +1 -1
  11. package/common/src/data-structures/IndexedDB/balances-db.mjs +18 -16
  12. package/common/src/data-structures/IndexedDB/contact-db.cjs +1 -1
  13. package/common/src/data-structures/IndexedDB/contact-db.mjs +16 -14
  14. package/common/src/data-structures/IndexedDB/key-val-store.cjs +1 -1
  15. package/common/src/data-structures/IndexedDB/key-val-store.mjs +12 -12
  16. package/common/src/data-structures/IndexedDB/pay-activity-db.cjs +1 -1
  17. package/common/src/data-structures/IndexedDB/pay-activity-db.mjs +10 -8
  18. package/common/src/data-structures/IndexedDB/signatures-db.cjs +1 -1
  19. package/common/src/data-structures/IndexedDB/signatures-db.mjs +23 -21
  20. package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +1 -1
  21. package/common/src/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +32 -31
  22. package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.cjs +1 -1
  23. package/common/src/data-structures/TokenDBs/ArcPublicTokensDB.mjs +25 -25
  24. package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -1
  25. package/common/src/data-structures/TokenDBs/EventsPublicTokensDB.mjs +47 -46
  26. package/common/src/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
  27. package/common/src/data-structures/TokenDBs/PrivateTokensDB.mjs +20 -20
  28. package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.cjs +1 -1
  29. package/common/src/data-structures/TokenDBs/TempoPublicTokensDB.mjs +19 -19
  30. package/common/src/data-structures/TokenDBs/TronPublicTokensDB.cjs +1 -1
  31. package/common/src/data-structures/TokenDBs/TronPublicTokensDB.mjs +19 -19
  32. package/common/src/data-structures/TokenDBs/token-visibility-db.cjs +1 -1
  33. package/common/src/data-structures/TokenDBs/token-visibility-db.mjs +45 -44
  34. package/common/src/functions/snarkjs/verifyCommitmentValidationData.cjs +1 -1
  35. package/common/src/functions/snarkjs/verifyCommitmentValidationData.mjs +4 -1
  36. package/common/src/functions/utils/cacheFunctions.cjs +1 -1
  37. package/common/src/functions/utils/cacheFunctions.mjs +13 -13
  38. package/common/src/functions/utils/ipfs.cjs +1 -1
  39. package/common/src/functions/utils/ipfs.mjs +3 -1
  40. package/common/src/webworker/viteWorkerURL.constant.mjs +3 -3
  41. package/package.json +1 -1
  42. package/shims/circomlibjs-hinkal-fork.cjs +14 -0
  43. package/shims/circomlibjs-hinkal-fork.mjs +3 -0
  44. package/shims/circomlibjs.cjs +15 -0
  45. package/shims/circomlibjs.mjs +3 -0
  46. package/shims/constants.cjs +7 -0
  47. package/shims/constants.mjs +3 -0
  48. package/shims/crypto.cjs +102 -0
  49. package/shims/crypto.mjs +3 -0
  50. package/shims/ffjavascript.cjs +5 -0
  51. package/shims/ffjavascript.mjs +3 -0
  52. package/shims/globals.cjs +15 -0
  53. package/shims/globals.mjs +3 -0
  54. package/shims/idb-keyval.cjs +75 -0
  55. package/shims/idb-keyval.mjs +3 -0
  56. package/shims/multiformats.cjs +1 -0
  57. package/shims/multiformats.mjs +3 -0
  58. package/shims/os.cjs +7 -0
  59. package/shims/os.mjs +3 -0
  60. package/shims/readline.cjs +6 -0
  61. package/shims/readline.mjs +3 -0
  62. package/shims/snarkjs.cjs +21 -0
  63. package/shims/snarkjs.mjs +3 -0
  64. package/shims/url.cjs +5 -0
  65. package/shims/url.mjs +3 -0
  66. package/shims/web-worker.cjs +7 -0
  67. package/shims/web-worker.mjs +3 -0
@@ -0,0 +1,3 @@
1
+ import mod from "./idb-keyval.cjs";
2
+ export function require_idb_keyval() { return mod; }
3
+ export default mod;
@@ -0,0 +1 @@
1
+ module.exports = {};
@@ -0,0 +1,3 @@
1
+ import mod from "./multiformats.cjs";
2
+ export function require_multiformats() { return mod; }
3
+ export default mod;
package/shims/os.cjs ADDED
@@ -0,0 +1,7 @@
1
+ module.exports = {
2
+ hostname: () => 'localhost',
3
+ platform: () => 'linux',
4
+ arch: () => 'arm64',
5
+ EOL: '\n',
6
+ tmpdir: () => '/tmp',
7
+ };
package/shims/os.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import mod from "./os.cjs";
2
+ export function require_os() { return mod; }
3
+ export default mod;
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ createInterface: () => ({
3
+ on: () => {},
4
+ close: () => {},
5
+ }),
6
+ };
@@ -0,0 +1,3 @@
1
+ import mod from "./readline.cjs";
2
+ export function require_readline() { return mod; }
3
+ export default mod;
@@ -0,0 +1,21 @@
1
+ function notSupported(name) {
2
+ return () => {
3
+ throw new Error(
4
+ `[hinkal-rn] snarkjs.${name} is not available on the React Native JS thread. ` +
5
+ "All proof generation must go through the SnarkJS WebView bridge.",
6
+ );
7
+ };
8
+ }
9
+
10
+ module.exports = {
11
+ groth16: {
12
+ fullProve: notSupported("groth16.fullProve"),
13
+ prove: notSupported("groth16.prove"),
14
+ verify: notSupported("groth16.verify"),
15
+ exportSolidityCallData: notSupported("groth16.exportSolidityCallData"),
16
+ },
17
+ zKey: {
18
+ exportVerificationKey: notSupported("zKey.exportVerificationKey"),
19
+ },
20
+ };
21
+ module.exports.default = module.exports;
@@ -0,0 +1,3 @@
1
+ import mod from "./snarkjs.cjs";
2
+ export function require_snarkjs() { return mod; }
3
+ export default mod;
package/shims/url.cjs ADDED
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ pathToFileURL: (p) => ({ href: p }),
3
+ fileURLToPath: (u) => u,
4
+ URL: typeof URL !== "undefined" ? URL : null,
5
+ };
package/shims/url.mjs ADDED
@@ -0,0 +1,3 @@
1
+ import mod from "./url.cjs";
2
+ export function require_url() { return mod; }
3
+ export default mod;
@@ -0,0 +1,7 @@
1
+ module.exports = class Worker {
2
+ constructor() {}
3
+ postMessage() {}
4
+ terminate() {}
5
+ addEventListener() {}
6
+ removeEventListener() {}
7
+ };
@@ -0,0 +1,3 @@
1
+ import mod from "./web-worker.cjs";
2
+ export function require_web_worker() { return mod; }
3
+ export default mod;