@myx-trade/sdk 1.0.13 → 1.0.14

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.ts CHANGED
@@ -519,6 +519,7 @@ interface KlineDataResponse {
519
519
  interface ISigner {
520
520
  getAddress(): Promise<string>;
521
521
  signMessage(message: string | Uint8Array): Promise<string>;
522
+ signTransaction(transaction: viem.TransactionRequest): Promise<string>;
522
523
  sendTransaction(tx: {
523
524
  to?: string;
524
525
  data?: string;
@@ -551,6 +552,7 @@ interface MinimalSignerLike {
551
552
  sendTransaction(tx: Record<string, unknown>): Promise<{
552
553
  hash: string;
553
554
  }>;
555
+ signTransaction(transaction: viem.TransactionRequest): Promise<string>;
554
556
  }
555
557
  type WalletClientLike = {
556
558
  getAddresses(): Promise<readonly `0x${string}`[]>;
@@ -559,6 +561,7 @@ type WalletClientLike = {
559
561
  raw: Uint8Array;
560
562
  };
561
563
  }): Promise<`0x${string}`>;
564
+ signTransaction(args: viem.TransactionRequest): Promise<`0x${string}`>;
562
565
  sendTransaction(args: {
563
566
  to: `0x${string}`;
564
567
  data?: `0x${string}`;
@@ -1253,6 +1256,19 @@ declare class Markets {
1253
1256
  * get pool symbol all
1254
1257
  */
1255
1258
  getPoolSymbolAll(): Promise<PoolSymbolAllResponse[]>;
1259
+ getPoolFundingFeeInfo({ poolId, chainId, marketPrice, }: {
1260
+ poolId: string;
1261
+ chainId: number;
1262
+ marketPrice: string;
1263
+ }): Promise<{
1264
+ code: number;
1265
+ data: any;
1266
+ message?: undefined;
1267
+ } | {
1268
+ code: number;
1269
+ message: string;
1270
+ data?: undefined;
1271
+ }>;
1256
1272
  }
1257
1273
 
1258
1274
  type Timestamp = number;
@@ -1346,6 +1362,7 @@ declare class Account {
1346
1362
  message: string;
1347
1363
  data?: undefined;
1348
1364
  }>;
1365
+ getCurrentFeeDataEpoch(chainId: number): Promise<any>;
1349
1366
  setUserFeeData(address: string, chainId: number, deadline: number, params: {
1350
1367
  tier: number;
1351
1368
  referrer: string;
@@ -1426,7 +1443,7 @@ declare class Order {
1426
1443
  private account;
1427
1444
  private api;
1428
1445
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, account: Account, api: Api);
1429
- createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string): Promise<{
1446
+ createIncreaseOrder(params: PlaceOrderParams, networkFee: string): Promise<{
1430
1447
  code: number;
1431
1448
  message: string;
1432
1449
  data: {
@@ -1565,7 +1582,7 @@ declare class Seamless {
1565
1582
  chainId: any;
1566
1583
  verifyingContract: any;
1567
1584
  }>;
1568
- forwardTxInFront({ chainId, seamlessAddress, signFunction, forwardFeeToken, functionName, orderParams, value }: {
1585
+ forwardTxInFront({ chainId, seamlessAddress, signFunction, forwardFeeToken, functionName, orderParams, value, gas, }: {
1569
1586
  chainId: number;
1570
1587
  masterAddress: string;
1571
1588
  seamlessAddress: string;
@@ -1580,6 +1597,7 @@ declare class Seamless {
1580
1597
  forwardFeeToken: string;
1581
1598
  orderParams: any;
1582
1599
  value?: string;
1600
+ gas?: string;
1583
1601
  }): Promise<{
1584
1602
  code: number;
1585
1603
  data?: undefined;
@@ -1637,7 +1655,7 @@ declare class Seamless {
1637
1655
  seamlessAddress: string;
1638
1656
  }): Promise<{
1639
1657
  from: `0x${string}`;
1640
- to: `0x${string}`;
1658
+ to: string;
1641
1659
  value: string;
1642
1660
  gas: string;
1643
1661
  deadline: number;