@riocrypto/common-server 1.0.2327 → 1.0.2329

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.
@@ -27,13 +27,12 @@ declare class ClusterClient {
27
27
  getNewChainedQuote(chainedOrderId: string, chainedQuote: ChainedQuote, newOriginAmount?: number): Promise<ChainedQuote>;
28
28
  getBidQuote(userId: string, side: Side, country: Country, fiat: Fiat, crypto: Crypto, amountFiat?: number, amountCrypto?: number, USBankTransferMethod?: "ach_push" | "wire", netPrice?: string): Promise<Quote>;
29
29
  getCryptoAddresses(userId: string, crypto: Crypto): Promise<CryptoAddress[]>;
30
- createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, isReplacement, }: {
30
+ createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, }: {
31
31
  quoteId: string;
32
32
  userAddressId?: string;
33
33
  payoutBankAccountId?: string;
34
34
  notes?: string;
35
35
  isAxeTaker?: boolean;
36
- isReplacement?: boolean;
37
36
  }): Promise<Order>;
38
37
  checkBankPayment(orderId: string): Promise<void>;
39
38
  checkCryptoPayment(orderId: string): Promise<void>;
@@ -151,7 +151,7 @@ class ClusterClient {
151
151
  return response.data;
152
152
  });
153
153
  }
154
- createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, isReplacement, }) {
154
+ createOrder({ quoteId, userAddressId, payoutBankAccountId, notes, isAxeTaker, }) {
155
155
  return __awaiter(this, void 0, void 0, function* () {
156
156
  const response = yield this.axios.post(`${this.baseUrl}/api/orders`, {
157
157
  quoteId,
@@ -161,7 +161,6 @@ class ClusterClient {
161
161
  : undefined,
162
162
  notes: notes ? notes : undefined,
163
163
  isAxeTaker: isAxeTaker ? isAxeTaker : undefined,
164
- isReplacement: isReplacement ? isReplacement : undefined,
165
164
  }, {
166
165
  headers: {
167
166
  "x-cluster-api-key": this.clusterApiKey,
@@ -12,6 +12,7 @@ interface FireblocksTransferAttrs {
12
12
  fireblocksTransfers: {
13
13
  id: string;
14
14
  status: "initiated" | "completed" | "failed";
15
+ retryCount: number;
15
16
  }[];
16
17
  netAmountTransfered?: number;
17
18
  }
@@ -28,6 +29,7 @@ interface FireblocksTransferDoc extends mongoose.Document {
28
29
  fireblocksTransfers: {
29
30
  id: string;
30
31
  status: "initiated" | "completed" | "failed";
32
+ retryCount: number;
31
33
  }[];
32
34
  netAmountTransfered?: number;
33
35
  }
@@ -40,6 +40,9 @@ const buildFireblocksTransfer = (mongoose) => {
40
40
  status: {
41
41
  type: String,
42
42
  },
43
+ retryCount: {
44
+ type: Number,
45
+ },
43
46
  },
44
47
  ],
45
48
  multipartLiquidityOrderId: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2327",
3
+ "version": "1.0.2329",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",