@myx-trade/sdk 1.0.4-beta.1 → 1.0.4-beta.3
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 +10 -155
- package/dist/index.d.ts +10 -155
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
|
-
import { zeroAddress, Address as Address$2,
|
|
3
|
-
export {
|
|
2
|
+
import { zeroAddress, Address as Address$2, WalletClient, PublicClient, Abi } from 'viem';
|
|
3
|
+
export { parseUnits } from 'viem';
|
|
4
4
|
import { Options, Event } from 'reconnecting-websocket';
|
|
5
5
|
import { WretchOptions } from 'wretch/types';
|
|
6
6
|
|
|
@@ -1059,6 +1059,8 @@ declare const getTokenInfo: (chainId: number, tokenAddress: string, account?: st
|
|
|
1059
1059
|
totalSupply: number;
|
|
1060
1060
|
}>;
|
|
1061
1061
|
|
|
1062
|
+
declare const formatUnits: (value: undefined | null | bigint, decimals: number) => string | null | undefined;
|
|
1063
|
+
|
|
1062
1064
|
/**
|
|
1063
1065
|
* MyxLogger
|
|
1064
1066
|
* Uses optional sink (no global console by default) so LavaMoat allowlist can omit "console".
|
|
@@ -1314,17 +1316,11 @@ interface MyxClientConfig {
|
|
|
1314
1316
|
chainId: number;
|
|
1315
1317
|
/** ethers v5/v6 Signer, viem WalletClient, or ISigner. Use walletClient when app uses viem to avoid ethers in bundle. */
|
|
1316
1318
|
signer?: SignerLike;
|
|
1317
|
-
seamlessAccount?: {
|
|
1318
|
-
masterAddress: string;
|
|
1319
|
-
wallet: Account$1 | null;
|
|
1320
|
-
authorized: boolean;
|
|
1321
|
-
};
|
|
1322
1319
|
walletClient?: WalletClient;
|
|
1323
1320
|
brokerAddress: string;
|
|
1324
1321
|
isTestnet?: boolean;
|
|
1325
1322
|
isBetaMode?: boolean;
|
|
1326
1323
|
poolingInterval?: number;
|
|
1327
|
-
seamlessMode?: boolean;
|
|
1328
1324
|
socketConfig?: Partial<Omit<WebSocketConfig, "url">>;
|
|
1329
1325
|
logLevel?: LogLevel;
|
|
1330
1326
|
getAccessToken?: (() => Promise<AccessTokenResponse | undefined>) | (() => AccessTokenResponse | undefined);
|
|
@@ -1343,12 +1339,6 @@ declare class ConfigManager {
|
|
|
1343
1339
|
getSignerAddress(chainId: number): Promise<string>;
|
|
1344
1340
|
/** Returns viem WalletClient for the chain (for readContract/writeContract). Use when SDK uses viem. */
|
|
1345
1341
|
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
1342
|
updateClientChainId(chainId: number, brokerAddress: string): void;
|
|
1353
1343
|
auth(params: Pick<MyxClientConfig, "signer" | "walletClient" | "getAccessToken">): void;
|
|
1354
1344
|
private validateConfig;
|
|
@@ -1500,7 +1490,7 @@ declare class Utils {
|
|
|
1500
1490
|
code: number;
|
|
1501
1491
|
message: string;
|
|
1502
1492
|
}>;
|
|
1503
|
-
getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number): Promise<{
|
|
1493
|
+
getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number, userAddress?: string): Promise<{
|
|
1504
1494
|
code: 0;
|
|
1505
1495
|
data: {
|
|
1506
1496
|
takerFeeRate: string;
|
|
@@ -1531,7 +1521,6 @@ declare class Utils {
|
|
|
1531
1521
|
}[]>;
|
|
1532
1522
|
transferKlineResolutionToInterval(resolution: KlineResolution): HttpKlineIntervalEnum;
|
|
1533
1523
|
getErrorMessage(error: any, fallbackErrorMessage?: string): Promise<any>;
|
|
1534
|
-
checkSeamlessGas(userAddress: string, chainId: number): Promise<boolean>;
|
|
1535
1524
|
getLiquidityInfo({ chainId, poolId, marketPrice, }: {
|
|
1536
1525
|
chainId: number;
|
|
1537
1526
|
poolId: string;
|
|
@@ -1888,13 +1877,6 @@ declare class Api extends Request {
|
|
|
1888
1877
|
getHistoryOrders({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<HistoryOrderItem[]>>;
|
|
1889
1878
|
getPositionHistory({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<PositionHistoryItem[]>>;
|
|
1890
1879
|
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
1880
|
/**
|
|
1899
1881
|
* appeal module start ------>
|
|
1900
1882
|
*/
|
|
@@ -2018,10 +2000,6 @@ declare class Account {
|
|
|
2018
2000
|
data: any;
|
|
2019
2001
|
}>;
|
|
2020
2002
|
updateAndWithdraw(receiver: string, poolId: string, isQuoteToken: boolean, amount: string, chainId: number): Promise<{
|
|
2021
|
-
code: number;
|
|
2022
|
-
message: string;
|
|
2023
|
-
data: ApiResponse<any>;
|
|
2024
|
-
} | {
|
|
2025
2003
|
code: number;
|
|
2026
2004
|
data: viem.TransactionReceipt;
|
|
2027
2005
|
message?: undefined;
|
|
@@ -2035,10 +2013,6 @@ declare class Account {
|
|
|
2035
2013
|
tokenAddress: string;
|
|
2036
2014
|
chainId: number;
|
|
2037
2015
|
}): Promise<{
|
|
2038
|
-
code: number;
|
|
2039
|
-
message: string;
|
|
2040
|
-
data: ApiResponse<any>;
|
|
2041
|
-
} | {
|
|
2042
2016
|
code: number;
|
|
2043
2017
|
data: viem.TransactionReceipt;
|
|
2044
2018
|
message?: undefined;
|
|
@@ -2076,15 +2050,6 @@ declare class Account {
|
|
|
2076
2050
|
message: string;
|
|
2077
2051
|
data?: undefined;
|
|
2078
2052
|
}>;
|
|
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
2053
|
setUserFeeData(address: string, chainId: number, deadline: number, params: {
|
|
2089
2054
|
tier: number;
|
|
2090
2055
|
referrer: string;
|
|
@@ -2092,10 +2057,6 @@ declare class Account {
|
|
|
2092
2057
|
referrerRebatePct: number;
|
|
2093
2058
|
nonce: string;
|
|
2094
2059
|
}, signature: string): Promise<{
|
|
2095
|
-
code: number;
|
|
2096
|
-
data: ApiResponse<any>;
|
|
2097
|
-
message?: undefined;
|
|
2098
|
-
} | {
|
|
2099
2060
|
code: number;
|
|
2100
2061
|
data: viem.TransactionReceipt;
|
|
2101
2062
|
message?: undefined;
|
|
@@ -2124,7 +2085,7 @@ declare class Seamless {
|
|
|
2124
2085
|
r: `0x${string}`;
|
|
2125
2086
|
s: `0x${string}`;
|
|
2126
2087
|
}[]>;
|
|
2127
|
-
forwarderTx({ from, to, value, gas, deadline, data, nonce, }: {
|
|
2088
|
+
forwarderTx({ from, to, value, gas, deadline, data, nonce, forwardFeeToken, }: {
|
|
2128
2089
|
from: string;
|
|
2129
2090
|
to: string;
|
|
2130
2091
|
value: string;
|
|
@@ -2132,11 +2093,13 @@ declare class Seamless {
|
|
|
2132
2093
|
deadline: number;
|
|
2133
2094
|
data: string;
|
|
2134
2095
|
nonce: string;
|
|
2096
|
+
forwardFeeToken: string;
|
|
2135
2097
|
}, chainId: number, walletClient?: Awaited<ReturnType<typeof getWalletClient>>): Promise<ApiResponse<any>>;
|
|
2136
|
-
authorizeSeamlessAccount({ approve, seamlessAddress, chainId }: {
|
|
2098
|
+
authorizeSeamlessAccount({ approve, seamlessAddress, chainId, forwardFeeToken }: {
|
|
2137
2099
|
approve: boolean;
|
|
2138
2100
|
seamlessAddress: string;
|
|
2139
2101
|
chainId: number;
|
|
2102
|
+
forwardFeeToken: string;
|
|
2140
2103
|
}): Promise<{
|
|
2141
2104
|
code: number;
|
|
2142
2105
|
data: {
|
|
@@ -2149,66 +2112,6 @@ declare class Seamless {
|
|
|
2149
2112
|
data: null;
|
|
2150
2113
|
message: string;
|
|
2151
2114
|
}>;
|
|
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<{
|
|
2179
|
-
code: number;
|
|
2180
|
-
data: {
|
|
2181
|
-
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
|
-
};
|
|
2206
|
-
message?: undefined;
|
|
2207
|
-
} | {
|
|
2208
|
-
code: number;
|
|
2209
|
-
message: string;
|
|
2210
|
-
data?: undefined;
|
|
2211
|
-
}>;
|
|
2212
2115
|
}
|
|
2213
2116
|
|
|
2214
2117
|
declare class Position {
|
|
@@ -2240,10 +2143,6 @@ declare class Position {
|
|
|
2240
2143
|
chainId: number;
|
|
2241
2144
|
address: string;
|
|
2242
2145
|
}): Promise<{
|
|
2243
|
-
code: number;
|
|
2244
|
-
message: string;
|
|
2245
|
-
data: ApiResponse<any>;
|
|
2246
|
-
} | {
|
|
2247
2146
|
code: number;
|
|
2248
2147
|
data: {
|
|
2249
2148
|
hash: any;
|
|
@@ -2281,10 +2180,6 @@ declare class Order {
|
|
|
2281
2180
|
private api;
|
|
2282
2181
|
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, seamless: Seamless, account: Account, api: Api);
|
|
2283
2182
|
createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string): Promise<{
|
|
2284
|
-
code: number;
|
|
2285
|
-
message: string;
|
|
2286
|
-
data: ApiResponse<any>;
|
|
2287
|
-
} | {
|
|
2288
2183
|
code: number;
|
|
2289
2184
|
message: string;
|
|
2290
2185
|
data: {
|
|
@@ -2303,17 +2198,6 @@ declare class Order {
|
|
|
2303
2198
|
data?: undefined;
|
|
2304
2199
|
}>;
|
|
2305
2200
|
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
2201
|
code: number;
|
|
2318
2202
|
message: string;
|
|
2319
2203
|
transactionHash: any;
|
|
@@ -2323,11 +2207,9 @@ declare class Order {
|
|
|
2323
2207
|
confirmations: number;
|
|
2324
2208
|
timestamp: number;
|
|
2325
2209
|
receipt: viem.TransactionReceipt;
|
|
2326
|
-
data?: undefined;
|
|
2327
2210
|
} | {
|
|
2328
2211
|
code: number;
|
|
2329
2212
|
message: any;
|
|
2330
|
-
data?: undefined;
|
|
2331
2213
|
transactionHash?: undefined;
|
|
2332
2214
|
blockNumber?: undefined;
|
|
2333
2215
|
gasUsed?: undefined;
|
|
@@ -2337,10 +2219,6 @@ declare class Order {
|
|
|
2337
2219
|
receipt?: undefined;
|
|
2338
2220
|
}>;
|
|
2339
2221
|
createDecreaseOrder(params: PlaceOrderParams): Promise<{
|
|
2340
|
-
code: number;
|
|
2341
|
-
message: string;
|
|
2342
|
-
data: ApiResponse<any>;
|
|
2343
|
-
} | {
|
|
2344
2222
|
code: number;
|
|
2345
2223
|
message: string;
|
|
2346
2224
|
data: {
|
|
@@ -2359,10 +2237,6 @@ declare class Order {
|
|
|
2359
2237
|
data?: undefined;
|
|
2360
2238
|
}>;
|
|
2361
2239
|
createPositionTpSlOrder(params: PositionTpSlOrderParams): Promise<{
|
|
2362
|
-
code: number;
|
|
2363
|
-
message: string;
|
|
2364
|
-
data: ApiResponse<any>;
|
|
2365
|
-
} | {
|
|
2366
2240
|
code: number;
|
|
2367
2241
|
message: string;
|
|
2368
2242
|
data: {
|
|
@@ -2381,37 +2255,18 @@ declare class Order {
|
|
|
2381
2255
|
data?: undefined;
|
|
2382
2256
|
}>;
|
|
2383
2257
|
cancelAllOrders(orderIds: string[], chainId: ChainId): Promise<{
|
|
2384
|
-
code: number;
|
|
2385
|
-
message: string;
|
|
2386
|
-
data: ApiResponse<any>;
|
|
2387
|
-
} | {
|
|
2388
2258
|
code: number;
|
|
2389
2259
|
message: any;
|
|
2390
|
-
data?: undefined;
|
|
2391
2260
|
}>;
|
|
2392
2261
|
cancelOrder(orderId: string, chainId: ChainId): Promise<{
|
|
2393
|
-
code: number;
|
|
2394
|
-
message: string;
|
|
2395
|
-
data: ApiResponse<any>;
|
|
2396
|
-
} | {
|
|
2397
2262
|
code: number;
|
|
2398
2263
|
message: any;
|
|
2399
|
-
data?: undefined;
|
|
2400
2264
|
}>;
|
|
2401
2265
|
cancelOrders(orderIds: string[], chainId: ChainId): Promise<{
|
|
2402
|
-
code: number;
|
|
2403
|
-
message: string;
|
|
2404
|
-
data: ApiResponse<any>;
|
|
2405
|
-
} | {
|
|
2406
2266
|
code: number;
|
|
2407
2267
|
message: any;
|
|
2408
|
-
data?: undefined;
|
|
2409
2268
|
}>;
|
|
2410
2269
|
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
2270
|
code: number;
|
|
2416
2271
|
data: viem.TransactionReceipt;
|
|
2417
2272
|
message: string;
|
|
@@ -2608,4 +2463,4 @@ declare function normalizeSigner(signerLike: SignerLike): ISigner;
|
|
|
2608
2463
|
|
|
2609
2464
|
declare const SDK_VERSION: string;
|
|
2610
2465
|
|
|
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 };
|
|
2466
|
+
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, formatUnits, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as viem from 'viem';
|
|
2
|
-
import { zeroAddress, Address as Address$2,
|
|
3
|
-
export {
|
|
2
|
+
import { zeroAddress, Address as Address$2, WalletClient, PublicClient, Abi } from 'viem';
|
|
3
|
+
export { parseUnits } from 'viem';
|
|
4
4
|
import { Options, Event } from 'reconnecting-websocket';
|
|
5
5
|
import { WretchOptions } from 'wretch/types';
|
|
6
6
|
|
|
@@ -1059,6 +1059,8 @@ declare const getTokenInfo: (chainId: number, tokenAddress: string, account?: st
|
|
|
1059
1059
|
totalSupply: number;
|
|
1060
1060
|
}>;
|
|
1061
1061
|
|
|
1062
|
+
declare const formatUnits: (value: undefined | null | bigint, decimals: number) => string | null | undefined;
|
|
1063
|
+
|
|
1062
1064
|
/**
|
|
1063
1065
|
* MyxLogger
|
|
1064
1066
|
* Uses optional sink (no global console by default) so LavaMoat allowlist can omit "console".
|
|
@@ -1314,17 +1316,11 @@ interface MyxClientConfig {
|
|
|
1314
1316
|
chainId: number;
|
|
1315
1317
|
/** ethers v5/v6 Signer, viem WalletClient, or ISigner. Use walletClient when app uses viem to avoid ethers in bundle. */
|
|
1316
1318
|
signer?: SignerLike;
|
|
1317
|
-
seamlessAccount?: {
|
|
1318
|
-
masterAddress: string;
|
|
1319
|
-
wallet: Account$1 | null;
|
|
1320
|
-
authorized: boolean;
|
|
1321
|
-
};
|
|
1322
1319
|
walletClient?: WalletClient;
|
|
1323
1320
|
brokerAddress: string;
|
|
1324
1321
|
isTestnet?: boolean;
|
|
1325
1322
|
isBetaMode?: boolean;
|
|
1326
1323
|
poolingInterval?: number;
|
|
1327
|
-
seamlessMode?: boolean;
|
|
1328
1324
|
socketConfig?: Partial<Omit<WebSocketConfig, "url">>;
|
|
1329
1325
|
logLevel?: LogLevel;
|
|
1330
1326
|
getAccessToken?: (() => Promise<AccessTokenResponse | undefined>) | (() => AccessTokenResponse | undefined);
|
|
@@ -1343,12 +1339,6 @@ declare class ConfigManager {
|
|
|
1343
1339
|
getSignerAddress(chainId: number): Promise<string>;
|
|
1344
1340
|
/** Returns viem WalletClient for the chain (for readContract/writeContract). Use when SDK uses viem. */
|
|
1345
1341
|
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
1342
|
updateClientChainId(chainId: number, brokerAddress: string): void;
|
|
1353
1343
|
auth(params: Pick<MyxClientConfig, "signer" | "walletClient" | "getAccessToken">): void;
|
|
1354
1344
|
private validateConfig;
|
|
@@ -1500,7 +1490,7 @@ declare class Utils {
|
|
|
1500
1490
|
code: number;
|
|
1501
1491
|
message: string;
|
|
1502
1492
|
}>;
|
|
1503
|
-
getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number): Promise<{
|
|
1493
|
+
getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number, userAddress?: string): Promise<{
|
|
1504
1494
|
code: 0;
|
|
1505
1495
|
data: {
|
|
1506
1496
|
takerFeeRate: string;
|
|
@@ -1531,7 +1521,6 @@ declare class Utils {
|
|
|
1531
1521
|
}[]>;
|
|
1532
1522
|
transferKlineResolutionToInterval(resolution: KlineResolution): HttpKlineIntervalEnum;
|
|
1533
1523
|
getErrorMessage(error: any, fallbackErrorMessage?: string): Promise<any>;
|
|
1534
|
-
checkSeamlessGas(userAddress: string, chainId: number): Promise<boolean>;
|
|
1535
1524
|
getLiquidityInfo({ chainId, poolId, marketPrice, }: {
|
|
1536
1525
|
chainId: number;
|
|
1537
1526
|
poolId: string;
|
|
@@ -1888,13 +1877,6 @@ declare class Api extends Request {
|
|
|
1888
1877
|
getHistoryOrders({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<HistoryOrderItem[]>>;
|
|
1889
1878
|
getPositionHistory({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<PositionHistoryItem[]>>;
|
|
1890
1879
|
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
1880
|
/**
|
|
1899
1881
|
* appeal module start ------>
|
|
1900
1882
|
*/
|
|
@@ -2018,10 +2000,6 @@ declare class Account {
|
|
|
2018
2000
|
data: any;
|
|
2019
2001
|
}>;
|
|
2020
2002
|
updateAndWithdraw(receiver: string, poolId: string, isQuoteToken: boolean, amount: string, chainId: number): Promise<{
|
|
2021
|
-
code: number;
|
|
2022
|
-
message: string;
|
|
2023
|
-
data: ApiResponse<any>;
|
|
2024
|
-
} | {
|
|
2025
2003
|
code: number;
|
|
2026
2004
|
data: viem.TransactionReceipt;
|
|
2027
2005
|
message?: undefined;
|
|
@@ -2035,10 +2013,6 @@ declare class Account {
|
|
|
2035
2013
|
tokenAddress: string;
|
|
2036
2014
|
chainId: number;
|
|
2037
2015
|
}): Promise<{
|
|
2038
|
-
code: number;
|
|
2039
|
-
message: string;
|
|
2040
|
-
data: ApiResponse<any>;
|
|
2041
|
-
} | {
|
|
2042
2016
|
code: number;
|
|
2043
2017
|
data: viem.TransactionReceipt;
|
|
2044
2018
|
message?: undefined;
|
|
@@ -2076,15 +2050,6 @@ declare class Account {
|
|
|
2076
2050
|
message: string;
|
|
2077
2051
|
data?: undefined;
|
|
2078
2052
|
}>;
|
|
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
2053
|
setUserFeeData(address: string, chainId: number, deadline: number, params: {
|
|
2089
2054
|
tier: number;
|
|
2090
2055
|
referrer: string;
|
|
@@ -2092,10 +2057,6 @@ declare class Account {
|
|
|
2092
2057
|
referrerRebatePct: number;
|
|
2093
2058
|
nonce: string;
|
|
2094
2059
|
}, signature: string): Promise<{
|
|
2095
|
-
code: number;
|
|
2096
|
-
data: ApiResponse<any>;
|
|
2097
|
-
message?: undefined;
|
|
2098
|
-
} | {
|
|
2099
2060
|
code: number;
|
|
2100
2061
|
data: viem.TransactionReceipt;
|
|
2101
2062
|
message?: undefined;
|
|
@@ -2124,7 +2085,7 @@ declare class Seamless {
|
|
|
2124
2085
|
r: `0x${string}`;
|
|
2125
2086
|
s: `0x${string}`;
|
|
2126
2087
|
}[]>;
|
|
2127
|
-
forwarderTx({ from, to, value, gas, deadline, data, nonce, }: {
|
|
2088
|
+
forwarderTx({ from, to, value, gas, deadline, data, nonce, forwardFeeToken, }: {
|
|
2128
2089
|
from: string;
|
|
2129
2090
|
to: string;
|
|
2130
2091
|
value: string;
|
|
@@ -2132,11 +2093,13 @@ declare class Seamless {
|
|
|
2132
2093
|
deadline: number;
|
|
2133
2094
|
data: string;
|
|
2134
2095
|
nonce: string;
|
|
2096
|
+
forwardFeeToken: string;
|
|
2135
2097
|
}, chainId: number, walletClient?: Awaited<ReturnType<typeof getWalletClient>>): Promise<ApiResponse<any>>;
|
|
2136
|
-
authorizeSeamlessAccount({ approve, seamlessAddress, chainId }: {
|
|
2098
|
+
authorizeSeamlessAccount({ approve, seamlessAddress, chainId, forwardFeeToken }: {
|
|
2137
2099
|
approve: boolean;
|
|
2138
2100
|
seamlessAddress: string;
|
|
2139
2101
|
chainId: number;
|
|
2102
|
+
forwardFeeToken: string;
|
|
2140
2103
|
}): Promise<{
|
|
2141
2104
|
code: number;
|
|
2142
2105
|
data: {
|
|
@@ -2149,66 +2112,6 @@ declare class Seamless {
|
|
|
2149
2112
|
data: null;
|
|
2150
2113
|
message: string;
|
|
2151
2114
|
}>;
|
|
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<{
|
|
2179
|
-
code: number;
|
|
2180
|
-
data: {
|
|
2181
|
-
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
|
-
};
|
|
2206
|
-
message?: undefined;
|
|
2207
|
-
} | {
|
|
2208
|
-
code: number;
|
|
2209
|
-
message: string;
|
|
2210
|
-
data?: undefined;
|
|
2211
|
-
}>;
|
|
2212
2115
|
}
|
|
2213
2116
|
|
|
2214
2117
|
declare class Position {
|
|
@@ -2240,10 +2143,6 @@ declare class Position {
|
|
|
2240
2143
|
chainId: number;
|
|
2241
2144
|
address: string;
|
|
2242
2145
|
}): Promise<{
|
|
2243
|
-
code: number;
|
|
2244
|
-
message: string;
|
|
2245
|
-
data: ApiResponse<any>;
|
|
2246
|
-
} | {
|
|
2247
2146
|
code: number;
|
|
2248
2147
|
data: {
|
|
2249
2148
|
hash: any;
|
|
@@ -2281,10 +2180,6 @@ declare class Order {
|
|
|
2281
2180
|
private api;
|
|
2282
2181
|
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, seamless: Seamless, account: Account, api: Api);
|
|
2283
2182
|
createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string): Promise<{
|
|
2284
|
-
code: number;
|
|
2285
|
-
message: string;
|
|
2286
|
-
data: ApiResponse<any>;
|
|
2287
|
-
} | {
|
|
2288
2183
|
code: number;
|
|
2289
2184
|
message: string;
|
|
2290
2185
|
data: {
|
|
@@ -2303,17 +2198,6 @@ declare class Order {
|
|
|
2303
2198
|
data?: undefined;
|
|
2304
2199
|
}>;
|
|
2305
2200
|
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
2201
|
code: number;
|
|
2318
2202
|
message: string;
|
|
2319
2203
|
transactionHash: any;
|
|
@@ -2323,11 +2207,9 @@ declare class Order {
|
|
|
2323
2207
|
confirmations: number;
|
|
2324
2208
|
timestamp: number;
|
|
2325
2209
|
receipt: viem.TransactionReceipt;
|
|
2326
|
-
data?: undefined;
|
|
2327
2210
|
} | {
|
|
2328
2211
|
code: number;
|
|
2329
2212
|
message: any;
|
|
2330
|
-
data?: undefined;
|
|
2331
2213
|
transactionHash?: undefined;
|
|
2332
2214
|
blockNumber?: undefined;
|
|
2333
2215
|
gasUsed?: undefined;
|
|
@@ -2337,10 +2219,6 @@ declare class Order {
|
|
|
2337
2219
|
receipt?: undefined;
|
|
2338
2220
|
}>;
|
|
2339
2221
|
createDecreaseOrder(params: PlaceOrderParams): Promise<{
|
|
2340
|
-
code: number;
|
|
2341
|
-
message: string;
|
|
2342
|
-
data: ApiResponse<any>;
|
|
2343
|
-
} | {
|
|
2344
2222
|
code: number;
|
|
2345
2223
|
message: string;
|
|
2346
2224
|
data: {
|
|
@@ -2359,10 +2237,6 @@ declare class Order {
|
|
|
2359
2237
|
data?: undefined;
|
|
2360
2238
|
}>;
|
|
2361
2239
|
createPositionTpSlOrder(params: PositionTpSlOrderParams): Promise<{
|
|
2362
|
-
code: number;
|
|
2363
|
-
message: string;
|
|
2364
|
-
data: ApiResponse<any>;
|
|
2365
|
-
} | {
|
|
2366
2240
|
code: number;
|
|
2367
2241
|
message: string;
|
|
2368
2242
|
data: {
|
|
@@ -2381,37 +2255,18 @@ declare class Order {
|
|
|
2381
2255
|
data?: undefined;
|
|
2382
2256
|
}>;
|
|
2383
2257
|
cancelAllOrders(orderIds: string[], chainId: ChainId): Promise<{
|
|
2384
|
-
code: number;
|
|
2385
|
-
message: string;
|
|
2386
|
-
data: ApiResponse<any>;
|
|
2387
|
-
} | {
|
|
2388
2258
|
code: number;
|
|
2389
2259
|
message: any;
|
|
2390
|
-
data?: undefined;
|
|
2391
2260
|
}>;
|
|
2392
2261
|
cancelOrder(orderId: string, chainId: ChainId): Promise<{
|
|
2393
|
-
code: number;
|
|
2394
|
-
message: string;
|
|
2395
|
-
data: ApiResponse<any>;
|
|
2396
|
-
} | {
|
|
2397
2262
|
code: number;
|
|
2398
2263
|
message: any;
|
|
2399
|
-
data?: undefined;
|
|
2400
2264
|
}>;
|
|
2401
2265
|
cancelOrders(orderIds: string[], chainId: ChainId): Promise<{
|
|
2402
|
-
code: number;
|
|
2403
|
-
message: string;
|
|
2404
|
-
data: ApiResponse<any>;
|
|
2405
|
-
} | {
|
|
2406
2266
|
code: number;
|
|
2407
2267
|
message: any;
|
|
2408
|
-
data?: undefined;
|
|
2409
2268
|
}>;
|
|
2410
2269
|
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
2270
|
code: number;
|
|
2416
2271
|
data: viem.TransactionReceipt;
|
|
2417
2272
|
message: string;
|
|
@@ -2608,4 +2463,4 @@ declare function normalizeSigner(signerLike: SignerLike): ISigner;
|
|
|
2608
2463
|
|
|
2609
2464
|
declare const SDK_VERSION: string;
|
|
2610
2465
|
|
|
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 };
|
|
2466
|
+
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, formatUnits, 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 };
|