@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.cjs CHANGED
@@ -367,7 +367,18 @@ var HubVaultSymbols = [
367
367
  "QQQ",
368
368
  "SGOV",
369
369
  "USO",
370
- "SLV"
370
+ "SLV",
371
+ "GOOGL",
372
+ "AMZN",
373
+ "MSFT",
374
+ "META",
375
+ "CRCL",
376
+ "COIN",
377
+ "PLTR",
378
+ "TSM",
379
+ "AMD",
380
+ "INTC",
381
+ "BABA"
371
382
  ];
372
383
  var SodaTokens = {
373
384
  sodaBNB: {
@@ -760,6 +771,116 @@ var SodaTokens = {
760
771
  chainKey: ChainKeys.SONIC_MAINNET,
761
772
  hubAsset: "0x690B92c27ac80015E57DB8cc02A81255814f49A2",
762
773
  vault: "0x690B92c27ac80015E57DB8cc02A81255814f49A2"
774
+ },
775
+ GOOGL: {
776
+ symbol: "GOOGL",
777
+ isRwa: true,
778
+ name: "Alphabet Class A \u2022 Robinhood Token",
779
+ decimals: 18,
780
+ address: "0xBdB4445a05726E26C26EA30dF0C1970DF4Cf4Be3",
781
+ chainKey: ChainKeys.SONIC_MAINNET,
782
+ hubAsset: "0xBdB4445a05726E26C26EA30dF0C1970DF4Cf4Be3",
783
+ vault: "0xBdB4445a05726E26C26EA30dF0C1970DF4Cf4Be3"
784
+ },
785
+ AMZN: {
786
+ symbol: "AMZN",
787
+ isRwa: true,
788
+ name: "Amazon \u2022 Robinhood Token",
789
+ decimals: 18,
790
+ address: "0xc467cAC3e69C2eb41Cc9b32Aa1A7a54F942243Ba",
791
+ chainKey: ChainKeys.SONIC_MAINNET,
792
+ hubAsset: "0xc467cAC3e69C2eb41Cc9b32Aa1A7a54F942243Ba",
793
+ vault: "0xc467cAC3e69C2eb41Cc9b32Aa1A7a54F942243Ba"
794
+ },
795
+ MSFT: {
796
+ symbol: "MSFT",
797
+ isRwa: true,
798
+ name: "Microsoft \u2022 Robinhood Token",
799
+ decimals: 18,
800
+ address: "0x66A3bc5a66D3c66dc42031775Ea3eedc37347FeC",
801
+ chainKey: ChainKeys.SONIC_MAINNET,
802
+ hubAsset: "0x66A3bc5a66D3c66dc42031775Ea3eedc37347FeC",
803
+ vault: "0x66A3bc5a66D3c66dc42031775Ea3eedc37347FeC"
804
+ },
805
+ META: {
806
+ symbol: "META",
807
+ isRwa: true,
808
+ name: "Meta Platforms \u2022 Robinhood Token",
809
+ decimals: 18,
810
+ address: "0xB7686E0a03542230927CAC76Fe7566656439F3c6",
811
+ chainKey: ChainKeys.SONIC_MAINNET,
812
+ hubAsset: "0xB7686E0a03542230927CAC76Fe7566656439F3c6",
813
+ vault: "0xB7686E0a03542230927CAC76Fe7566656439F3c6"
814
+ },
815
+ CRCL: {
816
+ symbol: "CRCL",
817
+ isRwa: true,
818
+ name: "Circle Internet Group \u2022 Robinhood Token",
819
+ decimals: 18,
820
+ address: "0x1e264ceEEb59F7425D64362Bf12A5b2648B6e66d",
821
+ chainKey: ChainKeys.SONIC_MAINNET,
822
+ hubAsset: "0x1e264ceEEb59F7425D64362Bf12A5b2648B6e66d",
823
+ vault: "0x1e264ceEEb59F7425D64362Bf12A5b2648B6e66d"
824
+ },
825
+ COIN: {
826
+ symbol: "COIN",
827
+ isRwa: true,
828
+ name: "Coinbase \u2022 Robinhood Token",
829
+ decimals: 18,
830
+ address: "0x5540d60F879F5D470bF9Ed7d23FFd59Acc10da0c",
831
+ chainKey: ChainKeys.SONIC_MAINNET,
832
+ hubAsset: "0x5540d60F879F5D470bF9Ed7d23FFd59Acc10da0c",
833
+ vault: "0x5540d60F879F5D470bF9Ed7d23FFd59Acc10da0c"
834
+ },
835
+ PLTR: {
836
+ symbol: "PLTR",
837
+ isRwa: true,
838
+ name: "Palantir Technologies \u2022 Robinhood Token",
839
+ decimals: 18,
840
+ address: "0xA24710Ab6A5e1ef3a7CF3a0333d8bE2bf22782DC",
841
+ chainKey: ChainKeys.SONIC_MAINNET,
842
+ hubAsset: "0xA24710Ab6A5e1ef3a7CF3a0333d8bE2bf22782DC",
843
+ vault: "0xA24710Ab6A5e1ef3a7CF3a0333d8bE2bf22782DC"
844
+ },
845
+ TSM: {
846
+ symbol: "TSM",
847
+ isRwa: true,
848
+ name: "Taiwan Semiconductor Manufacturing \u2022 Robinhood Token",
849
+ decimals: 18,
850
+ address: "0xAF9992b0cA54e014ff1EC7fA77AADE973Dba793e",
851
+ chainKey: ChainKeys.SONIC_MAINNET,
852
+ hubAsset: "0xAF9992b0cA54e014ff1EC7fA77AADE973Dba793e",
853
+ vault: "0xAF9992b0cA54e014ff1EC7fA77AADE973Dba793e"
854
+ },
855
+ AMD: {
856
+ symbol: "AMD",
857
+ isRwa: true,
858
+ name: "AMD \u2022 Robinhood Token",
859
+ decimals: 18,
860
+ address: "0xc8124Db156d8F6C7446C040c503FFEAe82383D1B",
861
+ chainKey: ChainKeys.SONIC_MAINNET,
862
+ hubAsset: "0xc8124Db156d8F6C7446C040c503FFEAe82383D1B",
863
+ vault: "0xc8124Db156d8F6C7446C040c503FFEAe82383D1B"
864
+ },
865
+ INTC: {
866
+ symbol: "INTC",
867
+ isRwa: true,
868
+ name: "Intel \u2022 Robinhood Token",
869
+ decimals: 18,
870
+ address: "0x5352F9Bf2f58720f8a8CC4D4eDEE56700Bd3d053",
871
+ chainKey: ChainKeys.SONIC_MAINNET,
872
+ hubAsset: "0x5352F9Bf2f58720f8a8CC4D4eDEE56700Bd3d053",
873
+ vault: "0x5352F9Bf2f58720f8a8CC4D4eDEE56700Bd3d053"
874
+ },
875
+ BABA: {
876
+ symbol: "BABA",
877
+ isRwa: true,
878
+ name: "Alibaba \u2022 Robinhood Token",
879
+ decimals: 18,
880
+ address: "0x1BeD0547D76F6424e9A3465b36F6dcDCF798A5cf",
881
+ chainKey: ChainKeys.SONIC_MAINNET,
882
+ hubAsset: "0x1BeD0547D76F6424e9A3465b36F6dcDCF798A5cf",
883
+ vault: "0x1BeD0547D76F6424e9A3465b36F6dcDCF798A5cf"
763
884
  }
764
885
  };
765
886
  var LsodaSymbols = ["lsodaWEETH", "lsodaWSTETH", "lsodaJITOSOL", "lsodaSUSDS"];
@@ -1211,6 +1332,96 @@ var solanaSupportedTokens = {
1211
1332
  chainKey: ChainKeys.SOLANA_MAINNET,
1212
1333
  hubAsset: "0x024230dd63b27df90d988d6f37a69d4de627ce89",
1213
1334
  vault: "0x024230dd63b27df90d988d6f37a69d4de627ce89"
1335
+ },
1336
+ PUMP: {
1337
+ symbol: "PUMP",
1338
+ name: "Pump",
1339
+ decimals: 6,
1340
+ address: "pumpCmXqMfrsAkQ5r49WcJnRayYRqmXz6ae8H7H9Dfn",
1341
+ chainKey: ChainKeys.SOLANA_MAINNET,
1342
+ hubAsset: "0x02722baa016f5369c91b6533330315ec884458a4",
1343
+ vault: "0x02722baa016f5369c91b6533330315ec884458a4"
1344
+ },
1345
+ ETH: {
1346
+ symbol: "ETH",
1347
+ name: "Ether (Wormhole)",
1348
+ decimals: 8,
1349
+ address: "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs",
1350
+ chainKey: ChainKeys.SOLANA_MAINNET,
1351
+ hubAsset: "0x6ebaff90878a252ac3358ae8b74d174f09d329d3",
1352
+ vault: "0x6ebaff90878a252ac3358ae8b74d174f09d329d3"
1353
+ },
1354
+ USD1: {
1355
+ symbol: "USD1",
1356
+ name: "World Liberty Financial USD",
1357
+ decimals: 6,
1358
+ address: "USD1ttGY1N17NEEHLmELoaybftRBUSErhqYiQzvEmuB",
1359
+ chainKey: ChainKeys.SOLANA_MAINNET,
1360
+ hubAsset: "0xe02735b9bc0dc82564c1bebdcaeffef6071efea1",
1361
+ vault: "0xe02735b9bc0dc82564c1bebdcaeffef6071efea1"
1362
+ },
1363
+ cbBTC: {
1364
+ symbol: "cbBTC",
1365
+ name: "Coinbase Wrapped BTC",
1366
+ decimals: 8,
1367
+ address: "cbbtcf3aa214zXHbiAZQwf4122FBYbraNdFqgw4iMij",
1368
+ chainKey: ChainKeys.SOLANA_MAINNET,
1369
+ hubAsset: "0xca4ba45e5bf0691cb0b5fbe197a3317b7aa81602",
1370
+ vault: "0xca4ba45e5bf0691cb0b5fbe197a3317b7aa81602"
1371
+ },
1372
+ PYUSD: {
1373
+ symbol: "PYUSD",
1374
+ name: "PayPal USD",
1375
+ decimals: 6,
1376
+ address: "2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo",
1377
+ chainKey: ChainKeys.SOLANA_MAINNET,
1378
+ hubAsset: "0x3fe0cdad6c8f0a600afdb4e04ed1a0b3811b274f",
1379
+ vault: "0x3fe0cdad6c8f0a600afdb4e04ed1a0b3811b274f"
1380
+ },
1381
+ JLP: {
1382
+ symbol: "JLP",
1383
+ name: "Jupiter Perps LP",
1384
+ decimals: 6,
1385
+ address: "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4",
1386
+ chainKey: ChainKeys.SOLANA_MAINNET,
1387
+ hubAsset: "0x78dff771e80d7152720bdfd399bfdd327cc25b25",
1388
+ vault: "0x78dff771e80d7152720bdfd399bfdd327cc25b25"
1389
+ },
1390
+ USDG: {
1391
+ symbol: "USDG",
1392
+ name: "Global Dollar",
1393
+ decimals: 6,
1394
+ address: "2u1tszSeqZ3qBWF3uNGPFc8TzMk2tdiwknnRMWGWjGWH",
1395
+ chainKey: ChainKeys.SOLANA_MAINNET,
1396
+ hubAsset: "0x67047acfd986561f2f377fd52dc26c11286ff655",
1397
+ vault: "0x67047acfd986561f2f377fd52dc26c11286ff655"
1398
+ },
1399
+ JupUSD: {
1400
+ symbol: "JupUSD",
1401
+ name: "Jupiter USD",
1402
+ decimals: 6,
1403
+ address: "JuprjznTrTSp2UFa3ZBUFgwdAmtZCq4MQCwysN55USD",
1404
+ chainKey: ChainKeys.SOLANA_MAINNET,
1405
+ hubAsset: "0xb37d694de613abf079c4ccc6ce7683843370d219",
1406
+ vault: "0xb37d694de613abf079c4ccc6ce7683843370d219"
1407
+ },
1408
+ USDe: {
1409
+ symbol: "USDe",
1410
+ name: "Ethena USDe",
1411
+ decimals: 9,
1412
+ address: "DEkqHyPN7GMRJ5cArtQFAWefqbZb33Hyf6s5iCwjEonT",
1413
+ chainKey: ChainKeys.SOLANA_MAINNET,
1414
+ hubAsset: "0x920bb2b09873073eeb1b71db9e3ecb908d221086",
1415
+ vault: "0x920bb2b09873073eeb1b71db9e3ecb908d221086"
1416
+ },
1417
+ USELESS: {
1418
+ symbol: "USELESS",
1419
+ name: "USELESS COIN",
1420
+ decimals: 6,
1421
+ address: "Dz9mQ9NzkBcCsuGPFJ3r1bS4wgqKMHBPiVuniW8Mbonk",
1422
+ chainKey: ChainKeys.SOLANA_MAINNET,
1423
+ hubAsset: "0x0a3a93b7303a582b2ab84cfb3493fdb9d160a3ef",
1424
+ vault: "0x0a3a93b7303a582b2ab84cfb3493fdb9d160a3ef"
1214
1425
  }
1215
1426
  };
1216
1427
  var avalancheSupportedTokens = {
@@ -1267,6 +1478,15 @@ var avalancheSupportedTokens = {
1267
1478
  chainKey: ChainKeys.AVALANCHE_MAINNET,
1268
1479
  hubAsset: "0x3492987e8c83e1628ce8ff48f5ae127105df304a",
1269
1480
  vault: "0x3492987e8c83e1628ce8ff48f5ae127105df304a"
1481
+ },
1482
+ BTCb: {
1483
+ symbol: "BTC.b",
1484
+ name: "Lombard BTC.b",
1485
+ decimals: 8,
1486
+ address: "0x152b9d0FdC40C096757F570A51E494bd4b943E50",
1487
+ chainKey: ChainKeys.AVALANCHE_MAINNET,
1488
+ hubAsset: "0x216a9fa7d34fc5c23cd972b135864413d023d0b3",
1489
+ vault: "0x216a9fa7d34fc5c23cd972b135864413d023d0b3"
1270
1490
  }
1271
1491
  };
1272
1492
  var arbitrumSupportedTokens = {
@@ -1442,6 +1662,33 @@ var arbitrumSupportedTokens = {
1442
1662
  chainKey: ChainKeys.ARBITRUM_MAINNET,
1443
1663
  hubAsset: "0xd8270661d8bdc7c6d80c2a04f1d9775ea5db0553",
1444
1664
  vault: "0xd8270661d8bdc7c6d80c2a04f1d9775ea5db0553"
1665
+ },
1666
+ cbBTC: {
1667
+ symbol: "cbBTC",
1668
+ name: "Coinbase Wrapped BTC",
1669
+ decimals: 8,
1670
+ address: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
1671
+ chainKey: ChainKeys.ARBITRUM_MAINNET,
1672
+ hubAsset: "0x08faf2ad2b023244846e072ef06791e98c8ff4d7",
1673
+ vault: "0x08faf2ad2b023244846e072ef06791e98c8ff4d7"
1674
+ },
1675
+ GMX: {
1676
+ symbol: "GMX",
1677
+ name: "GMX",
1678
+ decimals: 18,
1679
+ address: "0xfc5A1A6EB076a2C7aD06eD22C90d7E710E35ad0a",
1680
+ chainKey: ChainKeys.ARBITRUM_MAINNET,
1681
+ hubAsset: "0x06a9bf7ae2c878dee7134c38067a5186e9a81400",
1682
+ vault: "0x06a9bf7ae2c878dee7134c38067a5186e9a81400"
1683
+ },
1684
+ DAI: {
1685
+ symbol: "DAI",
1686
+ name: "Dai Stablecoin",
1687
+ decimals: 18,
1688
+ address: "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",
1689
+ chainKey: ChainKeys.ARBITRUM_MAINNET,
1690
+ hubAsset: "0x68ff591a66f6b6c77bdf6463d88e8cb5578c8a53",
1691
+ vault: "0x68ff591a66f6b6c77bdf6463d88e8cb5578c8a53"
1445
1692
  }
1446
1693
  };
1447
1694
  var baseSupportedTokens = {
@@ -1562,6 +1809,24 @@ var baseSupportedTokens = {
1562
1809
  chainKey: ChainKeys.BASE_MAINNET,
1563
1810
  hubAsset: "0x807cC73f69F1aCCC50511a0390A8544cEA71baA9",
1564
1811
  vault: SodaTokens.sodaSUSDS.address
1812
+ },
1813
+ EURC: {
1814
+ symbol: "EURC",
1815
+ name: "EURC",
1816
+ decimals: 6,
1817
+ address: "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
1818
+ chainKey: ChainKeys.BASE_MAINNET,
1819
+ hubAsset: "0x228615a4e0cb4cb1a8931605301661db2782adb8",
1820
+ vault: "0x228615a4e0cb4cb1a8931605301661db2782adb8"
1821
+ },
1822
+ MORPHO: {
1823
+ symbol: "MORPHO",
1824
+ name: "Morpho Token",
1825
+ decimals: 18,
1826
+ address: "0xBAa5CC21fd487B8Fcc2F632f3F4E8D37262a0842",
1827
+ chainKey: ChainKeys.BASE_MAINNET,
1828
+ hubAsset: "0x7e1af5084ac6f15afa97a5525b2e35a804e80b01",
1829
+ vault: "0x7e1af5084ac6f15afa97a5525b2e35a804e80b01"
1565
1830
  }
1566
1831
  };
1567
1832
  var optimismSupportedTokens = {
@@ -1818,6 +2083,15 @@ var bscSupportedTokens = {
1818
2083
  chainKey: ChainKeys.BSC_MAINNET,
1819
2084
  hubAsset: "0x63c29285bfda811899ec09d311856df9de37950d",
1820
2085
  vault: "0x63c29285bfda811899ec09d311856df9de37950d"
2086
+ },
2087
+ UNI: {
2088
+ symbol: "UNI",
2089
+ name: "Uniswap (BEP20)",
2090
+ decimals: 18,
2091
+ address: "0xBf5140A22578168FD562DCcF235E5D43A02ce9B1",
2092
+ chainKey: ChainKeys.BSC_MAINNET,
2093
+ hubAsset: "0xdab003b59749fe08fad6e0e7685f31bbcf4cbd6e",
2094
+ vault: "0xdab003b59749fe08fad6e0e7685f31bbcf4cbd6e"
1821
2095
  }
1822
2096
  };
1823
2097
  var polygonSupportedTokens = {
@@ -1993,6 +2267,15 @@ var hyperevmSupportedTokens = {
1993
2267
  chainKey: ChainKeys.HYPEREVM_MAINNET,
1994
2268
  hubAsset: "0xacf9085e5b805a5e18fb637c2c3a02586d7289af",
1995
2269
  vault: "0xacf9085e5b805a5e18fb637c2c3a02586d7289af"
2270
+ },
2271
+ USOL: {
2272
+ symbol: "USOL",
2273
+ name: "Unit Solana",
2274
+ decimals: 9,
2275
+ address: "0x068f321Fa8Fb9f0D135f290Ef6a3e2813e1c8A29",
2276
+ chainKey: ChainKeys.HYPEREVM_MAINNET,
2277
+ hubAsset: "0xba570366523aef0de760489e5c693eeb5ecb3e64",
2278
+ vault: "0xba570366523aef0de760489e5c693eeb5ecb3e64"
1996
2279
  }
1997
2280
  };
1998
2281
  var lightlinkSupportedTokens = {
@@ -2518,6 +2801,125 @@ var stellarSupportedTokens = {
2518
2801
  chainKey: ChainKeys.STELLAR_MAINNET,
2519
2802
  hubAsset: "0x7eaF987431ce072feBEB2124fEB4d1cEf8Cf4e2e",
2520
2803
  vault: SodaTokens.SLV.address
2804
+ },
2805
+ GOOGL: {
2806
+ symbol: "GOOGL",
2807
+ isRwa: true,
2808
+ name: "Alphabet Class A",
2809
+ decimals: 7,
2810
+ address: "CCZLQHO22HLQARS26KNSJ4DU3FCFG45VG6RZQOQDQ4MHTSUVGRX57VWD",
2811
+ chainKey: ChainKeys.STELLAR_MAINNET,
2812
+ hubAsset: "0x3DE82bcf9D6a1CE8CB9b9eBCD6fC2916c548CD19",
2813
+ vault: SodaTokens.GOOGL.address
2814
+ },
2815
+ AMZN: {
2816
+ symbol: "AMZN",
2817
+ isRwa: true,
2818
+ name: "Amazon",
2819
+ decimals: 7,
2820
+ address: "CBN6JFMCVKXOIRRERGPH7CGY7RIIHGRLVSFJCD3KBMYSUEZAQR3MJ7TF",
2821
+ chainKey: ChainKeys.STELLAR_MAINNET,
2822
+ hubAsset: "0x30A6383A1d39b40B038EB82fd0F1fb7F77580623",
2823
+ vault: SodaTokens.AMZN.address
2824
+ },
2825
+ MSFT: {
2826
+ symbol: "MSFT",
2827
+ isRwa: true,
2828
+ name: "Microsoft",
2829
+ decimals: 7,
2830
+ address: "CA53FXC2RF3BNIGLCPE3PNS3SZ2AONVRKH46AIHPEJOA54LGI2DYSOAD",
2831
+ chainKey: ChainKeys.STELLAR_MAINNET,
2832
+ hubAsset: "0xDb89f97afc524c95a02a001aE16fe946e2f2e4A6",
2833
+ vault: SodaTokens.MSFT.address
2834
+ },
2835
+ META: {
2836
+ symbol: "META",
2837
+ isRwa: true,
2838
+ name: "Meta",
2839
+ decimals: 7,
2840
+ address: "CA4AXIRO72PC566XUIYVN2365347I7TVGYULXW7QDVCIXBOEFFRXGP67",
2841
+ chainKey: ChainKeys.STELLAR_MAINNET,
2842
+ hubAsset: "0xd2ff91513Cc08b5Bf4A07F1829A04273Bb902445",
2843
+ vault: SodaTokens.META.address
2844
+ },
2845
+ CRCL: {
2846
+ symbol: "CRCL",
2847
+ isRwa: true,
2848
+ name: "Circle",
2849
+ decimals: 7,
2850
+ address: "CDMRGHCY23UVTFYYW6U2NBYGME2VVPDO6OJXLZMM7FNGVFX3V42SAA4C",
2851
+ chainKey: ChainKeys.STELLAR_MAINNET,
2852
+ hubAsset: "0x1599b2754f0fC9429b3CDA12823B19eb2463F1cc",
2853
+ vault: SodaTokens.CRCL.address
2854
+ },
2855
+ COIN: {
2856
+ symbol: "COIN",
2857
+ isRwa: true,
2858
+ name: "Coinbase",
2859
+ decimals: 7,
2860
+ address: "CAKCNNQFIYAQBU7RXWPW3ZH4IWDXGMXUB6WTGCEZSI2EZ6WSTCCCEFHO",
2861
+ chainKey: ChainKeys.STELLAR_MAINNET,
2862
+ hubAsset: "0xaaB281239e25d7E637b4053C832D9b3b495c0261",
2863
+ vault: SodaTokens.COIN.address
2864
+ },
2865
+ PLTR: {
2866
+ symbol: "PLTR",
2867
+ isRwa: true,
2868
+ name: "Palantir",
2869
+ decimals: 7,
2870
+ address: "CC3EVVVQAB2BZFAJHPZWVRANTVVS37OJXNJKR2DVPAMG5FOYRPIIGCEV",
2871
+ chainKey: ChainKeys.STELLAR_MAINNET,
2872
+ hubAsset: "0x948195294e506cd42C00418269ab0E53EFAE5171",
2873
+ vault: SodaTokens.PLTR.address
2874
+ },
2875
+ TSM: {
2876
+ symbol: "TSM",
2877
+ isRwa: true,
2878
+ name: "Taiwan Semiconductor",
2879
+ decimals: 7,
2880
+ address: "CBZFBO44J4RSRZZ7PT7BHLLID6L7C4HL77YLVFCNIIXZQKVLNL6VEAD6",
2881
+ chainKey: ChainKeys.STELLAR_MAINNET,
2882
+ hubAsset: "0x276a0aB35C5eBD286076F69c58dA6AbB22c326Bf",
2883
+ vault: SodaTokens.TSM.address
2884
+ },
2885
+ AMD: {
2886
+ symbol: "AMD",
2887
+ isRwa: true,
2888
+ name: "AMD",
2889
+ decimals: 7,
2890
+ address: "CCIE4OXPJUPLNRLGAENNSDEZTQUXTXKAPU322Z3HMATZSR2S2DAAGYQD",
2891
+ chainKey: ChainKeys.STELLAR_MAINNET,
2892
+ hubAsset: "0x16a8d54d04Ee9cbcC57Fe7C4838bEA83294Fb646",
2893
+ vault: SodaTokens.AMD.address
2894
+ },
2895
+ INTC: {
2896
+ symbol: "INTC",
2897
+ isRwa: true,
2898
+ name: "Intel",
2899
+ decimals: 7,
2900
+ address: "CBD7GPTTHNFWBX7CYOM7O3N2TCZIAYT6FT4LCAXKX4JCZ3ZJL2IF7E4B",
2901
+ chainKey: ChainKeys.STELLAR_MAINNET,
2902
+ hubAsset: "0x34FC8F280c7C345A9aFC6E00F652F75b1fB2bd22",
2903
+ vault: SodaTokens.INTC.address
2904
+ },
2905
+ BABA: {
2906
+ symbol: "BABA",
2907
+ isRwa: true,
2908
+ name: "Alibaba",
2909
+ decimals: 7,
2910
+ address: "CDARDTMGSEXTYJDSKDEAA52DCYX3OZEP7SOLSF5CT3QSSAGBETWH7LO3",
2911
+ chainKey: ChainKeys.STELLAR_MAINNET,
2912
+ hubAsset: "0x83ac05C492188B46dd15d5611dEEFA6b23c7D479",
2913
+ vault: SodaTokens.BABA.address
2914
+ },
2915
+ EURC: {
2916
+ symbol: "EURC",
2917
+ name: "EURC",
2918
+ decimals: 7,
2919
+ address: "CDTKPWPLOURQA2SGTKTUQOWRCBZEORB4BWBOMJ3D3ZTQQSGE5F6JBQLV",
2920
+ chainKey: ChainKeys.STELLAR_MAINNET,
2921
+ hubAsset: "0x93d5d2382f302fa78350c18b4df3ee0bd09b3945",
2922
+ vault: "0x93d5d2382f302fa78350c18b4df3ee0bd09b3945"
2521
2923
  }
2522
2924
  };
2523
2925
  var suiSupportedTokens = {
@@ -2655,6 +3057,24 @@ var suiSupportedTokens = {
2655
3057
  chainKey: ChainKeys.SUI_MAINNET,
2656
3058
  hubAsset: "0xb78c7c96ae996b4d479bb81b7569a5c6a79c88cb",
2657
3059
  vault: "0xb78c7c96ae996b4d479bb81b7569a5c6a79c88cb"
3060
+ },
3061
+ USDsui: {
3062
+ symbol: "USDsui",
3063
+ name: "Sui Dollar",
3064
+ decimals: 6,
3065
+ address: "0x44f838219cf67b058f3b37907b655f226153c18e33dfcd0da559a844fea9b1c1::usdsui::USDSUI",
3066
+ chainKey: ChainKeys.SUI_MAINNET,
3067
+ hubAsset: "0x2ed5799b38271c02fdd74bab080f32db58b20c44",
3068
+ vault: "0x2ed5799b38271c02fdd74bab080f32db58b20c44"
3069
+ },
3070
+ WBTC: {
3071
+ symbol: "WBTC",
3072
+ name: "Wrapped BTC",
3073
+ decimals: 8,
3074
+ address: "0x0041f9f9344cac094454cd574e333c4fdb132d7bcc9379bcd4aab485b2a63942::wbtc::WBTC",
3075
+ chainKey: ChainKeys.SUI_MAINNET,
3076
+ hubAsset: "0x2037d840f01e903e09e33b146f2dd3fa4a4d2c21",
3077
+ vault: "0x2037d840f01e903e09e33b146f2dd3fa4a4d2c21"
2658
3078
  }
2659
3079
  };
2660
3080
  var iconSupportedTokens = {
@@ -2760,6 +3180,15 @@ var nearSupportedTokens = {
2760
3180
  chainKey: ChainKeys.NEAR_MAINNET,
2761
3181
  hubAsset: "0x2eC38A4DdfB76E1aae04F392b55A28f0D659BcD4",
2762
3182
  vault: "0x"
3183
+ },
3184
+ ZEC: {
3185
+ symbol: "ZEC",
3186
+ name: "Zcash",
3187
+ decimals: 8,
3188
+ address: "zec.omft.near",
3189
+ chainKey: ChainKeys.NEAR_MAINNET,
3190
+ hubAsset: "0xed5d71eed7cb6b62a449522538a6960ea242b8c3",
3191
+ vault: "0xed5d71eed7cb6b62a449522538a6960ea242b8c3"
2763
3192
  }
2764
3193
  };
2765
3194
  var ethereumSupportedTokens = {
@@ -3017,6 +3446,33 @@ var ethereumSupportedTokens = {
3017
3446
  chainKey: ChainKeys.ETHEREUM_MAINNET,
3018
3447
  hubAsset: "0x1Bb5128A4837A78cb60bc52cc19079eD3F00A624",
3019
3448
  vault: SodaTokens.sodaSUSDS.address
3449
+ },
3450
+ GHO: {
3451
+ symbol: "GHO",
3452
+ name: "Gho Token",
3453
+ decimals: 18,
3454
+ address: "0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f",
3455
+ chainKey: ChainKeys.ETHEREUM_MAINNET,
3456
+ hubAsset: "0x2fd90bac66fba110650ce4ba4065c4fc668d10e0",
3457
+ vault: "0x2fd90bac66fba110650ce4ba4065c4fc668d10e0"
3458
+ },
3459
+ USDG: {
3460
+ symbol: "USDG",
3461
+ name: "Global Dollar",
3462
+ decimals: 6,
3463
+ address: "0xe343167631d89B6Ffc58B88d6b7fB0228795491D",
3464
+ chainKey: ChainKeys.ETHEREUM_MAINNET,
3465
+ hubAsset: "0xd7acf8c1125143f9c58fc17879742114639f54bb",
3466
+ vault: "0xd7acf8c1125143f9c58fc17879742114639f54bb"
3467
+ },
3468
+ LIT: {
3469
+ symbol: "LIT",
3470
+ name: "Lighter",
3471
+ decimals: 18,
3472
+ address: "0x232CE3bd40fCd6f80f3d55A522d03f25Df784Ee2",
3473
+ chainKey: ChainKeys.ETHEREUM_MAINNET,
3474
+ hubAsset: "0x081e274ec570bdb023f1b41c54df0f3f73da8924",
3475
+ vault: "0x081e274ec570bdb023f1b41c54df0f3f73da8924"
3020
3476
  }
3021
3477
  };
3022
3478
  var kaiaSupportedTokens = {
@@ -3331,6 +3787,116 @@ var hederaSupportedTokens = {
3331
3787
  chainKey: ChainKeys.HEDERA_MAINNET,
3332
3788
  hubAsset: "0x914672C5336f5E00126e431368005f7C22aCe952",
3333
3789
  vault: SodaTokens.SLV.address
3790
+ },
3791
+ GOOGL: {
3792
+ symbol: "GOOGL",
3793
+ isRwa: true,
3794
+ name: "Alphabet Class A",
3795
+ decimals: 8,
3796
+ address: "0x0000000000000000000000000000000000a605ce",
3797
+ chainKey: ChainKeys.HEDERA_MAINNET,
3798
+ hubAsset: "0xA4942e1edE99034b11657C8a0978f8E2342980b4",
3799
+ vault: SodaTokens.GOOGL.address
3800
+ },
3801
+ AMZN: {
3802
+ symbol: "AMZN",
3803
+ isRwa: true,
3804
+ name: "Amazon",
3805
+ decimals: 8,
3806
+ address: "0x0000000000000000000000000000000000a605d0",
3807
+ chainKey: ChainKeys.HEDERA_MAINNET,
3808
+ hubAsset: "0x13E3E4eaaa02bbD0A32094c6C7078D4ABa24cd04",
3809
+ vault: SodaTokens.AMZN.address
3810
+ },
3811
+ MSFT: {
3812
+ symbol: "MSFT",
3813
+ isRwa: true,
3814
+ name: "Microsoft",
3815
+ decimals: 8,
3816
+ address: "0x0000000000000000000000000000000000a605d2",
3817
+ chainKey: ChainKeys.HEDERA_MAINNET,
3818
+ hubAsset: "0x5b9838715bbeFF2E8752961C418f64CAB3e7B2eD",
3819
+ vault: SodaTokens.MSFT.address
3820
+ },
3821
+ META: {
3822
+ symbol: "META",
3823
+ isRwa: true,
3824
+ name: "Meta",
3825
+ decimals: 8,
3826
+ address: "0x0000000000000000000000000000000000a605d3",
3827
+ chainKey: ChainKeys.HEDERA_MAINNET,
3828
+ hubAsset: "0xbe8a7cAFABe2399b4d751A5545017cc09D83FFc9",
3829
+ vault: SodaTokens.META.address
3830
+ },
3831
+ CRCL: {
3832
+ symbol: "CRCL",
3833
+ isRwa: true,
3834
+ name: "Circle",
3835
+ decimals: 8,
3836
+ address: "0x0000000000000000000000000000000000a605d4",
3837
+ chainKey: ChainKeys.HEDERA_MAINNET,
3838
+ hubAsset: "0x13c16a6a19a637fBf370CcA8d7f4bD38d207b620",
3839
+ vault: SodaTokens.CRCL.address
3840
+ },
3841
+ COIN: {
3842
+ symbol: "COIN",
3843
+ isRwa: true,
3844
+ name: "Coinbase",
3845
+ decimals: 8,
3846
+ address: "0x0000000000000000000000000000000000a605d6",
3847
+ chainKey: ChainKeys.HEDERA_MAINNET,
3848
+ hubAsset: "0x4d82303a0cf66f3D98E8140a1668567E748685De",
3849
+ vault: SodaTokens.COIN.address
3850
+ },
3851
+ PLTR: {
3852
+ symbol: "PLTR",
3853
+ isRwa: true,
3854
+ name: "Palantir",
3855
+ decimals: 8,
3856
+ address: "0x0000000000000000000000000000000000a605d7",
3857
+ chainKey: ChainKeys.HEDERA_MAINNET,
3858
+ hubAsset: "0xEC98d565853064667Ec5512bc6B7183D54b9EF40",
3859
+ vault: SodaTokens.PLTR.address
3860
+ },
3861
+ TSM: {
3862
+ symbol: "TSM",
3863
+ isRwa: true,
3864
+ name: "Taiwan Semiconductor",
3865
+ decimals: 8,
3866
+ address: "0x0000000000000000000000000000000000a605d9",
3867
+ chainKey: ChainKeys.HEDERA_MAINNET,
3868
+ hubAsset: "0x87FB178434B5832Df1Defa3E3E51dA3e4F1ECb10",
3869
+ vault: SodaTokens.TSM.address
3870
+ },
3871
+ AMD: {
3872
+ symbol: "AMD",
3873
+ isRwa: true,
3874
+ name: "AMD",
3875
+ decimals: 8,
3876
+ address: "0x0000000000000000000000000000000000a605db",
3877
+ chainKey: ChainKeys.HEDERA_MAINNET,
3878
+ hubAsset: "0x26b9C3af52e764b8362cDD273b443E576F960e36",
3879
+ vault: SodaTokens.AMD.address
3880
+ },
3881
+ INTC: {
3882
+ symbol: "INTC",
3883
+ isRwa: true,
3884
+ name: "Intel",
3885
+ decimals: 8,
3886
+ address: "0x0000000000000000000000000000000000a605dc",
3887
+ chainKey: ChainKeys.HEDERA_MAINNET,
3888
+ hubAsset: "0xb4Fe614a0566e64A0352645485BB4EbCaf8F3a9E",
3889
+ vault: SodaTokens.INTC.address
3890
+ },
3891
+ BABA: {
3892
+ symbol: "BABA",
3893
+ isRwa: true,
3894
+ name: "Alibaba",
3895
+ decimals: 8,
3896
+ address: "0x0000000000000000000000000000000000a605dd",
3897
+ chainKey: ChainKeys.HEDERA_MAINNET,
3898
+ hubAsset: "0x5e69df859F7c2b170E5fdAdbD59d06C2CD287753",
3899
+ vault: SodaTokens.BABA.address
3334
3900
  }
3335
3901
  };
3336
3902
  var robinhoodSupportedTokens = {
@@ -3504,6 +4070,125 @@ var robinhoodSupportedTokens = {
3504
4070
  chainKey: ChainKeys.ROBINHOOD_MAINNET,
3505
4071
  hubAsset: "0x17348849806c8b1b5d1d3abbcb527d05d21d09d5",
3506
4072
  vault: SodaTokens.SLV.address
4073
+ },
4074
+ GOOGL: {
4075
+ symbol: "GOOGL",
4076
+ isRwa: true,
4077
+ name: "Alphabet Class A",
4078
+ decimals: 18,
4079
+ address: "0x2e0847E8910a9732eB3fb1bb4b70a580ADAD4FE3",
4080
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4081
+ hubAsset: "0xb99725463347b57cb6b38e3670e79bae68361178",
4082
+ vault: SodaTokens.GOOGL.address
4083
+ },
4084
+ AMZN: {
4085
+ symbol: "AMZN",
4086
+ isRwa: true,
4087
+ name: "Amazon",
4088
+ decimals: 18,
4089
+ address: "0x12f190a9F9d7D37a250758b26824B97CE941bF54",
4090
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4091
+ hubAsset: "0x191b01f7816f927eede6603bae14979a80880f2e",
4092
+ vault: SodaTokens.AMZN.address
4093
+ },
4094
+ MSFT: {
4095
+ symbol: "MSFT",
4096
+ isRwa: true,
4097
+ name: "Microsoft",
4098
+ decimals: 18,
4099
+ address: "0xe93237C50D904957Cf27E7B1133b510C669c2e74",
4100
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4101
+ hubAsset: "0x54cd74d27c647cccc7d151c198a82a8f3371ca35",
4102
+ vault: SodaTokens.MSFT.address
4103
+ },
4104
+ META: {
4105
+ symbol: "META",
4106
+ isRwa: true,
4107
+ name: "Meta",
4108
+ decimals: 18,
4109
+ address: "0xc0D6457C16Cc70d6790Dd43521C899C87ce02f35",
4110
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4111
+ hubAsset: "0xf5661eefaebb0ed9f33c543fa606ad77646eb1f9",
4112
+ vault: SodaTokens.META.address
4113
+ },
4114
+ CRCL: {
4115
+ symbol: "CRCL",
4116
+ isRwa: true,
4117
+ name: "Circle",
4118
+ decimals: 18,
4119
+ address: "0xdF0992E440dD0be65BD8439b609d6D4366bf1CB5",
4120
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4121
+ hubAsset: "0x18f4018af0bf9fc42cbf8c0b458a838bc2dccf43",
4122
+ vault: SodaTokens.CRCL.address
4123
+ },
4124
+ COIN: {
4125
+ symbol: "COIN",
4126
+ isRwa: true,
4127
+ name: "Coinbase",
4128
+ decimals: 18,
4129
+ address: "0x6330D8C3178a418788dF01a47479c0ce7CCF450b",
4130
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4131
+ hubAsset: "0x91789d24454c40c753bdd5bc7ada7bb91848d13c",
4132
+ vault: SodaTokens.COIN.address
4133
+ },
4134
+ PLTR: {
4135
+ symbol: "PLTR",
4136
+ isRwa: true,
4137
+ name: "Palantir",
4138
+ decimals: 18,
4139
+ address: "0x894E1EC2D74FFE5AEF8Dc8A9e84686acCB964F2A",
4140
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4141
+ hubAsset: "0x99864e96d71860e6e5d25887a10da823685af1ee",
4142
+ vault: SodaTokens.PLTR.address
4143
+ },
4144
+ TSM: {
4145
+ symbol: "TSM",
4146
+ isRwa: true,
4147
+ name: "Taiwan Semiconductor",
4148
+ decimals: 18,
4149
+ address: "0x58FfE4a942d3885bAa22D7520691F611EF09e7AA",
4150
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4151
+ hubAsset: "0x5912b35ed196b129f4ad36ffd8717f2913df09bf",
4152
+ vault: SodaTokens.TSM.address
4153
+ },
4154
+ AMD: {
4155
+ symbol: "AMD",
4156
+ isRwa: true,
4157
+ name: "AMD",
4158
+ decimals: 18,
4159
+ address: "0x86923f96303D656E4aa86D9d42D1e57ad2023fdC",
4160
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4161
+ hubAsset: "0x433d44c65f20e4a776aed6c23838739d3155a692",
4162
+ vault: SodaTokens.AMD.address
4163
+ },
4164
+ INTC: {
4165
+ symbol: "INTC",
4166
+ isRwa: true,
4167
+ name: "Intel",
4168
+ decimals: 18,
4169
+ address: "0xc72b96e0E48ecd4DC75E1e45396e26300BC39681",
4170
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4171
+ hubAsset: "0xd20c60e725317c7873964a6b1d345b2507526e59",
4172
+ vault: SodaTokens.INTC.address
4173
+ },
4174
+ BABA: {
4175
+ symbol: "BABA",
4176
+ isRwa: true,
4177
+ name: "Alibaba",
4178
+ decimals: 18,
4179
+ address: "0xad25Ac6C84D497db898fa1E8387bf6Af3532a1c4",
4180
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4181
+ hubAsset: "0xf721a074bd9fc05ba1f7cb432149a74acfb49d73",
4182
+ vault: SodaTokens.BABA.address
4183
+ },
4184
+ PONS: {
4185
+ symbol: "PONS",
4186
+ name: "Pons",
4187
+ decimals: 18,
4188
+ address: "0x39dBED3a2bd333467115dE45665cC57F813C4571",
4189
+ chainKey: ChainKeys.ROBINHOOD_MAINNET,
4190
+ hubAsset: "0x9cf6640c73dd4c278cfa08a8b8773e7b22420582",
4191
+ vault: "0x9cf6640c73dd4c278cfa08a8b8773e7b22420582"
3507
4192
  }
3508
4193
  };
3509
4194
  var stacksSupportedTokens = {
@@ -4342,6 +5027,66 @@ var spokeChainConfig = {
4342
5027
  assetCode: "SLV",
4343
5028
  contractId: "CBY3U32O5T2B555HNJLX6C6HW3O2FLRSJGH472UOOHT6H6ZMGMSSZTLW",
4344
5029
  assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5030
+ },
5031
+ {
5032
+ assetCode: "GOOGL",
5033
+ contractId: "CCZLQHO22HLQARS26KNSJ4DU3FCFG45VG6RZQOQDQ4MHTSUVGRX57VWD",
5034
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5035
+ },
5036
+ {
5037
+ assetCode: "AMZN",
5038
+ contractId: "CBN6JFMCVKXOIRRERGPH7CGY7RIIHGRLVSFJCD3KBMYSUEZAQR3MJ7TF",
5039
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5040
+ },
5041
+ {
5042
+ assetCode: "MSFT",
5043
+ contractId: "CA53FXC2RF3BNIGLCPE3PNS3SZ2AONVRKH46AIHPEJOA54LGI2DYSOAD",
5044
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5045
+ },
5046
+ {
5047
+ assetCode: "META",
5048
+ contractId: "CA4AXIRO72PC566XUIYVN2365347I7TVGYULXW7QDVCIXBOEFFRXGP67",
5049
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5050
+ },
5051
+ {
5052
+ assetCode: "CRCL",
5053
+ contractId: "CDMRGHCY23UVTFYYW6U2NBYGME2VVPDO6OJXLZMM7FNGVFX3V42SAA4C",
5054
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5055
+ },
5056
+ {
5057
+ assetCode: "COIN",
5058
+ contractId: "CAKCNNQFIYAQBU7RXWPW3ZH4IWDXGMXUB6WTGCEZSI2EZ6WSTCCCEFHO",
5059
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5060
+ },
5061
+ {
5062
+ assetCode: "PLTR",
5063
+ contractId: "CC3EVVVQAB2BZFAJHPZWVRANTVVS37OJXNJKR2DVPAMG5FOYRPIIGCEV",
5064
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5065
+ },
5066
+ {
5067
+ assetCode: "TSM",
5068
+ contractId: "CBZFBO44J4RSRZZ7PT7BHLLID6L7C4HL77YLVFCNIIXZQKVLNL6VEAD6",
5069
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5070
+ },
5071
+ {
5072
+ assetCode: "AMD",
5073
+ contractId: "CCIE4OXPJUPLNRLGAENNSDEZTQUXTXKAPU322Z3HMATZSR2S2DAAGYQD",
5074
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5075
+ },
5076
+ {
5077
+ assetCode: "INTC",
5078
+ contractId: "CBD7GPTTHNFWBX7CYOM7O3N2TCZIAYT6FT4LCAXKX4JCZ3ZJL2IF7E4B",
5079
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5080
+ },
5081
+ {
5082
+ assetCode: "BABA",
5083
+ contractId: "CDARDTMGSEXTYJDSKDEAA52DCYX3OZEP7SOLSF5CT3QSSAGBETWH7LO3",
5084
+ assetIssuer: "GDYUTHY75A7WUZJQDPOP66FB32BOYGZRXHWTWO4Q6LQTANT5X3V5HNFA"
5085
+ },
5086
+ {
5087
+ assetCode: "EURC",
5088
+ contractId: "CDTKPWPLOURQA2SGTKTUQOWRCBZEORB4BWBOMJ3D3ZTQQSGE5F6JBQLV",
5089
+ assetIssuer: "GDHU6WRG4IEQXM5NZ4BMPKOXHW76MZM4Y2IEMFDVXBSDP6SJY4ITNPP2"
4345
5090
  }
4346
5091
  ],
4347
5092
  supportedTokens: stellarSupportedTokens,
@@ -5038,7 +5783,18 @@ var swapSupportedTokens = {
5038
5783
  SodaTokens.QQQ,
5039
5784
  SodaTokens.SGOV,
5040
5785
  SodaTokens.USO,
5041
- SodaTokens.SLV
5786
+ SodaTokens.SLV,
5787
+ SodaTokens.GOOGL,
5788
+ SodaTokens.AMZN,
5789
+ SodaTokens.MSFT,
5790
+ SodaTokens.META,
5791
+ SodaTokens.CRCL,
5792
+ SodaTokens.COIN,
5793
+ SodaTokens.PLTR,
5794
+ SodaTokens.TSM,
5795
+ SodaTokens.AMD,
5796
+ SodaTokens.INTC,
5797
+ SodaTokens.BABA
5042
5798
  ],
5043
5799
  [ChainKeys.AVALANCHE_MAINNET]: [
5044
5800
  spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.AVAX,
@@ -5046,7 +5802,8 @@ var swapSupportedTokens = {
5046
5802
  spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.USDC,
5047
5803
  spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.bnUSD,
5048
5804
  spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.SODA,
5049
- spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.WETHe
5805
+ spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.WETHe,
5806
+ spokeChainConfig[ChainKeys.AVALANCHE_MAINNET].supportedTokens.BTCb
5050
5807
  ],
5051
5808
  [ChainKeys.ARBITRUM_MAINNET]: [
5052
5809
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.ETH,
@@ -5065,7 +5822,10 @@ var swapSupportedTokens = {
5065
5822
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.CRV,
5066
5823
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.PENDLE,
5067
5824
  spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.rETH,
5068
- spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.SODA
5825
+ spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.SODA,
5826
+ spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.cbBTC,
5827
+ spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.GMX,
5828
+ spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.DAI
5069
5829
  // spokeChainConfig[ChainKeys.ARBITRUM_MAINNET].supportedTokens.USDS, // NOTE: Not Implemented
5070
5830
  ],
5071
5831
  [ChainKeys.BASE_MAINNET]: [
@@ -5077,7 +5837,9 @@ var swapSupportedTokens = {
5077
5837
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.cbBTC,
5078
5838
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.VIRTUAL,
5079
5839
  spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.cbETH,
5080
- spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.SODA
5840
+ spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.SODA,
5841
+ spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.EURC,
5842
+ spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.MORPHO
5081
5843
  // spokeChainConfig[ChainKeys.BASE_MAINNET].supportedTokens.USDS, // NOTE: Not Implemented
5082
5844
  ],
5083
5845
  [ChainKeys.OPTIMISM_MAINNET]: [
@@ -5119,7 +5881,8 @@ var swapSupportedTokens = {
5119
5881
  spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.DOGE,
5120
5882
  spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.SOL,
5121
5883
  spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.DOT,
5122
- spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.LINK
5884
+ spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.LINK,
5885
+ spokeChainConfig[ChainKeys.BSC_MAINNET].supportedTokens.UNI
5123
5886
  ],
5124
5887
  [ChainKeys.HYPEREVM_MAINNET]: [
5125
5888
  spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.HYPE,
@@ -5130,7 +5893,8 @@ var swapSupportedTokens = {
5130
5893
  spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.UBTC,
5131
5894
  spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.UETH,
5132
5895
  spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.kHYPE,
5133
- spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.USDH
5896
+ spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.USDH,
5897
+ spokeChainConfig[ChainKeys.HYPEREVM_MAINNET].supportedTokens.USOL
5134
5898
  ],
5135
5899
  [ChainKeys.LIGHTLINK_MAINNET]: [
5136
5900
  spokeChainConfig[ChainKeys.LIGHTLINK_MAINNET].supportedTokens.ETH,
@@ -5170,7 +5934,17 @@ var swapSupportedTokens = {
5170
5934
  spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.QQQx,
5171
5935
  spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.MSTRx,
5172
5936
  spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.COINx,
5173
- spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.GOOGLx
5937
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.GOOGLx,
5938
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.PUMP,
5939
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.ETH,
5940
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.USD1,
5941
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.cbBTC,
5942
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.PYUSD,
5943
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.JLP,
5944
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.USDG,
5945
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.JupUSD,
5946
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.USDe,
5947
+ spokeChainConfig[ChainKeys.SOLANA_MAINNET].supportedTokens.USELESS
5174
5948
  ],
5175
5949
  [ChainKeys.ICON_MAINNET]: [
5176
5950
  spokeChainConfig[ChainKeys.ICON_MAINNET].supportedTokens.ICX,
@@ -5213,7 +5987,19 @@ var swapSupportedTokens = {
5213
5987
  spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.QQQ,
5214
5988
  spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.SGOV,
5215
5989
  spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.USO,
5216
- spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.SLV
5990
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.SLV,
5991
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.GOOGL,
5992
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.AMZN,
5993
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.MSFT,
5994
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.META,
5995
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.CRCL,
5996
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.COIN,
5997
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.PLTR,
5998
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.TSM,
5999
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.AMD,
6000
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.INTC,
6001
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.BABA,
6002
+ spokeChainConfig[ChainKeys.STELLAR_MAINNET].supportedTokens.EURC
5217
6003
  ],
5218
6004
  [ChainKeys.SUI_MAINNET]: [
5219
6005
  spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.SUI,
@@ -5229,7 +6015,9 @@ var swapSupportedTokens = {
5229
6015
  spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.trevinSUI,
5230
6016
  spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.DEEP,
5231
6017
  spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.WAL,
5232
- spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.NAVX
6018
+ spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.NAVX,
6019
+ spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.USDsui,
6020
+ spokeChainConfig[ChainKeys.SUI_MAINNET].supportedTokens.WBTC
5233
6021
  ],
5234
6022
  [ChainKeys.INJECTIVE_MAINNET]: [
5235
6023
  spokeChainConfig[ChainKeys.INJECTIVE_MAINNET].supportedTokens.INJ,
@@ -5241,7 +6029,8 @@ var swapSupportedTokens = {
5241
6029
  spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.bnUSD,
5242
6030
  spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.SODA,
5243
6031
  spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.USDC,
5244
- spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.USDT
6032
+ spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.USDT,
6033
+ spokeChainConfig[ChainKeys.NEAR_MAINNET].supportedTokens.ZEC
5245
6034
  ],
5246
6035
  [ChainKeys.BITCOIN_MAINNET]: [
5247
6036
  spokeChainConfig[ChainKeys.BITCOIN_MAINNET].supportedTokens.BTC
@@ -5270,7 +6059,10 @@ var swapSupportedTokens = {
5270
6059
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USD1,
5271
6060
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.DAI,
5272
6061
  spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.cbBTC,
5273
- spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.rETH
6062
+ spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.rETH,
6063
+ spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.GHO,
6064
+ spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDG,
6065
+ spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.LIT
5274
6066
  // spokeChainConfig[ChainKeys.ETHEREUM_MAINNET].supportedTokens.USDS, // NOTE: Not Implemented
5275
6067
  ],
5276
6068
  [ChainKeys.REDBELLY_MAINNET]: [
@@ -5333,7 +6125,18 @@ var swapSupportedTokens = {
5333
6125
  spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.QQQ,
5334
6126
  spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SGOV,
5335
6127
  spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.USO,
5336
- spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SLV
6128
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.SLV,
6129
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.GOOGL,
6130
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.AMZN,
6131
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.MSFT,
6132
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.META,
6133
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.CRCL,
6134
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.COIN,
6135
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.PLTR,
6136
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.TSM,
6137
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.AMD,
6138
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.INTC,
6139
+ spokeChainConfig[ChainKeys.HEDERA_MAINNET].supportedTokens.BABA
5337
6140
  ],
5338
6141
  [ChainKeys.ROBINHOOD_MAINNET]: [
5339
6142
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.ETH,
@@ -5354,7 +6157,19 @@ var swapSupportedTokens = {
5354
6157
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.QQQ,
5355
6158
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.SGOV,
5356
6159
  spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.USO,
5357
- spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.SLV
6160
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.SLV,
6161
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.GOOGL,
6162
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.AMZN,
6163
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.MSFT,
6164
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.META,
6165
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.CRCL,
6166
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.COIN,
6167
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.PLTR,
6168
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.TSM,
6169
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.AMD,
6170
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.INTC,
6171
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.BABA,
6172
+ spokeChainConfig[ChainKeys.ROBINHOOD_MAINNET].supportedTokens.PONS
5358
6173
  ]
5359
6174
  };
5360
6175
  var stagingSwapSupportedTokens = {
@@ -5699,7 +6514,7 @@ function isValidWalletProviderForChainKey(chainKey, walletProvider) {
5699
6514
  }
5700
6515
 
5701
6516
  // ../types/dist/index.js
5702
- var CONFIG_VERSION = 2020006;
6517
+ var CONFIG_VERSION = 2020008;
5703
6518
  var RC_STABLE = 99;
5704
6519
  var MIN_CONFIG_VERSION = 1e6;
5705
6520
  var MAX_CONFIG_VERSION = 99999999;
@@ -5952,12 +6767,12 @@ function canonicalizeBitcoinAddress(address) {
5952
6767
  }
5953
6768
  }
5954
6769
  function normalizePsbtToBase64(signedPsbt) {
5955
- const isHex2 = /^[0-9a-fA-F]+$/.test(signedPsbt);
5956
- return isHex2 ? Buffer.from(signedPsbt, "hex").toString("base64") : signedPsbt;
6770
+ const isHex3 = /^[0-9a-fA-F]+$/.test(signedPsbt);
6771
+ return isHex3 ? Buffer.from(signedPsbt, "hex").toString("base64") : signedPsbt;
5957
6772
  }
5958
6773
  function normalizeSignatureToBase64(signature) {
5959
- const isHex2 = /^[0-9a-fA-F]+$/.test(signature);
5960
- return isHex2 ? Buffer.from(signature, "hex").toString("base64") : signature;
6774
+ const isHex3 = /^[0-9a-fA-F]+$/.test(signature);
6775
+ return isHex3 ? Buffer.from(signature, "hex").toString("base64") : signature;
5961
6776
  }
5962
6777
  function isNativeBitcoinTransfer(config, chainKey, token) {
5963
6778
  return isBitcoinChainKeyType(chainKey) && !!token && isNativeBitcoinToken(config.getChainConfig(chainKey), token.address);
@@ -15773,10 +16588,12 @@ var ConfigService = class {
15773
16588
  get bridgeUseBackendSubmitTx() {
15774
16589
  return this.bridge.useBackendSubmitTx ?? this.sodax.bridgeOptions?.useBackendSubmitTx ?? true;
15775
16590
  }
15776
- // Opt-in (default OFF), unlike the swaps/bridge toggles above: the leverage-yield submit-tx
15777
- // backend path is newer, so an omitted flag keeps the proven client-side relay.
16591
+ // Same ON default as the two above, and for the same reason: any backend non-success falls back
16592
+ // to the client-side relay, so the default costs a rejected attempt at worst. No deprecated
16593
+ // second-precedence key here — leverage yield arrived after `swapsOptions` / `bridgeOptions` were
16594
+ // already deprecated, so it never had one.
15778
16595
  get leverageYieldUseBackendSubmitTx() {
15779
- return this.leverageYield.useBackendSubmitTx ?? false;
16596
+ return this.leverageYield.useBackendSubmitTx ?? true;
15780
16597
  }
15781
16598
  get dex() {
15782
16599
  return this.sodax.dex;
@@ -29083,6 +29900,39 @@ var EvmHubProvider = class {
29083
29900
  }
29084
29901
  };
29085
29902
 
29903
+ // src/backendApi/detailedStatusRouting.ts
29904
+ var DETAILED_STATUS_NOT_DELIVERED = "relay_not_delivered";
29905
+ function isBackendSubmitTxAbandoned(data) {
29906
+ return data.status === "failed" || Boolean(data.abandonedAt);
29907
+ }
29908
+ async function resolveDeliveredPacket(params) {
29909
+ const { srcChainKey, srcTxHash, relayerApiEndpoint, backendAnswered } = params;
29910
+ const relayChainId = getIntentRelayChainId(srcChainKey);
29911
+ const packets = await getTransactionPackets(
29912
+ { action: "get_transaction_packets", params: { chain_id: relayChainId.toString(), tx_hash: srcTxHash } },
29913
+ relayerApiEndpoint,
29914
+ RELAY_REQUEST_TIMEOUT_MS
29915
+ );
29916
+ if (!packets.ok) {
29917
+ const notIndexed = packets.error instanceof HttpRelayError && packets.error.status === 404;
29918
+ return { ok: false, cause: packets.error, budgetable: notIndexed && backendAnswered };
29919
+ }
29920
+ if (!packets.value?.success || !Array.isArray(packets.value.data)) {
29921
+ return { ok: false, cause: new Error("relay returned no usable transaction packets"), budgetable: false };
29922
+ }
29923
+ const delivered = packets.value.data.find(
29924
+ (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
29925
+ );
29926
+ if (!delivered) {
29927
+ return {
29928
+ ok: false,
29929
+ cause: new Error("relay has not delivered a packet for this source tx yet"),
29930
+ budgetable: backendAnswered
29931
+ };
29932
+ }
29933
+ return { ok: true, packet: delivered };
29934
+ }
29935
+
29086
29936
  // src/backendApi/api-utils.ts
29087
29937
  var API_KEY_HEADER = "x-api-key";
29088
29938
  function apiKeyHeader(apiKey) {
@@ -29707,12 +30557,6 @@ function estimateSwapSpeedTier({ srcToken, dstToken }, isSodaAssetRelated) {
29707
30557
  return { tier: secondsToTier(estimatedSeconds), estimatedSeconds };
29708
30558
  }
29709
30559
 
29710
- // src/swap/detailedStatus.ts
29711
- var DETAILED_STATUS_NOT_DELIVERED = "relay_not_delivered";
29712
- function isBackendSubmitTxAbandoned(data) {
29713
- return data.status === "failed" || Boolean(data.abandonedAt);
29714
- }
29715
-
29716
30560
  // src/swap/errors.ts
29717
30561
  var swapInvariant = createInvariant("swap");
29718
30562
  var POST_EXECUTION_ERROR_CODES = /* @__PURE__ */ new Set([
@@ -29916,6 +30760,14 @@ var SwapService = class {
29916
30760
  if (record.ok && record.value.success && !isBackendSubmitTxAbandoned(record.value.data)) {
29917
30761
  return { ok: true, value: { source: "backend", data: record.value.data } };
29918
30762
  }
30763
+ if (!record.ok && isSodaxError(record.error) && isAuthFailure(record.error)) {
30764
+ return {
30765
+ ok: false,
30766
+ error: this.detailedStatusLookupFailed(record.error, params.srcChainKey, {
30767
+ status: record.error.context?.status
30768
+ })
30769
+ };
30770
+ }
29919
30771
  const backendAnswered = record.ok || isSodaxError(record.error) && record.error.context?.status === 404;
29920
30772
  const dstTxHash = await this.resolveHubTxHash(params, backendAnswered);
29921
30773
  if (!dstTxHash.ok) return dstTxHash;
@@ -29937,48 +30789,23 @@ var SwapService = class {
29937
30789
  * is simply "no hash yet".
29938
30790
  */
29939
30791
  async resolveHubTxHash(key, backendAnswered) {
29940
- const missReason = backendAnswered ? DETAILED_STATUS_NOT_DELIVERED : void 0;
29941
30792
  let hubTxHash = key.srcTxHash;
29942
30793
  if (!isHubChainKeyType(key.srcChainKey)) {
29943
- const relayChainId = getIntentRelayChainId(key.srcChainKey);
29944
- const packets = await getTransactionPackets(
29945
- {
29946
- action: "get_transaction_packets",
29947
- params: { chain_id: relayChainId.toString(), tx_hash: key.srcTxHash }
29948
- },
29949
- this.relayerApiEndpoint,
29950
- RELAY_REQUEST_TIMEOUT_MS
29951
- );
29952
- if (!packets.ok) {
29953
- const notIndexed = packets.error instanceof HttpRelayError && packets.error.status === 404;
29954
- return {
29955
- ok: false,
29956
- error: this.detailedStatusLookupFailed(packets.error, key.srcChainKey, notIndexed ? missReason : void 0)
29957
- };
29958
- }
29959
- if (!packets.value?.success || !Array.isArray(packets.value.data)) {
29960
- return {
29961
- ok: false,
29962
- error: this.detailedStatusLookupFailed(
29963
- new Error("relay returned no usable transaction packets"),
29964
- key.srcChainKey
29965
- )
29966
- };
29967
- }
29968
- const delivered = packets.value.data.find(
29969
- (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
29970
- );
29971
- if (!delivered) {
30794
+ const delivered = await resolveDeliveredPacket({
30795
+ srcChainKey: key.srcChainKey,
30796
+ srcTxHash: key.srcTxHash,
30797
+ relayerApiEndpoint: this.relayerApiEndpoint,
30798
+ backendAnswered
30799
+ });
30800
+ if (!delivered.ok) {
29972
30801
  return {
29973
30802
  ok: false,
29974
- error: this.detailedStatusLookupFailed(
29975
- new Error("relay has not delivered the intent to the hub yet"),
29976
- key.srcChainKey,
29977
- missReason
29978
- )
30803
+ error: this.detailedStatusLookupFailed(delivered.cause, key.srcChainKey, {
30804
+ reason: delivered.budgetable ? DETAILED_STATUS_NOT_DELIVERED : void 0
30805
+ })
29979
30806
  };
29980
30807
  }
29981
- hubTxHash = delivered.dst_tx_hash;
30808
+ hubTxHash = delivered.packet.dst_tx_hash;
29982
30809
  }
29983
30810
  if (viem.isHex(hubTxHash)) return { ok: true, value: hubTxHash };
29984
30811
  return {
@@ -29992,10 +30819,12 @@ var SwapService = class {
29992
30819
  /**
29993
30820
  * `reason` is set only for {@link DETAILED_STATUS_NOT_DELIVERED} — the miss a caller can bound
29994
30821
  * with a retry budget. Leaving it off marks a dependency that is failing right now, which a
29995
- * caller should keep retrying rather than give up on.
30822
+ * caller should keep retrying rather than give up on. `status` is lifted for a rejected key so
30823
+ * `isAuthFailure` recognises the wrapped error; it reads `context.status` and does not walk the
30824
+ * cause chain.
29996
30825
  */
29997
- detailedStatusLookupFailed(cause, srcChainKey, reason) {
29998
- return lookupFailed("swap", "getDetailedStatus", cause, { srcChainKey, action: "swap", reason });
30826
+ detailedStatusLookupFailed(cause, srcChainKey, extra) {
30827
+ return lookupFailed("swap", "getDetailedStatus", cause, { srcChainKey, action: "swap", ...extra });
29999
30828
  }
30000
30829
  /**
30001
30830
  * Notifies the solver API that an intent has been registered on the hub chain, triggering
@@ -35606,6 +36435,80 @@ var BridgeService = class {
35606
36435
  }
35607
36436
  return encodeContractCalls(calls);
35608
36437
  }
36438
+ /**
36439
+ * Answers "what is the status of this bridge?" from the **source-chain** tx — the one identifier a
36440
+ * caller always holds. It does not define a new status: it routes to whichever of the two existing
36441
+ * sources can answer, and returns that source's payload unmodified.
36442
+ *
36443
+ * `sodax.api.bridge.getSubmitTxStatus` cannot answer for every bridge. Sometimes there is no
36444
+ * record — `useBackendSubmitTx: false`, or the submit itself never landed. More often the record
36445
+ * exists but is stale: the backend path POSTs the tx first and only falls back to the client-side
36446
+ * relay once that stalls, so a fallback-completed bridge leaves behind whatever state the backend
36447
+ * last reached, including a record it abandoned outright. Neither shape reflects what happened.
36448
+ *
36449
+ * 1. Read the backend record; return it while it is still in play.
36450
+ * 2. Otherwise return the delivered relay packet, which is terminal by construction.
36451
+ *
36452
+ * A rejected API key is the one failure that does **not** fall through to step 2: the status route
36453
+ * is key-guarded, so degrading would bury a 401/403 behind a relay error and leave a poller
36454
+ * retrying a request only a corrected key can satisfy. It surfaces with `context.status` instead,
36455
+ * which is what `isAuthFailure` reads.
36456
+ *
36457
+ * A point-in-time read; poll it yourself, or use dapp-kit's `useBridgeDetailedStatus`.
36458
+ *
36459
+ * @param params - `srcChainKey` and `srcTxHash` of the source-chain bridge transaction.
36460
+ * @param config - Optional per-request override for the backend read (e.g. a per-action API key).
36461
+ * The relay leg is unauthenticated and takes none.
36462
+ * @returns A `Result` containing a {@link DetailedBridgeStatus}. Fails with `LOOKUP_FAILED` when no
36463
+ * source can answer yet — usually the relay has not delivered the packet. Branch on
36464
+ * `error.context.reason`: `DETAILED_STATUS_NOT_DELIVERED` is the ambiguous miss a caller should
36465
+ * bound with a retry budget; anything else is a dependency failing right now, so keep retrying.
36466
+ */
36467
+ async getDetailedStatus(params, config) {
36468
+ try {
36469
+ const record = await this.backendApi.bridge.getSubmitTxStatus(
36470
+ { txHash: params.srcTxHash, srcChainKey: params.srcChainKey },
36471
+ config
36472
+ );
36473
+ if (record.ok && record.value.success && !isBackendSubmitTxAbandoned(record.value.data)) {
36474
+ return { ok: true, value: { source: "backend", data: record.value.data } };
36475
+ }
36476
+ if (!record.ok && isSodaxError(record.error) && isAuthFailure(record.error)) {
36477
+ return {
36478
+ ok: false,
36479
+ error: this.detailedStatusLookupFailed(record.error, params.srcChainKey, {
36480
+ status: record.error.context?.status
36481
+ })
36482
+ };
36483
+ }
36484
+ const backendAnswered = record.ok || isSodaxError(record.error) && record.error.context?.status === 404;
36485
+ const delivered = await resolveDeliveredPacket({
36486
+ srcChainKey: params.srcChainKey,
36487
+ srcTxHash: params.srcTxHash,
36488
+ relayerApiEndpoint: this.config.relay.relayerApiEndpoint,
36489
+ backendAnswered
36490
+ });
36491
+ if (!delivered.ok) {
36492
+ return {
36493
+ ok: false,
36494
+ error: this.detailedStatusLookupFailed(delivered.cause, params.srcChainKey, {
36495
+ reason: delivered.budgetable ? DETAILED_STATUS_NOT_DELIVERED : void 0
36496
+ })
36497
+ };
36498
+ }
36499
+ return { ok: true, value: { source: "relay", data: delivered.packet } };
36500
+ } catch (error) {
36501
+ return { ok: false, error: this.detailedStatusLookupFailed(error, params.srcChainKey) };
36502
+ }
36503
+ }
36504
+ /**
36505
+ * `reason` is set only for {@link DETAILED_STATUS_NOT_DELIVERED} — the miss a caller can bound with
36506
+ * a retry budget. `status` is lifted for a rejected key so `isAuthFailure` recognises the wrapped
36507
+ * error; it reads `context.status` and does not walk the cause chain.
36508
+ */
36509
+ detailedStatusLookupFailed(cause, srcChainKey, extra) {
36510
+ return lookupFailed("bridge", "getDetailedStatus", cause, { srcChainKey, action: "bridge", ...extra });
36511
+ }
35609
36512
  /**
35610
36513
  * Returns the maximum amount that can currently be bridged between two tokens,
35611
36514
  * taking into account both deposit capacity on the source side and withdrawal liquidity
@@ -43830,6 +44733,8 @@ var leveragePositionAbi = viem.parseAbi([
43830
44733
  "function settle()"
43831
44734
  ]);
43832
44735
  var INTENT_DEADLINE_BUFFER_SECONDS = 5 * 60;
44736
+ var RECONCILE_TIMEOUT_MS2 = 5e3;
44737
+ var DETAILED_STATUS_SOLVER_TIMEOUT_MS2 = 5e3;
43833
44738
  var BITCOIN_UNSUPPORTED_MESSAGE = "Bitcoin is not a supported source chain for leverage positions; use a supported spoke or the hub";
43834
44739
  var ANY_SOLVER_ADDRESS = "0x0000000000000000000000000000000000000000";
43835
44740
  var MAX_WITHDRAW_DUST_BUFFER = 1000n;
@@ -43867,9 +44772,9 @@ var LeverageYieldService = class {
43867
44772
  spoke;
43868
44773
  backendApi;
43869
44774
  /**
43870
- * Effective backend submit-tx flow (`leverageYield.useBackendSubmitTx`, default off). Read live off
43871
- * `ConfigService`, like `config.leverageYieldPartnerFee`, so the config object and the behavior can
43872
- * never disagree.
44775
+ * Effective backend submit-tx flow (`leverageYield.useBackendSubmitTx`, default ON; opt out with
44776
+ * `false`). Read live off `ConfigService`, like `config.leverageYieldPartnerFee`, so the config
44777
+ * object and the behavior can never disagree.
43873
44778
  */
43874
44779
  get useBackendSubmitTx() {
43875
44780
  return this.config.leverageYieldUseBackendSubmitTx;
@@ -44361,10 +45266,11 @@ var LeverageYieldService = class {
44361
45266
  );
44362
45267
  }
44363
45268
  /**
44364
- * Client-side vault-swap completion (the default path): verify the broadcast intent tx landed,
45269
+ * Client-side vault-swap completion (the opt-out path, and the fallback): verify the broadcast
45270
+ * intent tx landed,
44365
45271
  * relay it to the hub (Sonic) — or use it directly when the source IS the hub — then notify the
44366
45272
  * solver via {@link LeverageYieldService.notifySolver} and build the {@link VaultSwapResponse}.
44367
- * Extracted from `vaultSwap()` so the opt-in backend 2-step path ({@link LeverageYieldService.submitTx})
45273
+ * Extracted from `vaultSwap()` so the default backend 2-step path ({@link LeverageYieldService.submitTx})
44368
45274
  * can fall back to it on any non-success. Leverage-yield copy of `SwapService.fallbackSwapSteps`.
44369
45275
  */
44370
45276
  async fallbackVaultSwapSteps(_params, created, timeoutMs) {
@@ -44422,7 +45328,8 @@ var LeverageYieldService = class {
44422
45328
  };
44423
45329
  }
44424
45330
  /**
44425
- * Backend 2-step vault-swap path (opt-in via `leverageYield.useBackendSubmitTx`): hand the
45331
+ * Backend 2-step vault-swap path (the default; opt out with `leverageYield.useBackendSubmitTx:
45332
+ * false`): hand the
44426
45333
  * broadcast intent tx to the leverage-yield API (`POST /leverage-yield/submit-tx`); the backend
44427
45334
  * relays + post-executes server-side. Polls `getSubmitTxStatus` until `solved`, then reconstructs
44428
45335
  * the same {@link VaultSwapResponse} the client-side path returns.
@@ -44461,6 +45368,10 @@ var LeverageYieldService = class {
44461
45368
  operation: _params.hubWalletSwap ? "withdraw" : "deposit"
44462
45369
  },
44463
45370
  statusQuery: { txHash: spokeTxHash, srcChainKey },
45371
+ // Per-action key wins over the instance one for both legs of the attempt — the submit POST
45372
+ // and its status polls. Undefined leaves the configured key in place; the same per-action
45373
+ // override `extras.partnerFee` already has, travelling per call.
45374
+ overrideConfig: { apiKey: _params.extras?.apiKey },
44464
45375
  // A vault deposit/withdraw IS a solver swap, so terminal success is `solved` — not bridge's
44465
45376
  // `executed`.
44466
45377
  terminalStatus: "solved",
@@ -44544,22 +45455,22 @@ var LeverageYieldService = class {
44544
45455
  * A `NOT_FOUND` status usually means the notification never landed rather than that the intent
44545
45456
  * does not exist — an intent created on the hub is invisible to the solver until it is told.
44546
45457
  *
45458
+ * Reports the solver verbatim. It does NOT reconcile a `NOT_FOUND` against the backend's durable
45459
+ * record the way {@link LeverageYieldService.getDetailedStatus} does — a restarted solver answers
45460
+ * `NOT_FOUND` for intents it already filled, and that read resolves it. Keeping this one
45461
+ * unreconciled is deliberate: it has shipped with this contract, and folding the reconcile in
45462
+ * would turn a `NOT_FOUND` behind an unreadable backend into an error for every existing caller.
45463
+ * Prefer `getDetailedStatus` when you hold the source tx hash.
45464
+ *
44547
45465
  * @param request - `{ intent_tx_hash }` — the hub-chain (Sonic) tx hash the intent was
44548
45466
  * registered in. For a position that is the tx that called the factory or the position.
44549
45467
  */
44550
45468
  async getIntentStatus(request) {
44551
45469
  try {
44552
- const result = await SolverApiService.getStatus(
44553
- request,
44554
- this.config.solver,
44555
- this.config.logger,
44556
- void 0,
44557
- this.config.apiKey
44558
- );
45470
+ const result = await this.solverStatus(request);
44559
45471
  if (result.ok) return result;
44560
45472
  const detail = result.error?.detail ?? {
44561
- code: -999,
44562
- // SolverIntentErrorCode.UNKNOWN
45473
+ code: exports.SolverIntentErrorCode.UNKNOWN,
44563
45474
  message: "Solver returned malformed error response"
44564
45475
  };
44565
45476
  return {
@@ -44579,6 +45490,164 @@ var LeverageYieldService = class {
44579
45490
  return { ok: false, error: executionFailed("leverageYield", error, { phase: "lookup" }) };
44580
45491
  }
44581
45492
  }
45493
+ /**
45494
+ * The raw solver read, in the solver's own vocabulary. Both public status surfaces start here; the
45495
+ * api key is the 5th argument, and leaving it out let a keyed partner notify and then fail to poll.
45496
+ */
45497
+ async solverStatus(request, timeoutMs, apiKey) {
45498
+ return SolverApiService.getStatus(
45499
+ request,
45500
+ this.config.solver,
45501
+ this.config.logger,
45502
+ timeoutMs,
45503
+ apiKey || this.config.apiKey
45504
+ );
45505
+ }
45506
+ /**
45507
+ * {@link LeverageYieldService.solverStatus} plus the durable-record reconcile, for
45508
+ * {@link LeverageYieldService.getDetailedStatus}. Deliberately not shared with
45509
+ * {@link LeverageYieldService.getIntentStatus}: the reconcile turns a `NOT_FOUND` behind an
45510
+ * unreadable backend into an error, which is right for a polled read that would otherwise spend a
45511
+ * budget on an unverified miss, and wrong to impose on a surface that already ships without it.
45512
+ *
45513
+ * `timeoutMs` bounds the solver request alone. The reconcile carries its own
45514
+ * {@link RECONCILE_TIMEOUT_MS}, so a bounded call can cost both.
45515
+ */
45516
+ async resolveSolverStatus(request, timeoutMs, apiKey) {
45517
+ const solverResult = await this.solverStatus(request, timeoutMs, apiKey);
45518
+ const forgotten = !solverResult.ok || solverResult.value.status === exports.SolverIntentStatusCode.NOT_FOUND;
45519
+ if (!forgotten) return solverResult;
45520
+ const timeout = Math.min(RECONCILE_TIMEOUT_MS2, this.backendApi.requestTimeoutMs);
45521
+ const intent = await this.backendApi.getIntentByTxHash(request.intent_tx_hash, { timeout, apiKey });
45522
+ const settled = intent.ok ? intent.value.events.filter(isFillEvent).find((fill) => fill.intentState.remainingInput === "0") : void 0;
45523
+ if (settled) return { ok: true, value: { status: exports.SolverIntentStatusCode.SOLVED, fill_tx_hash: settled.txHash } };
45524
+ const backendAnswered = intent.ok || isSodaxError(intent.error) && intent.error.context?.status === 404;
45525
+ if (solverResult.ok && !backendAnswered) {
45526
+ return {
45527
+ ok: false,
45528
+ error: {
45529
+ detail: {
45530
+ code: exports.SolverIntentErrorCode.UNKNOWN,
45531
+ message: "solver reported NOT_FOUND and the durable intent record could not be read to verify it"
45532
+ }
45533
+ }
45534
+ };
45535
+ }
45536
+ return solverResult;
45537
+ }
45538
+ /**
45539
+ * Reads a vault swap's status from its source-chain transaction — the identifier a caller always
45540
+ * holds after `vaultSwap()`.
45541
+ *
45542
+ * **Routes; does not translate.** Returns the backend submit-tx record while it is in play,
45543
+ * otherwise the solver's answer via the hub tx hash resolved from the relay packet. The result is
45544
+ * tagged with `source` (discriminate on it) and carries that source's payload unmodified.
45545
+ *
45546
+ * `sodax.api.leverageYield.getSubmitTxStatus` cannot answer for every vault swap. Sometimes there
45547
+ * is no record — `useBackendSubmitTx: false`, or the submit was rejected. More often the record
45548
+ * exists but is stale: the backend path POSTs first and falls back to the client-side relay once
45549
+ * that stalls, so a fallback-completed vault swap leaves behind whatever state the backend last
45550
+ * reached, including a record it abandoned outright.
45551
+ *
45552
+ * **Any** unusable backend response routes to the solver — a 404, a transport or server error, or
45553
+ * a record the backend gave up on. A rejected API key is the exception: it is not a source with
45554
+ * nothing to say, it is a configuration problem only a corrected key resolves, so routing it on
45555
+ * would bury it behind a relay or solver error and leave a poller retrying a request that cannot
45556
+ * succeed. The same rule the swap and bridge siblings apply. It holds here even though
45557
+ * `GET /leverage-yield/submit-tx/status` declares no scope of its own: whether a key is checked
45558
+ * is a per-deployment setting, so this must not assume the read is unauthenticated.
45559
+ *
45560
+ * A point-in-time read; poll it yourself, or use dapp-kit's `useLeverageYieldDetailedStatus`.
45561
+ *
45562
+ * @param params - `srcChainKey` and `srcTxHash` of the source-chain vault-swap transaction.
45563
+ * @param config - Optional per-request override. Its `apiKey` reaches every keyed leg — the
45564
+ * submit-tx record read, the solver read, and the durable-intent read a solver `NOT_FOUND` falls
45565
+ * back to — so one override keys the whole call. The relay leg is unauthenticated and takes none.
45566
+ * @returns A `Result` containing a {@link DetailedLeverageYieldStatus}. Fails with `LOOKUP_FAILED`
45567
+ * when no source can answer yet. Branch on `error.context.reason`:
45568
+ * `DETAILED_STATUS_NOT_DELIVERED` is the ambiguous miss a caller should bound with a retry
45569
+ * budget; anything else is a dependency failing right now, so keep retrying.
45570
+ */
45571
+ async getDetailedStatus(params, config) {
45572
+ try {
45573
+ const record = await this.backendApi.leverageYield.getSubmitTxStatus(
45574
+ { txHash: params.srcTxHash, srcChainKey: params.srcChainKey },
45575
+ config
45576
+ );
45577
+ if (record.ok && record.value.success && !isBackendSubmitTxAbandoned(record.value.data)) {
45578
+ return { ok: true, value: { source: "backend", data: record.value.data } };
45579
+ }
45580
+ if (!record.ok && isSodaxError(record.error) && isAuthFailure(record.error)) {
45581
+ return {
45582
+ ok: false,
45583
+ error: this.detailedStatusLookupFailed(record.error, params.srcChainKey, {
45584
+ status: record.error.context?.status
45585
+ })
45586
+ };
45587
+ }
45588
+ const backendAnswered = record.ok || isSodaxError(record.error) && record.error.context?.status === 404;
45589
+ const dstTxHash = await this.resolveHubTxHash(params, backendAnswered);
45590
+ if (!dstTxHash.ok) return dstTxHash;
45591
+ const solver = await this.resolveSolverStatus(
45592
+ { intent_tx_hash: dstTxHash.value },
45593
+ DETAILED_STATUS_SOLVER_TIMEOUT_MS2,
45594
+ config?.apiKey
45595
+ );
45596
+ if (!solver.ok) {
45597
+ return { ok: false, error: this.detailedStatusLookupFailed(solver.error, params.srcChainKey) };
45598
+ }
45599
+ return { ok: true, value: { source: "solver", dstTxHash: dstTxHash.value, data: solver.value } };
45600
+ } catch (error) {
45601
+ return { ok: false, error: this.detailedStatusLookupFailed(error, params.srcChainKey) };
45602
+ }
45603
+ }
45604
+ /**
45605
+ * The hub-chain tx hash the solver is keyed on. A hub-source vault swap has no relay leg — the
45606
+ * source tx *is* the hub tx. Otherwise the delivered relay packet carries it, so an undelivered
45607
+ * packet is simply "no hash yet".
45608
+ */
45609
+ async resolveHubTxHash(key, backendAnswered) {
45610
+ let hubTxHash = key.srcTxHash;
45611
+ if (!isHubChainKeyType(key.srcChainKey)) {
45612
+ const delivered = await resolveDeliveredPacket({
45613
+ srcChainKey: key.srcChainKey,
45614
+ srcTxHash: key.srcTxHash,
45615
+ relayerApiEndpoint: this.config.relay.relayerApiEndpoint,
45616
+ backendAnswered
45617
+ });
45618
+ if (!delivered.ok) {
45619
+ return {
45620
+ ok: false,
45621
+ error: this.detailedStatusLookupFailed(delivered.cause, key.srcChainKey, {
45622
+ reason: delivered.budgetable ? DETAILED_STATUS_NOT_DELIVERED : void 0
45623
+ })
45624
+ };
45625
+ }
45626
+ hubTxHash = delivered.packet.dst_tx_hash;
45627
+ }
45628
+ if (viem.isHex(hubTxHash)) return { ok: true, value: hubTxHash };
45629
+ return {
45630
+ ok: false,
45631
+ error: this.detailedStatusLookupFailed(
45632
+ new Error(`hub tx hash is not a hex string: ${hubTxHash}`),
45633
+ key.srcChainKey
45634
+ )
45635
+ };
45636
+ }
45637
+ /**
45638
+ * `reason` is set only for {@link DETAILED_STATUS_NOT_DELIVERED} — the miss a caller can bound
45639
+ * with a retry budget. Leaving it off marks a dependency that is failing right now, which a
45640
+ * caller should keep retrying rather than give up on. `status` is lifted for a rejected key so
45641
+ * `isAuthFailure` recognises the wrapped error; it reads `context.status` and does not walk the
45642
+ * cause chain.
45643
+ */
45644
+ detailedStatusLookupFailed(cause, srcChainKey, extra) {
45645
+ return lookupFailed("leverageYield", "getDetailedStatus", cause, {
45646
+ srcChainKey,
45647
+ action: "vaultSwap",
45648
+ ...extra
45649
+ });
45650
+ }
44582
45651
  /**
44583
45652
  * Approves the vault's underlying asset to the leverage vault on Sonic. For callers
44584
45653
  * interacting with the vault directly on the hub — the swap-style {@link