@riocrypto/common 1.0.2479 → 1.0.2481
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" | "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";
|
|
9
|
-
getGasSymbol(): Crypto.SOL | Crypto.TRON | Crypto.POL | Crypto.XLM | "BTC" | "ETH" | "MATIC" | "TRX" | "SOL" | "XLM";
|
|
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)";
|
|
9
|
+
getGasSymbol(): Crypto.SOL | Crypto.TRON | Crypto.POL | Crypto.XLM | "BTC" | "ETH" | "BASECHAIN_ETH" | "MATIC" | "TRX" | "SOL" | "XLM";
|
|
10
10
|
getDescription(): string;
|
|
11
11
|
}
|
|
@@ -53,6 +53,9 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
53
53
|
else if (this.rawSymbol === crypto_1.Crypto.ETH) {
|
|
54
54
|
return "Ethereum";
|
|
55
55
|
}
|
|
56
|
+
else if (this.rawSymbol === crypto_1.Crypto.ETHBase) {
|
|
57
|
+
return "Ethereum (Base)";
|
|
58
|
+
}
|
|
56
59
|
else if (this.rawSymbol === crypto_1.Crypto.USDC) {
|
|
57
60
|
return "USDC (Ethereum)";
|
|
58
61
|
}
|
|
@@ -100,6 +103,9 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
100
103
|
else if (this.rawSymbol === crypto_1.Crypto.ETH) {
|
|
101
104
|
return "ETH";
|
|
102
105
|
}
|
|
106
|
+
else if (this.rawSymbol === crypto_1.Crypto.ETHBase) {
|
|
107
|
+
return "ETH (Base)";
|
|
108
|
+
}
|
|
103
109
|
else if (this.rawSymbol === crypto_1.Crypto.USDC) {
|
|
104
110
|
return "USDC (Ethereum)";
|
|
105
111
|
}
|
|
@@ -138,6 +144,9 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
138
144
|
else if (this.rawSymbol === crypto_1.Crypto.ETH) {
|
|
139
145
|
return "ETH";
|
|
140
146
|
}
|
|
147
|
+
else if (this.rawSymbol === crypto_1.Crypto.ETHBase) {
|
|
148
|
+
return "BASECHAIN_ETH";
|
|
149
|
+
}
|
|
141
150
|
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygon) {
|
|
142
151
|
return "MATIC";
|
|
143
152
|
}
|
|
@@ -154,7 +163,7 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
154
163
|
return "XLM";
|
|
155
164
|
}
|
|
156
165
|
else if (this.rawSymbol === crypto_1.Crypto.USDCBase) {
|
|
157
|
-
return "
|
|
166
|
+
return "BASECHAIN_ETH";
|
|
158
167
|
}
|
|
159
168
|
else if (this.rawSymbol === crypto_1.Crypto.USDC) {
|
|
160
169
|
return "ETH";
|
|
@@ -175,6 +184,9 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
175
184
|
}
|
|
176
185
|
else if (this.rawSymbol === crypto_1.Crypto.ETH) {
|
|
177
186
|
return "Ethereum is a decentralized, open-source blockchain with smart contract functionality.";
|
|
187
|
+
}
|
|
188
|
+
else if (this.rawSymbol === crypto_1.Crypto.ETHBase) {
|
|
189
|
+
return "Ethereum (Base) is a decentralized, open-source blockchain with smart contract functionality.";
|
|
178
190
|
// } else if (this.symbol === Crypto.XLM) {
|
|
179
191
|
// return "Stellar is an open source, decentralized protocol for digital currency to fiat money low-cost transfers which allows cross-border transactions between any pair of currencies.";
|
|
180
192
|
// } else if (this.symbol === Crypto.sUSDC) {
|
|
@@ -15,6 +15,7 @@ const isValidCryptoAddress = (address, crypto) => {
|
|
|
15
15
|
case crypto_1.Crypto.USDCStellar:
|
|
16
16
|
return stellarPattern.test(address);
|
|
17
17
|
case crypto_1.Crypto.ETH ||
|
|
18
|
+
crypto_1.Crypto.ETHBase ||
|
|
18
19
|
crypto_1.Crypto.USDC ||
|
|
19
20
|
crypto_1.Crypto.USDCPolygon ||
|
|
20
21
|
crypto_1.Crypto.USDCBase ||
|
package/build/types/crypto.d.ts
CHANGED
package/build/types/crypto.js
CHANGED