@riocrypto/common 1.0.2487 → 1.0.2488

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.XLM | "Bitcoin" | "Ethereum" | "Ethereum (Base)" | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDC (Stellar)" | "USDC (Base)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)" | "Tron" | "Solana" | "Polygon";
8
- getSymbol(): Crypto.SOL | Crypto.TRON | Crypto.POL | Crypto.XLM | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDC (Stellar)" | "USDC (Base)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)" | "BTC" | "ETH" | "ETH (Base)";
7
+ getName(): Crypto.XLM | "Bitcoin" | "Ethereum" | "Ethereum (Base)" | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDC (Stellar)" | "USDC (Base)" | "EURC (Ethereum)" | "EURC (Solana)" | "EURC (Base)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)" | "Tron" | "Solana" | "Polygon";
8
+ getSymbol(): Crypto.SOL | Crypto.TRON | Crypto.POL | Crypto.XLM | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDC (Stellar)" | "USDC (Base)" | "EURC (Ethereum)" | "EURC (Solana)" | "EURC (Base)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)" | "BTC" | "ETH" | "ETH (Base)";
9
9
  getGasSymbol(): Crypto.SOL | Crypto.TRON | Crypto.POL | Crypto.XLM | "BTC" | "ETH" | "BASECHAIN_ETH" | "MATIC" | "TRX" | "SOL" | "XLM";
10
10
  getDescription(): string;
11
11
  }
@@ -33,6 +33,9 @@ class CryptoAsset extends Asset_1.Asset {
33
33
  if (this.rawSymbol.includes("USDC")) {
34
34
  return `${process.env.NEXT_PUBLIC_BASE_PATH}/logos/USDC.svg`;
35
35
  }
36
+ if (this.rawSymbol.includes("EUR")) {
37
+ return `${process.env.NEXT_PUBLIC_BASE_PATH}/logos/EURC.svg`;
38
+ }
36
39
  if (this.rawSymbol.includes("USDT")) {
37
40
  return `${process.env.NEXT_PUBLIC_BASE_PATH}/logos/USDT.svg`;
38
41
  }
@@ -74,6 +77,15 @@ class CryptoAsset extends Asset_1.Asset {
74
77
  else if (this.rawSymbol === crypto_1.Crypto.USDCBase) {
75
78
  return "USDC (Base)";
76
79
  }
80
+ else if (this.rawSymbol === crypto_1.Crypto.EURCEthereum) {
81
+ return "EURC (Ethereum)";
82
+ }
83
+ else if (this.rawSymbol === crypto_1.Crypto.EURCSolana) {
84
+ return "EURC (Solana)";
85
+ }
86
+ else if (this.rawSymbol === crypto_1.Crypto.EURCBase) {
87
+ return "EURC (Base)";
88
+ }
77
89
  else if (this.rawSymbol === crypto_1.Crypto.USDTPolygon) {
78
90
  return "USDT (Polygon)";
79
91
  }
@@ -124,6 +136,15 @@ class CryptoAsset extends Asset_1.Asset {
124
136
  else if (this.rawSymbol === crypto_1.Crypto.USDCBase) {
125
137
  return "USDC (Base)";
126
138
  }
139
+ else if (this.rawSymbol === crypto_1.Crypto.EURCEthereum) {
140
+ return "EURC (Ethereum)";
141
+ }
142
+ else if (this.rawSymbol === crypto_1.Crypto.EURCSolana) {
143
+ return "EURC (Solana)";
144
+ }
145
+ else if (this.rawSymbol === crypto_1.Crypto.EURCBase) {
146
+ return "EURC (Base)";
147
+ }
127
148
  else if (this.rawSymbol === crypto_1.Crypto.USDTPolygon) {
128
149
  return "USDT (Polygon)";
129
150
  }
@@ -168,6 +189,15 @@ class CryptoAsset extends Asset_1.Asset {
168
189
  else if (this.rawSymbol === crypto_1.Crypto.USDC) {
169
190
  return "ETH";
170
191
  }
192
+ else if (this.rawSymbol === crypto_1.Crypto.EURCEthereum) {
193
+ return "ETH";
194
+ }
195
+ else if (this.rawSymbol === crypto_1.Crypto.EURCSolana) {
196
+ return "SOL";
197
+ }
198
+ else if (this.rawSymbol === crypto_1.Crypto.EURCBase) {
199
+ return "BASECHAIN_ETH";
200
+ }
171
201
  else if (this.rawSymbol === crypto_1.Crypto.USDTPolygon) {
172
202
  return "MATIC";
173
203
  }
@@ -216,6 +246,15 @@ class CryptoAsset extends Asset_1.Asset {
216
246
  else if (this.rawSymbol === crypto_1.Crypto.USDCBase) {
217
247
  return "USDC on the Base chain.";
218
248
  }
249
+ else if (this.rawSymbol === crypto_1.Crypto.EURCEthereum) {
250
+ return "EURC on the Ethereum chain.";
251
+ }
252
+ else if (this.rawSymbol === crypto_1.Crypto.EURCSolana) {
253
+ return "EURC on the Solana chain.";
254
+ }
255
+ else if (this.rawSymbol === crypto_1.Crypto.EURCBase) {
256
+ return "EURC on the Base chain.";
257
+ }
219
258
  else if (this.rawSymbol === crypto_1.Crypto.USDTPolygon) {
220
259
  return "USDT on the Polygon chain.";
221
260
  }
@@ -12,6 +12,15 @@ const formatTransactionHash = (hash, crypto) => {
12
12
  else if ([crypto_1.Crypto.USDCSolana].includes(crypto)) {
13
13
  return `https://explorer.solana.com/tx/${hash}`;
14
14
  }
15
+ else if ([crypto_1.Crypto.EURCEthereum].includes(crypto)) {
16
+ return `https://etherscan.io/tx/${hash}`;
17
+ }
18
+ else if ([crypto_1.Crypto.EURCSolana].includes(crypto)) {
19
+ return `https://explorer.solana.com/tx/${hash}`;
20
+ }
21
+ else if ([crypto_1.Crypto.EURCBase].includes(crypto)) {
22
+ return `https://basescan.org/tx/${hash}`;
23
+ }
15
24
  else if ([crypto_1.Crypto.USDTTron].includes(crypto)) {
16
25
  return `https://tronscan.org/#/transaction/${hash}`;
17
26
  }
@@ -16,6 +16,12 @@ const getAddressForTesting = (crypto) => {
16
16
  return { address: "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C" };
17
17
  case crypto_1.Crypto.USDCSolana:
18
18
  return { address: "5BZDQjWad45rT1vYT5KdJHgSU4rWXL1Y5nDoTwSrT8Pr" };
19
+ case crypto_1.Crypto.EURCEthereum:
20
+ return { address: "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C" };
21
+ case crypto_1.Crypto.EURCSolana:
22
+ return { address: "5BZDQjWad45rT1vYT5KdJHgSU4rWXL1Y5nDoTwSrT8Pr" };
23
+ case crypto_1.Crypto.EURCBase:
24
+ return { address: "0xAf56edF88c429F1D6858f9E47731FF53F6d34D0C" };
19
25
  case crypto_1.Crypto.USDTTron:
20
26
  return { address: "TS9kzAVq4PR7xNoQDJXSP6Kgi8GFbwUbzg" };
21
27
  case crypto_1.Crypto.USDCStellar:
@@ -8,6 +8,9 @@ export declare enum Crypto {
8
8
  USDCSolana = "SOL_USDC_PTHX",
9
9
  USDCStellar = "XLM_USDC_5F3T",
10
10
  USDCBase = "USDC_BASECHAIN_ETH_5I5C",
11
+ EURCEthereum = "EUROC_ETH_F5NG",
12
+ EURCSolana = "EURC_SOL",
13
+ EURCBase = "EURC_B609K9QB_Y213",
11
14
  USDTPolygon = "USDT_POLYGON",
12
15
  USDTEthereum = "USDT_ERC20",
13
16
  USDTTron = "TRX_USDT_S2UZ",
@@ -12,6 +12,9 @@ var Crypto;
12
12
  Crypto["USDCSolana"] = "SOL_USDC_PTHX";
13
13
  Crypto["USDCStellar"] = "XLM_USDC_5F3T";
14
14
  Crypto["USDCBase"] = "USDC_BASECHAIN_ETH_5I5C";
15
+ Crypto["EURCEthereum"] = "EUROC_ETH_F5NG";
16
+ Crypto["EURCSolana"] = "EURC_SOL";
17
+ Crypto["EURCBase"] = "EURC_B609K9QB_Y213";
15
18
  Crypto["USDTPolygon"] = "USDT_POLYGON";
16
19
  Crypto["USDTEthereum"] = "USDT_ERC20";
17
20
  Crypto["USDTTron"] = "TRX_USDT_S2UZ";
@@ -3,6 +3,9 @@ export declare enum CurrencyWithCountry {
3
3
  USDCSolana = "SOL_USDC_PTHX",
4
4
  USDCStellar = "XLM_USDC_5F3T",
5
5
  USDCBase = "USDC_BASECHAIN_ETH_5I5C",
6
+ EURCEthereum = "EUROC_ETH_F5NG",
7
+ EURCSolana = "EURC_SOL",
8
+ EURCBase = "EURC_B609K9QB_Y213",
6
9
  USDTPolygon = "USDT_POLYGON",
7
10
  USDTEthereum = "USDT_ERC20",
8
11
  USDTTron = "TRX_USDT_S2UZ",
@@ -7,6 +7,9 @@ var CurrencyWithCountry;
7
7
  CurrencyWithCountry["USDCSolana"] = "SOL_USDC_PTHX";
8
8
  CurrencyWithCountry["USDCStellar"] = "XLM_USDC_5F3T";
9
9
  CurrencyWithCountry["USDCBase"] = "USDC_BASECHAIN_ETH_5I5C";
10
+ CurrencyWithCountry["EURCEthereum"] = "EUROC_ETH_F5NG";
11
+ CurrencyWithCountry["EURCSolana"] = "EURC_SOL";
12
+ CurrencyWithCountry["EURCBase"] = "EURC_B609K9QB_Y213";
10
13
  CurrencyWithCountry["USDTPolygon"] = "USDT_POLYGON";
11
14
  CurrencyWithCountry["USDTEthereum"] = "USDT_ERC20";
12
15
  CurrencyWithCountry["USDTTron"] = "TRX_USDT_S2UZ";
@@ -1,11 +1,15 @@
1
1
  export declare enum TradingMarket {
2
2
  USDT_MXN = "USDT_MXN_MX",
3
3
  USDC_MXN = "USDC_MXN_MX",
4
+ EURC_MXN = "EURC_MXN_MX",
4
5
  USDT_MXUSD = "USDT_USD_MX",
5
6
  USDC_MXUSD = "USDC_USD_MX",
7
+ EURC_MXUSD = "EURC_USD_MX",
6
8
  USDT_PEN = "USDT_PEN_PE",
7
9
  USDC_PEN = "USDC_PEN_PE",
10
+ EURC_PEN = "EURC_PEN_PE",
8
11
  USDT_PEUSD = "USDT_USD_PE",
12
+ EURC_PEUSD = "EURC_USD_PE",
9
13
  USDC_PEUSD = "USDC_USD_PE",
10
14
  USDT_USD = "USDT_USD_US",
11
15
  USDC_USD = "USDC_USD_US"
@@ -5,11 +5,15 @@ var TradingMarket;
5
5
  (function (TradingMarket) {
6
6
  TradingMarket["USDT_MXN"] = "USDT_MXN_MX";
7
7
  TradingMarket["USDC_MXN"] = "USDC_MXN_MX";
8
+ TradingMarket["EURC_MXN"] = "EURC_MXN_MX";
8
9
  TradingMarket["USDT_MXUSD"] = "USDT_USD_MX";
9
10
  TradingMarket["USDC_MXUSD"] = "USDC_USD_MX";
11
+ TradingMarket["EURC_MXUSD"] = "EURC_USD_MX";
10
12
  TradingMarket["USDT_PEN"] = "USDT_PEN_PE";
11
13
  TradingMarket["USDC_PEN"] = "USDC_PEN_PE";
14
+ TradingMarket["EURC_PEN"] = "EURC_PEN_PE";
12
15
  TradingMarket["USDT_PEUSD"] = "USDT_USD_PE";
16
+ TradingMarket["EURC_PEUSD"] = "EURC_USD_PE";
13
17
  TradingMarket["USDC_PEUSD"] = "USDC_USD_PE";
14
18
  TradingMarket["USDT_USD"] = "USDT_USD_US";
15
19
  TradingMarket["USDC_USD"] = "USDC_USD_US";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2487",
3
+ "version": "1.0.2488",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",