@stableflow/core 3.1.0 → 3.1.1-rc-8bfb4d5115-20260712

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.d.mts CHANGED
@@ -614,9 +614,9 @@ type TokenResponse = {
614
614
  */
615
615
  decimals: number;
616
616
  /**
617
- * Blockchain associated with the token
617
+ * Blockchain associated with the token (API chain key, e.g. eth, arb, tron, pharos)
618
618
  */
619
- blockchain: TokenResponse.blockchain;
619
+ blockchain: string;
620
620
  /**
621
621
  * Token symbol (e.g. BTC, ETH)
622
622
  */
@@ -634,32 +634,6 @@ type TokenResponse = {
634
634
  */
635
635
  contractAddress?: string;
636
636
  };
637
- declare namespace TokenResponse {
638
- /**
639
- * Blockchain associated with the token
640
- */
641
- enum blockchain {
642
- NEAR = "near",
643
- ETH = "eth",
644
- BASE = "base",
645
- ARB = "arb",
646
- BTC = "btc",
647
- SOL = "sol",
648
- TON = "ton",
649
- DOGE = "doge",
650
- XRP = "xrp",
651
- ZEC = "zec",
652
- GNOSIS = "gnosis",
653
- BERA = "bera",
654
- BSC = "bsc",
655
- POL = "pol",
656
- TRON = "tron",
657
- SUI = "sui",
658
- OP = "op",
659
- AVAX = "avax",
660
- CARDANO = "cardano"
661
- }
662
- }
663
637
 
664
638
  interface ChainConfig {
665
639
  chainName: string;
@@ -769,6 +743,7 @@ declare const tokens: TokenConfig[];
769
743
  declare const usdtTokens: TokenConfig[];
770
744
  declare const usdcTokens: TokenConfig[];
771
745
  declare const frxusdTokens: TokenConfig[];
746
+ declare const eureTokens: TokenConfig[];
772
747
 
773
748
  declare const usdtChains: Record<string, TokenConfig>;
774
749
 
@@ -776,6 +751,15 @@ declare const usdcChains: Record<string, TokenConfig>;
776
751
 
777
752
  declare const frxusdChains: Record<string, TokenConfig>;
778
753
 
754
+ declare const eureChains: Record<string, TokenConfig>;
755
+ declare const eureEvm: {
756
+ chains: TokenConfig[];
757
+ symbol: string;
758
+ decimals: number;
759
+ icon: string;
760
+ name: string;
761
+ };
762
+
779
763
  declare const usdt0Chains: Record<string, TokenConfig>;
780
764
 
781
765
  declare const NetworkRpcUrlsMap: Record<string, string[]>;
@@ -851,4 +835,4 @@ declare const getRouteStatus: (service: Service, disabledServices?: Service[]) =
851
835
  disabled: boolean;
852
836
  };
853
837
 
854
- export { ApiError, type AppFee, type BadRequestResponse, CancelError, CancelablePromise, type ChainType, Csl, DefaultAddresses, ExecTime, type GetExecutionStatusResponse, type GetStatusParams, type GetStatusStableflowResponse, LayerZeroStatus, NetworkRpcUrlsMap, OneClickStatus, OpenAPI, type OpenAPIConfig, type Quote, QuoteRequest, type QuoteResponse, SFA, SendType, Service, ServiceBackend, type ServiceType, StableflowStatus, type SubmitDepositTxRequest, type SubmitDepositTxResponse, type SwapDetails, type TokenConfig, TokenResponse, type TransactionDetails, TransactionStatus, type WalletConfig, _default as erc20Abi, frxusdChains, frxusdTokens, getChainRpcUrl, getPrice, getRequest, getRouteStatus, getRpcUrls, numberRemoveEndZero, postRequest, request, setRpcUrls, tokens, usdcChains, usdcTokens, usdt0Chains, usdtChains, usdtTokens };
838
+ export { ApiError, type AppFee, type BadRequestResponse, CancelError, CancelablePromise, type ChainType, Csl, DefaultAddresses, ExecTime, type GetExecutionStatusResponse, type GetStatusParams, type GetStatusStableflowResponse, LayerZeroStatus, NetworkRpcUrlsMap, OneClickStatus, OpenAPI, type OpenAPIConfig, type Quote, QuoteRequest, type QuoteResponse, SFA, SendType, Service, ServiceBackend, type ServiceType, StableflowStatus, type SubmitDepositTxRequest, type SubmitDepositTxResponse, type SwapDetails, type TokenConfig, type TokenResponse, type TransactionDetails, TransactionStatus, type WalletConfig, _default as erc20Abi, eureChains, eureEvm, eureTokens, frxusdChains, frxusdTokens, getChainRpcUrl, getPrice, getRequest, getRouteStatus, getRpcUrls, numberRemoveEndZero, postRequest, request, setRpcUrls, tokens, usdcChains, usdcTokens, usdt0Chains, usdtChains, usdtTokens };
package/dist/index.d.ts CHANGED
@@ -614,9 +614,9 @@ type TokenResponse = {
614
614
  */
615
615
  decimals: number;
616
616
  /**
617
- * Blockchain associated with the token
617
+ * Blockchain associated with the token (API chain key, e.g. eth, arb, tron, pharos)
618
618
  */
619
- blockchain: TokenResponse.blockchain;
619
+ blockchain: string;
620
620
  /**
621
621
  * Token symbol (e.g. BTC, ETH)
622
622
  */
@@ -634,32 +634,6 @@ type TokenResponse = {
634
634
  */
635
635
  contractAddress?: string;
636
636
  };
637
- declare namespace TokenResponse {
638
- /**
639
- * Blockchain associated with the token
640
- */
641
- enum blockchain {
642
- NEAR = "near",
643
- ETH = "eth",
644
- BASE = "base",
645
- ARB = "arb",
646
- BTC = "btc",
647
- SOL = "sol",
648
- TON = "ton",
649
- DOGE = "doge",
650
- XRP = "xrp",
651
- ZEC = "zec",
652
- GNOSIS = "gnosis",
653
- BERA = "bera",
654
- BSC = "bsc",
655
- POL = "pol",
656
- TRON = "tron",
657
- SUI = "sui",
658
- OP = "op",
659
- AVAX = "avax",
660
- CARDANO = "cardano"
661
- }
662
- }
663
637
 
664
638
  interface ChainConfig {
665
639
  chainName: string;
@@ -769,6 +743,7 @@ declare const tokens: TokenConfig[];
769
743
  declare const usdtTokens: TokenConfig[];
770
744
  declare const usdcTokens: TokenConfig[];
771
745
  declare const frxusdTokens: TokenConfig[];
746
+ declare const eureTokens: TokenConfig[];
772
747
 
773
748
  declare const usdtChains: Record<string, TokenConfig>;
774
749
 
@@ -776,6 +751,15 @@ declare const usdcChains: Record<string, TokenConfig>;
776
751
 
777
752
  declare const frxusdChains: Record<string, TokenConfig>;
778
753
 
754
+ declare const eureChains: Record<string, TokenConfig>;
755
+ declare const eureEvm: {
756
+ chains: TokenConfig[];
757
+ symbol: string;
758
+ decimals: number;
759
+ icon: string;
760
+ name: string;
761
+ };
762
+
779
763
  declare const usdt0Chains: Record<string, TokenConfig>;
780
764
 
781
765
  declare const NetworkRpcUrlsMap: Record<string, string[]>;
@@ -851,4 +835,4 @@ declare const getRouteStatus: (service: Service, disabledServices?: Service[]) =
851
835
  disabled: boolean;
852
836
  };
853
837
 
854
- export { ApiError, type AppFee, type BadRequestResponse, CancelError, CancelablePromise, type ChainType, Csl, DefaultAddresses, ExecTime, type GetExecutionStatusResponse, type GetStatusParams, type GetStatusStableflowResponse, LayerZeroStatus, NetworkRpcUrlsMap, OneClickStatus, OpenAPI, type OpenAPIConfig, type Quote, QuoteRequest, type QuoteResponse, SFA, SendType, Service, ServiceBackend, type ServiceType, StableflowStatus, type SubmitDepositTxRequest, type SubmitDepositTxResponse, type SwapDetails, type TokenConfig, TokenResponse, type TransactionDetails, TransactionStatus, type WalletConfig, _default as erc20Abi, frxusdChains, frxusdTokens, getChainRpcUrl, getPrice, getRequest, getRouteStatus, getRpcUrls, numberRemoveEndZero, postRequest, request, setRpcUrls, tokens, usdcChains, usdcTokens, usdt0Chains, usdtChains, usdtTokens };
838
+ export { ApiError, type AppFee, type BadRequestResponse, CancelError, CancelablePromise, type ChainType, Csl, DefaultAddresses, ExecTime, type GetExecutionStatusResponse, type GetStatusParams, type GetStatusStableflowResponse, LayerZeroStatus, NetworkRpcUrlsMap, OneClickStatus, OpenAPI, type OpenAPIConfig, type Quote, QuoteRequest, type QuoteResponse, SFA, SendType, Service, ServiceBackend, type ServiceType, StableflowStatus, type SubmitDepositTxRequest, type SubmitDepositTxResponse, type SwapDetails, type TokenConfig, type TokenResponse, type TransactionDetails, TransactionStatus, type WalletConfig, _default as erc20Abi, eureChains, eureEvm, eureTokens, frxusdChains, frxusdTokens, getChainRpcUrl, getPrice, getRequest, getRouteStatus, getRpcUrls, numberRemoveEndZero, postRequest, request, setRpcUrls, tokens, usdcChains, usdcTokens, usdt0Chains, usdtChains, usdtTokens };
package/dist/index.js CHANGED
@@ -717,32 +717,6 @@ exports.QuoteRequest = void 0;
717
717
  })(QuoteRequest2.recipientType || (QuoteRequest2.recipientType = {}));
718
718
  })(exports.QuoteRequest || (exports.QuoteRequest = {}));
719
719
 
720
- // src/models/TokenResponse.ts
721
- exports.TokenResponse = void 0;
722
- ((TokenResponse2) => {
723
- ((blockchain2) => {
724
- blockchain2["NEAR"] = "near";
725
- blockchain2["ETH"] = "eth";
726
- blockchain2["BASE"] = "base";
727
- blockchain2["ARB"] = "arb";
728
- blockchain2["BTC"] = "btc";
729
- blockchain2["SOL"] = "sol";
730
- blockchain2["TON"] = "ton";
731
- blockchain2["DOGE"] = "doge";
732
- blockchain2["XRP"] = "xrp";
733
- blockchain2["ZEC"] = "zec";
734
- blockchain2["GNOSIS"] = "gnosis";
735
- blockchain2["BERA"] = "bera";
736
- blockchain2["BSC"] = "bsc";
737
- blockchain2["POL"] = "pol";
738
- blockchain2["TRON"] = "tron";
739
- blockchain2["SUI"] = "sui";
740
- blockchain2["OP"] = "op";
741
- blockchain2["AVAX"] = "avax";
742
- blockchain2["CARDANO"] = "cardano";
743
- })(TokenResponse2.blockchain || (TokenResponse2.blockchain = {}));
744
- })(exports.TokenResponse || (exports.TokenResponse = {}));
745
-
746
720
  // src/models/Status.ts
747
721
  var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
748
722
  TransactionStatus2["Pending"] = "pending";
@@ -817,7 +791,8 @@ var NetworkRpcUrlsMap = {
817
791
  "frax": ["https://rpc.frax.com"],
818
792
  "ton": ["https://toncenter.com/api/v2/jsonRPC"],
819
793
  "sui": ["https://fullnode.mainnet.sui.io:443"],
820
- "katana": ["https://rpc.katana.network", "https://katana.drpc.org"]
794
+ "katana": ["https://rpc.katana.network", "https://katana.drpc.org"],
795
+ "pharos": ["https://rpc.pharos.xyz"]
821
796
  };
822
797
  var getRpcUrls = (blockchain) => {
823
798
  return NetworkRpcUrlsMap[blockchain] || [];
@@ -991,6 +966,19 @@ var chains = {
991
966
  ...getChainRpcUrl("pol")
992
967
  },
993
968
  gnosis: {
969
+ chainName: "Gnosis",
970
+ blockchain: "gnosis",
971
+ chainIcon: getStableflowChainLogo("Gnosis"),
972
+ chainIconGray: getStableflowChainLogo("Gnosis-gray"),
973
+ chainType: chainTypes.evm.value,
974
+ chainId: 100,
975
+ blockExplorerUrl: "https://gnosisscan.io/tx",
976
+ blockExplorerUrls: ["https://gnosisscan.io"],
977
+ primaryColor: "#285230",
978
+ nativeToken: {
979
+ symbol: "XDAI",
980
+ decimals: 18
981
+ },
994
982
  ...getChainRpcUrl("gnosis")
995
983
  },
996
984
  op: {
@@ -1260,6 +1248,22 @@ var chains = {
1260
1248
  decimals: 18
1261
1249
  },
1262
1250
  ...getChainRpcUrl("katana")
1251
+ },
1252
+ pharos: {
1253
+ chainName: "Pharos",
1254
+ blockchain: "pharos",
1255
+ chainIcon: getStableflowChainLogo("Pharos"),
1256
+ chainIconGray: getStableflowChainLogo("Pharos-gray"),
1257
+ chainType: chainTypes.evm.value,
1258
+ chainId: 1672,
1259
+ blockExplorerUrl: "https://www.pharosscan.xyz/tx",
1260
+ blockExplorerUrls: ["https://www.pharosscan.xyz"],
1261
+ primaryColor: "#0066FF",
1262
+ nativeToken: {
1263
+ symbol: "PROS",
1264
+ decimals: 18
1265
+ },
1266
+ ...getChainRpcUrl("pharos")
1263
1267
  }
1264
1268
  };
1265
1269
  var chains_default = chains;
@@ -1582,6 +1586,13 @@ var usdcChains = {
1582
1586
  contractAddress: "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC",
1583
1587
  ...chains_default.sui,
1584
1588
  services: [Service.OneClick]
1589
+ },
1590
+ pharos: {
1591
+ ...usdc,
1592
+ assetId: "",
1593
+ contractAddress: "0xC879C018dB60520F4355C26eD1a6D572cdAC1815",
1594
+ ...chains_default.pharos,
1595
+ services: [Service.CCTP]
1585
1596
  }
1586
1597
  };
1587
1598
  ({
@@ -1706,16 +1717,39 @@ var frxusdChains = {
1706
1717
  chains: Object.values(frxusdChains).filter((chain) => chain.chainType === "evm")
1707
1718
  });
1708
1719
 
1720
+ // src/wallets/config/eure.ts
1721
+ var eure = {
1722
+ symbol: "EURe",
1723
+ decimals: 18,
1724
+ icon: "/eure.png",
1725
+ name: "Monerium EURe"
1726
+ };
1727
+ var eureChains = {
1728
+ gnosis: {
1729
+ ...eure,
1730
+ assetId: "nep141:gnosis-0x420ca0f9b9b604ce0fd9c18ef134c705e5fa3430.omft.near",
1731
+ contractAddress: "0x420ca0f9b9b604ce0fd9c18ef134c705e5fa3430",
1732
+ ...chains_default.gnosis,
1733
+ services: [Service.OneClick]
1734
+ }
1735
+ };
1736
+ var eureEvm = {
1737
+ ...eure,
1738
+ chains: Object.values(eureChains).filter((chain) => chain.chainType === "evm")
1739
+ };
1740
+
1709
1741
  // src/wallets/config/tokens.ts
1710
1742
  var tokens = [
1711
1743
  ...Object.values(usdtChains),
1712
1744
  ...Object.values(usdcChains),
1713
1745
  ...Object.values(usdt0Chains),
1714
- ...Object.values(frxusdChains)
1746
+ ...Object.values(frxusdChains),
1747
+ ...Object.values(eureChains)
1715
1748
  ];
1716
1749
  var usdtTokens = [...Object.values(usdtChains), ...Object.values(usdt0Chains)];
1717
1750
  var usdcTokens = Object.values(usdcChains);
1718
1751
  var frxusdTokens = Object.values(frxusdChains);
1752
+ var eureTokens = Object.values(eureChains);
1719
1753
 
1720
1754
  // src/wallets/config/addresses.ts
1721
1755
  var DefaultAddresses = {
@@ -1976,6 +2010,9 @@ exports.ServiceBackend = ServiceBackend;
1976
2010
  exports.StableflowStatus = StableflowStatus;
1977
2011
  exports.TransactionStatus = TransactionStatus;
1978
2012
  exports.erc20Abi = erc20_default;
2013
+ exports.eureChains = eureChains;
2014
+ exports.eureEvm = eureEvm;
2015
+ exports.eureTokens = eureTokens;
1979
2016
  exports.frxusdChains = frxusdChains;
1980
2017
  exports.frxusdTokens = frxusdTokens;
1981
2018
  exports.getChainRpcUrl = getChainRpcUrl;