@hinkal/common 0.0.38 → 0.0.40

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 (30) hide show
  1. package/assets/{utxoWorkerLauncher-DD2MTdrZ.js → snarkjsWorkerLauncher-CAfPlZZk.js} +1 -2
  2. package/assets/{snarkjsWorkerLogic-CEwqbPan.js → snarkjsWorkerLogic-CfOGOfbH.js} +26 -30
  3. package/assets/{snarkjsWorkerLogic-CLrSWcNt.js → snarkjsWorkerLogic-DiaByR1H.js} +615 -613
  4. package/assets/{snarkjsWorkerLauncher-CA30lfwg.js → utxoWorkerLauncher-DnwHvvqe.js} +1 -2
  5. package/assets/{utxoWorkerLogic-POijX68C.js → utxoWorkerLogic-7GeccTLS.js} +31 -26
  6. package/assets/{utxoWorkerLogic-BgOyVxuc.js → utxoWorkerLogic-DHb7wtxM.js} +9 -9
  7. package/assets/viteWorkerURL.constant-Bx32O0Qa.js +11 -0
  8. package/assets/{zkProofWorkerLauncher-3zvFwfyC.js → zkProofWorkerLauncher-DvQXC-QM.js} +22 -23
  9. package/assets/{zkProofWorkerLogic-DjFkre1v.js → zkProofWorkerLogic-DIo7waUX.js} +49 -45
  10. package/constants/token-data/index.d.ts +2 -1
  11. package/constants/token-data/popularTokens.constants.d.ts +3 -0
  12. package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +2 -0
  13. package/data-structures/Hinkal/index.d.ts +1 -0
  14. package/functions/index.d.ts +1 -0
  15. package/functions/private-wallet/emporium.helpers.d.ts +5 -0
  16. package/functions/private-wallet/index.d.ts +1 -0
  17. package/functions/snarkjs/constructEmporiumProof.d.ts +10 -0
  18. package/functions/snarkjs/index.d.ts +1 -0
  19. package/{index-B2h7Ehka.js → index-C7zxPPzW.mjs} +7814 -7666
  20. package/index.mjs +453 -0
  21. package/package.json +6 -9
  22. package/{snarkjsWorkerLogic-CVOSTl5c.js → snarkjsWorkerLogic-BszTPPlr.mjs} +615 -612
  23. package/types/ethereum-network.types.d.ts +1 -0
  24. package/{utxoWorkerLogic-BG98Iib9.js → utxoWorkerLogic-WtCYAQcE.mjs} +4 -4
  25. package/viteWorkerURL.constant-sXT6CAEx.mjs +9 -0
  26. package/{workerProxy-AhHfF6hk.js → workerProxy-DrJgrlsz.mjs} +1 -1
  27. package/{zkProofWorkerLogic-Dk3zCanr.js → zkProofWorkerLogic-Zc8QRB_b.mjs} +20 -20
  28. package/assets/viteWorkerURL.constant-CQNSvlud.js +0 -11
  29. package/index.js +0 -448
  30. package/viteWorkerURL.constant-DtthAV1C.js +0 -9
@@ -1,4 +1,4 @@
1
- import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-3zvFwfyC.js";
1
+ import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-DvQXC-QM.js";
2
2
  const hexLen = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
3
3
  function fromString$1(a, d) {
4
4
  if (!d || d == 10)
@@ -11431,7 +11431,7 @@ function eventTargetAgnosticAddListener(a, d, n, c) {
11431
11431
  else
11432
11432
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof a);
11433
11433
  }
11434
- var eventsExports = events$1.exports, streamBrowser$1 = eventsExports.EventEmitter, require$$0$5 = /* @__PURE__ */ getAugmentedNamespace(dist$1), util$c = {}, types$i = {}, shams$1 = function() {
11434
+ var eventsExports = events$1.exports, streamBrowser$1 = eventsExports.EventEmitter, require$$0$4 = /* @__PURE__ */ getAugmentedNamespace(dist$1), util$c = {}, types$i = {}, shams$1 = function() {
11435
11435
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
11436
11436
  return !1;
11437
11437
  if (typeof Symbol.iterator == "symbol")
@@ -12675,7 +12675,7 @@ function requireBuffer_list() {
12675
12675
  }
12676
12676
  return (F === "string" ? String : Number)(se);
12677
12677
  }
12678
- var G = require$$0$5, U = G.Buffer, H = util$c, ne = H.inspect, S = ne && ne.custom || "inspect";
12678
+ var G = require$$0$4, U = G.Buffer, H = util$c, ne = H.inspect, S = ne && ne.custom || "inspect";
12679
12679
  function fe(se, F, Z) {
12680
12680
  U.prototype.copy.call(se, F, Z);
12681
12681
  }
@@ -12940,7 +12940,7 @@ function require_stream_writable$1() {
12940
12940
  Ee.WritableState = Me;
12941
12941
  var n = {
12942
12942
  deprecate: browser$e
12943
- }, c = streamBrowser$1, u = require$$0$5.Buffer, p = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
12943
+ }, c = streamBrowser$1, u = require$$0$4.Buffer, p = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
12944
12944
  };
12945
12945
  function h(ye) {
12946
12946
  return u.from(ye);
@@ -13229,7 +13229,7 @@ var string_decoder = {}, safeBuffer$1 = { exports: {} };
13229
13229
  var hasRequiredSafeBuffer$1;
13230
13230
  function requireSafeBuffer$1() {
13231
13231
  return hasRequiredSafeBuffer$1 || (hasRequiredSafeBuffer$1 = 1, function(a, d) {
13232
- var n = require$$0$5, c = n.Buffer;
13232
+ var n = require$$0$4, c = n.Buffer;
13233
13233
  function u(h, D) {
13234
13234
  for (var G in h)
13235
13235
  D[G] = h[G];
@@ -13611,7 +13611,7 @@ function require_stream_readable$1() {
13611
13611
  V.ReadableState = Ee, eventsExports.EventEmitter;
13612
13612
  var d = function(Aa, Ge) {
13613
13613
  return Aa.listeners(Ge).length;
13614
- }, n = streamBrowser$1, c = require$$0$5.Buffer, u = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
13614
+ }, n = streamBrowser$1, c = require$$0$4.Buffer, u = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
13615
13615
  };
13616
13616
  function p(Ze) {
13617
13617
  return c.from(Ze);
@@ -14336,7 +14336,7 @@ bn$6.exports;
14336
14336
  typeof d == "object" ? d.exports = p : n.BN = p, p.BN = p, p.wordSize = 26;
14337
14337
  var h;
14338
14338
  try {
14339
- typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$5.Buffer;
14339
+ typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$4.Buffer;
14340
14340
  } catch {
14341
14341
  }
14342
14342
  p.isBN = function(w) {
@@ -54832,10 +54832,15 @@ let didPreprocess = !1;
54832
54832
  const preProcessing = async () => {
54833
54833
  didPreprocess || (await poseidonHolder.init(), await jubHolder.init(), didPreprocess = !0);
54834
54834
  };
54835
- var libsodiumWrappers$1 = {}, libsodium$1 = { exports: {} }, empty$1 = null, empty$2 = /* @__PURE__ */ Object.freeze({
54836
- __proto__: null,
54837
- default: empty$1
54838
- }), require$$0$4 = /* @__PURE__ */ getAugmentedNamespace(empty$2), pathBrowserify, hasRequiredPathBrowserify;
54835
+ var libsodiumWrappers$1 = {}, libsodium$1 = { exports: {} }, empty_1, hasRequiredEmpty;
54836
+ function requireEmpty() {
54837
+ if (hasRequiredEmpty)
54838
+ return empty_1;
54839
+ hasRequiredEmpty = 1;
54840
+ var a = null;
54841
+ return empty_1 = a, empty_1;
54842
+ }
54843
+ var pathBrowserify, hasRequiredPathBrowserify;
54839
54844
  function requirePathBrowserify() {
54840
54845
  if (hasRequiredPathBrowserify)
54841
54846
  return pathBrowserify;
@@ -55219,7 +55224,7 @@ function requireRipemd160() {
55219
55224
  if (hasRequiredRipemd160)
55220
55225
  return ripemd160$3;
55221
55226
  hasRequiredRipemd160 = 1;
55222
- var a = require$$0$5.Buffer, d = inherits_browserExports, n = requireHashBase(), c = new Array(16), u = [
55227
+ var a = require$$0$4.Buffer, d = inherits_browserExports, n = requireHashBase(), c = new Array(16), u = [
55223
55228
  0,
55224
55229
  1,
55225
55230
  2,
@@ -58328,7 +58333,7 @@ function requireBn$5() {
58328
58333
  typeof d == "object" ? d.exports = p : n.BN = p, p.BN = p, p.wordSize = 26;
58329
58334
  var h;
58330
58335
  try {
58331
- typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$5.Buffer;
58336
+ typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$4.Buffer;
58332
58337
  } catch {
58333
58338
  }
58334
58339
  p.isBN = function(C) {
@@ -59511,7 +59516,7 @@ function requireBn$4() {
59511
59516
  typeof d == "object" ? d.exports = p : n.BN = p, p.BN = p, p.wordSize = 26;
59512
59517
  var h;
59513
59518
  try {
59514
- typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$5.Buffer;
59519
+ typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$4.Buffer;
59515
59520
  } catch {
59516
59521
  }
59517
59522
  p.isBN = function(C) {
@@ -61009,7 +61014,7 @@ function requireStreamBrowser() {
61009
61014
  var safeBuffer = { exports: {} }, hasRequiredSafeBuffer;
61010
61015
  function requireSafeBuffer() {
61011
61016
  return hasRequiredSafeBuffer || (hasRequiredSafeBuffer = 1, function(a, d) {
61012
- var n = require$$0$5, c = n.Buffer;
61017
+ var n = require$$0$4, c = n.Buffer;
61013
61018
  function u(h, D) {
61014
61019
  for (var G in h)
61015
61020
  D[G] = h[G];
@@ -61099,7 +61104,7 @@ function requireUtil() {
61099
61104
  return F === null || typeof F == "boolean" || typeof F == "number" || typeof F == "string" || typeof F == "symbol" || // ES6 symbol
61100
61105
  typeof F > "u";
61101
61106
  }
61102
- util$b.isPrimitive = fe, util$b.isBuffer = require$$0$5.Buffer.isBuffer;
61107
+ util$b.isPrimitive = fe, util$b.isBuffer = require$$0$4.Buffer.isBuffer;
61103
61108
  function se(F) {
61104
61109
  return Object.prototype.toString.call(F);
61105
61110
  }
@@ -61948,7 +61953,7 @@ function requireBn$3() {
61948
61953
  typeof d == "object" ? d.exports = p : n.BN = p, p.BN = p, p.wordSize = 26;
61949
61954
  var h;
61950
61955
  try {
61951
- typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$5.Buffer;
61956
+ typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$4.Buffer;
61952
61957
  } catch {
61953
61958
  }
61954
61959
  p.isBN = function(C) {
@@ -65244,7 +65249,7 @@ function requireBn$2() {
65244
65249
  typeof d == "object" ? d.exports = p : n.BN = p, p.BN = p, p.wordSize = 26;
65245
65250
  var h;
65246
65251
  try {
65247
- typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$5.Buffer;
65252
+ typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$4.Buffer;
65248
65253
  } catch {
65249
65254
  }
65250
65255
  p.isBN = function(C) {
@@ -66629,7 +66634,7 @@ function requireBuffer() {
66629
66634
  if (hasRequiredBuffer)
66630
66635
  return buffer;
66631
66636
  hasRequiredBuffer = 1;
66632
- var a = inherits_browserExports, d = requireBase().Reporter, n = require$$0$5.Buffer;
66637
+ var a = inherits_browserExports, d = requireBase().Reporter, n = require$$0$4.Buffer;
66633
66638
  function c(p, h) {
66634
66639
  if (d.call(this, h), !n.isBuffer(p)) {
66635
66640
  this.error("Input not Buffer");
@@ -67240,7 +67245,7 @@ function requirePem$1() {
67240
67245
  if (hasRequiredPem$1)
67241
67246
  return pem$1;
67242
67247
  hasRequiredPem$1 = 1;
67243
- var a = inherits_browserExports, d = require$$0$5.Buffer, n = requireDer$1();
67248
+ var a = inherits_browserExports, d = require$$0$4.Buffer, n = requireDer$1();
67244
67249
  function c(u) {
67245
67250
  n.call(this, u), this.enc = "pem";
67246
67251
  }
@@ -67279,7 +67284,7 @@ function requireDer() {
67279
67284
  if (hasRequiredDer)
67280
67285
  return der_1;
67281
67286
  hasRequiredDer = 1;
67282
- var a = inherits_browserExports, d = require$$0$5.Buffer, n = requireAsn1$1(), c = n.base, u = n.constants.der;
67287
+ var a = inherits_browserExports, d = require$$0$4.Buffer, n = requireAsn1$1(), c = n.base, u = n.constants.der;
67283
67288
  function p(U) {
67284
67289
  this.enc = "der", this.name = U.name, this.entity = U, this.tree = new h(), this.tree._init(U.body);
67285
67290
  }
@@ -67965,7 +67970,7 @@ function requireBn$1() {
67965
67970
  typeof d == "object" ? d.exports = p : n.BN = p, p.BN = p, p.wordSize = 26;
67966
67971
  var h;
67967
67972
  try {
67968
- typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$5.Buffer;
67973
+ typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$4.Buffer;
67969
67974
  } catch {
67970
67975
  }
67971
67976
  p.isBN = function(C) {
@@ -69247,7 +69252,7 @@ function requireBn() {
69247
69252
  typeof d == "object" ? d.exports = p : n.BN = p, p.BN = p, p.wordSize = 26;
69248
69253
  var h;
69249
69254
  try {
69250
- typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$5.Buffer;
69255
+ typeof window < "u" && typeof window.Buffer < "u" ? h = window.Buffer : h = require$$0$4.Buffer;
69251
69256
  } catch {
69252
69257
  }
69253
69258
  p.isBN = function(C) {
@@ -70668,7 +70673,7 @@ function requireLibsodium() {
70668
70673
  };
70669
70674
  var qe, la, he = he !== void 0 ? he : {}, Ta = Object.assign({}, he), e0 = typeof window == "object", q0 = typeof importScripts == "function", Ka = typeof process$1 == "object" && typeof process$1.versions == "object" && typeof process$1.versions.node == "string", Za = "";
70670
70675
  if (Ka) {
70671
- var G0 = require$$0$4, Q0 = requirePathBrowserify();
70676
+ var G0 = requireEmpty(), Q0 = requirePathBrowserify();
70672
70677
  Za = q0 ? Q0.dirname(Za) + "/" : __dirname + "/", qe = (fa, ha) => (fa = function(Ra) {
70673
70678
  return Ra.startsWith("file://");
70674
70679
  }(fa) ? new URL(fa) : Q0.normalize(fa), G0.readFileSync(fa, ha ? void 0 : "utf8")), la = (fa) => {
@@ -73142,7 +73147,7 @@ function requireLibsodium() {
73142
73147
  };
73143
73148
  var H, ne, S = S !== void 0 ? S : {}, fe = Object.assign({}, S), se = typeof window == "object", F = typeof importScripts == "function", Z = typeof process$1 == "object" && typeof process$1.versions == "object" && typeof process$1.versions.node == "string", $ = "";
73144
73149
  if (Z) {
73145
- var O = require$$0$4, J = requirePathBrowserify();
73150
+ var O = requireEmpty(), J = requirePathBrowserify();
73146
73151
  $ = F ? J.dirname($) + "/" : __dirname + "/", H = (Ce, Ne) => (Ce = function(qe) {
73147
73152
  return qe.startsWith("file://");
73148
73153
  }(Ce) ? new URL(Ce) : J.normalize(Ce), O.readFileSync(Ce, Ne ? void 0 : "utf8")), ne = (Ce) => {
@@ -161581,24 +161586,24 @@ class WorkerFactory {
161581
161586
  constructor() {
161582
161587
  }
161583
161588
  static resolveWorkerURL = async (d) => {
161584
- const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-CQNSvlud.js");
161589
+ const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-Bx32O0Qa.js");
161585
161590
  return new URL(c[d], n);
161586
161591
  };
161587
161592
  static createWorker = async (d) => {
161588
- if (console.log({ isRunningInNode: WorkerFactory.isRunningInNode }), WorkerFactory.isRunningInNode) {
161593
+ if (WorkerFactory.isRunningInNode) {
161589
161594
  let c;
161590
161595
  return d === WorkerVariant.SnarkJS ? c = await import(
161591
161596
  /* @vite-ignore */
161592
- "./snarkjsWorkerLogic-CLrSWcNt.js"
161597
+ "./snarkjsWorkerLogic-DiaByR1H.js"
161593
161598
  ) : d === WorkerVariant.ZKProof ? c = await Promise.resolve().then(function() {
161594
161599
  return zkProofWorkerLogic;
161595
161600
  }) : d === WorkerVariant.UTXO && (c = await import(
161596
161601
  /* @vite-ignore */
161597
- "./utxoWorkerLogic-BgOyVxuc.js"
161602
+ "./utxoWorkerLogic-DHb7wtxM.js"
161598
161603
  )), c.default;
161599
161604
  }
161600
161605
  const n = await WorkerFactory.resolveWorkerURL(d);
161601
- return console.log({ workerUrl: n, workerVariant: d }), new Worker(n, { type: "module" });
161606
+ return new Worker(n, { type: "module" });
161602
161607
  };
161603
161608
  static getWebWorker(d) {
161604
161609
  switch (d) {
@@ -193276,7 +193281,7 @@ function requireLibsodiumSumo() {
193276
193281
  };
193277
193282
  var qe, la, he = he !== void 0 ? he : {}, Ta = Object.assign({}, he), e0 = typeof window == "object", q0 = typeof importScripts == "function", Ka = typeof process$1 == "object" && typeof process$1.versions == "object" && typeof process$1.versions.node == "string", Za = "";
193278
193283
  if (Ka) {
193279
- var G0 = require$$0$4, Q0 = requirePathBrowserify();
193284
+ var G0 = requireEmpty(), Q0 = requirePathBrowserify();
193280
193285
  Za = q0 ? Q0.dirname(Za) + "/" : __dirname + "/", qe = (fa, ha) => (fa = function(Ra) {
193281
193286
  return Ra.startsWith("file://");
193282
193287
  }(fa) ? new URL(fa) : Q0.normalize(fa), G0.readFileSync(fa, ha ? void 0 : "utf8")), la = (fa) => {
@@ -197590,7 +197595,7 @@ function requireLibsodiumSumo() {
197590
197595
  };
197591
197596
  var H, ne, S = S !== void 0 ? S : {}, fe = Object.assign({}, S), se = typeof window == "object", F = typeof importScripts == "function", Z = typeof process$1 == "object" && typeof process$1.versions == "object" && typeof process$1.versions.node == "string", $ = "";
197592
197597
  if (Z) {
197593
- var O = require$$0$4, J = requirePathBrowserify();
197598
+ var O = requireEmpty(), J = requirePathBrowserify();
197594
197599
  $ = F ? J.dirname($) + "/" : __dirname + "/", H = (Ce, Ne) => (Ce = function(qe) {
197595
197600
  return qe.startsWith("file://");
197596
197601
  }(Ce) ? new URL(Ce) : J.normalize(Ce), O.readFileSync(Ce, Ne ? void 0 : "utf8")), ne = (Ce) => {
@@ -257944,7 +257949,7 @@ const workerProxy = new WorkerProxy(), handleCalcCommitmentsSiblingAndSides = (a
257944
257949
  );
257945
257950
  workerProxy.postMessageToMainThread(u);
257946
257951
  }, onWorkerMessage = async (a) => {
257947
- console.log("onWorkerMessage zkProof starts"), await preProcessing();
257952
+ await preProcessing();
257948
257953
  const { type: d } = a.payload;
257949
257954
  switch (d) {
257950
257955
  case ZKProofWorkerActionType.CALC_COMMITMENTS_SIBLING_AND_SIDES:
@@ -257972,21 +257977,20 @@ var zkProofWorkerLogic = /* @__PURE__ */ Object.freeze({
257972
257977
  export {
257973
257978
  UserKeys as U,
257974
257979
  WorkerVariant as W,
257975
- requirePathBrowserify as a,
257976
- require$$0$4 as b,
257980
+ requireCryptoBrowserify as a,
257981
+ requirePathBrowserify as b,
257977
257982
  commonjsGlobal as c,
257978
- eventsExports as d,
257979
- empty$1 as e,
257980
- requireStreamBrowserify as f,
257983
+ requireStreamBrowserify as d,
257984
+ eventsExports as e,
257985
+ WorkerProxy as f,
257981
257986
  getDefaultExportFromCjs as g,
257982
- WorkerProxy as h,
257983
- defaultAbiCoder as i,
257984
- Utxo as j,
257985
- decryptUtxoConstructorArgs as k,
257986
- decryptUtxo as l,
257987
- logError as m,
257987
+ defaultAbiCoder as h,
257988
+ Utxo as i,
257989
+ decryptUtxoConstructorArgs as j,
257990
+ decryptUtxo as k,
257991
+ logError as l,
257988
257992
  preProcessing as p,
257989
- requireCryptoBrowserify as r,
257993
+ requireEmpty as r,
257990
257994
  util$c as u,
257991
257995
  zkProofWorkerLogic as z
257992
257996
  };
@@ -17,6 +17,7 @@ import { networkRegistry as optimismRegistry } from './optimismRegistry.json';
17
17
  import { networkRegistry as baseRegistry } from './baseRegistry.json';
18
18
  import { networkRegistry as blastRegistry } from './blastRegistry.json';
19
19
  import { networkRegistry as localhostRegistry } from './localhostRegistry.json';
20
+ import { PopularTokenSymbols } from './popularTokens.constants';
20
21
  export * from './ERC20Registry';
21
22
  declare const coingeckoRegistry: CoingeckoToken[];
22
- export { ethMainnetRegistryFixed, arbMainnetRegistryFixed, bnbMainnetRegistryFixed, polygonRegistryFixed, avalancheRegistryFixed, optimismRegistryFixed, baseRegistryFixed, blastRegistryFixed, ethMainnetRegistry, arbMainnetRegistry, bnbMainnetRegistry, polygonRegistry, avalancheRegistry, optimismRegistry, baseRegistry, blastRegistry, localhostRegistry, coingeckoRegistry, urlForBeefyVaultTotalInUSD, urlForBeefyVaultTokens, urlForRegularTokenPricesInBeefy, };
23
+ export { ethMainnetRegistryFixed, arbMainnetRegistryFixed, bnbMainnetRegistryFixed, polygonRegistryFixed, avalancheRegistryFixed, optimismRegistryFixed, baseRegistryFixed, blastRegistryFixed, ethMainnetRegistry, arbMainnetRegistry, bnbMainnetRegistry, polygonRegistry, avalancheRegistry, optimismRegistry, baseRegistry, blastRegistry, localhostRegistry, coingeckoRegistry, urlForBeefyVaultTotalInUSD, urlForBeefyVaultTokens, urlForRegularTokenPricesInBeefy, PopularTokenSymbols, };
@@ -0,0 +1,3 @@
1
+ export declare const PopularTokenSymbols: {
2
+ symbol: string;
3
+ }[];
@@ -0,0 +1,2 @@
1
+ import { IHinkal } from './IHinkal';
2
+ export declare const hinkalPrivateWallet: (hinkal: IHinkal, erc20Addresses: string[], amountChanges: bigint[], ops: string[] | undefined, walletNone: bigint, onlyGasEstimate?: boolean) => Promise<bigint | import("libs/shared/common/src/types/relayer.types").RelayerTransaction>;
@@ -8,4 +8,5 @@ export * from './hinkalDeposit';
8
8
  export * from './hinkalSwap';
9
9
  export * from './hinkalTransfer';
10
10
  export * from './hinkalWithdraw';
11
+ export * from './hinkalPrivateWallet';
11
12
  export * from './resetMerkleTrees';
@@ -5,6 +5,7 @@ export * from './snarkjs';
5
5
  export * from './pre-transaction';
6
6
  export * from './protocols';
7
7
  export * from './staking';
8
+ export * from './private-wallet';
8
9
  export * from './pre-transaction/getFlatFees';
9
10
  export * from './pre-transaction/outputUtxoProcessing';
10
11
  export * from './utils/requireEnv';
@@ -0,0 +1,5 @@
1
+ import { Contract, ContractTransaction } from 'ethers';
2
+ export declare const emporiumOp: <ContractInstance extends Contract, ContractFunctions extends ContractInstance["functions"], ExactFunction extends { [K in keyof ContractFunctions]: ReturnType<ContractFunctions[K]> extends Promise<ContractTransaction> ? K : never; }[keyof ContractFunctions], FunctionArguments extends Parameters<ContractFunctions[ExactFunction]>>(contract: ContractInstance | string, func?: ExactFunction, args?: FunctionArguments extends [
3
+ ] ? [
4
+ ] : FunctionArguments, invokeWallet?: boolean, value?: bigint) => string;
5
+ export declare const encodeEmporiumMetadata: (ops: string[], walletSalt?: string) => string;
@@ -0,0 +1 @@
1
+ export * from './emporium.helpers';
@@ -0,0 +1,10 @@
1
+ import { MerkleTree } from "../../data-structures/merkle-tree";
2
+ import { Utxo } from "../../data-structures/utxo/Utxo";
3
+ import { UserKeys } from "../../data-structures/crypto-keys/keys";
4
+ import { CircomDataType, DimDataType } from "../../types/circom-data.types";
5
+ export declare const constructEmporiumProof: (merkleTree: MerkleTree<bigint>, merkleTreeAccessToken: MerkleTree<bigint>, inputUtxos: Utxo[][], outputUtxos: Utxo[][], userKeys: UserKeys, tokenCount: number, inputCount: number, emporiumAddress: string, operations: string[], relay?: string, chainId?: number, onChainCreation?: boolean[], flatFees?: bigint[], walletNonce?: bigint, volatileAmounts?: bigint[], volatileAction?: string) => Promise<{
6
+ zkCallData: import('../../index.ts').NewZkCallDataType;
7
+ circomData: CircomDataType;
8
+ dimData: DimDataType;
9
+ encryptedOutputs: string[][];
10
+ }>;
@@ -1,3 +1,4 @@
1
1
  export * from './constructGeneralZkProof';
2
+ export * from './constructEmporiumProof';
2
3
  export * from './common.snarkjs';
3
4
  export * from './generateZkProof';