@riocrypto/common-server 1.0.1805 → 1.0.1806
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.
|
@@ -23,6 +23,8 @@ declare class FireblocksClient {
|
|
|
23
23
|
transferFromExchangeToExchange(rioId: string, crypto: Crypto, sourceExchangeId: string, destinationExchangeId: string, amountCrypto: number, notes?: string): Promise<string>;
|
|
24
24
|
transferFromExchange(rioId: string, crypto: Crypto, sourceExchangeId: string, destinationVaultId: string, amountCrypto: number, notes?: string): Promise<string>;
|
|
25
25
|
sweep(rioId: string, vaultId: string, assetId: string, amount: number): Promise<void>;
|
|
26
|
+
createExternalWallet(name: string, userId: string): Promise<string>;
|
|
27
|
+
createWhitelistedWalletAsset(fireblocksWalletId: string, asset: Crypto, address: string): Promise<string>;
|
|
26
28
|
}
|
|
27
29
|
export declare const buildFireblocksClient: () => Promise<FireblocksClient>;
|
|
28
30
|
export {};
|
|
@@ -410,6 +410,18 @@ class FireblocksClient {
|
|
|
410
410
|
});
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
|
+
createExternalWallet(name, userId) {
|
|
414
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
415
|
+
const response = yield this.fireblocks.createExternalWallet(name, userId);
|
|
416
|
+
return response.id;
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
createWhitelistedWalletAsset(fireblocksWalletId, asset, address) {
|
|
420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
421
|
+
const response = yield this.fireblocks.createExternalWalletAsset(fireblocksWalletId, asset, address);
|
|
422
|
+
return response.id;
|
|
423
|
+
});
|
|
424
|
+
}
|
|
413
425
|
}
|
|
414
426
|
const buildFireblocksClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
415
427
|
const FIREBLOCKS_PRIVATE_KEY = yield secret_manager_client_1.secretManagerClient.getSecretValue("FIREBLOCKS_PRIVATE_KEY");
|