@cetusprotocol/terminal 0.1.3 → 0.1.5

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.
Binary file
@@ -20266,10 +20266,7 @@ var iN = class {
20266
20266
  }
20267
20267
  swap(e, t, r, n, i) {
20268
20268
  return wt(this, null, function* () {
20269
- const { direction: s } = r;
20270
- if (!s)
20271
- throw new Error("Haedal not support b2a swap");
20272
- const o = "swap_a2b", a = [t.object(r.id), t.object("0x5"), n], c = _r(e.publishedAtV2(), i);
20269
+ const { direction: s } = r, o = s ? "swap_a2b" : "swap_b2a", a = [t.object(r.id), t.object("0x5"), n], c = _r(e.publishedAtV2(), i);
20273
20270
  return t.moveCall({
20274
20271
  target: `${c}::haedal::${o}`,
20275
20272
  typeArguments: [],
@@ -20723,7 +20720,7 @@ var TN = class {
20723
20720
  }
20724
20721
  // Include cetus、deepbookv2、flowxv2 & v3、kriyav2 & v3、turbos、aftermath、haedal、afsui、volo、bluemove
20725
20722
  publishedAtV2() {
20726
- return this.env === 0 ? "0x3fb42ddf908af45f9fc3c59eab227888ff24ba2e137b3b55bf80920fd47e11af" : "0x52eae33adeb44de55cfb3f281d4cc9e02d976181c0952f5323648b5717b33934";
20723
+ return this.env === 0 ? "0xf9c6f78322ed667909e05f6b42b2f5a67af6297503c905335e02a15148e9440d" : "0x52eae33adeb44de55cfb3f281d4cc9e02d976181c0952f5323648b5717b33934";
20727
20724
  }
20728
20725
  // Include deepbookv3, scallop, bluefin
20729
20726
  publishedAtV2Extend() {
@@ -20965,7 +20962,7 @@ function kN(e, t) {
20965
20962
  providers: l
20966
20963
  } = t, f = ps(r), h = ps(n);
20967
20964
  let y = `${e}/find_routes?from=${f}&target=${h}&amount=${i.toString()}&by_amount_in=${s}`;
20968
- return o && (y += `&depth=${o}`), a && (y += `&split_algorithm=${a}`), c && (y += `&split_factor=${c}`), u && (y += `&split_count=${u}`), l && l.length > 0 && (y += `&providers=${l.join(",")}`), y += "&v=1000319", yield fetch(y);
20965
+ return o && (y += `&depth=${o}`), a && (y += `&split_algorithm=${a}`), c && (y += `&split_factor=${c}`), u && (y += `&split_count=${u}`), l && l.length > 0 && (y += `&providers=${l.join(",")}`), y += "&v=1000321", yield fetch(y);
20969
20966
  } catch (r) {
20970
20967
  return console.error(r), null;
20971
20968
  }
Binary file