@riocrypto/common 1.0.2422 → 1.0.2424

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.
@@ -1,2 +1,5 @@
1
1
  import { Crypto } from "../types/crypto";
2
- export declare const getAddressForTesting: (crypto: Crypto) => string;
2
+ export declare const getAddressForTesting: (crypto: Crypto) => {
3
+ address: string;
4
+ memo?: string;
5
+ };
@@ -5,23 +5,26 @@ const crypto_1 = require("../types/crypto");
5
5
  const getAddressForTesting = (crypto) => {
6
6
  switch (crypto) {
7
7
  case crypto_1.Crypto.USDC:
8
- return "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C";
8
+ return { address: "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C" };
9
9
  case crypto_1.Crypto.USDCPolygon:
10
- return "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C";
10
+ return { address: "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C" };
11
11
  case crypto_1.Crypto.USDTEthereum:
12
- return "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C";
12
+ return { address: "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C" };
13
13
  case crypto_1.Crypto.USDTPolygon:
14
- return "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C";
14
+ return { address: "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C" };
15
15
  case crypto_1.Crypto.USDCPolygonBridged:
16
- return "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C";
16
+ return { address: "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C" };
17
17
  case crypto_1.Crypto.USDCSolana:
18
- return "5BZDQjWad45rT1vYT5KdJHgSU4rWXL1Y5nDoTwSrT8Pr";
18
+ return { address: "5BZDQjWad45rT1vYT5KdJHgSU4rWXL1Y5nDoTwSrT8Pr" };
19
19
  case crypto_1.Crypto.USDTTron:
20
- return "TS9kzAVq4PR7xNoQDJXSP6Kgi8GFbwUbzg";
20
+ return { address: "TS9kzAVq4PR7xNoQDJXSP6Kgi8GFbwUbzg" };
21
21
  case crypto_1.Crypto.USDCStellar:
22
- return "GAFLAAPPSSN2HT2IMK2WFGPFIXQMUUKIFECJEGP373WJQST432CPXKFD";
22
+ return {
23
+ address: "GAFLAAPPSSN2HT2IMK2WFGPFIXQMUUKIFECJEGP373WJQST432CPXKFD",
24
+ memo: "304894830",
25
+ };
23
26
  default:
24
- return "Err";
27
+ throw new Error(`Unsupported crypto: ${crypto}`);
25
28
  }
26
29
  };
27
30
  exports.getAddressForTesting = getAddressForTesting;
@@ -4,9 +4,9 @@ export interface FireblocksVault {
4
4
  userId: string;
5
5
  fireblocksVaultId: string;
6
6
  depositAddresses?: {
7
- [key: string]: string;
8
- };
9
- depositMemos?: {
10
- [key: string]: string;
7
+ [key: string]: {
8
+ address: string;
9
+ memo?: string;
10
+ };
11
11
  };
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2422",
3
+ "version": "1.0.2424",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",