@hinkal/common 0.0.44 → 0.0.45

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.
@@ -1,5 +1,5 @@
1
- import { B as U } from "./zkProofWorkerLauncher-BPOcv44V.js";
2
- import { U as l, h as T, f, i as I, j as y, k as m, l as h, p as S } from "./zkProofWorkerLogic-CaPV5_qC.js";
1
+ import { B as U } from "./zkProofWorkerLauncher-DNgE-EH2.js";
2
+ import { U as l, h as T, f, i as I, j as y, k as m, l as h, p as S } from "./zkProofWorkerLogic-CKZxyI0O.js";
3
3
  const g = (e) => {
4
4
  const t = T.decode(
5
5
  ["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
@@ -0,0 +1,11 @@
1
+ import { W as r } from "./zkProofWorkerLogic-CKZxyI0O.js";
2
+ import "./zkProofWorkerLauncher-DNgE-EH2.js";
3
+ var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-CAfPlZZk.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-CqYoNYez.js", import.meta.url).href;
4
+ const n = {
5
+ [r.ZKProof]: o,
6
+ [r.SnarkJS]: e,
7
+ [r.UTXO]: a
8
+ };
9
+ export {
10
+ n as workerViteURL
11
+ };
@@ -1192,7 +1192,7 @@ const It = /* @__PURE__ */ dt(mt), Ft = () => {
1192
1192
  };
1193
1193
  globalThis.process = It;
1194
1194
  globalThis.Buffer = gr;
1195
- const Tt = import("./zkProofWorkerLogic-CaPV5_qC.js").then(function(h) {
1195
+ const Tt = import("./zkProofWorkerLogic-CKZxyI0O.js").then(function(h) {
1196
1196
  return h.z;
1197
1197
  });
1198
1198
  addEventListener("message", async (h) => {
@@ -1,4 +1,4 @@
1
- import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-BPOcv44V.js";
1
+ import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-DNgE-EH2.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)
@@ -165242,7 +165242,7 @@ class WorkerFactory {
165242
165242
  constructor() {
165243
165243
  }
165244
165244
  static resolveWorkerURL = async (d) => {
165245
- const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-B_0V36oA.js");
165245
+ const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-yzbQlw8R.js");
165246
165246
  return new URL(c[d], n);
165247
165247
  };
165248
165248
  static createWorker = async (d) => {
@@ -165250,12 +165250,12 @@ class WorkerFactory {
165250
165250
  let c;
165251
165251
  return d === WorkerVariant.SnarkJS ? c = await import(
165252
165252
  /* @vite-ignore */
165253
- "./snarkjsWorkerLogic-DLhoRE_O.js"
165253
+ "./snarkjsWorkerLogic-DTEL7AXd.js"
165254
165254
  ) : d === WorkerVariant.ZKProof ? c = await Promise.resolve().then(function() {
165255
165255
  return zkProofWorkerLogic;
165256
165256
  }) : d === WorkerVariant.UTXO && (c = await import(
165257
165257
  /* @vite-ignore */
165258
- "./utxoWorkerLogic-DzsRGSVo.js"
165258
+ "./utxoWorkerLogic-ymLa0dS1.js"
165259
165259
  )), c.default;
165260
165260
  }
165261
165261
  const n = await WorkerFactory.resolveWorkerURL(d);
@@ -75,7 +75,7 @@ export declare class Hinkal<ConnectorType> implements IHinkal {
75
75
  actionPendleLP(erc20Addresses: string[], amountChanges: bigint[], pendleLPMetadata: PendleLPMetadata, gasTokenAddress?: string, onlyGasEstimate?: boolean): Promise<RelayerTransaction | bigint>;
76
76
  actionVolatile(erc20Addresses: string[], amountChanges: bigint[], volatileHelperData: VolatileHelperData, onlyGasEstimate?: boolean): Promise<RelayerTransaction | ContractTransaction | bigint>;
77
77
  actionStake(erc20Addresses: string[], amountChanges: bigint[], stakeMode: HinkalStakeMode, stakedTokenRecipient: string): Promise<ContractTransaction>;
78
- actionPrivateWallet(erc20Addresses: string[], amountChanges: bigint[], ops: string[] | undefined, walletNonce: bigint | undefined, onlyGasEstimate?: boolean): Promise<RelayerTransaction | bigint>;
78
+ actionPrivateWallet(erc20Addresses: string[], amountChanges: bigint[], ops?: string[], walletNonce?: bigint, onlyGasEstimate?: boolean): Promise<RelayerTransaction | bigint>;
79
79
  getPendleLPClaimableParams(wlpTokenAddress: string, wlpTokenBalance: bigint): Promise<{
80
80
  amount: bigint;
81
81
  timestamp: string;