@riocrypto/common 1.0.686 → 1.0.687

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.USDTPolygon | Crypto.USDTEthereum | Crypto.SOL | "Bitcoin" | "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Solana)";
8
- getSymbol(): Crypto.USDTPolygon | Crypto.USDTEthereum | Crypto.SOL | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Solana)" | "BTC" | "ETH";
9
- getGasSymbol(): Crypto.USDTPolygon | Crypto.USDTEthereum | Crypto.SOL | "BTC" | "ETH" | "MATIC" | "SOL";
7
+ getName(): Crypto.SOL | "Bitcoin" | "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)";
8
+ getSymbol(): Crypto.SOL | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)" | "BTC" | "ETH";
9
+ getGasSymbol(): Crypto.SOL | "BTC" | "ETH" | "MATIC" | "SOL";
10
10
  getDescription(): string;
11
11
  }
@@ -49,18 +49,6 @@ class CryptoAsset extends Asset_1.Asset {
49
49
  }
50
50
  else if (this.rawSymbol === crypto_1.Crypto.ETH) {
51
51
  return "Ethereum";
52
- // } else if (this.symbol === Crypto.XLM) {
53
- // return "Stellar";
54
- // } else if (this.symbol === Crypto.sUSDC) {
55
- // return "Stellar USDC";
56
- // } else if (this.symbol === Crypto.AVAX) {
57
- // return "Avalanche X-Chain";
58
- // } else if (this.symbol === Crypto.AVAXCUSDC) {
59
- // return "C-Chain USDC";
60
- // } else if (this.symbol === Crypto.DAI) {
61
- // return "DAI";
62
- // } else if (this.symbol === Crypto.pDAI) {
63
- // return "Palm Dai";
64
52
  }
65
53
  else if (this.rawSymbol === crypto_1.Crypto.USDC) {
66
54
  return "USDC (Ethereum)";
@@ -70,64 +58,12 @@ class CryptoAsset extends Asset_1.Asset {
70
58
  }
71
59
  else if (this.rawSymbol === crypto_1.Crypto.USDCSolana) {
72
60
  return "USDC (Solana)";
73
- // } else if (this.symbol === Crypto.mUSDC) {
74
- // return "Matic USDC";
75
- // } else if (this.symbol === Crypto["L-BTC"]) {
76
- // return "Liquid BTC";
77
- // } else if (this.symbol === Crypto.USDT) {
78
- // return "Tether";
79
- // } else if (this.symbol === Crypto.MATIC) {
80
- // return "Polygon";
81
- // } else if (this.symbol === Crypto.BUSD) {
82
- // return "Binance USD";
83
- // } else if (this.symbol === Crypto.FUSD) {
84
- // return "Flow USD";
85
- // } else if (this.symbol === Crypto.GUSD) {
86
- // return "Gemini Dollar";
87
- // } else if (this.symbol === Crypto.PAX) {
88
- // return "Paxos Standard";
89
- // } else if (this.symbol === Crypto.USDS) {
90
- // return "Stalby Dollar";
91
- // } else if (this.symbol === Crypto.AAVE) {
92
- // return "Aave";
93
- // } else if (this.symbol === Crypto.COMP) {
94
- // return "Compound";
95
- // } else if (this.symbol === Crypto.LINK) {
96
- // return "Chainlink";
97
- // } else if (this.symbol === Crypto.WBTC) {
98
- // return "Wrapped Bitcoin";
99
- // } else if (this.symbol === Crypto.WETH) {
100
- // return "Wrapped Ethereum";
101
- // } else if (this.symbol === Crypto.BAT) {
102
- // return "Basic Attention Token";
103
- // } else if (this.symbol === Crypto.CRV) {
104
- // return "Curve";
105
- // } else if (this.symbol === Crypto.MKR) {
106
- // return "Maker";
107
- // } else if (this.symbol === Crypto.SNX) {
108
- // return "Synthetix";
109
- // } else if (this.symbol === Crypto.UMA) {
110
- // return "Uma";
111
- // } else if (this.symbol === Crypto.UNI) {
112
- // return "Uniswap";
113
- // } else if (this.symbol === Crypto.YFI) {
114
- // return "Yearn Finance";
115
- // } else if (this.symbol === Crypto.GYEN) {
116
- // return "Digital JPY";
117
- // } else if (this.symbol === Crypto.ZUSD) {
118
- // return "Digital USD";
119
- // } else if (this.symbol === Crypto.RAI) {
120
- // return "Rai Reflex Index";
121
- // } else if (this.symbol === Crypto.LETH) {
122
- // return "Loopring Ethereum";
123
- // } else if (this.symbol === Crypto.LUSDC) {
124
- // return "Loopring USDC";
125
- // } else if (this.symbol === Crypto.ALGO) {
126
- // return "Algorand";
127
- // } else if (this.symbol === Crypto.AUSDC) {
128
- // return "Algorand USDC";
129
- // } else if (this.symbol === Crypto.AUSDT) {
130
- // return "Algorand USDT";
61
+ }
62
+ else if (this.rawSymbol === crypto_1.Crypto.USDTPolygon) {
63
+ return "USDT (Polygon)";
64
+ }
65
+ else if (this.rawSymbol === crypto_1.Crypto.USDTEthereum) {
66
+ return "USDT (Ethereum)";
131
67
  }
132
68
  else {
133
69
  return this.rawSymbol;
@@ -149,6 +85,12 @@ class CryptoAsset extends Asset_1.Asset {
149
85
  else if (this.rawSymbol === crypto_1.Crypto.USDCSolana) {
150
86
  return "USDC (Solana)";
151
87
  }
88
+ else if (this.rawSymbol === crypto_1.Crypto.USDTPolygon) {
89
+ return "USDT (Polygon)";
90
+ }
91
+ else if (this.rawSymbol === crypto_1.Crypto.USDTEthereum) {
92
+ return "USDT (Ethereum)";
93
+ }
152
94
  else {
153
95
  return this.rawSymbol;
154
96
  }
@@ -169,6 +111,12 @@ class CryptoAsset extends Asset_1.Asset {
169
111
  else if (this.rawSymbol === crypto_1.Crypto.USDC) {
170
112
  return "ETH";
171
113
  }
114
+ else if (this.rawSymbol === crypto_1.Crypto.USDTPolygon) {
115
+ return "MATIC";
116
+ }
117
+ else if (this.rawSymbol === crypto_1.Crypto.USDTEthereum) {
118
+ return "ETH";
119
+ }
172
120
  else {
173
121
  return this.rawSymbol;
174
122
  }
@@ -198,6 +146,12 @@ class CryptoAsset extends Asset_1.Asset {
198
146
  }
199
147
  else if (this.rawSymbol === crypto_1.Crypto.USDCSolana) {
200
148
  return "USDC on the Solana chain.";
149
+ }
150
+ else if (this.rawSymbol === crypto_1.Crypto.USDTPolygon) {
151
+ return "USDT on the Polygon chain.";
152
+ }
153
+ else if (this.rawSymbol === crypto_1.Crypto.USDTEthereum) {
154
+ return "USDT on the Ethereum chain.";
201
155
  // } else if (this.symbol === Crypto.mUSDC) {
202
156
  // return "USDC on the Polygon chain";
203
157
  // } else if (this.symbol === Crypto.USDT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.686",
3
+ "version": "1.0.687",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",