@sodax/sdk 1.3.1-beta-rc2 → 1.3.1-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { IconAddress, IInjectiveWalletProvider, InjectiveExecuteResponse, SolanaChainConfig, SolanaBase58PublicKey, SolanaRpcResponseAndContext, SolanaTokenAmount, SolanaRawTransactionInstruction, WalletAddressProvider, SolanaSerializedTransaction, ISolanaWalletProvider, StellarSpokeChainConfig, StellarRpcConfig, IStellarWalletProvider, SuiSpokeChainConfig, SuiPaginatedCoins, SuiExecutionResult, ISuiWalletProvider, NearSpokeChainConfig, CallContractParams, NearRawTransaction, TransferArgs, SendMsgArgs, FillData, INearWalletProvider, Address, Erc20Token, SpokeChainId, HttpUrl, Token, GetMoneyMarketTokensApiResponse, SolverConfig, HubAsset, OriginalAssetAddress, XToken, Hex as Hex$1, defaultSharedConfig, RadfiDepositTxResponse, BitcoinSpokeChainConfig, IBitcoinWalletProvider, AddressType, HubChainId, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, AssetInfo, TokenInfo, HubAddress, ChainId, EvmRawTransaction, EvmRawTransactionReceipt, ChainType, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, BaseSpokeChainConfig, IConfigApi, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, HubAssetInfo, IconEoaAddress, HubChainConfig, BridgeLimit } from '@sodax/types';
1
+ import { IconAddress, IInjectiveWalletProvider, InjectiveExecuteResponse, SolanaChainConfig, SolanaBase58PublicKey, SolanaRpcResponseAndContext, SolanaTokenAmount, SolanaRawTransactionInstruction, WalletAddressProvider, SolanaSerializedTransaction, ISolanaWalletProvider, StellarSpokeChainConfig, StellarRpcConfig, IStellarWalletProvider, SuiSpokeChainConfig, SuiPaginatedCoins, SuiExecutionResult, ISuiWalletProvider, NearSpokeChainConfig, CallContractParams, NearRawTransaction, TransferArgs, SendMsgArgs, FillData, INearWalletProvider, Address, Erc20Token, SpokeChainId, HttpUrl, Token, GetMoneyMarketTokensApiResponse, SolverConfig, HubAsset, OriginalAssetAddress, XToken, Hex as Hex$1, defaultSharedConfig, RadfiDepositTxResponse, BitcoinSpokeChainConfig, IBitcoinWalletProvider, AddressType, HubChainId, IconSpokeChainConfig, IIconWalletProvider, EvmHubChainConfig, EvmSpokeChainConfig, IEvmWalletProvider, SpokeChainConfig, SonicSpokeChainConfig, EvmChainId, InjectiveSpokeChainConfig, JsonObject, InjectiveRawTransaction, ConcentratedLiquidityConfig, AssetInfo, TokenInfo, HubAddress, ChainId, EvmRawTransaction, EvmRawTransactionReceipt, ChainType, Hash as Hash$1, IntentRelayChainId, StellarRawTransaction, MoneyMarketConfig, spokeChainConfig, ICON_MAINNET_CHAIN_ID, BaseSpokeChainConfig, IConfigApi, SubmitSwapTxRequest, SubmitSwapTxResponse, GetSubmitSwapTxStatusParams, SubmitSwapTxStatusResponse, GetAllConfigApiResponse, GetChainsApiResponse, GetSwapTokensApiResponse, GetSwapTokensByChainIdApiResponse, GetMoneyMarketReserveAssetsApiResponse, GetMoneyMarketTokensByChainIdApiResponse, GetHubAssetsApiResponse, GetHubAssetsByChainIdApiResponse, GetRelayChainIdMapApiResponse, GetSpokeChainConfigApiResponse, HubAssetInfo, IconEoaAddress, HubChainConfig, BridgeLimit } from '@sodax/types';
2
2
  export * from '@sodax/types';
3
3
  import * as viem from 'viem';
4
4
  import { Hex, Address as Address$1, PublicClient, HttpTransport, WalletClient, CustomTransport, Chain, Account as Account$1, Hash, GetLogsReturnType, TransactionReceipt } from 'viem';
@@ -11,6 +11,9 @@ import * as bitcoin from 'bitcoinjs-lib';
11
11
  import { SorobanRpc, rpc, Transaction, Memo, MemoType, Operation, FeeBumpTransaction, Horizon, Contract, Account, xdr } from '@stellar/stellar-sdk';
12
12
  import { ChainGrpcWasmApi, TxGrpcApi } from '@injectivelabs/sdk-ts';
13
13
  import { NetworkEndpoints } from '@injectivelabs/networks';
14
+ import { PoolKey } from '@pancakeswap/infinity-sdk';
15
+ export { CLPositionConfig, EncodedPoolKey, PoolKey, Slot0 } from '@pancakeswap/infinity-sdk';
16
+ import { Price, Token as Token$1 } from '@pancakeswap/swap-sdk-core';
14
17
  import BigNumber$1 from 'bignumber.js';
15
18
 
16
19
  declare const assetManagerAbi: readonly [{
@@ -5435,6 +5438,1615 @@ declare const stakingRouterAbi: readonly [{
5435
5438
  readonly type: "function";
5436
5439
  }];
5437
5440
 
5441
+ declare const clPoolManagerAbi: readonly [{
5442
+ readonly inputs: readonly [{
5443
+ readonly internalType: "address";
5444
+ readonly name: "tokenA";
5445
+ readonly type: "address";
5446
+ }, {
5447
+ readonly internalType: "address";
5448
+ readonly name: "tokenB";
5449
+ readonly type: "address";
5450
+ }, {
5451
+ readonly internalType: "uint24";
5452
+ readonly name: "fee";
5453
+ readonly type: "uint24";
5454
+ }, {
5455
+ readonly internalType: "int24";
5456
+ readonly name: "tickSpacing";
5457
+ readonly type: "int24";
5458
+ }, {
5459
+ readonly internalType: "uint160";
5460
+ readonly name: "sqrtPriceX96";
5461
+ readonly type: "uint160";
5462
+ }];
5463
+ readonly name: "createPool";
5464
+ readonly outputs: readonly [{
5465
+ readonly internalType: "address";
5466
+ readonly name: "pool";
5467
+ readonly type: "address";
5468
+ }];
5469
+ readonly stateMutability: "nonpayable";
5470
+ readonly type: "function";
5471
+ }, {
5472
+ readonly inputs: readonly [{
5473
+ readonly internalType: "address";
5474
+ readonly name: "tokenA";
5475
+ readonly type: "address";
5476
+ }, {
5477
+ readonly internalType: "address";
5478
+ readonly name: "tokenB";
5479
+ readonly type: "address";
5480
+ }, {
5481
+ readonly internalType: "uint24";
5482
+ readonly name: "fee";
5483
+ readonly type: "uint24";
5484
+ }];
5485
+ readonly name: "getPool";
5486
+ readonly outputs: readonly [{
5487
+ readonly internalType: "address";
5488
+ readonly name: "pool";
5489
+ readonly type: "address";
5490
+ }];
5491
+ readonly stateMutability: "view";
5492
+ readonly type: "function";
5493
+ }, {
5494
+ readonly inputs: readonly [{
5495
+ readonly components: readonly [{
5496
+ readonly internalType: "address";
5497
+ readonly name: "currency0";
5498
+ readonly type: "address";
5499
+ }, {
5500
+ readonly internalType: "address";
5501
+ readonly name: "currency1";
5502
+ readonly type: "address";
5503
+ }, {
5504
+ readonly internalType: "address";
5505
+ readonly name: "hooks";
5506
+ readonly type: "address";
5507
+ }, {
5508
+ readonly internalType: "address";
5509
+ readonly name: "poolManager";
5510
+ readonly type: "address";
5511
+ }, {
5512
+ readonly internalType: "uint24";
5513
+ readonly name: "fee";
5514
+ readonly type: "uint24";
5515
+ }, {
5516
+ readonly internalType: "bytes32";
5517
+ readonly name: "parameters";
5518
+ readonly type: "bytes32";
5519
+ }];
5520
+ readonly internalType: "struct PoolKey";
5521
+ readonly name: "key";
5522
+ readonly type: "tuple";
5523
+ }, {
5524
+ readonly internalType: "uint160";
5525
+ readonly name: "sqrtPriceX96";
5526
+ readonly type: "uint160";
5527
+ }];
5528
+ readonly name: "initialize";
5529
+ readonly outputs: readonly [];
5530
+ readonly stateMutability: "nonpayable";
5531
+ readonly type: "function";
5532
+ }, {
5533
+ readonly inputs: readonly [{
5534
+ readonly internalType: "bytes32";
5535
+ readonly name: "id";
5536
+ readonly type: "bytes32";
5537
+ }];
5538
+ readonly name: "getSlot0";
5539
+ readonly outputs: readonly [{
5540
+ readonly internalType: "uint160";
5541
+ readonly name: "sqrtPriceX96";
5542
+ readonly type: "uint160";
5543
+ }, {
5544
+ readonly internalType: "int24";
5545
+ readonly name: "tick";
5546
+ readonly type: "int24";
5547
+ }, {
5548
+ readonly internalType: "uint24";
5549
+ readonly name: "protocolFee";
5550
+ readonly type: "uint24";
5551
+ }, {
5552
+ readonly internalType: "uint24";
5553
+ readonly name: "lpFee";
5554
+ readonly type: "uint24";
5555
+ }];
5556
+ readonly stateMutability: "view";
5557
+ readonly type: "function";
5558
+ }];
5559
+ declare const clPositionManagerAbi: readonly [{
5560
+ readonly inputs: readonly [{
5561
+ readonly components: readonly [{
5562
+ readonly internalType: "address";
5563
+ readonly name: "token0";
5564
+ readonly type: "address";
5565
+ }, {
5566
+ readonly internalType: "address";
5567
+ readonly name: "token1";
5568
+ readonly type: "address";
5569
+ }, {
5570
+ readonly internalType: "uint24";
5571
+ readonly name: "fee";
5572
+ readonly type: "uint24";
5573
+ }, {
5574
+ readonly internalType: "int24";
5575
+ readonly name: "tickLower";
5576
+ readonly type: "int24";
5577
+ }, {
5578
+ readonly internalType: "int24";
5579
+ readonly name: "tickUpper";
5580
+ readonly type: "int24";
5581
+ }, {
5582
+ readonly internalType: "uint256";
5583
+ readonly name: "amount0Desired";
5584
+ readonly type: "uint256";
5585
+ }, {
5586
+ readonly internalType: "uint256";
5587
+ readonly name: "amount1Desired";
5588
+ readonly type: "uint256";
5589
+ }, {
5590
+ readonly internalType: "uint256";
5591
+ readonly name: "amount0Min";
5592
+ readonly type: "uint256";
5593
+ }, {
5594
+ readonly internalType: "uint256";
5595
+ readonly name: "amount1Min";
5596
+ readonly type: "uint256";
5597
+ }, {
5598
+ readonly internalType: "address";
5599
+ readonly name: "recipient";
5600
+ readonly type: "address";
5601
+ }, {
5602
+ readonly internalType: "uint256";
5603
+ readonly name: "deadline";
5604
+ readonly type: "uint256";
5605
+ }];
5606
+ readonly internalType: "struct INonfungiblePositionManager.MintParams";
5607
+ readonly name: "params";
5608
+ readonly type: "tuple";
5609
+ }];
5610
+ readonly name: "mint";
5611
+ readonly outputs: readonly [{
5612
+ readonly internalType: "uint256";
5613
+ readonly name: "tokenId";
5614
+ readonly type: "uint256";
5615
+ }, {
5616
+ readonly internalType: "uint128";
5617
+ readonly name: "liquidity";
5618
+ readonly type: "uint128";
5619
+ }, {
5620
+ readonly internalType: "uint256";
5621
+ readonly name: "amount0";
5622
+ readonly type: "uint256";
5623
+ }, {
5624
+ readonly internalType: "uint256";
5625
+ readonly name: "amount1";
5626
+ readonly type: "uint256";
5627
+ }];
5628
+ readonly stateMutability: "payable";
5629
+ readonly type: "function";
5630
+ }, {
5631
+ readonly inputs: readonly [{
5632
+ readonly components: readonly [{
5633
+ readonly internalType: "uint256";
5634
+ readonly name: "tokenId";
5635
+ readonly type: "uint256";
5636
+ }, {
5637
+ readonly internalType: "uint128";
5638
+ readonly name: "liquidity";
5639
+ readonly type: "uint128";
5640
+ }, {
5641
+ readonly internalType: "uint256";
5642
+ readonly name: "amount0Min";
5643
+ readonly type: "uint256";
5644
+ }, {
5645
+ readonly internalType: "uint256";
5646
+ readonly name: "amount1Min";
5647
+ readonly type: "uint256";
5648
+ }, {
5649
+ readonly internalType: "uint256";
5650
+ readonly name: "deadline";
5651
+ readonly type: "uint256";
5652
+ }];
5653
+ readonly internalType: "struct INonfungiblePositionManager.DecreaseLiquidityParams";
5654
+ readonly name: "params";
5655
+ readonly type: "tuple";
5656
+ }];
5657
+ readonly name: "decreaseLiquidity";
5658
+ readonly outputs: readonly [{
5659
+ readonly internalType: "uint256";
5660
+ readonly name: "amount0";
5661
+ readonly type: "uint256";
5662
+ }, {
5663
+ readonly internalType: "uint256";
5664
+ readonly name: "amount1";
5665
+ readonly type: "uint256";
5666
+ }];
5667
+ readonly stateMutability: "payable";
5668
+ readonly type: "function";
5669
+ }, {
5670
+ readonly inputs: readonly [{
5671
+ readonly components: readonly [{
5672
+ readonly internalType: "uint256";
5673
+ readonly name: "tokenId";
5674
+ readonly type: "uint256";
5675
+ }, {
5676
+ readonly internalType: "address";
5677
+ readonly name: "recipient";
5678
+ readonly type: "address";
5679
+ }, {
5680
+ readonly internalType: "uint256";
5681
+ readonly name: "amount0Max";
5682
+ readonly type: "uint256";
5683
+ }, {
5684
+ readonly internalType: "uint256";
5685
+ readonly name: "amount1Max";
5686
+ readonly type: "uint256";
5687
+ }];
5688
+ readonly internalType: "struct INonfungiblePositionManager.CollectParams";
5689
+ readonly name: "params";
5690
+ readonly type: "tuple";
5691
+ }];
5692
+ readonly name: "collect";
5693
+ readonly outputs: readonly [{
5694
+ readonly internalType: "uint256";
5695
+ readonly name: "amount0";
5696
+ readonly type: "uint256";
5697
+ }, {
5698
+ readonly internalType: "uint256";
5699
+ readonly name: "amount1";
5700
+ readonly type: "uint256";
5701
+ }];
5702
+ readonly stateMutability: "payable";
5703
+ readonly type: "function";
5704
+ }, {
5705
+ readonly inputs: readonly [{
5706
+ readonly internalType: "uint256";
5707
+ readonly name: "tokenId";
5708
+ readonly type: "uint256";
5709
+ }];
5710
+ readonly name: "positions";
5711
+ readonly outputs: readonly [{
5712
+ readonly internalType: "uint96";
5713
+ readonly name: "nonce";
5714
+ readonly type: "uint96";
5715
+ }, {
5716
+ readonly internalType: "address";
5717
+ readonly name: "operator";
5718
+ readonly type: "address";
5719
+ }, {
5720
+ readonly internalType: "address";
5721
+ readonly name: "token0";
5722
+ readonly type: "address";
5723
+ }, {
5724
+ readonly internalType: "address";
5725
+ readonly name: "token1";
5726
+ readonly type: "address";
5727
+ }, {
5728
+ readonly internalType: "uint24";
5729
+ readonly name: "fee";
5730
+ readonly type: "uint24";
5731
+ }, {
5732
+ readonly internalType: "int24";
5733
+ readonly name: "tickLower";
5734
+ readonly type: "int24";
5735
+ }, {
5736
+ readonly internalType: "int24";
5737
+ readonly name: "tickUpper";
5738
+ readonly type: "int24";
5739
+ }, {
5740
+ readonly internalType: "uint128";
5741
+ readonly name: "liquidity";
5742
+ readonly type: "uint128";
5743
+ }, {
5744
+ readonly internalType: "uint256";
5745
+ readonly name: "feeGrowthInside0LastX128";
5746
+ readonly type: "uint256";
5747
+ }, {
5748
+ readonly internalType: "uint256";
5749
+ readonly name: "feeGrowthInside1LastX128";
5750
+ readonly type: "uint256";
5751
+ }, {
5752
+ readonly internalType: "uint128";
5753
+ readonly name: "tokensOwed0";
5754
+ readonly type: "uint128";
5755
+ }, {
5756
+ readonly internalType: "uint128";
5757
+ readonly name: "tokensOwed1";
5758
+ readonly type: "uint128";
5759
+ }];
5760
+ readonly stateMutability: "view";
5761
+ readonly type: "function";
5762
+ }];
5763
+ declare const clRouterAbi: readonly [{
5764
+ readonly inputs: readonly [{
5765
+ readonly components: readonly [{
5766
+ readonly internalType: "address";
5767
+ readonly name: "tokenIn";
5768
+ readonly type: "address";
5769
+ }, {
5770
+ readonly internalType: "address";
5771
+ readonly name: "tokenOut";
5772
+ readonly type: "address";
5773
+ }, {
5774
+ readonly internalType: "uint24";
5775
+ readonly name: "fee";
5776
+ readonly type: "uint24";
5777
+ }, {
5778
+ readonly internalType: "address";
5779
+ readonly name: "recipient";
5780
+ readonly type: "address";
5781
+ }, {
5782
+ readonly internalType: "uint256";
5783
+ readonly name: "deadline";
5784
+ readonly type: "uint256";
5785
+ }, {
5786
+ readonly internalType: "uint256";
5787
+ readonly name: "amountIn";
5788
+ readonly type: "uint256";
5789
+ }, {
5790
+ readonly internalType: "uint256";
5791
+ readonly name: "amountOutMinimum";
5792
+ readonly type: "uint256";
5793
+ }, {
5794
+ readonly internalType: "uint160";
5795
+ readonly name: "sqrtPriceLimitX96";
5796
+ readonly type: "uint160";
5797
+ }];
5798
+ readonly internalType: "struct ISwapRouter.ExactInputSingleParams";
5799
+ readonly name: "params";
5800
+ readonly type: "tuple";
5801
+ }];
5802
+ readonly name: "exactInputSingle";
5803
+ readonly outputs: readonly [{
5804
+ readonly internalType: "uint256";
5805
+ readonly name: "amountOut";
5806
+ readonly type: "uint256";
5807
+ }];
5808
+ readonly stateMutability: "payable";
5809
+ readonly type: "function";
5810
+ }, {
5811
+ readonly inputs: readonly [{
5812
+ readonly components: readonly [{
5813
+ readonly internalType: "address";
5814
+ readonly name: "tokenIn";
5815
+ readonly type: "address";
5816
+ }, {
5817
+ readonly internalType: "address";
5818
+ readonly name: "tokenOut";
5819
+ readonly type: "address";
5820
+ }, {
5821
+ readonly internalType: "uint24";
5822
+ readonly name: "fee";
5823
+ readonly type: "uint24";
5824
+ }, {
5825
+ readonly internalType: "address";
5826
+ readonly name: "recipient";
5827
+ readonly type: "address";
5828
+ }, {
5829
+ readonly internalType: "uint256";
5830
+ readonly name: "deadline";
5831
+ readonly type: "uint256";
5832
+ }, {
5833
+ readonly internalType: "uint256";
5834
+ readonly name: "amountOut";
5835
+ readonly type: "uint256";
5836
+ }, {
5837
+ readonly internalType: "uint256";
5838
+ readonly name: "amountInMaximum";
5839
+ readonly type: "uint256";
5840
+ }, {
5841
+ readonly internalType: "uint160";
5842
+ readonly name: "sqrtPriceLimitX96";
5843
+ readonly type: "uint160";
5844
+ }];
5845
+ readonly internalType: "struct ISwapRouter.ExactOutputSingleParams";
5846
+ readonly name: "params";
5847
+ readonly type: "tuple";
5848
+ }];
5849
+ readonly name: "exactOutputSingle";
5850
+ readonly outputs: readonly [{
5851
+ readonly internalType: "uint256";
5852
+ readonly name: "amountIn";
5853
+ readonly type: "uint256";
5854
+ }];
5855
+ readonly stateMutability: "payable";
5856
+ readonly type: "function";
5857
+ }];
5858
+ declare const clQuoterAbi: readonly [{
5859
+ readonly inputs: readonly [{
5860
+ readonly internalType: "address";
5861
+ readonly name: "tokenIn";
5862
+ readonly type: "address";
5863
+ }, {
5864
+ readonly internalType: "address";
5865
+ readonly name: "tokenOut";
5866
+ readonly type: "address";
5867
+ }, {
5868
+ readonly internalType: "uint24";
5869
+ readonly name: "fee";
5870
+ readonly type: "uint24";
5871
+ }, {
5872
+ readonly internalType: "uint256";
5873
+ readonly name: "amountIn";
5874
+ readonly type: "uint256";
5875
+ }, {
5876
+ readonly internalType: "uint160";
5877
+ readonly name: "sqrtPriceLimitX96";
5878
+ readonly type: "uint160";
5879
+ }];
5880
+ readonly name: "quoteExactInputSingle";
5881
+ readonly outputs: readonly [{
5882
+ readonly internalType: "uint256";
5883
+ readonly name: "amountOut";
5884
+ readonly type: "uint256";
5885
+ }];
5886
+ readonly stateMutability: "nonpayable";
5887
+ readonly type: "function";
5888
+ }, {
5889
+ readonly inputs: readonly [{
5890
+ readonly internalType: "address";
5891
+ readonly name: "tokenIn";
5892
+ readonly type: "address";
5893
+ }, {
5894
+ readonly internalType: "address";
5895
+ readonly name: "tokenOut";
5896
+ readonly type: "address";
5897
+ }, {
5898
+ readonly internalType: "uint24";
5899
+ readonly name: "fee";
5900
+ readonly type: "uint24";
5901
+ }, {
5902
+ readonly internalType: "uint256";
5903
+ readonly name: "amountOut";
5904
+ readonly type: "uint256";
5905
+ }, {
5906
+ readonly internalType: "uint160";
5907
+ readonly name: "sqrtPriceLimitX96";
5908
+ readonly type: "uint160";
5909
+ }];
5910
+ readonly name: "quoteExactOutputSingle";
5911
+ readonly outputs: readonly [{
5912
+ readonly internalType: "uint256";
5913
+ readonly name: "amountIn";
5914
+ readonly type: "uint256";
5915
+ }];
5916
+ readonly stateMutability: "nonpayable";
5917
+ readonly type: "function";
5918
+ }];
5919
+ declare const clTickLensAbi: readonly [{
5920
+ readonly inputs: readonly [{
5921
+ readonly internalType: "address";
5922
+ readonly name: "pool";
5923
+ readonly type: "address";
5924
+ }, {
5925
+ readonly internalType: "int16";
5926
+ readonly name: "tickBitmapIndex";
5927
+ readonly type: "int16";
5928
+ }];
5929
+ readonly name: "getPopulatedTicksInWord";
5930
+ readonly outputs: readonly [{
5931
+ readonly components: readonly [{
5932
+ readonly internalType: "int24";
5933
+ readonly name: "tick";
5934
+ readonly type: "int24";
5935
+ }, {
5936
+ readonly internalType: "int128";
5937
+ readonly name: "liquidityGross";
5938
+ readonly type: "int128";
5939
+ }, {
5940
+ readonly internalType: "int128";
5941
+ readonly name: "liquidityNet";
5942
+ readonly type: "int128";
5943
+ }, {
5944
+ readonly internalType: "uint256";
5945
+ readonly name: "feeGrowthOutside0X128";
5946
+ readonly type: "uint256";
5947
+ }, {
5948
+ readonly internalType: "uint256";
5949
+ readonly name: "feeGrowthOutside1X128";
5950
+ readonly type: "uint256";
5951
+ }, {
5952
+ readonly internalType: "int56";
5953
+ readonly name: "tickCumulativeOutside";
5954
+ readonly type: "int56";
5955
+ }, {
5956
+ readonly internalType: "uint160";
5957
+ readonly name: "secondsPerLiquidityOutsideX128";
5958
+ readonly type: "uint160";
5959
+ }, {
5960
+ readonly internalType: "uint32";
5961
+ readonly name: "secondsOutside";
5962
+ readonly type: "uint32";
5963
+ }, {
5964
+ readonly internalType: "bool";
5965
+ readonly name: "initialized";
5966
+ readonly type: "bool";
5967
+ }];
5968
+ readonly internalType: "struct ITickLens.PopulatedTick[]";
5969
+ readonly name: "populatedTicks";
5970
+ readonly type: "tuple[]";
5971
+ }];
5972
+ readonly stateMutability: "view";
5973
+ readonly type: "function";
5974
+ }];
5975
+ declare const clPoolAbi: readonly [{
5976
+ readonly inputs: readonly [];
5977
+ readonly name: "slot0";
5978
+ readonly outputs: readonly [{
5979
+ readonly internalType: "uint160";
5980
+ readonly name: "sqrtPriceX96";
5981
+ readonly type: "uint160";
5982
+ }, {
5983
+ readonly internalType: "int24";
5984
+ readonly name: "tick";
5985
+ readonly type: "int24";
5986
+ }, {
5987
+ readonly internalType: "uint16";
5988
+ readonly name: "observationIndex";
5989
+ readonly type: "uint16";
5990
+ }, {
5991
+ readonly internalType: "uint16";
5992
+ readonly name: "observationCardinality";
5993
+ readonly type: "uint16";
5994
+ }, {
5995
+ readonly internalType: "uint16";
5996
+ readonly name: "observationCardinalityNext";
5997
+ readonly type: "uint16";
5998
+ }, {
5999
+ readonly internalType: "uint8";
6000
+ readonly name: "feeProtocol";
6001
+ readonly type: "uint8";
6002
+ }, {
6003
+ readonly internalType: "bool";
6004
+ readonly name: "unlocked";
6005
+ readonly type: "bool";
6006
+ }];
6007
+ readonly stateMutability: "view";
6008
+ readonly type: "function";
6009
+ }, {
6010
+ readonly inputs: readonly [];
6011
+ readonly name: "liquidity";
6012
+ readonly outputs: readonly [{
6013
+ readonly internalType: "uint128";
6014
+ readonly name: "";
6015
+ readonly type: "uint128";
6016
+ }];
6017
+ readonly stateMutability: "view";
6018
+ readonly type: "function";
6019
+ }];
6020
+ declare const defaultHookAbi: readonly [{
6021
+ readonly inputs: readonly [];
6022
+ readonly name: "getHooksRegistrationBitmap";
6023
+ readonly outputs: readonly [{
6024
+ readonly internalType: "uint256";
6025
+ readonly name: "";
6026
+ readonly type: "uint256";
6027
+ }];
6028
+ readonly stateMutability: "view";
6029
+ readonly type: "function";
6030
+ }];
6031
+
6032
+ /**
6033
+ * PoolKey structure ABI definition
6034
+ */
6035
+ declare const poolKeyAbi: readonly [{
6036
+ readonly type: "address";
6037
+ readonly name: "currency0";
6038
+ }, {
6039
+ readonly type: "address";
6040
+ readonly name: "currency1";
6041
+ }, {
6042
+ readonly type: "address";
6043
+ readonly name: "hooks";
6044
+ }, {
6045
+ readonly type: "address";
6046
+ readonly name: "poolManager";
6047
+ }, {
6048
+ readonly type: "uint24";
6049
+ readonly name: "fee";
6050
+ }, {
6051
+ readonly type: "bytes32";
6052
+ readonly name: "parameters";
6053
+ }];
6054
+ /**
6055
+ * Swap exact input single parameters ABI definition
6056
+ */
6057
+ declare const swapExactInSingleParamsAbi: readonly [{
6058
+ readonly type: "tuple";
6059
+ readonly name: "params";
6060
+ readonly components: readonly [{
6061
+ readonly type: "tuple";
6062
+ readonly name: "poolKey";
6063
+ readonly components: readonly [{
6064
+ readonly type: "address";
6065
+ readonly name: "currency0";
6066
+ }, {
6067
+ readonly type: "address";
6068
+ readonly name: "currency1";
6069
+ }, {
6070
+ readonly type: "address";
6071
+ readonly name: "hooks";
6072
+ }, {
6073
+ readonly type: "address";
6074
+ readonly name: "poolManager";
6075
+ }, {
6076
+ readonly type: "uint24";
6077
+ readonly name: "fee";
6078
+ }, {
6079
+ readonly type: "bytes32";
6080
+ readonly name: "parameters";
6081
+ }];
6082
+ }, {
6083
+ readonly type: "bool";
6084
+ readonly name: "zeroForOne";
6085
+ }, {
6086
+ readonly type: "uint128";
6087
+ readonly name: "amountIn";
6088
+ }, {
6089
+ readonly type: "uint128";
6090
+ readonly name: "amountOutMinimum";
6091
+ }, {
6092
+ readonly type: "bytes";
6093
+ readonly name: "hookData";
6094
+ }];
6095
+ }];
6096
+ /**
6097
+ * Mint position parameters ABI definition
6098
+ */
6099
+ declare const mintPositionParamsAbi: readonly [{
6100
+ readonly type: "tuple";
6101
+ readonly name: "poolKey";
6102
+ readonly components: readonly [{
6103
+ readonly type: "address";
6104
+ readonly name: "currency0";
6105
+ }, {
6106
+ readonly type: "address";
6107
+ readonly name: "currency1";
6108
+ }, {
6109
+ readonly type: "address";
6110
+ readonly name: "hooks";
6111
+ }, {
6112
+ readonly type: "address";
6113
+ readonly name: "poolManager";
6114
+ }, {
6115
+ readonly type: "uint24";
6116
+ readonly name: "fee";
6117
+ }, {
6118
+ readonly type: "bytes32";
6119
+ readonly name: "parameters";
6120
+ }];
6121
+ }, {
6122
+ readonly type: "int24";
6123
+ readonly name: "tickLower";
6124
+ }, {
6125
+ readonly type: "int24";
6126
+ readonly name: "tickUpper";
6127
+ }, {
6128
+ readonly type: "uint128";
6129
+ readonly name: "liquidity";
6130
+ }, {
6131
+ readonly type: "uint256";
6132
+ readonly name: "amount0";
6133
+ }, {
6134
+ readonly type: "uint256";
6135
+ readonly name: "amount1";
6136
+ }, {
6137
+ readonly type: "address";
6138
+ readonly name: "recipient";
6139
+ }, {
6140
+ readonly type: "bytes";
6141
+ readonly name: "hookData";
6142
+ }];
6143
+ /**
6144
+ * Modify liquidity parameters ABI definition (for increase/decrease liquidity)
6145
+ * Based on: (uint256 tokenId, uint256 liquidity, uint128 amount0Max, uint128 amount1Max, bytes hookData)
6146
+ */
6147
+ declare const modifyLiquidityParamsAbi: readonly [{
6148
+ readonly type: "uint256";
6149
+ readonly name: "tokenId";
6150
+ }, {
6151
+ readonly type: "uint256";
6152
+ readonly name: "liquidity";
6153
+ }, {
6154
+ readonly type: "uint128";
6155
+ readonly name: "amount0Max";
6156
+ }, {
6157
+ readonly type: "uint128";
6158
+ readonly name: "amount1Max";
6159
+ }, {
6160
+ readonly type: "bytes";
6161
+ readonly name: "hookData";
6162
+ }];
6163
+
6164
+ declare const erc4626Abi: readonly [{
6165
+ readonly type: "function";
6166
+ readonly name: "asset";
6167
+ readonly inputs: readonly [];
6168
+ readonly outputs: readonly [{
6169
+ readonly name: "";
6170
+ readonly type: "address";
6171
+ readonly internalType: "address";
6172
+ }];
6173
+ readonly stateMutability: "view";
6174
+ }, {
6175
+ readonly type: "function";
6176
+ readonly name: "totalAssets";
6177
+ readonly inputs: readonly [];
6178
+ readonly outputs: readonly [{
6179
+ readonly name: "";
6180
+ readonly type: "uint256";
6181
+ readonly internalType: "uint256";
6182
+ }];
6183
+ readonly stateMutability: "view";
6184
+ }, {
6185
+ readonly type: "function";
6186
+ readonly name: "convertToShares";
6187
+ readonly inputs: readonly [{
6188
+ readonly name: "assets";
6189
+ readonly type: "uint256";
6190
+ readonly internalType: "uint256";
6191
+ }];
6192
+ readonly outputs: readonly [{
6193
+ readonly name: "";
6194
+ readonly type: "uint256";
6195
+ readonly internalType: "uint256";
6196
+ }];
6197
+ readonly stateMutability: "view";
6198
+ }, {
6199
+ readonly type: "function";
6200
+ readonly name: "convertToAssets";
6201
+ readonly inputs: readonly [{
6202
+ readonly name: "shares";
6203
+ readonly type: "uint256";
6204
+ readonly internalType: "uint256";
6205
+ }];
6206
+ readonly outputs: readonly [{
6207
+ readonly name: "";
6208
+ readonly type: "uint256";
6209
+ readonly internalType: "uint256";
6210
+ }];
6211
+ readonly stateMutability: "view";
6212
+ }, {
6213
+ readonly type: "function";
6214
+ readonly name: "maxDeposit";
6215
+ readonly inputs: readonly [{
6216
+ readonly name: "receiver";
6217
+ readonly type: "address";
6218
+ readonly internalType: "address";
6219
+ }];
6220
+ readonly outputs: readonly [{
6221
+ readonly name: "";
6222
+ readonly type: "uint256";
6223
+ readonly internalType: "uint256";
6224
+ }];
6225
+ readonly stateMutability: "view";
6226
+ }, {
6227
+ readonly type: "function";
6228
+ readonly name: "previewDeposit";
6229
+ readonly inputs: readonly [{
6230
+ readonly name: "assets";
6231
+ readonly type: "uint256";
6232
+ readonly internalType: "uint256";
6233
+ }];
6234
+ readonly outputs: readonly [{
6235
+ readonly name: "";
6236
+ readonly type: "uint256";
6237
+ readonly internalType: "uint256";
6238
+ }];
6239
+ readonly stateMutability: "view";
6240
+ }, {
6241
+ readonly type: "function";
6242
+ readonly name: "deposit";
6243
+ readonly inputs: readonly [{
6244
+ readonly name: "assets";
6245
+ readonly type: "uint256";
6246
+ readonly internalType: "uint256";
6247
+ }, {
6248
+ readonly name: "receiver";
6249
+ readonly type: "address";
6250
+ readonly internalType: "address";
6251
+ }];
6252
+ readonly outputs: readonly [{
6253
+ readonly name: "";
6254
+ readonly type: "uint256";
6255
+ readonly internalType: "uint256";
6256
+ }];
6257
+ readonly stateMutability: "nonpayable";
6258
+ }, {
6259
+ readonly type: "function";
6260
+ readonly name: "maxMint";
6261
+ readonly inputs: readonly [{
6262
+ readonly name: "receiver";
6263
+ readonly type: "address";
6264
+ readonly internalType: "address";
6265
+ }];
6266
+ readonly outputs: readonly [{
6267
+ readonly name: "";
6268
+ readonly type: "uint256";
6269
+ readonly internalType: "uint256";
6270
+ }];
6271
+ readonly stateMutability: "view";
6272
+ }, {
6273
+ readonly type: "function";
6274
+ readonly name: "previewMint";
6275
+ readonly inputs: readonly [{
6276
+ readonly name: "shares";
6277
+ readonly type: "uint256";
6278
+ readonly internalType: "uint256";
6279
+ }];
6280
+ readonly outputs: readonly [{
6281
+ readonly name: "";
6282
+ readonly type: "uint256";
6283
+ readonly internalType: "uint256";
6284
+ }];
6285
+ readonly stateMutability: "view";
6286
+ }, {
6287
+ readonly type: "function";
6288
+ readonly name: "mint";
6289
+ readonly inputs: readonly [{
6290
+ readonly name: "shares";
6291
+ readonly type: "uint256";
6292
+ readonly internalType: "uint256";
6293
+ }, {
6294
+ readonly name: "receiver";
6295
+ readonly type: "address";
6296
+ readonly internalType: "address";
6297
+ }];
6298
+ readonly outputs: readonly [{
6299
+ readonly name: "";
6300
+ readonly type: "uint256";
6301
+ readonly internalType: "uint256";
6302
+ }];
6303
+ readonly stateMutability: "nonpayable";
6304
+ }, {
6305
+ readonly type: "function";
6306
+ readonly name: "maxWithdraw";
6307
+ readonly inputs: readonly [{
6308
+ readonly name: "owner";
6309
+ readonly type: "address";
6310
+ readonly internalType: "address";
6311
+ }];
6312
+ readonly outputs: readonly [{
6313
+ readonly name: "";
6314
+ readonly type: "uint256";
6315
+ readonly internalType: "uint256";
6316
+ }];
6317
+ readonly stateMutability: "view";
6318
+ }, {
6319
+ readonly type: "function";
6320
+ readonly name: "previewWithdraw";
6321
+ readonly inputs: readonly [{
6322
+ readonly name: "assets";
6323
+ readonly type: "uint256";
6324
+ readonly internalType: "uint256";
6325
+ }];
6326
+ readonly outputs: readonly [{
6327
+ readonly name: "";
6328
+ readonly type: "uint256";
6329
+ readonly internalType: "uint256";
6330
+ }];
6331
+ readonly stateMutability: "view";
6332
+ }, {
6333
+ readonly type: "function";
6334
+ readonly name: "withdraw";
6335
+ readonly inputs: readonly [{
6336
+ readonly name: "assets";
6337
+ readonly type: "uint256";
6338
+ readonly internalType: "uint256";
6339
+ }, {
6340
+ readonly name: "receiver";
6341
+ readonly type: "address";
6342
+ readonly internalType: "address";
6343
+ }, {
6344
+ readonly name: "owner";
6345
+ readonly type: "address";
6346
+ readonly internalType: "address";
6347
+ }];
6348
+ readonly outputs: readonly [{
6349
+ readonly name: "";
6350
+ readonly type: "uint256";
6351
+ readonly internalType: "uint256";
6352
+ }];
6353
+ readonly stateMutability: "nonpayable";
6354
+ }, {
6355
+ readonly type: "function";
6356
+ readonly name: "maxRedeem";
6357
+ readonly inputs: readonly [{
6358
+ readonly name: "owner";
6359
+ readonly type: "address";
6360
+ readonly internalType: "address";
6361
+ }];
6362
+ readonly outputs: readonly [{
6363
+ readonly name: "";
6364
+ readonly type: "uint256";
6365
+ readonly internalType: "uint256";
6366
+ }];
6367
+ readonly stateMutability: "view";
6368
+ }, {
6369
+ readonly type: "function";
6370
+ readonly name: "previewRedeem";
6371
+ readonly inputs: readonly [{
6372
+ readonly name: "shares";
6373
+ readonly type: "uint256";
6374
+ readonly internalType: "uint256";
6375
+ }];
6376
+ readonly outputs: readonly [{
6377
+ readonly name: "";
6378
+ readonly type: "uint256";
6379
+ readonly internalType: "uint256";
6380
+ }];
6381
+ readonly stateMutability: "view";
6382
+ }, {
6383
+ readonly type: "function";
6384
+ readonly name: "redeem";
6385
+ readonly inputs: readonly [{
6386
+ readonly name: "shares";
6387
+ readonly type: "uint256";
6388
+ readonly internalType: "uint256";
6389
+ }, {
6390
+ readonly name: "receiver";
6391
+ readonly type: "address";
6392
+ readonly internalType: "address";
6393
+ }, {
6394
+ readonly name: "owner";
6395
+ readonly type: "address";
6396
+ readonly internalType: "address";
6397
+ }];
6398
+ readonly outputs: readonly [{
6399
+ readonly name: "";
6400
+ readonly type: "uint256";
6401
+ readonly internalType: "uint256";
6402
+ }];
6403
+ readonly stateMutability: "nonpayable";
6404
+ }, {
6405
+ readonly type: "event";
6406
+ readonly name: "Deposit";
6407
+ readonly inputs: readonly [{
6408
+ readonly name: "sender";
6409
+ readonly type: "address";
6410
+ readonly indexed: true;
6411
+ readonly internalType: "address";
6412
+ }, {
6413
+ readonly name: "owner";
6414
+ readonly type: "address";
6415
+ readonly indexed: true;
6416
+ readonly internalType: "address";
6417
+ }, {
6418
+ readonly name: "assets";
6419
+ readonly type: "uint256";
6420
+ readonly indexed: false;
6421
+ readonly internalType: "uint256";
6422
+ }, {
6423
+ readonly name: "shares";
6424
+ readonly type: "uint256";
6425
+ readonly indexed: false;
6426
+ readonly internalType: "uint256";
6427
+ }];
6428
+ readonly anonymous: false;
6429
+ }, {
6430
+ readonly type: "event";
6431
+ readonly name: "Withdraw";
6432
+ readonly inputs: readonly [{
6433
+ readonly name: "sender";
6434
+ readonly type: "address";
6435
+ readonly indexed: true;
6436
+ readonly internalType: "address";
6437
+ }, {
6438
+ readonly name: "receiver";
6439
+ readonly type: "address";
6440
+ readonly indexed: true;
6441
+ readonly internalType: "address";
6442
+ }, {
6443
+ readonly name: "owner";
6444
+ readonly type: "address";
6445
+ readonly indexed: true;
6446
+ readonly internalType: "address";
6447
+ }, {
6448
+ readonly name: "assets";
6449
+ readonly type: "uint256";
6450
+ readonly indexed: false;
6451
+ readonly internalType: "uint256";
6452
+ }, {
6453
+ readonly name: "shares";
6454
+ readonly type: "uint256";
6455
+ readonly indexed: false;
6456
+ readonly internalType: "uint256";
6457
+ }];
6458
+ readonly anonymous: false;
6459
+ }];
6460
+
6461
+ declare const pancakeSwapInfinityPositionManagerAbi: readonly [{
6462
+ readonly inputs: readonly [{
6463
+ readonly internalType: "bytes";
6464
+ readonly name: "payload";
6465
+ readonly type: "bytes";
6466
+ }, {
6467
+ readonly internalType: "uint256";
6468
+ readonly name: "deadline";
6469
+ readonly type: "uint256";
6470
+ }];
6471
+ readonly name: "modifyLiquidities";
6472
+ readonly outputs: readonly [];
6473
+ readonly stateMutability: "payable";
6474
+ readonly type: "function";
6475
+ }, {
6476
+ readonly inputs: readonly [{
6477
+ readonly internalType: "bytes";
6478
+ readonly name: "actions";
6479
+ readonly type: "bytes";
6480
+ }, {
6481
+ readonly internalType: "bytes[]";
6482
+ readonly name: "params";
6483
+ readonly type: "bytes[]";
6484
+ }];
6485
+ readonly name: "modifyLiquiditiesWithoutLock";
6486
+ readonly outputs: readonly [];
6487
+ readonly stateMutability: "payable";
6488
+ readonly type: "function";
6489
+ }, {
6490
+ readonly inputs: readonly [{
6491
+ readonly internalType: "uint256";
6492
+ readonly name: "tokenId";
6493
+ readonly type: "uint256";
6494
+ }];
6495
+ readonly name: "positions";
6496
+ readonly outputs: readonly [{
6497
+ readonly components: readonly [{
6498
+ readonly internalType: "address";
6499
+ readonly name: "currency0";
6500
+ readonly type: "address";
6501
+ }, {
6502
+ readonly internalType: "address";
6503
+ readonly name: "currency1";
6504
+ readonly type: "address";
6505
+ }, {
6506
+ readonly internalType: "address";
6507
+ readonly name: "hooks";
6508
+ readonly type: "address";
6509
+ }, {
6510
+ readonly internalType: "address";
6511
+ readonly name: "poolManager";
6512
+ readonly type: "address";
6513
+ }, {
6514
+ readonly internalType: "uint24";
6515
+ readonly name: "fee";
6516
+ readonly type: "uint24";
6517
+ }, {
6518
+ readonly internalType: "bytes32";
6519
+ readonly name: "parameters";
6520
+ readonly type: "bytes32";
6521
+ }];
6522
+ readonly internalType: "struct PoolKey";
6523
+ readonly name: "poolKey";
6524
+ readonly type: "tuple";
6525
+ }, {
6526
+ readonly internalType: "int24";
6527
+ readonly name: "tickLower";
6528
+ readonly type: "int24";
6529
+ }, {
6530
+ readonly internalType: "int24";
6531
+ readonly name: "tickUpper";
6532
+ readonly type: "int24";
6533
+ }, {
6534
+ readonly internalType: "uint128";
6535
+ readonly name: "liquidity";
6536
+ readonly type: "uint128";
6537
+ }, {
6538
+ readonly internalType: "uint256";
6539
+ readonly name: "feeGrowthInside0LastX128";
6540
+ readonly type: "uint256";
6541
+ }, {
6542
+ readonly internalType: "uint256";
6543
+ readonly name: "feeGrowthInside1LastX128";
6544
+ readonly type: "uint256";
6545
+ }, {
6546
+ readonly internalType: "address";
6547
+ readonly name: "_subscriber";
6548
+ readonly type: "address";
6549
+ }];
6550
+ readonly stateMutability: "view";
6551
+ readonly type: "function";
6552
+ }, {
6553
+ readonly inputs: readonly [{
6554
+ readonly internalType: "uint256";
6555
+ readonly name: "tokenId";
6556
+ readonly type: "uint256";
6557
+ }, {
6558
+ readonly internalType: "address";
6559
+ readonly name: "recipient";
6560
+ readonly type: "address";
6561
+ }, {
6562
+ readonly internalType: "uint128";
6563
+ readonly name: "amount0Max";
6564
+ readonly type: "uint128";
6565
+ }, {
6566
+ readonly internalType: "uint128";
6567
+ readonly name: "amount1Max";
6568
+ readonly type: "uint128";
6569
+ }];
6570
+ readonly name: "collect";
6571
+ readonly outputs: readonly [{
6572
+ readonly internalType: "uint256";
6573
+ readonly name: "amount0";
6574
+ readonly type: "uint256";
6575
+ }, {
6576
+ readonly internalType: "uint256";
6577
+ readonly name: "amount1";
6578
+ readonly type: "uint256";
6579
+ }];
6580
+ readonly stateMutability: "payable";
6581
+ readonly type: "function";
6582
+ }];
6583
+ declare const pancakeSwapInfinityPoolManagerAbi: readonly [{
6584
+ readonly inputs: readonly [{
6585
+ readonly components: readonly [{
6586
+ readonly internalType: "address";
6587
+ readonly name: "currency0";
6588
+ readonly type: "address";
6589
+ }, {
6590
+ readonly internalType: "address";
6591
+ readonly name: "currency1";
6592
+ readonly type: "address";
6593
+ }, {
6594
+ readonly internalType: "address";
6595
+ readonly name: "hooks";
6596
+ readonly type: "address";
6597
+ }, {
6598
+ readonly internalType: "address";
6599
+ readonly name: "poolManager";
6600
+ readonly type: "address";
6601
+ }, {
6602
+ readonly internalType: "uint24";
6603
+ readonly name: "fee";
6604
+ readonly type: "uint24";
6605
+ }, {
6606
+ readonly internalType: "bytes32";
6607
+ readonly name: "parameters";
6608
+ readonly type: "bytes32";
6609
+ }];
6610
+ readonly internalType: "struct PoolKey";
6611
+ readonly name: "key";
6612
+ readonly type: "tuple";
6613
+ }, {
6614
+ readonly internalType: "uint160";
6615
+ readonly name: "sqrtPriceX96";
6616
+ readonly type: "uint160";
6617
+ }];
6618
+ readonly name: "initialize";
6619
+ readonly outputs: readonly [{
6620
+ readonly internalType: "contract IPool";
6621
+ readonly name: "pool";
6622
+ readonly type: "address";
6623
+ }];
6624
+ readonly stateMutability: "nonpayable";
6625
+ readonly type: "function";
6626
+ }, {
6627
+ readonly inputs: readonly [{
6628
+ readonly internalType: "address";
6629
+ readonly name: "currency0";
6630
+ readonly type: "address";
6631
+ }, {
6632
+ readonly internalType: "address";
6633
+ readonly name: "currency1";
6634
+ readonly type: "address";
6635
+ }, {
6636
+ readonly internalType: "uint24";
6637
+ readonly name: "fee";
6638
+ readonly type: "uint24";
6639
+ }];
6640
+ readonly name: "getPool";
6641
+ readonly outputs: readonly [{
6642
+ readonly internalType: "contract IPool";
6643
+ readonly name: "pool";
6644
+ readonly type: "address";
6645
+ }];
6646
+ readonly stateMutability: "view";
6647
+ readonly type: "function";
6648
+ }];
6649
+ declare const pancakeSwapInfinityDefaultHookAbi: readonly [{
6650
+ readonly inputs: readonly [];
6651
+ readonly name: "getHooksRegistrationBitmap";
6652
+ readonly outputs: readonly [{
6653
+ readonly internalType: "uint256";
6654
+ readonly name: "";
6655
+ readonly type: "uint256";
6656
+ }];
6657
+ readonly stateMutability: "view";
6658
+ readonly type: "function";
6659
+ }];
6660
+
6661
+ declare const permit2Abi: readonly [{
6662
+ readonly type: "function";
6663
+ readonly name: "allowance";
6664
+ readonly inputs: readonly [{
6665
+ readonly name: "user";
6666
+ readonly type: "address";
6667
+ readonly internalType: "address";
6668
+ }, {
6669
+ readonly name: "token";
6670
+ readonly type: "address";
6671
+ readonly internalType: "address";
6672
+ }, {
6673
+ readonly name: "spender";
6674
+ readonly type: "address";
6675
+ readonly internalType: "address";
6676
+ }];
6677
+ readonly outputs: readonly [{
6678
+ readonly name: "amount";
6679
+ readonly type: "uint160";
6680
+ readonly internalType: "uint160";
6681
+ }, {
6682
+ readonly name: "expiration";
6683
+ readonly type: "uint48";
6684
+ readonly internalType: "uint48";
6685
+ }, {
6686
+ readonly name: "nonce";
6687
+ readonly type: "uint48";
6688
+ readonly internalType: "uint48";
6689
+ }];
6690
+ readonly stateMutability: "view";
6691
+ }, {
6692
+ readonly type: "function";
6693
+ readonly name: "approve";
6694
+ readonly inputs: readonly [{
6695
+ readonly name: "token";
6696
+ readonly type: "address";
6697
+ readonly internalType: "address";
6698
+ }, {
6699
+ readonly name: "spender";
6700
+ readonly type: "address";
6701
+ readonly internalType: "address";
6702
+ }, {
6703
+ readonly name: "amount";
6704
+ readonly type: "uint160";
6705
+ readonly internalType: "uint160";
6706
+ }, {
6707
+ readonly name: "expiration";
6708
+ readonly type: "uint48";
6709
+ readonly internalType: "uint48";
6710
+ }];
6711
+ readonly outputs: readonly [];
6712
+ readonly stateMutability: "nonpayable";
6713
+ }, {
6714
+ readonly type: "function";
6715
+ readonly name: "permit";
6716
+ readonly inputs: readonly [{
6717
+ readonly name: "owner";
6718
+ readonly type: "address";
6719
+ readonly internalType: "address";
6720
+ }, {
6721
+ readonly name: "permitSingle";
6722
+ readonly type: "tuple";
6723
+ readonly internalType: "struct IAllowanceTransfer.PermitSingle";
6724
+ readonly components: readonly [{
6725
+ readonly name: "details";
6726
+ readonly type: "tuple";
6727
+ readonly internalType: "struct IAllowanceTransfer.PermitDetails";
6728
+ readonly components: readonly [{
6729
+ readonly name: "token";
6730
+ readonly type: "address";
6731
+ readonly internalType: "address";
6732
+ }, {
6733
+ readonly name: "amount";
6734
+ readonly type: "uint160";
6735
+ readonly internalType: "uint160";
6736
+ }, {
6737
+ readonly name: "expiration";
6738
+ readonly type: "uint48";
6739
+ readonly internalType: "uint48";
6740
+ }, {
6741
+ readonly name: "nonce";
6742
+ readonly type: "uint48";
6743
+ readonly internalType: "uint48";
6744
+ }];
6745
+ }, {
6746
+ readonly name: "spender";
6747
+ readonly type: "address";
6748
+ readonly internalType: "address";
6749
+ }, {
6750
+ readonly name: "sigDeadline";
6751
+ readonly type: "uint256";
6752
+ readonly internalType: "uint256";
6753
+ }];
6754
+ }, {
6755
+ readonly name: "signature";
6756
+ readonly type: "bytes";
6757
+ readonly internalType: "bytes";
6758
+ }];
6759
+ readonly outputs: readonly [];
6760
+ readonly stateMutability: "nonpayable";
6761
+ }, {
6762
+ readonly type: "function";
6763
+ readonly name: "permitBatch";
6764
+ readonly inputs: readonly [{
6765
+ readonly name: "owner";
6766
+ readonly type: "address";
6767
+ readonly internalType: "address";
6768
+ }, {
6769
+ readonly name: "permitBatch";
6770
+ readonly type: "tuple";
6771
+ readonly internalType: "struct IAllowanceTransfer.PermitBatch";
6772
+ readonly components: readonly [{
6773
+ readonly name: "details";
6774
+ readonly type: "tuple[]";
6775
+ readonly internalType: "struct IAllowanceTransfer.PermitDetails[]";
6776
+ readonly components: readonly [{
6777
+ readonly name: "token";
6778
+ readonly type: "address";
6779
+ readonly internalType: "address";
6780
+ }, {
6781
+ readonly name: "amount";
6782
+ readonly type: "uint160";
6783
+ readonly internalType: "uint160";
6784
+ }, {
6785
+ readonly name: "expiration";
6786
+ readonly type: "uint48";
6787
+ readonly internalType: "uint48";
6788
+ }, {
6789
+ readonly name: "nonce";
6790
+ readonly type: "uint48";
6791
+ readonly internalType: "uint48";
6792
+ }];
6793
+ }, {
6794
+ readonly name: "spender";
6795
+ readonly type: "address";
6796
+ readonly internalType: "address";
6797
+ }, {
6798
+ readonly name: "sigDeadline";
6799
+ readonly type: "uint256";
6800
+ readonly internalType: "uint256";
6801
+ }];
6802
+ }, {
6803
+ readonly name: "signature";
6804
+ readonly type: "bytes";
6805
+ readonly internalType: "bytes";
6806
+ }];
6807
+ readonly outputs: readonly [];
6808
+ readonly stateMutability: "nonpayable";
6809
+ }, {
6810
+ readonly type: "function";
6811
+ readonly name: "transferFrom";
6812
+ readonly inputs: readonly [{
6813
+ readonly name: "from";
6814
+ readonly type: "address";
6815
+ readonly internalType: "address";
6816
+ }, {
6817
+ readonly name: "to";
6818
+ readonly type: "address";
6819
+ readonly internalType: "address";
6820
+ }, {
6821
+ readonly name: "amount";
6822
+ readonly type: "uint160";
6823
+ readonly internalType: "uint160";
6824
+ }, {
6825
+ readonly name: "token";
6826
+ readonly type: "address";
6827
+ readonly internalType: "address";
6828
+ }];
6829
+ readonly outputs: readonly [];
6830
+ readonly stateMutability: "nonpayable";
6831
+ }, {
6832
+ readonly type: "function";
6833
+ readonly name: "transferFromBatch";
6834
+ readonly inputs: readonly [{
6835
+ readonly name: "transferDetails";
6836
+ readonly type: "tuple[]";
6837
+ readonly internalType: "struct IAllowanceTransfer.AllowanceTransferDetails[]";
6838
+ readonly components: readonly [{
6839
+ readonly name: "from";
6840
+ readonly type: "address";
6841
+ readonly internalType: "address";
6842
+ }, {
6843
+ readonly name: "to";
6844
+ readonly type: "address";
6845
+ readonly internalType: "address";
6846
+ }, {
6847
+ readonly name: "amount";
6848
+ readonly type: "uint160";
6849
+ readonly internalType: "uint160";
6850
+ }, {
6851
+ readonly name: "token";
6852
+ readonly type: "address";
6853
+ readonly internalType: "address";
6854
+ }];
6855
+ }];
6856
+ readonly outputs: readonly [];
6857
+ readonly stateMutability: "nonpayable";
6858
+ }, {
6859
+ readonly type: "function";
6860
+ readonly name: "lockdown";
6861
+ readonly inputs: readonly [{
6862
+ readonly name: "approvals";
6863
+ readonly type: "tuple[]";
6864
+ readonly internalType: "struct IAllowanceTransfer.TokenSpenderPair[]";
6865
+ readonly components: readonly [{
6866
+ readonly name: "token";
6867
+ readonly type: "address";
6868
+ readonly internalType: "address";
6869
+ }, {
6870
+ readonly name: "spender";
6871
+ readonly type: "address";
6872
+ readonly internalType: "address";
6873
+ }];
6874
+ }];
6875
+ readonly outputs: readonly [];
6876
+ readonly stateMutability: "nonpayable";
6877
+ }, {
6878
+ readonly type: "function";
6879
+ readonly name: "invalidateNonces";
6880
+ readonly inputs: readonly [{
6881
+ readonly name: "token";
6882
+ readonly type: "address";
6883
+ readonly internalType: "address";
6884
+ }, {
6885
+ readonly name: "spender";
6886
+ readonly type: "address";
6887
+ readonly internalType: "address";
6888
+ }, {
6889
+ readonly name: "newNonce";
6890
+ readonly type: "uint48";
6891
+ readonly internalType: "uint48";
6892
+ }];
6893
+ readonly outputs: readonly [];
6894
+ readonly stateMutability: "nonpayable";
6895
+ }, {
6896
+ readonly type: "event";
6897
+ readonly name: "Approval";
6898
+ readonly inputs: readonly [{
6899
+ readonly name: "owner";
6900
+ readonly type: "address";
6901
+ readonly indexed: true;
6902
+ readonly internalType: "address";
6903
+ }, {
6904
+ readonly name: "token";
6905
+ readonly type: "address";
6906
+ readonly indexed: true;
6907
+ readonly internalType: "address";
6908
+ }, {
6909
+ readonly name: "spender";
6910
+ readonly type: "address";
6911
+ readonly indexed: true;
6912
+ readonly internalType: "address";
6913
+ }, {
6914
+ readonly name: "amount";
6915
+ readonly type: "uint160";
6916
+ readonly indexed: false;
6917
+ readonly internalType: "uint160";
6918
+ }, {
6919
+ readonly name: "expiration";
6920
+ readonly type: "uint48";
6921
+ readonly indexed: false;
6922
+ readonly internalType: "uint48";
6923
+ }];
6924
+ readonly anonymous: false;
6925
+ }, {
6926
+ readonly type: "event";
6927
+ readonly name: "Permit";
6928
+ readonly inputs: readonly [{
6929
+ readonly name: "owner";
6930
+ readonly type: "address";
6931
+ readonly indexed: true;
6932
+ readonly internalType: "address";
6933
+ }, {
6934
+ readonly name: "token";
6935
+ readonly type: "address";
6936
+ readonly indexed: true;
6937
+ readonly internalType: "address";
6938
+ }, {
6939
+ readonly name: "spender";
6940
+ readonly type: "address";
6941
+ readonly indexed: true;
6942
+ readonly internalType: "address";
6943
+ }, {
6944
+ readonly name: "amount";
6945
+ readonly type: "uint160";
6946
+ readonly indexed: false;
6947
+ readonly internalType: "uint160";
6948
+ }, {
6949
+ readonly name: "expiration";
6950
+ readonly type: "uint48";
6951
+ readonly indexed: false;
6952
+ readonly internalType: "uint48";
6953
+ }, {
6954
+ readonly name: "nonce";
6955
+ readonly type: "uint48";
6956
+ readonly indexed: false;
6957
+ readonly internalType: "uint48";
6958
+ }];
6959
+ readonly anonymous: false;
6960
+ }, {
6961
+ readonly type: "event";
6962
+ readonly name: "Lockdown";
6963
+ readonly inputs: readonly [{
6964
+ readonly name: "owner";
6965
+ readonly type: "address";
6966
+ readonly indexed: true;
6967
+ readonly internalType: "address";
6968
+ }, {
6969
+ readonly name: "token";
6970
+ readonly type: "address";
6971
+ readonly indexed: true;
6972
+ readonly internalType: "address";
6973
+ }, {
6974
+ readonly name: "spender";
6975
+ readonly type: "address";
6976
+ readonly indexed: true;
6977
+ readonly internalType: "address";
6978
+ }];
6979
+ readonly anonymous: false;
6980
+ }, {
6981
+ readonly type: "event";
6982
+ readonly name: "NonceInvalidation";
6983
+ readonly inputs: readonly [{
6984
+ readonly name: "owner";
6985
+ readonly type: "address";
6986
+ readonly indexed: true;
6987
+ readonly internalType: "address";
6988
+ }, {
6989
+ readonly name: "token";
6990
+ readonly type: "address";
6991
+ readonly indexed: true;
6992
+ readonly internalType: "address";
6993
+ }, {
6994
+ readonly name: "spender";
6995
+ readonly type: "address";
6996
+ readonly indexed: true;
6997
+ readonly internalType: "address";
6998
+ }, {
6999
+ readonly name: "newNonce";
7000
+ readonly type: "uint48";
7001
+ readonly indexed: false;
7002
+ readonly internalType: "uint48";
7003
+ }];
7004
+ readonly anonymous: false;
7005
+ }];
7006
+
7007
+ declare const stataTokenFactoryAbi: readonly [{
7008
+ readonly type: "function";
7009
+ readonly name: "getStataTokens";
7010
+ readonly inputs: readonly [];
7011
+ readonly outputs: readonly [{
7012
+ readonly name: "";
7013
+ readonly type: "address[]";
7014
+ readonly internalType: "address[]";
7015
+ }];
7016
+ readonly stateMutability: "view";
7017
+ }, {
7018
+ readonly type: "function";
7019
+ readonly name: "getStataToken";
7020
+ readonly inputs: readonly [{
7021
+ readonly name: "underlying";
7022
+ readonly type: "address";
7023
+ readonly internalType: "address";
7024
+ }];
7025
+ readonly outputs: readonly [{
7026
+ readonly name: "";
7027
+ readonly type: "address";
7028
+ readonly internalType: "address";
7029
+ }];
7030
+ readonly stateMutability: "view";
7031
+ }];
7032
+
7033
+ declare const universalRouterAbi: readonly [{
7034
+ readonly inputs: readonly [{
7035
+ readonly type: "bytes";
7036
+ readonly name: "commands";
7037
+ }, {
7038
+ readonly type: "bytes[]";
7039
+ readonly name: "inputs";
7040
+ }, {
7041
+ readonly type: "uint256";
7042
+ readonly name: "deadline";
7043
+ }];
7044
+ readonly name: "execute";
7045
+ readonly outputs: readonly [];
7046
+ readonly stateMutability: "payable";
7047
+ readonly type: "function";
7048
+ }];
7049
+
5438
7050
  declare function getIconAddressBytes(address: string): Hex;
5439
7051
 
5440
7052
  type IconJsonRpcVersion = '2.0';
@@ -7267,6 +8879,7 @@ type SodaxConfig = {
7267
8879
  moneyMarket?: MoneyMarketConfigParams;
7268
8880
  migration?: MigrationServiceConfig;
7269
8881
  bridge?: BridgeServiceConfig;
8882
+ dex?: DexServiceConfig;
7270
8883
  hubProviderConfig?: EvmHubProviderConfig;
7271
8884
  relayerApiEndpoint?: HttpUrl;
7272
8885
  backendApiConfig?: BackendApiConfig;
@@ -7287,6 +8900,7 @@ declare class Sodax {
7287
8900
  readonly bridge: BridgeService;
7288
8901
  readonly staking: StakingService;
7289
8902
  readonly partners: PartnerService;
8903
+ readonly dex: DexService;
7290
8904
  readonly config: ConfigService;
7291
8905
  readonly hubProvider: EvmHubProvider;
7292
8906
  readonly relayerApiEndpoint: HttpUrl;
@@ -7322,27 +8936,47 @@ type RadfiWalletBalance = {
7322
8936
  totalUtxos: number;
7323
8937
  };
7324
8938
  type RadfiUtxo = {
7325
- id: string;
7326
- txId: string;
8939
+ _id: string;
8940
+ txid: string;
7327
8941
  vout: number;
7328
- value: string;
8942
+ txidVout: string;
8943
+ satoshi: number;
8944
+ amount: string;
7329
8945
  address: string;
7330
8946
  isSpent: boolean;
7331
- isExpired: boolean;
7332
- expiryBlock?: number;
7333
- currentBlock?: number;
8947
+ status: string;
8948
+ source: string;
8949
+ runes?: Array<{
8950
+ runeid: string;
8951
+ amount: string;
8952
+ divisibility?: number;
8953
+ rune?: string;
8954
+ spacedRune?: string;
8955
+ symbol?: string;
8956
+ }>;
8957
+ height?: number;
8958
+ confirmations?: number;
8959
+ createdAt?: number;
8960
+ updatedAt?: number;
7334
8961
  };
7335
8962
  type RadfiUtxoListResponse = {
8963
+ code: string;
8964
+ message: string;
7336
8965
  data: RadfiUtxo[];
7337
- total: number;
7338
- page: number;
7339
- pageSize: number;
7340
8966
  };
7341
8967
  type RadfiBuildTxResponse = {
7342
8968
  base64Psbt: string;
7343
- fee: number;
8969
+ fee: {
8970
+ feeRate: number;
8971
+ totalFee: number;
8972
+ };
7344
8973
  txId: string;
7345
8974
  };
8975
+ type RadfiMaxSpentResponse = {
8976
+ maxSatsAmt: number;
8977
+ feeRate: number;
8978
+ fee: number;
8979
+ };
7346
8980
  declare class RadfiProvider {
7347
8981
  private readonly config;
7348
8982
  constructor(config: RadfiConfig);
@@ -7397,6 +9031,32 @@ declare class RadfiProvider {
7397
9031
  userAddress: string;
7398
9032
  signedBase64Tx: string;
7399
9033
  }, accessToken: string): Promise<string>;
9034
+ /**
9035
+ * Withdraw BTC from trading wallet to user's personal wallet.
9036
+ * Returns an unsigned PSBT for the user to sign.
9037
+ */
9038
+ withdrawToUser(params: {
9039
+ userAddress: string;
9040
+ amount: string;
9041
+ tokenId: string;
9042
+ withdrawTo: string;
9043
+ }, accessToken: string): Promise<RadfiBuildTxResponse>;
9044
+ /**
9045
+ * Sign and broadcast a withdraw transaction via Radfi.
9046
+ */
9047
+ signAndBroadcastWithdraw(params: {
9048
+ userAddress: string;
9049
+ signedBase64Tx: string;
9050
+ }, accessToken: string): Promise<string>;
9051
+ /**
9052
+ * Get max spendable amount for a withdraw transaction (amount after fee).
9053
+ */
9054
+ getMaxWithdrawable(params: {
9055
+ userAddress: string;
9056
+ amount: string;
9057
+ tokenId: string;
9058
+ withdrawTo: string;
9059
+ }, accessToken: string): Promise<RadfiMaxSpentResponse>;
7400
9060
  private request;
7401
9061
  }
7402
9062
 
@@ -7444,8 +9104,9 @@ declare class BitcoinBaseSpokeProvider {
7444
9104
  readonly radfi: RadfiProvider;
7445
9105
  readonly walletMode: WalletMode;
7446
9106
  radfiAccessToken: string;
9107
+ radfiRefreshToken: string;
7447
9108
  constructor(config: BitcoinSpokeChainConfig, radfiConfig: RadfiConfig, walletMode?: WalletMode, rpcURL?: string);
7448
- setRadfiAccessToken(token: string): void;
9109
+ setRadfiAccessToken(token: string, refreshToken?: string): void;
7449
9110
  /**
7450
9111
  * Get current fee estimates
7451
9112
  */
@@ -7476,9 +9137,12 @@ declare class BitcoinBaseSpokeProvider {
7476
9137
  */
7477
9138
  fetchRawTransaction(txid: string): Promise<string>;
7478
9139
  /**
7479
- * Estimate transaction size in vbytes
9140
+ * Estimate transaction size in vbytes.
9141
+ * @param addressType — caller's address type for accurate per-input weight.
9142
+ * P2PKH ≈ 148 vB, P2SH-P2WPKH ≈ 91 vB, P2WPKH ≈ 68 vB, P2TR ≈ 58 vB.
9143
+ * Defaults to P2WPKH (68 vB) when omitted.
7480
9144
  */
7481
- estimateTxSize(inputCount: number, outputCount: number): number;
9145
+ estimateTxSize(inputCount: number, outputCount: number, addressType?: AddressType): number;
7482
9146
  getAddressType(address: string): AddressType;
7483
9147
  encodePayloadToBytes(payload: Payload): string;
7484
9148
  static encodeWithdrawalData<S extends BitcoinSpokeProviderType, R extends boolean = false>(dstChainId: HubChainId, data: Hex, provider: S, raw?: R): Promise<string>;
@@ -7497,6 +9161,12 @@ declare class BitcoinRawSpokeProvider extends BitcoinBaseSpokeProvider implement
7497
9161
  declare class BitcoinSpokeProvider extends BitcoinBaseSpokeProvider implements ISpokeProvider {
7498
9162
  readonly walletProvider: IBitcoinWalletProvider;
7499
9163
  constructor(walletProvider: IBitcoinWalletProvider, chainConfig: BitcoinSpokeChainConfig, radfiConfig: RadfiConfig, walletMode?: WalletMode, rpcUrl?: string);
9164
+ /**
9165
+ * Get the effective wallet address for hub wallet derivation and relay submission.
9166
+ * In TRADING mode, returns the trading wallet address (not the personal wallet).
9167
+ * This must be used everywhere a wallet address is needed for hub interaction.
9168
+ */
9169
+ getEffectiveWalletAddress(): Promise<string>;
7500
9170
  /**
7501
9171
  * Authenticate with Radfi: BIP322-sign a login message, then call the Radfi API.
7502
9172
  * Returns accessToken, refreshToken, and tradingAddress.
@@ -7509,7 +9179,9 @@ declare class BitcoinSpokeProvider extends BitcoinBaseSpokeProvider implements I
7509
9179
  }>;
7510
9180
  /**
7511
9181
  * Ensure a valid Radfi access token is set on this provider.
7512
- * No-op if a token is already present.
9182
+ * If a token exists, validates it via the Radfi API.
9183
+ * If invalid, tries refreshing with the refresh token first.
9184
+ * If refresh also fails, falls back to full re-authentication (BIP322 sign).
7513
9185
  */
7514
9186
  ensureRadfiAccessToken(): Promise<void>;
7515
9187
  /**
@@ -7903,6 +9575,118 @@ declare const getAllLegacybnUSDTokens: () => {
7903
9575
  token: LegacybnUSDToken;
7904
9576
  chainId: LegacybnUSDChainId;
7905
9577
  }[];
9578
+ declare const getConcentratedLiquidityConfig: () => ConcentratedLiquidityConfig;
9579
+ declare const dexPools: {
9580
+ readonly AETH_BNUSD: {
9581
+ readonly currency0: "0x3E102c7D9b46c92aBcd4c2e1C70f362B47a201A6";
9582
+ readonly currency1: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
9583
+ readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
9584
+ readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
9585
+ readonly fee: 8388608;
9586
+ readonly parameters: {
9587
+ readonly tickSpacing: 10;
9588
+ readonly hooksRegistration: {
9589
+ readonly beforeInitialize: true;
9590
+ readonly afterInitialize: true;
9591
+ readonly beforeAddLiquidity: true;
9592
+ readonly afterAddLiquidity: true;
9593
+ readonly beforeRemoveLiquidity: true;
9594
+ readonly afterRemoveLiquidity: true;
9595
+ readonly beforeSwap: true;
9596
+ readonly afterSwap: true;
9597
+ readonly beforeDonate: true;
9598
+ readonly afterDonate: true;
9599
+ readonly beforeSwapReturnsDelta: true;
9600
+ readonly afterSwapReturnsDelta: true;
9601
+ readonly afterMintReturnsDelta: true;
9602
+ readonly afterBurnReturnsDelta: true;
9603
+ };
9604
+ };
9605
+ };
9606
+ readonly BTC_BNUSD: {
9607
+ readonly currency0: "0x8aDe79C255761971f4057253712b916AB2494275";
9608
+ readonly currency1: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
9609
+ readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
9610
+ readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
9611
+ readonly fee: 8388608;
9612
+ readonly parameters: {
9613
+ readonly tickSpacing: 10;
9614
+ readonly hooksRegistration: {
9615
+ readonly beforeInitialize: true;
9616
+ readonly afterInitialize: true;
9617
+ readonly beforeAddLiquidity: true;
9618
+ readonly afterAddLiquidity: true;
9619
+ readonly beforeRemoveLiquidity: true;
9620
+ readonly afterRemoveLiquidity: true;
9621
+ readonly beforeSwap: true;
9622
+ readonly afterSwap: true;
9623
+ readonly beforeDonate: true;
9624
+ readonly afterDonate: true;
9625
+ readonly beforeSwapReturnsDelta: true;
9626
+ readonly afterSwapReturnsDelta: true;
9627
+ readonly afterMintReturnsDelta: true;
9628
+ readonly afterBurnReturnsDelta: true;
9629
+ };
9630
+ };
9631
+ };
9632
+ readonly ASODA_BNUSD: {
9633
+ readonly currency0: "0xac8540fee419c7ceb985889EaBa1e84B42a53e8a";
9634
+ readonly currency1: "0xE801CA34E19aBCbFeA12025378D19c4FBE250131";
9635
+ readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
9636
+ readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
9637
+ readonly fee: 8388608;
9638
+ readonly parameters: {
9639
+ readonly tickSpacing: 10;
9640
+ readonly hooksRegistration: {
9641
+ readonly beforeInitialize: true;
9642
+ readonly afterInitialize: true;
9643
+ readonly beforeAddLiquidity: true;
9644
+ readonly afterAddLiquidity: true;
9645
+ readonly beforeRemoveLiquidity: true;
9646
+ readonly afterRemoveLiquidity: true;
9647
+ readonly beforeSwap: true;
9648
+ readonly afterSwap: true;
9649
+ readonly beforeDonate: true;
9650
+ readonly afterDonate: true;
9651
+ readonly beforeSwapReturnsDelta: true;
9652
+ readonly afterSwapReturnsDelta: true;
9653
+ readonly afterMintReturnsDelta: true;
9654
+ readonly afterBurnReturnsDelta: true;
9655
+ };
9656
+ };
9657
+ };
9658
+ readonly ASODA_XSODA: {
9659
+ readonly currency0: "0xac8540fee419c7ceb985889EaBa1e84B42a53e8a";
9660
+ readonly currency1: "0xADC6561Cc8FC31767B4917CCc97F510D411378d9";
9661
+ readonly hooks: "0x598448d8f8553b9c6f27E52a92E2cCf27cDEF229";
9662
+ readonly poolManager: "0xA3256ab552A271A16AcDfdB521B32ef82d481F43";
9663
+ readonly fee: 8388608;
9664
+ readonly parameters: {
9665
+ readonly tickSpacing: 10;
9666
+ readonly hooksRegistration: {
9667
+ readonly beforeInitialize: true;
9668
+ readonly afterInitialize: true;
9669
+ readonly beforeAddLiquidity: true;
9670
+ readonly afterAddLiquidity: true;
9671
+ readonly beforeRemoveLiquidity: true;
9672
+ readonly afterRemoveLiquidity: true;
9673
+ readonly beforeSwap: true;
9674
+ readonly afterSwap: true;
9675
+ readonly beforeDonate: true;
9676
+ readonly afterDonate: true;
9677
+ readonly beforeSwapReturnsDelta: true;
9678
+ readonly afterSwapReturnsDelta: true;
9679
+ readonly afterMintReturnsDelta: true;
9680
+ readonly afterBurnReturnsDelta: true;
9681
+ };
9682
+ };
9683
+ };
9684
+ };
9685
+ declare const StatATokenAddresses: {
9686
+ readonly '0xac8540fee419c7ceb985889eaba1e84b42a53e8a': "0x21685E341DE7844135329914Be6Bd8D16982d834";
9687
+ readonly '0x8ade79c255761971f4057253712b916ab2494275': "0x7A1A5555842Ad2D0eD274d09b5c4406a95799D5d";
9688
+ readonly '0x3e102c7d9b46c92abcd4c2e1c70f362b47a201a6': "0x4effB5813271699683C25c734F4daBc45B363709";
9689
+ };
7906
9690
 
7907
9691
  type EvmDepositToDataParams = {
7908
9692
  token: Hex | string;
@@ -8599,6 +10383,18 @@ declare const IntentFilledEventAbi: {
8599
10383
  readonly anonymous: false;
8600
10384
  };
8601
10385
  type IntentFilledEventLog = GetLogsReturnType<typeof IntentFilledEventAbi>[number];
10386
+ declare const MintPositionEventAbi: {
10387
+ readonly type: "event";
10388
+ readonly name: "MintPosition";
10389
+ readonly inputs: readonly [{
10390
+ readonly name: "tokenId";
10391
+ readonly type: "uint256";
10392
+ readonly indexed: true;
10393
+ readonly internalType: "uint256";
10394
+ }];
10395
+ readonly anonymous: false;
10396
+ };
10397
+ type MintPositionEventLog = GetLogsReturnType<typeof MintPositionEventAbi>[number];
8602
10398
  declare class EvmSolverService {
8603
10399
  private constructor();
8604
10400
  /**
@@ -9881,48 +11677,378 @@ declare class Erc20Service {
9881
11677
  private constructor();
9882
11678
  static getErc20Token(token: Address$1, publicClient: PublicClient): Promise<Erc20Token>;
9883
11679
  /**
9884
- * Check if spender has enough ERC20 allowance for given amount
9885
- * @param token - ERC20 token address
9886
- * @param amount - Amount to check allowance for
9887
- * @param owner - User wallet address
9888
- * @param spender - Spender address
9889
- * @param spokeProvider - EVM Spoke provider
9890
- * @return - True if spender is allowed to spend amount on behalf of owner
11680
+ * Check if spender has enough ERC20 allowance for given amount
11681
+ * @param token - ERC20 token address
11682
+ * @param amount - Amount to check allowance for
11683
+ * @param owner - User wallet address
11684
+ * @param spender - Spender address
11685
+ * @param spokeProvider - EVM Spoke provider
11686
+ * @return - True if spender is allowed to spend amount on behalf of owner
11687
+ */
11688
+ static isAllowanceValid(token: Address$1, amount: bigint, owner: Address$1, spender: Address$1, spokeProvider: EvmSpokeProviderType | SonicSpokeProviderType): Promise<Result<boolean>>;
11689
+ /**
11690
+ * Approve ERC20 amount spending
11691
+ * @param token - ERC20 token address
11692
+ * @param amount - Amount to approve
11693
+ * @param spender - Spender address
11694
+ * @param provider - EVM Provider
11695
+ */
11696
+ static approve<R extends boolean = false>(token: Address$1, amount: bigint, spender: Address$1, spokeProvider: EvmSpokeProviderType | SonicSpokeProviderType, raw?: R): Promise<TxReturnType<EvmSpokeProviderType | SonicSpokeProviderType, R>>;
11697
+ /**
11698
+ * Encodes a transfer transaction for a token.
11699
+ * @param token - The address of the token.
11700
+ * @param to - The address to transfer the token to.
11701
+ * @param amount - The amount of the token to transfer.
11702
+ * @returns The encoded contract call.
11703
+ */
11704
+ static encodeTransfer(token: Address$1, to: Address$1, amount: bigint): EvmContractCall;
11705
+ /**
11706
+ * Encodes a transferFrom transaction for a token.
11707
+ * @param token - The address of the token.
11708
+ * @param from - The address to transfer the token from.
11709
+ * @param to - The address to transfer the token to.
11710
+ * @param amount - The amount of the token to transfer.
11711
+ * @returns The encoded contract call.
11712
+ */
11713
+ static encodeTransferFrom(token: Address$1, from: Address$1, to: Address$1, amount: bigint): EvmContractCall;
11714
+ /**
11715
+ * Encodes an approval transaction for a token.
11716
+ * @param token - The address of the token.
11717
+ * @param to - The address to approve the token to.
11718
+ * @param amount - The amount of the token to approve.
11719
+ * @returns The encoded contract call.
11720
+ */
11721
+ static encodeApprove(token: Address$1, to: Address$1, amount: bigint): EvmContractCall;
11722
+ }
11723
+
11724
+ declare class Erc4626Service {
11725
+ private constructor();
11726
+ /**
11727
+ * Get the underlying asset address of the vault
11728
+ * @param vault - ERC4626 vault address
11729
+ * @param spokeProvider - EVM Spoke provider
11730
+ * @returns The address of the underlying asset
11731
+ */
11732
+ static getAsset(vault: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<Address$1>>;
11733
+ /**
11734
+ * Get the total amount of underlying assets held by the vault
11735
+ * @param vault - ERC4626 vault address
11736
+ * @param spokeProvider - EVM Spoke provider
11737
+ * @returns Total assets in the vault
11738
+ */
11739
+ static getTotalAssets(vault: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<bigint>>;
11740
+ /**
11741
+ * Convert assets to shares
11742
+ * @param vault - ERC4626 vault address
11743
+ * @param assets - Amount of assets to convert
11744
+ * @param spokeProvider - EVM Spoke provider
11745
+ * @returns Equivalent amount of shares
11746
+ */
11747
+ static convertToShares(vault: Address$1, assets: bigint, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<bigint>>;
11748
+ /**
11749
+ * Convert shares to assets
11750
+ * @param vault - ERC4626 vault address
11751
+ * @param shares - Amount of shares to convert
11752
+ * @param spokeProvider - EVM Spoke provider
11753
+ * @returns Equivalent amount of assets
11754
+ */
11755
+ static convertToAssets(vault: Address$1, shares: bigint, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<bigint>>;
11756
+ /**
11757
+ * Get the maximum amount of assets that can be deposited
11758
+ * @param vault - ERC4626 vault address
11759
+ * @param receiver - Address that will receive the shares
11760
+ * @param spokeProvider - EVM Spoke provider
11761
+ * @returns Maximum deposit amount
11762
+ */
11763
+ static getMaxDeposit(vault: Address$1, receiver: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<bigint>>;
11764
+ /**
11765
+ * Preview the amount of shares that would be minted for a deposit
11766
+ * @param vault - ERC4626 vault address
11767
+ * @param assets - Amount of assets to deposit
11768
+ * @param spokeProvider - EVM Spoke provider
11769
+ * @returns Expected shares to be minted
11770
+ */
11771
+ static previewDeposit(vault: Address$1, assets: bigint, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<bigint>>;
11772
+ /**
11773
+ * Deposit assets into the vault
11774
+ * @param vault - ERC4626 vault address
11775
+ * @param assets - Amount of assets to deposit
11776
+ * @param receiver - Address that will receive the shares
11777
+ * @param spokeProvider - EVM Provider
11778
+ * @param raw - Whether to return raw transaction data
11779
+ */
11780
+ static deposit<R extends boolean = false>(vault: Address$1, assets: bigint, receiver: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
11781
+ /**
11782
+ * Get the maximum amount of shares that can be minted
11783
+ * @param vault - ERC4626 vault address
11784
+ * @param receiver - Address that will receive the shares
11785
+ * @param spokeProvider - EVM Spoke provider
11786
+ * @returns Maximum mint amount
11787
+ */
11788
+ static getMaxMint(vault: Address$1, receiver: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<bigint>>;
11789
+ /**
11790
+ * Preview the amount of assets needed to mint shares
11791
+ * @param vault - ERC4626 vault address
11792
+ * @param shares - Amount of shares to mint
11793
+ * @param spokeProvider - EVM Spoke provider
11794
+ * @returns Expected assets needed
11795
+ */
11796
+ static previewMint(vault: Address$1, shares: bigint, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<bigint>>;
11797
+ /**
11798
+ * Mint vault shares
11799
+ * @param vault - ERC4626 vault address
11800
+ * @param shares - Amount of shares to mint
11801
+ * @param receiver - Address that will receive the shares
11802
+ * @param spokeProvider - EVM Provider
11803
+ * @param raw - Whether to return raw transaction data
11804
+ */
11805
+ static mint<R extends boolean = false>(vault: Address$1, shares: bigint, receiver: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
11806
+ /**
11807
+ * Get the maximum amount of assets that can be withdrawn
11808
+ * @param vault - ERC4626 vault address
11809
+ * @param owner - Address of the share owner
11810
+ * @param spokeProvider - EVM Spoke provider
11811
+ * @returns Maximum withdrawal amount
11812
+ */
11813
+ static getMaxWithdraw(vault: Address$1, owner: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<bigint>>;
11814
+ /**
11815
+ * Preview the amount of shares that would be burned for a withdrawal
11816
+ * @param vault - ERC4626 vault address
11817
+ * @param assets - Amount of assets to withdraw
11818
+ * @param spokeProvider - EVM Spoke provider
11819
+ * @returns Expected shares to be burned
11820
+ */
11821
+ static previewWithdraw(vault: Address$1, assets: bigint, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<bigint>>;
11822
+ /**
11823
+ * Withdraw assets from the vault
11824
+ * @param vault - ERC4626 vault address
11825
+ * @param assets - Amount of assets to withdraw
11826
+ * @param receiver - Address that will receive the assets
11827
+ * @param owner - Address of the share owner
11828
+ * @param spokeProvider - EVM Provider
11829
+ * @param raw - Whether to return raw transaction data
11830
+ */
11831
+ static withdraw<R extends boolean = false>(vault: Address$1, assets: bigint, receiver: Address$1, owner: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
11832
+ /**
11833
+ * Get the maximum amount of shares that can be redeemed
11834
+ * @param vault - ERC4626 vault address
11835
+ * @param owner - Address of the share owner
11836
+ * @param spokeProvider - EVM Spoke provider
11837
+ * @returns Maximum redeem amount
11838
+ */
11839
+ static getMaxRedeem(vault: Address$1, owner: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<bigint>>;
11840
+ /**
11841
+ * Preview the amount of assets that would be received for a redemption
11842
+ * @param vault - ERC4626 vault address
11843
+ * @param shares - Amount of shares to redeem
11844
+ * @param spokeProvider - EVM Spoke provider
11845
+ * @returns Expected assets to be received
11846
+ */
11847
+ static previewRedeem(vault: Address$1, shares: bigint, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<bigint>>;
11848
+ /**
11849
+ * Redeem shares for assets
11850
+ * @param vault - ERC4626 vault address
11851
+ * @param shares - Amount of shares to redeem
11852
+ * @param receiver - Address that will receive the assets
11853
+ * @param owner - Address of the share owner
11854
+ * @param spokeProvider - EVM Provider
11855
+ * @param raw - Whether to return raw transaction data
11856
+ */
11857
+ static redeem<R extends boolean = false>(vault: Address$1, shares: bigint, receiver: Address$1, owner: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
11858
+ /**
11859
+ * Encodes a deposit transaction for a vault.
11860
+ * @param vault - The address of the ERC4626 vault.
11861
+ * @param assets - The amount of assets to deposit.
11862
+ * @param receiver - The address that will receive the shares.
11863
+ * @returns The encoded contract call.
11864
+ */
11865
+ static encodeDeposit(vault: Address$1, assets: bigint, receiver: Address$1): EvmContractCall;
11866
+ /**
11867
+ * Encodes a mint transaction for a vault.
11868
+ * @param vault - The address of the ERC4626 vault.
11869
+ * @param shares - The amount of shares to mint.
11870
+ * @param receiver - The address that will receive the shares.
11871
+ * @returns The encoded contract call.
11872
+ */
11873
+ static encodeMint(vault: Address$1, shares: bigint, receiver: Address$1): EvmContractCall;
11874
+ /**
11875
+ * Encodes a withdraw transaction for a vault.
11876
+ * @param vault - The address of the ERC4626 vault.
11877
+ * @param assets - The amount of assets to withdraw.
11878
+ * @param receiver - The address that will receive the assets.
11879
+ * @param owner - The address of the share owner.
11880
+ * @returns The encoded contract call.
11881
+ */
11882
+ static encodeWithdraw(vault: Address$1, assets: bigint, receiver: Address$1, owner: Address$1): EvmContractCall;
11883
+ /**
11884
+ * Encodes a redeem transaction for a vault.
11885
+ * @param vault - The address of the ERC4626 vault.
11886
+ * @param shares - The amount of shares to redeem.
11887
+ * @param receiver - The address that will receive the assets.
11888
+ * @param owner - The address of the share owner.
11889
+ * @returns The encoded contract call.
11890
+ */
11891
+ static encodeRedeem(vault: Address$1, shares: bigint, receiver: Address$1, owner: Address$1): EvmContractCall;
11892
+ }
11893
+
11894
+ interface PermitDetails {
11895
+ token: Address$1;
11896
+ amount: bigint;
11897
+ expiration: number;
11898
+ nonce: number;
11899
+ }
11900
+ interface PermitSingle {
11901
+ details: PermitDetails;
11902
+ spender: Address$1;
11903
+ sigDeadline: bigint;
11904
+ }
11905
+ interface PermitBatch {
11906
+ details: PermitDetails[];
11907
+ spender: Address$1;
11908
+ sigDeadline: bigint;
11909
+ }
11910
+ interface AllowanceTransferDetails {
11911
+ from: Address$1;
11912
+ to: Address$1;
11913
+ amount: bigint;
11914
+ token: Address$1;
11915
+ }
11916
+ interface TokenSpenderPair {
11917
+ token: Address$1;
11918
+ spender: Address$1;
11919
+ }
11920
+ interface AllowanceInfo {
11921
+ amount: bigint;
11922
+ expiration: number;
11923
+ nonce: number;
11924
+ }
11925
+ declare class Permit2Service {
11926
+ private constructor();
11927
+ /**
11928
+ * Get allowance information for a user, token, and spender
11929
+ * @param permit2 - Permit2 contract address
11930
+ * @param user - User address
11931
+ * @param token - Token address
11932
+ * @param spender - Spender address
11933
+ * @param spokeProvider - EVM Spoke provider
11934
+ * @returns Allowance details including amount, expiration, and nonce
11935
+ */
11936
+ static getAllowance(permit2: Address$1, user: Address$1, token: Address$1, spender: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<AllowanceInfo>>;
11937
+ /**
11938
+ * Check if a spender has sufficient Permit2 allowance
11939
+ * @param permit2 - Permit2 contract address
11940
+ * @param user - User address
11941
+ * @param token - Token address
11942
+ * @param spender - Spender address
11943
+ * @param amount - Required amount
11944
+ * @param spokeProvider - EVM Spoke provider
11945
+ * @returns True if allowance is sufficient and not expired
11946
+ */
11947
+ static isAllowanceValid(permit2: Address$1, user: Address$1, token: Address$1, spender: Address$1, amount: bigint, spokeProvider: EvmSpokeProvider | SonicSpokeProvider | EvmHubProvider): Promise<Result<boolean>>;
11948
+ /**
11949
+ * Approve a spender to transfer tokens via Permit2
11950
+ * @param permit2 - Permit2 contract address
11951
+ * @param token - Token address
11952
+ * @param spender - Spender address
11953
+ * @param amount - Amount to approve (uint160)
11954
+ * @param expiration - Expiration timestamp
11955
+ * @param spokeProvider - EVM Provider
11956
+ * @param raw - Whether to return raw transaction data
11957
+ */
11958
+ static approve<R extends boolean = false>(permit2: Address$1, token: Address$1, spender: Address$1, amount: bigint, expiration: number, spokeProvider: EvmSpokeProvider | SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
11959
+ /**
11960
+ * Execute a permit for a single token
11961
+ * @param permit2 - Permit2 contract address
11962
+ * @param owner - Owner address
11963
+ * @param permitSingle - Permit data for single token
11964
+ * @param signature - EIP-712 signature
11965
+ * @param spokeProvider - EVM Provider
11966
+ * @param raw - Whether to return raw transaction data
11967
+ */
11968
+ static permit<R extends boolean = false>(permit2: Address$1, owner: Address$1, permitSingle: PermitSingle, signature: `0x${string}`, spokeProvider: EvmSpokeProvider | SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
11969
+ /**
11970
+ * Execute a permit for multiple tokens
11971
+ * @param permit2 - Permit2 contract address
11972
+ * @param owner - Owner address
11973
+ * @param permitBatch - Permit data for multiple tokens
11974
+ * @param signature - EIP-712 signature
11975
+ * @param spokeProvider - EVM Provider
11976
+ * @param raw - Whether to return raw transaction data
11977
+ */
11978
+ static permitBatch<R extends boolean = false>(permit2: Address$1, owner: Address$1, permitBatch: PermitBatch, signature: `0x${string}`, spokeProvider: EvmSpokeProvider | SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
11979
+ /**
11980
+ * Transfer tokens from one address to another using Permit2
11981
+ * @param permit2 - Permit2 contract address
11982
+ * @param from - From address
11983
+ * @param to - To address
11984
+ * @param amount - Amount to transfer (uint160)
11985
+ * @param token - Token address
11986
+ * @param spokeProvider - EVM Provider
11987
+ * @param raw - Whether to return raw transaction data
11988
+ */
11989
+ static transferFrom<R extends boolean = false>(permit2: Address$1, from: Address$1, to: Address$1, amount: bigint, token: Address$1, spokeProvider: EvmSpokeProvider | SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
11990
+ /**
11991
+ * Transfer multiple tokens in a batch using Permit2
11992
+ * @param permit2 - Permit2 contract address
11993
+ * @param transferDetails - Array of transfer details
11994
+ * @param spokeProvider - EVM Provider
11995
+ * @param raw - Whether to return raw transaction data
11996
+ */
11997
+ static transferFromBatch<R extends boolean = false>(permit2: Address$1, transferDetails: AllowanceTransferDetails[], spokeProvider: EvmSpokeProvider | SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
11998
+ /**
11999
+ * Lockdown approvals to prevent malicious usage
12000
+ * @param permit2 - Permit2 contract address
12001
+ * @param approvals - Array of token-spender pairs to lockdown
12002
+ * @param spokeProvider - EVM Provider
12003
+ * @param raw - Whether to return raw transaction data
9891
12004
  */
9892
- static isAllowanceValid(token: Address$1, amount: bigint, owner: Address$1, spender: Address$1, spokeProvider: EvmSpokeProviderType | SonicSpokeProviderType): Promise<Result<boolean>>;
12005
+ static lockdown<R extends boolean = false>(permit2: Address$1, approvals: TokenSpenderPair[], spokeProvider: EvmSpokeProvider | SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
9893
12006
  /**
9894
- * Approve ERC20 amount spending
9895
- * @param token - ERC20 token address
9896
- * @param amount - Amount to approve
12007
+ * Invalidate nonces to prevent replay attacks
12008
+ * @param permit2 - Permit2 contract address
12009
+ * @param token - Token address
9897
12010
  * @param spender - Spender address
9898
- * @param provider - EVM Provider
12011
+ * @param newNonce - New nonce value
12012
+ * @param spokeProvider - EVM Provider
12013
+ * @param raw - Whether to return raw transaction data
9899
12014
  */
9900
- static approve<R extends boolean = false>(token: Address$1, amount: bigint, spender: Address$1, spokeProvider: EvmSpokeProviderType | SonicSpokeProviderType, raw?: R): Promise<TxReturnType<EvmSpokeProviderType | SonicSpokeProviderType, R>>;
12015
+ static invalidateNonces<R extends boolean = false>(permit2: Address$1, token: Address$1, spender: Address$1, newNonce: number, spokeProvider: EvmSpokeProvider | SonicSpokeProvider, raw?: R): PromiseEvmTxReturnType<R>;
9901
12016
  /**
9902
- * Encodes a transfer transaction for a token.
12017
+ * Encodes an approve transaction for Permit2.
12018
+ * @param permit2 - The address of the Permit2 contract.
9903
12019
  * @param token - The address of the token.
9904
- * @param to - The address to transfer the token to.
9905
- * @param amount - The amount of the token to transfer.
12020
+ * @param spender - The address of the spender.
12021
+ * @param amount - The amount to approve.
12022
+ * @param expiration - The expiration timestamp.
9906
12023
  * @returns The encoded contract call.
9907
12024
  */
9908
- static encodeTransfer(token: Address$1, to: Address$1, amount: bigint): EvmContractCall;
12025
+ static encodeApprove(permit2: Address$1, token: Address$1, spender: Address$1, amount: bigint, expiration: number): EvmContractCall;
9909
12026
  /**
9910
- * Encodes a transferFrom transaction for a token.
9911
- * @param token - The address of the token.
9912
- * @param from - The address to transfer the token from.
9913
- * @param to - The address to transfer the token to.
9914
- * @param amount - The amount of the token to transfer.
12027
+ * Encodes a permit transaction for Permit2.
12028
+ * @param permit2 - The address of the Permit2 contract.
12029
+ * @param owner - The owner address.
12030
+ * @param permitSingle - The permit data.
12031
+ * @param signature - The signature.
9915
12032
  * @returns The encoded contract call.
9916
12033
  */
9917
- static encodeTransferFrom(token: Address$1, from: Address$1, to: Address$1, amount: bigint): EvmContractCall;
12034
+ static encodePermit(permit2: Address$1, owner: Address$1, permitSingle: PermitSingle, signature: `0x${string}`): EvmContractCall;
9918
12035
  /**
9919
- * Encodes an approval transaction for a token.
9920
- * @param token - The address of the token.
9921
- * @param to - The address to approve the token to.
9922
- * @param amount - The amount of the token to approve.
12036
+ * Encodes a transferFrom transaction for Permit2.
12037
+ * @param permit2 - The address of the Permit2 contract.
12038
+ * @param from - The from address.
12039
+ * @param to - The to address.
12040
+ * @param amount - The amount to transfer.
12041
+ * @param token - The token address.
9923
12042
  * @returns The encoded contract call.
9924
12043
  */
9925
- static encodeApprove(token: Address$1, to: Address$1, amount: bigint): EvmContractCall;
12044
+ static encodeTransferFrom(permit2: Address$1, from: Address$1, to: Address$1, amount: bigint, token: Address$1): EvmContractCall;
12045
+ /**
12046
+ * Encodes a transferFromBatch transaction for Permit2.
12047
+ * @param permit2 - The address of the Permit2 contract.
12048
+ * @param transferDetails - Array of transfer details.
12049
+ * @returns The encoded contract call.
12050
+ */
12051
+ static encodeTransferFromBatch(permit2: Address$1, transferDetails: AllowanceTransferDetails[]): EvmContractCall;
9926
12052
  }
9927
12053
 
9928
12054
  type NearSpokeDepositParams = {
@@ -9938,6 +12064,7 @@ type LegacybnUSDTokenAddress = (typeof bnUSDLegacyTokens)[number]['address'];
9938
12064
  type LegacybnUSDToken = (typeof bnUSDLegacyTokens)[number];
9939
12065
  type NewbnUSDChainId = (typeof newbnUSDSpokeChainIds)[number];
9940
12066
  type MoneyMarketServiceConfig = Prettify<MoneyMarketConfig & PartnerFeeConfig & RelayerApiConfig>;
12067
+ type ClServiceConfig = Prettify<ConcentratedLiquidityConfig & RelayerApiConfig>;
9941
12068
  type SwapServiceConfig = Prettify<SolverConfig & PartnerFeeConfig & RelayerApiConfig>;
9942
12069
  type MigrationServiceConfig = Prettify<RelayerApiConfig>;
9943
12070
  type BridgeServiceConfig = Optional<PartnerFeeConfig, 'partnerFee'>;
@@ -10034,6 +12161,9 @@ type FeeAmount = {
10034
12161
  type OptionalFee = {
10035
12162
  fee?: PartnerFee;
10036
12163
  };
12164
+ type OptionalSkipSimulation = {
12165
+ skipSimulation?: boolean;
12166
+ };
10037
12167
  type EvmTxReturnType<T extends boolean> = T extends true ? TransactionReceipt : Hex$1;
10038
12168
  type IconContractAddress = `cx${string}`;
10039
12169
  type IcxTokenType = (typeof spokeChainConfig)[typeof ICON_MAINNET_CHAIN_ID]['addresses']['wICX'] | (typeof spokeChainConfig)[typeof ICON_MAINNET_CHAIN_ID]['nativeToken'];
@@ -10044,7 +12174,7 @@ type Result<T, E = Error | unknown> = {
10044
12174
  ok: false;
10045
12175
  error: E;
10046
12176
  };
10047
- type SpokeDepositParams = EvmSpokeDepositParams | InjectiveSpokeDepositParams | IconSpokeDepositParams;
12177
+ type SpokeDepositParams = EvmSpokeDepositParams | InjectiveSpokeDepositParams | SuiSpokeDepositParams | IconSpokeDepositParams | StellarSpokeDepositParams | SolanaSpokeDepositParams | SonicSpokeDepositParams;
10048
12178
  type GetSpokeDepositParamsType<T extends SpokeProviderType> = T extends EvmSpokeProvider ? EvmSpokeDepositParams : T extends EvmRawSpokeProvider ? EvmSpokeDepositParams : T extends InjectiveSpokeProvider ? InjectiveSpokeDepositParams : T extends InjectiveRawSpokeProvider ? InjectiveSpokeDepositParams : T extends SuiSpokeProvider ? SuiSpokeDepositParams : T extends SuiRawSpokeProvider ? SuiSpokeDepositParams : T extends IconSpokeProvider ? IconSpokeDepositParams : T extends IconRawSpokeProvider ? IconSpokeDepositParams : T extends StellarSpokeProvider ? StellarSpokeDepositParams : T extends StellarRawSpokeProvider ? StellarSpokeDepositParams : T extends SolanaSpokeProvider ? SolanaSpokeDepositParams : T extends SolanaRawSpokeProvider ? SolanaSpokeDepositParams : T extends SonicSpokeProvider ? SonicSpokeDepositParams : T extends SonicRawSpokeProvider ? SonicSpokeDepositParams : T extends BitcoinSpokeProvider ? BitcoinSpokeDepositParams : T extends BitcoinRawSpokeProvider ? BitcoinSpokeDepositParams : T extends NearSpokeProvider ? NearSpokeDepositParams : T extends NearRawSpokeProvider ? NearSpokeDepositParams : never;
10049
12179
  type GetAddressType<T extends SpokeProviderType> = T extends EvmSpokeProvider ? Address : T extends EvmRawSpokeProvider ? Address : T extends InjectiveSpokeProvider ? string : T extends InjectiveRawSpokeProvider ? string : T extends StellarSpokeProvider ? Hex$1 : T extends StellarRawSpokeProvider ? Hex$1 : T extends IconSpokeProvider ? IconAddress : T extends IconRawSpokeProvider ? IconAddress : T extends SuiSpokeProvider ? Hex$1 : T extends SuiRawSpokeProvider ? Hex$1 : T extends SolanaSpokeProvider ? Hex$1 : T extends SolanaRawSpokeProvider ? Hex$1 : T extends SonicSpokeProvider ? Address : T extends SonicRawSpokeProvider ? Address : T extends NearSpokeProvider ? Address : T extends NearRawSpokeProvider ? Address : never;
10050
12180
  type SolverConfigParams = Prettify<SolverConfig & Optional<PartnerFeeConfig, 'partnerFee'>> | Optional<PartnerFeeConfig, 'partnerFee'>;
@@ -10195,7 +12325,7 @@ type InjectiveGasEstimate = {
10195
12325
  };
10196
12326
  type GasEstimateType = EvmGasEstimate | SolanaGasEstimate | StellarGasEstimate | IconGasEstimate | SuiGasEstimate | InjectiveGasEstimate;
10197
12327
  type GetEstimateGasReturnType<T extends SpokeProviderType> = T['chainConfig']['chain']['type'] extends 'EVM' ? EvmGasEstimate : T['chainConfig']['chain']['type'] extends 'SOLANA' ? SolanaGasEstimate : T['chainConfig']['chain']['type'] extends 'STELLAR' ? StellarGasEstimate : T['chainConfig']['chain']['type'] extends 'ICON' ? IconGasEstimate : T['chainConfig']['chain']['type'] extends 'SUI' ? SuiGasEstimate : T['chainConfig']['chain']['type'] extends 'INJECTIVE' ? InjectiveGasEstimate : GasEstimateType;
10198
- type OptionalRaw<R extends boolean = false> = {
12328
+ type OptionalRaw<R extends boolean> = {
10199
12329
  raw?: R;
10200
12330
  };
10201
12331
  type OptionalTimeout = {
@@ -10214,6 +12344,14 @@ type RateLimitConfig = {
10214
12344
  available: number;
10215
12345
  };
10216
12346
  type GetChainConfigType<T extends ChainType> = T extends 'EVM' ? EvmSpokeChainConfig : T extends 'SOLANA' ? SolanaChainConfig : T extends 'STELLAR' ? StellarSpokeChainConfig : T extends 'ICON' ? IconSpokeChainConfig : T extends 'SUI' ? SuiSpokeChainConfig : T extends 'INJECTIVE' ? InjectiveSpokeChainConfig : BaseSpokeChainConfig<T>;
12347
+ type RawDestinationParams = {
12348
+ toChainId: SpokeChainId;
12349
+ toAddress: string;
12350
+ };
12351
+ type SpokeProviderObjectType = {
12352
+ spokeProvider: SpokeProviderType;
12353
+ };
12354
+ type DestinationParamsType = RawDestinationParams | SpokeProviderObjectType;
10217
12355
  type SonicAddressOrSpokeType = {
10218
12356
  address: Address;
10219
12357
  } | {
@@ -10276,7 +12414,13 @@ interface RequestConfig {
10276
12414
  headers?: Record<string, string>;
10277
12415
  body?: string;
10278
12416
  timeout?: number;
12417
+ baseURL?: string;
10279
12418
  }
12419
+ type RequestOverrideConfig = {
12420
+ baseURL?: string;
12421
+ timeout?: number;
12422
+ headers?: Record<string, string>;
12423
+ };
10280
12424
  interface IntentResponse {
10281
12425
  intentHash: string;
10282
12426
  txHash: string;
@@ -10405,13 +12549,25 @@ declare class BackendApiService implements IConfigApi {
10405
12549
  * @param txHash - The intent created transaction hash from the hub chain
10406
12550
  * @returns Promise<IntentResponse>
10407
12551
  */
10408
- getIntentByTxHash(txHash: string): Promise<IntentResponse>;
12552
+ getIntentByTxHash(txHash: string, config?: RequestOverrideConfig): Promise<IntentResponse>;
10409
12553
  /**
10410
12554
  * Get intent details by intent hash
10411
12555
  * @param intentHash - Intent hash
10412
12556
  * @returns Promise<IntentResponse>
10413
12557
  */
10414
- getIntentByHash(intentHash: string): Promise<IntentResponse>;
12558
+ getIntentByHash(intentHash: string, config?: RequestOverrideConfig): Promise<IntentResponse>;
12559
+ /**
12560
+ * Submit a swap transaction to be processed (relay, post execution to solver, etc.)
12561
+ * @param params - Swap transaction submission data
12562
+ * @returns Promise<SubmitSwapTxResponse>
12563
+ */
12564
+ submitSwapTx(params: SubmitSwapTxRequest, config?: RequestOverrideConfig): Promise<SubmitSwapTxResponse>;
12565
+ /**
12566
+ * Get the processing status of a submitted swap transaction
12567
+ * @param params - Query parameters containing txHash and optional srcChainId
12568
+ * @returns Promise<SubmitSwapTxStatusResponse>
12569
+ */
12570
+ getSubmitSwapTxStatus(params: GetSubmitSwapTxStatusParams, config?: RequestOverrideConfig): Promise<SubmitSwapTxStatusResponse>;
10415
12571
  /**
10416
12572
  * Get the solver orderbook
10417
12573
  * @param params - Object containing offset and limit parameters for pagination
@@ -10420,7 +12576,7 @@ declare class BackendApiService implements IConfigApi {
10420
12576
  getOrderbook(params: {
10421
12577
  offset: string;
10422
12578
  limit: string;
10423
- }): Promise<OrderbookResponse>;
12579
+ }, config?: RequestOverrideConfig): Promise<OrderbookResponse>;
10424
12580
  /**
10425
12581
  * Get all intents created by a specific user address with optional filters.
10426
12582
  *
@@ -10439,24 +12595,24 @@ declare class BackendApiService implements IConfigApi {
10439
12595
  endDate?: number;
10440
12596
  limit?: string;
10441
12597
  offset?: string;
10442
- }): Promise<UserIntentsResponse>;
12598
+ }, config?: RequestOverrideConfig): Promise<UserIntentsResponse>;
10443
12599
  /**
10444
12600
  * Get money market position for a specific user
10445
12601
  * @param userAddress - User's wallet address
10446
12602
  * @returns Promise<MoneyMarketPosition>
10447
12603
  */
10448
- getMoneyMarketPosition(userAddress: string): Promise<MoneyMarketPosition>;
12604
+ getMoneyMarketPosition(userAddress: string, config?: RequestOverrideConfig): Promise<MoneyMarketPosition>;
10449
12605
  /**
10450
12606
  * Get all money market assets
10451
12607
  * @returns Promise<MoneyMarketAsset[]>
10452
12608
  */
10453
- getAllMoneyMarketAssets(): Promise<MoneyMarketAsset[]>;
12609
+ getAllMoneyMarketAssets(config?: RequestOverrideConfig): Promise<MoneyMarketAsset[]>;
10454
12610
  /**
10455
12611
  * Get specific money market asset details
10456
12612
  * @param reserveAddress - Reserve contract address
10457
12613
  * @returns Promise<MoneyMarketAsset>
10458
12614
  */
10459
- getMoneyMarketAsset(reserveAddress: string): Promise<MoneyMarketAsset>;
12615
+ getMoneyMarketAsset(reserveAddress: string, config?: RequestOverrideConfig): Promise<MoneyMarketAsset>;
10460
12616
  /**
10461
12617
  * Get borrowers for a specific money market asset
10462
12618
  * @param reserveAddress - Reserve contract address
@@ -10466,7 +12622,7 @@ declare class BackendApiService implements IConfigApi {
10466
12622
  getMoneyMarketAssetBorrowers(reserveAddress: string, params: {
10467
12623
  offset: string;
10468
12624
  limit: string;
10469
- }): Promise<MoneyMarketAssetBorrowers>;
12625
+ }, config?: RequestOverrideConfig): Promise<MoneyMarketAssetBorrowers>;
10470
12626
  /**
10471
12627
  * Get suppliers for a specific money market asset
10472
12628
  * @param reserveAddress - Reserve contract address
@@ -10476,7 +12632,7 @@ declare class BackendApiService implements IConfigApi {
10476
12632
  getMoneyMarketAssetSuppliers(reserveAddress: string, params: {
10477
12633
  offset: string;
10478
12634
  limit: string;
10479
- }): Promise<MoneyMarketAssetSuppliers>;
12635
+ }, config?: RequestOverrideConfig): Promise<MoneyMarketAssetSuppliers>;
10480
12636
  /**
10481
12637
  * Get all money market borrowers
10482
12638
  * @param params - Object containing offset and limit parameters for pagination
@@ -10485,65 +12641,65 @@ declare class BackendApiService implements IConfigApi {
10485
12641
  getAllMoneyMarketBorrowers(params: {
10486
12642
  offset: string;
10487
12643
  limit: string;
10488
- }): Promise<MoneyMarketBorrowers>;
12644
+ }, config?: RequestOverrideConfig): Promise<MoneyMarketBorrowers>;
10489
12645
  /**
10490
12646
  * Get all supported config
10491
12647
  * @returns Promise<GetAllConfigApiResponse>
10492
12648
  */
10493
- getAllConfig(): Promise<GetAllConfigApiResponse>;
12649
+ getAllConfig(config?: RequestOverrideConfig): Promise<GetAllConfigApiResponse>;
10494
12650
  /**
10495
12651
  * Get all supported spoke chains
10496
12652
  * @returns Promise<GetChainsApiResponse>
10497
12653
  */
10498
- getChains(): Promise<GetChainsApiResponse>;
12654
+ getChains(config?: RequestOverrideConfig): Promise<GetChainsApiResponse>;
10499
12655
  /**
10500
12656
  * Get all supported swap tokens
10501
12657
  * @returns Promise<GetSwapTokensApiResponse>
10502
12658
  */
10503
- getSwapTokens(): Promise<GetSwapTokensApiResponse>;
12659
+ getSwapTokens(config?: RequestOverrideConfig): Promise<GetSwapTokensApiResponse>;
10504
12660
  /**
10505
12661
  * Get supported swap tokens for a specific spoke chain
10506
12662
  * @param chainId - Spoke chain id
10507
12663
  * @returns Promise<GetSwapTokensByChainIdApiResponse>
10508
12664
  */
10509
- getSwapTokensByChainId(chainId: SpokeChainId): Promise<GetSwapTokensByChainIdApiResponse>;
12665
+ getSwapTokensByChainId(chainId: SpokeChainId, config?: RequestOverrideConfig): Promise<GetSwapTokensByChainIdApiResponse>;
10510
12666
  /**
10511
12667
  * Get all supported money market tokens
10512
12668
  * @returns Promise<GetMoneyMarketTokensApiResponse>
10513
12669
  */
10514
- getMoneyMarketTokens(): Promise<GetMoneyMarketTokensApiResponse>;
12670
+ getMoneyMarketTokens(config?: RequestOverrideConfig): Promise<GetMoneyMarketTokensApiResponse>;
10515
12671
  /**
10516
12672
  * Get all supported money market tokens
10517
12673
  * @returns Promise<GetMoneyMarketTokensApiResponse>
10518
12674
  */
10519
- getMoneyMarketReserveAssets(): Promise<GetMoneyMarketReserveAssetsApiResponse>;
12675
+ getMoneyMarketReserveAssets(config?: RequestOverrideConfig): Promise<GetMoneyMarketReserveAssetsApiResponse>;
10520
12676
  /**
10521
12677
  * Get supported money market tokens for a specific spoke chain
10522
12678
  * @param chainId - Spoke chain id
10523
12679
  * @returns Promise<GetMoneyMarketTokensByChainIdApiResponse>
10524
12680
  */
10525
- getMoneyMarketTokensByChainId(chainId: SpokeChainId): Promise<GetMoneyMarketTokensByChainIdApiResponse>;
12681
+ getMoneyMarketTokensByChainId(chainId: SpokeChainId, config?: RequestOverrideConfig): Promise<GetMoneyMarketTokensByChainIdApiResponse>;
10526
12682
  /**
10527
12683
  * Get all supported hub assets (assets representing spoke token deposit)
10528
12684
  * @returns Promise<GetHubAssetsApiResponse>
10529
12685
  */
10530
- getHubAssets(): Promise<GetHubAssetsApiResponse>;
12686
+ getHubAssets(config?: RequestOverrideConfig): Promise<GetHubAssetsApiResponse>;
10531
12687
  /**
10532
12688
  * Get supported hub assets (assets representing spoke token deposit) for a specific spoke chain
10533
12689
  * @param chainId - Spoke chain id
10534
12690
  * @returns Promise<GetHubAssetsByChainIdApiResponse>
10535
12691
  */
10536
- getHubAssetsByChainId(chainId: SpokeChainId): Promise<GetHubAssetsByChainIdApiResponse>;
12692
+ getHubAssetsByChainId(chainId: SpokeChainId, config?: RequestOverrideConfig): Promise<GetHubAssetsByChainIdApiResponse>;
10537
12693
  /**
10538
12694
  * Get the intent relay chain id map
10539
12695
  * @returns Promise<GetRelayChainIdMapApiResponse>
10540
12696
  */
10541
- getRelayChainIdMap(): Promise<GetRelayChainIdMapApiResponse>;
12697
+ getRelayChainIdMap(config?: RequestOverrideConfig): Promise<GetRelayChainIdMapApiResponse>;
10542
12698
  /**
10543
12699
  * Get the spoke chain config
10544
12700
  * @returns Promise<GetSpokeChainConfigApiResponse>
10545
12701
  */
10546
- getSpokeChainConfig(): Promise<GetSpokeChainConfigApiResponse>;
12702
+ getSpokeChainConfig(config?: RequestOverrideConfig): Promise<GetSpokeChainConfigApiResponse>;
10547
12703
  /**
10548
12704
  * Set custom headers for API requests
10549
12705
  * @param headers - Object containing header key-value pairs
@@ -10583,6 +12739,7 @@ declare class ConfigService {
10583
12739
  private supportedTokensPerChain;
10584
12740
  private moneyMarketReserveAssetsSet;
10585
12741
  private spokeChainIdsSet;
12742
+ private stakedATokenAddressesSet;
10586
12743
  constructor({ backendApiService, config, sharedConfig }: ConfigServiceConstructorParams);
10587
12744
  initialize(): Promise<Result<void>>;
10588
12745
  getChains(): GetChainsApiResponse;
@@ -10614,7 +12771,12 @@ declare class ConfigService {
10614
12771
  getSupportedSwapTokens(): GetSwapTokensApiResponse;
10615
12772
  isNativeToken(chainId: SpokeChainId, token: Token | string): boolean;
10616
12773
  findSupportedTokenBySymbol(chainId: SpokeChainId, symbol: string): XToken | undefined;
10617
- getOriginalAssetInfoFromVault(chainId: SpokeChainId, vault: Address): OriginalAssetAddress[];
12774
+ isValidStakedATokenAddress(address: Address): boolean;
12775
+ getOriginalAssetsFromVault(chainId: SpokeChainId, vault: Address): OriginalAssetAddress[];
12776
+ getSodaTokenAddress(chainId: SpokeChainId): string | undefined;
12777
+ getOriginalAssetAddressFromStakedATokenAddress: (chainId: SpokeChainId, address: Address) => OriginalAssetAddress;
12778
+ findTokenByOriginalAddress(originalAddress: OriginalAssetAddress, chainId: SpokeChainId): XToken | undefined;
12779
+ getDexPools(): PoolKey[];
10618
12780
  isMoneyMarketSupportedToken(chainId: SpokeChainId, token: string): boolean;
10619
12781
  isMoneyMarketReserveAsset(asset: Address): boolean;
10620
12782
  isMoneyMarketReserveHubAsset(hubAsset: Address): boolean;
@@ -11087,6 +13249,8 @@ declare function isUnifiedBnUSDMigrateParams(value: unknown): value is UnifiedBn
11087
13249
  declare function isBalnMigrateParams(value: unknown): value is BalnMigrateParams;
11088
13250
  declare function isIcxCreateRevertMigrationParams(value: unknown): value is IcxCreateRevertMigrationParams;
11089
13251
  declare function isRawSpokeProvider(value: unknown): value is RawSpokeProvider;
13252
+ declare function isSpokeProvider(value: unknown): value is SpokeProvider;
13253
+ declare function isSpokeProviderType(value: unknown): value is SpokeProviderType;
11090
13254
  declare function isEvmRawSpokeProvider(value: unknown): value is EvmRawSpokeProvider;
11091
13255
  declare function isSolanaRawSpokeProvider(value: unknown): value is SolanaRawSpokeProvider;
11092
13256
  declare function isStellarRawSpokeProvider(value: unknown): value is StellarRawSpokeProvider;
@@ -11097,11 +13261,15 @@ declare function isInjectiveRawSpokeProvider(value: unknown): value is Injective
11097
13261
  declare function isSonicRawSpokeProvider(value: unknown): value is SonicRawSpokeProvider;
11098
13262
  declare function isNearRawSpokeProvider(value: unknown): value is NearRawSpokeProvider;
11099
13263
  declare function isAddressString(value: unknown): value is string;
13264
+ declare function isSpokeProviderObjectType(value: unknown): value is SpokeProviderObjectType;
13265
+ declare function isRawDestinationParams(value: unknown): value is RawDestinationParams;
11100
13266
  declare function isEvmRawSpokeProviderConfig(value: RawSpokeProviderConfig): value is EvmRawSpokeProviderConfig;
11101
13267
  declare function isSonicRawSpokeProviderConfig(value: RawSpokeProviderConfig): value is SonicRawSpokeProviderConfig;
11102
13268
  declare function isStellarRawSpokeProviderConfig(value: RawSpokeProviderConfig): value is StellarRawSpokeProviderConfig;
11103
13269
  declare function isSolanaRawSpokeProviderConfig(value: RawSpokeProviderConfig): value is SolanaRawSpokeProviderConfig;
11104
13270
  declare function isNearRawSpokeProviderConfig(value: RawSpokeProviderConfig): value is NearRawSpokeProviderConfig;
13271
+ declare function isSubmitSwapTxResponse(value: unknown): value is SubmitSwapTxResponse;
13272
+ declare function isSubmitSwapTxStatusResponse(value: unknown): value is SubmitSwapTxStatusResponse;
11105
13273
 
11106
13274
  type CreateBridgeIntentParams = {
11107
13275
  srcChainId: SpokeChainId;
@@ -12156,4 +14324,587 @@ declare class MigrationService {
12156
14324
  createRevertSodaToIcxMigrationIntent<S extends SonicSpokeProviderType = SonicSpokeProviderType, R extends boolean = false>(params: Omit<IcxCreateRevertMigrationParams, 'wICX'>, spokeProvider: S, raw?: R): Promise<Result<TxReturnType<S, R>, MigrationError<'CREATE_REVERT_MIGRATION_INTENT_FAILED'>>>;
12157
14325
  }
12158
14326
 
12159
- export { type AggregatedReserveData, type AllowanceResponse, type ApiResponse, type AssetEntry, type AutoSwapPreferences, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BitcoinBaseSpokeProvider, BitcoinRawSpokeProvider, type BitcoinSpokeDepositParams, BitcoinSpokeProvider, type BitcoinSpokeProviderType, BitcoinSpokeService, type BitcoinTransactionResult, type BitcoinTransferToHubParams, type BitcoinUTXO, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type BridgeServiceConstructorParams, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CallResponse, type CancelUnstakeParams, type ClaimParams, type CombinedReserveData, type ComputedUserReserve, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateBridgeIntentParams, type CreateIntentAutoSwapError, type CreateIntentParams, type CreateLimitOrderParams, type CustomProvider, CustomSorobanServer, CustomStellarAccount, 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, type Default, type DepositSimulationParams, type DetailedLock, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, type EmodeDataHumanized, Erc20Service, EvmAssetManagerService, EvmBaseSpokeProvider, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, EvmHubProvider, type EvmHubProviderConfig, type EvmHubProviderConstructorParams, type EvmInitializedConfig, EvmRawSpokeProvider, type EvmRawSpokeProviderConfig, type EvmReturnType, EvmSolverService, type EvmSpokeDepositParams, EvmSpokeProvider, type EvmSpokeProviderType, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, type ExecuteIntentAutoSwapError, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FeeTokenApproveParams, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, type GasEstimateType, type GetAddressType, type GetChainConfigType, type GetEstimateGasReturnType, type GetIntentSubmitTxExtraDataParams, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, HubService, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawSpokeProviderConfig, type IconRawTransaction, type IconReturnType, type IconSpokeDepositParams, IconSpokeProvider, type IconSpokeProviderType, IconSpokeService, type IconTransferToHubParams, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type InjTokenInfo, Injective20Token, InjectiveBaseSpokeProvider, type InjectiveGasEstimate, InjectiveRawSpokeProvider, type InjectiveRawSpokeProviderConfig, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentAutoSwapErrorData, type IntentAutoSwapResult, type IntentCancelFailedErrorData, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, IntentFilledEventAbi, type IntentFilledEventLog, type IntentPostExecutionFailedErrorData, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, LTV_PRECISION, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LendingPoolService, type LimitOrderParams, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationServiceConstructorParams, type MigrationTokens, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketConfigParams, MoneyMarketDataService, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketServiceConstructorParams, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, NearBaseSpokeProvider, NearRawSpokeProvider, type NearRawSpokeProviderConfig, type NearReturnType, NearSpokeProvider, type NearSpokeProviderType, type NearTransactionFailure, type NearTransactionResult, type NewbnUSDChainId, type OnDemandPayload, type Optional, type OptionalFee, type OptionalRaw, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeClaimAssetBalance, PartnerFeeClaimService, type PartnerFeeClaimServiceConfig, type PartnerFeeClaimServiceConstructorParams, type PartnerFeeClaimSwapParams, type PartnerFeeConfig, type PartnerFeePercentage, PartnerService, type PartnerServiceConfig, type PartnerServiceConstructorParams, type Payload, type PoolBaseCurrencyHumanized, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseNearRawTxReturnType, type PromiseNearTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, ProtocolIntentsAbi, type QueryMsg, type QueryResponse, type QuoteType, RAY, RAY_DECIMALS, type RadfiAuthResult, type RadfiBuildTxResponse, type RadfiConfig, RadfiProvider, type RadfiTradingWallet, type RadfiUtxo, type RadfiUtxoListResponse, type RadfiWalletBalance, type RateLimitConfig, type RawSpokeProvider, type RawSpokeProviderConfig, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResponseAddressType, type ResponseSigningType, type Result, type RewardInfoHumanized, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, type SetSwapPreferenceError, type SetSwapPreferenceParams, Sodax, type SodaxConfig, SolanaBaseSpokeProvider, type SolanaGasEstimate, SolanaRawSpokeProvider, type SolanaRawSpokeProviderConfig, type SolanaRawTransaction, type SolanaReturnType, type SolanaSpokeDepositParams, SolanaSpokeProvider, type SolanaSpokeProviderType, SolanaSpokeService, type SolanaTransferToHubParams, SolverApiService, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, type SonicAddressOrSpokeType, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicRawSpokeProviderConfig, type SonicSpokeDepositParams, SonicSpokeProvider, type SonicSpokeProviderType, SonicSpokeService, type SpokeDepositParams, type SpokeProvider, type SpokeProviderType, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StakeParams, type StakingAction, type StakingConfig, type StakingError, type StakingErrorCode, type StakingInfo, StakingLogic, type StakingParams, StakingService, type StakingServiceConstructorParams, type State, StellarBaseSpokeProvider, type StellarGasEstimate, StellarRawSpokeProvider, type StellarRawSpokeProviderConfig, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxExtraData, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawSpokeProviderConfig, type SuiRawTransaction, type SuiReturnType, type SuiSpokeDepositParams, SuiSpokeProvider, type SuiSpokeProviderType, SuiSpokeService, type SuiTransferToHubParams, SupportedMigrationTokens, type SwapParams, SwapService, type SwapServiceConfig, type SwapServiceConstructorParams, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnknownIntentAutoSwapError, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakeSodaRequest, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserIntentsResponse, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type UserUnstakeInfo, VAULT_TOKEN_DECIMALS, type VaultReserves, type VerifyTxHashRawConfig, type VerifyTxHashRawConfigType, type VerifyTxHashRawEvmConfig, type VerifyTxHashRawNearConfig, type VerifyTxHashRawSolanaConfig, type VerifyTxHashRawStellarConfig, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitIntentAutoSwapError, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletMode, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, connectionAbi, constructRawSpokeProvider, convertTransactionInstructionToRaw, deriveUserWalletAddress, encodeAddress, encodeContractCalls, erc20Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getEvmViemChain, getHubChainConfig, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, isAddressString, isBalnMigrateParams, isBitcoinRawSpokeProvider, isBitcoinSpokeProvider, isBitcoinSpokeProviderType, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isCreateIntentAutoSwapError, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmRawSpokeProviderConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isHubSpokeProvider, isIconAddress, isIconRawSpokeProvider, isIconSpokeProvider, isIconSpokeProviderType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveRawSpokeProvider, isInjectiveSpokeProvider, isInjectiveSpokeProviderType, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketWithdrawUnknownError, isNearRawSpokeProvider, isNearRawSpokeProviderConfig, isNearSpokeProvider, isNearSpokeProviderType, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSetSwapPreferenceError, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaRawSpokeProviderConfig, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSolverErrorResponse, isSonicRawSpokeProvider, isSonicRawSpokeProviderConfig, isSonicSpokeProvider, isSonicSpokeProviderType, isStellarRawSpokeProvider, isStellarRawSpokeProviderConfig, isStellarSpokeProvider, isStellarSpokeProviderType, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isUnknownIntentAutoSwapError, isWaitIntentAutoSwapError, isWaitUntilIntentExecutedFailed, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizePsbtToBase64, normalizedToUsd, parseToStroops, parseTokenArrayFromJson, poolAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, stakedSodaAbi, stakingRouterAbi, submitTransaction, uiPoolDataAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };
14327
+ type AssetServiceConfig = {
14328
+ concentratedLiquidityConfig: ConcentratedLiquidityConfig;
14329
+ };
14330
+ type AssetServiceConfigParams = AssetServiceConfig;
14331
+ type CreateAssetWithdrawParams = {
14332
+ poolToken: Address$1;
14333
+ asset: OriginalAssetAddress;
14334
+ amount: bigint;
14335
+ dst?: DestinationParamsType;
14336
+ };
14337
+ type CreateAssetDepositParams = {
14338
+ asset: OriginalAssetAddress;
14339
+ amount: bigint;
14340
+ poolToken: Address$1;
14341
+ dst?: DestinationParamsType;
14342
+ };
14343
+ type AssetWithdrawParams<S extends SpokeProviderType = SpokeProviderType> = {
14344
+ params: CreateAssetWithdrawParams;
14345
+ spokeProvider: S;
14346
+ };
14347
+ type AssetDepositParams<S extends SpokeProviderType = SpokeProviderType> = {
14348
+ params: CreateAssetDepositParams;
14349
+ spokeProvider: S;
14350
+ };
14351
+ type AssetServiceUnknownErrorCode = 'DEPOSIT_UNKNOWN_ERROR' | 'ALLOWANCE_CHECK_FAILED' | 'APPROVAL_FAILED';
14352
+ type GetAssetServiceParams<T extends AssetServiceUnknownErrorCode> = T extends 'DEPOSIT_UNKNOWN_ERROR' ? CreateAssetDepositParams : T extends 'ALLOWANCE_CHECK_FAILED' ? CreateAssetDepositParams : T extends 'APPROVAL_FAILED' ? CreateAssetDepositParams : CreateAssetDepositParams;
14353
+ type AssetServiceErrorCode = AssetServiceUnknownErrorCode | RelayErrorCode | 'CREATE_DEPOSIT_INTENT_FAILED' | 'CREATE_WITHDRAW_LIQUIDITY_INTENT_FAILED';
14354
+ type AssetServiceUnknownError<T extends AssetServiceUnknownErrorCode> = {
14355
+ error: unknown;
14356
+ payload: GetAssetServiceParams<T>;
14357
+ };
14358
+ type AssetServiceSubmitTxFailedError = {
14359
+ error: RelayError;
14360
+ payload: string;
14361
+ };
14362
+ type AssetServiceDepositFailedError = {
14363
+ error: unknown;
14364
+ payload: CreateAssetDepositParams;
14365
+ };
14366
+ type AssetServiceWithdrawFailedError = {
14367
+ error: unknown;
14368
+ payload: AssetWithdrawParams;
14369
+ };
14370
+ type AssetServiceAllowanceCheckFailedError = {
14371
+ error: unknown;
14372
+ payload: CreateAssetDepositParams;
14373
+ };
14374
+ type AssetServiceApprovalFailedError = {
14375
+ error: unknown;
14376
+ payload: CreateAssetDepositParams;
14377
+ };
14378
+ type GetAssetServiceError<T extends AssetServiceErrorCode> = T extends 'SUBMIT_TX_FAILED' ? AssetServiceSubmitTxFailedError : T extends 'RELAY_TIMEOUT' ? AssetServiceSubmitTxFailedError : T extends 'CREATE_DEPOSIT_INTENT_FAILED' ? AssetServiceDepositFailedError : T extends 'CREATE_WITHDRAW_LIQUIDITY_INTENT_FAILED' ? AssetServiceWithdrawFailedError : T extends 'ALLOWANCE_CHECK_FAILED' ? AssetServiceAllowanceCheckFailedError : T extends 'APPROVAL_FAILED' ? AssetServiceApprovalFailedError : T extends AssetServiceUnknownErrorCode ? AssetServiceUnknownError<T> : never;
14379
+ type AssetServiceError<T extends AssetServiceErrorCode> = {
14380
+ code: T;
14381
+ data: GetAssetServiceError<T>;
14382
+ };
14383
+ type AssetServiceConstructorParams = {
14384
+ config?: AssetServiceConfigParams;
14385
+ hubProvider: EvmHubProvider;
14386
+ relayerApiEndpoint?: HttpUrl;
14387
+ configService: ConfigService;
14388
+ };
14389
+ declare class AssetService {
14390
+ readonly config: AssetServiceConfig;
14391
+ private readonly relayerApiEndpoint;
14392
+ private readonly hubProvider;
14393
+ private readonly configService;
14394
+ constructor({ config, hubProvider, relayerApiEndpoint, configService }: AssetServiceConstructorParams);
14395
+ /**
14396
+ * Check whether sufficient allowance is available for an asset deposit action.
14397
+ * This determines whether a contract/manager can transfer the specified ERC20 asset on behalf of the user,
14398
+ * or whether approval or, for Stellar, trustlines are needed.
14399
+ *
14400
+ * For EVM-based chains, checks ERC20 allowance against the asset manager (for EvmSpokeProvider),
14401
+ * or against the user router contract (for SonicSpokeProvider on Sonic chains).
14402
+ * For Stellar, verifies if the sender's trustline is sufficient.
14403
+ * For all other chains, returns `true` (approval is not required).
14404
+ *
14405
+ * @param {AssetDepositParams<S>} params - Object containing:
14406
+ * - depositParams: Deposit input parameters (asset address, amount, etc.)
14407
+ * - spokeProvider: The provider instance for the originating chain
14408
+ * @returns {Promise<Result<boolean, AssetServiceError<'ALLOWANCE_CHECK_FAILED'>>>}
14409
+ * Resolves with Result.ok(true) if allowance/trustline is sufficient, or Result.ok(false) if not,
14410
+ * or Result.error if allowance/trustline check failed.
14411
+ *
14412
+ * @example
14413
+ * const result = await assetService.isAllowanceValid({
14414
+ * depositParams: { asset: '0x...', amount: 1000n },
14415
+ * spokeProvider,
14416
+ * });
14417
+ * if (!result.ok) {
14418
+ * // Handle error (e.g. result.error)
14419
+ * } else if (!result.value) {
14420
+ * // Approval or trustline is needed
14421
+ * }
14422
+ */
14423
+ isAllowanceValid<S extends SpokeProvider = SpokeProvider>({ params, spokeProvider, }: AssetDepositParams<S>): Promise<Result<boolean, AssetServiceError<'ALLOWANCE_CHECK_FAILED'>>>;
14424
+ /**
14425
+ * Approves the amount spending for deposit actions.
14426
+ * @param params - The parameters for the asset transaction.
14427
+ * @param spokeProvider - The spoke provider.
14428
+ * @param raw - Whether to return the raw transaction hash instead of the transaction receipt
14429
+ * @returns {Promise<Result<TxReturnType<S, R>>>} - Returns the raw transaction payload or transaction hash
14430
+ *
14431
+ * @example
14432
+ * const result = await assetService.approve(
14433
+ * {
14434
+ * asset: '0x...', // asset address
14435
+ * amount: 1000n, // amount to deposit
14436
+ * },
14437
+ * spokeProvider, // EvmSpokeProvider or SonicSpokeProvider instance
14438
+ * true // Optional raw flag to return the raw transaction hash instead of the transaction receipt
14439
+ * );
14440
+ *
14441
+ */
14442
+ approve<S extends SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<AssetDepositParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>, AssetServiceError<'APPROVAL_FAILED'>>>;
14443
+ /**
14444
+ * Execute deposit action - wraps tokens and prepares for liquidity provision
14445
+ */
14446
+ executeDeposit<S extends SpokeProviderType, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<AssetDepositParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>, AssetServiceError<'CREATE_DEPOSIT_INTENT_FAILED'>> & RelayOptionalExtraData>;
14447
+ /**
14448
+ * Execute withdraw action - withdraws tokens from a position
14449
+ */
14450
+ executeWithdraw<S extends SpokeProvider, R extends boolean = false>({ params, spokeProvider, raw, }: Prettify<AssetWithdrawParams<S> & OptionalRaw<R>>): Promise<Result<TxReturnType<S, R>, AssetServiceError<'CREATE_WITHDRAW_LIQUIDITY_INTENT_FAILED'>> & RelayOptionalExtraData>;
14451
+ /**
14452
+ * Check if the asset is SODA and the pool token is XSODA (requires stake/unstake if yes)
14453
+ * @param chainId - The chain id
14454
+ * @param asset - The asset address
14455
+ * @param poolToken - The pool token address
14456
+ * @returns True if the asset is SODA and the pool token is XSODA, false otherwise
14457
+ */
14458
+ isSodaAsXSodaInPool({ chainId, asset, poolToken, }: {
14459
+ chainId: SpokeChainId;
14460
+ asset: OriginalAssetAddress;
14461
+ poolToken: Address$1;
14462
+ }): boolean;
14463
+ /**
14464
+ * Deposit tokens and wait for the transaction to be relayed to the hub.
14465
+ *
14466
+ * This method wraps {@link executeDeposit} and performs post-processing to relay
14467
+ * the resulting transaction to the hub. It returns both the spoke chain
14468
+ * transaction hash and the hub transaction hash (post-relay).
14469
+ *
14470
+ * @typeParam S - The type of SpokeProvider.
14471
+ * @param params - Parameters for the deposit operation:
14472
+ * - depositParams: Parameters for the deposit intent (asset, amount, poolToken, etc).
14473
+ * - spokeProvider: The spoke provider instance (EvmSpokeProvider or SonicSpokeProvider).
14474
+ * - timeout (optional): Timeout in ms to wait for hub relay (default: 60000).
14475
+ *
14476
+ * @returns A promise that resolves to a {@link Result} containing a tuple with
14477
+ * [spokeTxHash, hubTxHash] as value on success, or an {@link AssetServiceError} on failure.
14478
+ *
14479
+ * @example
14480
+ * const result = await assetService.deposit({
14481
+ * depositParams: {
14482
+ * asset: '0x...', // asset address
14483
+ * amount: 1000n, // amount to deposit
14484
+ * poolToken: '0x...', // pool token address
14485
+ * },
14486
+ * spokeProvider, // instance of EvmSpokeProvider or SonicSpokeProvider
14487
+ * timeout: 30000, // optional, in ms
14488
+ * });
14489
+ *
14490
+ * if (!result.ok) {
14491
+ * // handle error
14492
+ * } else {
14493
+ * const [spokeTxHash, hubTxHash] = result.value;
14494
+ * console.log('Deposit transaction hashes:', { spokeTxHash, hubTxHash });
14495
+ * }
14496
+ */
14497
+ deposit<S extends SpokeProvider>({ params: depositParams, spokeProvider, timeout, }: Prettify<AssetDepositParams<S> & OptionalTimeout>): Promise<Result<[SpokeTxHash, HubTxHash], AssetServiceError<AssetServiceErrorCode>>>;
14498
+ /**
14499
+ * Withdraw and wait for the transaction to be relayed to the hub
14500
+ * This method wraps executeWithdraw and relays the transaction to the hub
14501
+ *
14502
+ * @example
14503
+ * const result = await assetService.withdraw(
14504
+ * {
14505
+ * asset: '0x...', // asset address
14506
+ * amount: 1000n, // amount to withdraw
14507
+ * poolToken: '0x...', // pool token address
14508
+ * },
14509
+ * spokeProvider, // EvmSpokeProvider or SonicSpokeProvider instance
14510
+ * 30000 // Optional timeout in milliseconds (default: 60000)
14511
+ * );
14512
+ *
14513
+ * if (!result.ok) {
14514
+ * // Handle error
14515
+ * }
14516
+ *
14517
+ * const [spokeTxHash, hubTxHash] = result.value;
14518
+ * console.log('Withdraw transaction hashes:', { spokeTxHash, hubTxHash });
14519
+ */
14520
+ withdraw<S extends SpokeProvider>({ params, spokeProvider, timeout, }: Prettify<AssetWithdrawParams<S> & OptionalTimeout>): Promise<Result<[SpokeTxHash, HubTxHash], AssetServiceError<AssetServiceErrorCode>>>;
14521
+ getTokenWrapAction(address: OriginalAssetAddress, spokeChainId: SpokeChainId, amount: bigint, poolToken: Address$1, recipient: Address$1): Promise<EvmContractCall[]>;
14522
+ /**
14523
+ * Get the token unwrap action for a given asset
14524
+ * @param address - The address of the asset
14525
+ * @param dstChainId - The destination spoke chain id
14526
+ * @param amount - The amount of the wrapped assets
14527
+ * @param userAddress - The address of the user wallet
14528
+ * @param recipient - The address of the recipient
14529
+ * @returns The token unwrap action
14530
+ */
14531
+ getTokenUnwrapAction(dstChainId: SpokeChainId, address: OriginalAssetAddress, amount: bigint, userAddress: Address$1, recipient: Hex): Promise<EvmContractCall[]>;
14532
+ /**
14533
+ * Helper method to convert assets to shares (wrapped amount)
14534
+ * EX BTC -> BTC deposited in moneymarket earning intrest.
14535
+ * @param dexToken - The ERC4626 token address
14536
+ * @param assetAmount - The amount of underlying assets
14537
+ * @returns The equivalent amount of shares
14538
+ */
14539
+ getWrappedAmount(dexToken: Address$1, assetAmount: bigint): Promise<bigint>;
14540
+ /**
14541
+ * Helper method to convert shares to assets (unwrapped amount)
14542
+ * EX BTC deposited in moneymarket earning intrest -> BTC.
14543
+ * @param dexToken - The ERC4626 token address
14544
+ * @param shareAmount - The amount of shares
14545
+ * @returns The equivalent amount of underlying assets
14546
+ */
14547
+ getUnwrappedAmount(dexToken: Address$1, shareAmount: bigint): Promise<bigint>;
14548
+ getDeposit(poolToken: Address$1, spokeProvider: SpokeProvider): Promise<bigint>;
14549
+ }
14550
+
14551
+ type ClMintPositionEventLog = {
14552
+ tokenId: bigint;
14553
+ };
14554
+ type PoolRewardConfig = {
14555
+ rewardCurrency: Address;
14556
+ rewardRatePerSecond: bigint;
14557
+ lastActionTimestamp: bigint;
14558
+ };
14559
+ type ApyRange = {
14560
+ minApy: number;
14561
+ maxApy: number;
14562
+ };
14563
+ type ConcentratedLiquidityClaimRewardsParams = {
14564
+ poolKey: PoolKey;
14565
+ tokenId: bigint;
14566
+ tickLower: bigint;
14567
+ tickUpper: bigint;
14568
+ };
14569
+ type ConcentratedLiquiditySupplyParams = {
14570
+ poolKey: PoolKey;
14571
+ tickLower: bigint;
14572
+ tickUpper: bigint;
14573
+ liquidity: bigint;
14574
+ amount0Max: bigint;
14575
+ amount1Max: bigint;
14576
+ sqrtPriceX96: bigint;
14577
+ };
14578
+ type ConcentratedLiquidityGetPoolDataParams = {
14579
+ token0: string;
14580
+ token1: string;
14581
+ fee: bigint;
14582
+ };
14583
+ type ConcentratedLiquidityWithdrawParams = {
14584
+ asset: OriginalAssetAddress;
14585
+ amount: bigint;
14586
+ };
14587
+ type ConcentratedLiquidityIncreaseLiquidityParams = {
14588
+ poolKey: PoolKey;
14589
+ tokenId: bigint;
14590
+ tickLower: bigint;
14591
+ tickUpper: bigint;
14592
+ liquidity: bigint;
14593
+ amount0Max: bigint;
14594
+ amount1Max: bigint;
14595
+ sqrtPriceX96: bigint;
14596
+ };
14597
+ type ConcentratedLiquidityDecreaseLiquidityParams = {
14598
+ poolKey: PoolKey;
14599
+ tokenId: bigint;
14600
+ liquidity: bigint;
14601
+ amount0Min: bigint;
14602
+ amount1Min: bigint;
14603
+ };
14604
+ type ConcentratedLiquidityParams = ConcentratedLiquiditySupplyParams | ConcentratedLiquidityIncreaseLiquidityParams | ConcentratedLiquidityDecreaseLiquidityParams | ConcentratedLiquidityWithdrawParams | ConcentratedLiquidityClaimRewardsParams;
14605
+ type SupplyLiquidityParams<S extends SpokeProviderType> = Prettify<{
14606
+ params: ConcentratedLiquiditySupplyParams;
14607
+ spokeProvider: S;
14608
+ }>;
14609
+ type IncreaseLiquidityParams<S extends SpokeProviderType> = Prettify<{
14610
+ params: ConcentratedLiquidityIncreaseLiquidityParams;
14611
+ spokeProvider: S;
14612
+ }>;
14613
+ type DecreaseLiquidityParams<S extends SpokeProviderType> = Prettify<{
14614
+ params: ConcentratedLiquidityDecreaseLiquidityParams;
14615
+ spokeProvider: S;
14616
+ }>;
14617
+ type ClaimRewardsParams<S extends SpokeProviderType> = Prettify<{
14618
+ params: ConcentratedLiquidityClaimRewardsParams;
14619
+ spokeProvider: S;
14620
+ }>;
14621
+ type ClPositionInfo = {
14622
+ poolKey: PoolKey;
14623
+ tickLower: number;
14624
+ tickUpper: number;
14625
+ liquidity: bigint;
14626
+ feeGrowthInside0LastX128: bigint;
14627
+ feeGrowthInside1LastX128: bigint;
14628
+ subscriber: Address;
14629
+ amount0: bigint;
14630
+ amount1: bigint;
14631
+ tickLowerPrice: Price<Token$1, Token$1>;
14632
+ tickUpperPrice: Price<Token$1, Token$1>;
14633
+ unclaimedFees0: bigint;
14634
+ unclaimedFees1: bigint;
14635
+ amount0Underlying?: bigint;
14636
+ amount1Underlying?: bigint;
14637
+ unclaimedFees0Underlying?: bigint;
14638
+ unclaimedFees1Underlying?: bigint;
14639
+ };
14640
+ /**
14641
+ * Token data with optional ERC4626 conversion information
14642
+ */
14643
+ type TokenWithConversion = Token$1 & {
14644
+ isStatAToken: boolean;
14645
+ conversionRate?: bigint;
14646
+ underlyingToken?: Token$1;
14647
+ };
14648
+ /**
14649
+ * Extended token object with StatAToken metadata
14650
+ */
14651
+ type EnrichedToken = {
14652
+ token: Token$1;
14653
+ isStatAToken: boolean;
14654
+ conversionRate?: bigint;
14655
+ underlyingToken?: Token$1;
14656
+ };
14657
+ interface ConcentratedLiquidityTokenInfo {
14658
+ symbol: string;
14659
+ name: string;
14660
+ decimals: number;
14661
+ address: Address;
14662
+ }
14663
+ interface PoolData {
14664
+ poolId: string;
14665
+ poolKey: {
14666
+ currency0: Address;
14667
+ currency1: Address;
14668
+ hooks: Address;
14669
+ poolManager: Address;
14670
+ fee: number;
14671
+ parameters: string;
14672
+ };
14673
+ sqrtPriceX96: bigint;
14674
+ currentTick: number;
14675
+ protocolFee: number;
14676
+ lpFee: number;
14677
+ price: Price<Token$1, Token$1>;
14678
+ totalLiquidity: bigint;
14679
+ feeTier: number;
14680
+ tickSpacing: number;
14681
+ token0: Token$1;
14682
+ token1: Token$1;
14683
+ token0IsStatAToken: boolean;
14684
+ token0ConversionRate?: bigint;
14685
+ token0UnderlyingToken?: Token$1;
14686
+ token1IsStatAToken: boolean;
14687
+ token1ConversionRate?: bigint;
14688
+ token1UnderlyingToken?: Token$1;
14689
+ isActive: boolean;
14690
+ createdAt?: number;
14691
+ rewardConfig?: PoolRewardConfig;
14692
+ }
14693
+ type PoolSpokeAssets = {
14694
+ token0: XToken;
14695
+ token1: XToken;
14696
+ };
14697
+ type ConcentratedLiquidityUnknownErrorCode = 'SUPPLY_LIQUIDITY_UNKNOWN_ERROR' | 'GET_POOL_DATA_UNKNOWN_ERROR' | 'WITHDRAW_LIQUIDITY_UNKNOWN_ERROR' | 'INCREASE_LIQUIDITY_UNKNOWN_ERROR' | 'DECREASE_LIQUIDITY_UNKNOWN_ERROR' | 'CLAIM_REWARDS_UNKNOWN_ERROR' | 'GET_POOL_REWARD_CONFIG_UNKNOWN_ERROR';
14698
+ type GetConcentratedLiquidityParams<T extends ConcentratedLiquidityUnknownErrorCode> = T extends 'SUPPLY_LIQUIDITY_UNKNOWN_ERROR' ? ConcentratedLiquiditySupplyParams : T extends 'GET_POOL_DATA_UNKNOWN_ERROR' ? ConcentratedLiquidityGetPoolDataParams : T extends 'WITHDRAW_LIQUIDITY_UNKNOWN_ERROR' ? ConcentratedLiquidityWithdrawParams : T extends 'INCREASE_LIQUIDITY_UNKNOWN_ERROR' ? ConcentratedLiquidityIncreaseLiquidityParams : T extends 'DECREASE_LIQUIDITY_UNKNOWN_ERROR' ? ConcentratedLiquidityDecreaseLiquidityParams : T extends 'CLAIM_REWARDS_UNKNOWN_ERROR' ? ConcentratedLiquidityClaimRewardsParams : T extends 'GET_POOL_REWARD_CONFIG_UNKNOWN_ERROR' ? PoolKey : never;
14699
+ type ConcentratedLiquidityErrorCode = ConcentratedLiquidityUnknownErrorCode | RelayErrorCode | 'CREATE_SUPPLY_LIQUIDITY_INTENT_FAILED' | 'GET_POOL_DATA_FAILED' | 'CREATE_WITHDRAW_LIQUIDITY_INTENT_FAILED' | 'CREATE_INCREASE_LIQUIDITY_INTENT_FAILED' | 'CREATE_DECREASE_LIQUIDITY_INTENT_FAILED' | 'CREATE_CLAIM_REWARDS_INTENT_FAILED' | 'GET_POOL_REWARD_CONFIG_FAILED';
14700
+ type ConcentratedLiquidityUnknownError<T extends ConcentratedLiquidityUnknownErrorCode> = {
14701
+ error: unknown;
14702
+ payload: GetConcentratedLiquidityParams<T>;
14703
+ };
14704
+ type ConcentratedLiquiditySubmitTxFailedError = {
14705
+ error: RelayError;
14706
+ payload: SpokeTxHash;
14707
+ };
14708
+ type ConcentratedLiquiditySupplyFailedError = {
14709
+ error: unknown;
14710
+ payload: ConcentratedLiquiditySupplyParams;
14711
+ };
14712
+ type ConcentratedLiquidityWithdrawFailedError = {
14713
+ error: unknown;
14714
+ payload: ConcentratedLiquidityWithdrawParams;
14715
+ };
14716
+ type ConcentratedLiquidityIncreaseLiquidityFailedError = {
14717
+ error: unknown;
14718
+ payload: ConcentratedLiquidityIncreaseLiquidityParams;
14719
+ };
14720
+ type ConcentratedLiquidityDecreaseLiquidityFailedError = {
14721
+ error: unknown;
14722
+ payload: ConcentratedLiquidityDecreaseLiquidityParams;
14723
+ };
14724
+ type ConcentratedLiquidityClaimRewardsFailedError = {
14725
+ error: unknown;
14726
+ payload: ConcentratedLiquidityClaimRewardsParams;
14727
+ };
14728
+ type ConcentratedLiquidityGetPoolRewardConfigFailedError = {
14729
+ error: unknown;
14730
+ payload: PoolKey;
14731
+ };
14732
+ type GetConcentratedLiquidityError<T extends ConcentratedLiquidityErrorCode> = T extends 'SUBMIT_TX_FAILED' ? ConcentratedLiquiditySubmitTxFailedError : T extends 'RELAY_TIMEOUT' ? ConcentratedLiquiditySubmitTxFailedError : T extends 'CREATE_SUPPLY_LIQUIDITY_INTENT_FAILED' ? ConcentratedLiquiditySupplyFailedError : T extends 'CREATE_WITHDRAW_LIQUIDITY_INTENT_FAILED' ? ConcentratedLiquidityWithdrawFailedError : T extends 'CREATE_INCREASE_LIQUIDITY_INTENT_FAILED' ? ConcentratedLiquidityIncreaseLiquidityFailedError : T extends 'CREATE_DECREASE_LIQUIDITY_INTENT_FAILED' ? ConcentratedLiquidityDecreaseLiquidityFailedError : T extends 'CREATE_CLAIM_REWARDS_INTENT_FAILED' ? ConcentratedLiquidityClaimRewardsFailedError : T extends 'GET_POOL_REWARD_CONFIG_FAILED' ? ConcentratedLiquidityGetPoolRewardConfigFailedError : T extends ConcentratedLiquidityUnknownErrorCode ? ConcentratedLiquidityUnknownError<T> : never;
14733
+ type ConcentratedLiquidityError<T extends ConcentratedLiquidityErrorCode> = {
14734
+ code: T;
14735
+ data: GetConcentratedLiquidityError<T>;
14736
+ };
14737
+ type ConcentratedLiquidityExtraData = {
14738
+ address: Hex;
14739
+ payload: Hex;
14740
+ };
14741
+ type ConcentratedLiquidityOptionalExtraData = {
14742
+ data?: ConcentratedLiquidityExtraData;
14743
+ };
14744
+ type ClServiceConstructorParams = {
14745
+ hubProvider: EvmHubProvider;
14746
+ relayerApiEndpoint?: HttpUrl;
14747
+ configService: ConfigService;
14748
+ };
14749
+ /**
14750
+ * Concetration Liquidity Service provides a high-level interface for concentrated liquidity operations
14751
+ * including supply liquidity, increase liquidity, decrease liquidit position.
14752
+ */
14753
+ declare class ClService {
14754
+ readonly config: ClServiceConfig;
14755
+ private readonly relayerApiEndpoint;
14756
+ private readonly hubProvider;
14757
+ private readonly configService;
14758
+ constructor({ hubProvider, relayerApiEndpoint, configService }: ClServiceConstructorParams);
14759
+ getAssetsForPool(spokeProvider: SpokeProviderType, poolKey: PoolKey): PoolSpokeAssets;
14760
+ /**
14761
+ * Execute supply liquidity action - creates a new concentrated liquidity position
14762
+ */
14763
+ executeSupplyLiquidity<S extends SpokeProviderType, R extends boolean = false>(params: ConcentratedLiquiditySupplyParams, spokeProvider: S, raw?: R, skipSimulation?: boolean): Promise<Result<TxReturnType<S, R>, ConcentratedLiquidityError<'CREATE_SUPPLY_LIQUIDITY_INTENT_FAILED'>> & RelayOptionalExtraData>;
14764
+ /**
14765
+ * Get the mint position event log from the hub transaction hash
14766
+ * @param hubTxHash - The hub transaction hash
14767
+ * @returns The mint position event log
14768
+ */
14769
+ getMintPositionEvent(hubTxHash: Hash$1): Promise<ClMintPositionEventLog>;
14770
+ executeIncreaseLiquidity<S extends SpokeProviderType, R extends boolean = false>(params: ConcentratedLiquidityIncreaseLiquidityParams, spokeProvider: S, raw?: R, skipSimulation?: boolean): Promise<Result<TxReturnType<S, R>, ConcentratedLiquidityError<'CREATE_INCREASE_LIQUIDITY_INTENT_FAILED'>> & RelayOptionalExtraData>;
14771
+ executeDecreaseLiquidity<S extends SpokeProviderType, R extends boolean = false>(params: ConcentratedLiquidityDecreaseLiquidityParams, spokeProvider: S, raw?: R, skipSimulation?: boolean): Promise<Result<TxReturnType<S, R>, ConcentratedLiquidityError<'CREATE_DECREASE_LIQUIDITY_INTENT_FAILED'>> & RelayOptionalExtraData>;
14772
+ permit2Approve(token: Address, contract: Address): EvmContractCall[];
14773
+ /**
14774
+ * Supply liquidity and wait for the transaction to be relayed to the hub
14775
+ * This method wraps executeSupplyLiquidity and relays the transaction to the hub
14776
+ */
14777
+ supplyLiquidity<S extends SpokeProvider>({ params, spokeProvider, timeout, skipSimulation, }: Prettify<SupplyLiquidityParams<S> & OptionalTimeout & OptionalSkipSimulation>): Promise<Result<[SpokeTxHash, HubTxHash], ConcentratedLiquidityError<ConcentratedLiquidityErrorCode>>>;
14778
+ /**
14779
+ * Increase liquidity and wait for the transaction to be relayed to the hub
14780
+ * This method wraps executeIncreaseLiquidity and relays the transaction to the hub
14781
+ */
14782
+ increaseLiquidity<S extends SpokeProvider>({ params, spokeProvider, timeout, }: Prettify<IncreaseLiquidityParams<S> & OptionalTimeout>): Promise<Result<[SpokeTxHash, HubTxHash], ConcentratedLiquidityError<ConcentratedLiquidityErrorCode>>>;
14783
+ /**
14784
+ * Decrease liquidity and wait for the transaction to be relayed to the hub
14785
+ * This method wraps executeDecreaseLiquidity and relays the transaction to the hub
14786
+ */
14787
+ decreaseLiquidity<S extends SpokeProvider>({ params, spokeProvider, timeout, }: Prettify<DecreaseLiquidityParams<S> & OptionalTimeout>): Promise<Result<[SpokeTxHash, HubTxHash], ConcentratedLiquidityError<ConcentratedLiquidityErrorCode>>>;
14788
+ /**
14789
+ * Fetch pool reward configuration from the hook contract
14790
+ * @param poolKey - The pool key containing the hook address
14791
+ * @param publicClient - The viem public client for reading from the chain
14792
+ * @returns The pool reward configuration
14793
+ */
14794
+ getPoolRewardConfig(poolKey: PoolKey, publicClient: PublicClient<HttpTransport>): Promise<Result<PoolRewardConfig, ConcentratedLiquidityError<'GET_POOL_REWARD_CONFIG_FAILED'>>>;
14795
+ /**
14796
+ * Execute claim rewards action - triggers reward distribution by calling decrease liquidity with 0 value
14797
+ */
14798
+ executeClaimRewards<S extends SpokeProviderType, R extends boolean = false>(params: ConcentratedLiquidityClaimRewardsParams, spokeProvider: S, raw?: R, skipSimulation?: boolean): Promise<Result<TxReturnType<S, R>, ConcentratedLiquidityError<'CREATE_CLAIM_REWARDS_INTENT_FAILED'>> & RelayOptionalExtraData>;
14799
+ /**
14800
+ * Claim rewards and wait for the transaction to be relayed to the hub
14801
+ * This method wraps executeClaimRewards and relays the transaction to the hub
14802
+ */
14803
+ claimRewards<S extends SpokeProvider>({ params, spokeProvider, timeout, skipSimulation, }: Prettify<ClaimRewardsParams<S> & OptionalTimeout & OptionalSkipSimulation>): Promise<Result<[SpokeTxHash, HubTxHash], ConcentratedLiquidityError<ConcentratedLiquidityErrorCode>>>;
14804
+ getPools(): PoolKey[];
14805
+ /**
14806
+ * Fetch token information (symbol, name, decimals) from ERC20 contract
14807
+ */
14808
+ private getTokenInfo;
14809
+ /**
14810
+ * Check if a token address is a StatAToken (ERC4626 wrapped token)
14811
+ */
14812
+ private isStatAToken;
14813
+ /**
14814
+ * Get conversion rate for a StatAToken (1 share = X underlying assets)
14815
+ * Returns conversion rate with 1e18 precision
14816
+ */
14817
+ private getStatATokenConversionRate;
14818
+ /**
14819
+ * Get enriched token data with StatAToken conversion information
14820
+ */
14821
+ private getTokenEnrichmentData;
14822
+ /**
14823
+ * Fetch comprehensive pool data including real-time state
14824
+ * This method provides all the data the UI needs in a single call
14825
+ *
14826
+ * @example
14827
+ * ```typescript
14828
+ * const poolData = await concentratedLiquidityService.getPoolData(
14829
+ * poolKey,
14830
+ * publicClient
14831
+ * );g
14832
+
14833
+ * ```
14834
+ */
14835
+ getPoolData(poolKey: PoolKey<'CL'>, publicClient: PublicClient<HttpTransport>): Promise<PoolData>;
14836
+ /**
14837
+ * Get position information for a given token ID
14838
+ *
14839
+ * @example
14840
+ * ```typescript
14841
+ * const positionInfo = await concentratedLiquidityService.getPositionInfo(
14842
+ * tokenId,
14843
+ * publicClient
14844
+ * );
14845
+ *
14846
+ * console.log('Position data:', {
14847
+ * poolKey: positionInfo.poolKey,
14848
+ * tickRange: `${positionInfo.tickLower} to ${positionInfo.tickUpper}`,
14849
+ * liquidity: positionInfo.liquidity.toString(),
14850
+ * unclaimedFees: `${positionInfo.unclaimedFees0.toString()} / ${positionInfo.unclaimedFees1.toString()}`,
14851
+ * });
14852
+ * ```
14853
+ */
14854
+ getPositionInfo(tokenId: bigint, publicClient: PublicClient<HttpTransport>): Promise<ClPositionInfo>;
14855
+ /**
14856
+ * Helper: Calculate liquidity from token amounts
14857
+ * @param amount0 - Amount of token0
14858
+ * @param amount1 - Amount of token1
14859
+ * @param tickLower - Lower tick
14860
+ * @param tickUpper - Upper tick
14861
+ * @param currentTick - Current pool tick
14862
+ * @returns The liquidity value
14863
+ */
14864
+ static calculateLiquidityFromAmounts(amount0: bigint, amount1: bigint, tickLower: bigint, tickUpper: bigint, currentTick: bigint): bigint;
14865
+ /**
14866
+ * Helper: Calculate token1 amount needed given token0 amount and price range
14867
+ * @param amount0 - Amount of token0
14868
+ * @param tickLower - Lower tick
14869
+ * @param tickUpper - Upper tick
14870
+ * @param currentTick - Current pool tick
14871
+ * @returns The required amount of token1
14872
+ */
14873
+ static calculateAmount1FromAmount0(amount0: bigint, tickLower: bigint, tickUpper: bigint, currentTick: bigint): bigint;
14874
+ /**
14875
+ * Helper: Calculate token0 amount needed given token1 amount and price range
14876
+ * @param amount1 - Amount of token1
14877
+ * @param tickLower - Lower tick
14878
+ * @param tickUpper - Upper tick
14879
+ * @param currentTick - Current pool tick
14880
+ * @returns The required amount of token0
14881
+ */
14882
+ static calculateAmount0FromAmount1(amount1: bigint, tickLower: bigint, tickUpper: bigint, currentTick: bigint): bigint;
14883
+ /**
14884
+ * Helper: Convert price to nearest valid tick
14885
+ * @param price - The price as a number
14886
+ * @param token0 - The base token
14887
+ * @param token1 - The quote token
14888
+ * @param tickSpacing - The tick spacing for the pool
14889
+ * @returns The nearest valid tick
14890
+ */
14891
+ static priceToTick(price: number, token0: Token$1, token1: Token$1, tickSpacing: number): bigint;
14892
+ }
14893
+
14894
+ type DexServiceConfig = {
14895
+ assetServiceConfig?: AssetServiceConfig;
14896
+ };
14897
+ type DexServiceConstructorParams = {
14898
+ configService: ConfigService;
14899
+ hubProvider: EvmHubProvider;
14900
+ relayerApiEndpoint?: HttpUrl;
14901
+ config?: DexServiceConfig;
14902
+ };
14903
+ declare class DexService {
14904
+ readonly assetService: AssetService;
14905
+ readonly clService: ClService;
14906
+ readonly configService: ConfigService;
14907
+ constructor(params: DexServiceConstructorParams);
14908
+ }
14909
+
14910
+ export { type AggregatedReserveData, type AllowanceInfo, type AllowanceResponse, type AllowanceTransferDetails, type ApiResponse, type ApyRange, type AssetDepositParams, type AssetEntry, AssetService, type AssetServiceAllowanceCheckFailedError, type AssetServiceApprovalFailedError, type AssetServiceConfig, type AssetServiceConstructorParams, type AssetServiceDepositFailedError, type AssetServiceError, type AssetServiceErrorCode, type AssetServiceSubmitTxFailedError, type AssetServiceUnknownError, type AssetServiceUnknownErrorCode, type AssetServiceWithdrawFailedError, type AssetWithdrawParams, type AutoSwapPreferences, type BackendApiConfig, BackendApiService, type Balance, type BalnLockParams, type BalnMigrateParams, type BalnSwapAbi, BalnSwapService, type BalnSwapServiceConstructorParams, type BaseCurrencyInfo, BigIntToHex, type BigNumberValue, BigNumberZeroDecimal, BitcoinBaseSpokeProvider, BitcoinRawSpokeProvider, type BitcoinSpokeDepositParams, BitcoinSpokeProvider, type BitcoinSpokeProviderType, BitcoinSpokeService, type BitcoinTransactionResult, type BitcoinTransferToHubParams, type BitcoinUTXO, BnUSDMigrationService, type BnUSDMigrationServiceConstructorParams, type BnUSDRevertMigrationParams, type BorrowInfo, type BridgeError, type BridgeErrorCode, type BridgeExtraData, type BridgeOptionalExtraData, type BridgeParams, BridgeService, type BridgeServiceConfig, type BridgeServiceConstructorParams, type CalculateAllReserveIncentivesRequest, type CalculateAllUserIncentivesRequest, type CalculateCompoundedRateRequest, type CallResponse, type CancelUnstakeParams, type ClMintPositionEventLog, type ClPositionInfo, ClService, type ClServiceConfig, type ClServiceConstructorParams, type ClaimParams, type ClaimRewardsParams, type CombinedReserveData, type ComputedUserReserve, type ConcentratedLiquidityClaimRewardsFailedError, type ConcentratedLiquidityClaimRewardsParams, type ConcentratedLiquidityDecreaseLiquidityFailedError, type ConcentratedLiquidityDecreaseLiquidityParams, type ConcentratedLiquidityError, type ConcentratedLiquidityErrorCode, type ConcentratedLiquidityExtraData, type ConcentratedLiquidityGetPoolDataParams, type ConcentratedLiquidityGetPoolRewardConfigFailedError, type ConcentratedLiquidityIncreaseLiquidityFailedError, type ConcentratedLiquidityIncreaseLiquidityParams, type ConcentratedLiquidityOptionalExtraData, type ConcentratedLiquidityParams, type ConcentratedLiquiditySubmitTxFailedError, type ConcentratedLiquiditySupplyFailedError, type ConcentratedLiquiditySupplyParams, type ConcentratedLiquidityTokenInfo, type ConcentratedLiquidityUnknownError, type ConcentratedLiquidityUnknownErrorCode, type ConcentratedLiquidityWithdrawFailedError, type ConcentratedLiquidityWithdrawParams, ConfigService, type ConfigServiceConfig, type ConfigServiceConstructorParams, type ConnMsg, type CreateAssetDepositParams, type CreateAssetWithdrawParams, type CreateBridgeIntentParams, type CreateIntentAutoSwapError, type CreateIntentParams, type CreateLimitOrderParams, type CustomProvider, CustomSorobanServer, CustomStellarAccount, 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, type DecreaseLiquidityParams, type Default, type DepositSimulationParams, type DestinationParamsType, type DetailedLock, DexService, type DexServiceConfig, type DexServiceConstructorParams, type EModeCategory, type EModeCategoryHumanized, type EModeData, type EModeDataString, type EmodeDataHumanized, type EnrichedToken, Erc20Service, Erc4626Service, EvmAssetManagerService, EvmBaseSpokeProvider, type EvmContractCall, type EvmDepositToDataParams, type EvmGasEstimate, EvmHubProvider, type EvmHubProviderConfig, type EvmHubProviderConstructorParams, type EvmInitializedConfig, EvmRawSpokeProvider, type EvmRawSpokeProviderConfig, type EvmReturnType, EvmSolverService, type EvmSpokeDepositParams, EvmSpokeProvider, type EvmSpokeProviderType, EvmSpokeService, type EvmTransferParams, type EvmTransferToHubParams, type EvmTxReturnType, type EvmUninitializedBrowserConfig, type EvmUninitializedConfig, type EvmUninitializedPrivateKeyConfig, EvmVaultTokenService, EvmWalletAbstraction, type EvmWithdrawAssetDataParams, type ExecuteIntentAutoSwapError, type ExecuteMsg, FEE_PERCENTAGE_SCALE, type FeeAmount, type FeeData, type FeeTokenApproveParams, type FormatReserveRequest, type FormatReserveResponse, type FormatReserveUSDRequest, type FormatReserveUSDResponse, type FormatReservesAndIncentivesUSDRequest, type FormatReservesUSDRequest, type FormatUserSummaryAndIncentivesRequest, type FormatUserSummaryAndIncentivesResponse, type FormatUserSummaryRequest, type FormatUserSummaryResponse, type FormattedReserveEMode, type GasEstimateType, type GetAddressType, type GetAssetServiceError, type GetAssetServiceParams, type GetChainConfigType, type GetConcentratedLiquidityError, type GetConcentratedLiquidityParams, type GetEstimateGasReturnType, type GetIntentSubmitTxExtraDataParams, type GetMigrationFailedPayload, type GetMoneyMarketError, type GetMoneyMarketParams, type GetPacketParams, type GetPacketResponse, type GetRelayRequestParamType, type GetRelayResponse, type GetSpokeDepositParamsType, type GetTransactionPacketsParams, type GetTransactionPacketsResponse, HALF_RAY, HALF_WAD, type HanaWalletRequestEvent, type HanaWalletResponseEvent, type HashTxReturnType, HubService, type HubTxHash, ICON_TX_RESULT_WAIT_MAX_RETRY, type IRawSpokeProvider, type ISpokeProvider, type IWalletProvider, IconBaseSpokeProvider, type IconContractAddress, type IconGasEstimate, type IconJsonRpcVersion, IconRawSpokeProvider, type IconRawSpokeProviderConfig, type IconRawTransaction, type IconReturnType, type IconSpokeDepositParams, IconSpokeProvider, type IconSpokeProviderType, IconSpokeService, type IconTransferToHubParams, type IcxCreateRevertMigrationParams, type IcxMigrateParams, IcxMigrationService, type IcxMigrationServiceConstructorParams, type IcxRawTransaction, type IcxRevertMigrationParams, type IcxTokenType, type IncentiveDataHumanized, type IncreaseLiquidityParams, type InjTokenInfo, Injective20Token, InjectiveBaseSpokeProvider, type InjectiveGasEstimate, InjectiveRawSpokeProvider, type InjectiveRawSpokeProviderConfig, type InjectiveReturnType, type InjectiveSpokeDepositParams, InjectiveSpokeProvider, type InjectiveSpokeProviderType, InjectiveSpokeService, type InjectiveTransferToHubParams, type InstantUnstakeParams, type InstantiateMsg, type Intent, type IntentAutoSwapErrorData, type IntentAutoSwapResult, type IntentCancelFailedErrorData, IntentCreatedEventAbi, type IntentCreatedEventLog, type IntentCreationFailedErrorData, type IntentData, IntentDataType, type IntentDeliveryInfo, type IntentError, type IntentErrorCode, type IntentErrorData, IntentFilledEventAbi, type IntentFilledEventLog, type IntentPostExecutionFailedErrorData, type IntentRelayRequest, type IntentRelayRequestParams, type IntentResponse, type IntentState, type IntentSubmitTxFailedErrorData, type IntentWaitUntilIntentExecutedFailedErrorData, IntentsAbi, type JsonRpcPayloadResponse, LTV_PRECISION, type LegacybnUSDChainId, type LegacybnUSDToken, type LegacybnUSDTokenAddress, LendingPoolService, type LimitOrderParams, LockupMultiplier, LockupPeriod, MAX_UINT256, type MigrationAction, type MigrationError, type MigrationErrorCode, type MigrationErrorData, type MigrationFailedErrorData, type MigrationParams, type MigrationRevertParams, MigrationService, type MigrationServiceConfig, type MigrationServiceConstructorParams, type MigrationTokens, MintPositionEventAbi, type MintPositionEventLog, type MoneyMarketAction, type MoneyMarketAsset, type MoneyMarketAssetBorrowers, type MoneyMarketAssetSuppliers, type MoneyMarketBorrowFailedError, type MoneyMarketBorrowParams, type MoneyMarketBorrowers, type MoneyMarketConfigParams, MoneyMarketDataService, type MoneyMarketEncodeBorrowParams, type MoneyMarketEncodeRepayParams, type MoneyMarketEncodeRepayWithATokensParams, type MoneyMarketEncodeSupplyParams, type MoneyMarketEncodeWithdrawParams, type MoneyMarketError, type MoneyMarketErrorCode, type MoneyMarketExtraData, type MoneyMarketOptionalExtraData, type MoneyMarketParams, type MoneyMarketPosition, type MoneyMarketRepayFailedError, type MoneyMarketRepayParams, MoneyMarketService, type MoneyMarketServiceConfig, type MoneyMarketServiceConstructorParams, type MoneyMarketSubmitTxFailedError, type MoneyMarketSupplyFailedError, type MoneyMarketSupplyParams, type MoneyMarketUnknownError, type MoneyMarketUnknownErrorCode, type MoneyMarketWithdrawFailedError, type MoneyMarketWithdrawParams, NearBaseSpokeProvider, NearRawSpokeProvider, type NearRawSpokeProviderConfig, type NearReturnType, NearSpokeProvider, type NearSpokeProviderType, type NearTransactionFailure, type NearTransactionResult, type NewbnUSDChainId, type OnDemandPayload, type Optional, type OptionalFee, type OptionalRaw, type OptionalSkipSimulation, type OptionalTimeout, type OrderbookResponse, type PacketData, type PartnerFee, type PartnerFeeAmount, type PartnerFeeClaimAssetBalance, PartnerFeeClaimService, type PartnerFeeClaimServiceConfig, type PartnerFeeClaimServiceConstructorParams, type PartnerFeeClaimSwapParams, type PartnerFeeConfig, type PartnerFeePercentage, PartnerService, type PartnerServiceConfig, type PartnerServiceConstructorParams, type Payload, Permit2Service, type PermitBatch, type PermitDetails, type PermitSingle, type PoolBaseCurrencyHumanized, type PoolData, type PoolRewardConfig, type PoolSpokeAssets, type Prettify, type PromiseEvmTxReturnType, type PromiseIconTxReturnType, type PromiseInjectiveTxReturnType, type PromiseNearRawTxReturnType, type PromiseNearTxReturnType, type PromiseSolanaTxReturnType, type PromiseStellarTxReturnType, type PromiseSuiTxReturnType, type PromiseTxReturnType, ProtocolIntentsAbi, type QueryMsg, type QueryResponse, type QuoteType, RAY, RAY_DECIMALS, type RadfiAuthResult, type RadfiBuildTxResponse, type RadfiConfig, type RadfiMaxSpentResponse, RadfiProvider, type RadfiTradingWallet, type RadfiUtxo, type RadfiUtxoListResponse, type RadfiWalletBalance, type RateLimitConfig, type RawDestinationParams, type RawSpokeProvider, type RawSpokeProviderConfig, type RawTxReturnType, type RelayAction, type RelayError, type RelayErrorCode, type RelayExtraData, type RelayOptionalExtraData, type RelayRequestDetail, type RelayRequestSigning, type RelayTxStatus, type RelayerApiConfig, type RequestConfig, type RequestOverrideConfig, type ReserveCalculationData, type ReserveData, type ReserveDataHumanized, type ReserveDataLegacy, type ReserveDataWithPrice, type ReserveEMode, type ReserveIncentiveDict, type ReservesDataHumanized, type ReservesIncentiveDataHumanized, type ResponseAddressType, type ResponseSigningType, type Result, type RewardInfoHumanized, SECONDS_PER_YEAR, STELLAR_DEFAULT_TX_TIMEOUT_SECONDS, STELLAR_PRIORITY_FEE, type SetSwapPreferenceError, type SetSwapPreferenceParams, Sodax, type SodaxConfig, SolanaBaseSpokeProvider, type SolanaGasEstimate, SolanaRawSpokeProvider, type SolanaRawSpokeProviderConfig, type SolanaRawTransaction, type SolanaReturnType, type SolanaSpokeDepositParams, SolanaSpokeProvider, type SolanaSpokeProviderType, SolanaSpokeService, type SolanaTransferToHubParams, SolverApiService, type SolverConfigParams, type SolverErrorResponse, type SolverExecutionRequest, type SolverExecutionResponse, SolverIntentErrorCode, type SolverIntentQuoteRequest, type SolverIntentQuoteResponse, type SolverIntentQuoteResponseRaw, SolverIntentStatusCode, type SolverIntentStatusRequest, type SolverIntentStatusResponse, type SonicAddressOrSpokeType, SonicBaseSpokeProvider, SonicRawSpokeProvider, type SonicRawSpokeProviderConfig, type SonicSpokeDepositParams, SonicSpokeProvider, type SonicSpokeProviderType, SonicSpokeService, type SpokeDepositParams, type SpokeProvider, type SpokeProviderObjectType, type SpokeProviderType, SpokeService, type SpokeTokenSymbols, type SpokeTxHash, type StakeParams, type StakingAction, type StakingConfig, type StakingError, type StakingErrorCode, type StakingInfo, StakingLogic, type StakingParams, StakingService, type StakingServiceConstructorParams, StatATokenAddresses, type State, StellarBaseSpokeProvider, type StellarGasEstimate, StellarRawSpokeProvider, type StellarRawSpokeProviderConfig, type StellarReturnType, type StellarSpokeDepositParams, StellarSpokeProvider, type StellarSpokeProviderType, StellarSpokeService, type StellarTransferToHubParams, type SubmitTxExtraData, type SubmitTxParams, type SubmitTxResponse, SuiBaseSpokeProvider, type SuiGasEstimate, SuiRawSpokeProvider, type SuiRawSpokeProviderConfig, type SuiRawTransaction, type SuiReturnType, type SuiSpokeDepositParams, SuiSpokeProvider, type SuiSpokeProviderType, SuiSpokeService, type SuiTransferToHubParams, type SupplyLiquidityParams, SupportedMigrationTokens, type SwapParams, SwapService, type SwapServiceConfig, type SwapServiceConstructorParams, type TokenSpenderPair, type TokenWithConversion, type TxReturnType, USD_DECIMALS, type UiPoolDataProviderInterface, UiPoolDataProviderService, type UnifiedBnUSDMigrateParams, type UnknownIntentAutoSwapError, type UnstakeParams, type UnstakeRequest, type UnstakeRequestWithPenalty, type UnstakeSodaRequest, type UnstakingInfo, type UserIncentiveData, type UserIncentiveDataHumanized, type UserIncentiveDict, type UserIntentsResponse, type UserReserveCalculationData, type UserReserveData, type UserReserveDataHumanized, type UserReserveDataString, type UserReservesIncentivesDataHumanized, type UserRewardInfoHumanized, type UserUnstakeInfo, VAULT_TOKEN_DECIMALS, type VaultReserves, type VerifyTxHashRawConfig, type VerifyTxHashRawConfigType, type VerifyTxHashRawEvmConfig, type VerifyTxHashRawNearConfig, type VerifyTxHashRawSolanaConfig, type VerifyTxHashRawStellarConfig, WAD, WAD_RAY_RATIO, WEI_DECIMALS, type WaitIntentAutoSwapError, type WaitUntilIntentExecutedPayload, WalletAbstractionService, type WalletMode, type WalletSimulationParams, type WithdrawInfo, adjustAmountByFee, assetManagerAbi, balnSwapAbi, binomialApproximatedRayPow, bnUSDLegacySpokeChainIds, bnUSDLegacyTokens, bnUSDNewTokens, calculateAllReserveIncentives, calculateAllUserIncentives, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateCompoundedRate, calculateFeeAmount, calculateHealthFactorFromBalances, calculateHealthFactorFromBalancesBigUnits, calculateLinearInterest, calculatePercentageFeeAmount, clPoolAbi, clPoolManagerAbi, clPositionManagerAbi, clQuoterAbi, clRouterAbi, clTickLensAbi, connectionAbi, constructRawSpokeProvider, convertTransactionInstructionToRaw, defaultHookAbi, deriveUserWalletAddress, dexPools, encodeAddress, encodeContractCalls, erc20Abi, erc4626Abi, formatBasisPoints, formatEModeCategory, formatEModes, formatPercentage, formatReserve, formatReserveUSD, formatReserves, formatReservesAndIncentives, formatUserSummary, formatUserSummaryAndIncentives, getAllLegacybnUSDTokens, getAndFormatReserveEModes, getCompoundedBalance, getConcentratedLiquidityConfig, getEvmViemChain, getHubChainConfig, getIconAddressBytes, getLinearBalance, getMarketReferenceCurrencyAndUsdBalance, getPacket, getRandomBytes, getReserveNormalizedIncome, getReservesEModes, getSolanaAddressBytes, getTransactionPackets, hexToBigInt, hexToSolanaAddress, hyper, isAddressString, isBalnMigrateParams, isBitcoinRawSpokeProvider, isBitcoinSpokeProvider, isBitcoinSpokeProviderType, isConfiguredMoneyMarketConfig, isConfiguredSolverConfig, isCreateIntentAutoSwapError, isEvmHubChainConfig, isEvmInitializedConfig, isEvmRawSpokeProvider, isEvmRawSpokeProviderConfig, isEvmSpokeChainConfig, isEvmSpokeProvider, isEvmSpokeProviderType, isEvmUninitializedBrowserConfig, isEvmUninitializedConfig, isEvmUninitializedPrivateKeyConfig, isHubSpokeProvider, isIconAddress, isIconRawSpokeProvider, isIconSpokeProvider, isIconSpokeProviderType, isIcxCreateRevertMigrationParams, isIcxMigrateParams, isInjectiveRawSpokeProvider, isInjectiveSpokeProvider, isInjectiveSpokeProviderType, isIntentCreationFailedError, isIntentCreationUnknownError, isIntentPostExecutionFailedError, isIntentRelayChainId, isIntentSubmitTxFailedError, isJsonRpcPayloadResponse, isLegacybnUSDChainId, isLegacybnUSDToken, isMoneyMarketBorrowUnknownError, isMoneyMarketCreateBorrowIntentFailedError, isMoneyMarketCreateRepayIntentFailedError, isMoneyMarketCreateSupplyIntentFailedError, isMoneyMarketCreateWithdrawIntentFailedError, isMoneyMarketRelayTimeoutError, isMoneyMarketRepayUnknownError, isMoneyMarketSubmitTxFailedError, isMoneyMarketSupplyUnknownError, isMoneyMarketWithdrawUnknownError, isNearRawSpokeProvider, isNearRawSpokeProviderConfig, isNearSpokeProvider, isNearSpokeProviderType, isNewbnUSDChainId, isNewbnUSDToken, isPartnerFeeAmount, isPartnerFeePercentage, isRawDestinationParams, isRawSpokeProvider, isResponseAddressType, isResponseSigningType, isSetSwapPreferenceError, isSolanaNativeToken, isSolanaRawSpokeProvider, isSolanaRawSpokeProviderConfig, isSolanaSpokeProvider, isSolanaSpokeProviderType, isSolverErrorResponse, isSonicRawSpokeProvider, isSonicRawSpokeProviderConfig, isSonicSpokeProvider, isSonicSpokeProviderType, isSpokeProvider, isSpokeProviderObjectType, isSpokeProviderType, isStellarRawSpokeProvider, isStellarRawSpokeProviderConfig, isStellarSpokeProvider, isStellarSpokeProviderType, isSubmitSwapTxResponse, isSubmitSwapTxStatusResponse, isSuiRawSpokeProvider, isSuiSpokeProvider, isSuiSpokeProviderType, isUnifiedBnUSDMigrateParams, isUnknownIntentAutoSwapError, isWaitIntentAutoSwapError, isWaitUntilIntentExecutedFailed, mintPositionParamsAbi, modifyLiquidityParamsAbi, nativeToUSD, newbnUSDSpokeChainIds, normalize, normalizeBN, normalizePsbtToBase64, normalizedToUsd, pancakeSwapInfinityDefaultHookAbi, pancakeSwapInfinityPoolManagerAbi, pancakeSwapInfinityPositionManagerAbi, parseToStroops, parseTokenArrayFromJson, permit2Abi, poolAbi, poolKeyAbi, randomUint256, rayDiv, rayMul, rayPow, rayToWad, relayTxAndWaitPacket, requestAddress, requestJsonRpc, requestSigning, retry, sleep, sonicWalletFactoryAbi, spokeAssetManagerAbi, stakedSodaAbi, stakingRouterAbi, stataTokenFactoryAbi, submitTransaction, swapExactInSingleParamsAbi, uiPoolDataAbi, universalRouterAbi, valueToBigNumber, valueToZDBigNumber, variableDebtTokenAbi, vaultTokenAbi, wadToRay, waitForTransactionReceipt, waitUntilIntentExecuted, walletFactoryAbi, wrappedSonicAbi };