@riocrypto/common-server 1.0.2624 → 1.0.2625

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, crypto, destination, amountCrypto, vaultId, notes, }: {
8
+ withdrawFromVault({ rioId, crypto, destination, amountCrypto, vaultId, notes, memo, }: {
9
9
  rioId: string;
10
10
  crypto: Crypto;
11
11
  destination: {
@@ -15,6 +15,7 @@ declare class FireblocksClient {
15
15
  amountCrypto: number;
16
16
  vaultId?: string;
17
17
  notes?: string;
18
+ memo?: string;
18
19
  }): Promise<string>;
19
20
  getVaultCryptoBalance(vaultId: string, crypto: Crypto): Promise<number>;
20
21
  getVaultAccount(vaultId: string): Promise<VaultAccountResponse>;
@@ -42,7 +43,7 @@ declare class FireblocksClient {
42
43
  transferFromExchange(rioId: string, crypto: Crypto, sourceExchangeId: string, destinationVaultId: string, amountCrypto: number, notes?: string): Promise<string>;
43
44
  sweep(rioId: string, vaultId: string, assetId: string, amount: number): Promise<void>;
44
45
  createExternalWallet(name: string, userId: string): Promise<string>;
45
- createWhitelistedWalletAsset(fireblocksWalletId: string, asset: Crypto, address: string): Promise<string>;
46
+ createWhitelistedWalletAsset(fireblocksWalletId: string, asset: Crypto, address: string, memo?: string): Promise<string>;
46
47
  }
47
48
  export declare const buildFireblocksClient: () => Promise<FireblocksClient>;
48
49
  export {};
@@ -75,7 +75,7 @@ class FireblocksClient {
75
75
  });
76
76
  });
77
77
  }
78
- withdrawFromVault({ rioId, crypto, destination, amountCrypto, vaultId, notes, }) {
78
+ withdrawFromVault({ rioId, crypto, destination, amountCrypto, vaultId, notes, memo, }) {
79
79
  return __awaiter(this, void 0, void 0, function* () {
80
80
  // Ensure either address or fireblocksWalletId is provided
81
81
  if (!destination.address && !destination.fireblocksWalletId) {
@@ -101,6 +101,7 @@ class FireblocksClient {
101
101
  oneTimeAddress: destination.address
102
102
  ? {
103
103
  address: destination.address,
104
+ tag: memo,
104
105
  }
105
106
  : undefined,
106
107
  id: destination.fireblocksWalletId
@@ -452,9 +453,9 @@ class FireblocksClient {
452
453
  return response.id;
453
454
  });
454
455
  }
455
- createWhitelistedWalletAsset(fireblocksWalletId, asset, address) {
456
+ createWhitelistedWalletAsset(fireblocksWalletId, asset, address, memo) {
456
457
  return __awaiter(this, void 0, void 0, function* () {
457
- const response = yield this.fireblocks.createExternalWalletAsset(fireblocksWalletId, asset, address);
458
+ const response = yield this.fireblocks.createExternalWalletAsset(fireblocksWalletId, asset, address, memo);
458
459
  return response.id;
459
460
  });
460
461
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2624",
3
+ "version": "1.0.2625",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",