Skip to content

Commit 9acd979

Browse files
committed
chore: add api response types
1 parent f5f2794 commit 9acd979

File tree

5 files changed

+450
-83
lines changed

5 files changed

+450
-83
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"txblob", "tos", "gif", "ic", "asf", "ok", "Sig", "haptic", "Signable", "Unauthorize", "Preauth", "payid", "Biometrics", "Towo", "tz", "xrpscan",
153153
"xrplorer", "bithomp", "xpring", "xrplns", "Pincode", "Txn", "iap", "Realtime", "datastore", "decrypted", "Tangem", "Sdk", "Secp256k1", "blockchain",
154154
"Escrowed", "xapp", "Veriff", "Codec", "xapps", "Pressable", "nft", "ott", "Luminance", "HexToRgbA", "Misconfiguration", "kyc", "debounce", "debounced",
155-
"nfc", "lsf", "nfts", "Taxon", "fioprotocol", "iou", "dy", "vy", "pb", "nf", "origintype", "Xaman"
155+
"nfc", "lsf", "nfts", "Taxon", "fioprotocol", "iou", "dy", "vy", "pb", "nf", "origintype", "Xaman", "xls20"
156156
],
157157
"skipIfMatch": [
158158
"http://[^s]*",

src/common/constants/api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export default {
3232
['xAppInfo', '/v1/app/xapp/info/{xAppId}'],
3333
['currencies', '/v1/app/currencies/{locale}'],
3434
['rates', '/v1/app/rates/{currency}'],
35-
['validEndpoints', '/v1/app/valid-endpoints/{hash}'],
3635
['auditTrail', '/v1/app/audit-trail/{destination}'],
3736
['addAccount', '/v1/app/add-account'],
3837
['addTransaction', '/v1/app/add-tx'],

src/common/libs/ledger/exchange.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import {
1212

1313
import Localize from '@locale';
1414

15-
import { ApiService, NetworkService } from '@services';
15+
import NetworkService from '@services/NetworkService';
16+
import BackendService from '@services/BackendService';
1617

1718
import { ValueToIOU } from '@common/utils/amount';
1819

@@ -59,14 +60,10 @@ class LedgerExchange {
5960
};
6061
}
6162

62-
initialize = (direction: MarketDirection) => {
63+
initialize = async (direction: MarketDirection) => {
6364
// fetch liquidity boundaries
64-
return ApiService.liquidityBoundaries
65-
.get({
66-
issuer: this.pair.issuer,
67-
currency: this.pair.currency,
68-
})
69-
.then((res: any) => {
65+
return BackendService.getLiquidityBoundaries(this.pair.issuer, this.pair.currency)
66+
.then((res) => {
7067
if (res && has(res, 'options')) {
7168
this.boundaryOptions = res.options;
7269
}

0 commit comments

Comments
 (0)