@unlink-xyz/core 0.1.3-canary.e355339 → 0.1.3-canary.e85e37f

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.
@@ -75311,14 +75311,6 @@ var InitializationError = class extends CoreError {
75311
75311
  this.name = "InitializationError";
75312
75312
  }
75313
75313
  };
75314
- var ReconcileError = class extends CoreError {
75315
- status;
75316
- constructor(message, status) {
75317
- super(message);
75318
- this.name = "ReconcileError";
75319
- this.status = status;
75320
- }
75321
- };
75322
75314
 
75323
75315
  // keys.ts
75324
75316
  init_process();
@@ -106849,9 +106841,8 @@ async function transact(store, req, opts) {
106849
106841
  merkleRoot: parseHexToBigInt(r3.merkleRoot),
106850
106842
  nullifierHashes: r3.contexts.map((c) => c.nullifier),
106851
106843
  newCommitments: r3.proof.pubSignals.slice(
106852
- 2 + r3.contexts.length,
106844
+ 2 + r3.contexts.length
106853
106845
  // Skip root + boundParams + nullifiers
106854
- r3.withdrawal.amount > 0n ? r3.proof.pubSignals.length - 1 : void 0
106855
106846
  ),
106856
106847
  context: { chainId: BigInt(req.chainId), poolAddress: req.poolAddress },
106857
106848
  withdrawal: r3.withdrawal,
@@ -107482,19 +107473,11 @@ function createJobReconciler(deps) {
107482
107473
  async function reconcileJob(job) {
107483
107474
  const latest = await stateStore.getJob(job.relayId) ?? job;
107484
107475
  if (!ACTIVE_STATUSES.includes(latest.status)) {
107485
- if (latest.status === "failed" || latest.status === "dead") {
107486
- throw new ReconcileError(
107487
- latest.error ?? `job ${latest.status}`,
107488
- latest.status
107489
- );
107490
- }
107491
107476
  return null;
107492
107477
  }
107493
107478
  if (latest.status !== "succeeded" && isTimedOut(latest)) {
107494
107479
  await markDead(latest, "job timed out");
107495
- const current = await stateStore.getJob(latest.relayId);
107496
- if (current?.status === "succeeded") return null;
107497
- throw new ReconcileError("job timed out", "dead");
107480
+ return new Error("job timed out");
107498
107481
  }
107499
107482
  if (latest.kind === "deposit") {
107500
107483
  return depositClient.syncPendingDeposit(latest.relayId);
@@ -108032,7 +108015,6 @@ export {
108032
108015
  Mnemonic,
108033
108016
  ProofError,
108034
108017
  RESERVED_PREFIXES,
108035
- ReconcileError,
108036
108018
  SNARK_SCALAR_FIELD,
108037
108019
  SchemaMismatchError,
108038
108020
  ValidationError,