@myx-trade/sdk 0.1.130 → 0.1.131

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import * as ethers from 'ethers';
2
- import { AddressLike, Signer, ethers as ethers$1 } from 'ethers';
1
+ import { AddressLike, Signer, ethers } from 'ethers';
3
2
  export { formatUnits, parseUnits } from 'ethers';
4
3
  import { Options, Event } from 'reconnecting-websocket';
5
4
  import { WalletClient } from 'viem';
@@ -49,49 +48,49 @@ interface CancelTpSLParams {
49
48
  orderId: string;
50
49
  }
51
50
 
52
- declare const createPool: ({ chainId, baseToken, marketId }: CreatePoolRequest) => Promise<string | undefined>;
51
+ declare const createPool: ({ chainId, baseToken, marketId }: CreatePoolRequest) => Promise<any>;
53
52
 
54
- declare const getMarketPoolId: ({ chainId, baseToken, marketId, }: CreatePoolRequest) => Promise<string | undefined>;
55
- declare const getMarketPools: (chainId: ChainId) => Promise<string[]>;
53
+ declare const getMarketPoolId: ({ chainId, baseToken, marketId, }: CreatePoolRequest) => Promise<any>;
54
+ declare const getMarketPools: (chainId: ChainId) => Promise<any>;
56
55
  declare const getPoolInfo$1: (chainId: ChainId, poolId: string, marketPrice?: bigint) => Promise<{
57
56
  quotePool: {
58
- poolToken: string;
59
- exchangeRate: bigint;
60
- poolTokenPrice: bigint;
61
- poolTokenSupply: bigint;
57
+ poolToken: any;
58
+ exchangeRate: any;
59
+ poolTokenPrice: any;
60
+ poolTokenSupply: any;
62
61
  };
63
62
  basePool: {
64
- poolToken: string;
65
- exchangeRate: bigint;
66
- poolTokenPrice: bigint;
67
- poolTokenSupply: bigint;
63
+ poolToken: any;
64
+ exchangeRate: any;
65
+ poolTokenPrice: any;
66
+ poolTokenSupply: any;
68
67
  };
69
68
  reserveInfo: {
70
- baseTotalAmount: bigint;
71
- baseReservedAmount: bigint;
72
- quoteTotalAmount: bigint;
73
- quoteReservedAmount: bigint;
69
+ baseTotalAmount: any;
70
+ baseReservedAmount: any;
71
+ quoteTotalAmount: any;
72
+ quoteReservedAmount: any;
74
73
  };
75
74
  fundingInfo: {
76
- nextFundingRate: bigint;
77
- lastFundingFeeTracker: bigint;
78
- nextEpochTime: bigint;
75
+ nextFundingRate: any;
76
+ lastFundingFeeTracker: any;
77
+ nextEpochTime: any;
79
78
  };
80
79
  ioTracker: {
81
- tracker: bigint;
82
- longSize: bigint;
83
- shortSize: bigint;
84
- poolEntryPrice: bigint;
80
+ tracker: any;
81
+ longSize: any;
82
+ shortSize: any;
83
+ poolEntryPrice: any;
85
84
  };
86
85
  }>;
87
86
 
88
- declare const getUserGenesisShare: (chainId: ChainId, tokenAddress: string, account: string) => Promise<bigint>;
87
+ declare const getUserGenesisShare: (chainId: ChainId, tokenAddress: string, account: string) => Promise<any>;
89
88
 
90
- declare const addTpSl: (params: AddTpSLParams) => Promise<ethers.ContractTransactionReceipt | null>;
89
+ declare const addTpSl: (params: AddTpSLParams) => Promise<any>;
91
90
 
92
- declare const cancelTpSl: (params: CancelTpSLParams) => Promise<ethers.ContractTransactionReceipt | null>;
91
+ declare const cancelTpSl: (params: CancelTpSLParams) => Promise<any>;
93
92
 
94
- declare const reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<ethers.ContractTransactionReceipt | null>;
93
+ declare const reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<any>;
95
94
 
96
95
  /**
97
96
  * Trading related types and enums
@@ -423,6 +422,8 @@ interface SearchResultContractItem {
423
422
  tvl: string;
424
423
  marketCap: string;
425
424
  globalId: number;
425
+ baseSymbol: string;
426
+ quoteSymbol: string;
426
427
  }
427
428
  interface SearchResultCookItem {
428
429
  chainId: ChainId;
@@ -886,21 +887,21 @@ interface PreviewWithdrawDataParams {
886
887
  amount: string | number;
887
888
  }
888
889
 
889
- declare const claimBasePoolRebate: (params: ClaimParams) => Promise<ethers.ContractTransactionResponse | undefined>;
890
- declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<ethers.ContractTransactionResponse | undefined>;
890
+ declare const claimBasePoolRebate: (params: ClaimParams) => Promise<any>;
891
+ declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
891
892
 
892
- declare const deposit$1: (params: Deposit) => Promise<ethers.ContractTransactionResponse | undefined>;
893
+ declare const deposit$1: (params: Deposit) => Promise<any>;
893
894
 
894
- declare const withdraw$1: (params: WithdrawParams) => Promise<ethers.ContractTransactionReceipt | null | undefined>;
895
+ declare const withdraw$1: (params: WithdrawParams) => Promise<any>;
895
896
 
896
- declare const getRewards$1: (params: RewardsParams) => Promise<bigint | undefined>;
897
+ declare const getRewards$1: (params: RewardsParams) => Promise<any>;
897
898
 
898
899
  declare const previewUserWithdrawData: ({ chainId, account, poolId, amount }: PreviewWithdrawDataParams) => Promise<{
899
- baseAmountOut: bigint;
900
- rebateAmount: bigint;
900
+ baseAmountOut: any;
901
+ rebateAmount: any;
901
902
  } | undefined>;
902
903
 
903
- declare const getLpPrice$1: (chainId: ChainId, poolId: string) => Promise<bigint | undefined>;
904
+ declare const getLpPrice$1: (chainId: ChainId, poolId: string) => Promise<any>;
904
905
 
905
906
  declare const index$2_claimBasePoolRebate: typeof claimBasePoolRebate;
906
907
  declare const index$2_claimBasePoolRebates: typeof claimBasePoolRebates;
@@ -909,18 +910,18 @@ declare namespace index$2 {
909
910
  export { index$2_claimBasePoolRebate as claimBasePoolRebate, index$2_claimBasePoolRebates as claimBasePoolRebates, deposit$1 as deposit, getLpPrice$1 as getLpPrice, getRewards$1 as getRewards, index$2_previewUserWithdrawData as previewUserWithdrawData, withdraw$1 as withdraw };
910
911
  }
911
912
 
912
- declare const deposit: (params: Deposit) => Promise<ethers.ContractTransactionResponse | undefined>;
913
+ declare const deposit: (params: Deposit) => Promise<any>;
913
914
 
914
- declare const withdraw: (params: WithdrawParams) => Promise<ethers.ContractTransactionReceipt | null | undefined>;
915
+ declare const withdraw: (params: WithdrawParams) => Promise<any>;
915
916
 
916
- declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<ethers.ContractTransactionResponse | null>;
917
+ declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<any>;
917
918
 
918
- declare const getRewards: (params: RewardsParams) => Promise<bigint | undefined>;
919
+ declare const getRewards: (params: RewardsParams) => Promise<any>;
919
920
 
920
- declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<ethers.ContractTransactionResponse | undefined>;
921
- declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<ethers.ContractTransactionResponse | undefined>;
921
+ declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<any>;
922
+ declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
922
923
 
923
- declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<bigint | undefined>;
924
+ declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<any>;
924
925
 
925
926
  declare const index$1_claimQuotePoolRebate: typeof claimQuotePoolRebate;
926
927
  declare const index$1_claimQuotePoolRebates: typeof claimQuotePoolRebates;
@@ -933,16 +934,9 @@ declare namespace index$1 {
933
934
  export { index$1_claimQuotePoolRebate as claimQuotePoolRebate, index$1_claimQuotePoolRebates as claimQuotePoolRebates, index$1_deposit as deposit, index$1_getLpPrice as getLpPrice, index$1_getRewards as getRewards, index$1_transfer as transfer, index$1_withdraw as withdraw };
934
935
  }
935
936
 
936
- declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint] & {
937
- quoteToken: string;
938
- baseReserveRatio: bigint;
939
- quoteReserveRatio: bigint;
940
- oracleFeeUsd: bigint;
941
- oracleRefundFeeUsd: bigint;
942
- poolPrimeThreshold: bigint;
943
- }) | undefined>;
937
+ declare const getMarket: (chainId: ChainId, marketId: string) => Promise<any>;
944
938
 
945
- declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<bigint | undefined>;
939
+ declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<any>;
946
940
 
947
941
  declare const index_getMarket: typeof getMarket;
948
942
  declare const index_getOracleFee: typeof getOracleFee;
@@ -985,9 +979,9 @@ declare const bigintAmountSlipperCalculator: (amount: bigint, slipper?: Number)
985
979
  declare const getTokenInfo: (chainId: number, tokenAddress: string, account?: string) => Promise<{
986
980
  balance?: number | undefined;
987
981
  address: string;
988
- name: string;
989
- symbol: string;
990
- decimals: bigint;
982
+ name: any;
983
+ symbol: any;
984
+ decimals: any;
991
985
  icon: string;
992
986
  totalSupply: number;
993
987
  }>;
@@ -1201,7 +1195,7 @@ interface MyxClientConfig {
1201
1195
  signer?: Signer;
1202
1196
  seamlessAccount?: {
1203
1197
  masterAddress: string;
1204
- wallet: ethers$1.Wallet | null;
1198
+ wallet: ethers.Wallet | null;
1205
1199
  authorized: boolean;
1206
1200
  };
1207
1201
  walletClient?: WalletClient;
@@ -1221,7 +1215,7 @@ declare class ConfigManager {
1221
1215
  clear(): void;
1222
1216
  startSeamlessMode(open: boolean): MyxClientConfig;
1223
1217
  updateSeamlessWallet({ wallet, authorized, masterAddress }: {
1224
- wallet?: ethers$1.Wallet;
1218
+ wallet?: ethers.Wallet;
1225
1219
  authorized?: boolean;
1226
1220
  masterAddress?: string;
1227
1221
  }): void;
@@ -1329,7 +1323,7 @@ declare class Utils {
1329
1323
  quoteAddress: string;
1330
1324
  amount?: string;
1331
1325
  spenderAddress?: string;
1332
- signer?: ethers$1.Signer;
1326
+ signer?: ethers.Signer;
1333
1327
  }): Promise<{
1334
1328
  code: number;
1335
1329
  message: any;
@@ -1496,9 +1490,9 @@ declare class Seamless {
1496
1490
  private utils;
1497
1491
  private account;
1498
1492
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, account: Account);
1499
- onCheckRelayer(account: string, relayer: string): Promise<boolean>;
1493
+ onCheckRelayer(account: string, relayer: string): Promise<any>;
1500
1494
  getUSDPermitParams(deadline: number): Promise<{
1501
- token: string | ethers$1.Addressable;
1495
+ token: string | ethers.Addressable;
1502
1496
  owner: Promise<string> | undefined;
1503
1497
  spender: string;
1504
1498
  value: bigint;
@@ -1515,7 +1509,7 @@ declare class Seamless {
1515
1509
  deadline: number;
1516
1510
  data: string;
1517
1511
  nonce: string;
1518
- }, chainId: number, provider?: ethers$1.Signer): Promise<ApiResponse<any>>;
1512
+ }, chainId: number, provider?: ethers.Signer): Promise<ApiResponse<any>>;
1519
1513
  authorizeSeamlessAccount({ approve, seamlessAddress, chainId }: {
1520
1514
  approve: boolean;
1521
1515
  seamlessAddress: string;
@@ -1536,7 +1530,7 @@ declare class Seamless {
1536
1530
  data: {
1537
1531
  masterAddress: string;
1538
1532
  seamlessAccount: string;
1539
- authorized: boolean;
1533
+ authorized: any;
1540
1534
  };
1541
1535
  }>;
1542
1536
  exportSeamlessPrivateKey({ password, apiKey }: {
@@ -1554,9 +1548,9 @@ declare class Seamless {
1554
1548
  }): Promise<{
1555
1549
  code: number;
1556
1550
  data: {
1557
- masterAddress: string;
1551
+ masterAddress: any;
1558
1552
  seamlessAccount: string;
1559
- authorized: boolean;
1553
+ authorized: any;
1560
1554
  apiKey: string;
1561
1555
  };
1562
1556
  }>;
@@ -1576,7 +1570,7 @@ declare class Seamless {
1576
1570
  data: {
1577
1571
  masterAddress: string;
1578
1572
  seamlessAccount: string;
1579
- authorized: boolean;
1573
+ authorized: any;
1580
1574
  apiKey: string;
1581
1575
  };
1582
1576
  message?: undefined;
@@ -1663,13 +1657,13 @@ declare class Order {
1663
1657
  data: {
1664
1658
  success: boolean;
1665
1659
  orderId: string | null;
1666
- transactionHash: string;
1667
- blockNumber: number | undefined;
1668
- gasUsed: string | undefined;
1660
+ transactionHash: any;
1661
+ blockNumber: any;
1662
+ gasUsed: any;
1669
1663
  status: string;
1670
1664
  confirmations: number;
1671
1665
  timestamp: number;
1672
- receipt: ethers$1.ContractTransactionReceipt | null;
1666
+ receipt: any;
1673
1667
  };
1674
1668
  } | {
1675
1669
  code: number;
@@ -1691,13 +1685,13 @@ declare class Order {
1691
1685
  code: number;
1692
1686
  message: string;
1693
1687
  data: string | null;
1694
- transactionHash: string;
1695
- blockNumber: number | undefined;
1696
- gasUsed: string | undefined;
1688
+ transactionHash: any;
1689
+ blockNumber: any;
1690
+ gasUsed: any;
1697
1691
  status: string;
1698
1692
  confirmations: number;
1699
1693
  timestamp: number;
1700
- receipt: ethers$1.ContractTransactionReceipt | null;
1694
+ receipt: any;
1701
1695
  } | {
1702
1696
  code: number;
1703
1697
  message: any;
@@ -1720,13 +1714,13 @@ declare class Order {
1720
1714
  data: {
1721
1715
  success: boolean;
1722
1716
  orderId: string | null;
1723
- transactionHash: string;
1724
- blockNumber: number | undefined;
1725
- gasUsed: string | undefined;
1717
+ transactionHash: any;
1718
+ blockNumber: any;
1719
+ gasUsed: any;
1726
1720
  status: string;
1727
1721
  confirmations: number;
1728
1722
  timestamp: number;
1729
- receipt: ethers$1.ContractTransactionReceipt | null;
1723
+ receipt: any;
1730
1724
  };
1731
1725
  } | {
1732
1726
  code: number;
@@ -1743,13 +1737,13 @@ declare class Order {
1743
1737
  data: {
1744
1738
  success: boolean;
1745
1739
  orderId: string | null;
1746
- transactionHash: string;
1747
- blockNumber: number | undefined;
1748
- gasUsed: string | undefined;
1740
+ transactionHash: any;
1741
+ blockNumber: any;
1742
+ gasUsed: any;
1749
1743
  status: string;
1750
1744
  confirmations: number;
1751
1745
  timestamp: number;
1752
- receipt: ethers$1.ContractTransactionReceipt | null;
1746
+ receipt: any;
1753
1747
  };
1754
1748
  } | {
1755
1749
  code: number;
@@ -1775,7 +1769,7 @@ declare class Order {
1775
1769
  }>;
1776
1770
  updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number): Promise<{
1777
1771
  code: number;
1778
- data: ethers$1.ContractTransactionReceipt | null;
1772
+ data: any;
1779
1773
  message: string;
1780
1774
  } | {
1781
1775
  code: number;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import * as ethers from 'ethers';
2
- import { AddressLike, Signer, ethers as ethers$1 } from 'ethers';
1
+ import { AddressLike, Signer, ethers } from 'ethers';
3
2
  export { formatUnits, parseUnits } from 'ethers';
4
3
  import { Options, Event } from 'reconnecting-websocket';
5
4
  import { WalletClient } from 'viem';
@@ -49,49 +48,49 @@ interface CancelTpSLParams {
49
48
  orderId: string;
50
49
  }
51
50
 
52
- declare const createPool: ({ chainId, baseToken, marketId }: CreatePoolRequest) => Promise<string | undefined>;
51
+ declare const createPool: ({ chainId, baseToken, marketId }: CreatePoolRequest) => Promise<any>;
53
52
 
54
- declare const getMarketPoolId: ({ chainId, baseToken, marketId, }: CreatePoolRequest) => Promise<string | undefined>;
55
- declare const getMarketPools: (chainId: ChainId) => Promise<string[]>;
53
+ declare const getMarketPoolId: ({ chainId, baseToken, marketId, }: CreatePoolRequest) => Promise<any>;
54
+ declare const getMarketPools: (chainId: ChainId) => Promise<any>;
56
55
  declare const getPoolInfo$1: (chainId: ChainId, poolId: string, marketPrice?: bigint) => Promise<{
57
56
  quotePool: {
58
- poolToken: string;
59
- exchangeRate: bigint;
60
- poolTokenPrice: bigint;
61
- poolTokenSupply: bigint;
57
+ poolToken: any;
58
+ exchangeRate: any;
59
+ poolTokenPrice: any;
60
+ poolTokenSupply: any;
62
61
  };
63
62
  basePool: {
64
- poolToken: string;
65
- exchangeRate: bigint;
66
- poolTokenPrice: bigint;
67
- poolTokenSupply: bigint;
63
+ poolToken: any;
64
+ exchangeRate: any;
65
+ poolTokenPrice: any;
66
+ poolTokenSupply: any;
68
67
  };
69
68
  reserveInfo: {
70
- baseTotalAmount: bigint;
71
- baseReservedAmount: bigint;
72
- quoteTotalAmount: bigint;
73
- quoteReservedAmount: bigint;
69
+ baseTotalAmount: any;
70
+ baseReservedAmount: any;
71
+ quoteTotalAmount: any;
72
+ quoteReservedAmount: any;
74
73
  };
75
74
  fundingInfo: {
76
- nextFundingRate: bigint;
77
- lastFundingFeeTracker: bigint;
78
- nextEpochTime: bigint;
75
+ nextFundingRate: any;
76
+ lastFundingFeeTracker: any;
77
+ nextEpochTime: any;
79
78
  };
80
79
  ioTracker: {
81
- tracker: bigint;
82
- longSize: bigint;
83
- shortSize: bigint;
84
- poolEntryPrice: bigint;
80
+ tracker: any;
81
+ longSize: any;
82
+ shortSize: any;
83
+ poolEntryPrice: any;
85
84
  };
86
85
  }>;
87
86
 
88
- declare const getUserGenesisShare: (chainId: ChainId, tokenAddress: string, account: string) => Promise<bigint>;
87
+ declare const getUserGenesisShare: (chainId: ChainId, tokenAddress: string, account: string) => Promise<any>;
89
88
 
90
- declare const addTpSl: (params: AddTpSLParams) => Promise<ethers.ContractTransactionReceipt | null>;
89
+ declare const addTpSl: (params: AddTpSLParams) => Promise<any>;
91
90
 
92
- declare const cancelTpSl: (params: CancelTpSLParams) => Promise<ethers.ContractTransactionReceipt | null>;
91
+ declare const cancelTpSl: (params: CancelTpSLParams) => Promise<any>;
93
92
 
94
- declare const reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<ethers.ContractTransactionReceipt | null>;
93
+ declare const reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<any>;
95
94
 
96
95
  /**
97
96
  * Trading related types and enums
@@ -423,6 +422,8 @@ interface SearchResultContractItem {
423
422
  tvl: string;
424
423
  marketCap: string;
425
424
  globalId: number;
425
+ baseSymbol: string;
426
+ quoteSymbol: string;
426
427
  }
427
428
  interface SearchResultCookItem {
428
429
  chainId: ChainId;
@@ -886,21 +887,21 @@ interface PreviewWithdrawDataParams {
886
887
  amount: string | number;
887
888
  }
888
889
 
889
- declare const claimBasePoolRebate: (params: ClaimParams) => Promise<ethers.ContractTransactionResponse | undefined>;
890
- declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<ethers.ContractTransactionResponse | undefined>;
890
+ declare const claimBasePoolRebate: (params: ClaimParams) => Promise<any>;
891
+ declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
891
892
 
892
- declare const deposit$1: (params: Deposit) => Promise<ethers.ContractTransactionResponse | undefined>;
893
+ declare const deposit$1: (params: Deposit) => Promise<any>;
893
894
 
894
- declare const withdraw$1: (params: WithdrawParams) => Promise<ethers.ContractTransactionReceipt | null | undefined>;
895
+ declare const withdraw$1: (params: WithdrawParams) => Promise<any>;
895
896
 
896
- declare const getRewards$1: (params: RewardsParams) => Promise<bigint | undefined>;
897
+ declare const getRewards$1: (params: RewardsParams) => Promise<any>;
897
898
 
898
899
  declare const previewUserWithdrawData: ({ chainId, account, poolId, amount }: PreviewWithdrawDataParams) => Promise<{
899
- baseAmountOut: bigint;
900
- rebateAmount: bigint;
900
+ baseAmountOut: any;
901
+ rebateAmount: any;
901
902
  } | undefined>;
902
903
 
903
- declare const getLpPrice$1: (chainId: ChainId, poolId: string) => Promise<bigint | undefined>;
904
+ declare const getLpPrice$1: (chainId: ChainId, poolId: string) => Promise<any>;
904
905
 
905
906
  declare const index$2_claimBasePoolRebate: typeof claimBasePoolRebate;
906
907
  declare const index$2_claimBasePoolRebates: typeof claimBasePoolRebates;
@@ -909,18 +910,18 @@ declare namespace index$2 {
909
910
  export { index$2_claimBasePoolRebate as claimBasePoolRebate, index$2_claimBasePoolRebates as claimBasePoolRebates, deposit$1 as deposit, getLpPrice$1 as getLpPrice, getRewards$1 as getRewards, index$2_previewUserWithdrawData as previewUserWithdrawData, withdraw$1 as withdraw };
910
911
  }
911
912
 
912
- declare const deposit: (params: Deposit) => Promise<ethers.ContractTransactionResponse | undefined>;
913
+ declare const deposit: (params: Deposit) => Promise<any>;
913
914
 
914
- declare const withdraw: (params: WithdrawParams) => Promise<ethers.ContractTransactionReceipt | null | undefined>;
915
+ declare const withdraw: (params: WithdrawParams) => Promise<any>;
915
916
 
916
- declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<ethers.ContractTransactionResponse | null>;
917
+ declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<any>;
917
918
 
918
- declare const getRewards: (params: RewardsParams) => Promise<bigint | undefined>;
919
+ declare const getRewards: (params: RewardsParams) => Promise<any>;
919
920
 
920
- declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<ethers.ContractTransactionResponse | undefined>;
921
- declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<ethers.ContractTransactionResponse | undefined>;
921
+ declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<any>;
922
+ declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
922
923
 
923
- declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<bigint | undefined>;
924
+ declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<any>;
924
925
 
925
926
  declare const index$1_claimQuotePoolRebate: typeof claimQuotePoolRebate;
926
927
  declare const index$1_claimQuotePoolRebates: typeof claimQuotePoolRebates;
@@ -933,16 +934,9 @@ declare namespace index$1 {
933
934
  export { index$1_claimQuotePoolRebate as claimQuotePoolRebate, index$1_claimQuotePoolRebates as claimQuotePoolRebates, index$1_deposit as deposit, index$1_getLpPrice as getLpPrice, index$1_getRewards as getRewards, index$1_transfer as transfer, index$1_withdraw as withdraw };
934
935
  }
935
936
 
936
- declare const getMarket: (chainId: ChainId, marketId: string) => Promise<([string, bigint, bigint, bigint, bigint, bigint] & {
937
- quoteToken: string;
938
- baseReserveRatio: bigint;
939
- quoteReserveRatio: bigint;
940
- oracleFeeUsd: bigint;
941
- oracleRefundFeeUsd: bigint;
942
- poolPrimeThreshold: bigint;
943
- }) | undefined>;
937
+ declare const getMarket: (chainId: ChainId, marketId: string) => Promise<any>;
944
938
 
945
- declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<bigint | undefined>;
939
+ declare const getOracleFee: (chainId: ChainId, marketId: string) => Promise<any>;
946
940
 
947
941
  declare const index_getMarket: typeof getMarket;
948
942
  declare const index_getOracleFee: typeof getOracleFee;
@@ -985,9 +979,9 @@ declare const bigintAmountSlipperCalculator: (amount: bigint, slipper?: Number)
985
979
  declare const getTokenInfo: (chainId: number, tokenAddress: string, account?: string) => Promise<{
986
980
  balance?: number | undefined;
987
981
  address: string;
988
- name: string;
989
- symbol: string;
990
- decimals: bigint;
982
+ name: any;
983
+ symbol: any;
984
+ decimals: any;
991
985
  icon: string;
992
986
  totalSupply: number;
993
987
  }>;
@@ -1201,7 +1195,7 @@ interface MyxClientConfig {
1201
1195
  signer?: Signer;
1202
1196
  seamlessAccount?: {
1203
1197
  masterAddress: string;
1204
- wallet: ethers$1.Wallet | null;
1198
+ wallet: ethers.Wallet | null;
1205
1199
  authorized: boolean;
1206
1200
  };
1207
1201
  walletClient?: WalletClient;
@@ -1221,7 +1215,7 @@ declare class ConfigManager {
1221
1215
  clear(): void;
1222
1216
  startSeamlessMode(open: boolean): MyxClientConfig;
1223
1217
  updateSeamlessWallet({ wallet, authorized, masterAddress }: {
1224
- wallet?: ethers$1.Wallet;
1218
+ wallet?: ethers.Wallet;
1225
1219
  authorized?: boolean;
1226
1220
  masterAddress?: string;
1227
1221
  }): void;
@@ -1329,7 +1323,7 @@ declare class Utils {
1329
1323
  quoteAddress: string;
1330
1324
  amount?: string;
1331
1325
  spenderAddress?: string;
1332
- signer?: ethers$1.Signer;
1326
+ signer?: ethers.Signer;
1333
1327
  }): Promise<{
1334
1328
  code: number;
1335
1329
  message: any;
@@ -1496,9 +1490,9 @@ declare class Seamless {
1496
1490
  private utils;
1497
1491
  private account;
1498
1492
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, account: Account);
1499
- onCheckRelayer(account: string, relayer: string): Promise<boolean>;
1493
+ onCheckRelayer(account: string, relayer: string): Promise<any>;
1500
1494
  getUSDPermitParams(deadline: number): Promise<{
1501
- token: string | ethers$1.Addressable;
1495
+ token: string | ethers.Addressable;
1502
1496
  owner: Promise<string> | undefined;
1503
1497
  spender: string;
1504
1498
  value: bigint;
@@ -1515,7 +1509,7 @@ declare class Seamless {
1515
1509
  deadline: number;
1516
1510
  data: string;
1517
1511
  nonce: string;
1518
- }, chainId: number, provider?: ethers$1.Signer): Promise<ApiResponse<any>>;
1512
+ }, chainId: number, provider?: ethers.Signer): Promise<ApiResponse<any>>;
1519
1513
  authorizeSeamlessAccount({ approve, seamlessAddress, chainId }: {
1520
1514
  approve: boolean;
1521
1515
  seamlessAddress: string;
@@ -1536,7 +1530,7 @@ declare class Seamless {
1536
1530
  data: {
1537
1531
  masterAddress: string;
1538
1532
  seamlessAccount: string;
1539
- authorized: boolean;
1533
+ authorized: any;
1540
1534
  };
1541
1535
  }>;
1542
1536
  exportSeamlessPrivateKey({ password, apiKey }: {
@@ -1554,9 +1548,9 @@ declare class Seamless {
1554
1548
  }): Promise<{
1555
1549
  code: number;
1556
1550
  data: {
1557
- masterAddress: string;
1551
+ masterAddress: any;
1558
1552
  seamlessAccount: string;
1559
- authorized: boolean;
1553
+ authorized: any;
1560
1554
  apiKey: string;
1561
1555
  };
1562
1556
  }>;
@@ -1576,7 +1570,7 @@ declare class Seamless {
1576
1570
  data: {
1577
1571
  masterAddress: string;
1578
1572
  seamlessAccount: string;
1579
- authorized: boolean;
1573
+ authorized: any;
1580
1574
  apiKey: string;
1581
1575
  };
1582
1576
  message?: undefined;
@@ -1663,13 +1657,13 @@ declare class Order {
1663
1657
  data: {
1664
1658
  success: boolean;
1665
1659
  orderId: string | null;
1666
- transactionHash: string;
1667
- blockNumber: number | undefined;
1668
- gasUsed: string | undefined;
1660
+ transactionHash: any;
1661
+ blockNumber: any;
1662
+ gasUsed: any;
1669
1663
  status: string;
1670
1664
  confirmations: number;
1671
1665
  timestamp: number;
1672
- receipt: ethers$1.ContractTransactionReceipt | null;
1666
+ receipt: any;
1673
1667
  };
1674
1668
  } | {
1675
1669
  code: number;
@@ -1691,13 +1685,13 @@ declare class Order {
1691
1685
  code: number;
1692
1686
  message: string;
1693
1687
  data: string | null;
1694
- transactionHash: string;
1695
- blockNumber: number | undefined;
1696
- gasUsed: string | undefined;
1688
+ transactionHash: any;
1689
+ blockNumber: any;
1690
+ gasUsed: any;
1697
1691
  status: string;
1698
1692
  confirmations: number;
1699
1693
  timestamp: number;
1700
- receipt: ethers$1.ContractTransactionReceipt | null;
1694
+ receipt: any;
1701
1695
  } | {
1702
1696
  code: number;
1703
1697
  message: any;
@@ -1720,13 +1714,13 @@ declare class Order {
1720
1714
  data: {
1721
1715
  success: boolean;
1722
1716
  orderId: string | null;
1723
- transactionHash: string;
1724
- blockNumber: number | undefined;
1725
- gasUsed: string | undefined;
1717
+ transactionHash: any;
1718
+ blockNumber: any;
1719
+ gasUsed: any;
1726
1720
  status: string;
1727
1721
  confirmations: number;
1728
1722
  timestamp: number;
1729
- receipt: ethers$1.ContractTransactionReceipt | null;
1723
+ receipt: any;
1730
1724
  };
1731
1725
  } | {
1732
1726
  code: number;
@@ -1743,13 +1737,13 @@ declare class Order {
1743
1737
  data: {
1744
1738
  success: boolean;
1745
1739
  orderId: string | null;
1746
- transactionHash: string;
1747
- blockNumber: number | undefined;
1748
- gasUsed: string | undefined;
1740
+ transactionHash: any;
1741
+ blockNumber: any;
1742
+ gasUsed: any;
1749
1743
  status: string;
1750
1744
  confirmations: number;
1751
1745
  timestamp: number;
1752
- receipt: ethers$1.ContractTransactionReceipt | null;
1746
+ receipt: any;
1753
1747
  };
1754
1748
  } | {
1755
1749
  code: number;
@@ -1775,7 +1769,7 @@ declare class Order {
1775
1769
  }>;
1776
1770
  updateOrderTpSl(params: UpdateOrderParams, quoteAddress: string, chainId: number): Promise<{
1777
1771
  code: number;
1778
- data: ethers$1.ContractTransactionReceipt | null;
1772
+ data: any;
1779
1773
  message: string;
1780
1774
  } | {
1781
1775
  code: number;
package/dist/index.js CHANGED
@@ -1822,7 +1822,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
1822
1822
  // package.json
1823
1823
  var package_default = {
1824
1824
  name: "@myx-trade/sdk",
1825
- version: "0.1.130",
1825
+ version: "0.1.131",
1826
1826
  private: false,
1827
1827
  publishConfig: {
1828
1828
  access: "public"
package/dist/index.mjs CHANGED
@@ -1732,7 +1732,7 @@ var RotationProvider = class extends BaseProvider {
1732
1732
  // package.json
1733
1733
  var package_default = {
1734
1734
  name: "@myx-trade/sdk",
1735
- version: "0.1.130",
1735
+ version: "0.1.131",
1736
1736
  private: false,
1737
1737
  publishConfig: {
1738
1738
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myx-trade/sdk",
3
- "version": "0.1.130",
3
+ "version": "0.1.131",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"