@myx-trade/sdk 1.0.24-beta.2 → 1.0.24-beta.21

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.
@@ -523,6 +523,10 @@ interface SearchResultResponse {
523
523
  total: number;
524
524
  favorites: FavoritesDefaultItem[];
525
525
  };
526
+ cookV2Info: {
527
+ list: SearchResultCookItem[];
528
+ total: number;
529
+ };
526
530
  }
527
531
  interface FavoritesListItem {
528
532
  ChainId: ChainId;
@@ -606,6 +610,14 @@ interface MarketInfo {
606
610
  maxForwardFee: string;
607
611
  relateUsd: number;
608
612
  }
613
+ interface GetTransactionOnlineParams {
614
+ chainId?: number;
615
+ poolId: string;
616
+ after?: number;
617
+ before?: number;
618
+ txId: string;
619
+ limit: number;
620
+ }
609
621
 
610
622
  type DepositTpSl = Pick<TpSl, 'triggerType' | 'triggerPrice'>;
611
623
  interface Deposit {
@@ -690,9 +702,9 @@ declare namespace index$2 {
690
702
  }
691
703
 
692
704
  declare const deposit: (params: Deposit) => Promise<{
705
+ hash: any;
693
706
  txId: string;
694
707
  receipt: viem.TransactionReceipt;
695
- hash: any;
696
708
  } | undefined>;
697
709
 
698
710
  declare const withdrawableLpAmount: (params: {
@@ -711,14 +723,14 @@ declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string,
711
723
  declare const getRewards: (params: RewardsParams) => Promise<any>;
712
724
 
713
725
  declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<{
726
+ hash: any;
714
727
  txId: string;
715
728
  receipt: viem.TransactionReceipt;
716
- hash: any;
717
729
  }>;
718
730
  declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<{
731
+ hash: any;
719
732
  txId: string;
720
733
  receipt: viem.TransactionReceipt;
721
- hash: any;
722
734
  } | undefined>;
723
735
 
724
736
  declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<any>;
@@ -819,4 +831,4 @@ declare const pool: {
819
831
  claimBoostFee: (params: BoostPoolParams) => Promise<viem.TransactionReceipt>;
820
832
  };
821
833
 
822
- export { MarketCapType as $, type AccessTokenRequest as A, type BaseDetailResponse as B, ChainId as C, COMMON_LP_AMOUNT_DECIMALS as D, getPricesData as E, type FavoritesListItem as F, getPriceData as G, HttpKlineIntervalEnum as H, type ObjectType as I, ErrorCode as J, type KlineDataItemType as K, type DashboardType as L, type MarketDetailResponse as M, type NetWorkFee as N, OracleType as O, type PoolResponse as P, type StatDashBoardResponse as Q, type AccessTokenType as R, type SearchResultResponse as S, type TickerDataItem as T, type AccessTokenResponse as U, MarketPoolState as V, type MarketPool as W, type MarketPoolResponse as X, type PriceType as Y, type PoolOpenOrder as Z, MarketType as _, type ApiResponse as a, type ChainIdRequest as a0, type FavoritesType as a1, type SearchResultContractItem as a2, type SearchResultCookItem as a3, type SearchResultEarnItem as a4, type FavoritesDefaultItem as a5, OrderType as a6, TriggerType as a7, OperationType as a8, Direction as a9, TimeInForce as aa, type Position as ab, type Order as ac, OrderStatus as ad, type TradingResult as ae, type UpdateOrderTpSlParams as af, type PositionResponse as b, type OrderResponse as c, type PoolOpenOrdersResponse as d, type MarketInfo as e, type PositionType as f, type PlaceOrderParams as g, type PositionTpSlOrderParams as h, type OrderItem as i, type Address as j, type ContractAddress as k, type BaseResponse as l, SearchTypeEnum as m, SearchSecondTypeEnum as n, type PriceResponse as o, type HttpEnvParams as p, index$2 as q, index$1 as r, pool as s, index as t, type AddTpSLParams as u, type CancelTpSLParams as v, type CreatePoolRequest as w, type TpSLParams as x, type TpSl as y, COMMON_PRICE_DECIMALS as z };
834
+ export { type PoolOpenOrder as $, type AccessTokenRequest as A, type BaseDetailResponse as B, ChainId as C, COMMON_PRICE_DECIMALS as D, COMMON_LP_AMOUNT_DECIMALS as E, type FavoritesListItem as F, type GetTransactionOnlineParams as G, HttpKlineIntervalEnum as H, getPricesData as I, getPriceData as J, type KlineDataItemType as K, type ObjectType as L, type MarketDetailResponse as M, type NetWorkFee as N, OracleType as O, type PoolResponse as P, ErrorCode as Q, type DashboardType as R, type SearchResultResponse as S, type TickerDataItem as T, type StatDashBoardResponse as U, type AccessTokenType as V, type AccessTokenResponse as W, MarketPoolState as X, type MarketPool as Y, type MarketPoolResponse as Z, type PriceType as _, type ApiResponse as a, MarketType as a0, MarketCapType as a1, type ChainIdRequest as a2, type FavoritesType as a3, type SearchResultContractItem as a4, type SearchResultCookItem as a5, type SearchResultEarnItem as a6, type FavoritesDefaultItem as a7, OrderType as a8, TriggerType as a9, OperationType as aa, Direction as ab, TimeInForce as ac, type Position as ad, type Order as ae, OrderStatus as af, type TradingResult as ag, type UpdateOrderTpSlParams as ah, type PositionResponse as b, type OrderResponse as c, type PoolOpenOrdersResponse as d, type MarketInfo as e, type PositionType as f, type PlaceOrderParams as g, type PositionTpSlOrderParams as h, type OrderItem as i, type Address as j, type ContractAddress as k, type BaseResponse as l, SearchTypeEnum as m, SearchSecondTypeEnum as n, type PriceResponse as o, type HttpEnvParams as p, type Address$1 as q, index$2 as r, index$1 as s, pool as t, index as u, type AddTpSLParams as v, type CancelTpSLParams as w, type CreatePoolRequest as x, type TpSLParams as y, type TpSl as z };
@@ -523,6 +523,10 @@ interface SearchResultResponse {
523
523
  total: number;
524
524
  favorites: FavoritesDefaultItem[];
525
525
  };
526
+ cookV2Info: {
527
+ list: SearchResultCookItem[];
528
+ total: number;
529
+ };
526
530
  }
527
531
  interface FavoritesListItem {
528
532
  ChainId: ChainId;
@@ -606,6 +610,14 @@ interface MarketInfo {
606
610
  maxForwardFee: string;
607
611
  relateUsd: number;
608
612
  }
613
+ interface GetTransactionOnlineParams {
614
+ chainId?: number;
615
+ poolId: string;
616
+ after?: number;
617
+ before?: number;
618
+ txId: string;
619
+ limit: number;
620
+ }
609
621
 
610
622
  type DepositTpSl = Pick<TpSl, 'triggerType' | 'triggerPrice'>;
611
623
  interface Deposit {
@@ -690,9 +702,9 @@ declare namespace index$2 {
690
702
  }
691
703
 
692
704
  declare const deposit: (params: Deposit) => Promise<{
705
+ hash: any;
693
706
  txId: string;
694
707
  receipt: viem.TransactionReceipt;
695
- hash: any;
696
708
  } | undefined>;
697
709
 
698
710
  declare const withdrawableLpAmount: (params: {
@@ -711,14 +723,14 @@ declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string,
711
723
  declare const getRewards: (params: RewardsParams) => Promise<any>;
712
724
 
713
725
  declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<{
726
+ hash: any;
714
727
  txId: string;
715
728
  receipt: viem.TransactionReceipt;
716
- hash: any;
717
729
  }>;
718
730
  declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<{
731
+ hash: any;
719
732
  txId: string;
720
733
  receipt: viem.TransactionReceipt;
721
- hash: any;
722
734
  } | undefined>;
723
735
 
724
736
  declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<any>;
@@ -819,4 +831,4 @@ declare const pool: {
819
831
  claimBoostFee: (params: BoostPoolParams) => Promise<viem.TransactionReceipt>;
820
832
  };
821
833
 
822
- export { MarketCapType as $, type AccessTokenRequest as A, type BaseDetailResponse as B, ChainId as C, COMMON_LP_AMOUNT_DECIMALS as D, getPricesData as E, type FavoritesListItem as F, getPriceData as G, HttpKlineIntervalEnum as H, type ObjectType as I, ErrorCode as J, type KlineDataItemType as K, type DashboardType as L, type MarketDetailResponse as M, type NetWorkFee as N, OracleType as O, type PoolResponse as P, type StatDashBoardResponse as Q, type AccessTokenType as R, type SearchResultResponse as S, type TickerDataItem as T, type AccessTokenResponse as U, MarketPoolState as V, type MarketPool as W, type MarketPoolResponse as X, type PriceType as Y, type PoolOpenOrder as Z, MarketType as _, type ApiResponse as a, type ChainIdRequest as a0, type FavoritesType as a1, type SearchResultContractItem as a2, type SearchResultCookItem as a3, type SearchResultEarnItem as a4, type FavoritesDefaultItem as a5, OrderType as a6, TriggerType as a7, OperationType as a8, Direction as a9, TimeInForce as aa, type Position as ab, type Order as ac, OrderStatus as ad, type TradingResult as ae, type UpdateOrderTpSlParams as af, type PositionResponse as b, type OrderResponse as c, type PoolOpenOrdersResponse as d, type MarketInfo as e, type PositionType as f, type PlaceOrderParams as g, type PositionTpSlOrderParams as h, type OrderItem as i, type Address as j, type ContractAddress as k, type BaseResponse as l, SearchTypeEnum as m, SearchSecondTypeEnum as n, type PriceResponse as o, type HttpEnvParams as p, index$2 as q, index$1 as r, pool as s, index as t, type AddTpSLParams as u, type CancelTpSLParams as v, type CreatePoolRequest as w, type TpSLParams as x, type TpSl as y, COMMON_PRICE_DECIMALS as z };
834
+ export { type PoolOpenOrder as $, type AccessTokenRequest as A, type BaseDetailResponse as B, ChainId as C, COMMON_PRICE_DECIMALS as D, COMMON_LP_AMOUNT_DECIMALS as E, type FavoritesListItem as F, type GetTransactionOnlineParams as G, HttpKlineIntervalEnum as H, getPricesData as I, getPriceData as J, type KlineDataItemType as K, type ObjectType as L, type MarketDetailResponse as M, type NetWorkFee as N, OracleType as O, type PoolResponse as P, ErrorCode as Q, type DashboardType as R, type SearchResultResponse as S, type TickerDataItem as T, type StatDashBoardResponse as U, type AccessTokenType as V, type AccessTokenResponse as W, MarketPoolState as X, type MarketPool as Y, type MarketPoolResponse as Z, type PriceType as _, type ApiResponse as a, MarketType as a0, MarketCapType as a1, type ChainIdRequest as a2, type FavoritesType as a3, type SearchResultContractItem as a4, type SearchResultCookItem as a5, type SearchResultEarnItem as a6, type FavoritesDefaultItem as a7, OrderType as a8, TriggerType as a9, OperationType as aa, Direction as ab, TimeInForce as ac, type Position as ad, type Order as ae, OrderStatus as af, type TradingResult as ag, type UpdateOrderTpSlParams as ah, type PositionResponse as b, type OrderResponse as c, type PoolOpenOrdersResponse as d, type MarketInfo as e, type PositionType as f, type PlaceOrderParams as g, type PositionTpSlOrderParams as h, type OrderItem as i, type Address as j, type ContractAddress as k, type BaseResponse as l, SearchTypeEnum as m, SearchSecondTypeEnum as n, type PriceResponse as o, type HttpEnvParams as p, type Address$1 as q, index$2 as r, index$1 as s, pool as t, index as u, type AddTpSLParams as v, type CancelTpSLParams as w, type CreatePoolRequest as x, type TpSLParams as y, type TpSl as z };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as OracleType, H as HttpKlineIntervalEnum, A as AccessTokenRequest, a as ApiResponse, C as ChainId, P as PoolResponse, b as PositionResponse, c as OrderResponse, d as PoolOpenOrdersResponse, K as KlineDataItemType, T as TickerDataItem, S as SearchResultResponse, F as FavoritesListItem, B as BaseDetailResponse, M as MarketDetailResponse, e as MarketInfo, f as PositionType, g as PlaceOrderParams, h as PositionTpSlOrderParams, i as OrderItem, j as Address$1, k as ContractAddress, l as BaseResponse, m as SearchTypeEnum, n as SearchSecondTypeEnum, o as PriceResponse, p as HttpEnvParams } from './index-BDOPfmoC.mjs';
2
- export { U as AccessTokenResponse, R as AccessTokenType, u as AddTpSLParams, D as COMMON_LP_AMOUNT_DECIMALS, z as COMMON_PRICE_DECIMALS, v as CancelTpSLParams, a0 as ChainIdRequest, w as CreatePoolRequest, L as DashboardType, a9 as Direction, J as ErrorCode, a5 as FavoritesDefaultItem, a1 as FavoritesType, $ as MarketCapType, W as MarketPool, X as MarketPoolResponse, V as MarketPoolState, _ as MarketType, N as NetWorkFee, I as ObjectType, a8 as OperationType, ac as Order, ad as OrderStatus, a6 as OrderType, Z as PoolOpenOrder, ab as Position, Y as PriceType, a2 as SearchResultContractItem, a3 as SearchResultCookItem, a4 as SearchResultEarnItem, Q as StatDashBoardResponse, aa as TimeInForce, x as TpSLParams, y as TpSl, ae as TradingResult, a7 as TriggerType, af as UpdateOrderTpSlParams, q as base, G as getPriceData, E as getPricesData, t as market, s as pool, r as quote } from './index-BDOPfmoC.mjs';
1
+ import { O as OracleType, H as HttpKlineIntervalEnum, A as AccessTokenRequest, a as ApiResponse, C as ChainId, P as PoolResponse, b as PositionResponse, c as OrderResponse, d as PoolOpenOrdersResponse, K as KlineDataItemType, T as TickerDataItem, S as SearchResultResponse, G as GetTransactionOnlineParams, F as FavoritesListItem, B as BaseDetailResponse, M as MarketDetailResponse, e as MarketInfo, f as PositionType, g as PlaceOrderParams, h as PositionTpSlOrderParams, i as OrderItem, j as Address$1, k as ContractAddress, l as BaseResponse, m as SearchTypeEnum, n as SearchSecondTypeEnum, o as PriceResponse, p as HttpEnvParams, q as Address$2 } from './index-TdhN-jAO.mjs';
2
+ export { W as AccessTokenResponse, V as AccessTokenType, v as AddTpSLParams, E as COMMON_LP_AMOUNT_DECIMALS, D as COMMON_PRICE_DECIMALS, w as CancelTpSLParams, a2 as ChainIdRequest, x as CreatePoolRequest, R as DashboardType, ab as Direction, Q as ErrorCode, a7 as FavoritesDefaultItem, a3 as FavoritesType, a1 as MarketCapType, Y as MarketPool, Z as MarketPoolResponse, X as MarketPoolState, a0 as MarketType, N as NetWorkFee, L as ObjectType, aa as OperationType, ae as Order, af as OrderStatus, a8 as OrderType, $ as PoolOpenOrder, ad as Position, _ as PriceType, a4 as SearchResultContractItem, a5 as SearchResultCookItem, a6 as SearchResultEarnItem, U as StatDashBoardResponse, ac as TimeInForce, y as TpSLParams, z as TpSl, ag as TradingResult, a9 as TriggerType, ah as UpdateOrderTpSlParams, r as base, J as getPriceData, I as getPricesData, u as market, t as pool, s as quote } from './index-TdhN-jAO.mjs';
3
3
  import * as viem from 'viem';
4
4
  import { WalletClient, Address, PublicClient, Abi } from 'viem';
5
5
  export { formatUnits, parseUnits } from 'viem';
@@ -802,6 +802,22 @@ interface PaginationParams {
802
802
  after?: number;
803
803
  before?: number;
804
804
  }
805
+ interface GetProfitLockParams extends PaginationParams {
806
+ chainId?: number;
807
+ poolId?: string;
808
+ }
809
+ interface ProfitLockItem {
810
+ id: number;
811
+ chainId: number;
812
+ poolId: string;
813
+ account: string;
814
+ profitBaseAmount: string;
815
+ profitQuoteAmount: string;
816
+ usedQuoteAmount: string;
817
+ releaseTime: number;
818
+ txHash: string;
819
+ txTime: number;
820
+ }
805
821
 
806
822
  declare class Api extends Request {
807
823
  private logger;
@@ -811,6 +827,7 @@ declare class Api extends Request {
811
827
  fetchForwarderGetApi(params: FetchForwarderGetParams): Promise<FetchForwarderGetResponse>;
812
828
  getPoolList(): Promise<ApiResponse<any[]>>;
813
829
  forwarderTxApi(params: ForwarderTxParams, chainId: number): Promise<ApiResponse<any>>;
830
+ adjustCollateralForwarderTxApi(params: AdjustCollateralForwarderParams, chainId: number): Promise<ApiResponse<any>>;
814
831
  getOraclePrice(chainId: ChainId, poolIds?: string[]): Promise<Record<string, any>>;
815
832
  getPoolDetail(chainId: number, poolId: string): Promise<PoolResponse>;
816
833
  getPoolLevelConfig({ poolId, chainId }: GetPoolLevelConfigParams): Promise<ApiResponse<PoolLevelConfig>>;
@@ -833,6 +850,7 @@ declare class Api extends Request {
833
850
  searchMarketAuth({ accessToken, address, ...params }: SearchMarketParams & AccessTokenRequest): Promise<ApiResponse<SearchResultResponse>>;
834
851
  searchMarket({ ...params }: SearchMarketParams): Promise<ApiResponse<SearchResultResponse>>;
835
852
  addFavorite({ accessToken, address, ...params }: AddFavoriteParams & AccessTokenRequest): Promise<ApiResponse<null>>;
853
+ getTransactionOnline({ accessToken, address, ...params }: GetTransactionOnlineParams & AccessTokenRequest): Promise<ApiResponse<any>>;
836
854
  addFavoritesBatch(params: AddFavoritesBatchParams): Promise<ApiResponse<null>>;
837
855
  removeFavorite({ accessToken, address, ...params }: RemoveFavoriteParams & AccessTokenRequest): Promise<ApiResponse<null>>;
838
856
  getFavoritesList({ accessToken, address, ...params }: FavoritesListParams & AccessTokenRequest): Promise<ApiResponse<FavoritesListItem[]>>;
@@ -875,6 +893,7 @@ declare class Api extends Request {
875
893
  accessToken: string;
876
894
  broker: string;
877
895
  }): Promise<ApiResponse<number>>;
896
+ getProfitLock(params?: GetProfitLockParams): Promise<ApiResponse<ProfitLockItem[]>>;
878
897
  getPoolAppealStatus({ poolId, chainId, address, accessToken }: {
879
898
  poolId: string;
880
899
  chainId: number;
@@ -1396,6 +1415,29 @@ declare class Seamless {
1396
1415
  nonce: any;
1397
1416
  forwardFeeToken: `0x${string}`;
1398
1417
  }>;
1418
+ adjustCollateral({ chainId, seamlessAddress, forwardFeeToken, poolId, positionId, adjustAmount, depositData, }: {
1419
+ chainId: ChainId;
1420
+ seamlessAddress: string;
1421
+ forwardFeeToken: string;
1422
+ poolId: string;
1423
+ positionId: string;
1424
+ adjustAmount: string;
1425
+ depositData: {
1426
+ token: string;
1427
+ amount: string;
1428
+ };
1429
+ }): Promise<{
1430
+ code: number;
1431
+ data: {
1432
+ txId: string;
1433
+ hash: any;
1434
+ };
1435
+ message?: undefined;
1436
+ } | {
1437
+ code: number;
1438
+ data: null;
1439
+ message: string;
1440
+ }>;
1399
1441
  }
1400
1442
 
1401
1443
  /** Cast viem getContract result so .read/.write and legacy contract.methodName() accept any ABI function name. */
@@ -1443,8 +1485,10 @@ declare class Appeal extends BaseMyxClient {
1443
1485
  */
1444
1486
  submitAppeal(poolId: string, lpToken: Address, lpAmount: string): Promise<{
1445
1487
  transaction: viem.TransactionReceipt;
1446
- caseId: bigint;
1488
+ txId: string;
1489
+ hash: any;
1447
1490
  }>;
1491
+ getCaseIdFromTransaction(txHash: TransactionHash): Promise<bigint | null>;
1448
1492
  /**
1449
1493
  * vote for appeal
1450
1494
  * @param caseId - the case id
@@ -1737,6 +1781,18 @@ type ForwarderTxParams = {
1737
1781
  signature: string;
1738
1782
  forwardFeeToken: string;
1739
1783
  };
1784
+ type AdjustCollateralForwarderParams = {
1785
+ from: string;
1786
+ to: string;
1787
+ value: string;
1788
+ gas: string;
1789
+ txId: string;
1790
+ createdAt: string;
1791
+ deadline: number;
1792
+ data: string;
1793
+ poolIds: string[];
1794
+ forwardFeeToken: string;
1795
+ };
1740
1796
  type FetchForwarderGetParams = {
1741
1797
  requestId: string;
1742
1798
  };
@@ -1901,37 +1957,9 @@ interface BuildSignDataParams {
1901
1957
  to: Address;
1902
1958
  }
1903
1959
  declare const buildSignData: ({ chainId, data, from, to, }: BuildSignDataParams) => Promise<{
1904
- domain: {
1905
- name: any;
1906
- version: any;
1907
- chainId: any;
1908
- verifyingContract: any;
1909
- };
1910
1960
  createAt: number;
1911
1961
  deadline: number;
1912
1962
  txId: string;
1913
- types: {
1914
- readonly ForwardRequest: readonly [{
1915
- readonly name: "from";
1916
- readonly type: "address";
1917
- }, {
1918
- readonly name: "to";
1919
- readonly type: "address";
1920
- }, {
1921
- readonly name: "value";
1922
- readonly type: "uint256";
1923
- }, {
1924
- readonly name: "gas";
1925
- readonly type: "uint256";
1926
- }, {
1927
- readonly name: "deadline";
1928
- readonly type: "uint48";
1929
- }, {
1930
- readonly name: "data";
1931
- readonly type: "bytes";
1932
- }];
1933
- };
1934
- primaryType: any;
1935
1963
  signData: {
1936
1964
  from: `0x${string}`;
1937
1965
  to: `0x${string}`;
@@ -1940,6 +1968,7 @@ declare const buildSignData: ({ chainId, data, from, to, }: BuildSignDataParams)
1940
1968
  value: bigint;
1941
1969
  gas: bigint;
1942
1970
  };
1971
+ gasEscrow: bigint;
1943
1972
  }>;
1944
1973
  interface BuildHexDataAndExecutionGasFeeParams {
1945
1974
  chainId: number;
@@ -2004,6 +2033,21 @@ declare namespace transaction {
2004
2033
  export { transaction_waitForTransactionReceipt as waitForTransactionReceipt };
2005
2034
  }
2006
2035
 
2036
+ interface SignAndSubmitParams {
2037
+ chainId: ChainId;
2038
+ account: Address$2;
2039
+ abi: any;
2040
+ method: string;
2041
+ args: any[];
2042
+ poolIds: string[];
2043
+ to?: Address$2;
2044
+ }
2045
+ declare const signAndSubmit: ({ chainId, account, abi, method, args, poolIds, to: _to }: SignAndSubmitParams) => Promise<{
2046
+ hash: any;
2047
+ txId: string;
2048
+ receipt: viem.TransactionReceipt;
2049
+ }>;
2050
+
2007
2051
  declare class MxSDK {
2008
2052
  #private;
2009
2053
  version: string;
@@ -2038,4 +2082,4 @@ declare function normalizeSigner(signerLike: SignerLike): ISigner;
2038
2082
 
2039
2083
  declare const SDK_VERSION: string;
2040
2084
 
2041
- export { AccessTokenRequest, type AddFavoriteParams, type AddFavoritesBatchParams, Address$1 as Address, 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, BaseDetailResponse, BaseResponse, ChainId, CloseTypeEnum, DirectionEnum, ExecTypeEnum, FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, 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, HttpEnvParams, HttpKlineIntervalEnum, type ISigner, IsVoteNodeEnum, KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, type LogLevel, type LogSink, Logger, type LoggerOptions, MarketDetailResponse, MarketInfo, MxSDK, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, NodeTypeEnum, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OracleType, OrderItem, OrderResponse, OrderStatusEnum, OrderTypeEnum, type PaginationParams, PlaceOrderParams, type PoolLevelConfig, PoolOpenOrdersResponse, PoolResponse, type PoolSymbolAllResponse, type PositionHistoryItem, PositionResponse, PositionTpSlOrderParams, PositionType, type PostVoteResponse, type PostVoteSignatureParams, PriceResponse, type RemoveFavoriteParams, SDK_VERSION, type SearchMarketParams, SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type SignerLike, TickerDataItem, type TickersDataResponse, TradeFlowAccountTypeEnum, type TradeFlowItem, TradeFlowTypeEnum, TriggerTypeEnum, VoteTypeEnum, approve, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, execution, forwarder, fromViemWalletClient, getAllowanceApproved, getBalanceOf, getBaseDetail, getBaseUrlByEnv, getGasByRatio, getMarketDetail, getMarketList, getOraclePrice, getPoolDetail, getPoolList, getPoolOpenOrders, getPublicClient, getSdkLogSink, getTickerData, getTokenInfo, getWalletClient, getWalletProvider, normalizeSigner, sdkError, sdkLog, sdkWarn, setConfigManagerForViem, setSdkLogSink, transaction as transactions };
2085
+ export { AccessTokenRequest, type AddFavoriteParams, type AddFavoritesBatchParams, Address$1 as Address, type AdjustCollateralForwarderParams, 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, BaseDetailResponse, BaseResponse, ChainId, CloseTypeEnum, DirectionEnum, ExecTypeEnum, FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, 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 GetProfitLockParams, type GetTickerDataParams, GetTransactionOnlineParams, type GetWarmholeSignParams, type GetWarmholeSignResponse, type GuardianSignatureItem, type HistoryOrderItem, HttpEnvParams, HttpKlineIntervalEnum, type ISigner, IsVoteNodeEnum, KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, type LogLevel, type LogSink, Logger, type LoggerOptions, MarketDetailResponse, MarketInfo, MxSDK, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, NodeTypeEnum, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OracleType, OrderItem, OrderResponse, OrderStatusEnum, OrderTypeEnum, type PaginationParams, PlaceOrderParams, type PoolLevelConfig, PoolOpenOrdersResponse, PoolResponse, type PoolSymbolAllResponse, type PositionHistoryItem, PositionResponse, PositionTpSlOrderParams, PositionType, type PostVoteResponse, type PostVoteSignatureParams, PriceResponse, type ProfitLockItem, type RemoveFavoriteParams, SDK_VERSION, type SearchMarketParams, SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type SignerLike, TickerDataItem, type TickersDataResponse, TradeFlowAccountTypeEnum, type TradeFlowItem, TradeFlowTypeEnum, TriggerTypeEnum, VoteTypeEnum, approve, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, execution, forwarder, fromViemWalletClient, getAllowanceApproved, getBalanceOf, getBaseDetail, getBaseUrlByEnv, getGasByRatio, getMarketDetail, getMarketList, getOraclePrice, getPoolDetail, getPoolList, getPoolOpenOrders, getPublicClient, getSdkLogSink, getTickerData, getTokenInfo, getWalletClient, getWalletProvider, normalizeSigner, sdkError, sdkLog, sdkWarn, setConfigManagerForViem, setSdkLogSink, signAndSubmit, transaction as transactions };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { O as OracleType, H as HttpKlineIntervalEnum, A as AccessTokenRequest, a as ApiResponse, C as ChainId, P as PoolResponse, b as PositionResponse, c as OrderResponse, d as PoolOpenOrdersResponse, K as KlineDataItemType, T as TickerDataItem, S as SearchResultResponse, F as FavoritesListItem, B as BaseDetailResponse, M as MarketDetailResponse, e as MarketInfo, f as PositionType, g as PlaceOrderParams, h as PositionTpSlOrderParams, i as OrderItem, j as Address$1, k as ContractAddress, l as BaseResponse, m as SearchTypeEnum, n as SearchSecondTypeEnum, o as PriceResponse, p as HttpEnvParams } from './index-BDOPfmoC.js';
2
- export { U as AccessTokenResponse, R as AccessTokenType, u as AddTpSLParams, D as COMMON_LP_AMOUNT_DECIMALS, z as COMMON_PRICE_DECIMALS, v as CancelTpSLParams, a0 as ChainIdRequest, w as CreatePoolRequest, L as DashboardType, a9 as Direction, J as ErrorCode, a5 as FavoritesDefaultItem, a1 as FavoritesType, $ as MarketCapType, W as MarketPool, X as MarketPoolResponse, V as MarketPoolState, _ as MarketType, N as NetWorkFee, I as ObjectType, a8 as OperationType, ac as Order, ad as OrderStatus, a6 as OrderType, Z as PoolOpenOrder, ab as Position, Y as PriceType, a2 as SearchResultContractItem, a3 as SearchResultCookItem, a4 as SearchResultEarnItem, Q as StatDashBoardResponse, aa as TimeInForce, x as TpSLParams, y as TpSl, ae as TradingResult, a7 as TriggerType, af as UpdateOrderTpSlParams, q as base, G as getPriceData, E as getPricesData, t as market, s as pool, r as quote } from './index-BDOPfmoC.js';
1
+ import { O as OracleType, H as HttpKlineIntervalEnum, A as AccessTokenRequest, a as ApiResponse, C as ChainId, P as PoolResponse, b as PositionResponse, c as OrderResponse, d as PoolOpenOrdersResponse, K as KlineDataItemType, T as TickerDataItem, S as SearchResultResponse, G as GetTransactionOnlineParams, F as FavoritesListItem, B as BaseDetailResponse, M as MarketDetailResponse, e as MarketInfo, f as PositionType, g as PlaceOrderParams, h as PositionTpSlOrderParams, i as OrderItem, j as Address$1, k as ContractAddress, l as BaseResponse, m as SearchTypeEnum, n as SearchSecondTypeEnum, o as PriceResponse, p as HttpEnvParams, q as Address$2 } from './index-TdhN-jAO.js';
2
+ export { W as AccessTokenResponse, V as AccessTokenType, v as AddTpSLParams, E as COMMON_LP_AMOUNT_DECIMALS, D as COMMON_PRICE_DECIMALS, w as CancelTpSLParams, a2 as ChainIdRequest, x as CreatePoolRequest, R as DashboardType, ab as Direction, Q as ErrorCode, a7 as FavoritesDefaultItem, a3 as FavoritesType, a1 as MarketCapType, Y as MarketPool, Z as MarketPoolResponse, X as MarketPoolState, a0 as MarketType, N as NetWorkFee, L as ObjectType, aa as OperationType, ae as Order, af as OrderStatus, a8 as OrderType, $ as PoolOpenOrder, ad as Position, _ as PriceType, a4 as SearchResultContractItem, a5 as SearchResultCookItem, a6 as SearchResultEarnItem, U as StatDashBoardResponse, ac as TimeInForce, y as TpSLParams, z as TpSl, ag as TradingResult, a9 as TriggerType, ah as UpdateOrderTpSlParams, r as base, J as getPriceData, I as getPricesData, u as market, t as pool, s as quote } from './index-TdhN-jAO.js';
3
3
  import * as viem from 'viem';
4
4
  import { WalletClient, Address, PublicClient, Abi } from 'viem';
5
5
  export { formatUnits, parseUnits } from 'viem';
@@ -802,6 +802,22 @@ interface PaginationParams {
802
802
  after?: number;
803
803
  before?: number;
804
804
  }
805
+ interface GetProfitLockParams extends PaginationParams {
806
+ chainId?: number;
807
+ poolId?: string;
808
+ }
809
+ interface ProfitLockItem {
810
+ id: number;
811
+ chainId: number;
812
+ poolId: string;
813
+ account: string;
814
+ profitBaseAmount: string;
815
+ profitQuoteAmount: string;
816
+ usedQuoteAmount: string;
817
+ releaseTime: number;
818
+ txHash: string;
819
+ txTime: number;
820
+ }
805
821
 
806
822
  declare class Api extends Request {
807
823
  private logger;
@@ -811,6 +827,7 @@ declare class Api extends Request {
811
827
  fetchForwarderGetApi(params: FetchForwarderGetParams): Promise<FetchForwarderGetResponse>;
812
828
  getPoolList(): Promise<ApiResponse<any[]>>;
813
829
  forwarderTxApi(params: ForwarderTxParams, chainId: number): Promise<ApiResponse<any>>;
830
+ adjustCollateralForwarderTxApi(params: AdjustCollateralForwarderParams, chainId: number): Promise<ApiResponse<any>>;
814
831
  getOraclePrice(chainId: ChainId, poolIds?: string[]): Promise<Record<string, any>>;
815
832
  getPoolDetail(chainId: number, poolId: string): Promise<PoolResponse>;
816
833
  getPoolLevelConfig({ poolId, chainId }: GetPoolLevelConfigParams): Promise<ApiResponse<PoolLevelConfig>>;
@@ -833,6 +850,7 @@ declare class Api extends Request {
833
850
  searchMarketAuth({ accessToken, address, ...params }: SearchMarketParams & AccessTokenRequest): Promise<ApiResponse<SearchResultResponse>>;
834
851
  searchMarket({ ...params }: SearchMarketParams): Promise<ApiResponse<SearchResultResponse>>;
835
852
  addFavorite({ accessToken, address, ...params }: AddFavoriteParams & AccessTokenRequest): Promise<ApiResponse<null>>;
853
+ getTransactionOnline({ accessToken, address, ...params }: GetTransactionOnlineParams & AccessTokenRequest): Promise<ApiResponse<any>>;
836
854
  addFavoritesBatch(params: AddFavoritesBatchParams): Promise<ApiResponse<null>>;
837
855
  removeFavorite({ accessToken, address, ...params }: RemoveFavoriteParams & AccessTokenRequest): Promise<ApiResponse<null>>;
838
856
  getFavoritesList({ accessToken, address, ...params }: FavoritesListParams & AccessTokenRequest): Promise<ApiResponse<FavoritesListItem[]>>;
@@ -875,6 +893,7 @@ declare class Api extends Request {
875
893
  accessToken: string;
876
894
  broker: string;
877
895
  }): Promise<ApiResponse<number>>;
896
+ getProfitLock(params?: GetProfitLockParams): Promise<ApiResponse<ProfitLockItem[]>>;
878
897
  getPoolAppealStatus({ poolId, chainId, address, accessToken }: {
879
898
  poolId: string;
880
899
  chainId: number;
@@ -1396,6 +1415,29 @@ declare class Seamless {
1396
1415
  nonce: any;
1397
1416
  forwardFeeToken: `0x${string}`;
1398
1417
  }>;
1418
+ adjustCollateral({ chainId, seamlessAddress, forwardFeeToken, poolId, positionId, adjustAmount, depositData, }: {
1419
+ chainId: ChainId;
1420
+ seamlessAddress: string;
1421
+ forwardFeeToken: string;
1422
+ poolId: string;
1423
+ positionId: string;
1424
+ adjustAmount: string;
1425
+ depositData: {
1426
+ token: string;
1427
+ amount: string;
1428
+ };
1429
+ }): Promise<{
1430
+ code: number;
1431
+ data: {
1432
+ txId: string;
1433
+ hash: any;
1434
+ };
1435
+ message?: undefined;
1436
+ } | {
1437
+ code: number;
1438
+ data: null;
1439
+ message: string;
1440
+ }>;
1399
1441
  }
1400
1442
 
1401
1443
  /** Cast viem getContract result so .read/.write and legacy contract.methodName() accept any ABI function name. */
@@ -1443,8 +1485,10 @@ declare class Appeal extends BaseMyxClient {
1443
1485
  */
1444
1486
  submitAppeal(poolId: string, lpToken: Address, lpAmount: string): Promise<{
1445
1487
  transaction: viem.TransactionReceipt;
1446
- caseId: bigint;
1488
+ txId: string;
1489
+ hash: any;
1447
1490
  }>;
1491
+ getCaseIdFromTransaction(txHash: TransactionHash): Promise<bigint | null>;
1448
1492
  /**
1449
1493
  * vote for appeal
1450
1494
  * @param caseId - the case id
@@ -1737,6 +1781,18 @@ type ForwarderTxParams = {
1737
1781
  signature: string;
1738
1782
  forwardFeeToken: string;
1739
1783
  };
1784
+ type AdjustCollateralForwarderParams = {
1785
+ from: string;
1786
+ to: string;
1787
+ value: string;
1788
+ gas: string;
1789
+ txId: string;
1790
+ createdAt: string;
1791
+ deadline: number;
1792
+ data: string;
1793
+ poolIds: string[];
1794
+ forwardFeeToken: string;
1795
+ };
1740
1796
  type FetchForwarderGetParams = {
1741
1797
  requestId: string;
1742
1798
  };
@@ -1901,37 +1957,9 @@ interface BuildSignDataParams {
1901
1957
  to: Address;
1902
1958
  }
1903
1959
  declare const buildSignData: ({ chainId, data, from, to, }: BuildSignDataParams) => Promise<{
1904
- domain: {
1905
- name: any;
1906
- version: any;
1907
- chainId: any;
1908
- verifyingContract: any;
1909
- };
1910
1960
  createAt: number;
1911
1961
  deadline: number;
1912
1962
  txId: string;
1913
- types: {
1914
- readonly ForwardRequest: readonly [{
1915
- readonly name: "from";
1916
- readonly type: "address";
1917
- }, {
1918
- readonly name: "to";
1919
- readonly type: "address";
1920
- }, {
1921
- readonly name: "value";
1922
- readonly type: "uint256";
1923
- }, {
1924
- readonly name: "gas";
1925
- readonly type: "uint256";
1926
- }, {
1927
- readonly name: "deadline";
1928
- readonly type: "uint48";
1929
- }, {
1930
- readonly name: "data";
1931
- readonly type: "bytes";
1932
- }];
1933
- };
1934
- primaryType: any;
1935
1963
  signData: {
1936
1964
  from: `0x${string}`;
1937
1965
  to: `0x${string}`;
@@ -1940,6 +1968,7 @@ declare const buildSignData: ({ chainId, data, from, to, }: BuildSignDataParams)
1940
1968
  value: bigint;
1941
1969
  gas: bigint;
1942
1970
  };
1971
+ gasEscrow: bigint;
1943
1972
  }>;
1944
1973
  interface BuildHexDataAndExecutionGasFeeParams {
1945
1974
  chainId: number;
@@ -2004,6 +2033,21 @@ declare namespace transaction {
2004
2033
  export { transaction_waitForTransactionReceipt as waitForTransactionReceipt };
2005
2034
  }
2006
2035
 
2036
+ interface SignAndSubmitParams {
2037
+ chainId: ChainId;
2038
+ account: Address$2;
2039
+ abi: any;
2040
+ method: string;
2041
+ args: any[];
2042
+ poolIds: string[];
2043
+ to?: Address$2;
2044
+ }
2045
+ declare const signAndSubmit: ({ chainId, account, abi, method, args, poolIds, to: _to }: SignAndSubmitParams) => Promise<{
2046
+ hash: any;
2047
+ txId: string;
2048
+ receipt: viem.TransactionReceipt;
2049
+ }>;
2050
+
2007
2051
  declare class MxSDK {
2008
2052
  #private;
2009
2053
  version: string;
@@ -2038,4 +2082,4 @@ declare function normalizeSigner(signerLike: SignerLike): ISigner;
2038
2082
 
2039
2083
  declare const SDK_VERSION: string;
2040
2084
 
2041
- export { AccessTokenRequest, type AddFavoriteParams, type AddFavoritesBatchParams, Address$1 as Address, 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, BaseDetailResponse, BaseResponse, ChainId, CloseTypeEnum, DirectionEnum, ExecTypeEnum, FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, 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, HttpEnvParams, HttpKlineIntervalEnum, type ISigner, IsVoteNodeEnum, KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, type LogLevel, type LogSink, Logger, type LoggerOptions, MarketDetailResponse, MarketInfo, MxSDK, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, NodeTypeEnum, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OracleType, OrderItem, OrderResponse, OrderStatusEnum, OrderTypeEnum, type PaginationParams, PlaceOrderParams, type PoolLevelConfig, PoolOpenOrdersResponse, PoolResponse, type PoolSymbolAllResponse, type PositionHistoryItem, PositionResponse, PositionTpSlOrderParams, PositionType, type PostVoteResponse, type PostVoteSignatureParams, PriceResponse, type RemoveFavoriteParams, SDK_VERSION, type SearchMarketParams, SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type SignerLike, TickerDataItem, type TickersDataResponse, TradeFlowAccountTypeEnum, type TradeFlowItem, TradeFlowTypeEnum, TriggerTypeEnum, VoteTypeEnum, approve, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, execution, forwarder, fromViemWalletClient, getAllowanceApproved, getBalanceOf, getBaseDetail, getBaseUrlByEnv, getGasByRatio, getMarketDetail, getMarketList, getOraclePrice, getPoolDetail, getPoolList, getPoolOpenOrders, getPublicClient, getSdkLogSink, getTickerData, getTokenInfo, getWalletClient, getWalletProvider, normalizeSigner, sdkError, sdkLog, sdkWarn, setConfigManagerForViem, setSdkLogSink, transaction as transactions };
2085
+ export { AccessTokenRequest, type AddFavoriteParams, type AddFavoritesBatchParams, Address$1 as Address, type AdjustCollateralForwarderParams, 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, BaseDetailResponse, BaseResponse, ChainId, CloseTypeEnum, DirectionEnum, ExecTypeEnum, FavoritesListItem, type FavoritesListParams, type FavoritesTimeInterval, 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 GetProfitLockParams, type GetTickerDataParams, GetTransactionOnlineParams, type GetWarmholeSignParams, type GetWarmholeSignResponse, type GuardianSignatureItem, type HistoryOrderItem, HttpEnvParams, HttpKlineIntervalEnum, type ISigner, IsVoteNodeEnum, KlineDataItemType, type KlineDataResponse, type KlineResolution, type LevelConfig, type LogLevel, type LogSink, Logger, type LoggerOptions, MarketDetailResponse, MarketInfo, MxSDK, MyxClient, type MyxClientConfig, type MyxSubscriptionOptions, NodeTypeEnum, type OnKlineCallback, type OnOrderCallback, type OnPositionCallback, type OnTickersAllCallback, type OnTickersCallback, OperationEnum, OracleType, OrderItem, OrderResponse, OrderStatusEnum, OrderTypeEnum, type PaginationParams, PlaceOrderParams, type PoolLevelConfig, PoolOpenOrdersResponse, PoolResponse, type PoolSymbolAllResponse, type PositionHistoryItem, PositionResponse, PositionTpSlOrderParams, PositionType, type PostVoteResponse, type PostVoteSignatureParams, PriceResponse, type ProfitLockItem, type RemoveFavoriteParams, SDK_VERSION, type SearchMarketParams, SearchResultResponse, SearchSecondTypeEnum, SearchTypeEnum, type SignerLike, TickerDataItem, type TickersDataResponse, TradeFlowAccountTypeEnum, type TradeFlowItem, TradeFlowTypeEnum, TriggerTypeEnum, VoteTypeEnum, approve, bigintAmountSlipperCalculator, bigintTradingGasPriceWithRatio, bigintTradingGasToRatioCalculator, execution, forwarder, fromViemWalletClient, getAllowanceApproved, getBalanceOf, getBaseDetail, getBaseUrlByEnv, getGasByRatio, getMarketDetail, getMarketList, getOraclePrice, getPoolDetail, getPoolList, getPoolOpenOrders, getPublicClient, getSdkLogSink, getTickerData, getTokenInfo, getWalletClient, getWalletProvider, normalizeSigner, sdkError, sdkLog, sdkWarn, setConfigManagerForViem, setSdkLogSink, signAndSubmit, transaction as transactions };