@riocrypto/common-server 1.0.508 → 1.0.509

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.
@@ -10,6 +10,7 @@ declare class FireblocksClient {
10
10
  getVaultCryptoBalance(crypto: Crypto): Promise<number>;
11
11
  getExchangeCryptoBalance(crypto: Crypto): Promise<number>;
12
12
  getExchangeFiatBalance(): Promise<number>;
13
+ getDepositAddress(crypto: Crypto): Promise<string>;
13
14
  }
14
15
  export declare const fireblocksClient: FireblocksClient;
15
16
  export {};
@@ -136,5 +136,11 @@ class FireblocksClient {
136
136
  return balance;
137
137
  });
138
138
  }
139
+ getDepositAddress(crypto) {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ let addresses = yield this.fireblocks.getDepositAddresses("2", crypto);
142
+ return addresses[0].address;
143
+ });
144
+ }
139
145
  }
140
146
  exports.fireblocksClient = new FireblocksClient(process.env.FIREBLOCKS_PRIVATE_KEY, process.env.FIREBLOCKS_API_KEY);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.508",
3
+ "version": "1.0.509",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",