@riocrypto/common 1.0.808 → 1.0.810
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.
|
|
8
|
-
getSymbol(): Crypto.
|
|
9
|
-
getGasSymbol(): Crypto.SOL | "BTC" | "ETH" | "MATIC" | "
|
|
7
|
+
getName(): Crypto.SOL | "Bitcoin" | "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)";
|
|
8
|
+
getSymbol(): Crypto.SOL | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)" | "BTC" | "ETH";
|
|
9
|
+
getGasSymbol(): Crypto.SOL | "BTC" | "ETH" | "MATIC" | "SOL";
|
|
10
10
|
getDescription(): string;
|
|
11
11
|
}
|
|
@@ -65,6 +65,9 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
65
65
|
else if (this.rawSymbol === crypto_1.Crypto.USDTEthereum) {
|
|
66
66
|
return "USDT (Ethereum)";
|
|
67
67
|
}
|
|
68
|
+
else if (this.rawSymbol === crypto_1.Crypto.USDTTron) {
|
|
69
|
+
return "USDT (Tron)";
|
|
70
|
+
}
|
|
68
71
|
else {
|
|
69
72
|
return this.rawSymbol;
|
|
70
73
|
}
|
|
@@ -91,6 +94,9 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
91
94
|
else if (this.rawSymbol === crypto_1.Crypto.USDTEthereum) {
|
|
92
95
|
return "USDT (Ethereum)";
|
|
93
96
|
}
|
|
97
|
+
else if (this.rawSymbol === crypto_1.Crypto.USDTTron) {
|
|
98
|
+
return "USDT (Tron)";
|
|
99
|
+
}
|
|
94
100
|
else {
|
|
95
101
|
return this.rawSymbol;
|
|
96
102
|
}
|
|
@@ -106,7 +112,7 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
106
112
|
return "MATIC";
|
|
107
113
|
}
|
|
108
114
|
else if (this.rawSymbol === crypto_1.Crypto.USDTTron) {
|
|
109
|
-
return "
|
|
115
|
+
return "MATIC";
|
|
110
116
|
}
|
|
111
117
|
else if (this.rawSymbol === crypto_1.Crypto.USDCSolana) {
|
|
112
118
|
return "SOL";
|