@riocrypto/common 1.0.911 → 1.0.913
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.
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.numberWithCommas = void 0;
|
|
4
4
|
const numberWithCommas = (x, fixedNumber = 2) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const formattedNumber = x.toLocaleString(undefined, {
|
|
6
|
+
minimumFractionDigits: fixedNumber,
|
|
7
|
+
maximumFractionDigits: fixedNumber,
|
|
8
|
+
});
|
|
9
|
+
return formattedNumber;
|
|
9
10
|
};
|
|
10
11
|
exports.numberWithCommas = numberWithCommas;
|
package/build/index.d.ts
CHANGED
|
@@ -156,6 +156,7 @@ export * from "./types/master-order-record";
|
|
|
156
156
|
export * from "./types/invoice";
|
|
157
157
|
export * from "./types/bank-transfer";
|
|
158
158
|
export * from "./types/webhook-registration";
|
|
159
|
+
export * from "./types/chained-quote";
|
|
159
160
|
export * from "./classes/Asset";
|
|
160
161
|
export * from "./classes/CountryAsset";
|
|
161
162
|
export * from "./classes/CryptoAsset";
|
package/build/index.js
CHANGED
|
@@ -172,6 +172,7 @@ __exportStar(require("./types/master-order-record"), exports);
|
|
|
172
172
|
__exportStar(require("./types/invoice"), exports);
|
|
173
173
|
__exportStar(require("./types/bank-transfer"), exports);
|
|
174
174
|
__exportStar(require("./types/webhook-registration"), exports);
|
|
175
|
+
__exportStar(require("./types/chained-quote"), exports);
|
|
175
176
|
__exportStar(require("./classes/Asset"), exports);
|
|
176
177
|
__exportStar(require("./classes/CountryAsset"), exports);
|
|
177
178
|
__exportStar(require("./classes/CryptoAsset"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Country } from "./country";
|
|
2
|
+
import { Fees } from "./fees";
|
|
3
|
+
import { Fiat } from "./fiat";
|
|
4
|
+
export interface ChainedQuote {
|
|
5
|
+
id: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
crypto: Crypto;
|
|
8
|
+
startFiat: Fiat;
|
|
9
|
+
endFiat: Fiat;
|
|
10
|
+
expiresAt: Date;
|
|
11
|
+
startCountry: Country;
|
|
12
|
+
endCountry: Country;
|
|
13
|
+
startAmountFiat: number;
|
|
14
|
+
endAmountFiat: number;
|
|
15
|
+
fees: Fees;
|
|
16
|
+
price: number;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
brokerId?: string;
|
|
19
|
+
}
|