@riocrypto/common 1.0.37 → 1.0.40

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.
@@ -1,6 +1,6 @@
1
- import { Asset } from "../types/asset";
1
+ import { Crypto } from "../types/crypto";
2
2
  import { Country } from "../types/country";
3
- import { Currency } from "../types/currency";
3
+ import { Fiat } from "../types/fiat";
4
4
  import { LiquidityProvider } from "../types/liquidity-provider";
5
5
  import { OrderStatus } from "../types/order-status";
6
6
  import { PaymentMethod } from "../types/payment-method";
@@ -12,10 +12,10 @@ export interface OrderCreatedEvent {
12
12
  data: {
13
13
  id: string;
14
14
  userId: string;
15
- asset: Asset;
15
+ asset: Crypto;
16
16
  side: Side;
17
17
  status: OrderStatus;
18
- currency: Currency;
18
+ currency: Fiat;
19
19
  paymentMethod: PaymentMethod;
20
20
  createdAt: Date;
21
21
  country: Country;
package/build/index.d.ts CHANGED
@@ -21,9 +21,9 @@ export * from "./events/processor-routed-event";
21
21
  export * from "./events/liquidity-routed-event";
22
22
  export * from "./events/wyre-order-created-event";
23
23
  export * from "./events/wyre-card-started-event";
24
- export * from "./types/asset";
24
+ export * from "./types/crypto";
25
25
  export * from "./types/country";
26
- export * from "./types/currency";
26
+ export * from "./types/fiat";
27
27
  export * from "./types/language";
28
28
  export * from "./types/liquidity-provider";
29
29
  export * from "./types/order-status";
package/build/index.js CHANGED
@@ -37,9 +37,9 @@ __exportStar(require("./events/processor-routed-event"), exports);
37
37
  __exportStar(require("./events/liquidity-routed-event"), exports);
38
38
  __exportStar(require("./events/wyre-order-created-event"), exports);
39
39
  __exportStar(require("./events/wyre-card-started-event"), exports);
40
- __exportStar(require("./types/asset"), exports);
40
+ __exportStar(require("./types/crypto"), exports);
41
41
  __exportStar(require("./types/country"), exports);
42
- __exportStar(require("./types/currency"), exports);
42
+ __exportStar(require("./types/fiat"), exports);
43
43
  __exportStar(require("./types/language"), exports);
44
44
  __exportStar(require("./types/liquidity-provider"), exports);
45
45
  __exportStar(require("./types/order-status"), exports);
@@ -1,4 +1,4 @@
1
- export declare enum Asset {
1
+ export declare enum Crypto {
2
2
  BTC = "BTC",
3
3
  ETH = "ETH",
4
4
  LTC = "LTC",
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Crypto = void 0;
4
+ var Crypto;
5
+ (function (Crypto) {
6
+ Crypto["BTC"] = "BTC";
7
+ Crypto["ETH"] = "ETH";
8
+ Crypto["LTC"] = "LTC";
9
+ Crypto["BCH"] = "BCH";
10
+ Crypto["XRP"] = "XRP";
11
+ Crypto["USDC"] = "USDC";
12
+ })(Crypto = exports.Crypto || (exports.Crypto = {}));
@@ -1,4 +1,4 @@
1
- export declare enum Currency {
1
+ export declare enum Fiat {
2
2
  USD = "USD",
3
3
  EUR = "EUR",
4
4
  GBP = "GBP",
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Fiat = void 0;
4
+ var Fiat;
5
+ (function (Fiat) {
6
+ Fiat["USD"] = "USD";
7
+ Fiat["EUR"] = "EUR";
8
+ Fiat["GBP"] = "GBP";
9
+ Fiat["JPY"] = "JPY";
10
+ Fiat["CAD"] = "CAD";
11
+ Fiat["AUD"] = "AUD";
12
+ Fiat["CHF"] = "CHF";
13
+ Fiat["CNY"] = "CNY";
14
+ Fiat["NZD"] = "NZD";
15
+ Fiat["RUB"] = "RUB";
16
+ Fiat["SEK"] = "SEK";
17
+ Fiat["NOK"] = "NOK";
18
+ Fiat["DKK"] = "DKK";
19
+ Fiat["PLN"] = "PLN";
20
+ Fiat["BRL"] = "BRL";
21
+ Fiat["TRY"] = "TRY";
22
+ Fiat["ZAR"] = "ZAR";
23
+ Fiat["KRW"] = "KRW";
24
+ Fiat["INR"] = "INR";
25
+ Fiat["MYR"] = "MYR";
26
+ Fiat["PHP"] = "PHP";
27
+ Fiat["IDR"] = "IDR";
28
+ Fiat["ILS"] = "ILS";
29
+ Fiat["BGN"] = "BGN";
30
+ Fiat["CLP"] = "CLP";
31
+ Fiat["MXN"] = "MXN";
32
+ Fiat["CZK"] = "CZK";
33
+ Fiat["HUF"] = "HUF";
34
+ Fiat["THB"] = "THB";
35
+ Fiat["VND"] = "VND";
36
+ Fiat["RON"] = "RON";
37
+ Fiat["HRK"] = "HRK";
38
+ })(Fiat = exports.Fiat || (exports.Fiat = {}));
@@ -1,6 +1,6 @@
1
- import { Asset } from "./asset";
1
+ import { Crypto } from "./crypto";
2
2
  import { Country } from "./country";
3
- import { Currency } from "./currency";
3
+ import { Fiat } from "./fiat";
4
4
  import { LiquidityProvider } from "./liquidity-provider";
5
5
  import { OrderStatus } from "./order-status";
6
6
  import { PaymentMethod } from "./payment-method";
@@ -9,9 +9,9 @@ import { Side } from "./side";
9
9
  export interface Order {
10
10
  id: string;
11
11
  userId: string;
12
- asset: Asset;
12
+ crypto: Crypto;
13
13
  side: Side;
14
- currency: Currency;
14
+ fiat: Fiat;
15
15
  amountFiat?: number;
16
16
  amountCrypto?: number;
17
17
  paymentMethod: PaymentMethod;
@@ -1,20 +1,20 @@
1
- import { Asset } from "./asset";
2
- import { Currency } from "./currency";
1
+ import { Crypto } from "./crypto";
2
+ import { Fiat } from "./fiat";
3
3
  import { LiquidityProvider } from "./liquidity-provider";
4
4
  import { PaymentMethod } from "./payment-method";
5
5
  import { Processor } from "./processor";
6
6
  import { Side } from "./side";
7
7
  export interface Quote {
8
8
  price: number;
9
- processingFeeNumeric: number;
10
- TransferFeeNumeric: number;
11
- platformFeeNumeric: number;
9
+ processingFeeFiat: number;
10
+ TransferFeeFiat: number;
11
+ platformFeeFiat: number;
12
12
  liquidityProvider: LiquidityProvider;
13
13
  paymentProcessor: Processor;
14
- amountAsset: number;
15
- amountCurrency: number;
14
+ amountCrypto: number;
15
+ amountFiat: number;
16
16
  paymentMethod: PaymentMethod;
17
- asset: Asset;
18
- currency: Currency;
17
+ crypto: Crypto;
18
+ fiat: Fiat;
19
19
  side: Side;
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.37",
3
+ "version": "1.0.40",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Asset = void 0;
4
- var Asset;
5
- (function (Asset) {
6
- Asset["BTC"] = "BTC";
7
- Asset["ETH"] = "ETH";
8
- Asset["LTC"] = "LTC";
9
- Asset["BCH"] = "BCH";
10
- Asset["XRP"] = "XRP";
11
- Asset["USDC"] = "USDC";
12
- })(Asset = exports.Asset || (exports.Asset = {}));
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Currency = void 0;
4
- var Currency;
5
- (function (Currency) {
6
- Currency["USD"] = "USD";
7
- Currency["EUR"] = "EUR";
8
- Currency["GBP"] = "GBP";
9
- Currency["JPY"] = "JPY";
10
- Currency["CAD"] = "CAD";
11
- Currency["AUD"] = "AUD";
12
- Currency["CHF"] = "CHF";
13
- Currency["CNY"] = "CNY";
14
- Currency["NZD"] = "NZD";
15
- Currency["RUB"] = "RUB";
16
- Currency["SEK"] = "SEK";
17
- Currency["NOK"] = "NOK";
18
- Currency["DKK"] = "DKK";
19
- Currency["PLN"] = "PLN";
20
- Currency["BRL"] = "BRL";
21
- Currency["TRY"] = "TRY";
22
- Currency["ZAR"] = "ZAR";
23
- Currency["KRW"] = "KRW";
24
- Currency["INR"] = "INR";
25
- Currency["MYR"] = "MYR";
26
- Currency["PHP"] = "PHP";
27
- Currency["IDR"] = "IDR";
28
- Currency["ILS"] = "ILS";
29
- Currency["BGN"] = "BGN";
30
- Currency["CLP"] = "CLP";
31
- Currency["MXN"] = "MXN";
32
- Currency["CZK"] = "CZK";
33
- Currency["HUF"] = "HUF";
34
- Currency["THB"] = "THB";
35
- Currency["VND"] = "VND";
36
- Currency["RON"] = "RON";
37
- Currency["HRK"] = "HRK";
38
- })(Currency = exports.Currency || (exports.Currency = {}));