@myx-trade/sdk 1.0.4-beta.1 → 1.0.4-beta.11

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,5 @@
1
1
  import * as viem from 'viem';
2
- import { zeroAddress, Address as Address$2, Account as Account$1, WalletClient, PublicClient, Abi } from 'viem';
2
+ import { zeroAddress, Address as Address$2, WalletClient, PublicClient, Abi } from 'viem';
3
3
  export { formatUnits, parseUnits } from 'viem';
4
4
  import { Options, Event } from 'reconnecting-websocket';
5
5
  import { WretchOptions } from 'wretch/types';
@@ -1059,6 +1059,22 @@ declare const getTokenInfo: (chainId: number, tokenAddress: string, account?: st
1059
1059
  totalSupply: number;
1060
1060
  }>;
1061
1061
 
1062
+ /**
1063
+ * Optional log sink for SDK. Default is no-op so the SDK does not touch the global `console`.
1064
+ * Host can call setSdkLogSink(console) to get logs; in LavaMoat environments leave unset to reduce allowlist.
1065
+ */
1066
+ type LogSink = {
1067
+ log?: (...args: unknown[]) => void;
1068
+ info?: (...args: unknown[]) => void;
1069
+ warn?: (...args: unknown[]) => void;
1070
+ error?: (...args: unknown[]) => void;
1071
+ };
1072
+ declare function setSdkLogSink(s: LogSink | null): void;
1073
+ declare function getSdkLogSink(): LogSink;
1074
+ declare function sdkLog(...args: unknown[]): void;
1075
+ declare function sdkWarn(...args: unknown[]): void;
1076
+ declare function sdkError(...args: unknown[]): void;
1077
+
1062
1078
  /**
1063
1079
  * MyxLogger
1064
1080
  * Uses optional sink (no global console by default) so LavaMoat allowlist can omit "console".
@@ -1314,17 +1330,11 @@ interface MyxClientConfig {
1314
1330
  chainId: number;
1315
1331
  /** ethers v5/v6 Signer, viem WalletClient, or ISigner. Use walletClient when app uses viem to avoid ethers in bundle. */
1316
1332
  signer?: SignerLike;
1317
- seamlessAccount?: {
1318
- masterAddress: string;
1319
- wallet: Account$1 | null;
1320
- authorized: boolean;
1321
- };
1322
1333
  walletClient?: WalletClient;
1323
1334
  brokerAddress: string;
1324
1335
  isTestnet?: boolean;
1325
1336
  isBetaMode?: boolean;
1326
1337
  poolingInterval?: number;
1327
- seamlessMode?: boolean;
1328
1338
  socketConfig?: Partial<Omit<WebSocketConfig, "url">>;
1329
1339
  logLevel?: LogLevel;
1330
1340
  getAccessToken?: (() => Promise<AccessTokenResponse | undefined>) | (() => AccessTokenResponse | undefined);
@@ -1343,12 +1353,6 @@ declare class ConfigManager {
1343
1353
  getSignerAddress(chainId: number): Promise<string>;
1344
1354
  /** Returns viem WalletClient for the chain (for readContract/writeContract). Use when SDK uses viem. */
1345
1355
  getViemWalletClient(chainId: number): Promise<WalletClient>;
1346
- startSeamlessMode(open: boolean): Promise<MyxClientConfig>;
1347
- updateSeamlessWallet({ wallet, authorized, masterAddress, }: {
1348
- wallet?: Account$1 | null;
1349
- authorized?: boolean;
1350
- masterAddress?: string;
1351
- }): void;
1352
1356
  updateClientChainId(chainId: number, brokerAddress: string): void;
1353
1357
  auth(params: Pick<MyxClientConfig, "signer" | "walletClient" | "getAccessToken">): void;
1354
1358
  private validateConfig;
@@ -1500,7 +1504,7 @@ declare class Utils {
1500
1504
  code: number;
1501
1505
  message: string;
1502
1506
  }>;
1503
- getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number): Promise<{
1507
+ getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number, userAddress?: string): Promise<{
1504
1508
  code: 0;
1505
1509
  data: {
1506
1510
  takerFeeRate: string;
@@ -1531,7 +1535,6 @@ declare class Utils {
1531
1535
  }[]>;
1532
1536
  transferKlineResolutionToInterval(resolution: KlineResolution): HttpKlineIntervalEnum;
1533
1537
  getErrorMessage(error: any, fallbackErrorMessage?: string): Promise<any>;
1534
- checkSeamlessGas(userAddress: string, chainId: number): Promise<boolean>;
1535
1538
  getLiquidityInfo({ chainId, poolId, marketPrice, }: {
1536
1539
  chainId: number;
1537
1540
  poolId: string;
@@ -1888,13 +1891,6 @@ declare class Api extends Request {
1888
1891
  getHistoryOrders({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<HistoryOrderItem[]>>;
1889
1892
  getPositionHistory({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<PositionHistoryItem[]>>;
1890
1893
  getMarketList(): Promise<ApiResponse<MarketInfo[]>>;
1891
- getAccountVipInfo({ address, accessToken, chainId, deadline, nonce, }: {
1892
- address: string;
1893
- accessToken: string;
1894
- chainId: number;
1895
- deadline: number;
1896
- nonce: string;
1897
- }): Promise<ApiResponse<any>>;
1898
1894
  /**
1899
1895
  * appeal module start ------>
1900
1896
  */
@@ -2013,15 +2009,15 @@ declare class Account {
2013
2009
  code: number;
2014
2010
  data: TradeFlowItem[];
2015
2011
  }>;
2016
- getWalletQuoteTokenBalance(chainId: number, address?: string): Promise<{
2012
+ getWalletQuoteTokenBalance({ chainId, address, tokenAddress }: {
2013
+ chainId: number;
2014
+ address?: string;
2015
+ tokenAddress: string;
2016
+ }): Promise<{
2017
2017
  code: number;
2018
2018
  data: any;
2019
2019
  }>;
2020
2020
  updateAndWithdraw(receiver: string, poolId: string, isQuoteToken: boolean, amount: string, chainId: number): Promise<{
2021
- code: number;
2022
- message: string;
2023
- data: ApiResponse<any>;
2024
- } | {
2025
2021
  code: number;
2026
2022
  data: viem.TransactionReceipt;
2027
2023
  message?: undefined;
@@ -2035,10 +2031,6 @@ declare class Account {
2035
2031
  tokenAddress: string;
2036
2032
  chainId: number;
2037
2033
  }): Promise<{
2038
- code: number;
2039
- message: string;
2040
- data: ApiResponse<any>;
2041
- } | {
2042
2034
  code: number;
2043
2035
  data: viem.TransactionReceipt;
2044
2036
  message?: undefined;
@@ -2076,15 +2068,6 @@ declare class Account {
2076
2068
  message: string;
2077
2069
  data?: undefined;
2078
2070
  }>;
2079
- getAccountVipInfoByBackend(address: string, chainId: number, deadline: number, nonce: string): Promise<{
2080
- code: number;
2081
- data: any;
2082
- message?: undefined;
2083
- } | {
2084
- code: number;
2085
- message: string;
2086
- data?: undefined;
2087
- }>;
2088
2071
  setUserFeeData(address: string, chainId: number, deadline: number, params: {
2089
2072
  tier: number;
2090
2073
  referrer: string;
@@ -2092,10 +2075,6 @@ declare class Account {
2092
2075
  referrerRebatePct: number;
2093
2076
  nonce: string;
2094
2077
  }, signature: string): Promise<{
2095
- code: number;
2096
- data: ApiResponse<any>;
2097
- message?: undefined;
2098
- } | {
2099
2078
  code: number;
2100
2079
  data: viem.TransactionReceipt;
2101
2080
  message?: undefined;
@@ -2113,9 +2092,9 @@ declare class Seamless {
2113
2092
  private account;
2114
2093
  private api;
2115
2094
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, account: Account, api: Api);
2116
- onCheckRelayer(account: string, relayer: string, chainId: number): Promise<any>;
2117
- getUSDPermitParams(deadline: number, chainId: number): Promise<{
2118
- token: `0x${string}`;
2095
+ onCheckRelayer(account: string, relayer: string, chainId: number, tokenAddress: string): Promise<any>;
2096
+ getUSDPermitParams(deadline: number, chainId: number, tokenAddress: string): Promise<{
2097
+ token: string;
2119
2098
  owner: `0x${string}`;
2120
2099
  spender: `0x${string}`;
2121
2100
  value: string;
@@ -2124,7 +2103,7 @@ declare class Seamless {
2124
2103
  r: `0x${string}`;
2125
2104
  s: `0x${string}`;
2126
2105
  }[]>;
2127
- forwarderTx({ from, to, value, gas, deadline, data, nonce, }: {
2106
+ forwarderTx({ from, to, value, gas, deadline, data, nonce, forwardFeeToken, }: {
2128
2107
  from: string;
2129
2108
  to: string;
2130
2109
  value: string;
@@ -2132,11 +2111,13 @@ declare class Seamless {
2132
2111
  deadline: number;
2133
2112
  data: string;
2134
2113
  nonce: string;
2114
+ forwardFeeToken: string;
2135
2115
  }, chainId: number, walletClient?: Awaited<ReturnType<typeof getWalletClient>>): Promise<ApiResponse<any>>;
2136
- authorizeSeamlessAccount({ approve, seamlessAddress, chainId }: {
2116
+ authorizeSeamlessAccount({ approve, seamlessAddress, chainId, forwardFeeToken }: {
2137
2117
  approve: boolean;
2138
2118
  seamlessAddress: string;
2139
2119
  chainId: number;
2120
+ forwardFeeToken: string;
2140
2121
  }): Promise<{
2141
2122
  code: number;
2142
2123
  data: {
@@ -2149,65 +2130,11 @@ declare class Seamless {
2149
2130
  data: null;
2150
2131
  message: string;
2151
2132
  }>;
2152
- unLockSeamlessWallet({ masterAddress, password, apiKey, chainId }: {
2153
- masterAddress: string;
2154
- password: string;
2155
- apiKey: string;
2156
- chainId: number;
2157
- }): Promise<{
2158
- code: number;
2159
- data: {
2160
- masterAddress: string;
2161
- seamlessAccount: `0x${string}`;
2162
- authorized: any;
2163
- };
2164
- }>;
2165
- exportSeamlessPrivateKey({ password, apiKey }: {
2166
- password: string;
2167
- apiKey: string;
2168
- }): Promise<{
2169
- code: number;
2170
- data: {
2171
- privateKey: string;
2172
- };
2173
- }>;
2174
- importSeamlessPrivateKey({ privateKey, password, chainId }: {
2175
- privateKey: string;
2176
- password: string;
2177
- chainId: number;
2178
- }): Promise<{
2133
+ getOriginSeamlessAccount(address: string, chainId: number): Promise<{
2179
2134
  code: number;
2180
2135
  data: {
2181
2136
  masterAddress: any;
2182
- seamlessAccount: `0x${string}`;
2183
- authorized: any;
2184
- apiKey: string;
2185
- };
2186
- }>;
2187
- startSeamlessMode({ open }: {
2188
- open: boolean;
2189
- }): Promise<{
2190
- code: number;
2191
- data: {
2192
- open: boolean;
2193
- };
2194
- }>;
2195
- createSeamless({ password, chainId }: {
2196
- password: string;
2197
- chainId: number;
2198
- }): Promise<{
2199
- code: number;
2200
- data: {
2201
- masterAddress: `0x${string}`;
2202
- seamlessAccount: `0x${string}`;
2203
- authorized: any;
2204
- apiKey: string;
2205
2137
  };
2206
- message?: undefined;
2207
- } | {
2208
- code: number;
2209
- message: string;
2210
- data?: undefined;
2211
2138
  }>;
2212
2139
  }
2213
2140
 
@@ -2240,10 +2167,6 @@ declare class Position {
2240
2167
  chainId: number;
2241
2168
  address: string;
2242
2169
  }): Promise<{
2243
- code: number;
2244
- message: string;
2245
- data: ApiResponse<any>;
2246
- } | {
2247
2170
  code: number;
2248
2171
  data: {
2249
2172
  hash: any;
@@ -2281,10 +2204,6 @@ declare class Order {
2281
2204
  private api;
2282
2205
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, seamless: Seamless, account: Account, api: Api);
2283
2206
  createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string): Promise<{
2284
- code: number;
2285
- message: string;
2286
- data: ApiResponse<any>;
2287
- } | {
2288
2207
  code: number;
2289
2208
  message: string;
2290
2209
  data: {
@@ -2303,17 +2222,6 @@ declare class Order {
2303
2222
  data?: undefined;
2304
2223
  }>;
2305
2224
  closeAllPositions(chainId: number, params: PlaceOrderParams[]): Promise<{
2306
- code: number;
2307
- message: string;
2308
- data: ApiResponse<any>;
2309
- transactionHash?: undefined;
2310
- blockNumber?: undefined;
2311
- gasUsed?: undefined;
2312
- status?: undefined;
2313
- confirmations?: undefined;
2314
- timestamp?: undefined;
2315
- receipt?: undefined;
2316
- } | {
2317
2225
  code: number;
2318
2226
  message: string;
2319
2227
  transactionHash: any;
@@ -2323,11 +2231,9 @@ declare class Order {
2323
2231
  confirmations: number;
2324
2232
  timestamp: number;
2325
2233
  receipt: viem.TransactionReceipt;
2326
- data?: undefined;
2327
2234
  } | {
2328
2235
  code: number;
2329
2236
  message: any;
2330
- data?: undefined;
2331
2237
  transactionHash?: undefined;
2332
2238
  blockNumber?: undefined;
2333
2239
  gasUsed?: undefined;
@@ -2337,10 +2243,6 @@ declare class Order {
2337
2243
  receipt?: undefined;
2338
2244
  }>;
2339
2245
  createDecreaseOrder(params: PlaceOrderParams): Promise<{
2340
- code: number;
2341
- message: string;
2342
- data: ApiResponse<any>;
2343
- } | {
2344
2246
  code: number;
2345
2247
  message: string;
2346
2248
  data: {
@@ -2359,10 +2261,6 @@ declare class Order {
2359
2261
  data?: undefined;
2360
2262
  }>;
2361
2263
  createPositionTpSlOrder(params: PositionTpSlOrderParams): Promise<{
2362
- code: number;
2363
- message: string;
2364
- data: ApiResponse<any>;
2365
- } | {
2366
2264
  code: number;
2367
2265
  message: string;
2368
2266
  data: {
@@ -2381,37 +2279,18 @@ declare class Order {
2381
2279
  data?: undefined;
2382
2280
  }>;
2383
2281
  cancelAllOrders(orderIds: string[], chainId: ChainId): Promise<{
2384
- code: number;
2385
- message: string;
2386
- data: ApiResponse<any>;
2387
- } | {
2388
2282
  code: number;
2389
2283
  message: any;
2390
- data?: undefined;
2391
2284
  }>;
2392
2285
  cancelOrder(orderId: string, chainId: ChainId): Promise<{
2393
- code: number;
2394
- message: string;
2395
- data: ApiResponse<any>;
2396
- } | {
2397
2286
  code: number;
2398
2287
  message: any;
2399
- data?: undefined;
2400
2288
  }>;
2401
2289
  cancelOrders(orderIds: string[], chainId: ChainId): Promise<{
2402
- code: number;
2403
- message: string;
2404
- data: ApiResponse<any>;
2405
- } | {
2406
2290
  code: number;
2407
2291
  message: any;
2408
- data?: undefined;
2409
2292
  }>;
2410
2293
  updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number, address: string, marketId: string, isTpSlOrder?: boolean): Promise<{
2411
- code: number;
2412
- message: string;
2413
- data: ApiResponse<any>;
2414
- } | {
2415
2294
  code: number;
2416
2295
  data: viem.TransactionReceipt;
2417
2296
  message: string;
@@ -2608,4 +2487,4 @@ declare function normalizeSigner(signerLike: SignerLike): ISigner;
2608
2487
 
2609
2488
  declare const SDK_VERSION: string;
2610
2489
 
2611
- export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type AddTpSLParams, type Address, type ApiResponse, AppealCaseTypeEnum, AppealClaimStatusEnum, type AppealDetail, type AppealListItem, AppealNodeStateEnum, type AppealNodeVoteItem, type AppealNodeVoteListItem, AppealNodeVotedStateEnum, type AppealReconsiderationDetail, type AppealReconsiderationItem, type AppealReconsiderationListItem, AppealReconsiderationType, type AppealReimbursementItem, type AppealReimbursementParams, AppealStage, AppealStatus, AppealType, type AppealUploadEvidenceParams, type AppealVoteItem, type BaseDetailResponse, type BaseResponse, COMMON_LP_AMOUNT_DECIMALS, COMMON_PRICE_DECIMALS, type CancelTpSLParams, ChainId, type ChainIdRequest, CloseTypeEnum, type CreatePoolRequest, type DashboardType, Direction, DirectionEnum, ErrorCode, ExecTypeEnum, type FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, type FavoritesType, type FetchForwarderGetParams, type FetchForwarderGetResponse, type FetchForwarderGetResponseData, ForwarderGetStatus, type ForwarderTxParams, type GetAppealDetailParams, type GetAppealListParams, type GetAppealNodeVoteListParams, type GetAppealReconsiderationDetailParams, type GetAppealReconsiderationListParams, type GetAppealVoteNodeDetailParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetIsVoteNodeParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type GetWarmholeSignParams, type GetWarmholeSignResponse, type GuardianSignatureItem, type HistoryOrderItem, type HttpEnvParams, HttpKlineIntervalEnum, type ISigner, IsVoteNodeEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MxSDK, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, NodeTypeEnum, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, type OrderItem, type OrderResponse, 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 PostVoteResponse, type PostVoteSignatureParams, type PriceResponse, type PriceType, type RemoveFavoriteParams, SDK_VERSION, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type SignerLike, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, type TpSLParams, type TpSl, TradeFlowAccountTypeEnum, type TradeFlowItem, TradeFlowTypeEnum, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, VoteTypeEnum, approve, index$2 as base, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, fromViemWalletClient, getAllowanceApproved, getBalanceOf, getBaseDetail, getBaseUrlByEnv, getMarketDetail, getMarketList, getOraclePrice, getPoolDetail, getPoolList, getPoolOpenOrders, getPriceData, getPricesData, getPublicClient, getTickerData, getTokenInfo, getWalletClient, getWalletProvider, index as market, normalizeSigner, pool, index$1 as quote, setConfigManagerForViem };
2490
+ export { type AccessTokenRequest, type AccessTokenResponse$1 as AccessTokenResponse, type AccessTokenType, type AddFavoriteParams, type AddTpSLParams, type Address, type ApiResponse, AppealCaseTypeEnum, AppealClaimStatusEnum, type AppealDetail, type AppealListItem, AppealNodeStateEnum, type AppealNodeVoteItem, type AppealNodeVoteListItem, AppealNodeVotedStateEnum, type AppealReconsiderationDetail, type AppealReconsiderationItem, type AppealReconsiderationListItem, AppealReconsiderationType, type AppealReimbursementItem, type AppealReimbursementParams, AppealStage, AppealStatus, AppealType, type AppealUploadEvidenceParams, type AppealVoteItem, type BaseDetailResponse, type BaseResponse, COMMON_LP_AMOUNT_DECIMALS, COMMON_PRICE_DECIMALS, type CancelTpSLParams, ChainId, type ChainIdRequest, CloseTypeEnum, type CreatePoolRequest, type DashboardType, Direction, DirectionEnum, ErrorCode, ExecTypeEnum, type FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, type FavoritesType, type FetchForwarderGetParams, type FetchForwarderGetResponse, type FetchForwarderGetResponseData, ForwarderGetStatus, type ForwarderTxParams, type GetAppealDetailParams, type GetAppealListParams, type GetAppealNodeVoteListParams, type GetAppealReconsiderationDetailParams, type GetAppealReconsiderationListParams, type GetAppealVoteNodeDetailParams, type GetBaseDetailParams, type GetHistoryOrdersParams, type GetIsVoteNodeParams, type GetKlineDataParams, type GetMarketDetailParams, type GetPoolLevelConfigParams, type GetTickerDataParams, type GetWarmholeSignParams, type GetWarmholeSignResponse, type GuardianSignatureItem, type HistoryOrderItem, type HttpEnvParams, HttpKlineIntervalEnum, type ISigner, IsVoteNodeEnum, type KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, type LogLevel, type LogSink, Logger, type LoggerOptions, MarketCapType, type MarketDetailResponse, type MarketInfo, type MarketPool, type MarketPoolResponse, MarketPoolState, MarketType, MxSDK, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, type NetWorkFee, NodeTypeEnum, type ObjectType, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OperationType, OracleType, type Order$1 as Order, type OrderItem, type OrderResponse, 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 PostVoteResponse, type PostVoteSignatureParams, type PriceResponse, type PriceType, type RemoveFavoriteParams, SDK_VERSION, type SearchMarketParams, type SearchResultContractItem, type SearchResultCookItem, type SearchResultEarnItem, type SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type SignerLike, type StatDashBoardResponse, type TickerDataItem, type TickersDataResponse, TimeInForce, type TpSLParams, type TpSl, TradeFlowAccountTypeEnum, type TradeFlowItem, TradeFlowTypeEnum, type TradingResult, TriggerType, TriggerTypeEnum, type UpdateOrderTpSlParams, VoteTypeEnum, approve, index$2 as base, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, fromViemWalletClient, getAllowanceApproved, getBalanceOf, getBaseDetail, getBaseUrlByEnv, getMarketDetail, getMarketList, getOraclePrice, getPoolDetail, getPoolList, getPoolOpenOrders, getPriceData, getPricesData, getPublicClient, getSdkLogSink, getTickerData, getTokenInfo, getWalletClient, getWalletProvider, index as market, normalizeSigner, pool, index$1 as quote, sdkError, sdkLog, sdkWarn, setConfigManagerForViem, setSdkLogSink };