@riocrypto/common-server 1.0.1803 → 1.0.1805

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.
@@ -12,7 +12,7 @@ declare class ClusterClient {
12
12
  createOrder(quoteId: string, cryptoAddress?: string, notes?: string, externalAccountId?: string): Promise<Order>;
13
13
  confirmPayment(orderId: string): Promise<void>;
14
14
  createBitsoBankAccount(userId: string): Promise<BitsoBankAccount>;
15
- createAuthWithoutRegistration(phoneNumber: string, role?: AuthRole): Promise<Auth>;
15
+ createAuthWithoutRegistration(phoneNumber: string, firstName: string, lastName: string, role?: AuthRole): Promise<Auth>;
16
16
  getLiquidityAvailable(): Promise<{
17
17
  buy: number;
18
18
  sell: number;
@@ -196,10 +196,12 @@ class ClusterClient {
196
196
  return response.data;
197
197
  });
198
198
  }
199
- createAuthWithoutRegistration(phoneNumber, role) {
199
+ createAuthWithoutRegistration(phoneNumber, firstName, lastName, role) {
200
200
  return __awaiter(this, void 0, void 0, function* () {
201
201
  const response = yield this.axios.post(`${this.baseUrl}/api/auth/unregistered`, {
202
202
  phoneNumber,
203
+ firstName,
204
+ lastName,
203
205
  role,
204
206
  }, {
205
207
  headers: {
@@ -1,4 +1,4 @@
1
1
  import { Crypto } from "@riocrypto/common";
2
- export declare const getNetworkFees: (crypto: Crypto, conversionRateToUSD: number) => Promise<{
2
+ export declare const getNetworkFees: (crypto: Crypto, conversionRateToUSD: number) => {
3
3
  withdrawFeeInBaseFiat: number;
4
- }>;
4
+ };
@@ -1,17 +1,8 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.getNetworkFees = void 0;
13
4
  const common_1 = require("@riocrypto/common");
14
- const getNetworkFees = (crypto, conversionRateToUSD) => __awaiter(void 0, void 0, void 0, function* () {
5
+ const getNetworkFees = (crypto, conversionRateToUSD) => {
15
6
  // const address =
16
7
  // crypto === Crypto.USDCSolana
17
8
  // ? "HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH"
@@ -62,5 +53,5 @@ const getNetworkFees = (crypto, conversionRateToUSD) => __awaiter(void 0, void 0
62
53
  return {
63
54
  withdrawFeeInBaseFiat: withdrawFeeInUSD * (1 / conversionRateToUSD),
64
55
  };
65
- });
56
+ };
66
57
  exports.getNetworkFees = getNetworkFees;
@@ -10,6 +10,7 @@ interface CryptoAddressAttrs {
10
10
  lastChecked: Date;
11
11
  label?: string;
12
12
  advancedVerificationStatus?: AddressVerificationStatus;
13
+ fireblocksId?: string;
13
14
  }
14
15
  interface CryptoAddressDoc extends mongoose.Document {
15
16
  createdAt: Date;
@@ -21,6 +22,7 @@ interface CryptoAddressDoc extends mongoose.Document {
21
22
  lastChecked: Date;
22
23
  label?: string;
23
24
  advancedVerificationStatus?: AddressVerificationStatus;
25
+ fireblocksId?: string;
24
26
  }
25
27
  interface CryptoAddressModel extends mongoose.Model<CryptoAddressDoc> {
26
28
  build(attrs: CryptoAddressAttrs): CryptoAddressDoc;
@@ -39,6 +39,9 @@ const buildCryptoAddress = (mongoose) => {
39
39
  advancedVerificationStatus: {
40
40
  type: String,
41
41
  },
42
+ fireblocksId: {
43
+ type: String,
44
+ },
42
45
  }, {
43
46
  toJSON: {
44
47
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1803",
3
+ "version": "1.0.1805",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@google-cloud/secret-manager": "^5.3.0",
27
27
  "@google-cloud/storage": "^6.9.5",
28
28
  "@hyperdx/node-opentelemetry": "^0.4.2",
29
- "@riocrypto/common": "^1.0.1604",
29
+ "@riocrypto/common": "^1.0.1606",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",