@riocrypto/common-server 1.0.1804 → 1.0.1805
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
1
|
import { Crypto } from "@riocrypto/common";
|
|
2
|
-
export declare const getNetworkFees: (crypto: Crypto, conversionRateToUSD: number) =>
|
|
2
|
+
export declare const getNetworkFees: (crypto: Crypto, conversionRateToUSD: number) => {
|
|
3
3
|
withdrawFeeInBaseFiat: number;
|
|
4
|
-
}
|
|
4
|
+
};
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.getNetworkFees = void 0;
|
|
13
4
|
const common_1 = require("@riocrypto/common");
|
|
14
|
-
const getNetworkFees = (crypto, conversionRateToUSD) =>
|
|
5
|
+
const getNetworkFees = (crypto, conversionRateToUSD) => {
|
|
15
6
|
// const address =
|
|
16
7
|
// crypto === Crypto.USDCSolana
|
|
17
8
|
// ? "HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH"
|
|
@@ -62,5 +53,5 @@ const getNetworkFees = (crypto, conversionRateToUSD) => __awaiter(void 0, void 0
|
|
|
62
53
|
return {
|
|
63
54
|
withdrawFeeInBaseFiat: withdrawFeeInUSD * (1 / conversionRateToUSD),
|
|
64
55
|
};
|
|
65
|
-
}
|
|
56
|
+
};
|
|
66
57
|
exports.getNetworkFees = getNetworkFees;
|
|
@@ -10,6 +10,7 @@ interface CryptoAddressAttrs {
|
|
|
10
10
|
lastChecked: Date;
|
|
11
11
|
label?: string;
|
|
12
12
|
advancedVerificationStatus?: AddressVerificationStatus;
|
|
13
|
+
fireblocksId?: string;
|
|
13
14
|
}
|
|
14
15
|
interface CryptoAddressDoc extends mongoose.Document {
|
|
15
16
|
createdAt: Date;
|
|
@@ -21,6 +22,7 @@ interface CryptoAddressDoc extends mongoose.Document {
|
|
|
21
22
|
lastChecked: Date;
|
|
22
23
|
label?: string;
|
|
23
24
|
advancedVerificationStatus?: AddressVerificationStatus;
|
|
25
|
+
fireblocksId?: string;
|
|
24
26
|
}
|
|
25
27
|
interface CryptoAddressModel extends mongoose.Model<CryptoAddressDoc> {
|
|
26
28
|
build(attrs: CryptoAddressAttrs): CryptoAddressDoc;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1805",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@google-cloud/secret-manager": "^5.3.0",
|
|
27
27
|
"@google-cloud/storage": "^6.9.5",
|
|
28
28
|
"@hyperdx/node-opentelemetry": "^0.4.2",
|
|
29
|
-
"@riocrypto/common": "^1.0.
|
|
29
|
+
"@riocrypto/common": "^1.0.1606",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^1.6.0",
|
|
32
32
|
"crypto-js": "^4.2.0",
|