@riocrypto/common 1.0.1890 → 1.0.1893

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(): "Bitcoin" | "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)" | "Tron" | "Solana";
8
- getSymbol(): Crypto.SOL | Crypto.TRON | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)" | "BTC" | "ETH";
9
- getGasSymbol(): Crypto.SOL | Crypto.TRON | "BTC" | "ETH" | "MATIC" | "TRX" | "SOL";
7
+ getName(): "Bitcoin" | "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)" | "Tron" | "Solana" | "Polygon";
8
+ getSymbol(): Crypto.SOL | Crypto.TRON | Crypto.POL | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)" | "BTC" | "ETH";
9
+ getGasSymbol(): Crypto.SOL | Crypto.TRON | Crypto.POL | "BTC" | "ETH" | "MATIC" | "TRX" | "SOL";
10
10
  getDescription(): string;
11
11
  }
@@ -80,8 +80,8 @@ class CryptoAsset extends Asset_1.Asset {
80
80
  else if (this.rawSymbol === crypto_1.Crypto.SOL) {
81
81
  return "Solana";
82
82
  }
83
- else if (this.rawSymbol === crypto_1.Crypto.ETH) {
84
- return "Ethereum";
83
+ else if (this.rawSymbol === crypto_1.Crypto.POL) {
84
+ return "Polygon";
85
85
  }
86
86
  else {
87
87
  return this.rawSymbol;
package/build/index.d.ts CHANGED
@@ -324,6 +324,8 @@ export * from "./types/arbitrage-trade-type";
324
324
  export * from "./types/pre-settlement-transaction";
325
325
  export * from "./types/pre-settlement-transaction-type";
326
326
  export * from "./types/currency-with-country";
327
+ export * from "./types/CEP";
328
+ export * from "./types/CEP-status";
327
329
  export * from "./classes/KYCFieldClass";
328
330
  export * from "./classes/KYCFileClass";
329
331
  export * from "./classes/CountryAsset";
package/build/index.js CHANGED
@@ -340,6 +340,8 @@ __exportStar(require("./types/arbitrage-trade-type"), exports);
340
340
  __exportStar(require("./types/pre-settlement-transaction"), exports);
341
341
  __exportStar(require("./types/pre-settlement-transaction-type"), exports);
342
342
  __exportStar(require("./types/currency-with-country"), exports);
343
+ __exportStar(require("./types/CEP"), exports);
344
+ __exportStar(require("./types/CEP-status"), exports);
343
345
  __exportStar(require("./classes/KYCFieldClass"), exports);
344
346
  __exportStar(require("./classes/KYCFileClass"), exports);
345
347
  __exportStar(require("./classes/CountryAsset"), exports);
@@ -0,0 +1,5 @@
1
+ export declare enum CEPStatus {
2
+ Pending = "pending",
3
+ Generated = "generated",
4
+ Failed = "failed"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CEPStatus = void 0;
4
+ var CEPStatus;
5
+ (function (CEPStatus) {
6
+ CEPStatus["Pending"] = "pending";
7
+ CEPStatus["Generated"] = "generated";
8
+ CEPStatus["Failed"] = "failed";
9
+ })(CEPStatus = exports.CEPStatus || (exports.CEPStatus = {}));
@@ -0,0 +1,14 @@
1
+ import { CEPStatus } from "./CEP-status";
2
+ export interface CEP {
3
+ id: string;
4
+ createdAt: Date;
5
+ orderId: string;
6
+ SPEITrackingNumber: string;
7
+ senderCLABE: string;
8
+ receiverCLABE: string;
9
+ amount: number;
10
+ date: string;
11
+ status: CEPStatus;
12
+ link?: string;
13
+ failedAttempts: number;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,5 +9,6 @@ export declare enum Crypto {
9
9
  USDTEthereum = "USDT_ERC20",
10
10
  USDTTron = "TRX_USDT_S2UZ",
11
11
  SOL = "SOL",
12
- TRON = "TRX"
12
+ TRON = "TRX",
13
+ POL = "MATIC_POLYGON"
13
14
  }
@@ -14,4 +14,5 @@ var Crypto;
14
14
  Crypto["USDTTron"] = "TRX_USDT_S2UZ";
15
15
  Crypto["SOL"] = "SOL";
16
16
  Crypto["TRON"] = "TRX";
17
+ Crypto["POL"] = "MATIC_POLYGON";
17
18
  })(Crypto = exports.Crypto || (exports.Crypto = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1890",
3
+ "version": "1.0.1893",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",