@myx-trade/sdk 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -896,16 +896,16 @@ interface PreviewWithdrawDataParams {
896
896
  }
897
897
 
898
898
  declare const claimBasePoolRebate: (params: ClaimParams) => Promise<any>;
899
- declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
899
+ declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<viem.TransactionReceipt | undefined>;
900
900
 
901
- declare const deposit$1: (params: Deposit) => Promise<any>;
901
+ declare const deposit$1: (params: Deposit) => Promise<viem.TransactionReceipt | undefined>;
902
902
 
903
903
  declare const withdrawableLpAmount$1: (params: {
904
904
  chainId: ChainId;
905
905
  poolId: string;
906
906
  price?: bigint;
907
907
  }) => Promise<any>;
908
- declare const withdraw$1: (params: WithdrawParams) => Promise<any>;
908
+ declare const withdraw$1: (params: WithdrawParams) => Promise<viem.TransactionReceipt | undefined>;
909
909
 
910
910
  declare const getRewards$1: (params: RewardsParams) => Promise<{
911
911
  rebates: any;
@@ -926,21 +926,21 @@ declare namespace index$2 {
926
926
  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, withdrawableLpAmount$1 as withdrawableLpAmount };
927
927
  }
928
928
 
929
- declare const deposit: (params: Deposit) => Promise<any>;
929
+ declare const deposit: (params: Deposit) => Promise<viem.TransactionReceipt | undefined>;
930
930
 
931
931
  declare const withdrawableLpAmount: (params: {
932
932
  chainId: ChainId;
933
933
  poolId: string;
934
934
  price?: bigint;
935
935
  }) => Promise<any>;
936
- declare const withdraw: (params: WithdrawParams) => Promise<any>;
936
+ declare const withdraw: (params: WithdrawParams) => Promise<viem.TransactionReceipt | undefined>;
937
937
 
938
- declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<any>;
938
+ declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<viem.TransactionReceipt | null>;
939
939
 
940
940
  declare const getRewards: (params: RewardsParams) => Promise<any>;
941
941
 
942
942
  declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<any>;
943
- declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
943
+ declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<viem.TransactionReceipt | undefined>;
944
944
 
945
945
  declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<any>;
946
946
 
@@ -1030,9 +1030,9 @@ declare const pool: {
1030
1030
  };
1031
1031
  }>;
1032
1032
  getUserGenesisShare: (chainId: ChainId, tokenAddress: string, account: string) => Promise<any>;
1033
- addTpSl: (params: AddTpSLParams) => Promise<any>;
1034
- cancelTpSl: (params: CancelTpSLParams) => Promise<any>;
1035
- reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<any>;
1033
+ addTpSl: (params: AddTpSLParams) => Promise<viem.TransactionReceipt>;
1034
+ cancelTpSl: (params: CancelTpSLParams) => Promise<viem.TransactionReceipt>;
1035
+ reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<viem.TransactionReceipt>;
1036
1036
  getPoolDetail: (chainId: ChainId, poolId: string) => Promise<MarketPool | undefined>;
1037
1037
  getOpenOrders: (chainId: ChainId, address: string) => Promise<PoolOpenOrder[]>;
1038
1038
  };
@@ -2018,6 +2018,10 @@ declare class Account {
2018
2018
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, client: MyxClient);
2019
2019
  /** Retry an async call a few times to tolerate intermittent RPC/decoding failures (e.g. BAD_DATA / 0x). */
2020
2020
  private withRetry;
2021
+ getTradeFlow(params: GetHistoryOrdersParams, address: string): Promise<{
2022
+ code: number;
2023
+ data: TradeFlowItem[];
2024
+ }>;
2021
2025
  getWalletQuoteTokenBalance(chainId: number, address?: string): Promise<{
2022
2026
  code: number;
2023
2027
  data: any;
package/dist/index.d.ts CHANGED
@@ -896,16 +896,16 @@ interface PreviewWithdrawDataParams {
896
896
  }
897
897
 
898
898
  declare const claimBasePoolRebate: (params: ClaimParams) => Promise<any>;
899
- declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
899
+ declare const claimBasePoolRebates: (params: ClaimRebatesParams) => Promise<viem.TransactionReceipt | undefined>;
900
900
 
901
- declare const deposit$1: (params: Deposit) => Promise<any>;
901
+ declare const deposit$1: (params: Deposit) => Promise<viem.TransactionReceipt | undefined>;
902
902
 
903
903
  declare const withdrawableLpAmount$1: (params: {
904
904
  chainId: ChainId;
905
905
  poolId: string;
906
906
  price?: bigint;
907
907
  }) => Promise<any>;
908
- declare const withdraw$1: (params: WithdrawParams) => Promise<any>;
908
+ declare const withdraw$1: (params: WithdrawParams) => Promise<viem.TransactionReceipt | undefined>;
909
909
 
910
910
  declare const getRewards$1: (params: RewardsParams) => Promise<{
911
911
  rebates: any;
@@ -926,21 +926,21 @@ declare namespace index$2 {
926
926
  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, withdrawableLpAmount$1 as withdrawableLpAmount };
927
927
  }
928
928
 
929
- declare const deposit: (params: Deposit) => Promise<any>;
929
+ declare const deposit: (params: Deposit) => Promise<viem.TransactionReceipt | undefined>;
930
930
 
931
931
  declare const withdrawableLpAmount: (params: {
932
932
  chainId: ChainId;
933
933
  poolId: string;
934
934
  price?: bigint;
935
935
  }) => Promise<any>;
936
- declare const withdraw: (params: WithdrawParams) => Promise<any>;
936
+ declare const withdraw: (params: WithdrawParams) => Promise<viem.TransactionReceipt | undefined>;
937
937
 
938
- declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<any>;
938
+ declare const transfer: (chainId: ChainId, fromPoolId: string, toPoolId: string, amount: number) => Promise<viem.TransactionReceipt | null>;
939
939
 
940
940
  declare const getRewards: (params: RewardsParams) => Promise<any>;
941
941
 
942
942
  declare const claimQuotePoolRebate: (params: ClaimParams) => Promise<any>;
943
- declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<any>;
943
+ declare const claimQuotePoolRebates: (params: ClaimRebatesParams) => Promise<viem.TransactionReceipt | undefined>;
944
944
 
945
945
  declare const getLpPrice: (chainId: ChainId, poolId: string) => Promise<any>;
946
946
 
@@ -1030,9 +1030,9 @@ declare const pool: {
1030
1030
  };
1031
1031
  }>;
1032
1032
  getUserGenesisShare: (chainId: ChainId, tokenAddress: string, account: string) => Promise<any>;
1033
- addTpSl: (params: AddTpSLParams) => Promise<any>;
1034
- cancelTpSl: (params: CancelTpSLParams) => Promise<any>;
1035
- reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<any>;
1033
+ addTpSl: (params: AddTpSLParams) => Promise<viem.TransactionReceipt>;
1034
+ cancelTpSl: (params: CancelTpSLParams) => Promise<viem.TransactionReceipt>;
1035
+ reprime: (chainId: ChainId, poolId: string, marketId: string) => Promise<viem.TransactionReceipt>;
1036
1036
  getPoolDetail: (chainId: ChainId, poolId: string) => Promise<MarketPool | undefined>;
1037
1037
  getOpenOrders: (chainId: ChainId, address: string) => Promise<PoolOpenOrder[]>;
1038
1038
  };
@@ -2018,6 +2018,10 @@ declare class Account {
2018
2018
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, client: MyxClient);
2019
2019
  /** Retry an async call a few times to tolerate intermittent RPC/decoding failures (e.g. BAD_DATA / 0x). */
2020
2020
  private withRetry;
2021
+ getTradeFlow(params: GetHistoryOrdersParams, address: string): Promise<{
2022
+ code: number;
2023
+ data: TradeFlowItem[];
2024
+ }>;
2021
2025
  getWalletQuoteTokenBalance(chainId: number, address?: string): Promise<{
2022
2026
  code: number;
2023
2027
  data: any;