@riocrypto/common 1.0.1376 → 1.0.1378

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.
@@ -13,7 +13,7 @@ class AboveLimitError extends custom_error_1.CustomError {
13
13
  return [
14
14
  {
15
15
  code: this.internalCode,
16
- message: "Order would go above user's transaction limit",
16
+ message: "Order would go above the user's transaction limit",
17
17
  },
18
18
  ];
19
19
  }
@@ -0,0 +1,2 @@
1
+ import { Crypto } from "../types/crypto";
2
+ export declare const getAddressForTesting: (crypto: Crypto) => string;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAddressForTesting = void 0;
4
+ const crypto_1 = require("../types/crypto");
5
+ const getAddressForTesting = (crypto) => {
6
+ switch (crypto) {
7
+ case crypto_1.Crypto.USDC:
8
+ return "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C";
9
+ case crypto_1.Crypto.USDCPolygon:
10
+ return "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C";
11
+ case crypto_1.Crypto.USDTEthereum:
12
+ return "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C";
13
+ case crypto_1.Crypto.USDTPolygon:
14
+ return "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C";
15
+ case crypto_1.Crypto.USDCPolygonBridged:
16
+ return "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C";
17
+ case crypto_1.Crypto.USDCSolana:
18
+ return "5BZDQjWad45rT1vYT5KdJHgSU4rWXL1Y5nDoTwSrT8Pr";
19
+ case crypto_1.Crypto.USDTTron:
20
+ return "TS9kzAVq4PR7xNoQDJXSP6Kgi8GFbwUbzg";
21
+ default:
22
+ return "Err";
23
+ }
24
+ };
25
+ exports.getAddressForTesting = getAddressForTesting;
package/build/index.d.ts CHANGED
@@ -254,6 +254,7 @@ export * from "./helpers/get-highest-onboarding-status";
254
254
  export * from "./helpers/get-auth-name";
255
255
  export * from "./helpers/validate-individual-name";
256
256
  export * from "./helpers/validate-business-name";
257
+ export * from "./helpers/get-address-for-testing";
257
258
  export * from "./clients/rio-client";
258
259
  export * from "./clients/rio-admin-client";
259
260
  export * from "./constants/mexico-fiscal-regimens";
package/build/index.js CHANGED
@@ -270,6 +270,7 @@ __exportStar(require("./helpers/get-highest-onboarding-status"), exports);
270
270
  __exportStar(require("./helpers/get-auth-name"), exports);
271
271
  __exportStar(require("./helpers/validate-individual-name"), exports);
272
272
  __exportStar(require("./helpers/validate-business-name"), exports);
273
+ __exportStar(require("./helpers/get-address-for-testing"), exports);
273
274
  __exportStar(require("./clients/rio-client"), exports);
274
275
  __exportStar(require("./clients/rio-admin-client"), exports);
275
276
  __exportStar(require("./constants/mexico-fiscal-regimens"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1376",
3
+ "version": "1.0.1378",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -23,9 +23,9 @@
23
23
  "dependencies": {
24
24
  "@google-cloud/secret-manager": "^4.2.1",
25
25
  "@types/express": "^4.17.13",
26
- "axios": "^0.27.2",
26
+ "axios": "^1.6.0",
27
27
  "express-validator": "^6.15.0",
28
- "jsonwebtoken": "^8.5.1",
28
+ "jsonwebtoken": "^9.0.0",
29
29
  "node-nats-streaming": "^0.3.2",
30
30
  "uuid": "^9.0.0"
31
31
  }