@sodax/sdk 2.2.0-rc.6 → 2.2.0-rc.8

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
@@ -340,7 +340,18 @@ var HubVaultSymbols = [
340
340
  "QQQ",
341
341
  "SGOV",
342
342
  "USO",
343
- "SLV"
343
+ "SLV",
344
+ "GOOGL",
345
+ "AMZN",
346
+ "MSFT",
347
+ "META",
348
+ "CRCL",
349
+ "COIN",
350
+ "PLTR",
351
+ "TSM",
352
+ "AMD",
353
+ "INTC",
354
+ "BABA"
344
355
  ];
345
356
  var SodaTokens = {
346
357
  sodaBNB: {
@@ -733,6 +744,116 @@ var SodaTokens = {
733
744
  chainKey: ChainKeys.SONIC_MAINNET,
734
745
  hubAsset: "0x690B92c27ac80015E57DB8cc02A81255814f49A2",
735
746
  vault: "0x690B92c27ac80015E57DB8cc02A81255814f49A2"
747
+ },
748
+ GOOGL: {
749
+ symbol: "GOOGL",
750
+ isRwa: true,
751
+ name: "Alphabet Class A \u2022 Robinhood Token",
752
+ decimals: 18,
753
+ address: "0xBdB4445a05726E26C26EA30dF0C1970DF4Cf4Be3",
754
+ chainKey: ChainKeys.SONIC_MAINNET,
755
+ hubAsset: "0xBdB4445a05726E26C26EA30dF0C1970DF4Cf4Be3",
756
+ vault: "0xBdB4445a05726E26C26EA30dF0C1970DF4Cf4Be3"
757
+ },
758
+ AMZN: {
759
+ symbol: "AMZN",
760
+ isRwa: true,
761
+ name: "Amazon \u2022 Robinhood Token",
762
+ decimals: 18,
763
+ address: "0xc467cAC3e69C2eb41Cc9b32Aa1A7a54F942243Ba",
764
+ chainKey: ChainKeys.SONIC_MAINNET,
765
+ hubAsset: "0xc467cAC3e69C2eb41Cc9b32Aa1A7a54F942243Ba",
766
+ vault: "0xc467cAC3e69C2eb41Cc9b32Aa1A7a54F942243Ba"
767
+ },
768
+ MSFT: {
769
+ symbol: "MSFT",
770
+ isRwa: true,
771
+ name: "Microsoft \u2022 Robinhood Token",
772
+ decimals: 18,
773
+ address: "0x66A3bc5a66D3c66dc42031775Ea3eedc37347FeC",
774
+ chainKey: ChainKeys.SONIC_MAINNET,
775
+ hubAsset: "0x66A3bc5a66D3c66dc42031775Ea3eedc37347FeC",
776
+ vault: "0x66A3bc5a66D3c66dc42031775Ea3eedc37347FeC"
777
+ },
778
+ META: {
779
+ symbol: "META",
780
+ isRwa: true,
781
+ name: "Meta Platforms \u2022 Robinhood Token",
782
+ decimals: 18,
783
+ address: "0xB7686E0a03542230927CAC76Fe7566656439F3c6",
784
+ chainKey: ChainKeys.SONIC_MAINNET,
785
+ hubAsset: "0xB7686E0a03542230927CAC76Fe7566656439F3c6",
786
+ vault: "0xB7686E0a03542230927CAC76Fe7566656439F3c6"
787
+ },
788
+ CRCL: {
789
+ symbol: "CRCL",
790
+ isRwa: true,
791
+ name: "Circle Internet Group \u2022 Robinhood Token",
792
+ decimals: 18,
793
+ address: "0x1e264ceEEb59F7425D64362Bf12A5b2648B6e66d",
794
+ chainKey: ChainKeys.SONIC_MAINNET,
795
+ hubAsset: "0x1e264ceEEb59F7425D64362Bf12A5b2648B6e66d",
796
+ vault: "0x1e264ceEEb59F7425D64362Bf12A5b2648B6e66d"
797
+ },
798
+ COIN: {
799
+ symbol: "COIN",
800
+ isRwa: true,
801
+ name: "Coinbase \u2022 Robinhood Token",
802
+ decimals: 18,
803
+ address: "0x5540d60F879F5D470bF9Ed7d23FFd59Acc10da0c",
804
+ chainKey: ChainKeys.SONIC_MAINNET,
805
+ hubAsset: "0x5540d60F879F5D470bF9Ed7d23FFd59Acc10da0c",
806
+ vault: "0x5540d60F879F5D470bF9Ed7d23FFd59Acc10da0c"
807
+ },
808
+ PLTR: {
809
+ symbol: "PLTR",
810
+ isRwa: true,
811
+ name: "Palantir Technologies \u2022 Robinhood Token",
812
+ decimals: 18,
813
+ address: "0xA24710Ab6A5e1ef3a7CF3a0333d8bE2bf22782DC",
814
+ chainKey: ChainKeys.SONIC_MAINNET,
815
+ hubAsset: "0xA24710Ab6A5e1ef3a7CF3a0333d8bE2bf22782DC",
816
+ vault: "0xA24710Ab6A5e1ef3a7CF3a0333d8bE2bf22782DC"
817
+ },
818
+ TSM: {
819
+ symbol: "TSM",
820
+ isRwa: true,
821
+ name: "Taiwan Semiconductor Manufacturing \u2022 Robinhood Token",
822
+ decimals: 18,
823
+ address: "0xAF9992b0cA54e014ff1EC7fA77AADE973Dba793e",
824
+ chainKey: ChainKeys.SONIC_MAINNET,
825
+ hubAsset: "0xAF9992b0cA54e014ff1EC7fA77AADE973Dba793e",
826
+ vault: "0xAF9992b0cA54e014ff1EC7fA77AADE973Dba793e"
827
+ },
828
+ AMD: {
829
+ symbol: "AMD",
830
+ isRwa: true,
831
+ name: "AMD \u2022 Robinhood Token",
832
+ decimals: 18,
833
+ address: "0xc8124Db156d8F6C7446C040c503FFEAe82383D1B",
834
+ chainKey: ChainKeys.SONIC_MAINNET,
835
+ hubAsset: "0xc8124Db156d8F6C7446C040c503FFEAe82383D1B",
836
+ vault: "0xc8124Db156d8F6C7446C040c503FFEAe82383D1B"
837
+ },
838
+ INTC: {
839
+ symbol: "INTC",
840
+ isRwa: true,
841
+ name: "Intel \u2022 Robinhood Token",
842
+ decimals: 18,
843
+ address: "0x5352F9Bf2f58720f8a8CC4D4eDEE56700Bd3d053",
844
+ chainKey: ChainKeys.SONIC_MAINNET,
845
+ hubAsset: "0x5352F9Bf2f58720f8a8CC4D4eDEE56700Bd3d053",
846
+ vault: "0x5352F9Bf2f58720f8a8CC4D4eDEE56700Bd3d053"
847
+ },
848
+ BABA: {
849
+ symbol: "BABA",
850
+ isRwa: true,
851
+ name: "Alibaba \u2022 Robinhood Token",
852
+ decimals: 18,
853
+ address: "0x1BeD0547D76F6424e9A3465b36F6dcDCF798A5cf",
854
+ chainKey: ChainKeys.SONIC_MAINNET,
855
+ hubAsset: "0x1BeD0547D76F6424e9A3465b36F6dcDCF798A5cf",
856
+ vault: "0x1BeD0547D76F6424e9A3465b36F6dcDCF798A5cf"
736
857
  }
737
858
  };
738
859
  var LsodaSymbols = ["lsodaWEETH", "lsodaWSTETH", "lsodaJITOSOL", "lsodaSUSDS"];
@@ -1184,6 +1305,96 @@ var solanaSupportedTokens = {
1184
1305
  chainKey: ChainKeys.SOLANA_MAINNET,
1185
1306
  hubAsset: "0x024230dd63b27df90d988d6f37a69d4de627ce89",
1186
1307
  vault: "0x024230dd63b27df90d988d6f37a69d4de627ce89"
1308
+ },
1309
+ PUMP: {
1310
+ symbol: "PUMP",
1311
+ name: "Pump",
1312
+ decimals: 6,
1313
+ address: "pumpCmXqMfrsAkQ5r49WcJnRayYRqmXz6ae8H7H9Dfn",
1314
+ chainKey: ChainKeys.SOLANA_MAINNET,
1315
+ hubAsset: "0x02722baa016f5369c91b6533330315ec884458a4",
1316
+ vault: "0x02722baa016f5369c91b6533330315ec884458a4"
1317
+ },
1318
+ ETH: {
1319
+ symbol: "ETH",
1320
+ name: "Ether (Wormhole)",
1321
+ decimals: 8,
1322
+ address: "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",
1323
+ chainKey: ChainKeys.SOLANA_MAINNET,
1324
+ hubAsset: "0x6ebaff90878a252ac3358ae8b74d174f09d329d3",
1325
+ vault: "0x6ebaff90878a252ac3358ae8b74d174f09d329d3"
1326
+ },
1327
+ USD1: {
1328
+ symbol: "USD1",
1329
+ name: "World Liberty Financial USD",
1330
+ decimals: 6,
1331
+ address: "USD1ttGY1N17NEEHLmELoaybftRBUSErhqYiQzvEmuB",
1332
+ chainKey: ChainKeys.SOLANA_MAINNET,
1333
+ hubAsset: "0xe02735b9bc0dc82564c1bebdcaeffef6071efea1",
1334
+ vault: "0xe02735b9bc0dc82564c1bebdcaeffef6071efea1"
1335
+ },
1336
+ cbBTC: {
1337
+ symbol: "cbBTC",
1338
+ name: "Coinbase Wrapped BTC",
1339
+ decimals: 8,
1340
+ address: "cbbtcf3aa214zXHbiAZQwf4122FBYbraNdFqgw4iMij",
1341
+ chainKey: ChainKeys.SOLANA_MAINNET,
1342
+ hubAsset: "0xca4ba45e5bf0691cb0b5fbe197a3317b7aa81602",
1343
+ vault: "0xca4ba45e5bf0691cb0b5fbe197a3317b7aa81602"
1344
+ },
1345
+ PYUSD: {
1346
+ symbol: "PYUSD",
1347
+ name: "PayPal USD",
1348
+ decimals: 6,
1349
+ address: "2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo",
1350
+ chainKey: ChainKeys.SOLANA_MAINNET,
1351
+ hubAsset: "0x3fe0cdad6c8f0a600afdb4e04ed1a0b3811b274f",
1352
+ vault: "0x3fe0cdad6c8f0a600afdb4e04ed1a0b3811b274f"
1353
+ },
1354
+ JLP: {
1355
+ symbol: "JLP",
1356
+ name: "Jupiter Perps LP",
1357
+ decimals: 6,
1358
+ address: "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4",
1359
+ chainKey: ChainKeys.SOLANA_MAINNET,
1360
+ hubAsset: "0x78dff771e80d7152720bdfd399bfdd327cc25b25",
1361
+ vault: "0x78dff771e80d7152720bdfd399bfdd327cc25b25"
1362
+ },
1363
+ USDG: {
1364
+ symbol: "USDG",
1365
+ name: "Global Dollar",
1366
+ decimals: 6,
1367
+ address: "2u1tszSeqZ3qBWF3uNGPFc8TzMk2tdiwknnRMWGWjGWH",
1368
+ chainKey: ChainKeys.SOLANA_MAINNET,
1369
+ hubAsset: "0x67047acfd986561f2f377fd52dc26c11286ff655",
1370
+ vault: "0x67047acfd986561f2f377fd52dc26c11286ff655"
1371
+ },
1372
+ JupUSD: {
1373
+ symbol: "JupUSD",
1374
+ name: "Jupiter USD",
1375
+ decimals: 6,
1376
+ address: "JuprjznTrTSp2UFa3ZBUFgwdAmtZCq4MQCwysN55USD",
1377
+ chainKey: ChainKeys.SOLANA_MAINNET,
1378
+ hubAsset: "0xb37d694de613abf079c4ccc6ce7683843370d219",
1379
+ vault: "0xb37d694de613abf079c4ccc6ce7683843370d219"
1380
+ },
1381
+ USDe: {
1382
+ symbol: "USDe",
1383
+ name: "Ethena USDe",
1384
+ decimals: 9,
1385
+ address: "DEkqHyPN7GMRJ5cArtQFAWefqbZb33Hyf6s5iCwjEonT",
1386
+ chainKey: ChainKeys.SOLANA_MAINNET,
1387
+ hubAsset: "0x920bb2b09873073eeb1b71db9e3ecb908d221086",
1388
+ vault: "0x920bb2b09873073eeb1b71db9e3ecb908d221086"
1389
+ },
1390
+ USELESS: {
1391
+ symbol: "USELESS",
1392
+ name: "USELESS COIN",
1393
+ decimals: 6,
1394
+ address: "Dz9mQ9NzkBcCsuGPFJ3r1bS4wgqKMHBPiVuniW8Mbonk",
1395
+ chainKey: ChainKeys.SOLANA_MAINNET,
1396
+ hubAsset: "0x0a3a93b7303a582b2ab84cfb3493fdb9d160a3ef",
1397
+ vault: "0x0a3a93b7303a582b2ab84cfb3493fdb9d160a3ef"
1187
1398
  }
1188
1399
  };
1189
1400
  var avalancheSupportedTokens = {
@@ -1240,6 +1451,15 @@ var avalancheSupportedTokens = {
1240
1451
  chainKey: ChainKeys.AVALANCHE_MAINNET,
1241
1452
  hubAsset: "0x3492987e8c83e1628ce8ff48f5ae127105df304a",
1242
1453
  vault: "0x3492987e8c83e1628ce8ff48f5ae127105df304a"
1454
+ },
1455
+ BTCb: {
1456
+ symbol: "BTC.b",
1457
+ name: "Lombard BTC.b",
1458
+ decimals: 8,
1459
+ address: "0x152b9d0FdC40C096757F570A51E494bd4b943E50",
1460
+ chainKey: ChainKeys.AVALANCHE_MAINNET,
1461
+ hubAsset: "0x216a9fa7d34fc5c23cd972b135864413d023d0b3",
1462
+ vault: "0x216a9fa7d34fc5c23cd972b135864413d023d0b3"
1243
1463
  }
1244
1464
  };
1245
1465
  var arbitrumSupportedTokens = {
@@ -1415,6 +1635,33 @@ var arbitrumSupportedTokens = {
1415
1635
  chainKey: ChainKeys.ARBITRUM_MAINNET,
1416
1636
  hubAsset: "0xd8270661d8bdc7c6d80c2a04f1d9775ea5db0553",
1417
1637
  vault: "0xd8270661d8bdc7c6d80c2a04f1d9775ea5db0553"
1638
+ },
1639
+ cbBTC: {
1640
+ symbol: "cbBTC",
1641
+ name: "Coinbase Wrapped BTC",
1642
+ decimals: 8,
1643
+ address: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
1644
+ chainKey: ChainKeys.ARBITRUM_MAINNET,
1645
+ hubAsset: "0x08faf2ad2b023244846e072ef06791e98c8ff4d7",
1646
+ vault: "0x08faf2ad2b023244846e072ef06791e98c8ff4d7"
1647
+ },
1648
+ GMX: {
1649
+ symbol: "GMX",
1650
+ name: "GMX",
1651
+ decimals: 18,
1652
+ address: "0xfc5A1A6EB076a2C7aD06eD22C90d7E710E35ad0a",
1653
+ chainKey: ChainKeys.ARBITRUM_MAINNET,
1654
+ hubAsset: "0x06a9bf7ae2c878dee7134c38067a5186e9a81400",
1655
+ vault: "0x06a9bf7ae2c878dee7134c38067a5186e9a81400"
1656
+ },
1657
+ DAI: {
1658
+ symbol: "DAI",
1659
+ name: "Dai Stablecoin",
1660
+ decimals: 18,
1661
+ address: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
1662
+ chainKey: ChainKeys.ARBITRUM_MAINNET,
1663
+ hubAsset: "0x68ff591a66f6b6c77bdf6463d88e8cb5578c8a53",
1664
+ vault: "0x68ff591a66f6b6c77bdf6463d88e8cb5578c8a53"
1418
1665
  }
1419
1666
  };
1420
1667
  var baseSupportedTokens = {
@@ -1535,6 +1782,24 @@ var baseSupportedTokens = {
1535
1782
  chainKey: ChainKeys.BASE_MAINNET,
1536
1783
  hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9",
1537
1784
  vault: SodaTokens.sodaSUSDS.address
1785
+ },
1786
+ EURC: {
1787
+ symbol: "EURC",
1788
+ name: "EURC",
1789
+ decimals: 6,
1790
+ address: "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
1791
+ chainKey: ChainKeys.BASE_MAINNET,
1792
+ hubAsset: "0x228615a4e0cb4cb1a8931605301661db2782adb8",
1793
+ vault: "0x228615a4e0cb4cb1a8931605301661db2782adb8"
1794
+ },
1795
+ MORPHO: {
1796
+ symbol: "MORPHO",
1797
+ name: "Morpho Token",
1798
+ decimals: 18,
1799
+ address: "0xBAa5CC21fd487B8Fcc2F632f3F4E8D37262a0842",
1800
+ chainKey: ChainKeys.BASE_MAINNET,
1801
+ hubAsset: "0x7e1af5084ac6f15afa97a5525b2e35a804e80b01",
1802
+ vault: "0x7e1af5084ac6f15afa97a5525b2e35a804e80b01"
1538
1803
  }
1539
1804
  };
1540
1805
  var optimismSupportedTokens = {
@@ -1791,6 +2056,15 @@ var bscSupportedTokens = {
1791
2056
  chainKey: ChainKeys.BSC_MAINNET,
1792
2057
  hubAsset: "0x63c29285bfda811899ec09d311856df9de37950d",
1793
2058
  vault: "0x63c29285bfda811899ec09d311856df9de37950d"
2059
+ },
2060
+ UNI: {
2061
+ symbol: "UNI",
2062
+ name: "Uniswap (BEP20)",
2063
+ decimals: 18,
2064
+ address: "0xBf5140A22578168FD562DCcF235E5D43A02ce9B1",
2065
+ chainKey: ChainKeys.BSC_MAINNET,
2066
+ hubAsset: "0xdab003b59749fe08fad6e0e7685f31bbcf4cbd6e",
2067
+ vault: "0xdab003b59749fe08fad6e0e7685f31bbcf4cbd6e"
1794
2068
  }
1795
2069
  };
1796
2070
  var polygonSupportedTokens = {
@@ -1966,6 +2240,15 @@ var hyperevmSupportedTokens = {
1966
2240
  chainKey: ChainKeys.HYPEREVM_MAINNET,
1967
2241
  hubAsset: "0xacf9085e5b805a5e18fb637c2c3a02586d7289af",
1968
2242
  vault: "0xacf9085e5b805a5e18fb637c2c3a02586d7289af"
2243
+ },
2244
+ USOL: {
2245
+ symbol: "USOL",
2246
+ name: "Unit Solana",
2247
+ decimals: 9,
2248
+ address: "0x068f321Fa8Fb9f0D135f290Ef6a3e2813e1c8A29",
2249
+ chainKey: ChainKeys.HYPEREVM_MAINNET,
2250
+ hubAsset: "0xba570366523aef0de760489e5c693eeb5ecb3e64",
2251
+ vault: "0xba570366523aef0de760489e5c693eeb5ecb3e64"
1969
2252
  }
1970
2253
  };
1971
2254
  var lightlinkSupportedTokens = {
@@ -2491,6 +2774,125 @@ var stellarSupportedTokens = {
2491
2774
  chainKey: ChainKeys.STELLAR_MAINNET,
2492
2775
  hubAsset: "0x7eaF987431ce072feBEB2124fEB4d1cEf8Cf4e2e",
2493
2776
  vault: SodaTokens.SLV.address
2777
+ },
2778
+ GOOGL: {
2779
+ symbol: "GOOGL",
2780
+ isRwa: true,
2781
+ name: "Alphabet Class A",
2782
+ decimals: 7,
2783
+ address: "CCZLQHO22HLQARS26KNSJ4DU3FCFG45VG6RZQOQDQ4MHTSUVGRX57VWD",
2784
+ chainKey: ChainKeys.STELLAR_MAINNET,
2785
+ hubAsset: "0x3DE82bcf9D6a1CE8CB9b9eBCD6fC2916c548CD19",
2786
+ vault: SodaTokens.GOOGL.address
2787
+ },
2788
+ AMZN: {
2789
+ symbol: "AMZN",
2790
+ isRwa: true,
2791
+ name: "Amazon",
2792
+ decimals: 7,
2793
+ address: "CBN6JFMCVKXOIRRERGPH7CGY7RIIHGRLVSFJCD3KBMYSUEZAQR3MJ7TF",
2794
+ chainKey: ChainKeys.STELLAR_MAINNET,
2795
+ hubAsset: "0x30A6383A1d39b40B038EB82fd0F1fb7F77580623",
2796
+ vault: SodaTokens.AMZN.address
2797
+ },
2798
+ MSFT: {
2799
+ symbol: "MSFT",
2800
+ isRwa: true,
2801
+ name: "Microsoft",
2802
+ decimals: 7,
2803
+ address: "CA53FXC2RF3BNIGLCPE3PNS3SZ2AONVRKH46AIHPEJOA54LGI2DYSOAD",
2804
+ chainKey: ChainKeys.STELLAR_MAINNET,
2805
+ hubAsset: "0xDb89f97afc524c95a02a001aE16fe946e2f2e4A6",
2806
+ vault: SodaTokens.MSFT.address
2807
+ },
2808
+ META: {
2809
+ symbol: "META",
2810
+ isRwa: true,
2811
+ name: "Meta",
2812
+ decimals: 7,
2813
+ address: "CA4AXIRO72PC566XUIYVN2365347I7TVGYULXW7QDVCIXBOEFFRXGP67",
2814
+ chainKey: ChainKeys.STELLAR_MAINNET,
2815
+ hubAsset: "0xd2ff91513Cc08b5Bf4A07F1829A04273Bb902445",
2816
+ vault: SodaTokens.META.address
2817
+ },
2818
+ CRCL: {
2819
+ symbol: "CRCL",
2820
+ isRwa: true,
2821
+ name: "Circle",
2822
+ decimals: 7,
2823
+ address: "CDMRGHCY23UVTFYYW6U2NBYGME2VVPDO6OJXLZMM7FNGVFX3V42SAA4C",
2824
+ chainKey: ChainKeys.STELLAR_MAINNET,
2825
+ hubAsset: "0x1599b2754f0fC9429b3CDA12823B19eb2463F1cc",
2826
+ vault: SodaTokens.CRCL.address
2827
+ },
2828
+ COIN: {
2829
+ symbol: "COIN",
2830
+ isRwa: true,
2831
+ name: "Coinbase",
2832
+ decimals: 7,
2833
+ address: "CAKCNNQFIYAQBU7RXWPW3ZH4IWDXGMXUB6WTGCEZSI2EZ6WSTCCCEFHO",
2834
+ chainKey: ChainKeys.STELLAR_MAINNET,
2835
+ hubAsset: "0xaaB281239e25d7E637b4053C832D9b3b495c0261",
2836
+ vault: SodaTokens.COIN.address
2837
+ },
2838
+ PLTR: {
2839
+ symbol: "PLTR",
2840
+ isRwa: true,
2841
+ name: "Palantir",
2842
+ decimals: 7,
2843
+ address: "CC3EVVVQAB2BZFAJHPZWVRANTVVS37OJXNJKR2DVPAMG5FOYRPIIGCEV",
2844
+ chainKey: ChainKeys.STELLAR_MAINNET,
2845
+ hubAsset: "0x948195294e506cd42C00418269ab0E53EFAE5171",
2846
+ vault: SodaTokens.PLTR.address
2847
+ },
2848
+ TSM: {
2849
+ symbol: "TSM",
2850
+ isRwa: true,
2851
+ name: "Taiwan Semiconductor",
2852
+ decimals: 7,
2853
+ address: "CBZFBO44J4RSRZZ7PT7BHLLID6L7C4HL77YLVFCNIIXZQKVLNL6VEAD6",
2854
+ chainKey: ChainKeys.STELLAR_MAINNET,
2855
+ hubAsset: "0x276a0aB35C5eBD286076F69c58dA6AbB22c326Bf",
2856
+ vault: SodaTokens.TSM.address
2857
+ },
2858
+ AMD: {
2859
+ symbol: "AMD",
2860
+ isRwa: true,
2861
+ name: "AMD",
2862
+ decimals: 7,
2863
+ address: "CCIE4OXPJUPLNRLGAENNSDEZTQUXTXKAPU322Z3HMATZSR2S2DAAGYQD",
2864
+ chainKey: ChainKeys.STELLAR_MAINNET,
2865
+ hubAsset: "0x16a8d54d04Ee9cbcC57Fe7C4838bEA83294Fb646",
2866
+ vault: SodaTokens.AMD.address
2867
+ },
2868
+ INTC: {
2869
+ symbol: "INTC",
2870
+ isRwa: true,
2871
+ name: "Intel",
2872
+ decimals: 7,
2873
+ address: "CBD7GPTTHNFWBX7CYOM7O3N2TCZIAYT6FT4LCAXKX4JCZ3ZJL2IF7E4B",
2874
+ chainKey: ChainKeys.STELLAR_MAINNET,
2875
+ hubAsset: "0x34FC8F280c7C345A9aFC6E00F652F75b1fB2bd22",
2876
+ vault: SodaTokens.INTC.address
2877
+ },
2878
+ BABA: {
2879
+ symbol: "BABA",
2880
+ isRwa: true,
2881
+ name: "Alibaba",
2882
+ decimals: 7,
2883
+ address: "CDARDTMGSEXTYJDSKDEAA52DCYX3OZEP7SOLSF5CT3QSSAGBETWH7LO3",
2884
+ chainKey: ChainKeys.STELLAR_MAINNET,
2885
+ hubAsset: "0x83ac05C492188B46dd15d5611dEEFA6b23c7D479",
2886
+ vault: SodaTokens.BABA.address
2887
+ },
2888
+ EURC: {
2889
+ symbol: "EURC",
2890
+ name: "EURC",
2891
+ decimals: 7,
2892
+ address: "CDTKPWPLOURQA2SGTKTUQOWRCBZEORB4BWBOMJ3D3ZTQQSGE5F6JBQLV",
2893
+ chainKey: ChainKeys.STELLAR_MAINNET,
2894
+ hubAsset: "0x93d5d2382f302fa78350c18b4df3ee0bd09b3945",
2895
+ vault: "0x93d5d2382f302fa78350c18b4df3ee0bd09b3945"
2494
2896
  }
2495
2897
  };
2496
2898
  var suiSupportedTokens = {
@@ -2628,6 +3030,24 @@ var suiSupportedTokens = {
2628
3030
  chainKey: ChainKeys.SUI_MAINNET,
2629
3031
  hubAsset: "0xb78c7c96ae996b4d479bb81b7569a5c6a79c88cb",
2630
3032
  vault: "0xb78c7c96ae996b4d479bb81b7569a5c6a79c88cb"
3033
+ },
3034
+ USDsui: {
3035
+ symbol: "USDsui",
3036
+ name: "Sui Dollar",
3037
+ decimals: 6,
3038
+ address: "0x44f838219cf67b058f3b37907b655f226153c18e33dfcd0da559a844fea9b1c1::usdsui::USDSUI",
3039
+ chainKey: ChainKeys.SUI_MAINNET,
3040
+ hubAsset: "0x2ed5799b38271c02fdd74bab080f32db58b20c44",
3041
+ vault: "0x2ed5799b38271c02fdd74bab080f32db58b20c44"
3042
+ },
3043
+ WBTC: {
3044
+ symbol: "WBTC",
3045
+ name: "Wrapped BTC",
3046
+ decimals: 8,
3047
+ address: "0x0041f9f9344cac094454cd574e333c4fdb132d7bcc9379bcd4aab485b2a63942::wbtc::WBTC",
3048
+ chainKey: ChainKeys.SUI_MAINNET,
3049
+ hubAsset: "0x2037d840f01e903e09e33b146f2dd3fa4a4d2c21",
3050
+ vault: "0x2037d840f01e903e09e33b146f2dd3fa4a4d2c21"
2631
3051
  }
2632
3052
  };
2633
3053
  var iconSupportedTokens = {
@@ -2733,6 +3153,15 @@ var nearSupportedTokens = {
2733
3153
  chainKey: ChainKeys.NEAR_MAINNET,
2734
3154
  hubAsset: "0x2eC38A4DdfB76E1aae04F392b55A28f0D659BcD4",
2735
3155
  vault: "0x"
3156
+ },
3157
+ ZEC: {
3158
+ symbol: "ZEC",
3159
+ name: "Zcash",
3160
+ decimals: 8,
3161
+ address: "zec.omft.near",
3162
+ chainKey: ChainKeys.NEAR_MAINNET,
3163
+ hubAsset: "0xed5d71eed7cb6b62a449522538a6960ea242b8c3",
3164
+ vault: "0xed5d71eed7cb6b62a449522538a6960ea242b8c3"
2736
3165
  }
2737
3166
  };
2738
3167
  var ethereumSupportedTokens = {
@@ -2990,6 +3419,33 @@ var ethereumSupportedTokens = {
2990
3419
  chainKey: ChainKeys.ETHEREUM_MAINNET,
2991
3420
  hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624",
2992
3421
  vault: SodaTokens.sodaSUSDS.address
3422
+ },
3423
+ GHO: {
3424
+ symbol: "GHO",
3425
+ name: "Gho Token",
3426
+ decimals: 18,
3427
+ address: "0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f",
3428
+ chainKey: ChainKeys.ETHEREUM_MAINNET,
3429
+ hubAsset: "0x2fd90bac66fba110650ce4ba4065c4fc668d10e0",
3430
+ vault: "0x2fd90bac66fba110650ce4ba4065c4fc668d10e0"
3431
+ },
3432
+ USDG: {
3433
+ symbol: "USDG",
3434
+ name: "Global Dollar",
3435
+ decimals: 6,
3436
+ address: "0xe343167631d89B6Ffc58B88d6b7fB0228795491D",
3437
+ chainKey: ChainKeys.ETHEREUM_MAINNET,
3438
+ hubAsset: "0xd7acf8c1125143f9c58fc17879742114639f54bb",
3439
+ vault: "0xd7acf8c1125143f9c58fc17879742114639f54bb"
3440
+ },
3441
+ LIT: {
3442
+ symbol: "LIT",
3443
+ name: "Lighter",
3444
+ decimals: 18,
3445
+ address: "0x232CE3bd40fCd6f80f3d55A522d03f25Df784Ee2",
3446
+ chainKey: ChainKeys.ETHEREUM_MAINNET,
3447
+ hubAsset: "0x081e274ec570bdb023f1b41c54df0f3f73da8924",
3448
+ vault: "0x081e274ec570bdb023f1b41c54df0f3f73da8924"
2993
3449
  }
2994
3450
  };
2995
3451
  var kaiaSupportedTokens = {
@@ -3304,6 +3760,116 @@ var hederaSupportedTokens = {
3304
3760
  chainKey: ChainKeys.HEDERA_MAINNET,
3305
3761
  hubAsset: "0x914672C5336f5E00126e431368005f7C22aCe952",
3306
3762
  vault: SodaTokens.SLV.address
3763
+ },
3764
+ GOOGL: {
3765
+ symbol: "GOOGL",
3766
+ isRwa: true,
3767
+ name: "Alphabet Class A",
3768
+ decimals: 8,
3769
+ address: "0x0000000000000000000000000000000000a605ce",
3770
+ chainKey: ChainKeys.HEDERA_MAINNET,
3771
+ hubAsset: "0xA4942e1edE99034b11657C8a0978f8E2342980b4",
3772
+ vault: SodaTokens.GOOGL.address
3773
+ },
3774
+ AMZN: {
3775
+ symbol: "AMZN",
3776
+ isRwa: true,
3777
+ name: "Amazon",
3778
+ decimals: 8,
3779
+ address: "0x0000000000000000000000000000000000a605d0",
3780
+ chainKey: ChainKeys.HEDERA_MAINNET,
3781
+ hubAsset: "0x13E3E4eaaa02bbD0A32094c6C7078D4ABa24cd04",
3782
+ vault: SodaTokens.AMZN.address
3783
+ },
3784
+ MSFT: {
3785
+ symbol: "MSFT",
3786
+ isRwa: true,
3787
+ name: "Microsoft",
3788
+ decimals: 8,
3789
+ address: "0x0000000000000000000000000000000000a605d2",
3790
+ chainKey: ChainKeys.HEDERA_MAINNET,
3791
+ hubAsset: "0x5b9838715bbeFF2E8752961C418f64CAB3e7B2eD",
3792
+ vault: SodaTokens.MSFT.address
3793
+ },
3794
+ META: {
3795
+ symbol: "META",
3796
+ isRwa: true,
3797
+ name: "Meta",
3798
+ decimals: 8,
3799
+ address: "0x0000000000000000000000000000000000a605d3",
3800
+ chainKey: ChainKeys.HEDERA_MAINNET,
3801
+ hubAsset: "0xbe8a7cAFABe2399b4d751A5545017cc09D83FFc9",
3802
+ vault: SodaTokens.META.address
3803
+ },
3804
+ CRCL: {
3805
+ symbol: "CRCL",
3806
+ isRwa: true,
3807
+ name: "Circle",
3808
+ decimals: 8,
3809
+ address: "0x0000000000000000000000000000000000a605d4",
3810
+ chainKey: ChainKeys.HEDERA_MAINNET,
3811
+ hubAsset: "0x13c16a6a19a637fBf370CcA8d7f4bD38d207b620",
3812
+ vault: SodaTokens.CRCL.address
3813
+ },
3814
+ COIN: {
3815
+ symbol: "COIN",
3816
+ isRwa: true,
3817
+ name: "Coinbase",
3818
+ decimals: 8,
3819
+ address: "0x0000000000000000000000000000000000a605d6",
3820
+ chainKey: ChainKeys.HEDERA_MAINNET,
3821
+ hubAsset: "0x4d82303a0cf66f3D98E8140a1668567E748685De",
3822
+ vault: SodaTokens.COIN.address
3823
+ },
3824
+ PLTR: {
3825
+ symbol: "PLTR",
3826
+ isRwa: true,
3827
+ name: "Palantir",
3828
+ decimals: 8,
3829
+ address: "0x0000000000000000000000000000000000a605d7",
3830
+ chainKey: ChainKeys.HEDERA_MAINNET,
3831
+ hubAsset: "0xEC98d565853064667Ec5512bc6B7183D54b9EF40",
3832
+ vault: SodaTokens.PLTR.address
3833
+ },
3834
+ TSM: {
3835
+ symbol: "TSM",
3836
+ isRwa: true,
3837
+ name: "Taiwan Semiconductor",
3838
+ decimals: 8,
3839
+ address: "0x0000000000000000000000000000000000a605d9",
3840
+ chainKey: ChainKeys.HEDERA_MAINNET,
3841
+ hubAsset: "0x87FB178434B5832Df1Defa3E3E51dA3e4F1ECb10",
3842
+ vault: SodaTokens.TSM.address
3843
+ },
3844
+ AMD: {
3845
+ symbol: "AMD",
3846
+ isRwa: true,
3847
+ name: "AMD",
3848
+ decimals: 8,
3849
+ address: "0x0000000000000000000000000000000000a605db",
3850
+ chainKey: ChainKeys.HEDERA_MAINNET,
3851
+ hubAsset: "0x26b9C3af52e764b8362cDD273b443E576F960e36",
3852
+ vault: SodaTokens.AMD.address
3853
+ },
3854
+ INTC: {
3855
+ symbol: "INTC",
3856
+ isRwa: true,
3857
+ name: "Intel",
3858
+ decimals: 8,
3859
+ address: "0x0000000000000000000000000000000000a605dc",
3860
+ chainKey: ChainKeys.HEDERA_MAINNET,
3861
+ hubAsset: "0xb4Fe614a0566e64A0352645485BB4EbCaf8F3a9E",
3862
+ vault: SodaTokens.INTC.address
3863
+ },
3864
+ BABA: {
3865
+ symbol: "BABA",
3866
+ isRwa: true,
3867
+ name: "Alibaba",
3868
+ decimals: 8,
3869
+ address: "0x0000000000000000000000000000000000a605dd",
3870
+ chainKey: ChainKeys.HEDERA_MAINNET,
3871
+ hubAsset: "0x5e69df859F7c2b170E5fdAdbD59d06C2CD287753",
3872
+ vault: SodaTokens.BABA.address
3307
3873
  }
3308
3874
  };
3309
3875
  var robinhoodSupportedTokens = {
@@ -3477,6 +4043,125 @@ var robinhoodSupportedTokens = {
3477
4043
  chainKey: ChainKeys.ROBINHOOD_MAINNET,
3478
4044
  hubAsset: "0x17348849806c8b1b5d1d3abbcb527d05d21d09d5",
3479
4045
  vault: SodaTokens.SLV.address
4046
+ },
4047
+ GOOGL: {
4048
+ symbol: "GOOGL",
4049
+ isRwa: true,
4050
+ name: "Alphabet Class A",
4051
+ decimals: 18,
4052
+ address: "0x2e0847E8910a9732eB3fb1bb4b70a580ADAD4FE3",
4053
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4054
+ hubAsset: "0xb99725463347b57cb6b38e3670e79bae68361178",
4055
+ vault: SodaTokens.GOOGL.address
4056
+ },
4057
+ AMZN: {
4058
+ symbol: "AMZN",
4059
+ isRwa: true,
4060
+ name: "Amazon",
4061
+ decimals: 18,
4062
+ address: "0x12f190a9F9d7D37a250758b26824B97CE941bF54",
4063
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4064
+ hubAsset: "0x191b01f7816f927eede6603bae14979a80880f2e",
4065
+ vault: SodaTokens.AMZN.address
4066
+ },
4067
+ MSFT: {
4068
+ symbol: "MSFT",
4069
+ isRwa: true,
4070
+ name: "Microsoft",
4071
+ decimals: 18,
4072
+ address: "0xe93237C50D904957Cf27E7B1133b510C669c2e74",
4073
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4074
+ hubAsset: "0x54cd74d27c647cccc7d151c198a82a8f3371ca35",
4075
+ vault: SodaTokens.MSFT.address
4076
+ },
4077
+ META: {
4078
+ symbol: "META",
4079
+ isRwa: true,
4080
+ name: "Meta",
4081
+ decimals: 18,
4082
+ address: "0xc0D6457C16Cc70d6790Dd43521C899C87ce02f35",
4083
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4084
+ hubAsset: "0xf5661eefaebb0ed9f33c543fa606ad77646eb1f9",
4085
+ vault: SodaTokens.META.address
4086
+ },
4087
+ CRCL: {
4088
+ symbol: "CRCL",
4089
+ isRwa: true,
4090
+ name: "Circle",
4091
+ decimals: 18,
4092
+ address: "0xdF0992E440dD0be65BD8439b609d6D4366bf1CB5",
4093
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4094
+ hubAsset: "0x18f4018af0bf9fc42cbf8c0b458a838bc2dccf43",
4095
+ vault: SodaTokens.CRCL.address
4096
+ },
4097
+ COIN: {
4098
+ symbol: "COIN",
4099
+ isRwa: true,
4100
+ name: "Coinbase",
4101
+ decimals: 18,
4102
+ address: "0x6330D8C3178a418788dF01a47479c0ce7CCF450b",
4103
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4104
+ hubAsset: "0x91789d24454c40c753bdd5bc7ada7bb91848d13c",
4105
+ vault: SodaTokens.COIN.address
4106
+ },
4107
+ PLTR: {
4108
+ symbol: "PLTR",
4109
+ isRwa: true,
4110
+ name: "Palantir",
4111
+ decimals: 18,
4112
+ address: "0x894E1EC2D74FFE5AEF8Dc8A9e84686acCB964F2A",
4113
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4114
+ hubAsset: "0x99864e96d71860e6e5d25887a10da823685af1ee",
4115
+ vault: SodaTokens.PLTR.address
4116
+ },
4117
+ TSM: {
4118
+ symbol: "TSM",
4119
+ isRwa: true,
4120
+ name: "Taiwan Semiconductor",
4121
+ decimals: 18,
4122
+ address: "0x58FfE4a942d3885bAa22D7520691F611EF09e7AA",
4123
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4124
+ hubAsset: "0x5912b35ed196b129f4ad36ffd8717f2913df09bf",
4125
+ vault: SodaTokens.TSM.address
4126
+ },
4127
+ AMD: {
4128
+ symbol: "AMD",
4129
+ isRwa: true,
4130
+ name: "AMD",
4131
+ decimals: 18,
4132
+ address: "0x86923f96303D656E4aa86D9d42D1e57ad2023fdC",
4133
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4134
+ hubAsset: "0x433d44c65f20e4a776aed6c23838739d3155a692",
4135
+ vault: SodaTokens.AMD.address
4136
+ },
4137
+ INTC: {
4138
+ symbol: "INTC",
4139
+ isRwa: true,
4140
+ name: "Intel",
4141
+ decimals: 18,
4142
+ address: "0xc72b96e0E48ecd4DC75E1e45396e26300BC39681",
4143
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4144
+ hubAsset: "0xd20c60e725317c7873964a6b1d345b2507526e59",
4145
+ vault: SodaTokens.INTC.address
4146
+ },
4147
+ BABA: {
4148
+ symbol: "BABA",
4149
+ isRwa: true,
4150
+ name: "Alibaba",
4151
+ decimals: 18,
4152
+ address: "0xad25Ac6C84D497db898fa1E8387bf6Af3532a1c4",
4153
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4154
+ hubAsset: "0xf721a074bd9fc05ba1f7cb432149a74acfb49d73",
4155
+ vault: SodaTokens.BABA.address
4156
+ },
4157
+ PONS: {
4158
+ symbol: "PONS",
4159
+ name: "Pons",
4160
+ decimals: 18,
4161
+ address: "0x39dBED3a2bd333467115dE45665cC57F813C4571",
4162
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4163
+ hubAsset: "0x9cf6640c73dd4c278cfa08a8b8773e7b22420582",
4164
+ vault: "0x9cf6640c73dd4c278cfa08a8b8773e7b22420582"
3480
4165
  }
3481
4166
  };
3482
4167
  var stacksSupportedTokens = {
@@ -4315,6 +5000,66 @@ var spokeChainConfig = {
4315
5000
  assetCode: "SLV",
4316
5001
  contractId: "CBY3U32O5T2B555HNJLX6C6HW3O2FLRSJGH472UOOHT6H6ZMGMSSZTLW",
4317
5002
  assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5003
+ },
5004
+ {
5005
+ assetCode: "GOOGL",
5006
+ contractId: "CCZLQHO22HLQARS26KNSJ4DU3FCFG45VG6RZQOQDQ4MHTSUVGRX57VWD",
5007
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5008
+ },
5009
+ {
5010
+ assetCode: "AMZN",
5011
+ contractId: "CBN6JFMCVKXOIRRERGPH7CGY7RIIHGRLVSFJCD3KBMYSUEZAQR3MJ7TF",
5012
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5013
+ },
5014
+ {
5015
+ assetCode: "MSFT",
5016
+ contractId: "CA53FXC2RF3BNIGLCPE3PNS3SZ2AONVRKH46AIHPEJOA54LGI2DYSOAD",
5017
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5018
+ },
5019
+ {
5020
+ assetCode: "META",
5021
+ contractId: "CA4AXIRO72PC566XUIYVN2365347I7TVGYULXW7QDVCIXBOEFFRXGP67",
5022
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5023
+ },
5024
+ {
5025
+ assetCode: "CRCL",
5026
+ contractId: "CDMRGHCY23UVTFYYW6U2NBYGME2VVPDO6OJXLZMM7FNGVFX3V42SAA4C",
5027
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5028
+ },
5029
+ {
5030
+ assetCode: "COIN",
5031
+ contractId: "CAKCNNQFIYAQBU7RXWPW3ZH4IWDXGMXUB6WTGCEZSI2EZ6WSTCCCEFHO",
5032
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5033
+ },
5034
+ {
5035
+ assetCode: "PLTR",
5036
+ contractId: "CC3EVVVQAB2BZFAJHPZWVRANTVVS37OJXNJKR2DVPAMG5FOYRPIIGCEV",
5037
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5038
+ },
5039
+ {
5040
+ assetCode: "TSM",
5041
+ contractId: "CBZFBO44J4RSRZZ7PT7BHLLID6L7C4HL77YLVFCNIIXZQKVLNL6VEAD6",
5042
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5043
+ },
5044
+ {
5045
+ assetCode: "AMD",
5046
+ contractId: "CCIE4OXPJUPLNRLGAENNSDEZTQUXTXKAPU322Z3HMATZSR2S2DAAGYQD",
5047
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5048
+ },
5049
+ {
5050
+ assetCode: "INTC",
5051
+ contractId: "CBD7GPTTHNFWBX7CYOM7O3N2TCZIAYT6FT4LCAXKX4JCZ3ZJL2IF7E4B",
5052
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5053
+ },
5054
+ {
5055
+ assetCode: "BABA",
5056
+ contractId: "CDARDTMGSEXTYJDSKDEAA52DCYX3OZEP7SOLSF5CT3QSSAGBETWH7LO3",
5057
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5058
+ },
5059
+ {
5060
+ assetCode: "EURC",
5061
+ contractId: "CDTKPWPLOURQA2SGTKTUQOWRCBZEORB4BWBOMJ3D3ZTQQSGE5F6JBQLV",
5062
+ assetIssuer: "GDHU6WRG4IEQXM5NZ4BMPKOXHW76MZM4Y2IEMFDVXBSDP6SJY4ITNPP2"
4318
5063
  }
4319
5064
  ],
4320
5065
  supportedTokens: stellarSupportedTokens,
@@ -5011,7 +5756,18 @@ var swapSupportedTokens = {
5011
5756
  SodaTokens.QQQ,
5012
5757
  SodaTokens.SGOV,
5013
5758
  SodaTokens.USO,
5014
- SodaTokens.SLV
5759
+ SodaTokens.SLV,
5760
+ SodaTokens.GOOGL,
5761
+ SodaTokens.AMZN,
5762
+ SodaTokens.MSFT,
5763
+ SodaTokens.META,
5764
+ SodaTokens.CRCL,
5765
+ SodaTokens.COIN,
5766
+ SodaTokens.PLTR,
5767
+ SodaTokens.TSM,
5768
+ SodaTokens.AMD,
5769
+ SodaTokens.INTC,
5770
+ SodaTokens.BABA
5015
5771
  ],
5016
5772
  [ChainKeys.AVALANCHE_MAINNET]: [
5017
5773
  spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.AVAX,
@@ -5019,7 +5775,8 @@ var swapSupportedTokens = {
5019
5775
  spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.USDC,
5020
5776
  spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.bnUSD,
5021
5777
  spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.SODA,
5022
- spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.WETHe
5778
+ spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.WETHe,
5779
+ spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.BTCb
5023
5780
  ],
5024
5781
  [ChainKeys.ARBITRUM_MAINNET]: [
5025
5782
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.ETH,
@@ -5038,7 +5795,10 @@ var swapSupportedTokens = {
5038
5795
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.CRV,
5039
5796
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.PENDLE,
5040
5797
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.rETH,
5041
- spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.SODA
5798
+ spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.SODA,
5799
+ spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.cbBTC,
5800
+ spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.GMX,
5801
+ spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.DAI
5042
5802
  // spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.USDS, // NOTE: Not Implemented
5043
5803
  ],
5044
5804
  [ChainKeys.BASE_MAINNET]: [
@@ -5050,7 +5810,9 @@ var swapSupportedTokens = {
5050
5810
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.cbBTC,
5051
5811
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.VIRTUAL,
5052
5812
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.cbETH,
5053
- spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.SODA
5813
+ spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.SODA,
5814
+ spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.EURC,
5815
+ spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.MORPHO
5054
5816
  // spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.USDS, // NOTE: Not Implemented
5055
5817
  ],
5056
5818
  [ChainKeys.OPTIMISM_MAINNET]: [
@@ -5092,7 +5854,8 @@ var swapSupportedTokens = {
5092
5854
  spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.DOGE,
5093
5855
  spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.SOL,
5094
5856
  spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.DOT,
5095
- spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.LINK
5857
+ spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.LINK,
5858
+ spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.UNI
5096
5859
  ],
5097
5860
  [ChainKeys.HYPEREVM_MAINNET]: [
5098
5861
  spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.HYPE,
@@ -5103,7 +5866,8 @@ var swapSupportedTokens = {
5103
5866
  spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.UBTC,
5104
5867
  spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.UETH,
5105
5868
  spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.kHYPE,
5106
- spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.USDH
5869
+ spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.USDH,
5870
+ spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.USOL
5107
5871
  ],
5108
5872
  [ChainKeys.LIGHTLINK_MAINNET]: [
5109
5873
  spokeChainConfig[ChainKeys.LIGHTLINK_MAINNET].supportedTokens.ETH,
@@ -5143,7 +5907,17 @@ var swapSupportedTokens = {
5143
5907
  spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.QQQx,
5144
5908
  spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.MSTRx,
5145
5909
  spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.COINx,
5146
- spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.GOOGLx
5910
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.GOOGLx,
5911
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.PUMP,
5912
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.ETH,
5913
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.USD1,
5914
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.cbBTC,
5915
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.PYUSD,
5916
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.JLP,
5917
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.USDG,
5918
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.JupUSD,
5919
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.USDe,
5920
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.USELESS
5147
5921
  ],
5148
5922
  [ChainKeys.ICON_MAINNET]: [
5149
5923
  spokeChainConfig[ChainKeys.ICON_MAINNET].supportedTokens.ICX,
@@ -5186,7 +5960,19 @@ var swapSupportedTokens = {
5186
5960
  spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.QQQ,
5187
5961
  spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.SGOV,
5188
5962
  spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.USO,
5189
- spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.SLV
5963
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.SLV,
5964
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.GOOGL,
5965
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.AMZN,
5966
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.MSFT,
5967
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.META,
5968
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.CRCL,
5969
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.COIN,
5970
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.PLTR,
5971
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.TSM,
5972
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.AMD,
5973
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.INTC,
5974
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.BABA,
5975
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.EURC
5190
5976
  ],
5191
5977
  [ChainKeys.SUI_MAINNET]: [
5192
5978
  spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.SUI,
@@ -5202,7 +5988,9 @@ var swapSupportedTokens = {
5202
5988
  spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.trevinSUI,
5203
5989
  spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.DEEP,
5204
5990
  spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.WAL,
5205
- spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.NAVX
5991
+ spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.NAVX,
5992
+ spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.USDsui,
5993
+ spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.WBTC
5206
5994
  ],
5207
5995
  [ChainKeys.INJECTIVE_MAINNET]: [
5208
5996
  spokeChainConfig[ChainKeys.INJECTIVE_MAINNET].supportedTokens.INJ,
@@ -5214,7 +6002,8 @@ var swapSupportedTokens = {
5214
6002
  spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.bnUSD,
5215
6003
  spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.SODA,
5216
6004
  spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.USDC,
5217
- spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.USDT
6005
+ spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.USDT,
6006
+ spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.ZEC
5218
6007
  ],
5219
6008
  [ChainKeys.BITCOIN_MAINNET]: [
5220
6009
  spokeChainConfig[ChainKeys.BITCOIN_MAINNET].supportedTokens.BTC
@@ -5243,7 +6032,10 @@ var swapSupportedTokens = {
5243
6032
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USD1,
5244
6033
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.DAI,
5245
6034
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.cbBTC,
5246
- spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.rETH
6035
+ spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.rETH,
6036
+ spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.GHO,
6037
+ spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDG,
6038
+ spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.LIT
5247
6039
  // spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDS, // NOTE: Not Implemented
5248
6040
  ],
5249
6041
  [ChainKeys.REDBELLY_MAINNET]: [
@@ -5306,7 +6098,18 @@ var swapSupportedTokens = {
5306
6098
  spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.QQQ,
5307
6099
  spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SGOV,
5308
6100
  spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.USO,
5309
- spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SLV
6101
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SLV,
6102
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.GOOGL,
6103
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.AMZN,
6104
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.MSFT,
6105
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.META,
6106
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.CRCL,
6107
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.COIN,
6108
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.PLTR,
6109
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.TSM,
6110
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.AMD,
6111
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.INTC,
6112
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.BABA
5310
6113
  ],
5311
6114
  [ChainKeys.ROBINHOOD_MAINNET]: [
5312
6115
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.ETH,
@@ -5327,7 +6130,19 @@ var swapSupportedTokens = {
5327
6130
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.QQQ,
5328
6131
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.SGOV,
5329
6132
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.USO,
5330
- spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.SLV
6133
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.SLV,
6134
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.GOOGL,
6135
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.AMZN,
6136
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.MSFT,
6137
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.META,
6138
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.CRCL,
6139
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.COIN,
6140
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.PLTR,
6141
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.TSM,
6142
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.AMD,
6143
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.INTC,
6144
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.BABA,
6145
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.PONS
5331
6146
  ]
5332
6147
  };
5333
6148
  var stagingSwapSupportedTokens = {
@@ -5672,7 +6487,7 @@ function isValidWalletProviderForChainKey(chainKey, walletProvider) {
5672
6487
  }
5673
6488
 
5674
6489
  // ../types/dist/index.js
5675
- var CONFIG_VERSION = 2020006;
6490
+ var CONFIG_VERSION = 2020008;
5676
6491
  var RC_STABLE = 99;
5677
6492
  var MIN_CONFIG_VERSION = 1e6;
5678
6493
  var MAX_CONFIG_VERSION = 99999999;
@@ -5925,12 +6740,12 @@ function canonicalizeBitcoinAddress(address$1) {
5925
6740
  }
5926
6741
  }
5927
6742
  function normalizePsbtToBase64(signedPsbt) {
5928
- const isHex2 = /^[0-9a-fA-F]+$/.test(signedPsbt);
5929
- return isHex2 ? Buffer.from(signedPsbt, "hex").toString("base64") : signedPsbt;
6743
+ const isHex3 = /^[0-9a-fA-F]+$/.test(signedPsbt);
6744
+ return isHex3 ? Buffer.from(signedPsbt, "hex").toString("base64") : signedPsbt;
5930
6745
  }
5931
6746
  function normalizeSignatureToBase64(signature) {
5932
- const isHex2 = /^[0-9a-fA-F]+$/.test(signature);
5933
- return isHex2 ? Buffer.from(signature, "hex").toString("base64") : signature;
6747
+ const isHex3 = /^[0-9a-fA-F]+$/.test(signature);
6748
+ return isHex3 ? Buffer.from(signature, "hex").toString("base64") : signature;
5934
6749
  }
5935
6750
  function isNativeBitcoinTransfer(config, chainKey, token) {
5936
6751
  return isBitcoinChainKeyType(chainKey) && !!token && isNativeBitcoinToken(config.getChainConfig(chainKey), token.address);
@@ -15746,10 +16561,12 @@ var ConfigService = class {
15746
16561
  get bridgeUseBackendSubmitTx() {
15747
16562
  return this.bridge.useBackendSubmitTx ?? this.sodax.bridgeOptions?.useBackendSubmitTx ?? true;
15748
16563
  }
15749
- // Opt-in (default OFF), unlike the swaps/bridge toggles above: the leverage-yield submit-tx
15750
- // backend path is newer, so an omitted flag keeps the proven client-side relay.
16564
+ // Same ON default as the two above, and for the same reason: any backend non-success falls back
16565
+ // to the client-side relay, so the default costs a rejected attempt at worst. No deprecated
16566
+ // second-precedence key here — leverage yield arrived after `swapsOptions` / `bridgeOptions` were
16567
+ // already deprecated, so it never had one.
15751
16568
  get leverageYieldUseBackendSubmitTx() {
15752
- return this.leverageYield.useBackendSubmitTx ?? false;
16569
+ return this.leverageYield.useBackendSubmitTx ?? true;
15753
16570
  }
15754
16571
  get dex() {
15755
16572
  return this.sodax.dex;
@@ -29056,6 +29873,39 @@ var EvmHubProvider = class {
29056
29873
  }
29057
29874
  };
29058
29875
 
29876
+ // src/backendApi/detailedStatusRouting.ts
29877
+ var DETAILED_STATUS_NOT_DELIVERED = "relay_not_delivered";
29878
+ function isBackendSubmitTxAbandoned(data) {
29879
+ return data.status === "failed" || Boolean(data.abandonedAt);
29880
+ }
29881
+ async function resolveDeliveredPacket(params) {
29882
+ const { srcChainKey, srcTxHash, relayerApiEndpoint, backendAnswered } = params;
29883
+ const relayChainId = getIntentRelayChainId(srcChainKey);
29884
+ const packets = await getTransactionPackets(
29885
+ { action: "get_transaction_packets", params: { chain_id: relayChainId.toString(), tx_hash: srcTxHash } },
29886
+ relayerApiEndpoint,
29887
+ RELAY_REQUEST_TIMEOUT_MS
29888
+ );
29889
+ if (!packets.ok) {
29890
+ const notIndexed = packets.error instanceof HttpRelayError && packets.error.status === 404;
29891
+ return { ok: false, cause: packets.error, budgetable: notIndexed && backendAnswered };
29892
+ }
29893
+ if (!packets.value?.success || !Array.isArray(packets.value.data)) {
29894
+ return { ok: false, cause: new Error("relay returned no usable transaction packets"), budgetable: false };
29895
+ }
29896
+ const delivered = packets.value.data.find(
29897
+ (packet) => typeof packet?.src_tx_hash === "string" && packet.src_tx_hash.toLowerCase() === srcTxHash.toLowerCase() && packet.src_chain_id === Number(relayChainId) && packet.status === "executed" && typeof packet.dst_tx_hash === "string" && packet.dst_tx_hash.length > 0
29898
+ );
29899
+ if (!delivered) {
29900
+ return {
29901
+ ok: false,
29902
+ cause: new Error("relay has not delivered a packet for this source tx yet"),
29903
+ budgetable: backendAnswered
29904
+ };
29905
+ }
29906
+ return { ok: true, packet: delivered };
29907
+ }
29908
+
29059
29909
  // src/backendApi/api-utils.ts
29060
29910
  var API_KEY_HEADER = "x-api-key";
29061
29911
  function apiKeyHeader(apiKey) {
@@ -29680,12 +30530,6 @@ function estimateSwapSpeedTier({ srcToken, dstToken }, isSodaAssetRelated) {
29680
30530
  return { tier: secondsToTier(estimatedSeconds), estimatedSeconds };
29681
30531
  }
29682
30532
 
29683
- // src/swap/detailedStatus.ts
29684
- var DETAILED_STATUS_NOT_DELIVERED = "relay_not_delivered";
29685
- function isBackendSubmitTxAbandoned(data) {
29686
- return data.status === "failed" || Boolean(data.abandonedAt);
29687
- }
29688
-
29689
30533
  // src/swap/errors.ts
29690
30534
  var swapInvariant = createInvariant("swap");
29691
30535
  var POST_EXECUTION_ERROR_CODES = /* @__PURE__ */ new Set([
@@ -29889,6 +30733,14 @@ var SwapService = class {
29889
30733
  if (record.ok && record.value.success && !isBackendSubmitTxAbandoned(record.value.data)) {
29890
30734
  return { ok: true, value: { source: "backend", data: record.value.data } };
29891
30735
  }
30736
+ if (!record.ok && isSodaxError(record.error) && isAuthFailure(record.error)) {
30737
+ return {
30738
+ ok: false,
30739
+ error: this.detailedStatusLookupFailed(record.error, params.srcChainKey, {
30740
+ status: record.error.context?.status
30741
+ })
30742
+ };
30743
+ }
29892
30744
  const backendAnswered = record.ok || isSodaxError(record.error) && record.error.context?.status === 404;
29893
30745
  const dstTxHash = await this.resolveHubTxHash(params, backendAnswered);
29894
30746
  if (!dstTxHash.ok) return dstTxHash;
@@ -29910,48 +30762,23 @@ var SwapService = class {
29910
30762
  * is simply "no hash yet".
29911
30763
  */
29912
30764
  async resolveHubTxHash(key, backendAnswered) {
29913
- const missReason = backendAnswered ? DETAILED_STATUS_NOT_DELIVERED : void 0;
29914
30765
  let hubTxHash = key.srcTxHash;
29915
30766
  if (!isHubChainKeyType(key.srcChainKey)) {
29916
- const relayChainId = getIntentRelayChainId(key.srcChainKey);
29917
- const packets = await getTransactionPackets(
29918
- {
29919
- action: "get_transaction_packets",
29920
- params: { chain_id: relayChainId.toString(), tx_hash: key.srcTxHash }
29921
- },
29922
- this.relayerApiEndpoint,
29923
- RELAY_REQUEST_TIMEOUT_MS
29924
- );
29925
- if (!packets.ok) {
29926
- const notIndexed = packets.error instanceof HttpRelayError && packets.error.status === 404;
29927
- return {
29928
- ok: false,
29929
- error: this.detailedStatusLookupFailed(packets.error, key.srcChainKey, notIndexed ? missReason : void 0)
29930
- };
29931
- }
29932
- if (!packets.value?.success || !Array.isArray(packets.value.data)) {
29933
- return {
29934
- ok: false,
29935
- error: this.detailedStatusLookupFailed(
29936
- new Error("relay returned no usable transaction packets"),
29937
- key.srcChainKey
29938
- )
29939
- };
29940
- }
29941
- const delivered = packets.value.data.find(
29942
- (packet) => typeof packet?.src_tx_hash === "string" && packet.src_tx_hash.toLowerCase() === key.srcTxHash.toLowerCase() && packet.src_chain_id === Number(relayChainId) && packet.status === "executed" && typeof packet.dst_tx_hash === "string" && packet.dst_tx_hash.length > 0
29943
- );
29944
- if (!delivered) {
30767
+ const delivered = await resolveDeliveredPacket({
30768
+ srcChainKey: key.srcChainKey,
30769
+ srcTxHash: key.srcTxHash,
30770
+ relayerApiEndpoint: this.relayerApiEndpoint,
30771
+ backendAnswered
30772
+ });
30773
+ if (!delivered.ok) {
29945
30774
  return {
29946
30775
  ok: false,
29947
- error: this.detailedStatusLookupFailed(
29948
- new Error("relay has not delivered the intent to the hub yet"),
29949
- key.srcChainKey,
29950
- missReason
29951
- )
30776
+ error: this.detailedStatusLookupFailed(delivered.cause, key.srcChainKey, {
30777
+ reason: delivered.budgetable ? DETAILED_STATUS_NOT_DELIVERED : void 0
30778
+ })
29952
30779
  };
29953
30780
  }
29954
- hubTxHash = delivered.dst_tx_hash;
30781
+ hubTxHash = delivered.packet.dst_tx_hash;
29955
30782
  }
29956
30783
  if (isHex(hubTxHash)) return { ok: true, value: hubTxHash };
29957
30784
  return {
@@ -29965,10 +30792,12 @@ var SwapService = class {
29965
30792
  /**
29966
30793
  * `reason` is set only for {@link DETAILED_STATUS_NOT_DELIVERED} — the miss a caller can bound
29967
30794
  * with a retry budget. Leaving it off marks a dependency that is failing right now, which a
29968
- * caller should keep retrying rather than give up on.
30795
+ * caller should keep retrying rather than give up on. `status` is lifted for a rejected key so
30796
+ * `isAuthFailure` recognises the wrapped error; it reads `context.status` and does not walk the
30797
+ * cause chain.
29969
30798
  */
29970
- detailedStatusLookupFailed(cause, srcChainKey, reason) {
29971
- return lookupFailed("swap", "getDetailedStatus", cause, { srcChainKey, action: "swap", reason });
30799
+ detailedStatusLookupFailed(cause, srcChainKey, extra) {
30800
+ return lookupFailed("swap", "getDetailedStatus", cause, { srcChainKey, action: "swap", ...extra });
29972
30801
  }
29973
30802
  /**
29974
30803
  * Notifies the solver API that an intent has been registered on the hub chain, triggering
@@ -35579,6 +36408,80 @@ var BridgeService = class {
35579
36408
  }
35580
36409
  return encodeContractCalls(calls);
35581
36410
  }
36411
+ /**
36412
+ * Answers "what is the status of this bridge?" from the **source-chain** tx — the one identifier a
36413
+ * caller always holds. It does not define a new status: it routes to whichever of the two existing
36414
+ * sources can answer, and returns that source's payload unmodified.
36415
+ *
36416
+ * `sodax.api.bridge.getSubmitTxStatus` cannot answer for every bridge. Sometimes there is no
36417
+ * record — `useBackendSubmitTx: false`, or the submit itself never landed. More often the record
36418
+ * exists but is stale: the backend path POSTs the tx first and only falls back to the client-side
36419
+ * relay once that stalls, so a fallback-completed bridge leaves behind whatever state the backend
36420
+ * last reached, including a record it abandoned outright. Neither shape reflects what happened.
36421
+ *
36422
+ * 1. Read the backend record; return it while it is still in play.
36423
+ * 2. Otherwise return the delivered relay packet, which is terminal by construction.
36424
+ *
36425
+ * A rejected API key is the one failure that does **not** fall through to step 2: the status route
36426
+ * is key-guarded, so degrading would bury a 401/403 behind a relay error and leave a poller
36427
+ * retrying a request only a corrected key can satisfy. It surfaces with `context.status` instead,
36428
+ * which is what `isAuthFailure` reads.
36429
+ *
36430
+ * A point-in-time read; poll it yourself, or use dapp-kit's `useBridgeDetailedStatus`.
36431
+ *
36432
+ * @param params - `srcChainKey` and `srcTxHash` of the source-chain bridge transaction.
36433
+ * @param config - Optional per-request override for the backend read (e.g. a per-action API key).
36434
+ * The relay leg is unauthenticated and takes none.
36435
+ * @returns A `Result` containing a {@link DetailedBridgeStatus}. Fails with `LOOKUP_FAILED` when no
36436
+ * source can answer yet — usually the relay has not delivered the packet. Branch on
36437
+ * `error.context.reason`: `DETAILED_STATUS_NOT_DELIVERED` is the ambiguous miss a caller should
36438
+ * bound with a retry budget; anything else is a dependency failing right now, so keep retrying.
36439
+ */
36440
+ async getDetailedStatus(params, config) {
36441
+ try {
36442
+ const record = await this.backendApi.bridge.getSubmitTxStatus(
36443
+ { txHash: params.srcTxHash, srcChainKey: params.srcChainKey },
36444
+ config
36445
+ );
36446
+ if (record.ok && record.value.success && !isBackendSubmitTxAbandoned(record.value.data)) {
36447
+ return { ok: true, value: { source: "backend", data: record.value.data } };
36448
+ }
36449
+ if (!record.ok && isSodaxError(record.error) && isAuthFailure(record.error)) {
36450
+ return {
36451
+ ok: false,
36452
+ error: this.detailedStatusLookupFailed(record.error, params.srcChainKey, {
36453
+ status: record.error.context?.status
36454
+ })
36455
+ };
36456
+ }
36457
+ const backendAnswered = record.ok || isSodaxError(record.error) && record.error.context?.status === 404;
36458
+ const delivered = await resolveDeliveredPacket({
36459
+ srcChainKey: params.srcChainKey,
36460
+ srcTxHash: params.srcTxHash,
36461
+ relayerApiEndpoint: this.config.relay.relayerApiEndpoint,
36462
+ backendAnswered
36463
+ });
36464
+ if (!delivered.ok) {
36465
+ return {
36466
+ ok: false,
36467
+ error: this.detailedStatusLookupFailed(delivered.cause, params.srcChainKey, {
36468
+ reason: delivered.budgetable ? DETAILED_STATUS_NOT_DELIVERED : void 0
36469
+ })
36470
+ };
36471
+ }
36472
+ return { ok: true, value: { source: "relay", data: delivered.packet } };
36473
+ } catch (error) {
36474
+ return { ok: false, error: this.detailedStatusLookupFailed(error, params.srcChainKey) };
36475
+ }
36476
+ }
36477
+ /**
36478
+ * `reason` is set only for {@link DETAILED_STATUS_NOT_DELIVERED} — the miss a caller can bound with
36479
+ * a retry budget. `status` is lifted for a rejected key so `isAuthFailure` recognises the wrapped
36480
+ * error; it reads `context.status` and does not walk the cause chain.
36481
+ */
36482
+ detailedStatusLookupFailed(cause, srcChainKey, extra) {
36483
+ return lookupFailed("bridge", "getDetailedStatus", cause, { srcChainKey, action: "bridge", ...extra });
36484
+ }
35582
36485
  /**
35583
36486
  * Returns the maximum amount that can currently be bridged between two tokens,
35584
36487
  * taking into account both deposit capacity on the source side and withdrawal liquidity
@@ -43803,6 +44706,8 @@ var leveragePositionAbi = parseAbi([
43803
44706
  "function settle()"
43804
44707
  ]);
43805
44708
  var INTENT_DEADLINE_BUFFER_SECONDS = 5 * 60;
44709
+ var RECONCILE_TIMEOUT_MS2 = 5e3;
44710
+ var DETAILED_STATUS_SOLVER_TIMEOUT_MS2 = 5e3;
43806
44711
  var BITCOIN_UNSUPPORTED_MESSAGE = "Bitcoin is not a supported source chain for leverage positions; use a supported spoke or the hub";
43807
44712
  var ANY_SOLVER_ADDRESS = "0x0000000000000000000000000000000000000000";
43808
44713
  var MAX_WITHDRAW_DUST_BUFFER = 1000n;
@@ -43840,9 +44745,9 @@ var LeverageYieldService = class {
43840
44745
  spoke;
43841
44746
  backendApi;
43842
44747
  /**
43843
- * Effective backend submit-tx flow (`leverageYield.useBackendSubmitTx`, default off). Read live off
43844
- * `ConfigService`, like `config.leverageYieldPartnerFee`, so the config object and the behavior can
43845
- * never disagree.
44748
+ * Effective backend submit-tx flow (`leverageYield.useBackendSubmitTx`, default ON; opt out with
44749
+ * `false`). Read live off `ConfigService`, like `config.leverageYieldPartnerFee`, so the config
44750
+ * object and the behavior can never disagree.
43846
44751
  */
43847
44752
  get useBackendSubmitTx() {
43848
44753
  return this.config.leverageYieldUseBackendSubmitTx;
@@ -44334,10 +45239,11 @@ var LeverageYieldService = class {
44334
45239
  );
44335
45240
  }
44336
45241
  /**
44337
- * Client-side vault-swap completion (the default path): verify the broadcast intent tx landed,
45242
+ * Client-side vault-swap completion (the opt-out path, and the fallback): verify the broadcast
45243
+ * intent tx landed,
44338
45244
  * relay it to the hub (Sonic) — or use it directly when the source IS the hub — then notify the
44339
45245
  * solver via {@link LeverageYieldService.notifySolver} and build the {@link VaultSwapResponse}.
44340
- * Extracted from `vaultSwap()` so the opt-in backend 2-step path ({@link LeverageYieldService.submitTx})
45246
+ * Extracted from `vaultSwap()` so the default backend 2-step path ({@link LeverageYieldService.submitTx})
44341
45247
  * can fall back to it on any non-success. Leverage-yield copy of `SwapService.fallbackSwapSteps`.
44342
45248
  */
44343
45249
  async fallbackVaultSwapSteps(_params, created, timeoutMs) {
@@ -44395,7 +45301,8 @@ var LeverageYieldService = class {
44395
45301
  };
44396
45302
  }
44397
45303
  /**
44398
- * Backend 2-step vault-swap path (opt-in via `leverageYield.useBackendSubmitTx`): hand the
45304
+ * Backend 2-step vault-swap path (the default; opt out with `leverageYield.useBackendSubmitTx:
45305
+ * false`): hand the
44399
45306
  * broadcast intent tx to the leverage-yield API (`POST /leverage-yield/submit-tx`); the backend
44400
45307
  * relays + post-executes server-side. Polls `getSubmitTxStatus` until `solved`, then reconstructs
44401
45308
  * the same {@link VaultSwapResponse} the client-side path returns.
@@ -44434,6 +45341,10 @@ var LeverageYieldService = class {
44434
45341
  operation: _params.hubWalletSwap ? "withdraw" : "deposit"
44435
45342
  },
44436
45343
  statusQuery: { txHash: spokeTxHash, srcChainKey },
45344
+ // Per-action key wins over the instance one for both legs of the attempt — the submit POST
45345
+ // and its status polls. Undefined leaves the configured key in place; the same per-action
45346
+ // override `extras.partnerFee` already has, travelling per call.
45347
+ overrideConfig: { apiKey: _params.extras?.apiKey },
44437
45348
  // A vault deposit/withdraw IS a solver swap, so terminal success is `solved` — not bridge's
44438
45349
  // `executed`.
44439
45350
  terminalStatus: "solved",
@@ -44517,22 +45428,22 @@ var LeverageYieldService = class {
44517
45428
  * A `NOT_FOUND` status usually means the notification never landed rather than that the intent
44518
45429
  * does not exist — an intent created on the hub is invisible to the solver until it is told.
44519
45430
  *
45431
+ * Reports the solver verbatim. It does NOT reconcile a `NOT_FOUND` against the backend's durable
45432
+ * record the way {@link LeverageYieldService.getDetailedStatus} does — a restarted solver answers
45433
+ * `NOT_FOUND` for intents it already filled, and that read resolves it. Keeping this one
45434
+ * unreconciled is deliberate: it has shipped with this contract, and folding the reconcile in
45435
+ * would turn a `NOT_FOUND` behind an unreadable backend into an error for every existing caller.
45436
+ * Prefer `getDetailedStatus` when you hold the source tx hash.
45437
+ *
44520
45438
  * @param request - `{ intent_tx_hash }` — the hub-chain (Sonic) tx hash the intent was
44521
45439
  * registered in. For a position that is the tx that called the factory or the position.
44522
45440
  */
44523
45441
  async getIntentStatus(request) {
44524
45442
  try {
44525
- const result = await SolverApiService.getStatus(
44526
- request,
44527
- this.config.solver,
44528
- this.config.logger,
44529
- void 0,
44530
- this.config.apiKey
44531
- );
45443
+ const result = await this.solverStatus(request);
44532
45444
  if (result.ok) return result;
44533
45445
  const detail = result.error?.detail ?? {
44534
- code: -999,
44535
- // SolverIntentErrorCode.UNKNOWN
45446
+ code: SolverIntentErrorCode.UNKNOWN,
44536
45447
  message: "Solver returned malformed error response"
44537
45448
  };
44538
45449
  return {
@@ -44552,6 +45463,164 @@ var LeverageYieldService = class {
44552
45463
  return { ok: false, error: executionFailed("leverageYield", error, { phase: "lookup" }) };
44553
45464
  }
44554
45465
  }
45466
+ /**
45467
+ * The raw solver read, in the solver's own vocabulary. Both public status surfaces start here; the
45468
+ * api key is the 5th argument, and leaving it out let a keyed partner notify and then fail to poll.
45469
+ */
45470
+ async solverStatus(request, timeoutMs, apiKey) {
45471
+ return SolverApiService.getStatus(
45472
+ request,
45473
+ this.config.solver,
45474
+ this.config.logger,
45475
+ timeoutMs,
45476
+ apiKey || this.config.apiKey
45477
+ );
45478
+ }
45479
+ /**
45480
+ * {@link LeverageYieldService.solverStatus} plus the durable-record reconcile, for
45481
+ * {@link LeverageYieldService.getDetailedStatus}. Deliberately not shared with
45482
+ * {@link LeverageYieldService.getIntentStatus}: the reconcile turns a `NOT_FOUND` behind an
45483
+ * unreadable backend into an error, which is right for a polled read that would otherwise spend a
45484
+ * budget on an unverified miss, and wrong to impose on a surface that already ships without it.
45485
+ *
45486
+ * `timeoutMs` bounds the solver request alone. The reconcile carries its own
45487
+ * {@link RECONCILE_TIMEOUT_MS}, so a bounded call can cost both.
45488
+ */
45489
+ async resolveSolverStatus(request, timeoutMs, apiKey) {
45490
+ const solverResult = await this.solverStatus(request, timeoutMs, apiKey);
45491
+ const forgotten = !solverResult.ok || solverResult.value.status === SolverIntentStatusCode.NOT_FOUND;
45492
+ if (!forgotten) return solverResult;
45493
+ const timeout = Math.min(RECONCILE_TIMEOUT_MS2, this.backendApi.requestTimeoutMs);
45494
+ const intent = await this.backendApi.getIntentByTxHash(request.intent_tx_hash, { timeout, apiKey });
45495
+ const settled = intent.ok ? intent.value.events.filter(isFillEvent).find((fill) => fill.intentState.remainingInput === "0") : void 0;
45496
+ if (settled) return { ok: true, value: { status: SolverIntentStatusCode.SOLVED, fill_tx_hash: settled.txHash } };
45497
+ const backendAnswered = intent.ok || isSodaxError(intent.error) && intent.error.context?.status === 404;
45498
+ if (solverResult.ok && !backendAnswered) {
45499
+ return {
45500
+ ok: false,
45501
+ error: {
45502
+ detail: {
45503
+ code: SolverIntentErrorCode.UNKNOWN,
45504
+ message: "solver reported NOT_FOUND and the durable intent record could not be read to verify it"
45505
+ }
45506
+ }
45507
+ };
45508
+ }
45509
+ return solverResult;
45510
+ }
45511
+ /**
45512
+ * Reads a vault swap's status from its source-chain transaction — the identifier a caller always
45513
+ * holds after `vaultSwap()`.
45514
+ *
45515
+ * **Routes; does not translate.** Returns the backend submit-tx record while it is in play,
45516
+ * otherwise the solver's answer via the hub tx hash resolved from the relay packet. The result is
45517
+ * tagged with `source` (discriminate on it) and carries that source's payload unmodified.
45518
+ *
45519
+ * `sodax.api.leverageYield.getSubmitTxStatus` cannot answer for every vault swap. Sometimes there
45520
+ * is no record — `useBackendSubmitTx: false`, or the submit was rejected. More often the record
45521
+ * exists but is stale: the backend path POSTs first and falls back to the client-side relay once
45522
+ * that stalls, so a fallback-completed vault swap leaves behind whatever state the backend last
45523
+ * reached, including a record it abandoned outright.
45524
+ *
45525
+ * **Any** unusable backend response routes to the solver — a 404, a transport or server error, or
45526
+ * a record the backend gave up on. A rejected API key is the exception: it is not a source with
45527
+ * nothing to say, it is a configuration problem only a corrected key resolves, so routing it on
45528
+ * would bury it behind a relay or solver error and leave a poller retrying a request that cannot
45529
+ * succeed. The same rule the swap and bridge siblings apply. It holds here even though
45530
+ * `GET /leverage-yield/submit-tx/status` declares no scope of its own: whether a key is checked
45531
+ * is a per-deployment setting, so this must not assume the read is unauthenticated.
45532
+ *
45533
+ * A point-in-time read; poll it yourself, or use dapp-kit's `useLeverageYieldDetailedStatus`.
45534
+ *
45535
+ * @param params - `srcChainKey` and `srcTxHash` of the source-chain vault-swap transaction.
45536
+ * @param config - Optional per-request override. Its `apiKey` reaches every keyed leg — the
45537
+ * submit-tx record read, the solver read, and the durable-intent read a solver `NOT_FOUND` falls
45538
+ * back to — so one override keys the whole call. The relay leg is unauthenticated and takes none.
45539
+ * @returns A `Result` containing a {@link DetailedLeverageYieldStatus}. Fails with `LOOKUP_FAILED`
45540
+ * when no source can answer yet. Branch on `error.context.reason`:
45541
+ * `DETAILED_STATUS_NOT_DELIVERED` is the ambiguous miss a caller should bound with a retry
45542
+ * budget; anything else is a dependency failing right now, so keep retrying.
45543
+ */
45544
+ async getDetailedStatus(params, config) {
45545
+ try {
45546
+ const record = await this.backendApi.leverageYield.getSubmitTxStatus(
45547
+ { txHash: params.srcTxHash, srcChainKey: params.srcChainKey },
45548
+ config
45549
+ );
45550
+ if (record.ok && record.value.success && !isBackendSubmitTxAbandoned(record.value.data)) {
45551
+ return { ok: true, value: { source: "backend", data: record.value.data } };
45552
+ }
45553
+ if (!record.ok && isSodaxError(record.error) && isAuthFailure(record.error)) {
45554
+ return {
45555
+ ok: false,
45556
+ error: this.detailedStatusLookupFailed(record.error, params.srcChainKey, {
45557
+ status: record.error.context?.status
45558
+ })
45559
+ };
45560
+ }
45561
+ const backendAnswered = record.ok || isSodaxError(record.error) && record.error.context?.status === 404;
45562
+ const dstTxHash = await this.resolveHubTxHash(params, backendAnswered);
45563
+ if (!dstTxHash.ok) return dstTxHash;
45564
+ const solver = await this.resolveSolverStatus(
45565
+ { intent_tx_hash: dstTxHash.value },
45566
+ DETAILED_STATUS_SOLVER_TIMEOUT_MS2,
45567
+ config?.apiKey
45568
+ );
45569
+ if (!solver.ok) {
45570
+ return { ok: false, error: this.detailedStatusLookupFailed(solver.error, params.srcChainKey) };
45571
+ }
45572
+ return { ok: true, value: { source: "solver", dstTxHash: dstTxHash.value, data: solver.value } };
45573
+ } catch (error) {
45574
+ return { ok: false, error: this.detailedStatusLookupFailed(error, params.srcChainKey) };
45575
+ }
45576
+ }
45577
+ /**
45578
+ * The hub-chain tx hash the solver is keyed on. A hub-source vault swap has no relay leg — the
45579
+ * source tx *is* the hub tx. Otherwise the delivered relay packet carries it, so an undelivered
45580
+ * packet is simply "no hash yet".
45581
+ */
45582
+ async resolveHubTxHash(key, backendAnswered) {
45583
+ let hubTxHash = key.srcTxHash;
45584
+ if (!isHubChainKeyType(key.srcChainKey)) {
45585
+ const delivered = await resolveDeliveredPacket({
45586
+ srcChainKey: key.srcChainKey,
45587
+ srcTxHash: key.srcTxHash,
45588
+ relayerApiEndpoint: this.config.relay.relayerApiEndpoint,
45589
+ backendAnswered
45590
+ });
45591
+ if (!delivered.ok) {
45592
+ return {
45593
+ ok: false,
45594
+ error: this.detailedStatusLookupFailed(delivered.cause, key.srcChainKey, {
45595
+ reason: delivered.budgetable ? DETAILED_STATUS_NOT_DELIVERED : void 0
45596
+ })
45597
+ };
45598
+ }
45599
+ hubTxHash = delivered.packet.dst_tx_hash;
45600
+ }
45601
+ if (isHex(hubTxHash)) return { ok: true, value: hubTxHash };
45602
+ return {
45603
+ ok: false,
45604
+ error: this.detailedStatusLookupFailed(
45605
+ new Error(`hub tx hash is not a hex string: ${hubTxHash}`),
45606
+ key.srcChainKey
45607
+ )
45608
+ };
45609
+ }
45610
+ /**
45611
+ * `reason` is set only for {@link DETAILED_STATUS_NOT_DELIVERED} — the miss a caller can bound
45612
+ * with a retry budget. Leaving it off marks a dependency that is failing right now, which a
45613
+ * caller should keep retrying rather than give up on. `status` is lifted for a rejected key so
45614
+ * `isAuthFailure` recognises the wrapped error; it reads `context.status` and does not walk the
45615
+ * cause chain.
45616
+ */
45617
+ detailedStatusLookupFailed(cause, srcChainKey, extra) {
45618
+ return lookupFailed("leverageYield", "getDetailedStatus", cause, {
45619
+ srcChainKey,
45620
+ action: "vaultSwap",
45621
+ ...extra
45622
+ });
45623
+ }
44555
45624
  /**
44556
45625
  * Approves the vault's underlying asset to the leverage vault on Sonic. For callers
44557
45626
  * interacting with the vault directly on the hub — the swap-style {@link