@riocrypto/common 1.0.1668 → 1.0.1670
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/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/build/types/blockchain.d.ts +6 -0
- package/build/types/blockchain.js +10 -0
- package/build/types/dashboard-settings.d.ts +9 -12
- package/build/types/trading-pair.d.ts +12 -0
- package/build/types/trading-pair.js +16 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -273,6 +273,8 @@ export * from "./types/arbitrage-settings";
|
|
|
273
273
|
export * from "./types/arbitrage-opportunity";
|
|
274
274
|
export * from "./types/settlement-time";
|
|
275
275
|
export * from "./types/dashboard-settings";
|
|
276
|
+
export * from "./types/blockchain";
|
|
277
|
+
export * from "./types/trading-pair";
|
|
276
278
|
export * from "./classes/Asset";
|
|
277
279
|
export * from "./classes/KYCFieldClass";
|
|
278
280
|
export * from "./classes/KYCFileClass";
|
package/build/index.js
CHANGED
|
@@ -289,6 +289,8 @@ __exportStar(require("./types/arbitrage-settings"), exports);
|
|
|
289
289
|
__exportStar(require("./types/arbitrage-opportunity"), exports);
|
|
290
290
|
__exportStar(require("./types/settlement-time"), exports);
|
|
291
291
|
__exportStar(require("./types/dashboard-settings"), exports);
|
|
292
|
+
__exportStar(require("./types/blockchain"), exports);
|
|
293
|
+
__exportStar(require("./types/trading-pair"), exports);
|
|
292
294
|
__exportStar(require("./classes/Asset"), exports);
|
|
293
295
|
__exportStar(require("./classes/KYCFieldClass"), exports);
|
|
294
296
|
__exportStar(require("./classes/KYCFileClass"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Blockchain = void 0;
|
|
4
|
+
var Blockchain;
|
|
5
|
+
(function (Blockchain) {
|
|
6
|
+
Blockchain["Polygon"] = "polygon";
|
|
7
|
+
Blockchain["Ethereum"] = "ethereum";
|
|
8
|
+
Blockchain["Solana"] = "solana";
|
|
9
|
+
Blockchain["Tron"] = "tron";
|
|
10
|
+
})(Blockchain = exports.Blockchain || (exports.Blockchain = {}));
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
+
import { Blockchain } from "./blockchain";
|
|
1
2
|
import { SettlementTime } from "./settlement-time";
|
|
3
|
+
import { TradingPair } from "./trading-pair";
|
|
2
4
|
export interface DashboardSettings {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
theme?: "light" | "dark";
|
|
6
|
-
language?: "en" | "es";
|
|
7
|
-
previousTrade?: {
|
|
8
|
-
key: string;
|
|
9
|
-
amountFiat: number;
|
|
10
|
-
amountCrypto: number;
|
|
11
|
-
quoteInCrypto: boolean;
|
|
12
|
-
};
|
|
5
|
+
userId: string;
|
|
6
|
+
previousTrade?: TradingPair;
|
|
13
7
|
tradePresets?: {
|
|
14
|
-
[key
|
|
15
|
-
|
|
8
|
+
[key in TradingPair]: {
|
|
9
|
+
blockchain: Blockchain;
|
|
10
|
+
amountFiat: number;
|
|
11
|
+
amountCrypto: number;
|
|
12
|
+
quoteInCrypto: boolean;
|
|
16
13
|
destinationBankAccountId?: string;
|
|
17
14
|
destinationWalletId?: string;
|
|
18
15
|
originWalletId?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum TradingPair {
|
|
2
|
+
USDT_MXN = "USDT_MXN",
|
|
3
|
+
USDC_MXN = "USDC_MXN",
|
|
4
|
+
USDT_MXUSD = "USDT_MXUSD",
|
|
5
|
+
USDC_MXUSD = "USDC_MXUSD",
|
|
6
|
+
USDT_PEN = "USDT_PEN",
|
|
7
|
+
USDC_PEN = "USDC_PEN",
|
|
8
|
+
USDT_PEUSD = "USDT_PEUSD",
|
|
9
|
+
USDC_PEUSD = "USDC_PEUSD",
|
|
10
|
+
USDT_USD = "USDT_USD",
|
|
11
|
+
USDC_USD = "USDC_USD"
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TradingPair = void 0;
|
|
4
|
+
var TradingPair;
|
|
5
|
+
(function (TradingPair) {
|
|
6
|
+
TradingPair["USDT_MXN"] = "USDT_MXN";
|
|
7
|
+
TradingPair["USDC_MXN"] = "USDC_MXN";
|
|
8
|
+
TradingPair["USDT_MXUSD"] = "USDT_MXUSD";
|
|
9
|
+
TradingPair["USDC_MXUSD"] = "USDC_MXUSD";
|
|
10
|
+
TradingPair["USDT_PEN"] = "USDT_PEN";
|
|
11
|
+
TradingPair["USDC_PEN"] = "USDC_PEN";
|
|
12
|
+
TradingPair["USDT_PEUSD"] = "USDT_PEUSD";
|
|
13
|
+
TradingPair["USDC_PEUSD"] = "USDC_PEUSD";
|
|
14
|
+
TradingPair["USDT_USD"] = "USDT_USD";
|
|
15
|
+
TradingPair["USDC_USD"] = "USDC_USD";
|
|
16
|
+
})(TradingPair = exports.TradingPair || (exports.TradingPair = {}));
|