@riocrypto/common 1.0.572 → 1.0.575

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.
@@ -4,8 +4,8 @@ export declare class CryptoAsset extends Asset {
4
4
  rawSymbol: Crypto;
5
5
  constructor(rawSymbol: Crypto);
6
6
  getImageUri(): string;
7
- getName(): Crypto.BTC | "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)";
8
- getSymbol(): Crypto.BTC | "USDC (Ethereum)" | "USDC (Polygon)" | "ETH";
9
- getGasSymbol(): Crypto.BTC | "ETH" | "MATIC";
7
+ getName(): "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)";
8
+ getSymbol(): "USDC (Ethereum)" | "USDC (Polygon)" | "ETH";
9
+ getGasSymbol(): "ETH" | "MATIC";
10
10
  getDescription(): string;
11
11
  }
@@ -1,9 +1,10 @@
1
+ import { Fees } from "../types/fees";
1
2
  import { Subjects } from "./subjects";
2
3
  export interface LiquidityTransferedEvent {
3
4
  subject: Subjects.LiquidityTransfered;
4
5
  data: {
5
6
  orderId: string;
6
7
  amountCrypto: number;
7
- fee: number;
8
+ fees: Fees;
8
9
  };
9
10
  }
@@ -6,8 +6,8 @@ const isValidCryptoAddress = (address, crypto) => {
6
6
  const bitcoinPattern = /^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$/;
7
7
  const ethereumPattern = /^0x[a-fA-F0-9]{40}$/;
8
8
  switch (crypto) {
9
- case crypto_1.Crypto.BTC:
10
- return bitcoinPattern.test(address);
9
+ // case Crypto.BTC:
10
+ // return bitcoinPattern.test(address);
11
11
  case crypto_1.Crypto.ETH || crypto_1.Crypto.USDC || crypto_1.Crypto.USDCPolygon:
12
12
  return ethereumPattern.test(address);
13
13
  default:
@@ -1,5 +1,4 @@
1
1
  export declare enum Crypto {
2
- BTC = "BTC",
3
2
  ETH = "ETH",
4
3
  USDC = "USDC",
5
4
  USDCPolygon = "USDC_POLYGON"
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.Crypto = void 0;
6
6
  var Crypto;
7
7
  (function (Crypto) {
8
- Crypto["BTC"] = "BTC";
8
+ // BTC = "BTC",
9
9
  Crypto["ETH"] = "ETH";
10
10
  Crypto["USDC"] = "USDC";
11
11
  Crypto["USDCPolygon"] = "USDC_POLYGON";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.572",
3
+ "version": "1.0.575",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",