@riocrypto/common 1.0.2705 → 1.0.2707

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.
@@ -5,6 +5,7 @@ import { LiquidityProvider } from "./liquidity-provider";
5
5
  import { OrderStatus } from "./order-status";
6
6
  import { PaymentMethod } from "./payment-method";
7
7
  import { Processor } from "./processor";
8
+ import { RoutingDecision } from "./routing-decision";
8
9
  import { Side } from "./side";
9
10
  import { Fees } from "./fees";
10
11
  import { PayoutMethod } from "./payout-method";
@@ -37,6 +38,10 @@ export interface Order {
37
38
  amountCryptoReceived?: number;
38
39
  liquidityProvider: LiquidityProvider;
39
40
  processor: Processor;
41
+ /**
42
+ * Copied from the quote, not decided again here. See `Quote.routingDecision`.
43
+ */
44
+ routingDecision?: RoutingDecision;
40
45
  fees: Fees;
41
46
  actualFees: Fees;
42
47
  price?: number;
@@ -7,6 +7,7 @@ import { PaymentMethod } from "./payment-method";
7
7
  import { DeferredPaymentType } from "./deferred-payment-type";
8
8
  import { PayoutMethod } from "./payout-method";
9
9
  import { Processor } from "./processor";
10
+ import { RoutingDecision } from "./routing-decision";
10
11
  import { Side } from "./side";
11
12
  import { TwoWaySettlementType } from "./two-way-settlement-type";
12
13
  import { OrderType } from "./order-type";
@@ -32,6 +33,13 @@ export interface Quote {
32
33
  amountCrypto: number;
33
34
  liquidityProvider: LiquidityProvider;
34
35
  processor: Processor;
36
+ /**
37
+ * How the processor above was arrived at: what the corridor offered, what was
38
+ * ruled out and why, and the roll that picked between what was left. Kept
39
+ * because the answer is partly random, so without it a routing complaint cannot
40
+ * be told apart from a routing bug.
41
+ */
42
+ routingDecision?: RoutingDecision;
35
43
  fees: Fees;
36
44
  price?: number;
37
45
  marketPrice: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2705",
3
+ "version": "1.0.2707",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",