@stableflow/core 3.1.1-rc-d5f36a0408-20260723 → 3.1.2

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.
package/dist/index.mjs CHANGED
@@ -630,6 +630,8 @@ var Service = {
630
630
  OneClickFraxZero: "oneclick-fraxzero",
631
631
  Usdt0OneClick: "usdt0-oneclick",
632
632
  OneClickUsdt0: "oneclick-usdt0",
633
+ CCTPOneClick: "cctp-oneclick",
634
+ OneClickCCTP: "oneclick-cctp",
633
635
  Native: "native"
634
636
  };
635
637
  var ServiceBackend = {
@@ -641,6 +643,8 @@ var ServiceBackend = {
641
643
  [Service.OneClickFraxZero]: "intentfraxzero",
642
644
  [Service.Usdt0OneClick]: "zerointent",
643
645
  [Service.OneClickUsdt0]: "intentzero",
646
+ [Service.CCTPOneClick]: "cctpintent",
647
+ [Service.OneClickCCTP]: "intentcctp",
644
648
  [Service.Native]: "native"
645
649
  };
646
650
  ({
@@ -652,7 +656,9 @@ var ServiceBackend = {
652
656
  [8 /* OneClickFraxZero */]: { service: Service.OneClickFraxZero },
653
657
  [3 /* Usdt0OneClick */]: { service: Service.Usdt0OneClick },
654
658
  [4 /* OneClickUsdt0 */]: { service: Service.OneClickUsdt0 },
655
- [5 /* Native */]: { service: Service.Native }
659
+ [5 /* Native */]: { service: Service.Native },
660
+ [9 /* CCTPOneClick */]: { service: Service.CCTPOneClick },
661
+ [10 /* OneClickCCTP */]: { service: Service.OneClickCCTP }
656
662
  });
657
663
 
658
664
  // src/models/ServiceStatus.ts
@@ -1959,6 +1965,8 @@ var getRouteStatus = (service, disabledServices) => {
1959
1965
  const IS_PAUSE_ONECLICK_USDT0 = disabledServices.includes(Service.OneClickUsdt0);
1960
1966
  const IS_PAUSE_FRAXZERO_ONECLICK = disabledServices.includes(Service.FraxZeroOneClick);
1961
1967
  const IS_PAUSE_ONECLICK_FRAXZERO = disabledServices.includes(Service.OneClickFraxZero);
1968
+ const IS_PAUSE_CCTP_ONECLICK = disabledServices.includes(Service.CCTPOneClick);
1969
+ const IS_PAUSE_ONECLICK_CCTP = disabledServices.includes(Service.OneClickCCTP);
1962
1970
  const IS_PAUSE_ALL = IS_PAUSE_ONECLICK && IS_PAUSE_USDT0 && IS_PAUSE_CCTP && IS_PAUSE_FRAXZERO && IS_PAUSE_NATIVE;
1963
1971
  if (IS_PAUSE_ALL) {
1964
1972
  result.disabled = true;
@@ -1970,6 +1978,12 @@ var getRouteStatus = (service, disabledServices) => {
1970
1978
  return result;
1971
1979
  }
1972
1980
  }
1981
+ if ([Service.CCTPOneClick, Service.OneClickCCTP].includes(service)) {
1982
+ if (IS_PAUSE_ONECLICK || IS_PAUSE_CCTP) {
1983
+ result.disabled = true;
1984
+ return result;
1985
+ }
1986
+ }
1973
1987
  if (service === Service.FraxZero) {
1974
1988
  if (IS_PAUSE_FRAXZERO) {
1975
1989
  result.disabled = true;
@@ -2030,6 +2044,18 @@ var getRouteStatus = (service, disabledServices) => {
2030
2044
  return result;
2031
2045
  }
2032
2046
  }
2047
+ if (service === Service.CCTPOneClick) {
2048
+ if (IS_PAUSE_CCTP_ONECLICK) {
2049
+ result.disabled = true;
2050
+ return result;
2051
+ }
2052
+ }
2053
+ if (service === Service.OneClickCCTP) {
2054
+ if (IS_PAUSE_ONECLICK_CCTP) {
2055
+ result.disabled = true;
2056
+ return result;
2057
+ }
2058
+ }
2033
2059
  return result;
2034
2060
  };
2035
2061