@myx-trade/sdk 0.1.272-beta.2 → 0.1.272-beta.5

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
@@ -1981,6 +1981,8 @@ declare class Account {
1981
1981
  private utils;
1982
1982
  private client;
1983
1983
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, client: MyxClient);
1984
+ /** Retry an async call a few times to tolerate intermittent RPC/decoding failures (e.g. BAD_DATA / 0x). */
1985
+ private withRetry;
1984
1986
  getWalletQuoteTokenBalance(chainId: number, address?: string): Promise<{
1985
1987
  code: number;
1986
1988
  data: any;
@@ -2248,7 +2250,7 @@ declare class Order {
2248
2250
  private account;
2249
2251
  private api;
2250
2252
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, seamless: Seamless, account: Account, api: Api);
2251
- createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string, positionAvailableMargin?: string): Promise<{
2253
+ createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string): Promise<{
2252
2254
  code: number;
2253
2255
  message: string;
2254
2256
  data: ApiResponse<any>;
@@ -3868,7 +3870,8 @@ interface AppealVoteParams {
3868
3870
  }
3869
3871
 
3870
3872
  declare class Appeal extends BaseMyxClient {
3871
- constructor(client: MyxClient);
3873
+ private configManager;
3874
+ constructor(client: MyxClient, configManager: ConfigManager);
3872
3875
  private getDisputeCourtContract;
3873
3876
  private getReimbursementContract;
3874
3877
  /**
@@ -3949,6 +3952,7 @@ declare class Appeal extends BaseMyxClient {
3949
3952
  getDisputeTotalCount(): Promise<ApiResponse<number>>;
3950
3953
  getAppealTotalCount(): Promise<ApiResponse<number>>;
3951
3954
  getReimbursementTotalCount(): Promise<ApiResponse<number>>;
3955
+ getAppealStatus(poolId: string, chainId: number, address: string): Promise<ApiResponse<number>>;
3952
3956
  }
3953
3957
 
3954
3958
  declare class Referrals extends BaseMyxClient {
package/dist/index.d.ts CHANGED
@@ -1981,6 +1981,8 @@ declare class Account {
1981
1981
  private utils;
1982
1982
  private client;
1983
1983
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, client: MyxClient);
1984
+ /** Retry an async call a few times to tolerate intermittent RPC/decoding failures (e.g. BAD_DATA / 0x). */
1985
+ private withRetry;
1984
1986
  getWalletQuoteTokenBalance(chainId: number, address?: string): Promise<{
1985
1987
  code: number;
1986
1988
  data: any;
@@ -2248,7 +2250,7 @@ declare class Order {
2248
2250
  private account;
2249
2251
  private api;
2250
2252
  constructor(configManager: ConfigManager, logger: Logger, utils: Utils, seamless: Seamless, account: Account, api: Api);
2251
- createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string, positionAvailableMargin?: string): Promise<{
2253
+ createIncreaseOrder(params: PlaceOrderParams, tradingFee: string, marketId: string): Promise<{
2252
2254
  code: number;
2253
2255
  message: string;
2254
2256
  data: ApiResponse<any>;
@@ -3868,7 +3870,8 @@ interface AppealVoteParams {
3868
3870
  }
3869
3871
 
3870
3872
  declare class Appeal extends BaseMyxClient {
3871
- constructor(client: MyxClient);
3873
+ private configManager;
3874
+ constructor(client: MyxClient, configManager: ConfigManager);
3872
3875
  private getDisputeCourtContract;
3873
3876
  private getReimbursementContract;
3874
3877
  /**
@@ -3949,6 +3952,7 @@ declare class Appeal extends BaseMyxClient {
3949
3952
  getDisputeTotalCount(): Promise<ApiResponse<number>>;
3950
3953
  getAppealTotalCount(): Promise<ApiResponse<number>>;
3951
3954
  getReimbursementTotalCount(): Promise<ApiResponse<number>>;
3955
+ getAppealStatus(poolId: string, chainId: number, address: string): Promise<ApiResponse<number>>;
3952
3956
  }
3953
3957
 
3954
3958
  declare class Referrals extends BaseMyxClient {