@myx-trade/sdk 1.0.4-beta.2 → 1.0.4-beta.4
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 +8 -157
- package/dist/index.d.ts +8 -157
- 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 { parseUnits } from 'viem';
|
|
2
|
+
import { zeroAddress, Address as Address$2, WalletClient, PublicClient, Abi } from 'viem';
|
|
3
|
+
export { formatUnits, parseUnits } from 'viem';
|
|
4
4
|
import { Options, Event } from 'reconnecting-websocket';
|
|
5
5
|
import { WretchOptions } from 'wretch/types';
|
|
6
6
|
|
|
@@ -1059,8 +1059,6 @@ 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
|
-
|
|
1064
1062
|
/**
|
|
1065
1063
|
* MyxLogger
|
|
1066
1064
|
* Uses optional sink (no global console by default) so LavaMoat allowlist can omit "console".
|
|
@@ -1316,17 +1314,11 @@ interface MyxClientConfig {
|
|
|
1316
1314
|
chainId: number;
|
|
1317
1315
|
/** ethers v5/v6 Signer, viem WalletClient, or ISigner. Use walletClient when app uses viem to avoid ethers in bundle. */
|
|
1318
1316
|
signer?: SignerLike;
|
|
1319
|
-
seamlessAccount?: {
|
|
1320
|
-
masterAddress: string;
|
|
1321
|
-
wallet: Account$1 | null;
|
|
1322
|
-
authorized: boolean;
|
|
1323
|
-
};
|
|
1324
1317
|
walletClient?: WalletClient;
|
|
1325
1318
|
brokerAddress: string;
|
|
1326
1319
|
isTestnet?: boolean;
|
|
1327
1320
|
isBetaMode?: boolean;
|
|
1328
1321
|
poolingInterval?: number;
|
|
1329
|
-
seamlessMode?: boolean;
|
|
1330
1322
|
socketConfig?: Partial<Omit<WebSocketConfig, "url">>;
|
|
1331
1323
|
logLevel?: LogLevel;
|
|
1332
1324
|
getAccessToken?: (() => Promise<AccessTokenResponse | undefined>) | (() => AccessTokenResponse | undefined);
|
|
@@ -1345,12 +1337,6 @@ declare class ConfigManager {
|
|
|
1345
1337
|
getSignerAddress(chainId: number): Promise<string>;
|
|
1346
1338
|
/** Returns viem WalletClient for the chain (for readContract/writeContract). Use when SDK uses viem. */
|
|
1347
1339
|
getViemWalletClient(chainId: number): Promise<WalletClient>;
|
|
1348
|
-
startSeamlessMode(open: boolean): Promise<MyxClientConfig>;
|
|
1349
|
-
updateSeamlessWallet({ wallet, authorized, masterAddress, }: {
|
|
1350
|
-
wallet?: Account$1 | null;
|
|
1351
|
-
authorized?: boolean;
|
|
1352
|
-
masterAddress?: string;
|
|
1353
|
-
}): void;
|
|
1354
1340
|
updateClientChainId(chainId: number, brokerAddress: string): void;
|
|
1355
1341
|
auth(params: Pick<MyxClientConfig, "signer" | "walletClient" | "getAccessToken">): void;
|
|
1356
1342
|
private validateConfig;
|
|
@@ -1502,7 +1488,7 @@ declare class Utils {
|
|
|
1502
1488
|
code: number;
|
|
1503
1489
|
message: string;
|
|
1504
1490
|
}>;
|
|
1505
|
-
getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number): Promise<{
|
|
1491
|
+
getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number, userAddress?: string): Promise<{
|
|
1506
1492
|
code: 0;
|
|
1507
1493
|
data: {
|
|
1508
1494
|
takerFeeRate: string;
|
|
@@ -1533,7 +1519,6 @@ declare class Utils {
|
|
|
1533
1519
|
}[]>;
|
|
1534
1520
|
transferKlineResolutionToInterval(resolution: KlineResolution): HttpKlineIntervalEnum;
|
|
1535
1521
|
getErrorMessage(error: any, fallbackErrorMessage?: string): Promise<any>;
|
|
1536
|
-
checkSeamlessGas(userAddress: string, chainId: number): Promise<boolean>;
|
|
1537
1522
|
getLiquidityInfo({ chainId, poolId, marketPrice, }: {
|
|
1538
1523
|
chainId: number;
|
|
1539
1524
|
poolId: string;
|
|
@@ -1890,13 +1875,6 @@ declare class Api extends Request {
|
|
|
1890
1875
|
getHistoryOrders({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<HistoryOrderItem[]>>;
|
|
1891
1876
|
getPositionHistory({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<PositionHistoryItem[]>>;
|
|
1892
1877
|
getMarketList(): Promise<ApiResponse<MarketInfo[]>>;
|
|
1893
|
-
getAccountVipInfo({ address, accessToken, chainId, deadline, nonce, }: {
|
|
1894
|
-
address: string;
|
|
1895
|
-
accessToken: string;
|
|
1896
|
-
chainId: number;
|
|
1897
|
-
deadline: number;
|
|
1898
|
-
nonce: string;
|
|
1899
|
-
}): Promise<ApiResponse<any>>;
|
|
1900
1878
|
/**
|
|
1901
1879
|
* appeal module start ------>
|
|
1902
1880
|
*/
|
|
@@ -2020,10 +1998,6 @@ declare class Account {
|
|
|
2020
1998
|
data: any;
|
|
2021
1999
|
}>;
|
|
2022
2000
|
updateAndWithdraw(receiver: string, poolId: string, isQuoteToken: boolean, amount: string, chainId: number): Promise<{
|
|
2023
|
-
code: number;
|
|
2024
|
-
message: string;
|
|
2025
|
-
data: ApiResponse<any>;
|
|
2026
|
-
} | {
|
|
2027
2001
|
code: number;
|
|
2028
2002
|
data: viem.TransactionReceipt;
|
|
2029
2003
|
message?: undefined;
|
|
@@ -2037,10 +2011,6 @@ declare class Account {
|
|
|
2037
2011
|
tokenAddress: string;
|
|
2038
2012
|
chainId: number;
|
|
2039
2013
|
}): Promise<{
|
|
2040
|
-
code: number;
|
|
2041
|
-
message: string;
|
|
2042
|
-
data: ApiResponse<any>;
|
|
2043
|
-
} | {
|
|
2044
2014
|
code: number;
|
|
2045
2015
|
data: viem.TransactionReceipt;
|
|
2046
2016
|
message?: undefined;
|
|
@@ -2078,15 +2048,6 @@ declare class Account {
|
|
|
2078
2048
|
message: string;
|
|
2079
2049
|
data?: undefined;
|
|
2080
2050
|
}>;
|
|
2081
|
-
getAccountVipInfoByBackend(address: string, chainId: number, deadline: number, nonce: string): Promise<{
|
|
2082
|
-
code: number;
|
|
2083
|
-
data: any;
|
|
2084
|
-
message?: undefined;
|
|
2085
|
-
} | {
|
|
2086
|
-
code: number;
|
|
2087
|
-
message: string;
|
|
2088
|
-
data?: undefined;
|
|
2089
|
-
}>;
|
|
2090
2051
|
setUserFeeData(address: string, chainId: number, deadline: number, params: {
|
|
2091
2052
|
tier: number;
|
|
2092
2053
|
referrer: string;
|
|
@@ -2094,10 +2055,6 @@ declare class Account {
|
|
|
2094
2055
|
referrerRebatePct: number;
|
|
2095
2056
|
nonce: string;
|
|
2096
2057
|
}, signature: string): Promise<{
|
|
2097
|
-
code: number;
|
|
2098
|
-
data: ApiResponse<any>;
|
|
2099
|
-
message?: undefined;
|
|
2100
|
-
} | {
|
|
2101
2058
|
code: number;
|
|
2102
2059
|
data: viem.TransactionReceipt;
|
|
2103
2060
|
message?: undefined;
|
|
@@ -2126,7 +2083,7 @@ declare class Seamless {
|
|
|
2126
2083
|
r: `0x${string}`;
|
|
2127
2084
|
s: `0x${string}`;
|
|
2128
2085
|
}[]>;
|
|
2129
|
-
forwarderTx({ from, to, value, gas, deadline, data, nonce, }: {
|
|
2086
|
+
forwarderTx({ from, to, value, gas, deadline, data, nonce, forwardFeeToken, }: {
|
|
2130
2087
|
from: string;
|
|
2131
2088
|
to: string;
|
|
2132
2089
|
value: string;
|
|
@@ -2134,11 +2091,13 @@ declare class Seamless {
|
|
|
2134
2091
|
deadline: number;
|
|
2135
2092
|
data: string;
|
|
2136
2093
|
nonce: string;
|
|
2094
|
+
forwardFeeToken: string;
|
|
2137
2095
|
}, chainId: number, walletClient?: Awaited<ReturnType<typeof getWalletClient>>): Promise<ApiResponse<any>>;
|
|
2138
|
-
authorizeSeamlessAccount({ approve, seamlessAddress, chainId }: {
|
|
2096
|
+
authorizeSeamlessAccount({ approve, seamlessAddress, chainId, forwardFeeToken }: {
|
|
2139
2097
|
approve: boolean;
|
|
2140
2098
|
seamlessAddress: string;
|
|
2141
2099
|
chainId: number;
|
|
2100
|
+
forwardFeeToken: string;
|
|
2142
2101
|
}): Promise<{
|
|
2143
2102
|
code: number;
|
|
2144
2103
|
data: {
|
|
@@ -2151,66 +2110,6 @@ declare class Seamless {
|
|
|
2151
2110
|
data: null;
|
|
2152
2111
|
message: string;
|
|
2153
2112
|
}>;
|
|
2154
|
-
unLockSeamlessWallet({ masterAddress, password, apiKey, chainId }: {
|
|
2155
|
-
masterAddress: string;
|
|
2156
|
-
password: string;
|
|
2157
|
-
apiKey: string;
|
|
2158
|
-
chainId: number;
|
|
2159
|
-
}): Promise<{
|
|
2160
|
-
code: number;
|
|
2161
|
-
data: {
|
|
2162
|
-
masterAddress: string;
|
|
2163
|
-
seamlessAccount: `0x${string}`;
|
|
2164
|
-
authorized: any;
|
|
2165
|
-
};
|
|
2166
|
-
}>;
|
|
2167
|
-
exportSeamlessPrivateKey({ password, apiKey }: {
|
|
2168
|
-
password: string;
|
|
2169
|
-
apiKey: string;
|
|
2170
|
-
}): Promise<{
|
|
2171
|
-
code: number;
|
|
2172
|
-
data: {
|
|
2173
|
-
privateKey: string;
|
|
2174
|
-
};
|
|
2175
|
-
}>;
|
|
2176
|
-
importSeamlessPrivateKey({ privateKey, password, chainId }: {
|
|
2177
|
-
privateKey: string;
|
|
2178
|
-
password: string;
|
|
2179
|
-
chainId: number;
|
|
2180
|
-
}): Promise<{
|
|
2181
|
-
code: number;
|
|
2182
|
-
data: {
|
|
2183
|
-
masterAddress: any;
|
|
2184
|
-
seamlessAccount: `0x${string}`;
|
|
2185
|
-
authorized: any;
|
|
2186
|
-
apiKey: string;
|
|
2187
|
-
};
|
|
2188
|
-
}>;
|
|
2189
|
-
startSeamlessMode({ open }: {
|
|
2190
|
-
open: boolean;
|
|
2191
|
-
}): Promise<{
|
|
2192
|
-
code: number;
|
|
2193
|
-
data: {
|
|
2194
|
-
open: boolean;
|
|
2195
|
-
};
|
|
2196
|
-
}>;
|
|
2197
|
-
createSeamless({ password, chainId }: {
|
|
2198
|
-
password: string;
|
|
2199
|
-
chainId: number;
|
|
2200
|
-
}): Promise<{
|
|
2201
|
-
code: number;
|
|
2202
|
-
data: {
|
|
2203
|
-
masterAddress: `0x${string}`;
|
|
2204
|
-
seamlessAccount: `0x${string}`;
|
|
2205
|
-
authorized: any;
|
|
2206
|
-
apiKey: string;
|
|
2207
|
-
};
|
|
2208
|
-
message?: undefined;
|
|
2209
|
-
} | {
|
|
2210
|
-
code: number;
|
|
2211
|
-
message: string;
|
|
2212
|
-
data?: undefined;
|
|
2213
|
-
}>;
|
|
2214
2113
|
}
|
|
2215
2114
|
|
|
2216
2115
|
declare class Position {
|
|
@@ -2242,10 +2141,6 @@ declare class Position {
|
|
|
2242
2141
|
chainId: number;
|
|
2243
2142
|
address: string;
|
|
2244
2143
|
}): Promise<{
|
|
2245
|
-
code: number;
|
|
2246
|
-
message: string;
|
|
2247
|
-
data: ApiResponse<any>;
|
|
2248
|
-
} | {
|
|
2249
2144
|
code: number;
|
|
2250
2145
|
data: {
|
|
2251
2146
|
hash: any;
|
|
@@ -2283,10 +2178,6 @@ declare class Order {
|
|
|
2283
2178
|
private api;
|
|
2284
2179
|
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, seamless: Seamless, account: Account, api: Api);
|
|
2285
2180
|
createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string): Promise<{
|
|
2286
|
-
code: number;
|
|
2287
|
-
message: string;
|
|
2288
|
-
data: ApiResponse<any>;
|
|
2289
|
-
} | {
|
|
2290
2181
|
code: number;
|
|
2291
2182
|
message: string;
|
|
2292
2183
|
data: {
|
|
@@ -2305,17 +2196,6 @@ declare class Order {
|
|
|
2305
2196
|
data?: undefined;
|
|
2306
2197
|
}>;
|
|
2307
2198
|
closeAllPositions(chainId: number, params: PlaceOrderParams[]): Promise<{
|
|
2308
|
-
code: number;
|
|
2309
|
-
message: string;
|
|
2310
|
-
data: ApiResponse<any>;
|
|
2311
|
-
transactionHash?: undefined;
|
|
2312
|
-
blockNumber?: undefined;
|
|
2313
|
-
gasUsed?: undefined;
|
|
2314
|
-
status?: undefined;
|
|
2315
|
-
confirmations?: undefined;
|
|
2316
|
-
timestamp?: undefined;
|
|
2317
|
-
receipt?: undefined;
|
|
2318
|
-
} | {
|
|
2319
2199
|
code: number;
|
|
2320
2200
|
message: string;
|
|
2321
2201
|
transactionHash: any;
|
|
@@ -2325,11 +2205,9 @@ declare class Order {
|
|
|
2325
2205
|
confirmations: number;
|
|
2326
2206
|
timestamp: number;
|
|
2327
2207
|
receipt: viem.TransactionReceipt;
|
|
2328
|
-
data?: undefined;
|
|
2329
2208
|
} | {
|
|
2330
2209
|
code: number;
|
|
2331
2210
|
message: any;
|
|
2332
|
-
data?: undefined;
|
|
2333
2211
|
transactionHash?: undefined;
|
|
2334
2212
|
blockNumber?: undefined;
|
|
2335
2213
|
gasUsed?: undefined;
|
|
@@ -2339,10 +2217,6 @@ declare class Order {
|
|
|
2339
2217
|
receipt?: undefined;
|
|
2340
2218
|
}>;
|
|
2341
2219
|
createDecreaseOrder(params: PlaceOrderParams): Promise<{
|
|
2342
|
-
code: number;
|
|
2343
|
-
message: string;
|
|
2344
|
-
data: ApiResponse<any>;
|
|
2345
|
-
} | {
|
|
2346
2220
|
code: number;
|
|
2347
2221
|
message: string;
|
|
2348
2222
|
data: {
|
|
@@ -2361,10 +2235,6 @@ declare class Order {
|
|
|
2361
2235
|
data?: undefined;
|
|
2362
2236
|
}>;
|
|
2363
2237
|
createPositionTpSlOrder(params: PositionTpSlOrderParams): Promise<{
|
|
2364
|
-
code: number;
|
|
2365
|
-
message: string;
|
|
2366
|
-
data: ApiResponse<any>;
|
|
2367
|
-
} | {
|
|
2368
2238
|
code: number;
|
|
2369
2239
|
message: string;
|
|
2370
2240
|
data: {
|
|
@@ -2383,37 +2253,18 @@ declare class Order {
|
|
|
2383
2253
|
data?: undefined;
|
|
2384
2254
|
}>;
|
|
2385
2255
|
cancelAllOrders(orderIds: string[], chainId: ChainId): Promise<{
|
|
2386
|
-
code: number;
|
|
2387
|
-
message: string;
|
|
2388
|
-
data: ApiResponse<any>;
|
|
2389
|
-
} | {
|
|
2390
2256
|
code: number;
|
|
2391
2257
|
message: any;
|
|
2392
|
-
data?: undefined;
|
|
2393
2258
|
}>;
|
|
2394
2259
|
cancelOrder(orderId: string, chainId: ChainId): Promise<{
|
|
2395
|
-
code: number;
|
|
2396
|
-
message: string;
|
|
2397
|
-
data: ApiResponse<any>;
|
|
2398
|
-
} | {
|
|
2399
2260
|
code: number;
|
|
2400
2261
|
message: any;
|
|
2401
|
-
data?: undefined;
|
|
2402
2262
|
}>;
|
|
2403
2263
|
cancelOrders(orderIds: string[], chainId: ChainId): Promise<{
|
|
2404
|
-
code: number;
|
|
2405
|
-
message: string;
|
|
2406
|
-
data: ApiResponse<any>;
|
|
2407
|
-
} | {
|
|
2408
2264
|
code: number;
|
|
2409
2265
|
message: any;
|
|
2410
|
-
data?: undefined;
|
|
2411
2266
|
}>;
|
|
2412
2267
|
updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number, address: string, marketId: string, isTpSlOrder?: boolean): Promise<{
|
|
2413
|
-
code: number;
|
|
2414
|
-
message: string;
|
|
2415
|
-
data: ApiResponse<any>;
|
|
2416
|
-
} | {
|
|
2417
2268
|
code: number;
|
|
2418
2269
|
data: viem.TransactionReceipt;
|
|
2419
2270
|
message: string;
|
|
@@ -2610,4 +2461,4 @@ declare function normalizeSigner(signerLike: SignerLike): ISigner;
|
|
|
2610
2461
|
|
|
2611
2462
|
declare const SDK_VERSION: string;
|
|
2612
2463
|
|
|
2613
|
-
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,
|
|
2464
|
+
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 };
|
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 { parseUnits } from 'viem';
|
|
2
|
+
import { zeroAddress, Address as Address$2, WalletClient, PublicClient, Abi } from 'viem';
|
|
3
|
+
export { formatUnits, parseUnits } from 'viem';
|
|
4
4
|
import { Options, Event } from 'reconnecting-websocket';
|
|
5
5
|
import { WretchOptions } from 'wretch/types';
|
|
6
6
|
|
|
@@ -1059,8 +1059,6 @@ 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
|
-
|
|
1064
1062
|
/**
|
|
1065
1063
|
* MyxLogger
|
|
1066
1064
|
* Uses optional sink (no global console by default) so LavaMoat allowlist can omit "console".
|
|
@@ -1316,17 +1314,11 @@ interface MyxClientConfig {
|
|
|
1316
1314
|
chainId: number;
|
|
1317
1315
|
/** ethers v5/v6 Signer, viem WalletClient, or ISigner. Use walletClient when app uses viem to avoid ethers in bundle. */
|
|
1318
1316
|
signer?: SignerLike;
|
|
1319
|
-
seamlessAccount?: {
|
|
1320
|
-
masterAddress: string;
|
|
1321
|
-
wallet: Account$1 | null;
|
|
1322
|
-
authorized: boolean;
|
|
1323
|
-
};
|
|
1324
1317
|
walletClient?: WalletClient;
|
|
1325
1318
|
brokerAddress: string;
|
|
1326
1319
|
isTestnet?: boolean;
|
|
1327
1320
|
isBetaMode?: boolean;
|
|
1328
1321
|
poolingInterval?: number;
|
|
1329
|
-
seamlessMode?: boolean;
|
|
1330
1322
|
socketConfig?: Partial<Omit<WebSocketConfig, "url">>;
|
|
1331
1323
|
logLevel?: LogLevel;
|
|
1332
1324
|
getAccessToken?: (() => Promise<AccessTokenResponse | undefined>) | (() => AccessTokenResponse | undefined);
|
|
@@ -1345,12 +1337,6 @@ declare class ConfigManager {
|
|
|
1345
1337
|
getSignerAddress(chainId: number): Promise<string>;
|
|
1346
1338
|
/** Returns viem WalletClient for the chain (for readContract/writeContract). Use when SDK uses viem. */
|
|
1347
1339
|
getViemWalletClient(chainId: number): Promise<WalletClient>;
|
|
1348
|
-
startSeamlessMode(open: boolean): Promise<MyxClientConfig>;
|
|
1349
|
-
updateSeamlessWallet({ wallet, authorized, masterAddress, }: {
|
|
1350
|
-
wallet?: Account$1 | null;
|
|
1351
|
-
authorized?: boolean;
|
|
1352
|
-
masterAddress?: string;
|
|
1353
|
-
}): void;
|
|
1354
1340
|
updateClientChainId(chainId: number, brokerAddress: string): void;
|
|
1355
1341
|
auth(params: Pick<MyxClientConfig, "signer" | "walletClient" | "getAccessToken">): void;
|
|
1356
1342
|
private validateConfig;
|
|
@@ -1502,7 +1488,7 @@ declare class Utils {
|
|
|
1502
1488
|
code: number;
|
|
1503
1489
|
message: string;
|
|
1504
1490
|
}>;
|
|
1505
|
-
getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number): Promise<{
|
|
1491
|
+
getUserTradingFeeRate(assetClass: number, riskTier: number, chainId: number, userAddress?: string): Promise<{
|
|
1506
1492
|
code: 0;
|
|
1507
1493
|
data: {
|
|
1508
1494
|
takerFeeRate: string;
|
|
@@ -1533,7 +1519,6 @@ declare class Utils {
|
|
|
1533
1519
|
}[]>;
|
|
1534
1520
|
transferKlineResolutionToInterval(resolution: KlineResolution): HttpKlineIntervalEnum;
|
|
1535
1521
|
getErrorMessage(error: any, fallbackErrorMessage?: string): Promise<any>;
|
|
1536
|
-
checkSeamlessGas(userAddress: string, chainId: number): Promise<boolean>;
|
|
1537
1522
|
getLiquidityInfo({ chainId, poolId, marketPrice, }: {
|
|
1538
1523
|
chainId: number;
|
|
1539
1524
|
poolId: string;
|
|
@@ -1890,13 +1875,6 @@ declare class Api extends Request {
|
|
|
1890
1875
|
getHistoryOrders({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<HistoryOrderItem[]>>;
|
|
1891
1876
|
getPositionHistory({ accessToken, address, ...params }: GetHistoryOrdersParams & AccessTokenRequest): Promise<ApiResponse<PositionHistoryItem[]>>;
|
|
1892
1877
|
getMarketList(): Promise<ApiResponse<MarketInfo[]>>;
|
|
1893
|
-
getAccountVipInfo({ address, accessToken, chainId, deadline, nonce, }: {
|
|
1894
|
-
address: string;
|
|
1895
|
-
accessToken: string;
|
|
1896
|
-
chainId: number;
|
|
1897
|
-
deadline: number;
|
|
1898
|
-
nonce: string;
|
|
1899
|
-
}): Promise<ApiResponse<any>>;
|
|
1900
1878
|
/**
|
|
1901
1879
|
* appeal module start ------>
|
|
1902
1880
|
*/
|
|
@@ -2020,10 +1998,6 @@ declare class Account {
|
|
|
2020
1998
|
data: any;
|
|
2021
1999
|
}>;
|
|
2022
2000
|
updateAndWithdraw(receiver: string, poolId: string, isQuoteToken: boolean, amount: string, chainId: number): Promise<{
|
|
2023
|
-
code: number;
|
|
2024
|
-
message: string;
|
|
2025
|
-
data: ApiResponse<any>;
|
|
2026
|
-
} | {
|
|
2027
2001
|
code: number;
|
|
2028
2002
|
data: viem.TransactionReceipt;
|
|
2029
2003
|
message?: undefined;
|
|
@@ -2037,10 +2011,6 @@ declare class Account {
|
|
|
2037
2011
|
tokenAddress: string;
|
|
2038
2012
|
chainId: number;
|
|
2039
2013
|
}): Promise<{
|
|
2040
|
-
code: number;
|
|
2041
|
-
message: string;
|
|
2042
|
-
data: ApiResponse<any>;
|
|
2043
|
-
} | {
|
|
2044
2014
|
code: number;
|
|
2045
2015
|
data: viem.TransactionReceipt;
|
|
2046
2016
|
message?: undefined;
|
|
@@ -2078,15 +2048,6 @@ declare class Account {
|
|
|
2078
2048
|
message: string;
|
|
2079
2049
|
data?: undefined;
|
|
2080
2050
|
}>;
|
|
2081
|
-
getAccountVipInfoByBackend(address: string, chainId: number, deadline: number, nonce: string): Promise<{
|
|
2082
|
-
code: number;
|
|
2083
|
-
data: any;
|
|
2084
|
-
message?: undefined;
|
|
2085
|
-
} | {
|
|
2086
|
-
code: number;
|
|
2087
|
-
message: string;
|
|
2088
|
-
data?: undefined;
|
|
2089
|
-
}>;
|
|
2090
2051
|
setUserFeeData(address: string, chainId: number, deadline: number, params: {
|
|
2091
2052
|
tier: number;
|
|
2092
2053
|
referrer: string;
|
|
@@ -2094,10 +2055,6 @@ declare class Account {
|
|
|
2094
2055
|
referrerRebatePct: number;
|
|
2095
2056
|
nonce: string;
|
|
2096
2057
|
}, signature: string): Promise<{
|
|
2097
|
-
code: number;
|
|
2098
|
-
data: ApiResponse<any>;
|
|
2099
|
-
message?: undefined;
|
|
2100
|
-
} | {
|
|
2101
2058
|
code: number;
|
|
2102
2059
|
data: viem.TransactionReceipt;
|
|
2103
2060
|
message?: undefined;
|
|
@@ -2126,7 +2083,7 @@ declare class Seamless {
|
|
|
2126
2083
|
r: `0x${string}`;
|
|
2127
2084
|
s: `0x${string}`;
|
|
2128
2085
|
}[]>;
|
|
2129
|
-
forwarderTx({ from, to, value, gas, deadline, data, nonce, }: {
|
|
2086
|
+
forwarderTx({ from, to, value, gas, deadline, data, nonce, forwardFeeToken, }: {
|
|
2130
2087
|
from: string;
|
|
2131
2088
|
to: string;
|
|
2132
2089
|
value: string;
|
|
@@ -2134,11 +2091,13 @@ declare class Seamless {
|
|
|
2134
2091
|
deadline: number;
|
|
2135
2092
|
data: string;
|
|
2136
2093
|
nonce: string;
|
|
2094
|
+
forwardFeeToken: string;
|
|
2137
2095
|
}, chainId: number, walletClient?: Awaited<ReturnType<typeof getWalletClient>>): Promise<ApiResponse<any>>;
|
|
2138
|
-
authorizeSeamlessAccount({ approve, seamlessAddress, chainId }: {
|
|
2096
|
+
authorizeSeamlessAccount({ approve, seamlessAddress, chainId, forwardFeeToken }: {
|
|
2139
2097
|
approve: boolean;
|
|
2140
2098
|
seamlessAddress: string;
|
|
2141
2099
|
chainId: number;
|
|
2100
|
+
forwardFeeToken: string;
|
|
2142
2101
|
}): Promise<{
|
|
2143
2102
|
code: number;
|
|
2144
2103
|
data: {
|
|
@@ -2151,66 +2110,6 @@ declare class Seamless {
|
|
|
2151
2110
|
data: null;
|
|
2152
2111
|
message: string;
|
|
2153
2112
|
}>;
|
|
2154
|
-
unLockSeamlessWallet({ masterAddress, password, apiKey, chainId }: {
|
|
2155
|
-
masterAddress: string;
|
|
2156
|
-
password: string;
|
|
2157
|
-
apiKey: string;
|
|
2158
|
-
chainId: number;
|
|
2159
|
-
}): Promise<{
|
|
2160
|
-
code: number;
|
|
2161
|
-
data: {
|
|
2162
|
-
masterAddress: string;
|
|
2163
|
-
seamlessAccount: `0x${string}`;
|
|
2164
|
-
authorized: any;
|
|
2165
|
-
};
|
|
2166
|
-
}>;
|
|
2167
|
-
exportSeamlessPrivateKey({ password, apiKey }: {
|
|
2168
|
-
password: string;
|
|
2169
|
-
apiKey: string;
|
|
2170
|
-
}): Promise<{
|
|
2171
|
-
code: number;
|
|
2172
|
-
data: {
|
|
2173
|
-
privateKey: string;
|
|
2174
|
-
};
|
|
2175
|
-
}>;
|
|
2176
|
-
importSeamlessPrivateKey({ privateKey, password, chainId }: {
|
|
2177
|
-
privateKey: string;
|
|
2178
|
-
password: string;
|
|
2179
|
-
chainId: number;
|
|
2180
|
-
}): Promise<{
|
|
2181
|
-
code: number;
|
|
2182
|
-
data: {
|
|
2183
|
-
masterAddress: any;
|
|
2184
|
-
seamlessAccount: `0x${string}`;
|
|
2185
|
-
authorized: any;
|
|
2186
|
-
apiKey: string;
|
|
2187
|
-
};
|
|
2188
|
-
}>;
|
|
2189
|
-
startSeamlessMode({ open }: {
|
|
2190
|
-
open: boolean;
|
|
2191
|
-
}): Promise<{
|
|
2192
|
-
code: number;
|
|
2193
|
-
data: {
|
|
2194
|
-
open: boolean;
|
|
2195
|
-
};
|
|
2196
|
-
}>;
|
|
2197
|
-
createSeamless({ password, chainId }: {
|
|
2198
|
-
password: string;
|
|
2199
|
-
chainId: number;
|
|
2200
|
-
}): Promise<{
|
|
2201
|
-
code: number;
|
|
2202
|
-
data: {
|
|
2203
|
-
masterAddress: `0x${string}`;
|
|
2204
|
-
seamlessAccount: `0x${string}`;
|
|
2205
|
-
authorized: any;
|
|
2206
|
-
apiKey: string;
|
|
2207
|
-
};
|
|
2208
|
-
message?: undefined;
|
|
2209
|
-
} | {
|
|
2210
|
-
code: number;
|
|
2211
|
-
message: string;
|
|
2212
|
-
data?: undefined;
|
|
2213
|
-
}>;
|
|
2214
2113
|
}
|
|
2215
2114
|
|
|
2216
2115
|
declare class Position {
|
|
@@ -2242,10 +2141,6 @@ declare class Position {
|
|
|
2242
2141
|
chainId: number;
|
|
2243
2142
|
address: string;
|
|
2244
2143
|
}): Promise<{
|
|
2245
|
-
code: number;
|
|
2246
|
-
message: string;
|
|
2247
|
-
data: ApiResponse<any>;
|
|
2248
|
-
} | {
|
|
2249
2144
|
code: number;
|
|
2250
2145
|
data: {
|
|
2251
2146
|
hash: any;
|
|
@@ -2283,10 +2178,6 @@ declare class Order {
|
|
|
2283
2178
|
private api;
|
|
2284
2179
|
constructor(configManager: ConfigManager, logger: Logger, utils: Utils, seamless: Seamless, account: Account, api: Api);
|
|
2285
2180
|
createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string): Promise<{
|
|
2286
|
-
code: number;
|
|
2287
|
-
message: string;
|
|
2288
|
-
data: ApiResponse<any>;
|
|
2289
|
-
} | {
|
|
2290
2181
|
code: number;
|
|
2291
2182
|
message: string;
|
|
2292
2183
|
data: {
|
|
@@ -2305,17 +2196,6 @@ declare class Order {
|
|
|
2305
2196
|
data?: undefined;
|
|
2306
2197
|
}>;
|
|
2307
2198
|
closeAllPositions(chainId: number, params: PlaceOrderParams[]): Promise<{
|
|
2308
|
-
code: number;
|
|
2309
|
-
message: string;
|
|
2310
|
-
data: ApiResponse<any>;
|
|
2311
|
-
transactionHash?: undefined;
|
|
2312
|
-
blockNumber?: undefined;
|
|
2313
|
-
gasUsed?: undefined;
|
|
2314
|
-
status?: undefined;
|
|
2315
|
-
confirmations?: undefined;
|
|
2316
|
-
timestamp?: undefined;
|
|
2317
|
-
receipt?: undefined;
|
|
2318
|
-
} | {
|
|
2319
2199
|
code: number;
|
|
2320
2200
|
message: string;
|
|
2321
2201
|
transactionHash: any;
|
|
@@ -2325,11 +2205,9 @@ declare class Order {
|
|
|
2325
2205
|
confirmations: number;
|
|
2326
2206
|
timestamp: number;
|
|
2327
2207
|
receipt: viem.TransactionReceipt;
|
|
2328
|
-
data?: undefined;
|
|
2329
2208
|
} | {
|
|
2330
2209
|
code: number;
|
|
2331
2210
|
message: any;
|
|
2332
|
-
data?: undefined;
|
|
2333
2211
|
transactionHash?: undefined;
|
|
2334
2212
|
blockNumber?: undefined;
|
|
2335
2213
|
gasUsed?: undefined;
|
|
@@ -2339,10 +2217,6 @@ declare class Order {
|
|
|
2339
2217
|
receipt?: undefined;
|
|
2340
2218
|
}>;
|
|
2341
2219
|
createDecreaseOrder(params: PlaceOrderParams): Promise<{
|
|
2342
|
-
code: number;
|
|
2343
|
-
message: string;
|
|
2344
|
-
data: ApiResponse<any>;
|
|
2345
|
-
} | {
|
|
2346
2220
|
code: number;
|
|
2347
2221
|
message: string;
|
|
2348
2222
|
data: {
|
|
@@ -2361,10 +2235,6 @@ declare class Order {
|
|
|
2361
2235
|
data?: undefined;
|
|
2362
2236
|
}>;
|
|
2363
2237
|
createPositionTpSlOrder(params: PositionTpSlOrderParams): Promise<{
|
|
2364
|
-
code: number;
|
|
2365
|
-
message: string;
|
|
2366
|
-
data: ApiResponse<any>;
|
|
2367
|
-
} | {
|
|
2368
2238
|
code: number;
|
|
2369
2239
|
message: string;
|
|
2370
2240
|
data: {
|
|
@@ -2383,37 +2253,18 @@ declare class Order {
|
|
|
2383
2253
|
data?: undefined;
|
|
2384
2254
|
}>;
|
|
2385
2255
|
cancelAllOrders(orderIds: string[], chainId: ChainId): Promise<{
|
|
2386
|
-
code: number;
|
|
2387
|
-
message: string;
|
|
2388
|
-
data: ApiResponse<any>;
|
|
2389
|
-
} | {
|
|
2390
2256
|
code: number;
|
|
2391
2257
|
message: any;
|
|
2392
|
-
data?: undefined;
|
|
2393
2258
|
}>;
|
|
2394
2259
|
cancelOrder(orderId: string, chainId: ChainId): Promise<{
|
|
2395
|
-
code: number;
|
|
2396
|
-
message: string;
|
|
2397
|
-
data: ApiResponse<any>;
|
|
2398
|
-
} | {
|
|
2399
2260
|
code: number;
|
|
2400
2261
|
message: any;
|
|
2401
|
-
data?: undefined;
|
|
2402
2262
|
}>;
|
|
2403
2263
|
cancelOrders(orderIds: string[], chainId: ChainId): Promise<{
|
|
2404
|
-
code: number;
|
|
2405
|
-
message: string;
|
|
2406
|
-
data: ApiResponse<any>;
|
|
2407
|
-
} | {
|
|
2408
2264
|
code: number;
|
|
2409
2265
|
message: any;
|
|
2410
|
-
data?: undefined;
|
|
2411
2266
|
}>;
|
|
2412
2267
|
updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number, address: string, marketId: string, isTpSlOrder?: boolean): Promise<{
|
|
2413
|
-
code: number;
|
|
2414
|
-
message: string;
|
|
2415
|
-
data: ApiResponse<any>;
|
|
2416
|
-
} | {
|
|
2417
2268
|
code: number;
|
|
2418
2269
|
data: viem.TransactionReceipt;
|
|
2419
2270
|
message: string;
|
|
@@ -2610,4 +2461,4 @@ declare function normalizeSigner(signerLike: SignerLike): ISigner;
|
|
|
2610
2461
|
|
|
2611
2462
|
declare const SDK_VERSION: string;
|
|
2612
2463
|
|
|
2613
|
-
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,
|
|
2464
|
+
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 };
|