@riocrypto/common 1.0.1084 → 1.0.1086
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.
|
|
7
|
+
getName(): Crypto.SOL | Crypto.TRON | "Bitcoin" | "Ethereum" | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)";
|
|
8
|
+
getSymbol(): Crypto.SOL | Crypto.TRON | "USDC (Ethereum)" | "USDC (Polygon)" | "USDC (Bridged to Polygon)" | "USDC (Solana)" | "USDT (Polygon)" | "USDT (Ethereum)" | "USDT (Tron)" | "BTC" | "ETH";
|
|
9
|
+
getGasSymbol(): Crypto.SOL | Crypto.TRON | "BTC" | "ETH" | "MATIC" | "SOL";
|
|
10
10
|
getDescription(): string;
|
|
11
11
|
}
|
|
@@ -59,6 +59,9 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
59
59
|
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygon) {
|
|
60
60
|
return "USDC (Polygon)";
|
|
61
61
|
}
|
|
62
|
+
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygonBridged) {
|
|
63
|
+
return "USDC (Bridged to Polygon)";
|
|
64
|
+
}
|
|
62
65
|
else if (this.rawSymbol === crypto_1.Crypto.USDCSolana) {
|
|
63
66
|
return "USDC (Solana)";
|
|
64
67
|
}
|
|
@@ -88,6 +91,9 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
88
91
|
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygon) {
|
|
89
92
|
return "USDC (Polygon)";
|
|
90
93
|
}
|
|
94
|
+
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygonBridged) {
|
|
95
|
+
return "USDC (Bridged to Polygon)";
|
|
96
|
+
}
|
|
91
97
|
else if (this.rawSymbol === crypto_1.Crypto.USDCSolana) {
|
|
92
98
|
return "USDC (Solana)";
|
|
93
99
|
}
|
|
@@ -114,6 +120,9 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
114
120
|
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygon) {
|
|
115
121
|
return "MATIC";
|
|
116
122
|
}
|
|
123
|
+
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygonBridged) {
|
|
124
|
+
return "MATIC";
|
|
125
|
+
}
|
|
117
126
|
else if (this.rawSymbol === crypto_1.Crypto.USDTTron) {
|
|
118
127
|
return "MATIC";
|
|
119
128
|
}
|
|
@@ -154,7 +163,10 @@ class CryptoAsset extends Asset_1.Asset {
|
|
|
154
163
|
return "USD Coin is a digital stablecoin pegged to the United States dollar.";
|
|
155
164
|
}
|
|
156
165
|
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygon) {
|
|
157
|
-
return "USDC on the Polygon chain.";
|
|
166
|
+
return "Native USDC on the Polygon chain.";
|
|
167
|
+
}
|
|
168
|
+
else if (this.rawSymbol === crypto_1.Crypto.USDCPolygonBridged) {
|
|
169
|
+
return "Bridged USDC on the Polygon chain.";
|
|
158
170
|
}
|
|
159
171
|
else if (this.rawSymbol === crypto_1.Crypto.USDCSolana) {
|
|
160
172
|
return "USDC on the Solana chain.";
|
|
@@ -115,7 +115,7 @@ export declare class RioAdminClient {
|
|
|
115
115
|
cancelChainedOrder(id?: string): Promise<void>;
|
|
116
116
|
getOrder(id: string): Promise<Order>;
|
|
117
117
|
createBankPayout(oid: string, bankAccountId: string): Promise<BankPayout>;
|
|
118
|
-
createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number): Promise<void>;
|
|
118
|
+
createInternalSwap(originCrypto: Crypto, destinationCrypto: Crypto, amount: number, provider: "coinbase" | "circle"): Promise<void>;
|
|
119
119
|
getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
|
|
120
120
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
121
121
|
getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
|
|
@@ -403,12 +403,13 @@ class RioAdminClient {
|
|
|
403
403
|
return response.data;
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
|
-
createInternalSwap(originCrypto, destinationCrypto, amount) {
|
|
406
|
+
createInternalSwap(originCrypto, destinationCrypto, amount, provider) {
|
|
407
407
|
return __awaiter(this, void 0, void 0, function* () {
|
|
408
408
|
const response = yield this.axios.post(`/api/liquidity/swaps`, {
|
|
409
409
|
originCrypto,
|
|
410
410
|
destinationCrypto,
|
|
411
411
|
amount,
|
|
412
|
+
provider,
|
|
412
413
|
});
|
|
413
414
|
});
|
|
414
415
|
}
|