@riocrypto/common-server 1.0.965 → 1.0.967

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 | undefined>;
7
7
  withdrawFromExchange(crypto: Crypto, address: string, amountCrypto: number): Promise<void>;
8
- withdrawFromVault(crypto: Crypto, address: string, amountCrypto: number): Promise<void>;
8
+ withdrawFromVault(crypto: Crypto, address: string, amountCrypto: number): Promise<string>;
9
9
  getVaultCryptoBalance(crypto: Crypto): Promise<number>;
10
10
  getExchangeCryptoBalance(crypto: Crypto): Promise<number>;
11
11
  getExchangeFiatBalance(): Promise<number>;
@@ -57,7 +57,7 @@ class FireblocksClient {
57
57
  }
58
58
  withdrawFromVault(crypto, address, amountCrypto) {
59
59
  return __awaiter(this, void 0, void 0, function* () {
60
- yield this.fireblocks.createTransaction({
60
+ const response = yield this.fireblocks.createTransaction({
61
61
  assetId: crypto,
62
62
  source: {
63
63
  type: fireblocks_sdk_1.PeerType.VAULT_ACCOUNT,
@@ -72,6 +72,7 @@ class FireblocksClient {
72
72
  amount: amountCrypto,
73
73
  operation: fireblocks_sdk_1.TransactionOperation.TRANSFER,
74
74
  });
75
+ return response.id;
75
76
  });
76
77
  }
77
78
  getVaultCryptoBalance(crypto) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.965",
3
+ "version": "1.0.967",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "@aws-sdk/client-s3": "^3.297.0",
25
25
  "@everapi/currencyapi-js": "^1.0.6",
26
26
  "@google-cloud/storage": "^6.9.5",
27
- "@riocrypto/common": "^1.0.830",
27
+ "@riocrypto/common": "^1.0.831",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",