@cryptorubic/core 0.0.15 → 0.0.16

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.
Files changed (90) hide show
  1. package/package.json +1 -1
  2. package/src/index.d.ts +6 -28
  3. package/src/index.js +6 -29
  4. package/src/lib/blockchains/backend-labels.d.ts +0 -1
  5. package/src/lib/blockchains/backend-labels.js +1 -2
  6. package/src/lib/blockchains/blockchain-id.js +0 -1
  7. package/src/lib/blockchains/blockchain-name.d.ts +0 -3
  8. package/src/lib/blockchains/blockchain-name.js +1 -2
  9. package/src/lib/blockchains/wrapped-addresses.js +0 -1
  10. package/src/lib/models/quote-all-response.d.ts +15 -0
  11. package/src/lib/models/quote-best-response.d.ts +3 -0
  12. package/src/lib/models/quote-request.d.ts +18 -0
  13. package/src/lib/models/route.d.ts +80 -0
  14. package/src/lib/models/swap-request.d.ts +7 -0
  15. package/src/lib/models/swap-response.d.ts +82 -0
  16. package/src/lib/providers/cross-chain-trade-type.d.ts +0 -2
  17. package/src/lib/providers/cross-chain-trade-type.js +1 -3
  18. package/src/lib/providers/from-backend-cross-chain-providers.js +1 -3
  19. package/src/lib/providers/on-chain-trade-type.d.ts +0 -3
  20. package/src/lib/providers/on-chain-trade-type.js +0 -3
  21. package/src/lib/providers/to-backend-cross-chain-providers.d.ts +0 -2
  22. package/src/lib/providers/to-backend-cross-chain-providers.js +1 -3
  23. package/src/lib/tokens/constants/native-token-list.js +1 -8
  24. package/src/lib/tokens/constants/wrapped-native-tokens.js +0 -7
  25. package/src/lib/models/api/claim-request.interface.d.ts +0 -5
  26. package/src/lib/models/api/cross-chain-provider.interface.d.ts +0 -12
  27. package/src/lib/models/api/error.interface.d.ts +0 -14
  28. package/src/lib/models/api/estimates.interface.d.ts +0 -11
  29. package/src/lib/models/api/failed-quote.interface.d.ts +0 -16
  30. package/src/lib/models/api/fee-info.d.ts +0 -19
  31. package/src/lib/models/api/fees.interface.d.ts +0 -14
  32. package/src/lib/models/api/fees.interface.js +0 -2
  33. package/src/lib/models/api/foreign-blacklist.interface.d.ts +0 -4
  34. package/src/lib/models/api/foreign-blacklist.interface.js +0 -6
  35. package/src/lib/models/api/gas-fee.interface.d.ts +0 -6
  36. package/src/lib/models/api/gas-fee.interface.js +0 -2
  37. package/src/lib/models/api/on-chain-provider.interface.d.ts +0 -12
  38. package/src/lib/models/api/on-chain-provider.interface.js +0 -2
  39. package/src/lib/models/api/percent-fee.interface.d.ts +0 -11
  40. package/src/lib/models/api/percent-fee.interface.js +0 -2
  41. package/src/lib/models/api/protocol-fee.interface.d.ts +0 -5
  42. package/src/lib/models/api/protocol-fee.interface.js +0 -2
  43. package/src/lib/models/api/provider-chain.interface.d.ts +0 -11
  44. package/src/lib/models/api/provider-chain.interface.js +0 -2
  45. package/src/lib/models/api/provider-fee.interface.d.ts +0 -5
  46. package/src/lib/models/api/provider-fee.interface.js +0 -2
  47. package/src/lib/models/api/quote-all.interface.d.ts +0 -17
  48. package/src/lib/models/api/quote-all.interface.js +0 -2
  49. package/src/lib/models/api/quote-options.interface.d.ts +0 -14
  50. package/src/lib/models/api/quote-options.interface.js +0 -2
  51. package/src/lib/models/api/quote-request.interface.d.ts +0 -5
  52. package/src/lib/models/api/quote-request.interface.js +0 -2
  53. package/src/lib/models/api/quote-response.interface.d.ts +0 -46
  54. package/src/lib/models/api/quote-response.interface.js +0 -2
  55. package/src/lib/models/api/quote-tokens.interface.d.ts +0 -5
  56. package/src/lib/models/api/quote-tokens.interface.js +0 -2
  57. package/src/lib/models/api/quote-trade.interface.d.ts +0 -8
  58. package/src/lib/models/api/quote-trade.interface.js +0 -2
  59. package/src/lib/models/api/routing.interface.d.ts +0 -7
  60. package/src/lib/models/api/routing.interface.js +0 -2
  61. package/src/lib/models/api/swap-best-request.interface.d.ts +0 -3
  62. package/src/lib/models/api/swap-best-request.interface.js +0 -2
  63. package/src/lib/models/api/swap-request.interface.d.ts +0 -8
  64. package/src/lib/models/api/swap-request.interface.js +0 -2
  65. package/src/lib/models/api/swap-response.interface.d.ts +0 -23
  66. package/src/lib/models/api/swap-response.interface.js +0 -2
  67. package/src/lib/models/api/swap-type.d.ts +0 -1
  68. package/src/lib/models/api/swap-type.js +0 -2
  69. package/src/lib/models/api/token-amount.interface.d.ts +0 -4
  70. package/src/lib/models/api/token-amount.interface.js +0 -2
  71. package/src/lib/models/api/token.inerface.d.ts +0 -10
  72. package/src/lib/models/api/token.inerface.js +0 -2
  73. package/src/lib/models/api/ton-transaction.interface.d.ts +0 -6
  74. package/src/lib/models/api/ton-transaction.interface.js +0 -2
  75. package/src/lib/models/api/transaction.interface.d.ts +0 -11
  76. package/src/lib/models/api/transaction.interface.js +0 -2
  77. package/src/lib/models/api/unique-provider-info.interface.d.ts +0 -4
  78. package/src/lib/models/api/unique-provider-info.interface.js +0 -2
  79. package/src/lib/models/api/ws-quote-error.interface.d.ts +0 -20
  80. package/src/lib/models/api/ws-quote-error.interface.js +0 -2
  81. package/src/lib/models/api/ws-quote-request.interface.d.ts +0 -4
  82. package/src/lib/models/api/ws-quote-request.interface.js +0 -2
  83. package/src/lib/models/api/ws-quote-response.interface.d.ts +0 -20
  84. package/src/lib/models/api/ws-quote-response.interface.js +0 -2
  85. /package/src/lib/models/{api/claim-request.interface.js → quote-all-response.js} +0 -0
  86. /package/src/lib/models/{api/cross-chain-provider.interface.js → quote-best-response.js} +0 -0
  87. /package/src/lib/models/{api/error.interface.js → quote-request.js} +0 -0
  88. /package/src/lib/models/{api/estimates.interface.js → route.js} +0 -0
  89. /package/src/lib/models/{api/failed-quote.interface.js → swap-request.js} +0 -0
  90. /package/src/lib/models/{api/fee-info.js → swap-response.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptorubic/core",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },
package/src/index.d.ts CHANGED
@@ -6,35 +6,13 @@ export * from './lib/blockchains/chain-type-storage';
6
6
  export * from './lib/blockchains/chain-type';
7
7
  export * from './lib/blockchains/backend-labels';
8
8
  export * from './lib/models/http-client';
9
+ export * from './lib/models/quote-all-response';
10
+ export * from './lib/models/quote-best-response';
11
+ export * from './lib/models/quote-request';
12
+ export * from './lib/models/route';
13
+ export * from './lib/models/swap-request';
14
+ export * from './lib/models/swap-response';
9
15
  export * from './lib/models/custom-logger';
10
- export * from './lib/models/api/claim-request.interface';
11
- export * from './lib/models/api/cross-chain-provider.interface';
12
- export * from './lib/models/api/error.interface';
13
- export * from './lib/models/api/estimates.interface';
14
- export * from './lib/models/api/failed-quote.interface';
15
- export * from './lib/models/api/fee-info';
16
- export * from './lib/models/api/fees.interface';
17
- export * from './lib/models/api/foreign-blacklist.interface';
18
- export * from './lib/models/api/gas-fee.interface';
19
- export * from './lib/models/api/on-chain-provider.interface';
20
- export * from './lib/models/api/percent-fee.interface';
21
- export * from './lib/models/api/protocol-fee.interface';
22
- export * from './lib/models/api/provider-chain.interface';
23
- export * from './lib/models/api/provider-fee.interface';
24
- export * from './lib/models/api/quote-all.interface';
25
- export * from './lib/models/api/quote-options.interface';
26
- export * from './lib/models/api/quote-request.interface';
27
- export * from './lib/models/api/quote-response.interface';
28
- export * from './lib/models/api/quote-trade.interface';
29
- export * from './lib/models/api/routing.interface';
30
- export * from './lib/models/api/swap-best-request.interface';
31
- export * from './lib/models/api/swap-request.interface';
32
- export * from './lib/models/api/swap-response.interface';
33
- export * from './lib/models/api/swap-type';
34
- export * from './lib/models/api/token.inerface';
35
- export * from './lib/models/api/ws-quote-error.interface';
36
- export * from './lib/models/api/ws-quote-request.interface';
37
- export * from './lib/models/api/ws-quote-response.interface';
38
16
  export * from './lib/providers/from-backend-cross-chain-providers';
39
17
  export * from './lib/providers/cross-chain-trade-type';
40
18
  export * from './lib/providers/on-chain-trade-type';
package/src/index.js CHANGED
@@ -11,36 +11,13 @@ tslib_1.__exportStar(require("./lib/blockchains/chain-type"), exports);
11
11
  tslib_1.__exportStar(require("./lib/blockchains/backend-labels"), exports);
12
12
  // models
13
13
  tslib_1.__exportStar(require("./lib/models/http-client"), exports);
14
+ tslib_1.__exportStar(require("./lib/models/quote-all-response"), exports);
15
+ tslib_1.__exportStar(require("./lib/models/quote-best-response"), exports);
16
+ tslib_1.__exportStar(require("./lib/models/quote-request"), exports);
17
+ tslib_1.__exportStar(require("./lib/models/route"), exports);
18
+ tslib_1.__exportStar(require("./lib/models/swap-request"), exports);
19
+ tslib_1.__exportStar(require("./lib/models/swap-response"), exports);
14
20
  tslib_1.__exportStar(require("./lib/models/custom-logger"), exports);
15
- // apiModels
16
- tslib_1.__exportStar(require("./lib/models/api/claim-request.interface"), exports);
17
- tslib_1.__exportStar(require("./lib/models/api/cross-chain-provider.interface"), exports);
18
- tslib_1.__exportStar(require("./lib/models/api/error.interface"), exports);
19
- tslib_1.__exportStar(require("./lib/models/api/estimates.interface"), exports);
20
- tslib_1.__exportStar(require("./lib/models/api/failed-quote.interface"), exports);
21
- tslib_1.__exportStar(require("./lib/models/api/fee-info"), exports);
22
- tslib_1.__exportStar(require("./lib/models/api/fees.interface"), exports);
23
- tslib_1.__exportStar(require("./lib/models/api/foreign-blacklist.interface"), exports);
24
- tslib_1.__exportStar(require("./lib/models/api/gas-fee.interface"), exports);
25
- tslib_1.__exportStar(require("./lib/models/api/on-chain-provider.interface"), exports);
26
- tslib_1.__exportStar(require("./lib/models/api/percent-fee.interface"), exports);
27
- tslib_1.__exportStar(require("./lib/models/api/protocol-fee.interface"), exports);
28
- tslib_1.__exportStar(require("./lib/models/api/provider-chain.interface"), exports);
29
- tslib_1.__exportStar(require("./lib/models/api/provider-fee.interface"), exports);
30
- tslib_1.__exportStar(require("./lib/models/api/quote-all.interface"), exports);
31
- tslib_1.__exportStar(require("./lib/models/api/quote-options.interface"), exports);
32
- tslib_1.__exportStar(require("./lib/models/api/quote-request.interface"), exports);
33
- tslib_1.__exportStar(require("./lib/models/api/quote-response.interface"), exports);
34
- tslib_1.__exportStar(require("./lib/models/api/quote-trade.interface"), exports);
35
- tslib_1.__exportStar(require("./lib/models/api/routing.interface"), exports);
36
- tslib_1.__exportStar(require("./lib/models/api/swap-best-request.interface"), exports);
37
- tslib_1.__exportStar(require("./lib/models/api/swap-request.interface"), exports);
38
- tslib_1.__exportStar(require("./lib/models/api/swap-response.interface"), exports);
39
- tslib_1.__exportStar(require("./lib/models/api/swap-type"), exports);
40
- tslib_1.__exportStar(require("./lib/models/api/token.inerface"), exports);
41
- tslib_1.__exportStar(require("./lib/models/api/ws-quote-error.interface"), exports);
42
- tslib_1.__exportStar(require("./lib/models/api/ws-quote-request.interface"), exports);
43
- tslib_1.__exportStar(require("./lib/models/api/ws-quote-response.interface"), exports);
44
21
  // providers
45
22
  tslib_1.__exportStar(require("./lib/providers/from-backend-cross-chain-providers"), exports);
46
23
  tslib_1.__exportStar(require("./lib/providers/cross-chain-trade-type"), exports);
@@ -145,7 +145,6 @@ declare const BLOCKCHAINS_MAPPING: {
145
145
  readonly BAHAMUT: "bahamut";
146
146
  readonly BITLAYER: "bitlayer";
147
147
  readonly GRAVITY: "gravity";
148
- readonly UNICHAIN_SEPOLIA_TESTNET: "unichain-sepolia-testnet";
149
148
  };
150
149
  export declare const TO_BACKEND_BLOCKCHAINS: Record<BlockchainName, BackendBlockchain>;
151
150
  export type BackendBlockchain = (typeof BLOCKCHAINS_MAPPING)[keyof typeof BLOCKCHAINS_MAPPING];
@@ -147,8 +147,7 @@ const BLOCKCHAINS_MAPPING = {
147
147
  [blockchain_name_1.BLOCKCHAIN_NAME.CORE]: 'core',
148
148
  [blockchain_name_1.BLOCKCHAIN_NAME.BAHAMUT]: 'bahamut',
149
149
  [blockchain_name_1.BLOCKCHAIN_NAME.BITLAYER]: 'bitlayer',
150
- [blockchain_name_1.BLOCKCHAIN_NAME.GRAVITY]: 'gravity',
151
- [blockchain_name_1.BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: 'unichain-sepolia-testnet'
150
+ [blockchain_name_1.BLOCKCHAIN_NAME.GRAVITY]: 'gravity'
152
151
  };
153
152
  exports.TO_BACKEND_BLOCKCHAINS = {
154
153
  ...BLOCKCHAINS_MAPPING
@@ -79,7 +79,6 @@ exports.blockchainId = {
79
79
  [blockchain_name_1.BLOCKCHAIN_NAME.BERACHAIN]: 80084,
80
80
  [blockchain_name_1.BLOCKCHAIN_NAME.BLAST_TESTNET]: 168587773,
81
81
  [blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY]: 17000,
82
- [blockchain_name_1.BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: 1301,
83
82
  // Non EVN blockchains
84
83
  [blockchain_name_1.BLOCKCHAIN_NAME.BITCOIN]: 5555,
85
84
  [blockchain_name_1.BLOCKCHAIN_NAME.FILECOIN]: 314,
@@ -9,7 +9,6 @@ export declare const TEST_EVM_BLOCKCHAIN_NAME: {
9
9
  readonly BERACHAIN: "BERACHAIN";
10
10
  readonly BLAST_TESTNET: "BLAST_TESTNET";
11
11
  readonly HOLESKY: "HOLESKY";
12
- readonly UNICHAIN_SEPOLIA_TESTNET: "UNICHAIN_SEPOLIA_TESTNET";
13
12
  };
14
13
  export declare const EVM_BLOCKCHAIN_NAME: {
15
14
  readonly ETHEREUM: "ETH";
@@ -80,7 +79,6 @@ export declare const EVM_BLOCKCHAIN_NAME: {
80
79
  readonly BERACHAIN: "BERACHAIN";
81
80
  readonly BLAST_TESTNET: "BLAST_TESTNET";
82
81
  readonly HOLESKY: "HOLESKY";
83
- readonly UNICHAIN_SEPOLIA_TESTNET: "UNICHAIN_SEPOLIA_TESTNET";
84
82
  };
85
83
  export declare const NON_NATIVE_BLOCKCHAIN_NAME: {
86
84
  readonly BITCOIN_CASH: "BITCOIN_CASH";
@@ -303,7 +301,6 @@ export declare const BLOCKCHAIN_NAME: {
303
301
  readonly BERACHAIN: "BERACHAIN";
304
302
  readonly BLAST_TESTNET: "BLAST_TESTNET";
305
303
  readonly HOLESKY: "HOLESKY";
306
- readonly UNICHAIN_SEPOLIA_TESTNET: "UNICHAIN_SEPOLIA_TESTNET";
307
304
  };
308
305
  export type BlockchainName = (typeof BLOCKCHAIN_NAME)[keyof typeof BLOCKCHAIN_NAME];
309
306
  export type TestnetEvmBlockchain = (typeof TEST_EVM_BLOCKCHAIN_NAME)[keyof typeof TEST_EVM_BLOCKCHAIN_NAME];
@@ -11,8 +11,7 @@ exports.TEST_EVM_BLOCKCHAIN_NAME = {
11
11
  SEPOLIA: 'SEPOLIA',
12
12
  BERACHAIN: 'BERACHAIN',
13
13
  BLAST_TESTNET: 'BLAST_TESTNET',
14
- HOLESKY: 'HOLESKY',
15
- UNICHAIN_SEPOLIA_TESTNET: 'UNICHAIN_SEPOLIA_TESTNET'
14
+ HOLESKY: 'HOLESKY'
16
15
  };
17
16
  exports.EVM_BLOCKCHAIN_NAME = {
18
17
  ...exports.TEST_EVM_BLOCKCHAIN_NAME,
@@ -64,5 +64,4 @@ exports.wrappedAddress = {
64
64
  [blockchain_name_1.BLOCKCHAIN_NAME.HOLESKY]: '',
65
65
  [blockchain_name_1.BLOCKCHAIN_NAME.BITLAYER]: '0xff204e2681a6fa0e2c3fade68a1b28fb90e4fc5f',
66
66
  [blockchain_name_1.BLOCKCHAIN_NAME.GRAVITY]: '0xBB859E225ac8Fb6BE1C7e38D87b767e95Fef0EbD',
67
- [blockchain_name_1.BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: '0x4200000000000000000000000000000000000006'
68
67
  };
@@ -0,0 +1,15 @@
1
+ import { QuoteRequest } from "./quote-request";
2
+ import { Route } from "./route";
3
+ import { CrossChainTradeType, OnChainTradeType } from "@cryptorubic/core";
4
+ export interface QuoteAllResponse {
5
+ quote: QuoteRequest;
6
+ routes: Route;
7
+ failed?: {
8
+ providerType: CrossChainTradeType | OnChainTradeType;
9
+ data: {
10
+ code: number;
11
+ reason: string;
12
+ data?: object;
13
+ };
14
+ }[];
15
+ }
@@ -0,0 +1,3 @@
1
+ import { Route } from "./route";
2
+ export interface QuoteBestResponse extends Route {
3
+ }
@@ -0,0 +1,18 @@
1
+ import { BlockchainName, CrossChainTradeType, OnChainTradeType } from "@cryptorubic/core";
2
+ export interface QuoteRequest {
3
+ showFailedRoutes?: boolean;
4
+ srcTokenAddress: string;
5
+ srcTokenBlockchain: BlockchainName;
6
+ srcTokenAmount: string;
7
+ dstTokenAddress: string;
8
+ dstTokenBlockchain: BlockchainName;
9
+ integratorAddress?: string;
10
+ fromAddress?: string;
11
+ slippage?: number;
12
+ receiver?: string | undefined;
13
+ nativeBlacklist?: (CrossChainTradeType | OnChainTradeType)[];
14
+ preferredProvider?: CrossChainTradeType | OnChainTradeType;
15
+ foreignBlacklist?: string;
16
+ timeout?: number;
17
+ enableTestnets?: boolean;
18
+ }
@@ -0,0 +1,80 @@
1
+ import { CrossChainTradeType, OnChainTradeType } from "@cryptorubic/core";
2
+ export interface Route {
3
+ id: string;
4
+ swapType: 'cross-chain' | 'on-chain';
5
+ providerType: CrossChainTradeType | OnChainTradeType;
6
+ estimate: {
7
+ destinationTokenAmount: string;
8
+ destinationTokenMinAmount: string;
9
+ destinationWeiAmount: string;
10
+ destinationWeiMinAmount: string;
11
+ destinationUsdAmount?: number;
12
+ destinationUsdMinAmount?: number;
13
+ durationInMinutes: number;
14
+ slippage: number;
15
+ priceImpact: number | null;
16
+ };
17
+ fees: {
18
+ gasTokenFees: {
19
+ gas: {
20
+ gasPrice: string;
21
+ gasLimit: string;
22
+ totalWeiAmount: string;
23
+ totalUsdAmount: number;
24
+ };
25
+ protocol: {
26
+ fixedAmount: string;
27
+ fixedWeiAmount: string;
28
+ fixedUsdAmount: number;
29
+ };
30
+ provider: {
31
+ fixedAmount: string;
32
+ fixedWeiAmount: string;
33
+ fixedUsdAmount: number;
34
+ };
35
+ nativeToken: {
36
+ address: string;
37
+ decimals: number;
38
+ symbol: string;
39
+ name: string;
40
+ blockchainId: number;
41
+ };
42
+ };
43
+ percentFees: {
44
+ percent: number;
45
+ token: {
46
+ address: string;
47
+ decimals: number;
48
+ symbol: string;
49
+ name: string;
50
+ blockchainId: number;
51
+ } | null;
52
+ };
53
+ };
54
+ routing: {
55
+ type: 'cross-chain' | 'on-chain';
56
+ provider: string;
57
+ path: {
58
+ address: string;
59
+ decimals: number;
60
+ symbol: string;
61
+ name: string;
62
+ blockchainId: number;
63
+ amount: string;
64
+ }[];
65
+ }[];
66
+ transaction: {
67
+ approvalAddress?: string;
68
+ data?: string;
69
+ to?: string;
70
+ value?: string;
71
+ depositAddress?: string;
72
+ extraFields?: object;
73
+ feeLimit?: string;
74
+ };
75
+ warnings: {
76
+ code: number;
77
+ reason: string;
78
+ data?: object;
79
+ }[];
80
+ }
@@ -0,0 +1,7 @@
1
+ import { QuoteRequest } from "./quote-request";
2
+ export interface SwapRequest extends Omit<QuoteRequest, 'nativeBlacklist' | 'fromAddress' | 'showFailedRoutes' | 'preferredProvider' | 'enableTestnets'> {
3
+ id: string;
4
+ enableChecks?: boolean;
5
+ fromAddress: string;
6
+ receiver: string | undefined;
7
+ }
@@ -0,0 +1,82 @@
1
+ import { QuoteRequest } from "./quote-request";
2
+ export interface SwapResponse {
3
+ quote: QuoteRequest;
4
+ estimate: {
5
+ destinationTokenAmount: string;
6
+ destinationTokenMinAmount: string;
7
+ destinationWeiAmount: string;
8
+ destinationWeiMinAmount: string;
9
+ destinationUsdAmount?: number;
10
+ destinationUsdMinAmount?: number;
11
+ durationInMinutes: number;
12
+ slippage: number;
13
+ priceImpact: number | null;
14
+ };
15
+ fees: {
16
+ gasTokenFees: {
17
+ gas: {
18
+ gasPrice: string;
19
+ gasLimit: string;
20
+ totalWeiAmount: string;
21
+ totalUsdAmount: number;
22
+ };
23
+ protocol: {
24
+ fixedAmount: string;
25
+ fixedWeiAmount: string;
26
+ fixedUsdAmount: number;
27
+ };
28
+ provider: {
29
+ fixedAmount: string;
30
+ fixedWeiAmount: string;
31
+ fixedUsdAmount: number;
32
+ };
33
+ nativeToken: {
34
+ address: string;
35
+ decimals: number;
36
+ symbol: string;
37
+ name: string;
38
+ blockchainId: number;
39
+ };
40
+ };
41
+ percentFees: {
42
+ percent: number;
43
+ token: {
44
+ address: string;
45
+ decimals: number;
46
+ symbol: string;
47
+ name: string;
48
+ blockchainId: number;
49
+ } | null;
50
+ };
51
+ };
52
+ routing: {
53
+ type: 'cross-chain' | 'on-chain';
54
+ provider: string;
55
+ path: {
56
+ address: string;
57
+ decimals: number;
58
+ symbol: string;
59
+ name: string;
60
+ blockchainId: number;
61
+ amount: string;
62
+ }[];
63
+ }[];
64
+ transaction: {
65
+ approvalAddress?: string;
66
+ data?: string;
67
+ to?: string;
68
+ value?: string;
69
+ depositAddress?: string;
70
+ extraFields?: object;
71
+ feeLimit?: string;
72
+ };
73
+ warnings: {
74
+ code: number;
75
+ reason: string;
76
+ data?: object;
77
+ }[];
78
+ uniqueInfo?: {
79
+ changenowId?: string;
80
+ rangoRequestId?: string;
81
+ };
82
+ }
@@ -24,7 +24,5 @@ export declare const CROSS_CHAIN_TRADE_TYPE: {
24
24
  readonly ROUTER: "router";
25
25
  readonly RETRO_BRIDGE: "retro_bridge";
26
26
  readonly ACROSS: "across";
27
- readonly UNIZEN: "unizen";
28
- readonly SIMPLE_SWAP: "simple_swap";
29
27
  };
30
28
  export type CrossChainTradeType = (typeof CROSS_CHAIN_TRADE_TYPE)[keyof typeof CROSS_CHAIN_TRADE_TYPE];
@@ -26,7 +26,5 @@ exports.CROSS_CHAIN_TRADE_TYPE = {
26
26
  EDDY_BRIDGE: 'eddy_bridge',
27
27
  ROUTER: 'router',
28
28
  RETRO_BRIDGE: 'retro_bridge',
29
- ACROSS: 'across',
30
- UNIZEN: 'unizen',
31
- SIMPLE_SWAP: 'simple_swap'
29
+ ACROSS: 'across'
32
30
  };
@@ -27,7 +27,5 @@ exports.FROM_BACKEND_CROSS_CHAIN_PROVIDERS = {
27
27
  stargate_v2: cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.STARGATE_V2,
28
28
  router: cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.ROUTER,
29
29
  retro_bridge: cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.RETRO_BRIDGE,
30
- across: cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.ACROSS,
31
- simple_swap: cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.SIMPLE_SWAP,
32
- unizen: cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.UNIZEN
30
+ across: cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.ACROSS
33
31
  };
@@ -55,7 +55,6 @@ export declare const ON_CHAIN_TRADE_TYPE: {
55
55
  readonly JUPITER_SWAP: "JUPITER_SWAP";
56
56
  readonly J_SWAP: "J_SWAP";
57
57
  readonly KIM: "KIM";
58
- readonly KUJATA: "KUJATA";
59
58
  readonly KYBER_SWAP: "KYBER_SWAP";
60
59
  readonly LUA_SWAP: "LUA_SWAP";
61
60
  readonly LIFI: "LIFI";
@@ -101,7 +100,6 @@ export declare const ON_CHAIN_TRADE_TYPE: {
101
100
  readonly SAROS_SWAP: "SAROS_SWAP";
102
101
  readonly SERUM: "SERUM";
103
102
  readonly SHIBA_SWAP: "SHIBA_SWAP";
104
- readonly SILK_SWAP: "SILK_SWAP";
105
103
  readonly SMOOTHY: "SMOOTHY";
106
104
  readonly SOLANA: "SOLANA";
107
105
  readonly SOLAR_BEAM: "SOLAR_BEAM";
@@ -129,7 +127,6 @@ export declare const ON_CHAIN_TRADE_TYPE: {
129
127
  readonly UNISWAP_V2: "UNISWAP_V2";
130
128
  readonly UNI_SWAP_V3: "UNI_SWAP_V3";
131
129
  readonly UNISWAP_BAHAMUT: "UNISWAP_BAHAMUT";
132
- readonly UNIZEN: "UNIZEN";
133
130
  readonly VERSE: "VERSE";
134
131
  readonly VIPER_SWAP: "VIPER_SWAP";
135
132
  readonly VOLTAGE_SWAP: "VOLTAGE_SWAP";
@@ -58,7 +58,6 @@ exports.ON_CHAIN_TRADE_TYPE = {
58
58
  JUPITER_SWAP: 'JUPITER_SWAP',
59
59
  J_SWAP: 'J_SWAP',
60
60
  KIM: 'KIM',
61
- KUJATA: 'KUJATA',
62
61
  KYBER_SWAP: 'KYBER_SWAP',
63
62
  LUA_SWAP: 'LUA_SWAP',
64
63
  LIFI: 'LIFI',
@@ -104,7 +103,6 @@ exports.ON_CHAIN_TRADE_TYPE = {
104
103
  SAROS_SWAP: 'SAROS_SWAP',
105
104
  SERUM: 'SERUM',
106
105
  SHIBA_SWAP: 'SHIBA_SWAP',
107
- SILK_SWAP: 'SILK_SWAP',
108
106
  SMOOTHY: 'SMOOTHY',
109
107
  SOLANA: 'SOLANA',
110
108
  SOLAR_BEAM: 'SOLAR_BEAM',
@@ -132,7 +130,6 @@ exports.ON_CHAIN_TRADE_TYPE = {
132
130
  UNISWAP_V2: 'UNISWAP_V2',
133
131
  UNI_SWAP_V3: 'UNI_SWAP_V3',
134
132
  UNISWAP_BAHAMUT: 'UNISWAP_BAHAMUT',
135
- UNIZEN: 'UNIZEN',
136
133
  VERSE: 'VERSE',
137
134
  VIPER_SWAP: 'VIPER_SWAP',
138
135
  VOLTAGE_SWAP: 'VOLTAGE_SWAP',
@@ -25,8 +25,6 @@ declare const toProviders: {
25
25
  readonly router: "router";
26
26
  readonly retro_bridge: "retro_bridge";
27
27
  readonly across: "across";
28
- readonly unizen: "unizen";
29
- readonly simple_swap: "simple_swap";
30
28
  };
31
29
  export declare const TO_BACKEND_CROSS_CHAIN_PROVIDERS: Record<CrossChainTradeType, string>;
32
30
  export type ToBackendCrossChainProviders = (typeof toProviders)[keyof typeof toProviders];
@@ -27,9 +27,7 @@ const toProviders = {
27
27
  [cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.STARGATE_V2]: 'stargate_v2',
28
28
  [cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.ROUTER]: 'router',
29
29
  [cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.RETRO_BRIDGE]: 'retro_bridge',
30
- [cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.ACROSS]: 'across',
31
- [cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.UNIZEN]: 'unizen',
32
- [cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.SIMPLE_SWAP]: 'simple_swap'
30
+ [cross_chain_trade_type_1.CROSS_CHAIN_TRADE_TYPE.ACROSS]: 'across'
33
31
  };
34
32
  exports.TO_BACKEND_CROSS_CHAIN_PROVIDERS = {
35
33
  ...toProviders
@@ -73,13 +73,6 @@ exports.testnetNativeTokens = {
73
73
  decimals: 18,
74
74
  name: 'Ether',
75
75
  symbol: 'ETH'
76
- }),
77
- [blockchain_name_1.BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: new token_1.Token({
78
- blockchain: blockchain_name_1.BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET,
79
- address: '0x0000000000000000000000000000000000000000',
80
- name: 'Ether',
81
- symbol: 'ETH',
82
- decimals: 18
83
76
  })
84
77
  };
85
78
  const nonNativeNetworksTokens = Object.values(blockchain_name_1.NON_NATIVE_BLOCKCHAIN_NAME).reduce((acc, blockchain) => ({ ...acc, [blockchain]: { blockchain: blockchain, address: '0x0000000000000000000000000000000000000000' } }), {});
@@ -381,7 +374,7 @@ exports.nativeTokensList = {
381
374
  symbol: 'ZETA'
382
375
  }),
383
376
  [blockchain_name_1.BLOCKCHAIN_NAME.SOLANA]: new token_1.Token({
384
- address: '0x0000000000000000000000000000000000000000',
377
+ address: 'So11111111111111111111111111111111111111111',
385
378
  blockchain: blockchain_name_1.BLOCKCHAIN_NAME.SOLANA,
386
379
  decimals: 9,
387
380
  name: 'Solana',
@@ -479,12 +479,5 @@ exports.wrappedNativeTokensList = {
479
479
  name: 'Wrapped Gravity',
480
480
  symbol: 'WG',
481
481
  decimals: 18
482
- }),
483
- [blockchain_name_1.BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET]: new token_1.Token({
484
- blockchain: blockchain_name_1.BLOCKCHAIN_NAME.UNICHAIN_SEPOLIA_TESTNET,
485
- address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
486
- name: 'Wrapped Ether',
487
- symbol: 'WETH',
488
- decimals: 18
489
482
  })
490
483
  };
@@ -1,5 +0,0 @@
1
- import { EvmBlockchainName } from '@cryptorubic/core';
2
- export interface ClaimRequestInterface {
3
- sourceTransactionHash: string;
4
- fromBlockchain: EvmBlockchainName;
5
- }
@@ -1,12 +0,0 @@
1
- import { ProviderChainInterface } from './provider-chain.interface';
2
- import { CrossChainTradeType } from '@cryptorubic/core';
3
- export interface CrossChainProviderInterface {
4
- /**
5
- * Cross chain provider name
6
- */
7
- name: CrossChainTradeType;
8
- /**
9
- * Chains supported by the provider
10
- */
11
- chains: ProviderChainInterface[];
12
- }
@@ -1,14 +0,0 @@
1
- export interface ErrorInterface {
2
- /**
3
- * Error code
4
- */
5
- code: number;
6
- /**
7
- * Error message
8
- */
9
- reason: string;
10
- /**
11
- * Error specific data
12
- */
13
- data?: object;
14
- }
@@ -1,11 +0,0 @@
1
- export interface EstimatesInterface {
2
- destinationTokenAmount: string;
3
- destinationTokenMinAmount: string;
4
- destinationWeiAmount: string;
5
- destinationWeiMinAmount: string;
6
- destinationUsdAmount?: number;
7
- destinationUsdMinAmount?: number;
8
- durationInMinutes: number;
9
- slippage: number;
10
- priceImpact: number | null;
11
- }
@@ -1,16 +0,0 @@
1
- import { ErrorInterface } from './error.interface';
2
- import { CrossChainTradeType, OnChainTradeType } from '@cryptorubic/core';
3
- export interface FailedQuoteInterface {
4
- /**
5
- * Type of the trade
6
- */
7
- providerType: CrossChainTradeType | OnChainTradeType;
8
- /**
9
- * Error data
10
- */
11
- data: ErrorInterface;
12
- /**
13
- * Inner id
14
- */
15
- id: string;
16
- }
@@ -1,19 +0,0 @@
1
- import BigNumber from 'bignumber.js';
2
- import { PriceToken } from '@cryptorubic/core';
3
- export interface FeeInfo {
4
- rubicProxy: {
5
- fixedFee: FixedFee;
6
- platformFee: PlatformFee;
7
- } | null;
8
- provider: {
9
- fixedFee: FixedFee;
10
- } | null;
11
- }
12
- export interface FixedFee {
13
- amount: BigNumber;
14
- token: PriceToken;
15
- }
16
- export interface PlatformFee {
17
- percent: number;
18
- token: PriceToken;
19
- }
@@ -1,14 +0,0 @@
1
- import { GasFeeInterface } from './gas-fee.interface';
2
- import { ProtocolFeeInterface } from './protocol-fee.interface';
3
- import { ProviderFeeInterface } from './provider-fee.interface';
4
- import { TokenInerface } from './token.inerface';
5
- import { PercentFeeInterface } from './percent-fee.interface';
6
- export interface FeesInterface {
7
- gasTokenFees: {
8
- gas: GasFeeInterface;
9
- protocol: ProtocolFeeInterface;
10
- provider: ProviderFeeInterface;
11
- nativeToken: TokenInerface;
12
- };
13
- percentFees: PercentFeeInterface;
14
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export declare class ForeignBlacklistInterface {
2
- lifi?: string[];
3
- rango?: string[];
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ForeignBlacklistInterface = void 0;
4
- class ForeignBlacklistInterface {
5
- }
6
- exports.ForeignBlacklistInterface = ForeignBlacklistInterface;
@@ -1,6 +0,0 @@
1
- export interface GasFeeInterface {
2
- gasPrice: string;
3
- gasLimit: string;
4
- totalWeiAmount: string;
5
- totalUsdAmount: number;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { ProviderChainInterface } from './provider-chain.interface';
2
- import { OnChainTradeType } from '@cryptorubic/core';
3
- export interface OnChainProviderInterface {
4
- /**
5
- * On chain provider name
6
- */
7
- name: OnChainTradeType;
8
- /**
9
- * Chains supported by the provider
10
- */
11
- chains: ProviderChainInterface[];
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { TokenInerface } from './token.inerface';
2
- export interface PercentFeeInterface {
3
- /**
4
- * Percent
5
- */
6
- percent: number;
7
- /**
8
- * Token
9
- */
10
- token: TokenInerface | null;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface ProtocolFeeInterface {
2
- fixedAmount: string;
3
- fixedWeiAmount: string;
4
- fixedUsdAmount: number;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { BlockchainName } from '@cryptorubic/core';
2
- export interface ProviderChainInterface {
3
- /**
4
- * Chain name
5
- */
6
- name: BlockchainName;
7
- /**
8
- * Is proxy available for trade
9
- */
10
- proxyAvailable: boolean;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface ProviderFeeInterface {
2
- fixedAmount: string;
3
- fixedWeiAmount: string;
4
- fixedUsdAmount: number;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- import { QuoteRequestInterface } from './quote-request.interface';
2
- import { QuoteResponseInterface } from './quote-response.interface';
3
- import { FailedQuoteInterface } from './failed-quote.interface';
4
- export interface QuoteAllInterface {
5
- /**
6
- * Quote response data
7
- */
8
- quote: QuoteRequestInterface;
9
- /**
10
- * Successful routes
11
- */
12
- routes: Omit<QuoteResponseInterface, 'quote'>[];
13
- /**
14
- * Failed routes
15
- */
16
- failed?: Omit<FailedQuoteInterface, 'quote'>[];
17
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import { ForeignBlacklistInterface } from './foreign-blacklist.interface';
2
- import { CrossChainTradeType, OnChainTradeType } from '@cryptorubic/core';
3
- export interface QuoteOptionsInterface {
4
- integratorAddress?: string;
5
- fromAddress?: string;
6
- slippage?: number;
7
- receiver?: string | undefined;
8
- nativeBlacklist?: (CrossChainTradeType | OnChainTradeType)[];
9
- preferredProvider?: CrossChainTradeType | OnChainTradeType;
10
- foreignBlacklist?: ForeignBlacklistInterface;
11
- timeout?: number;
12
- enableTestnets?: boolean;
13
- enableChecks?: boolean;
14
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { QuoteOptionsInterface } from './quote-options.interface';
2
- import { QuoteTradeInterface } from './quote-trade.interface';
3
- export interface QuoteRequestInterface extends QuoteTradeInterface, QuoteOptionsInterface {
4
- showFailedRoutes?: boolean;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,46 +0,0 @@
1
- import { EstimatesInterface } from './estimates.interface';
2
- import { RoutingInterface } from './routing.interface';
3
- import { SwapType } from './swap-type';
4
- import { TransactionInterface } from './transaction.interface';
5
- import { ErrorInterface } from './error.interface';
6
- import { CrossChainTradeType, OnChainTradeType } from '@cryptorubic/core';
7
- import { FeesInterface } from './fees.interface';
8
- import { QuoteTokensInterface } from "./quote-tokens.interface";
9
- export interface QuoteResponseInterface {
10
- /**
11
- * Trade identifier
12
- */
13
- id: string;
14
- /**
15
- * Quote response data
16
- */
17
- tokens: QuoteTokensInterface;
18
- /**
19
- * Swap type
20
- */
21
- swapType: SwapType;
22
- /**
23
- * Provider type
24
- */
25
- providerType: CrossChainTradeType | OnChainTradeType;
26
- /**
27
- * Estimates
28
- */
29
- estimate: EstimatesInterface;
30
- /**
31
- * Fees
32
- */
33
- fees: FeesInterface;
34
- /**
35
- * Routing data
36
- */
37
- routing: RoutingInterface[];
38
- /**
39
- * Transaction data
40
- */
41
- transaction: TransactionInterface;
42
- /**
43
- * Specific info about quote params provider
44
- */
45
- warnings: ErrorInterface[];
46
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { TokenInerface } from "./token.inerface";
2
- export interface QuoteTokensInterface {
3
- from: TokenInerface;
4
- to: TokenInerface;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { BlockchainName } from '@cryptorubic/core';
2
- export interface QuoteTradeInterface {
3
- srcTokenAddress: string;
4
- dstTokenBlockchain: BlockchainName;
5
- srcTokenBlockchain: BlockchainName;
6
- srcTokenAmount: string;
7
- dstTokenAddress: string;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { SwapType } from './swap-type';
2
- import { TokenAmountInterface } from './token-amount.interface';
3
- export interface RoutingInterface {
4
- type: SwapType;
5
- provider: string;
6
- path: TokenAmountInterface[];
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { SwapRequestInterface } from './swap-request.interface';
2
- export interface SwapBestRequestInterface extends Omit<SwapRequestInterface, 'id'> {
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import { QuoteRequestInterface } from './quote-request.interface';
2
- export interface SwapRequestInterface extends Omit<QuoteRequestInterface, 'fromAddress'> {
3
- id: string;
4
- enableChecks?: boolean;
5
- fromAddress: string;
6
- receiver: string | undefined;
7
- signature?: string;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,23 +0,0 @@
1
- import { EstimatesInterface } from './estimates.interface';
2
- import { SwapRequestInterface } from './swap-request.interface';
3
- import { TransactionInterface } from './transaction.interface';
4
- import { ErrorInterface } from './error.interface';
5
- import { RoutingInterface } from './routing.interface';
6
- import { FeesInterface } from './fees.interface';
7
- import { CrossChainTradeType, OnChainTradeType } from '@cryptorubic/core';
8
- import { SwapType } from './swap-type';
9
- import { UniqueProviderInfoInterface } from "./unique-provider-info.interface";
10
- export interface SwapResponseInterface {
11
- quote: SwapRequestInterface;
12
- estimate: EstimatesInterface;
13
- fees: FeesInterface;
14
- transaction: TransactionInterface;
15
- uniqueInfo?: UniqueProviderInfoInterface;
16
- /**
17
- * Specific info about quote params provide
18
- */
19
- warnings: ErrorInterface[];
20
- routing: RoutingInterface[];
21
- providerType: CrossChainTradeType | OnChainTradeType;
22
- swapType: SwapType;
23
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type SwapType = 'cross-chain' | 'on-chain';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import { TokenInerface } from './token.inerface';
2
- export interface TokenAmountInterface extends TokenInerface {
3
- amount: string;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import { BlockchainName } from "@cryptorubic/core";
2
- export interface TokenInerface {
3
- address: string;
4
- decimals: number;
5
- symbol: string;
6
- name: string;
7
- blockchainId: number;
8
- blockchain: BlockchainName;
9
- price?: number;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- export interface TonEncodedConfigInterface {
2
- address: string;
3
- amount: string;
4
- payload?: string;
5
- stateInit?: string;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { TonEncodedConfigInterface } from "./ton-transaction.interface";
2
- export interface TransactionInterface {
3
- approvalAddress?: string;
4
- data?: string;
5
- to?: string;
6
- value?: string;
7
- depositAddress?: string;
8
- extraFields?: object;
9
- feeLimit?: number;
10
- tonMessages?: TonEncodedConfigInterface[];
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export interface UniqueProviderInfoInterface {
2
- changenowId?: string;
3
- rangoRequestId?: string;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- import { ErrorInterface } from './error.interface';
2
- import { CrossChainTradeType, OnChainTradeType } from '@cryptorubic/core';
3
- export interface WsQuoteErrorInterface {
4
- /**
5
- * Total amount of trades
6
- */
7
- total: number;
8
- /**
9
- * Amount of calculated trades
10
- */
11
- calculated: number;
12
- /**
13
- * Trade data
14
- */
15
- data: ErrorInterface;
16
- /**
17
- * Trade type
18
- */
19
- type: CrossChainTradeType | OnChainTradeType | null;
20
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import { QuoteRequestInterface } from './quote-request.interface';
2
- export interface WsQuoteRequestInterface extends QuoteRequestInterface {
3
- calculationTimeout: number;
4
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- import { QuoteResponseInterface } from './quote-response.interface';
2
- import { CrossChainTradeType, OnChainTradeType } from '@cryptorubic/core';
3
- export interface WsQuoteResponseInterface {
4
- /**
5
- * Total amount of trades
6
- */
7
- total: number;
8
- /**
9
- * Amount of calculated trades
10
- */
11
- calculated: number;
12
- /**
13
- * Trade data
14
- */
15
- trade: QuoteResponseInterface | null;
16
- /**
17
- * Trade type
18
- */
19
- type: CrossChainTradeType | OnChainTradeType | null;
20
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });