@riocrypto/common 1.0.535 → 1.0.537
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(): "
|
|
8
|
-
getSymbol(): "USDC (Ethereum)" | "USDC (Polygon)" | "
|
|
9
|
-
getGasSymbol(): "
|
|
7
|
+
getName(): "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)";
|
|
8
|
+
getSymbol(): "USDC (Ethereum)" | "USDC (Polygon)" | "ETH";
|
|
9
|
+
getGasSymbol(): "ETH" | "MATIC";
|
|
10
10
|
getDescription(): string;
|
|
11
11
|
}
|
|
@@ -44,10 +44,10 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
getName() {
|
|
47
|
-
if (this.rawSymbol ===
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
47
|
+
// if (this.rawSymbol === Crypto.BTC) {
|
|
48
|
+
// return "Bitcoin";
|
|
49
|
+
// } else
|
|
50
|
+
if (this.rawSymbol === crypto_1.Crypto.ETH) {
|
|
51
51
|
return "Ethereum";
|
|
52
52
|
// } else if (this.symbol === Crypto.XLM) {
|
|
53
53
|
// return "Stellar";
|
|
@@ -131,10 +131,10 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
getSymbol() {
|
|
134
|
-
if (this.rawSymbol ===
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
|
|
134
|
+
// if (this.rawSymbol === Crypto.BTC) {
|
|
135
|
+
// return "BTC";
|
|
136
|
+
// } else
|
|
137
|
+
if (this.rawSymbol === crypto_1.Crypto.ETH) {
|
|
138
138
|
return "ETH";
|
|
139
139
|
}
|
|
140
140
|
else if (this.rawSymbol === crypto_1.Crypto.USDC) {
|
|
@@ -148,10 +148,10 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
getGasSymbol() {
|
|
151
|
-
if (this.rawSymbol ===
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
151
|
+
// if (this.rawSymbol === Crypto.BTC) {
|
|
152
|
+
// return "BTC";
|
|
153
|
+
// } else
|
|
154
|
+
if (this.rawSymbol === crypto_1.Crypto.ETH) {
|
|
155
155
|
return "ETH";
|
|
156
156
|
}
|
|
157
157
|
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygon) {
|
|
@@ -165,10 +165,10 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
getDescription() {
|
|
168
|
-
if (this.symbol ===
|
|
169
|
-
|
|
170
|
-
}
|
|
171
|
-
|
|
168
|
+
// if (this.symbol === Crypto.BTC) {
|
|
169
|
+
// return "Bitcoin is a decentralized digital currency that can be transferred on the peer-to-peer bitcoin network.";
|
|
170
|
+
// } else
|
|
171
|
+
if (this.rawSymbol === crypto_1.Crypto.ETH) {
|
|
172
172
|
return "Ethereum is a decentralized, open-source blockchain with smart contract functionality.";
|
|
173
173
|
// } else if (this.symbol === Crypto.XLM) {
|
|
174
174
|
// 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.";
|
|
@@ -181,8 +181,11 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
181
181
|
// } else if (this.symbol === Crypto.DAI) {
|
|
182
182
|
// return "Dai is a stablecoin cryptocurrency on the Ethereum blockchain which aims to keep its value as close to one United States dollar as possible through a system of smart contracts and the decentralized participants which those contracts incentivize to perform maintenance and governance functions.";
|
|
183
183
|
}
|
|
184
|
-
else if (this.
|
|
184
|
+
else if (this.rawSymbol === crypto_1.Crypto.USDC) {
|
|
185
185
|
return "USD Coin is a digital stablecoin pegged to the United States dollar. USD Coin is managed by a consortium called Centre, which was founded by Circle and includes members from the cryptocurrency exchange Coinbase and Bitcoin mining company Bitmain, an investor in Circle.";
|
|
186
|
+
}
|
|
187
|
+
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygon) {
|
|
188
|
+
return "USDC on the Polygon chain.";
|
|
186
189
|
// } else if (this.symbol === Crypto.mUSDC) {
|
|
187
190
|
// return "USDC on the Polygon chain";
|
|
188
191
|
// } else if (this.symbol === Crypto.USDT) {
|
|
@@ -225,7 +228,7 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
225
228
|
// return "Polygon is a cryptocurrency and a technology platform that was launched to connect and grow Ethereum-compatible projects and blockchains.";
|
|
226
229
|
}
|
|
227
230
|
else {
|
|
228
|
-
return this.
|
|
231
|
+
return this.symbol;
|
|
229
232
|
}
|
|
230
233
|
}
|
|
231
234
|
}
|
|
@@ -52,7 +52,7 @@ export declare class RioClient {
|
|
|
52
52
|
auth: Auth;
|
|
53
53
|
missing: string[];
|
|
54
54
|
}>;
|
|
55
|
-
authHasSecurityQuestion(
|
|
55
|
+
authHasSecurityQuestion(): Promise<Boolean>;
|
|
56
56
|
signout(): Promise<void>;
|
|
57
57
|
verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
|
|
58
58
|
signin(password: string): Promise<{
|
|
@@ -143,7 +143,7 @@ class RioClient {
|
|
|
143
143
|
return response.data;
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
authHasSecurityQuestion(
|
|
146
|
+
authHasSecurityQuestion() {
|
|
147
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
148
|
const response = yield this.axios.get(`/api/auth?checkSecurityQuestion=true`);
|
|
149
149
|
return response.data.hasSecurityQuestion;
|
package/build/types/crypto.d.ts
CHANGED
package/build/types/crypto.js
CHANGED