@myx-trade/sdk 0.1.176 → 0.1.178

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import * as ethers from 'ethers';
2
- import { AddressLike, Signer, ethers as ethers$1 } from 'ethers';
1
+ import { AddressLike, Signer, ethers } from 'ethers';
3
2
  export { formatUnits, parseUnits } from 'ethers';
4
3
  import { Options, Event } from 'reconnecting-websocket';
5
4
  import { WalletClient } from 'viem';
@@ -49,49 +48,49 @@ interface CancelTpSLParams {
49
48
  orderId: string;
50
49
  }
51
50
 
52
- declare const createPool: ({ chainId, baseToken, marketId }: CreatePoolRequest) => Promise<string | undefined>;
51
+ declare const createPool: ({ chainId, baseToken, marketId }: CreatePoolRequest) => Promise<any>;
53
52
 
54
- declare const getMarketPoolId: ({ chainId, baseToken, marketId, }: CreatePoolRequest) => Promise<string | undefined>;
55
- declare const getMarketPools: (chainId: ChainId) => Promise<string[]>;
53
+ declare const getMarketPoolId: ({ chainId, baseToken, marketId, }: CreatePoolRequest) => Promise<any>;
54
+ declare const getMarketPools: (chainId: ChainId) => Promise<any>;
56
55
  declare const getPoolInfo$1: (chainId: ChainId, poolId: string, marketPrice?: bigint) => Promise<{
57
56
  quotePool: {
58
- poolToken: string;
59
- exchangeRate: bigint;
60
- poolTokenPrice: bigint;
61
- poolTokenSupply: bigint;
57
+ poolToken: any;
58
+ exchangeRate: any;
59
+ poolTokenPrice: any;
60
+ poolTokenSupply: any;
62
61
  };
63
62
  basePool: {
64
- poolToken: string;
65
- exchangeRate: bigint;
66
- poolTokenPrice: bigint;
67
- poolTokenSupply: bigint;
63
+ poolToken: any;
64
+ exchangeRate: any;
65
+ poolTokenPrice: any;
66
+ poolTokenSupply: any;
68
67
  };
69
68
  reserveInfo: {
70
- baseTotalAmount: bigint;
71
- baseReservedAmount: bigint;
72
- quoteTotalAmount: bigint;
73
- quoteReservedAmount: bigint;
69
+ baseTotalAmount: any;
70
+ baseReservedAmount: any;
71
+ quoteTotalAmount: any;
72
+ quoteReservedAmount: any;
74
73
  };
75
74
  fundingInfo: {
76
- nextFundingRate: bigint;
77
- lastFundingFeeTracker: bigint;
78
- nextEpochTime: bigint;
75
+ nextFundingRate: any;
76
+ lastFundingFeeTracker: any;
77
+ nextEpochTime: any;
79
78
  };
80
79
  ioTracker: {
81
- tracker: bigint;
82
- longSize: bigint;
83
- shortSize: bigint;
84
- poolEntryPrice: bigint;
80
+ tracker: any;
81
+ longSize: any;
82
+ shortSize: any;
83
+ poolEntryPrice: any;
85
84
  };
86
85
  }>;
87
86
 
88
- declare const getUserGenesisShare: (chainId: ChainId, tokenAddress: string, account: string) => Promise<bigint>;
87
+ declare const getUserGenesisShare: (chainId: ChainId, tokenAddress: string, account: string) => Promise<any>;
89
88
 
90
- declare const addTpSl: (params: AddTpSLParams) => Promise<ethers.ContractTransactionReceipt | null>;
89
+ declare const addTpSl: (params: AddTpSLParams) => Promise<any>;
91
90
 
92
- declare const cancelTpSl: (params: CancelTpSLParams) => Promise<ethers.ContractTransactionReceipt | null>;
91
+ declare const cancelTpSl: (params: CancelTpSLParams) => Promise<any>;
93
92
 
94
- declare const reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<ethers.ContractTransactionReceipt | null>;
93
+ declare const reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<any>;
95
94
 
96
95
  /**
97
96
  * Trading related types and enums
@@ -727,6 +726,17 @@ type FetchForwarderGetResponseData = {
727
726
  type FetchForwarderGetResponse = BaseResponse<FetchForwarderGetResponseData>;
728
727
  declare const fetchForwarderGetApi: (params: FetchForwarderGetParams) => Promise<FetchForwarderGetResponse>;
729
728
 
729
+ declare const getPoolList: () => Promise<ApiResponse<any[]>>;
730
+ interface PoolSymbolAllResponse {
731
+ chainId: number;
732
+ marketId: string;
733
+ poolId: string;
734
+ baseSymbol: string;
735
+ quoteSymbol: string;
736
+ baseTokenIcon: string;
737
+ }
738
+ declare const getPoolSymbolAll: () => Promise<ApiResponse<PoolSymbolAllResponse[]>>;
739
+
730
740
  declare const baseUrl = "https://api-test.myx.cash";
731
741
  declare const forwardUrl = "https://api-test.myx.cash/v2/agent";
732
742
  declare const getOraclePrice: (chainId: ChainId, poolIds?: string[]) => Promise<PriceResponse>;
@@ -889,21 +899,21 @@ interface PreviewWithdrawDataParams {
889
899
  amount: string | number;
890
900
  }
891
901
 
892
- declare const claimBasePoolRebate: (params: ClaimParams) => Promise<ethers.ContractTransactionResponse | undefined>;
893
- declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<ethers.ContractTransactionResponse | undefined>;
902
+ declare const claimBasePoolRebate: (params: ClaimParams) => Promise<any>;
903
+ declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
894
904
 
895
- declare const deposit$1: (params: Deposit) => Promise<ethers.ContractTransactionResponse | undefined>;
905
+ declare const deposit$1: (params: Deposit) => Promise<any>;
896
906
 
897
- declare const withdraw$1: (params: WithdrawParams) => Promise<ethers.ContractTransactionReceipt | null | undefined>;
907
+ declare const withdraw$1: (params: WithdrawParams) => Promise<any>;
898
908
 
899
- declare const getRewards$1: (params: RewardsParams) => Promise<bigint | undefined>;
909
+ declare const getRewards$1: (params: RewardsParams) => Promise<any>;
900
910
 
901
911
  declare const previewUserWithdrawData: ({ chainId, account, poolId, amount }: PreviewWithdrawDataParams) => Promise<{
902
- baseAmountOut: bigint;
903
- rebateAmount: bigint;
912
+ baseAmountOut: any;
913
+ rebateAmount: any;
904
914
  } | undefined>;
905
915
 
906
- declare const getLpPrice$1: (chainId: ChainId, poolId: string) => Promise<bigint | undefined>;
916
+ declare const getLpPrice$1: (chainId: ChainId, poolId: string) => Promise<any>;
907
917
 
908
918
  declare const index$2_claimBasePoolRebate: typeof claimBasePoolRebate;
909
919
  declare const index$2_claimBasePoolRebates: typeof claimBasePoolRebates;
@@ -912,18 +922,18 @@ declare namespace index$2 {
912
922
  export { index$2_claimBasePoolRebate as claimBasePoolRebate, index$2_claimBasePoolRebates as claimBasePoolRebates, deposit$1 as deposit, getLpPrice$1 as getLpPrice, getRewards$1 as getRewards, index$2_previewUserWithdrawData as previewUserWithdrawData, withdraw$1 as withdraw };
913
923
  }
914
924
 
915
- declare const deposit: (params: Deposit) => Promise<ethers.ContractTransactionResponse | undefined>;
925
+ declare const deposit: (params: Deposit) => Promise<any>;
916
926
 
917
- declare const withdraw: (params: WithdrawParams) => Promise<ethers.ContractTransactionReceipt | null | undefined>;
927
+ declare const withdraw: (params: WithdrawParams) => Promise<any>;
918
928
 
919
- declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<ethers.ContractTransactionResponse | null>;
929
+ declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<any>;
920
930
 
921
- declare const getRewards: (params: RewardsParams) => Promise<bigint | undefined>;
931
+ declare const getRewards: (params: RewardsParams) => Promise<any>;
922
932
 
923
- declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<ethers.ContractTransactionResponse | undefined>;
924
- declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<ethers.ContractTransactionResponse | undefined>;
933
+ declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<any>;
934
+ declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
925
935
 
926
- declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<bigint | undefined>;
936
+ declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<any>;
927
937
 
928
938
  declare const index$1_claimQuotePoolRebate: typeof claimQuotePoolRebate;
929
939
  declare const index$1_claimQuotePoolRebates: typeof claimQuotePoolRebates;
@@ -936,16 +946,9 @@ declare namespace index$1 {
936
946
  export { index$1_claimQuotePoolRebate as claimQuotePoolRebate, index$1_claimQuotePoolRebates as claimQuotePoolRebates, index$1_deposit as deposit, index$1_getLpPrice as getLpPrice, index$1_getRewards as getRewards, index$1_transfer as transfer, index$1_withdraw as withdraw };
937
947
  }
938
948
 
939
- declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint] & {
940
- quoteToken: string;
941
- baseReserveRatio: bigint;
942
- quoteReserveRatio: bigint;
943
- oracleFeeUsd: bigint;
944
- oracleRefundFeeUsd: bigint;
945
- poolPrimeThreshold: bigint;
946
- }) | undefined>;
949
+ declare const getMarket: (chainId: ChainId, marketId: string) => Promise<any>;
947
950
 
948
- declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<bigint | undefined>;
951
+ declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<any>;
949
952
 
950
953
  declare const index_getMarket: typeof getMarket;
951
954
  declare const index_getOracleFee: typeof getOracleFee;
@@ -988,9 +991,9 @@ declare const bigintAmountSlipperCalculator: (amount: bigint, slipper?: Number)
988
991
  declare const getTokenInfo: (chainId: number, tokenAddress: string, account?: string) => Promise<{
989
992
  balance?: number | undefined;
990
993
  address: string;
991
- name: string;
992
- symbol: string;
993
- decimals: bigint;
994
+ name: any;
995
+ symbol: any;
996
+ decimals: any;
994
997
  icon: string;
995
998
  totalSupply: number;
996
999
  }>;
@@ -1204,7 +1207,7 @@ interface MyxClientConfig {
1204
1207
  signer?: Signer;
1205
1208
  seamlessAccount?: {
1206
1209
  masterAddress: string;
1207
- wallet: ethers$1.Wallet | null;
1210
+ wallet: ethers.Wallet | null;
1208
1211
  authorized: boolean;
1209
1212
  };
1210
1213
  walletClient?: WalletClient;
@@ -1224,7 +1227,7 @@ declare class ConfigManager {
1224
1227
  clear(): void;
1225
1228
  startSeamlessMode(open: boolean): MyxClientConfig;
1226
1229
  updateSeamlessWallet({ wallet, authorized, masterAddress }: {
1227
- wallet?: ethers$1.Wallet;
1230
+ wallet?: ethers.Wallet;
1228
1231
  authorized?: boolean;
1229
1232
  masterAddress?: string;
1230
1233
  }): void;
@@ -1332,7 +1335,7 @@ declare class Utils {
1332
1335
  quoteAddress: string;
1333
1336
  amount?: string;
1334
1337
  spenderAddress?: string;
1335
- signer?: ethers$1.Signer;
1338
+ signer?: ethers.Signer;
1336
1339
  }): Promise<{
1337
1340
  code: number;
1338
1341
  message: any;
@@ -1375,68 +1378,7 @@ declare class Utils {
1375
1378
  marketPrice: string;
1376
1379
  }): Promise<{
1377
1380
  code: number;
1378
- data: [[string, bigint, bigint, bigint] & {
1379
- poolToken: string;
1380
- exchangeRate: bigint;
1381
- poolTokenPrice: bigint;
1382
- poolTokenSupply: bigint;
1383
- }, [string, bigint, bigint, bigint] & {
1384
- poolToken: string;
1385
- exchangeRate: bigint;
1386
- poolTokenPrice: bigint;
1387
- poolTokenSupply: bigint;
1388
- }, [bigint, bigint, bigint, bigint] & {
1389
- baseTotalAmount: bigint;
1390
- baseReservedAmount: bigint;
1391
- quoteTotalAmount: bigint;
1392
- quoteReservedAmount: bigint;
1393
- }, [bigint, bigint, bigint] & {
1394
- nextFundingRate: bigint;
1395
- lastFundingFeeTracker: bigint;
1396
- nextEpochTime: bigint;
1397
- }, [bigint, bigint, bigint, bigint] & {
1398
- tracker: bigint;
1399
- longSize: bigint;
1400
- shortSize: bigint;
1401
- poolEntryPrice: bigint;
1402
- }, [bigint, bigint] & {
1403
- windowCaps: bigint;
1404
- openInterest: bigint;
1405
- }] & {
1406
- basePool: [string, bigint, bigint, bigint] & {
1407
- poolToken: string;
1408
- exchangeRate: bigint;
1409
- poolTokenPrice: bigint;
1410
- poolTokenSupply: bigint;
1411
- };
1412
- quotePool: [string, bigint, bigint, bigint] & {
1413
- poolToken: string;
1414
- exchangeRate: bigint;
1415
- poolTokenPrice: bigint;
1416
- poolTokenSupply: bigint;
1417
- };
1418
- reserveInfo: [bigint, bigint, bigint, bigint] & {
1419
- baseTotalAmount: bigint;
1420
- baseReservedAmount: bigint;
1421
- quoteTotalAmount: bigint;
1422
- quoteReservedAmount: bigint;
1423
- };
1424
- fundingInfo: [bigint, bigint, bigint] & {
1425
- nextFundingRate: bigint;
1426
- lastFundingFeeTracker: bigint;
1427
- nextEpochTime: bigint;
1428
- };
1429
- oi: [bigint, bigint, bigint, bigint] & {
1430
- tracker: bigint;
1431
- longSize: bigint;
1432
- shortSize: bigint;
1433
- poolEntryPrice: bigint;
1434
- };
1435
- liquidityInfo: [bigint, bigint] & {
1436
- windowCaps: bigint;
1437
- openInterest: bigint;
1438
- };
1439
- };
1381
+ data: any;
1440
1382
  message?: undefined;
1441
1383
  } | {
1442
1384
  code: number;
@@ -1454,10 +1396,10 @@ declare class Markets {
1454
1396
  /**
1455
1397
  * kline start
1456
1398
  */
1457
- getKlineList({ interval, ...params }: Pick<GetKlineDataParams, "poolId" | "limit" | "endTime" | 'chainId'> & {
1399
+ getKlineList({ interval, ...params }: Pick<GetKlineDataParams, "poolId" | "limit" | "endTime" | "chainId"> & {
1458
1400
  interval: KlineResolution;
1459
1401
  }): Promise<KlineDataItemType[]>;
1460
- getKlineLatestBar({ interval, ...params }: Pick<GetKlineDataParams, "poolId" | "limit" | "endTime" | 'chainId'> & {
1402
+ getKlineLatestBar({ interval, ...params }: Pick<GetKlineDataParams, "poolId" | "limit" | "endTime" | "chainId"> & {
1461
1403
  interval: KlineResolution;
1462
1404
  }): Promise<KlineDataItemType>;
1463
1405
  /**
@@ -1498,6 +1440,10 @@ declare class Markets {
1498
1440
  * get market detail
1499
1441
  */
1500
1442
  getMarketDetail(params: GetMarketDetailParams): Promise<MarketDetailResponse>;
1443
+ /**
1444
+ * get pool symbol all
1445
+ */
1446
+ getPoolSymbolAll(): Promise<PoolSymbolAllResponse[]>;
1501
1447
  }
1502
1448
 
1503
1449
  declare class Account {
@@ -1590,9 +1536,9 @@ declare class Seamless {
1590
1536
  private utils;
1591
1537
  private account;
1592
1538
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, account: Account);
1593
- onCheckRelayer(account: string, relayer: string, chainId: number): Promise<boolean>;
1539
+ onCheckRelayer(account: string, relayer: string, chainId: number): Promise<any>;
1594
1540
  getUSDPermitParams(deadline: number, chainId: number): Promise<{
1595
- token: string | ethers$1.Addressable;
1541
+ token: string | ethers.Addressable;
1596
1542
  owner: string;
1597
1543
  spender: string;
1598
1544
  value: bigint;
@@ -1609,7 +1555,7 @@ declare class Seamless {
1609
1555
  deadline: number;
1610
1556
  data: string;
1611
1557
  nonce: string;
1612
- }, chainId: number, provider?: ethers$1.Signer): Promise<ApiResponse<any>>;
1558
+ }, chainId: number, provider?: ethers.Signer): Promise<ApiResponse<any>>;
1613
1559
  authorizeSeamlessAccount({ approve, seamlessAddress, chainId }: {
1614
1560
  approve: boolean;
1615
1561
  seamlessAddress: string;
@@ -1631,7 +1577,7 @@ declare class Seamless {
1631
1577
  data: {
1632
1578
  masterAddress: string;
1633
1579
  seamlessAccount: string;
1634
- authorized: boolean;
1580
+ authorized: any;
1635
1581
  };
1636
1582
  }>;
1637
1583
  exportSeamlessPrivateKey({ password, apiKey }: {
@@ -1650,9 +1596,9 @@ declare class Seamless {
1650
1596
  }): Promise<{
1651
1597
  code: number;
1652
1598
  data: {
1653
- masterAddress: string;
1599
+ masterAddress: any;
1654
1600
  seamlessAccount: string;
1655
- authorized: boolean;
1601
+ authorized: any;
1656
1602
  apiKey: string;
1657
1603
  };
1658
1604
  }>;
@@ -1672,7 +1618,7 @@ declare class Seamless {
1672
1618
  data: {
1673
1619
  masterAddress: string;
1674
1620
  seamlessAccount: string;
1675
- authorized: boolean;
1621
+ authorized: any;
1676
1622
  apiKey: string;
1677
1623
  };
1678
1624
  message?: undefined;
@@ -1761,13 +1707,13 @@ declare class Order {
1761
1707
  data: {
1762
1708
  success: boolean;
1763
1709
  orderId: string | null;
1764
- transactionHash: string;
1765
- blockNumber: number | undefined;
1766
- gasUsed: string | undefined;
1710
+ transactionHash: any;
1711
+ blockNumber: any;
1712
+ gasUsed: any;
1767
1713
  status: string;
1768
1714
  confirmations: number;
1769
1715
  timestamp: number;
1770
- receipt: ethers$1.ContractTransactionReceipt | null;
1716
+ receipt: any;
1771
1717
  };
1772
1718
  } | {
1773
1719
  code: number;
@@ -1789,13 +1735,13 @@ declare class Order {
1789
1735
  code: number;
1790
1736
  message: string;
1791
1737
  data: string | null;
1792
- transactionHash: string;
1793
- blockNumber: number | undefined;
1794
- gasUsed: string | undefined;
1738
+ transactionHash: any;
1739
+ blockNumber: any;
1740
+ gasUsed: any;
1795
1741
  status: string;
1796
1742
  confirmations: number;
1797
1743
  timestamp: number;
1798
- receipt: ethers$1.ContractTransactionReceipt | null;
1744
+ receipt: any;
1799
1745
  } | {
1800
1746
  code: number;
1801
1747
  message: any;
@@ -1818,13 +1764,13 @@ declare class Order {
1818
1764
  data: {
1819
1765
  success: boolean;
1820
1766
  orderId: string | null;
1821
- transactionHash: string;
1822
- blockNumber: number | undefined;
1823
- gasUsed: string | undefined;
1767
+ transactionHash: any;
1768
+ blockNumber: any;
1769
+ gasUsed: any;
1824
1770
  status: string;
1825
1771
  confirmations: number;
1826
1772
  timestamp: number;
1827
- receipt: ethers$1.ContractTransactionReceipt | null;
1773
+ receipt: any;
1828
1774
  };
1829
1775
  } | {
1830
1776
  code: number;
@@ -1841,13 +1787,13 @@ declare class Order {
1841
1787
  data: {
1842
1788
  success: boolean;
1843
1789
  orderId: string | null;
1844
- transactionHash: string;
1845
- blockNumber: number | undefined;
1846
- gasUsed: string | undefined;
1790
+ transactionHash: any;
1791
+ blockNumber: any;
1792
+ gasUsed: any;
1847
1793
  status: string;
1848
1794
  confirmations: number;
1849
1795
  timestamp: number;
1850
- receipt: ethers$1.ContractTransactionReceipt | null;
1796
+ receipt: any;
1851
1797
  };
1852
1798
  } | {
1853
1799
  code: number;
@@ -1873,7 +1819,7 @@ declare class Order {
1873
1819
  }>;
1874
1820
  updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number): Promise<{
1875
1821
  code: number;
1876
- data: ethers$1.ContractTransactionReceipt | null;
1822
+ data: any;
1877
1823
  message: string;
1878
1824
  } | {
1879
1825
  code: number;
@@ -1931,4 +1877,4 @@ declare class MyxClient {
1931
1877
  getAccessToken(): Promise<string | null>;
1932
1878
  }
1933
1879
 
1934
- export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address$1 as Address, type ApiResponse, type BaseDetailResponse, type BaseResponse, COMMON_LP_AMOUNT_DECIMALS, COMMON_PRICE_DECIMALS, ChainId, type ChainIdRequest, CloseTypeEnum, type DashboardType, Direction, DirectionEnum, ErrorCode, ExecTypeEnum, type FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, type FavoritesType, type FetchForwarderGetParams, type FetchForwarderGetResponse, type FetchForwarderGetResponseData, ForwarderGetStatus, type ForwarderTxParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type HistoryOrderItem, HttpKlineIntervalEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, OrderStatus, OrderStatusEnum, OrderType, OrderTypeEnum, type PlaceOrderParams, type PoolLevelConfig, type PoolOpenOrder, type PoolOpenOrdersResponse, type PoolResponse, type Position$1 as Position, type PositionHistoryItem, type PositionResponse, type PositionTpSlOrderParams, type PositionType, type PriceResponse, type PriceType, type RemoveFavoriteParams, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, type TradeFlowItem, TradeFlowTypeEnum, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, addFavorite, approve, index$2 as base, baseUrl, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, fetchForwarderGetApi, forwardUrl, forwarderTxApi, getAllTickers, getAllowanceApproved, getBalanceOf, getBaseDetail, getFavoritesList, getHistoryOrders, getKlineData, getKlineLatestBar, getMarketDetail, getMarketList, getOraclePrice, getOrders, getPoolDetail, getPoolLevelConfig, getPoolOpenOrders, getPositionHistory, getPositions, getPriceData, getPricesData, getTickerData, getTokenInfo, getTradeFlow, index as market, index$3 as pool, index$1 as quote, removeFavorite, searchMarket, searchMarketAuth };
1880
+ export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address$1 as Address, type ApiResponse, type BaseDetailResponse, type BaseResponse, COMMON_LP_AMOUNT_DECIMALS, COMMON_PRICE_DECIMALS, ChainId, type ChainIdRequest, CloseTypeEnum, type DashboardType, Direction, DirectionEnum, ErrorCode, ExecTypeEnum, type FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, type FavoritesType, type FetchForwarderGetParams, type FetchForwarderGetResponse, type FetchForwarderGetResponseData, ForwarderGetStatus, type ForwarderTxParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type HistoryOrderItem, HttpKlineIntervalEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, OrderStatus, OrderStatusEnum, OrderType, OrderTypeEnum, type PlaceOrderParams, type PoolLevelConfig, type PoolOpenOrder, type PoolOpenOrdersResponse, type PoolResponse, type PoolSymbolAllResponse, type Position$1 as Position, type PositionHistoryItem, type PositionResponse, type PositionTpSlOrderParams, type PositionType, type PriceResponse, type PriceType, type RemoveFavoriteParams, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, type TradeFlowItem, TradeFlowTypeEnum, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, addFavorite, approve, index$2 as base, baseUrl, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, fetchForwarderGetApi, forwardUrl, forwarderTxApi, getAllTickers, getAllowanceApproved, getBalanceOf, getBaseDetail, getFavoritesList, getHistoryOrders, getKlineData, getKlineLatestBar, getMarketDetail, getMarketList, getOraclePrice, getOrders, getPoolDetail, getPoolLevelConfig, getPoolList, getPoolOpenOrders, getPoolSymbolAll, getPositionHistory, getPositions, getPriceData, getPricesData, getTickerData, getTokenInfo, getTradeFlow, index as market, index$3 as pool, index$1 as quote, removeFavorite, searchMarket, searchMarketAuth };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import * as ethers from 'ethers';
2
- import { AddressLike, Signer, ethers as ethers$1 } from 'ethers';
1
+ import { AddressLike, Signer, ethers } from 'ethers';
3
2
  export { formatUnits, parseUnits } from 'ethers';
4
3
  import { Options, Event } from 'reconnecting-websocket';
5
4
  import { WalletClient } from 'viem';
@@ -49,49 +48,49 @@ interface CancelTpSLParams {
49
48
  orderId: string;
50
49
  }
51
50
 
52
- declare const createPool: ({ chainId, baseToken, marketId }: CreatePoolRequest) => Promise<string | undefined>;
51
+ declare const createPool: ({ chainId, baseToken, marketId }: CreatePoolRequest) => Promise<any>;
53
52
 
54
- declare const getMarketPoolId: ({ chainId, baseToken, marketId, }: CreatePoolRequest) => Promise<string | undefined>;
55
- declare const getMarketPools: (chainId: ChainId) => Promise<string[]>;
53
+ declare const getMarketPoolId: ({ chainId, baseToken, marketId, }: CreatePoolRequest) => Promise<any>;
54
+ declare const getMarketPools: (chainId: ChainId) => Promise<any>;
56
55
  declare const getPoolInfo$1: (chainId: ChainId, poolId: string, marketPrice?: bigint) => Promise<{
57
56
  quotePool: {
58
- poolToken: string;
59
- exchangeRate: bigint;
60
- poolTokenPrice: bigint;
61
- poolTokenSupply: bigint;
57
+ poolToken: any;
58
+ exchangeRate: any;
59
+ poolTokenPrice: any;
60
+ poolTokenSupply: any;
62
61
  };
63
62
  basePool: {
64
- poolToken: string;
65
- exchangeRate: bigint;
66
- poolTokenPrice: bigint;
67
- poolTokenSupply: bigint;
63
+ poolToken: any;
64
+ exchangeRate: any;
65
+ poolTokenPrice: any;
66
+ poolTokenSupply: any;
68
67
  };
69
68
  reserveInfo: {
70
- baseTotalAmount: bigint;
71
- baseReservedAmount: bigint;
72
- quoteTotalAmount: bigint;
73
- quoteReservedAmount: bigint;
69
+ baseTotalAmount: any;
70
+ baseReservedAmount: any;
71
+ quoteTotalAmount: any;
72
+ quoteReservedAmount: any;
74
73
  };
75
74
  fundingInfo: {
76
- nextFundingRate: bigint;
77
- lastFundingFeeTracker: bigint;
78
- nextEpochTime: bigint;
75
+ nextFundingRate: any;
76
+ lastFundingFeeTracker: any;
77
+ nextEpochTime: any;
79
78
  };
80
79
  ioTracker: {
81
- tracker: bigint;
82
- longSize: bigint;
83
- shortSize: bigint;
84
- poolEntryPrice: bigint;
80
+ tracker: any;
81
+ longSize: any;
82
+ shortSize: any;
83
+ poolEntryPrice: any;
85
84
  };
86
85
  }>;
87
86
 
88
- declare const getUserGenesisShare: (chainId: ChainId, tokenAddress: string, account: string) => Promise<bigint>;
87
+ declare const getUserGenesisShare: (chainId: ChainId, tokenAddress: string, account: string) => Promise<any>;
89
88
 
90
- declare const addTpSl: (params: AddTpSLParams) => Promise<ethers.ContractTransactionReceipt | null>;
89
+ declare const addTpSl: (params: AddTpSLParams) => Promise<any>;
91
90
 
92
- declare const cancelTpSl: (params: CancelTpSLParams) => Promise<ethers.ContractTransactionReceipt | null>;
91
+ declare const cancelTpSl: (params: CancelTpSLParams) => Promise<any>;
93
92
 
94
- declare const reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<ethers.ContractTransactionReceipt | null>;
93
+ declare const reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<any>;
95
94
 
96
95
  /**
97
96
  * Trading related types and enums
@@ -727,6 +726,17 @@ type FetchForwarderGetResponseData = {
727
726
  type FetchForwarderGetResponse = BaseResponse<FetchForwarderGetResponseData>;
728
727
  declare const fetchForwarderGetApi: (params: FetchForwarderGetParams) => Promise<FetchForwarderGetResponse>;
729
728
 
729
+ declare const getPoolList: () => Promise<ApiResponse<any[]>>;
730
+ interface PoolSymbolAllResponse {
731
+ chainId: number;
732
+ marketId: string;
733
+ poolId: string;
734
+ baseSymbol: string;
735
+ quoteSymbol: string;
736
+ baseTokenIcon: string;
737
+ }
738
+ declare const getPoolSymbolAll: () => Promise<ApiResponse<PoolSymbolAllResponse[]>>;
739
+
730
740
  declare const baseUrl = "https://api-test.myx.cash";
731
741
  declare const forwardUrl = "https://api-test.myx.cash/v2/agent";
732
742
  declare const getOraclePrice: (chainId: ChainId, poolIds?: string[]) => Promise<PriceResponse>;
@@ -889,21 +899,21 @@ interface PreviewWithdrawDataParams {
889
899
  amount: string | number;
890
900
  }
891
901
 
892
- declare const claimBasePoolRebate: (params: ClaimParams) => Promise<ethers.ContractTransactionResponse | undefined>;
893
- declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<ethers.ContractTransactionResponse | undefined>;
902
+ declare const claimBasePoolRebate: (params: ClaimParams) => Promise<any>;
903
+ declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
894
904
 
895
- declare const deposit$1: (params: Deposit) => Promise<ethers.ContractTransactionResponse | undefined>;
905
+ declare const deposit$1: (params: Deposit) => Promise<any>;
896
906
 
897
- declare const withdraw$1: (params: WithdrawParams) => Promise<ethers.ContractTransactionReceipt | null | undefined>;
907
+ declare const withdraw$1: (params: WithdrawParams) => Promise<any>;
898
908
 
899
- declare const getRewards$1: (params: RewardsParams) => Promise<bigint | undefined>;
909
+ declare const getRewards$1: (params: RewardsParams) => Promise<any>;
900
910
 
901
911
  declare const previewUserWithdrawData: ({ chainId, account, poolId, amount }: PreviewWithdrawDataParams) => Promise<{
902
- baseAmountOut: bigint;
903
- rebateAmount: bigint;
912
+ baseAmountOut: any;
913
+ rebateAmount: any;
904
914
  } | undefined>;
905
915
 
906
- declare const getLpPrice$1: (chainId: ChainId, poolId: string) => Promise<bigint | undefined>;
916
+ declare const getLpPrice$1: (chainId: ChainId, poolId: string) => Promise<any>;
907
917
 
908
918
  declare const index$2_claimBasePoolRebate: typeof claimBasePoolRebate;
909
919
  declare const index$2_claimBasePoolRebates: typeof claimBasePoolRebates;
@@ -912,18 +922,18 @@ declare namespace index$2 {
912
922
  export { index$2_claimBasePoolRebate as claimBasePoolRebate, index$2_claimBasePoolRebates as claimBasePoolRebates, deposit$1 as deposit, getLpPrice$1 as getLpPrice, getRewards$1 as getRewards, index$2_previewUserWithdrawData as previewUserWithdrawData, withdraw$1 as withdraw };
913
923
  }
914
924
 
915
- declare const deposit: (params: Deposit) => Promise<ethers.ContractTransactionResponse | undefined>;
925
+ declare const deposit: (params: Deposit) => Promise<any>;
916
926
 
917
- declare const withdraw: (params: WithdrawParams) => Promise<ethers.ContractTransactionReceipt | null | undefined>;
927
+ declare const withdraw: (params: WithdrawParams) => Promise<any>;
918
928
 
919
- declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<ethers.ContractTransactionResponse | null>;
929
+ declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<any>;
920
930
 
921
- declare const getRewards: (params: RewardsParams) => Promise<bigint | undefined>;
931
+ declare const getRewards: (params: RewardsParams) => Promise<any>;
922
932
 
923
- declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<ethers.ContractTransactionResponse | undefined>;
924
- declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<ethers.ContractTransactionResponse | undefined>;
933
+ declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<any>;
934
+ declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
925
935
 
926
- declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<bigint | undefined>;
936
+ declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<any>;
927
937
 
928
938
  declare const index$1_claimQuotePoolRebate: typeof claimQuotePoolRebate;
929
939
  declare const index$1_claimQuotePoolRebates: typeof claimQuotePoolRebates;
@@ -936,16 +946,9 @@ declare namespace index$1 {
936
946
  export { index$1_claimQuotePoolRebate as claimQuotePoolRebate, index$1_claimQuotePoolRebates as claimQuotePoolRebates, index$1_deposit as deposit, index$1_getLpPrice as getLpPrice, index$1_getRewards as getRewards, index$1_transfer as transfer, index$1_withdraw as withdraw };
937
947
  }
938
948
 
939
- declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint] & {
940
- quoteToken: string;
941
- baseReserveRatio: bigint;
942
- quoteReserveRatio: bigint;
943
- oracleFeeUsd: bigint;
944
- oracleRefundFeeUsd: bigint;
945
- poolPrimeThreshold: bigint;
946
- }) | undefined>;
949
+ declare const getMarket: (chainId: ChainId, marketId: string) => Promise<any>;
947
950
 
948
- declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<bigint | undefined>;
951
+ declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<any>;
949
952
 
950
953
  declare const index_getMarket: typeof getMarket;
951
954
  declare const index_getOracleFee: typeof getOracleFee;
@@ -988,9 +991,9 @@ declare const bigintAmountSlipperCalculator: (amount: bigint, slipper?: Number)
988
991
  declare const getTokenInfo: (chainId: number, tokenAddress: string, account?: string) => Promise<{
989
992
  balance?: number | undefined;
990
993
  address: string;
991
- name: string;
992
- symbol: string;
993
- decimals: bigint;
994
+ name: any;
995
+ symbol: any;
996
+ decimals: any;
994
997
  icon: string;
995
998
  totalSupply: number;
996
999
  }>;
@@ -1204,7 +1207,7 @@ interface MyxClientConfig {
1204
1207
  signer?: Signer;
1205
1208
  seamlessAccount?: {
1206
1209
  masterAddress: string;
1207
- wallet: ethers$1.Wallet | null;
1210
+ wallet: ethers.Wallet | null;
1208
1211
  authorized: boolean;
1209
1212
  };
1210
1213
  walletClient?: WalletClient;
@@ -1224,7 +1227,7 @@ declare class ConfigManager {
1224
1227
  clear(): void;
1225
1228
  startSeamlessMode(open: boolean): MyxClientConfig;
1226
1229
  updateSeamlessWallet({ wallet, authorized, masterAddress }: {
1227
- wallet?: ethers$1.Wallet;
1230
+ wallet?: ethers.Wallet;
1228
1231
  authorized?: boolean;
1229
1232
  masterAddress?: string;
1230
1233
  }): void;
@@ -1332,7 +1335,7 @@ declare class Utils {
1332
1335
  quoteAddress: string;
1333
1336
  amount?: string;
1334
1337
  spenderAddress?: string;
1335
- signer?: ethers$1.Signer;
1338
+ signer?: ethers.Signer;
1336
1339
  }): Promise<{
1337
1340
  code: number;
1338
1341
  message: any;
@@ -1375,68 +1378,7 @@ declare class Utils {
1375
1378
  marketPrice: string;
1376
1379
  }): Promise<{
1377
1380
  code: number;
1378
- data: [[string, bigint, bigint, bigint] & {
1379
- poolToken: string;
1380
- exchangeRate: bigint;
1381
- poolTokenPrice: bigint;
1382
- poolTokenSupply: bigint;
1383
- }, [string, bigint, bigint, bigint] & {
1384
- poolToken: string;
1385
- exchangeRate: bigint;
1386
- poolTokenPrice: bigint;
1387
- poolTokenSupply: bigint;
1388
- }, [bigint, bigint, bigint, bigint] & {
1389
- baseTotalAmount: bigint;
1390
- baseReservedAmount: bigint;
1391
- quoteTotalAmount: bigint;
1392
- quoteReservedAmount: bigint;
1393
- }, [bigint, bigint, bigint] & {
1394
- nextFundingRate: bigint;
1395
- lastFundingFeeTracker: bigint;
1396
- nextEpochTime: bigint;
1397
- }, [bigint, bigint, bigint, bigint] & {
1398
- tracker: bigint;
1399
- longSize: bigint;
1400
- shortSize: bigint;
1401
- poolEntryPrice: bigint;
1402
- }, [bigint, bigint] & {
1403
- windowCaps: bigint;
1404
- openInterest: bigint;
1405
- }] & {
1406
- basePool: [string, bigint, bigint, bigint] & {
1407
- poolToken: string;
1408
- exchangeRate: bigint;
1409
- poolTokenPrice: bigint;
1410
- poolTokenSupply: bigint;
1411
- };
1412
- quotePool: [string, bigint, bigint, bigint] & {
1413
- poolToken: string;
1414
- exchangeRate: bigint;
1415
- poolTokenPrice: bigint;
1416
- poolTokenSupply: bigint;
1417
- };
1418
- reserveInfo: [bigint, bigint, bigint, bigint] & {
1419
- baseTotalAmount: bigint;
1420
- baseReservedAmount: bigint;
1421
- quoteTotalAmount: bigint;
1422
- quoteReservedAmount: bigint;
1423
- };
1424
- fundingInfo: [bigint, bigint, bigint] & {
1425
- nextFundingRate: bigint;
1426
- lastFundingFeeTracker: bigint;
1427
- nextEpochTime: bigint;
1428
- };
1429
- oi: [bigint, bigint, bigint, bigint] & {
1430
- tracker: bigint;
1431
- longSize: bigint;
1432
- shortSize: bigint;
1433
- poolEntryPrice: bigint;
1434
- };
1435
- liquidityInfo: [bigint, bigint] & {
1436
- windowCaps: bigint;
1437
- openInterest: bigint;
1438
- };
1439
- };
1381
+ data: any;
1440
1382
  message?: undefined;
1441
1383
  } | {
1442
1384
  code: number;
@@ -1454,10 +1396,10 @@ declare class Markets {
1454
1396
  /**
1455
1397
  * kline start
1456
1398
  */
1457
- getKlineList({ interval, ...params }: Pick<GetKlineDataParams, "poolId" | "limit" | "endTime" | 'chainId'> & {
1399
+ getKlineList({ interval, ...params }: Pick<GetKlineDataParams, "poolId" | "limit" | "endTime" | "chainId"> & {
1458
1400
  interval: KlineResolution;
1459
1401
  }): Promise<KlineDataItemType[]>;
1460
- getKlineLatestBar({ interval, ...params }: Pick<GetKlineDataParams, "poolId" | "limit" | "endTime" | 'chainId'> & {
1402
+ getKlineLatestBar({ interval, ...params }: Pick<GetKlineDataParams, "poolId" | "limit" | "endTime" | "chainId"> & {
1461
1403
  interval: KlineResolution;
1462
1404
  }): Promise<KlineDataItemType>;
1463
1405
  /**
@@ -1498,6 +1440,10 @@ declare class Markets {
1498
1440
  * get market detail
1499
1441
  */
1500
1442
  getMarketDetail(params: GetMarketDetailParams): Promise<MarketDetailResponse>;
1443
+ /**
1444
+ * get pool symbol all
1445
+ */
1446
+ getPoolSymbolAll(): Promise<PoolSymbolAllResponse[]>;
1501
1447
  }
1502
1448
 
1503
1449
  declare class Account {
@@ -1590,9 +1536,9 @@ declare class Seamless {
1590
1536
  private utils;
1591
1537
  private account;
1592
1538
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, account: Account);
1593
- onCheckRelayer(account: string, relayer: string, chainId: number): Promise<boolean>;
1539
+ onCheckRelayer(account: string, relayer: string, chainId: number): Promise<any>;
1594
1540
  getUSDPermitParams(deadline: number, chainId: number): Promise<{
1595
- token: string | ethers$1.Addressable;
1541
+ token: string | ethers.Addressable;
1596
1542
  owner: string;
1597
1543
  spender: string;
1598
1544
  value: bigint;
@@ -1609,7 +1555,7 @@ declare class Seamless {
1609
1555
  deadline: number;
1610
1556
  data: string;
1611
1557
  nonce: string;
1612
- }, chainId: number, provider?: ethers$1.Signer): Promise<ApiResponse<any>>;
1558
+ }, chainId: number, provider?: ethers.Signer): Promise<ApiResponse<any>>;
1613
1559
  authorizeSeamlessAccount({ approve, seamlessAddress, chainId }: {
1614
1560
  approve: boolean;
1615
1561
  seamlessAddress: string;
@@ -1631,7 +1577,7 @@ declare class Seamless {
1631
1577
  data: {
1632
1578
  masterAddress: string;
1633
1579
  seamlessAccount: string;
1634
- authorized: boolean;
1580
+ authorized: any;
1635
1581
  };
1636
1582
  }>;
1637
1583
  exportSeamlessPrivateKey({ password, apiKey }: {
@@ -1650,9 +1596,9 @@ declare class Seamless {
1650
1596
  }): Promise<{
1651
1597
  code: number;
1652
1598
  data: {
1653
- masterAddress: string;
1599
+ masterAddress: any;
1654
1600
  seamlessAccount: string;
1655
- authorized: boolean;
1601
+ authorized: any;
1656
1602
  apiKey: string;
1657
1603
  };
1658
1604
  }>;
@@ -1672,7 +1618,7 @@ declare class Seamless {
1672
1618
  data: {
1673
1619
  masterAddress: string;
1674
1620
  seamlessAccount: string;
1675
- authorized: boolean;
1621
+ authorized: any;
1676
1622
  apiKey: string;
1677
1623
  };
1678
1624
  message?: undefined;
@@ -1761,13 +1707,13 @@ declare class Order {
1761
1707
  data: {
1762
1708
  success: boolean;
1763
1709
  orderId: string | null;
1764
- transactionHash: string;
1765
- blockNumber: number | undefined;
1766
- gasUsed: string | undefined;
1710
+ transactionHash: any;
1711
+ blockNumber: any;
1712
+ gasUsed: any;
1767
1713
  status: string;
1768
1714
  confirmations: number;
1769
1715
  timestamp: number;
1770
- receipt: ethers$1.ContractTransactionReceipt | null;
1716
+ receipt: any;
1771
1717
  };
1772
1718
  } | {
1773
1719
  code: number;
@@ -1789,13 +1735,13 @@ declare class Order {
1789
1735
  code: number;
1790
1736
  message: string;
1791
1737
  data: string | null;
1792
- transactionHash: string;
1793
- blockNumber: number | undefined;
1794
- gasUsed: string | undefined;
1738
+ transactionHash: any;
1739
+ blockNumber: any;
1740
+ gasUsed: any;
1795
1741
  status: string;
1796
1742
  confirmations: number;
1797
1743
  timestamp: number;
1798
- receipt: ethers$1.ContractTransactionReceipt | null;
1744
+ receipt: any;
1799
1745
  } | {
1800
1746
  code: number;
1801
1747
  message: any;
@@ -1818,13 +1764,13 @@ declare class Order {
1818
1764
  data: {
1819
1765
  success: boolean;
1820
1766
  orderId: string | null;
1821
- transactionHash: string;
1822
- blockNumber: number | undefined;
1823
- gasUsed: string | undefined;
1767
+ transactionHash: any;
1768
+ blockNumber: any;
1769
+ gasUsed: any;
1824
1770
  status: string;
1825
1771
  confirmations: number;
1826
1772
  timestamp: number;
1827
- receipt: ethers$1.ContractTransactionReceipt | null;
1773
+ receipt: any;
1828
1774
  };
1829
1775
  } | {
1830
1776
  code: number;
@@ -1841,13 +1787,13 @@ declare class Order {
1841
1787
  data: {
1842
1788
  success: boolean;
1843
1789
  orderId: string | null;
1844
- transactionHash: string;
1845
- blockNumber: number | undefined;
1846
- gasUsed: string | undefined;
1790
+ transactionHash: any;
1791
+ blockNumber: any;
1792
+ gasUsed: any;
1847
1793
  status: string;
1848
1794
  confirmations: number;
1849
1795
  timestamp: number;
1850
- receipt: ethers$1.ContractTransactionReceipt | null;
1796
+ receipt: any;
1851
1797
  };
1852
1798
  } | {
1853
1799
  code: number;
@@ -1873,7 +1819,7 @@ declare class Order {
1873
1819
  }>;
1874
1820
  updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number): Promise<{
1875
1821
  code: number;
1876
- data: ethers$1.ContractTransactionReceipt | null;
1822
+ data: any;
1877
1823
  message: string;
1878
1824
  } | {
1879
1825
  code: number;
@@ -1931,4 +1877,4 @@ declare class MyxClient {
1931
1877
  getAccessToken(): Promise<string | null>;
1932
1878
  }
1933
1879
 
1934
- export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address$1 as Address, type ApiResponse, type BaseDetailResponse, type BaseResponse, COMMON_LP_AMOUNT_DECIMALS, COMMON_PRICE_DECIMALS, ChainId, type ChainIdRequest, CloseTypeEnum, type DashboardType, Direction, DirectionEnum, ErrorCode, ExecTypeEnum, type FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, type FavoritesType, type FetchForwarderGetParams, type FetchForwarderGetResponse, type FetchForwarderGetResponseData, ForwarderGetStatus, type ForwarderTxParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type HistoryOrderItem, HttpKlineIntervalEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, OrderStatus, OrderStatusEnum, OrderType, OrderTypeEnum, type PlaceOrderParams, type PoolLevelConfig, type PoolOpenOrder, type PoolOpenOrdersResponse, type PoolResponse, type Position$1 as Position, type PositionHistoryItem, type PositionResponse, type PositionTpSlOrderParams, type PositionType, type PriceResponse, type PriceType, type RemoveFavoriteParams, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, type TradeFlowItem, TradeFlowTypeEnum, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, addFavorite, approve, index$2 as base, baseUrl, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, fetchForwarderGetApi, forwardUrl, forwarderTxApi, getAllTickers, getAllowanceApproved, getBalanceOf, getBaseDetail, getFavoritesList, getHistoryOrders, getKlineData, getKlineLatestBar, getMarketDetail, getMarketList, getOraclePrice, getOrders, getPoolDetail, getPoolLevelConfig, getPoolOpenOrders, getPositionHistory, getPositions, getPriceData, getPricesData, getTickerData, getTokenInfo, getTradeFlow, index as market, index$3 as pool, index$1 as quote, removeFavorite, searchMarket, searchMarketAuth };
1880
+ export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type Address$1 as Address, type ApiResponse, type BaseDetailResponse, type BaseResponse, COMMON_LP_AMOUNT_DECIMALS, COMMON_PRICE_DECIMALS, ChainId, type ChainIdRequest, CloseTypeEnum, type DashboardType, Direction, DirectionEnum, ErrorCode, ExecTypeEnum, type FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, type FavoritesType, type FetchForwarderGetParams, type FetchForwarderGetResponse, type FetchForwarderGetResponseData, ForwarderGetStatus, type ForwarderTxParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type HistoryOrderItem, HttpKlineIntervalEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, OrderStatus, OrderStatusEnum, OrderType, OrderTypeEnum, type PlaceOrderParams, type PoolLevelConfig, type PoolOpenOrder, type PoolOpenOrdersResponse, type PoolResponse, type PoolSymbolAllResponse, type Position$1 as Position, type PositionHistoryItem, type PositionResponse, type PositionTpSlOrderParams, type PositionType, type PriceResponse, type PriceType, type RemoveFavoriteParams, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, type TradeFlowItem, TradeFlowTypeEnum, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, addFavorite, approve, index$2 as base, baseUrl, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, fetchForwarderGetApi, forwardUrl, forwarderTxApi, getAllTickers, getAllowanceApproved, getBalanceOf, getBaseDetail, getFavoritesList, getHistoryOrders, getKlineData, getKlineLatestBar, getMarketDetail, getMarketList, getOraclePrice, getOrders, getPoolDetail, getPoolLevelConfig, getPoolList, getPoolOpenOrders, getPoolSymbolAll, getPositionHistory, getPositions, getPriceData, getPricesData, getTickerData, getTokenInfo, getTradeFlow, index as market, index$3 as pool, index$1 as quote, removeFavorite, searchMarket, searchMarketAuth };
package/dist/index.js CHANGED
@@ -82,7 +82,9 @@ __export(index_exports, {
82
82
  getOrders: () => getOrders,
83
83
  getPoolDetail: () => getPoolDetail,
84
84
  getPoolLevelConfig: () => getPoolLevelConfig,
85
+ getPoolList: () => getPoolList,
85
86
  getPoolOpenOrders: () => getPoolOpenOrders,
87
+ getPoolSymbolAll: () => getPoolSymbolAll,
86
88
  getPositionHistory: () => getPositionHistory,
87
89
  getPositions: () => getPositions,
88
90
  getPriceData: () => getPriceData,
@@ -1821,7 +1823,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
1821
1823
  // package.json
1822
1824
  var package_default = {
1823
1825
  name: "@myx-trade/sdk",
1824
- version: "0.1.176",
1826
+ version: "0.1.178",
1825
1827
  private: false,
1826
1828
  publishConfig: {
1827
1829
  access: "public"
@@ -2166,6 +2168,18 @@ var fetchForwarderGetApi = async (params) => {
2166
2168
  return rs;
2167
2169
  };
2168
2170
 
2171
+ // src/api/pool/index.ts
2172
+ var getPoolList = async () => {
2173
+ return http.get(
2174
+ `${baseUrl}/openapi/gateway/scan/market/list`
2175
+ );
2176
+ };
2177
+ var getPoolSymbolAll = async () => {
2178
+ return http.get(
2179
+ `${baseUrl}/openapi/gateway/scan/pools`
2180
+ );
2181
+ };
2182
+
2169
2183
  // src/api/index.ts
2170
2184
  var baseUrl = "https://api-test.myx.cash";
2171
2185
  var forwardUrl = "https://api-test.myx.cash/v2/agent";
@@ -14122,6 +14136,12 @@ var Markets = class {
14122
14136
  async getMarketDetail(params) {
14123
14137
  return (await getMarketDetail(params)).data;
14124
14138
  }
14139
+ /**
14140
+ * get pool symbol all
14141
+ */
14142
+ async getPoolSymbolAll() {
14143
+ return (await getPoolSymbolAll()).data;
14144
+ }
14125
14145
  };
14126
14146
 
14127
14147
  // src/manager/position/index.ts
@@ -21069,13 +21089,6 @@ var Account_default = [
21069
21089
 
21070
21090
  // src/manager/account/index.ts
21071
21091
  var import_dayjs3 = __toESM(require("dayjs"));
21072
-
21073
- // src/api/pool/index.ts
21074
- var getPoolList = async () => {
21075
- return http.get(`${baseUrl}/openapi/gateway/scan/market/list`);
21076
- };
21077
-
21078
- // src/manager/account/index.ts
21079
21092
  var Account = class {
21080
21093
  constructor(configManager, logger, utils, client2) {
21081
21094
  this.configManager = configManager;
@@ -21958,7 +21971,9 @@ var MyxClient = class {
21958
21971
  getOrders,
21959
21972
  getPoolDetail,
21960
21973
  getPoolLevelConfig,
21974
+ getPoolList,
21961
21975
  getPoolOpenOrders,
21976
+ getPoolSymbolAll,
21962
21977
  getPositionHistory,
21963
21978
  getPositions,
21964
21979
  getPriceData,
package/dist/index.mjs CHANGED
@@ -1731,7 +1731,7 @@ var RotationProvider = class extends BaseProvider {
1731
1731
  // package.json
1732
1732
  var package_default = {
1733
1733
  name: "@myx-trade/sdk",
1734
- version: "0.1.176",
1734
+ version: "0.1.178",
1735
1735
  private: false,
1736
1736
  publishConfig: {
1737
1737
  access: "public"
@@ -2076,6 +2076,18 @@ var fetchForwarderGetApi = async (params) => {
2076
2076
  return rs;
2077
2077
  };
2078
2078
 
2079
+ // src/api/pool/index.ts
2080
+ var getPoolList = async () => {
2081
+ return http.get(
2082
+ `${baseUrl}/openapi/gateway/scan/market/list`
2083
+ );
2084
+ };
2085
+ var getPoolSymbolAll = async () => {
2086
+ return http.get(
2087
+ `${baseUrl}/openapi/gateway/scan/pools`
2088
+ );
2089
+ };
2090
+
2079
2091
  // src/api/index.ts
2080
2092
  var baseUrl = "https://api-test.myx.cash";
2081
2093
  var forwardUrl = "https://api-test.myx.cash/v2/agent";
@@ -14032,6 +14044,12 @@ var Markets = class {
14032
14044
  async getMarketDetail(params) {
14033
14045
  return (await getMarketDetail(params)).data;
14034
14046
  }
14047
+ /**
14048
+ * get pool symbol all
14049
+ */
14050
+ async getPoolSymbolAll() {
14051
+ return (await getPoolSymbolAll()).data;
14052
+ }
14035
14053
  };
14036
14054
 
14037
14055
  // src/manager/position/index.ts
@@ -20979,13 +20997,6 @@ var Account_default = [
20979
20997
 
20980
20998
  // src/manager/account/index.ts
20981
20999
  import dayjs3 from "dayjs";
20982
-
20983
- // src/api/pool/index.ts
20984
- var getPoolList = async () => {
20985
- return http.get(`${baseUrl}/openapi/gateway/scan/market/list`);
20986
- };
20987
-
20988
- // src/manager/account/index.ts
20989
21000
  var Account = class {
20990
21001
  constructor(configManager, logger, utils, client2) {
20991
21002
  this.configManager = configManager;
@@ -21867,7 +21878,9 @@ export {
21867
21878
  getOrders,
21868
21879
  getPoolDetail,
21869
21880
  getPoolLevelConfig,
21881
+ getPoolList,
21870
21882
  getPoolOpenOrders,
21883
+ getPoolSymbolAll,
21871
21884
  getPositionHistory,
21872
21885
  getPositions,
21873
21886
  getPriceData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myx-trade/sdk",
3
- "version": "0.1.176",
3
+ "version": "0.1.178",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"