@riocrypto/common-server 1.0.1774 → 1.0.1776
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.
|
@@ -5,7 +5,7 @@ declare class FireblocksClient {
|
|
|
5
5
|
constructor(privateKey: string, apiKey: string);
|
|
6
6
|
estimateWithdrawFee(crypto: Crypto, address: string, amountCrypto: number): Promise<string | number | undefined>;
|
|
7
7
|
withdrawFromExchange(rioId: string, crypto: Crypto, address: string, amountCrypto: number): Promise<void>;
|
|
8
|
-
withdrawFromVault(rioId: string, crypto: Crypto, address: string, amountCrypto: number, vaultId?: string): Promise<string>;
|
|
8
|
+
withdrawFromVault(rioId: string, crypto: Crypto, address: string, amountCrypto: number, vaultId?: string, notes?: string): Promise<string>;
|
|
9
9
|
getVaultCryptoBalance(vaultId: string, crypto: Crypto): Promise<number>;
|
|
10
10
|
getVaultCryptoAddress(vaultId: string, crypto: Crypto): Promise<string>;
|
|
11
11
|
getTotalVaultUSDBalance(vaultId: string): Promise<number>;
|
|
@@ -75,7 +75,7 @@ class FireblocksClient {
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
withdrawFromVault(rioId, crypto, address, amountCrypto, vaultId) {
|
|
78
|
+
withdrawFromVault(rioId, crypto, address, amountCrypto, vaultId, notes) {
|
|
79
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
80
|
if ([common_1.RioEnv.Sandbox, common_1.RioEnv.Local].includes(process.env.RIO_ENV)) {
|
|
81
81
|
throw new Error("Withdrawals are disabled in sandbox mode.");
|
|
@@ -95,6 +95,7 @@ class FireblocksClient {
|
|
|
95
95
|
},
|
|
96
96
|
amount: amountCrypto,
|
|
97
97
|
operation: fireblocks_sdk_1.TransactionOperation.TRANSFER,
|
|
98
|
+
note: notes,
|
|
98
99
|
});
|
|
99
100
|
return response.id;
|
|
100
101
|
});
|
|
@@ -4,6 +4,7 @@ interface CoincoverTransactionAttrs {
|
|
|
4
4
|
status: "GREEN" | "RED";
|
|
5
5
|
rejectionCode?: string;
|
|
6
6
|
orderId?: string;
|
|
7
|
+
orderPart?: number;
|
|
7
8
|
}
|
|
8
9
|
interface CoincoverTransactionModel extends Model<CoincoverTransactionDoc> {
|
|
9
10
|
build(attrs: CoincoverTransactionAttrs): CoincoverTransactionDoc;
|
|
@@ -14,6 +15,7 @@ interface CoincoverTransactionDoc extends Document {
|
|
|
14
15
|
status: "GREEN" | "RED";
|
|
15
16
|
rejectionCode?: string;
|
|
16
17
|
orderId?: string;
|
|
18
|
+
orderPart?: number;
|
|
17
19
|
}
|
|
18
20
|
declare const buildCoincoverTransaction: (mongoose: Mongoose) => CoincoverTransactionModel;
|
|
19
21
|
export { buildCoincoverTransaction, CoincoverTransactionDoc, CoincoverTransactionAttrs, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1776",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build/**/*"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"clean": "
|
|
11
|
+
"clean": "rm -rf ./build/*",
|
|
12
12
|
"build": "npm run clean && tsc"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [],
|
|
@@ -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.1572",
|
|
30
30
|
"@types/express": "^4.17.13",
|
|
31
31
|
"axios": "^1.6.0",
|
|
32
32
|
"crypto-js": "^4.2.0",
|