@hinkal/common 0.0.52 → 0.0.54

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 (26) hide show
  1. package/assets/{snarkjsWorkerLogic-C_MtXVdj.js → snarkjsWorkerLogic-Bu8Lt2xt.js} +2 -2
  2. package/assets/{utxoWorkerLogic-xG7UH4_1.js → utxoWorkerLogic-CZpZ9nIc.js} +2 -2
  3. package/assets/{viteWorkerURL.constant-DDSRgJCA.js → viteWorkerURL.constant-YWBWnVHI.js} +2 -2
  4. package/assets/{zkProofWorkerLauncher-BNaaoPQ7.js → zkProofWorkerLauncher-BzXpzw_h.js} +1 -1
  5. package/assets/{zkProofWorkerLogic--J1eNnn8.js → zkProofWorkerLogic-B8fCzGcH.js} +21453 -17796
  6. package/data-structures/Hinkal/Hinkal.d.ts +1 -0
  7. package/data-structures/Hinkal/IHinkal.d.ts +1 -0
  8. package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +2 -0
  9. package/data-structures/Hinkal/index.d.ts +1 -0
  10. package/externalABIs/index.d.ts +2 -1
  11. package/functions/private-wallet/index.d.ts +1 -0
  12. package/functions/private-wallet/opProducer.d.ts +5 -0
  13. package/functions/snarkjs/generateCircomData.d.ts +2 -1
  14. package/functions/snarkjs/generateZkProof.d.ts +1 -1
  15. package/functions/utils/external-action.utils.d.ts +2 -1
  16. package/{index-BLdwnJPj.mjs → index-C5z2wB-7.mjs} +24187 -19278
  17. package/index.mjs +404 -400
  18. package/package.json +1 -1
  19. package/{snarkjsWorkerLogic-VFKqHDuO.mjs → snarkjsWorkerLogic-DEzpVK2G.mjs} +2 -2
  20. package/types/ethereum-network.types.d.ts +1 -0
  21. package/types/hinkal.types.d.ts +1 -0
  22. package/{utxoWorkerLogic-Ca6cWQhG.mjs → utxoWorkerLogic-Co3idtCS.mjs} +2 -2
  23. package/viteWorkerURL.constant-CNLdRbDh.mjs +9 -0
  24. package/{workerProxy-CHspkHvN.mjs → workerProxy-B9GrSeks.mjs} +1 -1
  25. package/{zkProofWorkerLogic-ZYFSlYEQ.mjs → zkProofWorkerLogic-C7KCsrVa.mjs} +2 -2
  26. package/viteWorkerURL.constant-BG7q0oTX.mjs +0 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hinkal/common",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "nx build",
@@ -1,5 +1,5 @@
1
- import { r as sn, g as ja, p as Se, a as Lo, B as mo, b as bo, c as en, e as $a, d as Ga, u as Un } from "./index-BLdwnJPj.mjs";
2
- import { W as yo } from "./workerProxy-CHspkHvN.mjs";
1
+ import { r as sn, g as ja, p as Se, a as Lo, B as mo, b as bo, c as en, e as $a, d as Ga, u as Un } from "./index-C5z2wB-7.mjs";
2
+ import { W as yo } from "./workerProxy-B9GrSeks.mjs";
3
3
  const Co = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
4
4
  function rn(c, t) {
5
5
  if (!t || t == 10)
@@ -119,6 +119,7 @@ export interface ContractData {
119
119
  HTokenABI?: ContractInterface;
120
120
  hETHOracleAddress?: string;
121
121
  HTokenOracleABI?: ContractInterface;
122
+ emporiumAddress?: string;
122
123
  }
123
124
  export interface EthereumNetwork {
124
125
  name: string;
@@ -108,5 +108,6 @@ export declare enum INTERACTION {
108
108
  PENDLE_LP_CLAIM = "PENDLE_LP_CLAIM",
109
109
  VOLATILE_WITHDRAW = "VOLATILE_WITHDRAW",
110
110
  VOLATILE_SWAP = "VOLATILE_SWAP",
111
+ EMPORIUM = "EMPORIUM",
111
112
  NONE = "NONE"
112
113
  }
@@ -1,5 +1,5 @@
1
- import { U as y, k as h, l as f, B as p, m as U, n as g, o as d, q as x, j as T, s as u } from "./index-BLdwnJPj.mjs";
2
- import { W as v } from "./workerProxy-CHspkHvN.mjs";
1
+ import { U as y, k as h, l as f, B as p, m as U, n as g, o as d, q as x, j as T, s as u } from "./index-C5z2wB-7.mjs";
2
+ import { W as v } from "./workerProxy-B9GrSeks.mjs";
3
3
  const i = new v(), k = async ({ data: e }) => {
4
4
  const { utxos: t, nullifiers: r } = e, o = t.filter((s) => {
5
5
  const c = new y(s);
@@ -0,0 +1,9 @@
1
+ import { W as r } from "./index-C5z2wB-7.mjs";
2
+ const e = "" + new URL("assets/zkProofWorkerLauncher-BzXpzw_h.js", import.meta.url).href, o = "" + new URL("assets/snarkjsWorkerLauncher-CAfPlZZk.js", import.meta.url).href, s = "" + new URL("assets/utxoWorkerLauncher-DnwHvvqe.js", import.meta.url).href, a = {
3
+ [r.ZKProof]: e,
4
+ [r.SnarkJS]: o,
5
+ [r.UTXO]: s
6
+ };
7
+ export {
8
+ a as workerViteURL
9
+ };
@@ -1,4 +1,4 @@
1
- import { p as s } from "./index-BLdwnJPj.mjs";
1
+ import { p as s } from "./index-C5z2wB-7.mjs";
2
2
  class r {
3
3
  isNode = !1;
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { M as p, f as g, U as T, h as k, i as u, j as I, Z as m, k as C } from "./index-BLdwnJPj.mjs";
2
- import { W as M } from "./workerProxy-CHspkHvN.mjs";
1
+ import { M as p, f as g, U as T, h as k, i as u, j as I, Z as m, k as C } from "./index-C5z2wB-7.mjs";
2
+ import { W as M } from "./workerProxy-B9GrSeks.mjs";
3
3
  const d = new M(), h = (e) => {
4
4
  const { inputUtxosSerialized: s, merkleTreeSerialized: n } = e.data, l = n.tree, a = new Map(
5
5
  Object.entries(l).map(([r, c]) => [BigInt(r), BigInt(c)])
@@ -1,9 +0,0 @@
1
- import { W as r } from "./index-BLdwnJPj.mjs";
2
- const o = "" + new URL("assets/zkProofWorkerLauncher-BNaaoPQ7.js", import.meta.url).href, e = "" + new URL("assets/snarkjsWorkerLauncher-CAfPlZZk.js", import.meta.url).href, s = "" + new URL("assets/utxoWorkerLauncher-DnwHvvqe.js", import.meta.url).href, a = {
3
- [r.ZKProof]: o,
4
- [r.SnarkJS]: e,
5
- [r.UTXO]: s
6
- };
7
- export {
8
- a as workerViteURL
9
- };