@riocrypto/common 1.0.1412 → 1.0.1415
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.
|
@@ -160,6 +160,7 @@ export declare class RioAdminClient {
|
|
|
160
160
|
getInternalSwaps(page: number, limit?: number): Promise<InternalSwap[]>;
|
|
161
161
|
getBankPayout(orderId: string): Promise<BankPayout>;
|
|
162
162
|
getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
|
|
163
|
+
getCryptoAddress(id: string): Promise<CryptoAddress>;
|
|
163
164
|
createChainedOrder(order: ChainedOrderInput): Promise<ChainedOrder>;
|
|
164
165
|
createCryptoAddress(address: string, crypto: Crypto, userId: string, label?: string): Promise<CryptoAddress>;
|
|
165
166
|
createChainedQuote(input: ChainedQuoteInput): Promise<{
|
|
@@ -580,6 +580,12 @@ class RioAdminClient {
|
|
|
580
580
|
return data;
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
|
+
getCryptoAddress(id) {
|
|
584
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
585
|
+
const { data } = yield this.axios.get(`/api/addresses/${id}`);
|
|
586
|
+
return data;
|
|
587
|
+
});
|
|
588
|
+
}
|
|
583
589
|
createChainedOrder(order) {
|
|
584
590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
585
591
|
const response = yield this.axios.post("/api/orders/chained", order);
|
|
@@ -130,6 +130,7 @@ export declare class RioClient {
|
|
|
130
130
|
}>;
|
|
131
131
|
getBridgeExternalAccounts(query: BridgeExternalAccountQuery): Promise<BankAccount[]>;
|
|
132
132
|
getCryptoAddresses(page: number, limit?: number, query?: CryptoAddressQuery): Promise<CryptoAddress[]>;
|
|
133
|
+
getCryptoAddress(id: string): Promise<CryptoAddress>;
|
|
133
134
|
createCryptoAddress(address: string, crypto: Crypto, userId?: string, label?: string): Promise<CryptoAddress>;
|
|
134
135
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
135
136
|
createBridgeExternalAccount(userId: string, bankName: string, accountNumber: string, routingNumber: string, accountOwnerName: string, address: {
|
|
@@ -473,6 +473,12 @@ class RioClient {
|
|
|
473
473
|
return data;
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
|
+
getCryptoAddress(id) {
|
|
477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
478
|
+
const { data } = yield this.axios.get(`/api/addresses/${id}`);
|
|
479
|
+
return data;
|
|
480
|
+
});
|
|
481
|
+
}
|
|
476
482
|
createCryptoAddress(address, crypto, userId, label) {
|
|
477
483
|
return __awaiter(this, void 0, void 0, function* () {
|
|
478
484
|
const response = yield this.axios.post(`/api/addresses`, {
|