@riocrypto/common-server 1.0.2616 → 1.0.2618

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.
@@ -43,6 +43,7 @@ class CoincoverClient {
43
43
  [common_1.Crypto.USDTTron]: "tether",
44
44
  [common_1.Crypto.USDC]: "usd-coin",
45
45
  [common_1.Crypto.USDCPolygon]: "usd-coin",
46
+ [common_1.Crypto.USDCStellar]: "usd-coin",
46
47
  [common_1.Crypto.USDCSolana]: "usd-coin",
47
48
  [common_1.Crypto.USDCPolygonBridged]: "usd-coin",
48
49
  [common_1.Crypto.TRON]: "tron",
@@ -158,6 +158,7 @@ class FireblocksClient {
158
158
  if ([
159
159
  common_1.Crypto.USDC,
160
160
  common_1.Crypto.USDCPolygon,
161
+ common_1.Crypto.USDCStellar,
161
162
  common_1.Crypto.USDCPolygonBridged,
162
163
  common_1.Crypto.USDCSolana,
163
164
  common_1.Crypto.USDTEthereum,
@@ -13,6 +13,9 @@ const getNetworkFees = (crypto, conversionRateToUSD) => {
13
13
  else if (crypto === common_1.Crypto.USDCPolygon) {
14
14
  withdrawFeeInUSD = 0.01;
15
15
  }
16
+ else if (crypto === common_1.Crypto.USDCStellar) {
17
+ withdrawFeeInUSD = 0.01;
18
+ }
16
19
  else if (crypto === common_1.Crypto.USDC || crypto === common_1.Crypto.USDTEthereum) {
17
20
  withdrawFeeInUSD = 5;
18
21
  }
@@ -6,6 +6,7 @@ interface CryptoAddressAttrs {
6
6
  crypto: Crypto;
7
7
  address: string;
8
8
  approved: boolean;
9
+ memo?: string;
9
10
  lastChecked: Date;
10
11
  label?: string;
11
12
  twoFactorApproved?: boolean;
@@ -20,6 +21,7 @@ interface CryptoAddressDoc extends mongoose.Document {
20
21
  crypto: Crypto;
21
22
  address: string;
22
23
  approved: boolean;
24
+ memo?: string;
23
25
  lastChecked: Date;
24
26
  label?: string;
25
27
  twoFactorApproved?: boolean;
@@ -26,6 +26,9 @@ const buildCryptoAddress = (mongoose) => {
26
26
  type: Boolean,
27
27
  required: true,
28
28
  },
29
+ memo: {
30
+ type: String,
31
+ },
29
32
  lastChecked: {
30
33
  type: mongoose.Schema.Types.Date,
31
34
  required: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2616",
3
+ "version": "1.0.2618",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2417",
31
+ "@riocrypto/common": "^1.0.2419",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",