rubic-sdk 5.18.0-alpha.meson.7 → 5.18.0-alpha.meson.8

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.
@@ -1,4 +1,4 @@
1
- export interface SymbiosisMesonErrorRes {
1
+ export interface SymbiosisErrorResponse {
2
2
  code: number;
3
3
  message: string;
4
4
  }
@@ -1,6 +1,6 @@
1
- import { XyQuoteMesonErrorRes } from './xy-quote-error-response';
1
+ import { XyQuoteErrorResponse } from './xy-quote-error-response';
2
2
  import { XyRoute } from './xy-quote-success-response';
3
- export interface XyBuildTxResponse extends XyQuoteMesonErrorRes {
3
+ export interface XyBuildTxResponse extends XyQuoteErrorResponse {
4
4
  success: boolean;
5
5
  route: XyRoute;
6
6
  tx: {
@@ -1,5 +1,5 @@
1
1
  import { XyErrorCode } from '../constants/xy-error-code';
2
- export interface XyQuoteMesonErrorRes {
2
+ export interface XyQuoteErrorResponse {
3
3
  success: boolean;
4
4
  errorCode: XyErrorCode;
5
5
  errorMsg: string;
@@ -1,4 +1,4 @@
1
- import { XyQuoteMesonErrorRes } from './xy-quote-error-response';
2
- import { XyQuoteMesonSuccessRes } from './xy-quote-success-response';
3
- export interface XyQuoteResponse extends XyQuoteMesonSuccessRes, XyQuoteMesonErrorRes {
1
+ import { XyQuoteErrorResponse } from './xy-quote-error-response';
2
+ import { XyQuoteSuccessResponse } from './xy-quote-success-response';
3
+ export interface XyQuoteResponse extends XyQuoteSuccessResponse, XyQuoteErrorResponse {
4
4
  }
@@ -1,4 +1,4 @@
1
- export interface XyQuoteMesonSuccessRes {
1
+ export interface XyQuoteSuccessResponse {
2
2
  success: boolean;
3
3
  routes: XyRoute[];
4
4
  }
@@ -116,9 +116,9 @@ class DebridgeCrossChainProvider extends cross_chain_provider_1.CrossChainProvid
116
116
  async getFeeInfo(fromBlockchain, providerAddress, percentFeeToken, useProxy) {
117
117
  return proxy_cross_chain_evm_trade_1.ProxyCrossChainEvmTrade.getFeeInfo(fromBlockchain, providerAddress, percentFeeToken, useProxy);
118
118
  }
119
- parseDebridgeApiError(httpMesonErrorRes) {
120
- if (httpMesonErrorRes?.error?.errorId === 'INCLUDED_GAS_FEE_NOT_COVERED_BY_INPUT_AMOUNT' ||
121
- httpMesonErrorRes?.error?.errorId === 'ERROR_LOW_GIVE_AMOUNT') {
119
+ parseDebridgeApiError(httpErrorResponse) {
120
+ if (httpErrorResponse?.error?.errorId === 'INCLUDED_GAS_FEE_NOT_COVERED_BY_INPUT_AMOUNT' ||
121
+ httpErrorResponse?.error?.errorId === 'ERROR_LOW_GIVE_AMOUNT') {
122
122
  return new errors_1.TooLowAmountError();
123
123
  }
124
124
  // @TODO handle other debridge API error codes:
@@ -37,7 +37,7 @@ export interface DlnSolanaTransactionResponse extends TransactionResponse<DlnSol
37
37
  /**
38
38
  * Swap transaction error response.
39
39
  */
40
- export interface TransactionMesonErrorRes {
40
+ export interface TransactionErrorResponse {
41
41
  /**
42
42
  * Error code.
43
43
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rubic-sdk",
3
- "version": "5.18.0-alpha.meson.7",
3
+ "version": "5.18.0-alpha.meson.8",
4
4
  "description": "Simplify dApp creation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",