@riocrypto/common-server 1.0.1104 → 1.0.1105

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.
@@ -11,7 +11,7 @@ declare class FireblocksClient {
11
11
  getExchangeFiatBalance(): Promise<number>;
12
12
  getTransactions(vaultId: string, crypto: Crypto, nextPage?: string): Promise<any>;
13
13
  getDepositAddress(vaultId: string, crypto: Crypto): Promise<string>;
14
- createVault(userId: string, name: string): Promise<string>;
14
+ createVault(userId: string, name: string, type: "transactional" | "managed"): Promise<string>;
15
15
  createWallet(vaultId: string, crypto: Crypto): Promise<string>;
16
16
  internalTransfer(crypto: Crypto, sourceVaultId: string, destinationVaultId: string, amountCrypto: number): Promise<string>;
17
17
  sweep(vaultId: string, assetId: string, amount: number): Promise<void>;
@@ -126,9 +126,9 @@ class FireblocksClient {
126
126
  return addresses[0].address;
127
127
  });
128
128
  }
129
- createVault(userId, name) {
129
+ createVault(userId, name, type) {
130
130
  return __awaiter(this, void 0, void 0, function* () {
131
- const vault = yield this.fireblocks.createVaultAccount(`${name} - ${userId}`, false, userId);
131
+ const vault = yield this.fireblocks.createVaultAccount(`${name} - ${userId} - ${type}`, false, userId);
132
132
  return vault.id;
133
133
  });
134
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1104",
3
+ "version": "1.0.1105",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",