@sodax/sdk 2.2.0-rc.4 → 2.2.0-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -342,8 +342,8 @@ var HubVaultSymbols = [
342
342
  ];
343
343
  var SodaTokens = {
344
344
  sodaBNB: {
345
- symbol: "sodaBNB",
346
- name: "Soda BNB",
345
+ symbol: "BNB",
346
+ name: "BNB",
347
347
  decimals: 18,
348
348
  address: "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b",
349
349
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -351,8 +351,8 @@ var SodaTokens = {
351
351
  vault: "0x40Cd41b35DB9e5109ae7E54b44De8625dB320E6b"
352
352
  },
353
353
  sodaAVAX: {
354
- symbol: "sodaAVAX",
355
- name: "Soda AVAX",
354
+ symbol: "AVAX",
355
+ name: "Avalanche",
356
356
  decimals: 18,
357
357
  address: "0x14238D267557E9d799016ad635B53CD15935d290",
358
358
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -361,7 +361,7 @@ var SodaTokens = {
361
361
  },
362
362
  sodaETH: {
363
363
  symbol: "sodaETH",
364
- name: "Soda ETH",
364
+ name: "SODA ETH",
365
365
  decimals: 18,
366
366
  address: "0x4effB5813271699683C25c734F4daBc45B363709",
367
367
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -369,8 +369,8 @@ var SodaTokens = {
369
369
  vault: "0x4effB5813271699683C25c734F4daBc45B363709"
370
370
  },
371
371
  sodaBTC: {
372
- symbol: "sodaBTC",
373
- name: "Soda BTC",
372
+ symbol: "BTC",
373
+ name: "Bitcoin",
374
374
  decimals: 18,
375
375
  address: "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d",
376
376
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -379,7 +379,7 @@ var SodaTokens = {
379
379
  },
380
380
  sodaWBTC: {
381
381
  symbol: "sodaWBTC",
382
- name: "Soda Wrapped BTC",
382
+ name: "SODA WBTC",
383
383
  decimals: 18,
384
384
  address: "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB",
385
385
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -387,8 +387,8 @@ var SodaTokens = {
387
387
  vault: "0x811C3fCc13f9c2a23AE2Ae2DCadacFAC6eb5f0eB"
388
388
  },
389
389
  sodaSOL: {
390
- symbol: "sodaSOL",
391
- name: "Soda SOL",
390
+ symbol: "SOL",
391
+ name: "Solana",
392
392
  decimals: 18,
393
393
  address: "0xdEa692287E2cE8Cb08FA52917Be0F16b1DACDC87",
394
394
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -396,8 +396,8 @@ var SodaTokens = {
396
396
  vault: "0xdEa692287E2cE8Cb08FA52917Be0F16b1DACDC87"
397
397
  },
398
398
  sodaXLM: {
399
- symbol: "sodaXLM",
400
- name: "Soda XLM",
399
+ symbol: "XLM",
400
+ name: "Stellar Lumens",
401
401
  decimals: 18,
402
402
  address: "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B",
403
403
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -405,8 +405,8 @@ var SodaTokens = {
405
405
  vault: "0x6BC8C37cba91F76E68C9e6d689A9C21E4d32079B"
406
406
  },
407
407
  sodaINJ: {
408
- symbol: "sodaINJ",
409
- name: "Soda INJ",
408
+ symbol: "INJ",
409
+ name: "Injective",
410
410
  decimals: 18,
411
411
  address: "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13",
412
412
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -414,8 +414,8 @@ var SodaTokens = {
414
414
  vault: "0x1f22279C89B213944b7Ea41daCB0a868DdCDFd13"
415
415
  },
416
416
  sodaSUI: {
417
- symbol: "sodaSUI",
418
- name: "Soda SUI",
417
+ symbol: "SUI",
418
+ name: "Sui",
419
419
  decimals: 18,
420
420
  address: "0xdc5B4b00F98347E95b9F94911213DAB4C687e1e3",
421
421
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -433,7 +433,7 @@ var SodaTokens = {
433
433
  },
434
434
  sodaUSDC: {
435
435
  symbol: "sodaUSDC",
436
- name: "Soda USDC",
436
+ name: "SODA USDC",
437
437
  decimals: 18,
438
438
  address: "0xAbbb91c0617090F0028BDC27597Cd0D038F3A833",
439
439
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -442,7 +442,7 @@ var SodaTokens = {
442
442
  },
443
443
  sodaUSDT: {
444
444
  symbol: "sodaUSDT",
445
- name: "Soda USDT",
445
+ name: "SODA USDT",
446
446
  decimals: 18,
447
447
  address: "0xbDf1F453FCB61424011BBDDCB96cFDB30f3Fe876",
448
448
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -460,7 +460,7 @@ var SodaTokens = {
460
460
  },
461
461
  sodaS: {
462
462
  symbol: "sodaS",
463
- name: "Soda S",
463
+ name: "SODA S",
464
464
  decimals: 18,
465
465
  address: "0x62ecc3Eeb80a162c57624B3fF80313FE69f5203e",
466
466
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -468,8 +468,8 @@ var SodaTokens = {
468
468
  vault: "0x62ecc3Eeb80a162c57624B3fF80313FE69f5203e"
469
469
  },
470
470
  sodaPOL: {
471
- symbol: "sodaPOL",
472
- name: "Soda POL",
471
+ symbol: "POL",
472
+ name: "Polygon Ecosystem Token",
473
473
  decimals: 18,
474
474
  address: "0x208ED38f4783328aA9eBFeC360D32e7520A9B779",
475
475
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -478,7 +478,7 @@ var SodaTokens = {
478
478
  },
479
479
  sodaSODA: {
480
480
  symbol: "sodaSODA",
481
- name: "Soda SODA",
481
+ name: "SODA SODA",
482
482
  decimals: 18,
483
483
  address: "0x21685E341DE7844135329914Be6Bd8D16982d834",
484
484
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -486,8 +486,8 @@ var SodaTokens = {
486
486
  vault: "0x21685E341DE7844135329914Be6Bd8D16982d834"
487
487
  },
488
488
  sodaHYPE: {
489
- symbol: "sodaHYPE",
490
- name: "Soda HYPE",
489
+ symbol: "HYPE",
490
+ name: "Hyperliquid",
491
491
  decimals: 18,
492
492
  address: "0x6E81124fC5d2Bf666B16a0A5d90066eBf35c7411",
493
493
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -495,8 +495,8 @@ var SodaTokens = {
495
495
  vault: "0x6E81124fC5d2Bf666B16a0A5d90066eBf35c7411"
496
496
  },
497
497
  sodaRBNT: {
498
- symbol: "sodaRBNT",
499
- name: "Soda RBNT",
498
+ symbol: "RBNT",
499
+ name: "Redbelly Network Token",
500
500
  decimals: 18,
501
501
  address: "0x4B207114F9118dEAC56436e1aE3c45648783c7Ac",
502
502
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -504,8 +504,8 @@ var SodaTokens = {
504
504
  vault: "0x4B207114F9118dEAC56436e1aE3c45648783c7Ac"
505
505
  },
506
506
  sodaLL: {
507
- symbol: "sodaLL",
508
- name: "Soda LL",
507
+ symbol: "LL",
508
+ name: "LightLink",
509
509
  decimals: 18,
510
510
  address: "0x14C5eB2D25dFb834852dFc85744875d1eCb09748",
511
511
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -513,8 +513,8 @@ var SodaTokens = {
513
513
  vault: "0x14C5eB2D25dFb834852dFc85744875d1eCb09748"
514
514
  },
515
515
  sodaWEETH: {
516
- symbol: "sodaWEETH",
517
- name: "SODA WEETH",
516
+ symbol: "weETH",
517
+ name: "Wrapped eETH",
518
518
  decimals: 18,
519
519
  address: "0xCb6B152D3a943f25157381aFcA7fEFCD2ef5a357",
520
520
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -522,8 +522,8 @@ var SodaTokens = {
522
522
  vault: "0xCb6B152D3a943f25157381aFcA7fEFCD2ef5a357"
523
523
  },
524
524
  sodaWSTETH: {
525
- symbol: "sodaWSTETH",
526
- name: "SODA WSTETH",
525
+ symbol: "wstETH",
526
+ name: "Wrapped liquid staked Ether",
527
527
  decimals: 18,
528
528
  address: "0x58b0538D7EEaeE69EF32f9F1dE5cbF32A10a977B",
529
529
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -531,8 +531,8 @@ var SodaTokens = {
531
531
  vault: "0x58b0538D7EEaeE69EF32f9F1dE5cbF32A10a977B"
532
532
  },
533
533
  sodaNEAR: {
534
- symbol: "sodaNEAR",
535
- name: "SODA NEAR",
534
+ symbol: "NEAR",
535
+ name: "NEAR Protocol",
536
536
  decimals: 18,
537
537
  address: "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39",
538
538
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -540,8 +540,8 @@ var SodaTokens = {
540
540
  vault: "0xf4ba497c9b805e4bd88a8a9e6a7b8f74984c3e39"
541
541
  },
542
542
  sodaKAIA: {
543
- symbol: "sodaKAIA",
544
- name: "Soda KAIA",
543
+ symbol: "KAIA",
544
+ name: "Kaia",
545
545
  decimals: 18,
546
546
  address: "0xD7d41b5f803b6A40F8A6eAa34E459A4564e39891",
547
547
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -549,8 +549,8 @@ var SodaTokens = {
549
549
  vault: "0xD7d41b5f803b6A40F8A6eAa34E459A4564e39891"
550
550
  },
551
551
  sodaSTX: {
552
- symbol: "sodaSTX",
553
- name: "Soda STX",
552
+ symbol: "STX",
553
+ name: "Stacks",
554
554
  decimals: 18,
555
555
  address: "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483",
556
556
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -558,8 +558,8 @@ var SodaTokens = {
558
558
  vault: "0x1Fbe5229e9d189F26bEE77E5bFa24309FdA90483"
559
559
  },
560
560
  sodaSUSDS: {
561
- symbol: "sodaSUSDS",
562
- name: "SODA sUSDS",
561
+ symbol: "sUSDS",
562
+ name: "Savings USDS",
563
563
  decimals: 18,
564
564
  address: "0x243b0c26c8b38793908d7C64e8510f21B19B4613",
565
565
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -567,8 +567,8 @@ var SodaTokens = {
567
567
  vault: "0x243b0c26c8b38793908d7C64e8510f21B19B4613"
568
568
  },
569
569
  sodaHBAR: {
570
- symbol: "sodaHBAR",
571
- name: "Soda HBAR",
570
+ symbol: "HBAR",
571
+ name: "Hedera",
572
572
  decimals: 18,
573
573
  address: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4",
574
574
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -576,8 +576,8 @@ var SodaTokens = {
576
576
  vault: "0x3BB956cc8922E1Ba4148dc10eD1b4Fa19aa599c4"
577
577
  },
578
578
  sodaJITOSOL: {
579
- symbol: "sodaJITOSOL",
580
- name: "Soda JITOSOL",
579
+ symbol: "JitoSOL",
580
+ name: "Jito Staked SOL",
581
581
  decimals: 18,
582
582
  address: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0",
583
583
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -585,8 +585,8 @@ var SodaTokens = {
585
585
  vault: "0xe1bad4400d947Bc4fa66f9c0A143D800002083a0"
586
586
  },
587
587
  sodaUSDS: {
588
- symbol: "sodaUSDS",
589
- name: "Soda USDS",
588
+ symbol: "USDS",
589
+ name: "USDS",
590
590
  decimals: 18,
591
591
  address: "0xA3AeFa2BAfEAB479c4Aca6024A16906bbC75566e",
592
592
  chainKey: ChainKeys.SONIC_MAINNET,
@@ -604,6 +604,7 @@ var SodaTokens = {
604
604
  },
605
605
  SPCX: {
606
606
  symbol: "SPCX",
607
+ isRwa: true,
607
608
  name: "Space Exploration Technologies Corp. Class A Common Stock \u2022 Robinhood Token",
608
609
  decimals: 18,
609
610
  address: "0xB585e2EEa070eB4E4D877A707aEC3B718edb2373",
@@ -613,6 +614,7 @@ var SodaTokens = {
613
614
  },
614
615
  NVDA: {
615
616
  symbol: "NVDA",
617
+ isRwa: true,
616
618
  name: "NVIDIA \u2022 Robinhood Token",
617
619
  decimals: 18,
618
620
  address: "0x2D5D2250EE426cA318efBd03ddf926B23c96f74B",
@@ -622,6 +624,7 @@ var SodaTokens = {
622
624
  },
623
625
  GME: {
624
626
  symbol: "GME",
627
+ isRwa: true,
625
628
  name: "GameStop \u2022 Robinhood Token",
626
629
  decimals: 18,
627
630
  address: "0x996e5591e4692e2B7d8fB6926DeA4EE1950Ef394",
@@ -631,6 +634,7 @@ var SodaTokens = {
631
634
  },
632
635
  MSTR: {
633
636
  symbol: "MSTR",
637
+ isRwa: true,
634
638
  name: "Strategy Inc. \u2022 Robinhood Token",
635
639
  decimals: 18,
636
640
  address: "0xE0E2aF45EBf5700a90E63c41B0ecE042A240Fab1",
@@ -640,6 +644,7 @@ var SodaTokens = {
640
644
  },
641
645
  AAPL: {
642
646
  symbol: "AAPL",
647
+ isRwa: true,
643
648
  name: "Apple \u2022 Robinhood Token",
644
649
  decimals: 18,
645
650
  address: "0x4712D2D49Ba3be41DA334FCB3616FDdc0d745185",
@@ -649,6 +654,7 @@ var SodaTokens = {
649
654
  },
650
655
  TSLA: {
651
656
  symbol: "TSLA",
657
+ isRwa: true,
652
658
  name: "Tesla \u2022 Robinhood Token",
653
659
  decimals: 18,
654
660
  address: "0x8B7F46967Ed9367A70b2e046D5e26a03625d53b1",
@@ -658,6 +664,7 @@ var SodaTokens = {
658
664
  },
659
665
  MU: {
660
666
  symbol: "MU",
667
+ isRwa: true,
661
668
  name: "Micron Technology \u2022 Robinhood Token",
662
669
  decimals: 18,
663
670
  address: "0x108147b16186B895344F5752468190B9EE0e3A22",
@@ -667,6 +674,7 @@ var SodaTokens = {
667
674
  },
668
675
  SNDK: {
669
676
  symbol: "SNDK",
677
+ isRwa: true,
670
678
  name: "Sandisk Corporation \u2022 Robinhood Token",
671
679
  decimals: 18,
672
680
  address: "0x568F29855B7B46EdA38ed95771FAeC498c507EF7",
@@ -676,6 +684,7 @@ var SodaTokens = {
676
684
  },
677
685
  SPY: {
678
686
  symbol: "SPY",
687
+ isRwa: true,
679
688
  name: "SPDR S&P 500 ETF Trust \u2022 Robinhood Token",
680
689
  decimals: 18,
681
690
  address: "0x1816E408f0448D0CaD3e0D490bd2590d921Bb0c8",
@@ -685,6 +694,7 @@ var SodaTokens = {
685
694
  },
686
695
  QQQ: {
687
696
  symbol: "QQQ",
697
+ isRwa: true,
688
698
  name: "Invesco QQQ \u2022 Robinhood Token",
689
699
  decimals: 18,
690
700
  address: "0x454ab3DeFd9df0749d450b145D4516e317E3e500",
@@ -694,6 +704,7 @@ var SodaTokens = {
694
704
  },
695
705
  SGOV: {
696
706
  symbol: "SGOV",
707
+ isRwa: true,
697
708
  name: "iShares 0-3 Month Treasury Bond \u2022 Robinhood Token",
698
709
  decimals: 18,
699
710
  address: "0xf6938087cf794B08739b926B41FF8F1E90816E74",
@@ -703,6 +714,7 @@ var SodaTokens = {
703
714
  },
704
715
  USO: {
705
716
  symbol: "USO",
717
+ isRwa: true,
706
718
  name: "United States Oil Fund \u2022 Robinhood Token",
707
719
  decimals: 18,
708
720
  address: "0x8DaBbADcecfc1a0B91fc68c72301090bc220D2bc",
@@ -712,6 +724,7 @@ var SodaTokens = {
712
724
  },
713
725
  SLV: {
714
726
  symbol: "SLV",
727
+ isRwa: true,
715
728
  name: "iShares Silver Trust \u2022 Robinhood Token",
716
729
  decimals: 18,
717
730
  address: "0x690B92c27ac80015E57DB8cc02A81255814f49A2",
@@ -1092,6 +1105,7 @@ var solanaSupportedTokens = {
1092
1105
  },
1093
1106
  CRCLx: {
1094
1107
  symbol: "CRCLx",
1108
+ isRwa: true,
1095
1109
  name: "Circle xStock",
1096
1110
  decimals: 8,
1097
1111
  address: "XsueG8BtpquVJX9LVLLEGuViXUungE6WmK5YZ3p3bd1",
@@ -1101,6 +1115,7 @@ var solanaSupportedTokens = {
1101
1115
  },
1102
1116
  TSLAx: {
1103
1117
  symbol: "TSLAx",
1118
+ isRwa: true,
1104
1119
  name: "Tesla xStock",
1105
1120
  decimals: 8,
1106
1121
  address: "XsDoVfqeBukxuZHWhdvWHBhgEHjGNst4MLodqsJHzoB",
@@ -1110,6 +1125,7 @@ var solanaSupportedTokens = {
1110
1125
  },
1111
1126
  SPYx: {
1112
1127
  symbol: "SPYx",
1128
+ isRwa: true,
1113
1129
  name: "SP500 xStock",
1114
1130
  decimals: 8,
1115
1131
  address: "XsoCS1TfEyfFhfvj8EtZ528L3CaKBDBRqRapnBbDF2W",
@@ -1119,6 +1135,7 @@ var solanaSupportedTokens = {
1119
1135
  },
1120
1136
  NVDAx: {
1121
1137
  symbol: "NVDAx",
1138
+ isRwa: true,
1122
1139
  name: "NVIDIA xStock",
1123
1140
  decimals: 8,
1124
1141
  address: "Xsc9qvGR1efVDFGLrVsmkzv3qi45LTBjeUKSPmx9qEh",
@@ -1128,6 +1145,7 @@ var solanaSupportedTokens = {
1128
1145
  },
1129
1146
  QQQx: {
1130
1147
  symbol: "QQQx",
1148
+ isRwa: true,
1131
1149
  name: "Nasdaq xStock",
1132
1150
  decimals: 8,
1133
1151
  address: "Xs8S1uUs1zvS2p7iwtsG3b6fkhpvmwz4GYU3gWAmWHZ",
@@ -1137,6 +1155,7 @@ var solanaSupportedTokens = {
1137
1155
  },
1138
1156
  MSTRx: {
1139
1157
  symbol: "MSTRx",
1158
+ isRwa: true,
1140
1159
  name: "MicroStrategy xStock",
1141
1160
  decimals: 8,
1142
1161
  address: "XsP7xzNPvEHS1m6qfanPUGjNmdnmsLKEoNAnHjdxxyZ",
@@ -1146,6 +1165,7 @@ var solanaSupportedTokens = {
1146
1165
  },
1147
1166
  COINx: {
1148
1167
  symbol: "COINx",
1168
+ isRwa: true,
1149
1169
  name: "Coinbase xStock",
1150
1170
  decimals: 8,
1151
1171
  address: "Xs7ZdzSHLU9ftNJsii5fCeJhoRWSC32SQGzGQtePxNu",
@@ -1155,6 +1175,7 @@ var solanaSupportedTokens = {
1155
1175
  },
1156
1176
  GOOGLx: {
1157
1177
  symbol: "GOOGLx",
1178
+ isRwa: true,
1158
1179
  name: "Alphabet xStock",
1159
1180
  decimals: 8,
1160
1181
  address: "XsCPL9dNWBMvFtTmwcCA5v3xWPSMEBCszbQdiLLq6aN",
@@ -2323,6 +2344,7 @@ var stellarSupportedTokens = {
2323
2344
  },
2324
2345
  SPCX: {
2325
2346
  symbol: "SPCX",
2347
+ isRwa: true,
2326
2348
  name: "SpaceX Class A",
2327
2349
  decimals: 7,
2328
2350
  address: "CAI4HHAYO57QICZOZ4JF7R66RLGJRD7BGTX7H6MILCITVEYYEFRYFISK",
@@ -2332,6 +2354,7 @@ var stellarSupportedTokens = {
2332
2354
  },
2333
2355
  NVDA: {
2334
2356
  symbol: "NVDA",
2357
+ isRwa: true,
2335
2358
  name: "NVIDIA",
2336
2359
  decimals: 7,
2337
2360
  address: "CCQFCT4FHJURUQ4RQA4NHYW5GQRHCBDXF33ADXZRTDTDVGKOJO3ZPEMY",
@@ -2341,6 +2364,7 @@ var stellarSupportedTokens = {
2341
2364
  },
2342
2365
  GME: {
2343
2366
  symbol: "GME",
2367
+ isRwa: true,
2344
2368
  name: "GameStop",
2345
2369
  decimals: 7,
2346
2370
  address: "CAPSLSLCTFOZM22SUIPQENMM54T24GTDRHZ5STYAO6EYMK5GGGYVKWBX",
@@ -2350,6 +2374,7 @@ var stellarSupportedTokens = {
2350
2374
  },
2351
2375
  MSTR: {
2352
2376
  symbol: "MSTR",
2377
+ isRwa: true,
2353
2378
  name: "Strategy",
2354
2379
  decimals: 7,
2355
2380
  address: "CAFQQXZSECLJNU76OS2OKLJQJBQHYJCVAYZJ4KGEN7VHXH5BTGNLVQND",
@@ -2359,6 +2384,7 @@ var stellarSupportedTokens = {
2359
2384
  },
2360
2385
  AAPL: {
2361
2386
  symbol: "AAPL",
2387
+ isRwa: true,
2362
2388
  name: "Apple",
2363
2389
  decimals: 7,
2364
2390
  address: "CAZSFDNSSR2RKJ2LIIB2Y4G4WOSYYKC4646EUJ63PQLDDHOVQYZ4HDTK",
@@ -2368,6 +2394,7 @@ var stellarSupportedTokens = {
2368
2394
  },
2369
2395
  TSLA: {
2370
2396
  symbol: "TSLA",
2397
+ isRwa: true,
2371
2398
  name: "Tesla",
2372
2399
  decimals: 7,
2373
2400
  address: "CARLFQDI2S2FSYFB47AZLKGUFZVGBEUVNW77SCJHHHGL2KPGT3TN5PAB",
@@ -2377,6 +2404,7 @@ var stellarSupportedTokens = {
2377
2404
  },
2378
2405
  MU: {
2379
2406
  symbol: "MU",
2407
+ isRwa: true,
2380
2408
  name: "Micron",
2381
2409
  decimals: 7,
2382
2410
  address: "CBPTKA32BTUEX4VFAER6AUFWQZCWJKQAMLV2PMFFN7EHLGLJN4JWIZ3F",
@@ -2386,6 +2414,7 @@ var stellarSupportedTokens = {
2386
2414
  },
2387
2415
  SNDK: {
2388
2416
  symbol: "SNDK",
2417
+ isRwa: true,
2389
2418
  name: "SanDisk",
2390
2419
  decimals: 7,
2391
2420
  address: "CDXNTHFMGQM33UGQBSLZI3BV5UWW62QGZLCEKOXJKMFN2W3KQZKE3LTQ",
@@ -2395,6 +2424,7 @@ var stellarSupportedTokens = {
2395
2424
  },
2396
2425
  SPY: {
2397
2426
  symbol: "SPY",
2427
+ isRwa: true,
2398
2428
  name: "SPDR S&P 500 ETF Trust",
2399
2429
  decimals: 7,
2400
2430
  address: "CD3ZMWOS4PZS2RQITEHBOTS27DTDP4QKOK7IEO5IB64GQKHRJYTVL3SW",
@@ -2404,6 +2434,7 @@ var stellarSupportedTokens = {
2404
2434
  },
2405
2435
  QQQ: {
2406
2436
  symbol: "QQQ",
2437
+ isRwa: true,
2407
2438
  name: "Invesco QQQ Trust",
2408
2439
  decimals: 7,
2409
2440
  address: "CC7DQX43J2KBK5MJACQWTNHENIYB5GUVCFXGDKQWDLUWA4VKLOOU5PWB",
@@ -2413,6 +2444,7 @@ var stellarSupportedTokens = {
2413
2444
  },
2414
2445
  SGOV: {
2415
2446
  symbol: "SGOV",
2447
+ isRwa: true,
2416
2448
  name: "iShares 0-3 Month Treasury Bond ETF",
2417
2449
  decimals: 7,
2418
2450
  address: "CBQMRO2JTUJ6NXVBQ3XGJV34PDTXR34DD74TLLRCW5SV2CV2NN2VDMLH",
@@ -2422,6 +2454,7 @@ var stellarSupportedTokens = {
2422
2454
  },
2423
2455
  USO: {
2424
2456
  symbol: "USO",
2457
+ isRwa: true,
2425
2458
  name: "United States Oil Fund LP",
2426
2459
  decimals: 7,
2427
2460
  address: "CCFRCTIW5EK2OK626V6C4YRTJCKACIRDI2GHOKWM57ZXACK2ZTWWWLC7",
@@ -2431,6 +2464,7 @@ var stellarSupportedTokens = {
2431
2464
  },
2432
2465
  SLV: {
2433
2466
  symbol: "SLV",
2467
+ isRwa: true,
2434
2468
  name: "iShares Silver Trust",
2435
2469
  decimals: 7,
2436
2470
  address: "CBY3U32O5T2B555HNJLX6C6HW3O2FLRSJGH472UOOHT6H6ZMGMSSZTLW",
@@ -2874,6 +2908,7 @@ var ethereumSupportedTokens = {
2874
2908
  },
2875
2909
  PAXG: {
2876
2910
  symbol: "PAXG",
2911
+ isRwa: true,
2877
2912
  name: "PAX Gold",
2878
2913
  decimals: 18,
2879
2914
  address: "0x45804880De22913dAFE09f4980848ECE6EcbAf78",
@@ -2883,6 +2918,7 @@ var ethereumSupportedTokens = {
2883
2918
  },
2884
2919
  XAUt: {
2885
2920
  symbol: "XAUt",
2921
+ isRwa: true,
2886
2922
  name: "Tether Gold",
2887
2923
  decimals: 6,
2888
2924
  address: "0x68749665FF8D2d112Fa859AA293F07A622782F38",
@@ -3112,6 +3148,7 @@ var hederaSupportedTokens = {
3112
3148
  },
3113
3149
  SPCX: {
3114
3150
  symbol: "SPCX",
3151
+ isRwa: true,
3115
3152
  name: "SpaceX Class A",
3116
3153
  decimals: 8,
3117
3154
  address: "0x0000000000000000000000000000000000a5669e",
@@ -3121,6 +3158,7 @@ var hederaSupportedTokens = {
3121
3158
  },
3122
3159
  NVDA: {
3123
3160
  symbol: "NVDA",
3161
+ isRwa: true,
3124
3162
  name: "NVIDIA",
3125
3163
  decimals: 8,
3126
3164
  address: "0x0000000000000000000000000000000000a5669f",
@@ -3130,6 +3168,7 @@ var hederaSupportedTokens = {
3130
3168
  },
3131
3169
  GME: {
3132
3170
  symbol: "GME",
3171
+ isRwa: true,
3133
3172
  name: "GameStop",
3134
3173
  decimals: 8,
3135
3174
  address: "0x0000000000000000000000000000000000a567d9",
@@ -3139,6 +3178,7 @@ var hederaSupportedTokens = {
3139
3178
  },
3140
3179
  MSTR: {
3141
3180
  symbol: "MSTR",
3181
+ isRwa: true,
3142
3182
  name: "Strategy",
3143
3183
  decimals: 8,
3144
3184
  address: "0x0000000000000000000000000000000000a567e0",
@@ -3148,6 +3188,7 @@ var hederaSupportedTokens = {
3148
3188
  },
3149
3189
  AAPL: {
3150
3190
  symbol: "AAPL",
3191
+ isRwa: true,
3151
3192
  name: "Apple",
3152
3193
  decimals: 8,
3153
3194
  address: "0x0000000000000000000000000000000000a567e1",
@@ -3157,6 +3198,7 @@ var hederaSupportedTokens = {
3157
3198
  },
3158
3199
  TSLA: {
3159
3200
  symbol: "TSLA",
3201
+ isRwa: true,
3160
3202
  name: "Tesla",
3161
3203
  decimals: 8,
3162
3204
  address: "0x0000000000000000000000000000000000a567e2",
@@ -3166,6 +3208,7 @@ var hederaSupportedTokens = {
3166
3208
  },
3167
3209
  MU: {
3168
3210
  symbol: "MU",
3211
+ isRwa: true,
3169
3212
  name: "Micron",
3170
3213
  decimals: 8,
3171
3214
  address: "0x0000000000000000000000000000000000a567e3",
@@ -3175,6 +3218,7 @@ var hederaSupportedTokens = {
3175
3218
  },
3176
3219
  SNDK: {
3177
3220
  symbol: "SNDK",
3221
+ isRwa: true,
3178
3222
  name: "SanDisk",
3179
3223
  decimals: 8,
3180
3224
  address: "0x0000000000000000000000000000000000a567e5",
@@ -3184,6 +3228,7 @@ var hederaSupportedTokens = {
3184
3228
  },
3185
3229
  SPY: {
3186
3230
  symbol: "SPY",
3231
+ isRwa: true,
3187
3232
  name: "SPDR S&P 500 ETF Trust",
3188
3233
  decimals: 8,
3189
3234
  address: "0x0000000000000000000000000000000000a567e7",
@@ -3193,6 +3238,7 @@ var hederaSupportedTokens = {
3193
3238
  },
3194
3239
  QQQ: {
3195
3240
  symbol: "QQQ",
3241
+ isRwa: true,
3196
3242
  name: "Invesco QQQ Trust",
3197
3243
  decimals: 8,
3198
3244
  address: "0x0000000000000000000000000000000000a567ea",
@@ -3202,6 +3248,7 @@ var hederaSupportedTokens = {
3202
3248
  },
3203
3249
  SGOV: {
3204
3250
  symbol: "SGOV",
3251
+ isRwa: true,
3205
3252
  name: "iShares 0-3 Month Treasury Bond ETF",
3206
3253
  decimals: 8,
3207
3254
  address: "0x0000000000000000000000000000000000a567ec",
@@ -3211,6 +3258,7 @@ var hederaSupportedTokens = {
3211
3258
  },
3212
3259
  USO: {
3213
3260
  symbol: "USO",
3261
+ isRwa: true,
3214
3262
  name: "United States Oil Fund LP",
3215
3263
  decimals: 8,
3216
3264
  address: "0x0000000000000000000000000000000000a567ed",
@@ -3220,6 +3268,7 @@ var hederaSupportedTokens = {
3220
3268
  },
3221
3269
  SLV: {
3222
3270
  symbol: "SLV",
3271
+ isRwa: true,
3223
3272
  name: "iShares Silver Trust",
3224
3273
  decimals: 8,
3225
3274
  address: "0x0000000000000000000000000000000000a567f2",
@@ -3272,6 +3321,7 @@ var robinhoodSupportedTokens = {
3272
3321
  // feed exists for them, so the solver cannot price or swap them.
3273
3322
  SPCX: {
3274
3323
  symbol: "SPCX",
3324
+ isRwa: true,
3275
3325
  name: "SpaceX Class A",
3276
3326
  decimals: 18,
3277
3327
  address: "0x4a0E65A3EcceC6dBe60AE065F2e7bb85Fae35eEa",
@@ -3281,6 +3331,7 @@ var robinhoodSupportedTokens = {
3281
3331
  },
3282
3332
  NVDA: {
3283
3333
  symbol: "NVDA",
3334
+ isRwa: true,
3284
3335
  name: "NVIDIA",
3285
3336
  decimals: 18,
3286
3337
  address: "0xd0601CE157Db5bdC3162BbaC2a2C8aF5320D9EEC",
@@ -3290,6 +3341,7 @@ var robinhoodSupportedTokens = {
3290
3341
  },
3291
3342
  GME: {
3292
3343
  symbol: "GME",
3344
+ isRwa: true,
3293
3345
  name: "GameStop",
3294
3346
  decimals: 18,
3295
3347
  address: "0x1b0E319c6A659F002271B69dB8A7df2F911c153E",
@@ -3299,6 +3351,7 @@ var robinhoodSupportedTokens = {
3299
3351
  },
3300
3352
  MSTR: {
3301
3353
  symbol: "MSTR",
3354
+ isRwa: true,
3302
3355
  name: "Strategy",
3303
3356
  decimals: 18,
3304
3357
  address: "0xec262a75e413fAfD0dF80480274532C79D42da09",
@@ -3308,6 +3361,7 @@ var robinhoodSupportedTokens = {
3308
3361
  },
3309
3362
  AAPL: {
3310
3363
  symbol: "AAPL",
3364
+ isRwa: true,
3311
3365
  name: "Apple",
3312
3366
  decimals: 18,
3313
3367
  address: "0xaF3D76f1834A1d425780943C99Ea8A608f8a93f9",
@@ -3317,6 +3371,7 @@ var robinhoodSupportedTokens = {
3317
3371
  },
3318
3372
  TSLA: {
3319
3373
  symbol: "TSLA",
3374
+ isRwa: true,
3320
3375
  name: "Tesla",
3321
3376
  decimals: 18,
3322
3377
  address: "0x322F0929c4625eD5bAd873c95208D54E1c003b2d",
@@ -3326,6 +3381,7 @@ var robinhoodSupportedTokens = {
3326
3381
  },
3327
3382
  MU: {
3328
3383
  symbol: "MU",
3384
+ isRwa: true,
3329
3385
  name: "Micron",
3330
3386
  decimals: 18,
3331
3387
  address: "0xfF080c8ce2E5feadaCa0Da81314Ae59D232d4afD",
@@ -3335,6 +3391,7 @@ var robinhoodSupportedTokens = {
3335
3391
  },
3336
3392
  SNDK: {
3337
3393
  symbol: "SNDK",
3394
+ isRwa: true,
3338
3395
  name: "SanDisk",
3339
3396
  decimals: 18,
3340
3397
  address: "0xB90A19fF0Af67f7779afF50A882A9CfF42446400",
@@ -3344,6 +3401,7 @@ var robinhoodSupportedTokens = {
3344
3401
  },
3345
3402
  SPY: {
3346
3403
  symbol: "SPY",
3404
+ isRwa: true,
3347
3405
  name: "SPDR S&P 500 ETF Trust",
3348
3406
  decimals: 18,
3349
3407
  address: "0x117cc2133c37B721F49dE2A7a74833232B3B4C0C",
@@ -3353,6 +3411,7 @@ var robinhoodSupportedTokens = {
3353
3411
  },
3354
3412
  QQQ: {
3355
3413
  symbol: "QQQ",
3414
+ isRwa: true,
3356
3415
  name: "Invesco QQQ Trust",
3357
3416
  decimals: 18,
3358
3417
  address: "0xD5f3879160bc7c32ebb4dC785F8a4F505888de68",
@@ -3362,6 +3421,7 @@ var robinhoodSupportedTokens = {
3362
3421
  },
3363
3422
  SGOV: {
3364
3423
  symbol: "SGOV",
3424
+ isRwa: true,
3365
3425
  name: "iShares 0-3 Month Treasury Bond ETF",
3366
3426
  decimals: 18,
3367
3427
  address: "0x92FD66527192E3e61d4DDd13322Aa222DE86F9B5",
@@ -3371,6 +3431,7 @@ var robinhoodSupportedTokens = {
3371
3431
  },
3372
3432
  USO: {
3373
3433
  symbol: "USO",
3434
+ isRwa: true,
3374
3435
  name: "United States Oil Fund LP",
3375
3436
  decimals: 18,
3376
3437
  address: "0xa30FA36Db767ad9eD3f7a60fC79526fB4d56D344",
@@ -3380,6 +3441,7 @@ var robinhoodSupportedTokens = {
3380
3441
  },
3381
3442
  SLV: {
3382
3443
  symbol: "SLV",
3444
+ isRwa: true,
3383
3445
  name: "iShares Silver Trust",
3384
3446
  decimals: 18,
3385
3447
  address: "0x411eFb0E7f985935DAec3D4C3ebaEa0d0AD7D89f",
@@ -3459,6 +3521,16 @@ var supportedTokensByChain = {
3459
3521
  [ChainKeys.HEDERA_MAINNET]: hederaSupportedTokens,
3460
3522
  [ChainKeys.ROBINHOOD_MAINNET]: robinhoodSupportedTokens
3461
3523
  };
3524
+ function isRealWorldAsset(token) {
3525
+ const registry = supportedTokensByChain;
3526
+ const chainTokens = registry[token.chainKey];
3527
+ if (!chainTokens)
3528
+ return false;
3529
+ const tokens = Object.values(chainTokens);
3530
+ const normalize2 = (address2) => /^0x[0-9a-f]{40}$/i.test(address2) ? address2.toLowerCase() : address2;
3531
+ const address = normalize2(token.address);
3532
+ return tokens.some((candidate) => normalize2(candidate.address) === address && candidate.isRwa === true);
3533
+ }
3462
3534
 
3463
3535
  // ../types/dist/chains/chains.js
3464
3536
  var RelayChainIdMap = {
@@ -3823,6 +3895,14 @@ var NEAR_CHAIN_KEYS = filterChainKeysByType("NEAR");
3823
3895
  var NEAR_CHAIN_KEYS_SET = new Set(NEAR_CHAIN_KEYS);
3824
3896
  var BITCOIN_CHAIN_KEYS = filterChainKeysByType("BITCOIN");
3825
3897
  var BITCOIN_CHAIN_KEYS_SET = new Set(BITCOIN_CHAIN_KEYS);
3898
+ var BOUND_API_HOST = "https://svc.bound.exchange/api";
3899
+ var BOUND_COMPANION_HOSTS = {
3900
+ [BOUND_API_HOST]: {
3901
+ auth: "https://auth.bound.exchange/api",
3902
+ transactions: "https://api.radfi.co/api"
3903
+ }
3904
+ };
3905
+ var DEPRECATED_BOUND_HOSTS = ["https://api.bound.exchange/api"];
3826
3906
  var spokeChainConfig = {
3827
3907
  [ChainKeys.SONIC_MAINNET]: {
3828
3908
  chain: baseChainInfo[ChainKeys.SONIC_MAINNET],
@@ -4029,7 +4109,8 @@ var spokeChainConfig = {
4029
4109
  supportedTokens: bitcoinSupportedTokens,
4030
4110
  radfi: {
4031
4111
  walletMode: "TRADING",
4032
- apiUrl: "https://api.bound.exchange/api",
4112
+ // authUrl / transactionsUrl are intentionally absent: see BOUND_COMPANION_HOSTS.
4113
+ apiUrl: BOUND_API_HOST,
4033
4114
  apiKey: "",
4034
4115
  umsUrl: "https://api.ums.bound.exchange/api",
4035
4116
  accessToken: "",
@@ -5551,7 +5632,7 @@ function isValidWalletProviderForChainKey(chainKey, walletProvider) {
5551
5632
  }
5552
5633
 
5553
5634
  // ../types/dist/index.js
5554
- var CONFIG_VERSION = 234;
5635
+ var CONFIG_VERSION = 235;
5555
5636
 
5556
5637
  // src/shared/utils/resolveTimeoutMs.ts
5557
5638
  function resolveTimeoutMs(timeout, fallbackMs) {
@@ -16823,10 +16904,17 @@ var RadfiApiError = class extends Error {
16823
16904
  this.cause = body;
16824
16905
  }
16825
16906
  };
16907
+ var stripSlash = (url) => url.endsWith("/") ? url.slice(0, -1) : url;
16908
+ var normalizeUrl = (url) => {
16909
+ const trimmed = url?.trim();
16910
+ return trimmed ? stripSlash(trimmed) : void 0;
16911
+ };
16826
16912
  var RadfiProvider = class {
16827
16913
  config;
16914
+ hosts;
16828
16915
  // Client-side runtime signer (e.g. a backend's HMAC closure). Holds no credential itself — the SDK
16829
- // only keeps the reference and invokes it per outbound `apiUrl` request. See `RadfiOptions` / gh-831.
16916
+ // only keeps the reference and invokes it per outbound Bound request, on every routed host.
16917
+ // UMS calls bypass `request()` and stay unsigned. See `RadfiOptions` / gh-831.
16830
16918
  signer;
16831
16919
  accessToken = "";
16832
16920
  refreshToken = "";
@@ -16835,12 +16923,30 @@ var RadfiProvider = class {
16835
16923
  this.signer = options?.signer;
16836
16924
  this.accessToken = config.accessToken ?? "";
16837
16925
  this.refreshToken = config.refreshToken ?? "";
16838
- if (config.apiUrl.endsWith("/")) {
16839
- this.config.apiUrl = config.apiUrl.slice(0, -1);
16840
- }
16841
16926
  if (config.umsUrl?.endsWith("/")) {
16842
16927
  this.config.umsUrl = config.umsUrl.slice(0, -1);
16843
16928
  }
16929
+ const api = normalizeUrl(config.apiUrl) ?? config.apiUrl;
16930
+ const companions = BOUND_COMPANION_HOSTS[api] ?? {};
16931
+ this.hosts = {
16932
+ api,
16933
+ auth: normalizeUrl(config.authUrl) ?? companions.auth ?? api,
16934
+ transactions: normalizeUrl(config.transactionsUrl) ?? companions.transactions ?? api
16935
+ };
16936
+ const packaged = BOUND_COMPANION_HOSTS[BOUND_API_HOST] ?? {};
16937
+ const replacementFor = {
16938
+ apiUrl: BOUND_API_HOST,
16939
+ authUrl: packaged.auth ?? BOUND_API_HOST,
16940
+ transactionsUrl: packaged.transactions ?? BOUND_API_HOST
16941
+ };
16942
+ for (const field of ["apiUrl", "authUrl", "transactionsUrl"]) {
16943
+ const url = normalizeUrl(config[field]);
16944
+ if (url && DEPRECATED_BOUND_HOSTS.includes(url)) {
16945
+ throw new Error(
16946
+ `Bound Exchange has retired ${url}. Set chains.bitcoin.radfi.${field} to ${replacementFor[field]}, or remove it to take the packaged default.`
16947
+ );
16948
+ }
16949
+ }
16844
16950
  }
16845
16951
  /**
16846
16952
  * Authenticate with Bound Exchange: BIP322-sign a login message, then call the Bound Exchange API.
@@ -16891,7 +16997,7 @@ var RadfiProvider = class {
16891
16997
  }
16892
16998
  }
16893
16999
  async authenticate(params) {
16894
- const res = await this.request("/auth/authenticate", {
17000
+ const res = await this.request("auth", "/auth/authenticate", {
16895
17001
  method: "POST",
16896
17002
  body: JSON.stringify(params)
16897
17003
  });
@@ -16906,7 +17012,7 @@ var RadfiProvider = class {
16906
17012
  };
16907
17013
  }
16908
17014
  async refreshAccessToken(refreshToken) {
16909
- const res = await this.request("/auth/refresh-token", {
17015
+ const res = await this.request("auth", "/auth/refresh-token", {
16910
17016
  method: "POST",
16911
17017
  body: JSON.stringify({ refreshToken })
16912
17018
  });
@@ -16920,7 +17026,7 @@ var RadfiProvider = class {
16920
17026
  };
16921
17027
  }
16922
17028
  async createTradingWallet(params, accessToken) {
16923
- const res = await this.request("/wallets", {
17029
+ const res = await this.request("auth", "/wallets", {
16924
17030
  method: "POST",
16925
17031
  headers: {
16926
17032
  Authorization: `Bearer ${this.resolveAuth(accessToken)}`
@@ -16934,7 +17040,7 @@ var RadfiProvider = class {
16934
17040
  return body.data;
16935
17041
  }
16936
17042
  async getTradingWallet(userAddress) {
16937
- const res = await this.request(`/wallets/details/${userAddress}`, {
17043
+ const res = await this.request("auth", `/wallets/details/${userAddress}`, {
16938
17044
  method: "GET"
16939
17045
  });
16940
17046
  const body = await this.parseJsonBody(res, "Trading wallet not found");
@@ -16943,9 +17049,9 @@ var RadfiProvider = class {
16943
17049
  }
16944
17050
  return body.data;
16945
17051
  }
16946
- // UMS call: goes out unsigned even when a signer is configured. Bound scopes the backend
16947
- // credential to the Sodax endpoints on `apiUrl`, so a signature here is unverified — this
16948
- // deliberately does not go through `request()`. Same for `getExpiredUtxos` below. See gh-831.
17052
+ // UMS call: goes out unsigned even when a signer is configured. UMS is separate infrastructure
17053
+ // on `umsUrl`, outside the api/auth/transactions routing table, and does not verify the backend
17054
+ // signature — so this bypasses `request()`, which signs. Same for `getExpiredUtxos`. See gh-831.
16949
17055
  async getBalance(address) {
16950
17056
  if (!this.config.umsUrl) {
16951
17057
  throw new Error("RadfiConfig.umsUrl is required for getBalance");
@@ -16976,7 +17082,7 @@ var RadfiProvider = class {
16976
17082
  }
16977
17083
  }
16978
17084
  async createWithdrawTransaction(params, accessToken) {
16979
- const res = await this.request("/sodax/transaction", {
17085
+ const res = await this.request("api", "/sodax/transaction", {
16980
17086
  method: "POST",
16981
17087
  headers: {
16982
17088
  Authorization: `Bearer ${this.resolveAuth(accessToken)}`
@@ -17005,7 +17111,7 @@ var RadfiProvider = class {
17005
17111
  * gets stuck (otherwise a stuck relay eventually refunds instead of completing the swap).
17006
17112
  */
17007
17113
  async requestRadfiSignature(params, accessToken) {
17008
- const res = await this.request("/sodax/transaction/sign", {
17114
+ const res = await this.request("api", "/sodax/transaction/sign", {
17009
17115
  method: "POST",
17010
17116
  headers: {
17011
17117
  Authorization: `Bearer ${this.resolveAuth(accessToken)}`
@@ -17024,8 +17130,8 @@ var RadfiProvider = class {
17024
17130
  /**
17025
17131
  * Fetch expired (or near-expiry) UTXOs for a trading wallet address from UMS API.
17026
17132
  *
17027
- * UMS call — unsigned by design, like `getBalance`: the backend credential is scoped to the
17028
- * Sodax endpoints on `apiUrl`, so a configured signer intentionally does not reach here.
17133
+ * UMS call — unsigned by design, like `getBalance`: UMS sits outside the api/auth/transactions
17134
+ * routing table, so it bypasses `request()` and a configured signer never runs.
17029
17135
  */
17030
17136
  async getExpiredUtxos(tradingAddress, params) {
17031
17137
  if (!this.config.umsUrl) {
@@ -17049,7 +17155,7 @@ var RadfiProvider = class {
17049
17155
  * Returns a PSBT that needs to be signed by the user.
17050
17156
  */
17051
17157
  async buildRenewUtxoTransaction(params, accessToken) {
17052
- const res = await this.request("/transactions", {
17158
+ const res = await this.request("transactions", "/transactions", {
17053
17159
  method: "POST",
17054
17160
  headers: {
17055
17161
  Authorization: `Bearer ${accessToken}`
@@ -17073,7 +17179,7 @@ var RadfiProvider = class {
17073
17179
  * The user signs the PSBT first, then Bound Exchange co-signs and broadcasts.
17074
17180
  */
17075
17181
  async signAndBroadcastRenewUtxo(params, accessToken) {
17076
- const res = await this.request("/transactions/sign", {
17182
+ const res = await this.request("transactions", "/transactions/sign", {
17077
17183
  method: "POST",
17078
17184
  headers: {
17079
17185
  Authorization: `Bearer ${accessToken}`
@@ -17097,7 +17203,7 @@ var RadfiProvider = class {
17097
17203
  * Returns an unsigned PSBT for the user to sign.
17098
17204
  */
17099
17205
  async withdrawToUser(params, accessToken) {
17100
- const res = await this.request("/transactions", {
17206
+ const res = await this.request("transactions", "/transactions", {
17101
17207
  method: "POST",
17102
17208
  headers: {
17103
17209
  Authorization: `Bearer ${accessToken}`
@@ -17117,7 +17223,7 @@ var RadfiProvider = class {
17117
17223
  * Sign and broadcast a withdraw transaction via Bound Exchange.
17118
17224
  */
17119
17225
  async signAndBroadcastWithdraw(params, accessToken) {
17120
- const res = await this.request("/transactions/sign", {
17226
+ const res = await this.request("transactions", "/transactions/sign", {
17121
17227
  method: "POST",
17122
17228
  headers: {
17123
17229
  Authorization: `Bearer ${accessToken}`
@@ -17145,7 +17251,7 @@ var RadfiProvider = class {
17145
17251
  * Get max spendable amount for a withdraw transaction (amount after fee).
17146
17252
  */
17147
17253
  async getMaxWithdrawable(params, accessToken) {
17148
- const res = await this.request("/transactions/max-spent", {
17254
+ const res = await this.request("transactions", "/transactions/max-spent", {
17149
17255
  method: "POST",
17150
17256
  headers: {
17151
17257
  Authorization: `Bearer ${accessToken}`
@@ -17206,9 +17312,10 @@ var RadfiProvider = class {
17206
17312
  );
17207
17313
  }
17208
17314
  }
17209
- async request(endpoint, options) {
17210
- const signed = this.signer ? await this.signer({ method: options?.method ?? "GET", path: endpoint }) : void 0;
17211
- return fetch(`${this.config.apiUrl}${endpoint}`, {
17315
+ async request(host, endpoint, options) {
17316
+ const baseUrl = this.hosts[host];
17317
+ const signed = this.signer ? await this.signer({ method: options?.method ?? "GET", path: endpoint, baseUrl }) : void 0;
17318
+ return fetch(`${baseUrl}${endpoint}`, {
17212
17319
  ...options,
17213
17320
  headers: {
17214
17321
  "Content-Type": "application/json",
@@ -30499,13 +30606,13 @@ var SwapService = class {
30499
30606
  getIntentRelayChainId(params.srcChainKey) === params.intent.srcChain,
30500
30607
  `srcChainKey (${params.srcChainKey}) does not match intent.srcChain (${params.intent.srcChain}). Expected relay chain id ${getIntentRelayChainId(params.srcChainKey)}.`
30501
30608
  );
30502
- const intentsContract = this.solver.intentsContract;
30609
+ const relayData = this.buildCancelRelayData(params.intent);
30503
30610
  const coreParams = {
30504
30611
  srcChainKey: params.srcChainKey,
30505
- srcAddress: reverseEncodeAddress(params.srcChainKey, params.intent.srcAddress),
30612
+ srcAddress: await this.resolveCancelSrcAddress(_params),
30506
30613
  dstChainKey: HUB_CHAIN_KEY,
30507
- dstAddress: params.intent.creator,
30508
- payload: encodeContractCalls([EvmSolverService.encodeCancelIntent(params.intent, intentsContract)]),
30614
+ dstAddress: relayData.address,
30615
+ payload: relayData.payload,
30509
30616
  skipSimulation: params.skipSimulation
30510
30617
  };
30511
30618
  const sendMessageParams = _params.raw ? {
@@ -30534,12 +30641,15 @@ var SwapService = class {
30534
30641
  * 1. Calls `createCancelIntent` to broadcast the cancel transaction on the spoke chain.
30535
30642
  * 2. Verifies the spoke transaction.
30536
30643
  * 3. For non-hub source chains: submits to the relayer and polls until the cancel packet
30537
- * is delivered to the hub. For hub source chains, the spoke tx hash is reused directly.
30644
+ * is delivered to the hub. Solana submits the cancel payload alongside the tx (the spoke tx
30645
+ * only carries its hash) and Bitcoin relays its signed on-demand payload — see
30646
+ * {@link buildCancelRelayIdentity}. For hub source chains, the spoke tx hash is reused directly.
30538
30647
  *
30539
30648
  * @param _params - Cancel params including `srcChainKey`, the `intent`, wallet provider, and
30540
30649
  * an optional `timeout` in milliseconds.
30541
30650
  * @returns A `Result` containing `TxHashPair`:
30542
- * - `srcChainTxHash` — cancel tx hash on the source spoke chain.
30651
+ * - `srcChainTxHash` — cancel tx hash on the source spoke chain (Bitcoin: the relay's derived
30652
+ * `od:<hash>` id, since an on-demand cancel broadcasts no spoke tx).
30543
30653
  * - `dstChainTxHash` — hub-chain (Sonic) tx hash confirming the cancellation.
30544
30654
  */
30545
30655
  async cancelIntent(_params) {
@@ -30553,41 +30663,100 @@ var SwapService = class {
30553
30663
  chainKey: params.srcChainKey
30554
30664
  });
30555
30665
  if (!verifyTxHashResult.ok) return verifyTxHashResult;
30556
- let dstIntentTxHash;
30557
- if (!isHubChainKey(params.srcChainKey)) {
30558
- const intentRelayChainId = params.intent.srcChain.toString();
30559
- const submitPayload = {
30560
- action: "submit",
30561
- params: {
30562
- chain_id: intentRelayChainId,
30563
- tx_hash: cancelTxHash
30564
- }
30565
- };
30566
- const submitResult = await this.submitIntent(submitPayload);
30567
- if (!submitResult.ok) return submitResult;
30568
- const packet = await waitUntilIntentExecuted({
30569
- intentRelayChainId,
30570
- srcTxHash: cancelTxHash,
30571
- timeout: _params.timeout,
30572
- apiUrl: this.relayerApiEndpoint
30573
- });
30574
- if (!packet.ok) return packet;
30575
- dstIntentTxHash = packet.value.dst_tx_hash;
30576
- } else {
30577
- dstIntentTxHash = cancelTxHash;
30666
+ if (isHubChainKey(params.srcChainKey)) {
30667
+ return { ok: true, value: { srcChainTxHash: cancelTxHash, dstChainTxHash: cancelTxHash } };
30578
30668
  }
30579
- return { ok: true, value: { srcChainTxHash: cancelTxHash, dstChainTxHash: dstIntentTxHash } };
30669
+ const relayIdentity = this.buildCancelRelayIdentity(params.srcChainKey, cancelTxHash, params.intent);
30670
+ const packet = await relayTxAndWaitPacket({
30671
+ ...relayIdentity,
30672
+ chainKey: params.srcChainKey,
30673
+ relayerApiEndpoint: this.relayerApiEndpoint,
30674
+ timeout: _params.timeout
30675
+ });
30676
+ if (!packet.ok) return packet;
30677
+ return {
30678
+ ok: true,
30679
+ value: {
30680
+ srcChainTxHash: relayIdentity.pollTxHash ?? cancelTxHash,
30681
+ dstChainTxHash: packet.value.dst_tx_hash
30682
+ }
30683
+ };
30580
30684
  } catch (error) {
30581
30685
  if (isSwapError(error)) return { ok: false, error };
30582
30686
  return { ok: false, error: executionFailed("swap", error, { action: "cancelIntent" }) };
30583
30687
  }
30584
30688
  }
30689
+ /**
30690
+ * Source address the cancel `sendMessage` originates from.
30691
+ *
30692
+ * Every chain but Bitcoin signs from the address stored on the intent. A Bitcoin TRADING-mode intent
30693
+ * stores the trading address, yet the spoke layer expects the personal wallet: it re-derives the
30694
+ * trading wallet from it and picks the message-signing scheme from its address type. So Bitcoin
30695
+ * TRADING takes `params.srcAddress`, else the wallet provider's address (raw has no provider).
30696
+ */
30697
+ async resolveCancelSrcAddress(_params) {
30698
+ const { params } = _params;
30699
+ if (params.srcAddress !== void 0) return params.srcAddress;
30700
+ if (isBitcoinChainKeyType(params.srcChainKey) && this.spoke.bitcoin.walletMode === "TRADING") {
30701
+ const walletProvider = _params.walletProvider;
30702
+ invariant(
30703
+ walletProvider !== void 0 && isBitcoinWalletProviderType(walletProvider),
30704
+ "Bitcoin TRADING-mode cancel needs the personal wallet address: pass params.srcAddress for raw: true"
30705
+ );
30706
+ return await walletProvider.getWalletAddress();
30707
+ }
30708
+ return reverseEncodeAddress(params.srcChainKey, params.intent.srcAddress);
30709
+ }
30710
+ /**
30711
+ * Relay extra data (`{ address, payload }`) for cancelling `intent`, for callers that relay a
30712
+ * `createCancelIntent` transaction themselves (`raw` mode or manual relay control).
30713
+ *
30714
+ * Solana commits only the hash of the cancel payload on-chain, so the relayer needs this alongside
30715
+ * the spoke tx; other chains ignore it. It is the cancel counterpart of {@link reconstructRelayData}:
30716
+ * the create-intent extra data does not match a cancel tx. Bitcoin cancels are on-demand instead —
30717
+ * relay the signed payload `createCancelIntent` returns via `BitcoinSpokeService.getOnDemandRelayIdentity`.
30718
+ *
30719
+ * @param intent - The intent being cancelled (e.g. from `getIntent(txHash)`).
30720
+ * @returns A `Result` containing `RelayExtraData`: `{ address: Hex; payload: Hex }`.
30721
+ */
30722
+ getCancelIntentRelayData(intent) {
30723
+ try {
30724
+ invariant(this.config.isValidIntentRelayChainId(intent.srcChain), `Invalid intent.srcChain: ${intent.srcChain}`);
30725
+ return { ok: true, value: this.buildCancelRelayData(intent) };
30726
+ } catch (error) {
30727
+ return { ok: false, error };
30728
+ }
30729
+ }
30730
+ /**
30731
+ * Relay extra data for a cancel: the hub wallet that owns the intent and the `cancelIntent` call it
30732
+ * executes. This is exactly what `createCancelIntent` sends on-chain, so split-tx chains (Solana),
30733
+ * whose spoke tx carries only the payload hash, can hand the relayer the full payload.
30734
+ */
30735
+ buildCancelRelayData(intent) {
30736
+ return {
30737
+ address: intent.creator,
30738
+ payload: encodeContractCalls([EvmSolverService.encodeCancelIntent(intent, this.solver.intentsContract)])
30739
+ };
30740
+ }
30741
+ /**
30742
+ * Relay submit/poll identity for a cancel, mirroring the money market's on-demand handling.
30743
+ *
30744
+ * A Bitcoin cancel broadcasts no spoke tx: `sendMessage` returns a signed payload JSON that the relay
30745
+ * accepts under the literal `withdraw` tx_hash and tracks under a derived `od:<hash>` id (see
30746
+ * {@link BitcoinSpokeService.getOnDemandRelayIdentity}). Every other chain relays and polls by its
30747
+ * spoke tx hash and passes the cancel relay data, which the relayer needs on Solana and ignores elsewhere.
30748
+ */
30749
+ buildCancelRelayIdentity(srcChainKey, tx, intent) {
30750
+ return isBitcoinChainKeyType(srcChainKey) ? this.spoke.bitcoin.getOnDemandRelayIdentity(tx) : { srcTxHash: tx, data: this.buildCancelRelayData(intent), pollTxHash: void 0 };
30751
+ }
30585
30752
  /**
30586
30753
  * Returns the relay extra data (`address` + `payload`) required to submit an intent to the relayer API.
30587
30754
  *
30588
- * Currently only required when the source chain is Solana or Bitcoin, where extra call data must be
30589
- * bundled with the relay submission. On other chains this is derived automatically inside
30590
- * `createIntent`.
30755
+ * Only required when the source chain is Solana or Bitcoin, whose deposits commit a hash of the relay
30756
+ * payload on-chain, so the relayer needs the exact bytes bundled with the submission. For an intent
30757
+ * created by {@link SwapService.createIntent} the payload is byte-identical to the `relayData` that
30758
+ * call returned; see {@link SwapService.reconstructRelayData}, which this delegates to, for the
30759
+ * derivation and the one intent shape it cannot reconstruct.
30591
30760
  *
30592
30761
  * Accepts either a hub-chain tx hash (will fetch the intent on-chain first) or a
30593
30762
  * pre-fetched `Intent` object directly.
@@ -30596,35 +30765,28 @@ var SwapService = class {
30596
30765
  * @returns A `Result` containing `RelayExtraData`: `{ address: Hex; payload: Hex }`.
30597
30766
  */
30598
30767
  async getIntentSubmitTxExtraData(params) {
30599
- try {
30600
- let intent;
30601
- if ("txHash" in params) {
30602
- const intentResult = await this.getIntent(params.txHash);
30603
- if (!intentResult.ok) return intentResult;
30604
- intent = intentResult.value;
30605
- } else {
30606
- intent = params.intent;
30607
- }
30608
- const txData = EvmSolverService.encodeCreateIntent(intent, this.solver.intentsContract);
30609
- return {
30610
- ok: true,
30611
- value: {
30612
- address: intent.creator,
30613
- payload: txData.data
30614
- }
30615
- };
30616
- } catch (error) {
30617
- return { ok: false, error };
30768
+ if ("txHash" in params) {
30769
+ const intentResult = await this.getIntent(params.txHash);
30770
+ if (!intentResult.ok) return intentResult;
30771
+ return this.reconstructRelayData(intentResult.value);
30618
30772
  }
30773
+ return this.reconstructRelayData(params.intent);
30619
30774
  }
30620
30775
  /**
30621
- * Re-derives the byte-identical relay extra data (`{ address, payload }`) for a swap intent from a
30622
- * fully-populated `Intent` alone — no on-chain call, no original `createIntent` return value needed.
30776
+ * Re-derives the byte-identical relay extra data (`{ address, payload }`) for an intent created by
30777
+ * {@link SwapService.createIntent} (or `swap` / `createLimitOrderIntent`) from a fully-populated
30778
+ * `Intent` alone — no on-chain call, no original `createIntent` return value needed.
30623
30779
  *
30624
30780
  * The `payload` matches exactly what `createIntent` relayed when the intent was first created:
30625
30781
  * - Sonic-hub source — raw `createIntent(intent)` calldata.
30626
30782
  * - Any spoke source — the `[approve, createIntent]` multicall (uniform across all spokes).
30627
30783
  *
30784
+ * Not reconstructable: a `LeverageYieldService.vaultSwap` / `createVaultIntent` intent with
30785
+ * `hubWalletSwap`. Its `srcChain` is the hub while the relayed payload is the spoke multicall sent
30786
+ * through `sendMessage`, so it is indistinguishable here from a Sonic-source swap and would yield raw
30787
+ * `createIntent` calldata. Keep the `relayData` that call returned, or use
30788
+ * `sodax.api.leverageYield.getIntentSubmitTxExtraData`.
30789
+ *
30628
30790
  * Byte-identity is possible because the only originally-random field, `intentId`, is already
30629
30791
  * carried on the `Intent`; everything else in the payload is a pure function of the intent and
30630
30792
  * the configured intents contract. Use this to rebuild relay submission data for a manual relay
@@ -45397,4 +45559,4 @@ var isPartnerError = isCodeMember(PARTNER_CODES);
45397
45559
  (*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
45398
45560
  */
45399
45561
 
45400
- export { ALLOWANCE_CHECK_CODES, APPROVE_CODES, AssetService, BACKEND_API_BASE_PATH, BITCOIN_CHAIN_KEYS, BITCOIN_CHAIN_KEYS_SET, BITCOIN_DUST_SATS, BTC_WALLET_ADDRESS_TYPES, BackendApiService, BackendHttpError, BalnSwapService, BigIntToHex, BigNumberZeroDecimal, BitcoinSpokeService, BnUSDMigrationService, BridgeApiService, BridgeService, CHAIN_KEYS, CHAIN_LOGO_BASE_URL, CONFIG_VERSION, CREATE_INTENT_CODES, ChainKeys, ChainTypeArr, ClService, ConfigService, CustomSorobanServer, CustomStellarAccount, DEFAULT_API_BASE_URL, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, DEFAULT_SPONSORING_API_ENDPOINT, DETAILED_STATUS_NOT_DELIVERED, DexService, EVM_CHAIN_ID_TO_KEY, EVM_CHAIN_KEYS, EVM_CHAIN_KEYS_SET, EVM_SPOKE_ONLY_CHAIN_KEYS, EVM_SPOKE_ONLY_CHAIN_KEYS_SET, Erc20Service, Erc4626Service, EvmAssetManagerService, EvmHubProvider, EvmSolverService, EvmSpokeService, EvmVaultTokenService, FEE_PERCENTAGE_SCALE, GAS_ESTIMATION_CODES, HALF_RAY, HALF_WAD, HUB_CHAIN_KEY, HookKind, HookService, HttpRelayError, HubVaultSymbols, ICON_CHAIN_KEYS, ICON_CHAIN_KEYS_SET, ICON_TX_RESULT_WAIT_MAX_RETRY, INJECTIVE_CHAIN_KEYS, INJECTIVE_CHAIN_KEYS_SET, INTENT_CHAIN_IDS, IconSpokeService, IcxMigrationService, Injective20Token, InjectiveSpokeService, IntentCreatedEventAbi, IntentDataService, IntentDataType, IntentFilledEventAbi, IntentRelayChainIdToChainKey, IntentsAbi, LOOKUP_CODES, LTV_PRECISION, LendingPoolService, LeverageYieldApiService, LeverageYieldService, LockupMultiplier, LockupPeriod, LsodaSymbols, LsodaTokens, MAX_UINT256, MigrationService, MintPositionEventAbi, MoneyMarketDataService, MoneyMarketService, NEAR_CHAIN_KEYS, NEAR_CHAIN_KEYS_SET, NEAR_DEFAULT_GAS, NEAR_STORAGE_DEPOSIT, NearSpokeService, ORACLE_CANDLE_INTERVALS, PartnerFeeClaimService, PartnerService, Permit2Service, ProtocolIntentsAbi, RAY, RAY_DECIMALS, RELAY_ERROR_CODES, RELAY_FALLBACK_FLOOR_MS, RELAY_REQUEST_TIMEOUT_MS, RadfiApiError, RadfiProvider, RecoveryService, RelayChainIdMap, SECONDS_PER_YEAR, SODAX_ERROR_CODES, SODAX_FEATURES, SOLANA_CHAIN_KEYS, SOLANA_CHAIN_KEYS_SET, SONIC_CHAIN_KEYS, SONIC_CHAIN_KEYS_SET, SPEED_TIER_SECONDS, SPEED_TIER_THRESHOLDS, SPONSORING_API_ERROR_CODES, SPONSORING_API_STELLAR_BASE_PATH, SPONSOR_CONFIG_TTL_MS, STACKS_CHAIN_KEYS, STACKS_CHAIN_KEYS_SET, STELLAR_BASE_RESERVE_TTL_MS, STELLAR_CHAIN_KEYS, STELLAR_CHAIN_KEYS_SET, STELLAR_TRUSTLINE_MIN_XLM_STROOPS, SUI_CHAIN_KEYS, SUI_CHAIN_KEYS_SET, SodaTokens, Sodax, SodaxError, SolanaSpokeService, SolverApiService, SolverIntentErrorCode, SolverIntentStatusCode, SonicSpokeService, SpokeService, SponsoringApiService, SponsoringService, StacksSpokeService, StakingLogic, StakingService, StatATokenAddresses, StellarSpokeService, SuiGrpcTransport, SuiSpokeService, SupportedMigrationTokens, SwapService, SwapsApiService, TOKEN_LOGO_BASE_URL, USD_DECIMALS, UiPoolDataProviderService, VAULT_TOKEN_DECIMALS, WAD, WAD_RAY_RATIO, WEI_DECIMALS, adjustAmountByFee, allowanceCheckFailed, apiConfig, approveFailed, arbitrumSupportedTokens, assetManagerAbi, avalancheSupportedTokens, balnSwapAbi, baseChainInfo, baseSupportedTokens, binomialApproximatedRayPow, bitcoinSupportedTokens, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bridgeConfig, bridgeInvariant, bscSupportedTokens, calcOpReturnOutputVbytes, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, canonicalizeBitcoinAddress, clPoolAbi, clPoolManagerAbi, clPositionManagerAbi, clQuoterAbi, clRouterAbi, clTickLensAbi, classifySponsorError, concentratedLiquidityConfig, connectionAbi, consoleLogger, convertTransactionInstructionToRaw, createBalanceCollector, createInvariant, deepMerge, defaultHookAbi, detectBitcoinAddressType, dexConfig, dexInvariant, dexPools, encodeAddress, encodeBtcPayloadToBytes, encodeContractCalls, encodeTokenIdentifier, erc20Abi, erc4626Abi, estimateBitcoinTxSize, estimateSwapSpeedTier, ethereumSupportedTokens, executionFailed, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, gasEstimationFailed, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getAssetManagerIdl, getAssetManagerProgram, getChainKeyFromRelayChainId, getChainType, getCompoundedBalance, getConcentratedLiquidityConfig, getConnectionIdl, getConnectionProgram, getEvmChainKeyByChainId, getEvmViemChain, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getProvider, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeHook, getSpokeHooks, getStagingSolverTokens, getSupportedSolverTokens, getTransactionPackets, getbnUSDToken, hederaSupportedTokens, hexToBigInt, hexToSolanaAddress, hubConfig, hyper, hyperevmSupportedTokens, iconSupportedTokens, injectiveSupportedTokens, intentCreationFailed, isApprovalSupportedChainKeyType, isAuthFailure, isAuthStatus, isBackendHttpError, isBalnMigrateParams, isBitcoinChainKey, isBitcoinChainKeyType, isBitcoinWalletProviderType, isBridgeAllowanceCheckError, isBridgeApproveError, isBridgeCreateIntentError, isBridgeError, isBridgeLookupError, isBridgeOrchestrationError, isCodeMember, isDexApproveError, isDexCreateIntentError, isDexError, isEvmChainKey, isEvmChainKeyType, isEvmSpokeChainConfig, isEvmSpokeOnlyChainKey, isEvmSpokeOnlyChainKeyType, isEvmWalletProviderType, isFeatureError, isFillEvent, isHookSupportedToken, isHubChainKey, isHubChainKeyType, isIconAddress, isIconChainKey, isIconChainKeyType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveChainKey, isInjectiveChainKeyType, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isLeverageYieldAllowanceCheckError, isLeverageYieldApproveError, isLeverageYieldCreateIntentError, isLeverageYieldError, isLeverageYieldLookupError, isLeverageYieldPostExecutionError, isLeverageYieldSwapError, isMigrateOrchestrationError, isMigrationAllowanceCheckError, isMigrationApproveError, isMigrationCreateIntentError, isMigrationError, isMigrationLookupError, isMoneyMarketAllowanceCheckError, isMoneyMarketApproveError, isMoneyMarketCreateIntentError, isMoneyMarketError, isMoneyMarketGasEstimationError, isMoneyMarketOrchestrationError, isNativeBitcoinToken, isNativeBitcoinTransfer, isNativeToken, isNearChainKey, isNearChainKeyType, isNewbnUSDChainId, isNewbnUSDToken, isOptionalBitcoinWalletProviderType, isOptionalEvmWalletProviderType, isOptionalStellarWalletProviderType, isOracleCandleInterval, isPartnerError, isPartnerFeeAmount, isPartnerFeePercentage, isPostExecutionError, isRawDestinationParams, isRecoveryError, isResponseAddressType, isResponseSigningType, isRevertMigrationOrchestrationError, isSodaxError, isSolanaChainKey, isSolanaChainKeyType, isSolanaNativeToken, isSonicChainKey, isSonicChainKeyType, isSpokeApproveParamsEvmSpoke, isSpokeApproveParamsHub, isSpokeApproveParamsStellar, isSpokeChainKey, isSpokeIsAllowanceValidParamsEvmSpoke, isSpokeIsAllowanceValidParamsHub, isSpokeIsAllowanceValidParamsStellar, isSponsoringConfigError, isSponsoringLookupError, isSponsoringOrchestrationError, isStacksChainKey, isStacksChainKeyType, isStakeOrchestrationError, isStakingAllowanceCheckError, isStakingApproveError, isStakingCreateIntentError, isStakingError, isStakingInfoFetchError, isStakingOrchestrationError, isStellarChainKey, isStellarChainKeyType, isStellarWalletProviderType, isSuiChainKey, isSuiChainKeyType, isSupportedBitcoinAddressType, isSwapCreateIntentError, isSwapError, isSwapSupportedToken, isUndefinedOrValidWalletProviderForChainKey, isUnifiedBnUSDMigrateParams, isValidBitcoinAddress, isValidInjectiveAddress, isValidNearAccountId, isValidWalletProviderForChainKey, kaiaSupportedTokens, leverageYieldConfig, leverageYieldInvariant, leverageYieldVaults, lightlinkSupportedTokens, lookupFailed, mapRelayFailure, mergeSodaxConfig, messageOf, migrationInvariant, mintPositionParamsAbi, mmInvariant, modifyLiquidityParamsAbi, moneyMarketConfig, moneyMarketReserveAssets, moneyMarketSupportedTokens, nativeToUSD, nearSupportedTokens, newbnUSDSpokeChainIds, noopAnalytics, normalize, normalizeBN, normalizePsbtToBase64, normalizeSignatureToBase64, normalizedToUsd, optimismSupportedTokens, pancakeSwapInfinityDefaultHookAbi, pancakeSwapInfinityPoolManagerAbi, pancakeSwapInfinityPositionManagerAbi, parseToStroops, parseTokenArrayFromJson, partnerInvariant, permit2Abi, polygonSupportedTokens, poolAbi, poolKeyAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, recoveryInvariant, redbellySupportedTokens, relayConfig, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, resolveAnalytics, resolveLogger, retry, reverseEncodeAddress, robinhoodChain, robinhoodSupportedTokens, serializeAddressData, settleWalletBalances, silentLogger, sleep, sodaxConfig, sodaxInvariant, solanaSupportedTokens, solverConfig, sonicSupportedTokens, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainKeysSet, spokeHooks, sponsoringInvariant, stacksSupportedTokens, stagingSwapSupportedTokens, stakedSodaAbi, stakingInvariant, stakingRouterAbi, stataTokenFactoryAbi, stellarSupportedTokens, submitTransaction, suiSupportedTokens, supportedSpokeChains, supportedTokensByChain, swapExactInSingleParamsAbi, swapInvariant, swapSupportedTokens, swapsConfig, toCreateBridgeIntentParamsV2, toSuiExecutionResult, toSuiExecutionStatus, toSuiPaginatedCoins, tokenLogo, tokenLogoSlug, uiPoolDataAbi, universalRouterAbi, unknownFailed, usesBip322MessageSigning, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, verifyFailed, wadToRay, waitForStacksTransaction, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
45562
+ export { ALLOWANCE_CHECK_CODES, APPROVE_CODES, AssetService, BACKEND_API_BASE_PATH, BITCOIN_CHAIN_KEYS, BITCOIN_CHAIN_KEYS_SET, BITCOIN_DUST_SATS, BOUND_API_HOST, BOUND_COMPANION_HOSTS, BTC_WALLET_ADDRESS_TYPES, BackendApiService, BackendHttpError, BalnSwapService, BigIntToHex, BigNumberZeroDecimal, BitcoinSpokeService, BnUSDMigrationService, BridgeApiService, BridgeService, CHAIN_KEYS, CHAIN_LOGO_BASE_URL, CONFIG_VERSION, CREATE_INTENT_CODES, ChainKeys, ChainTypeArr, ClService, ConfigService, CustomSorobanServer, CustomStellarAccount, DEFAULT_API_BASE_URL, DEFAULT_BACKEND_API_ENDPOINT, DEFAULT_BACKEND_API_HEADERS, DEFAULT_BACKEND_API_TIMEOUT, DEFAULT_DEADLINE_OFFSET, DEFAULT_MAX_RETRY, DEFAULT_RELAYER_API_ENDPOINT, DEFAULT_RELAY_TX_TIMEOUT, DEFAULT_RETRY_DELAY_MS, DEFAULT_SPONSORING_API_ENDPOINT, DEPRECATED_BOUND_HOSTS, DETAILED_STATUS_NOT_DELIVERED, DexService, EVM_CHAIN_ID_TO_KEY, EVM_CHAIN_KEYS, EVM_CHAIN_KEYS_SET, EVM_SPOKE_ONLY_CHAIN_KEYS, EVM_SPOKE_ONLY_CHAIN_KEYS_SET, Erc20Service, Erc4626Service, EvmAssetManagerService, EvmHubProvider, EvmSolverService, EvmSpokeService, EvmVaultTokenService, FEE_PERCENTAGE_SCALE, GAS_ESTIMATION_CODES, HALF_RAY, HALF_WAD, HUB_CHAIN_KEY, HookKind, HookService, HttpRelayError, HubVaultSymbols, ICON_CHAIN_KEYS, ICON_CHAIN_KEYS_SET, ICON_TX_RESULT_WAIT_MAX_RETRY, INJECTIVE_CHAIN_KEYS, INJECTIVE_CHAIN_KEYS_SET, INTENT_CHAIN_IDS, IconSpokeService, IcxMigrationService, Injective20Token, InjectiveSpokeService, IntentCreatedEventAbi, IntentDataService, IntentDataType, IntentFilledEventAbi, IntentRelayChainIdToChainKey, IntentsAbi, LOOKUP_CODES, LTV_PRECISION, LendingPoolService, LeverageYieldApiService, LeverageYieldService, LockupMultiplier, LockupPeriod, LsodaSymbols, LsodaTokens, MAX_UINT256, MigrationService, MintPositionEventAbi, MoneyMarketDataService, MoneyMarketService, NEAR_CHAIN_KEYS, NEAR_CHAIN_KEYS_SET, NEAR_DEFAULT_GAS, NEAR_STORAGE_DEPOSIT, NearSpokeService, ORACLE_CANDLE_INTERVALS, PartnerFeeClaimService, PartnerService, Permit2Service, ProtocolIntentsAbi, RAY, RAY_DECIMALS, RELAY_ERROR_CODES, RELAY_FALLBACK_FLOOR_MS, RELAY_REQUEST_TIMEOUT_MS, RadfiApiError, RadfiProvider, RecoveryService, RelayChainIdMap, SECONDS_PER_YEAR, SODAX_ERROR_CODES, SODAX_FEATURES, SOLANA_CHAIN_KEYS, SOLANA_CHAIN_KEYS_SET, SONIC_CHAIN_KEYS, SONIC_CHAIN_KEYS_SET, SPEED_TIER_SECONDS, SPEED_TIER_THRESHOLDS, SPONSORING_API_ERROR_CODES, SPONSORING_API_STELLAR_BASE_PATH, SPONSOR_CONFIG_TTL_MS, STACKS_CHAIN_KEYS, STACKS_CHAIN_KEYS_SET, STELLAR_BASE_RESERVE_TTL_MS, STELLAR_CHAIN_KEYS, STELLAR_CHAIN_KEYS_SET, STELLAR_TRUSTLINE_MIN_XLM_STROOPS, SUI_CHAIN_KEYS, SUI_CHAIN_KEYS_SET, SodaTokens, Sodax, SodaxError, SolanaSpokeService, SolverApiService, SolverIntentErrorCode, SolverIntentStatusCode, SonicSpokeService, SpokeService, SponsoringApiService, SponsoringService, StacksSpokeService, StakingLogic, StakingService, StatATokenAddresses, StellarSpokeService, SuiGrpcTransport, SuiSpokeService, SupportedMigrationTokens, SwapService, SwapsApiService, TOKEN_LOGO_BASE_URL, USD_DECIMALS, UiPoolDataProviderService, VAULT_TOKEN_DECIMALS, WAD, WAD_RAY_RATIO, WEI_DECIMALS, adjustAmountByFee, allowanceCheckFailed, apiConfig, approveFailed, arbitrumSupportedTokens, assetManagerAbi, avalancheSupportedTokens, balnSwapAbi, baseChainInfo, baseSupportedTokens, binomialApproximatedRayPow, bitcoinSupportedTokens, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bridgeConfig, bridgeInvariant, bscSupportedTokens, calcOpReturnOutputVbytes, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, canonicalizeBitcoinAddress, clPoolAbi, clPoolManagerAbi, clPositionManagerAbi, clQuoterAbi, clRouterAbi, clTickLensAbi, classifySponsorError, concentratedLiquidityConfig, connectionAbi, consoleLogger, convertTransactionInstructionToRaw, createBalanceCollector, createInvariant, deepMerge, defaultHookAbi, detectBitcoinAddressType, dexConfig, dexInvariant, dexPools, encodeAddress, encodeBtcPayloadToBytes, encodeContractCalls, encodeTokenIdentifier, erc20Abi, erc4626Abi, estimateBitcoinTxSize, estimateSwapSpeedTier, ethereumSupportedTokens, executionFailed, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, gasEstimationFailed, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getAssetManagerIdl, getAssetManagerProgram, getChainKeyFromRelayChainId, getChainType, getCompoundedBalance, getConcentratedLiquidityConfig, getConnectionIdl, getConnectionProgram, getEvmChainKeyByChainId, getEvmViemChain, getIconAddressBytes, getIntentRelayChainId, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getProvider, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getSolverConfig, getSpokeHook, getSpokeHooks, getStagingSolverTokens, getSupportedSolverTokens, getTransactionPackets, getbnUSDToken, hederaSupportedTokens, hexToBigInt, hexToSolanaAddress, hubConfig, hyper, hyperevmSupportedTokens, iconSupportedTokens, injectiveSupportedTokens, intentCreationFailed, isApprovalSupportedChainKeyType, isAuthFailure, isAuthStatus, isBackendHttpError, isBalnMigrateParams, isBitcoinChainKey, isBitcoinChainKeyType, isBitcoinWalletProviderType, isBridgeAllowanceCheckError, isBridgeApproveError, isBridgeCreateIntentError, isBridgeError, isBridgeLookupError, isBridgeOrchestrationError, isCodeMember, isDexApproveError, isDexCreateIntentError, isDexError, isEvmChainKey, isEvmChainKeyType, isEvmSpokeChainConfig, isEvmSpokeOnlyChainKey, isEvmSpokeOnlyChainKeyType, isEvmWalletProviderType, isFeatureError, isFillEvent, isHookSupportedToken, isHubChainKey, isHubChainKeyType, isIconAddress, isIconChainKey, isIconChainKeyType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveChainKey, isInjectiveChainKeyType, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isLeverageYieldAllowanceCheckError, isLeverageYieldApproveError, isLeverageYieldCreateIntentError, isLeverageYieldError, isLeverageYieldLookupError, isLeverageYieldPostExecutionError, isLeverageYieldSwapError, isMigrateOrchestrationError, isMigrationAllowanceCheckError, isMigrationApproveError, isMigrationCreateIntentError, isMigrationError, isMigrationLookupError, isMoneyMarketAllowanceCheckError, isMoneyMarketApproveError, isMoneyMarketCreateIntentError, isMoneyMarketError, isMoneyMarketGasEstimationError, isMoneyMarketOrchestrationError, isNativeBitcoinToken, isNativeBitcoinTransfer, isNativeToken, isNearChainKey, isNearChainKeyType, isNewbnUSDChainId, isNewbnUSDToken, isOptionalBitcoinWalletProviderType, isOptionalEvmWalletProviderType, isOptionalStellarWalletProviderType, isOracleCandleInterval, isPartnerError, isPartnerFeeAmount, isPartnerFeePercentage, isPostExecutionError, isRawDestinationParams, isRealWorldAsset, isRecoveryError, isResponseAddressType, isResponseSigningType, isRevertMigrationOrchestrationError, isSodaxError, isSolanaChainKey, isSolanaChainKeyType, isSolanaNativeToken, isSonicChainKey, isSonicChainKeyType, isSpokeApproveParamsEvmSpoke, isSpokeApproveParamsHub, isSpokeApproveParamsStellar, isSpokeChainKey, isSpokeIsAllowanceValidParamsEvmSpoke, isSpokeIsAllowanceValidParamsHub, isSpokeIsAllowanceValidParamsStellar, isSponsoringConfigError, isSponsoringLookupError, isSponsoringOrchestrationError, isStacksChainKey, isStacksChainKeyType, isStakeOrchestrationError, isStakingAllowanceCheckError, isStakingApproveError, isStakingCreateIntentError, isStakingError, isStakingInfoFetchError, isStakingOrchestrationError, isStellarChainKey, isStellarChainKeyType, isStellarWalletProviderType, isSuiChainKey, isSuiChainKeyType, isSupportedBitcoinAddressType, isSwapCreateIntentError, isSwapError, isSwapSupportedToken, isUndefinedOrValidWalletProviderForChainKey, isUnifiedBnUSDMigrateParams, isValidBitcoinAddress, isValidInjectiveAddress, isValidNearAccountId, isValidWalletProviderForChainKey, kaiaSupportedTokens, leverageYieldConfig, leverageYieldInvariant, leverageYieldVaults, lightlinkSupportedTokens, lookupFailed, mapRelayFailure, mergeSodaxConfig, messageOf, migrationInvariant, mintPositionParamsAbi, mmInvariant, modifyLiquidityParamsAbi, moneyMarketConfig, moneyMarketReserveAssets, moneyMarketSupportedTokens, nativeToUSD, nearSupportedTokens, newbnUSDSpokeChainIds, noopAnalytics, normalize, normalizeBN, normalizePsbtToBase64, normalizeSignatureToBase64, normalizedToUsd, optimismSupportedTokens, pancakeSwapInfinityDefaultHookAbi, pancakeSwapInfinityPoolManagerAbi, pancakeSwapInfinityPositionManagerAbi, parseToStroops, parseTokenArrayFromJson, partnerInvariant, permit2Abi, polygonSupportedTokens, poolAbi, poolKeyAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, recoveryInvariant, redbellySupportedTokens, relayConfig, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, resolveAnalytics, resolveLogger, retry, reverseEncodeAddress, robinhoodChain, robinhoodSupportedTokens, serializeAddressData, settleWalletBalances, silentLogger, sleep, sodaxConfig, sodaxInvariant, solanaSupportedTokens, solverConfig, sonicSupportedTokens, sonicWalletFactoryAbi, spokeAssetManagerAbi, spokeChainConfig, spokeChainKeysSet, spokeHooks, sponsoringInvariant, stacksSupportedTokens, stagingSwapSupportedTokens, stakedSodaAbi, stakingInvariant, stakingRouterAbi, stataTokenFactoryAbi, stellarSupportedTokens, submitTransaction, suiSupportedTokens, supportedSpokeChains, supportedTokensByChain, swapExactInSingleParamsAbi, swapInvariant, swapSupportedTokens, swapsConfig, toCreateBridgeIntentParamsV2, toSuiExecutionResult, toSuiExecutionStatus, toSuiPaginatedCoins, tokenLogo, tokenLogoSlug, uiPoolDataAbi, universalRouterAbi, unknownFailed, usesBip322MessageSigning, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, verifyFailed, wadToRay, waitForStacksTransaction, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };