@coinlist-co/react 0.12.1-rc.139e98c → 0.12.1-rc.73e7e17
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.
- package/dist/{chunk-F6WGUKZC.js → chunk-3ZZCK4IT.js} +2 -2
- package/dist/{chunk-6CQHDASY.js → chunk-D42IQHQZ.js} +14 -5
- package/dist/chunk-D42IQHQZ.js.map +1 -0
- package/dist/{chunk-ZFBEI3BW.js → chunk-ZUVVNZJJ.js} +2 -2
- package/dist/client/index.cjs +21 -9
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +22 -11
- package/dist/client/index.d.ts +22 -11
- package/dist/client/index.js +13 -9
- package/dist/client/index.js.map +1 -1
- package/dist/{collections-aCv-Wr2a.d.ts → collections-CMoojQ9M.d.ts} +1 -1
- package/dist/{collections-DOm9VKVm.d.cts → collections-koI4cjYa.d.cts} +1 -1
- package/dist/{config-DIaFzrMW.d.cts → config-BmK0t-XO.d.cts} +70 -5
- package/dist/{config-DIaFzrMW.d.ts → config-BmK0t-XO.d.ts} +70 -5
- package/dist/server/index.cjs +11 -3
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +2 -2
- package/dist/universal/index.cjs +13 -3
- package/dist/universal/index.cjs.map +1 -1
- package/dist/universal/index.d.cts +4 -4
- package/dist/universal/index.d.ts +4 -4
- package/dist/universal/index.js +4 -2
- package/package.json +2 -1
- package/dist/chunk-6CQHDASY.js.map +0 -1
- /package/dist/{chunk-F6WGUKZC.js.map → chunk-3ZZCK4IT.js.map} +0 -0
- /package/dist/{chunk-ZFBEI3BW.js.map → chunk-ZUVVNZJJ.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
HttpError,
|
|
6
6
|
Request,
|
|
7
7
|
getUUIDv4
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-D42IQHQZ.js";
|
|
9
9
|
|
|
10
10
|
// src/universal/api/nabu/config.ts
|
|
11
11
|
var NABU_BASE_URL = "https://asset.coinlist.co";
|
|
@@ -276,4 +276,4 @@ export {
|
|
|
276
276
|
SDK_LOGGER_NAME,
|
|
277
277
|
loggerOverPino
|
|
278
278
|
};
|
|
279
|
-
//# sourceMappingURL=chunk-
|
|
279
|
+
//# sourceMappingURL=chunk-3ZZCK4IT.js.map
|
|
@@ -402,6 +402,10 @@ var OfferToken = {
|
|
|
402
402
|
listFromDto: (dtos) => dtos.filter((dto) => isChain(dto.chain)).map(OfferToken.fromDto)
|
|
403
403
|
};
|
|
404
404
|
|
|
405
|
+
// src/universal/types/trading.ts
|
|
406
|
+
var Ticker = (value) => value;
|
|
407
|
+
var Isin = (value) => value;
|
|
408
|
+
|
|
405
409
|
// src/universal/core/shared/utils/crypto.ts
|
|
406
410
|
async function sha256(data) {
|
|
407
411
|
const bytes = typeof data === "string" ? new TextEncoder().encode(data) : data;
|
|
@@ -504,6 +508,8 @@ var OfferDetail = {
|
|
|
504
508
|
`OfferDetail.swap_contracts: expected an array, got ${typeof swapContracts}`
|
|
505
509
|
);
|
|
506
510
|
}
|
|
511
|
+
const isin = notBlankStringOrNull(dto.isin);
|
|
512
|
+
const ticker = notBlankStringOrNull(dto.ticker);
|
|
507
513
|
return {
|
|
508
514
|
id: OfferId(dto.id),
|
|
509
515
|
slug: OfferSlug(dto.slug),
|
|
@@ -518,6 +524,11 @@ var OfferDetail = {
|
|
|
518
524
|
bannerUrl: dto.banner_url,
|
|
519
525
|
logoUrl: dto.logo_url,
|
|
520
526
|
category: dto.category,
|
|
527
|
+
issuer: notBlankStringOrNull(dto.issuer),
|
|
528
|
+
isin: isin === null ? null : Isin(isin),
|
|
529
|
+
ticker: ticker === null ? null : Ticker(ticker),
|
|
530
|
+
instrumentType: notBlankStringOrNull(dto.instrument_type),
|
|
531
|
+
listingVenue: notBlankStringOrNull(dto.listing_venue),
|
|
521
532
|
startsAt: new Date(dto.starts_at),
|
|
522
533
|
endsAt: dto.ends_at ? new Date(dto.ends_at) : null,
|
|
523
534
|
faqs: dto.faqs.map(FaqItem.fromDto),
|
|
@@ -1041,9 +1052,6 @@ function parseBlockchainAmount(amount, decimals) {
|
|
|
1041
1052
|
}
|
|
1042
1053
|
}
|
|
1043
1054
|
|
|
1044
|
-
// src/universal/types/trading.ts
|
|
1045
|
-
var Ticker = (value) => value;
|
|
1046
|
-
|
|
1047
1055
|
// src/universal/types/providers/ondo/ondo.ts
|
|
1048
1056
|
var OndoTradingStatus = {
|
|
1049
1057
|
fromDto: (dto) => {
|
|
@@ -2345,6 +2353,8 @@ export {
|
|
|
2345
2353
|
OfferSlug,
|
|
2346
2354
|
Offer,
|
|
2347
2355
|
OfferToken,
|
|
2356
|
+
Ticker,
|
|
2357
|
+
Isin,
|
|
2348
2358
|
OfferOptionId,
|
|
2349
2359
|
OfferOptionSlug,
|
|
2350
2360
|
OfferSwapContract,
|
|
@@ -2382,7 +2392,6 @@ export {
|
|
|
2382
2392
|
txExplorerUrl,
|
|
2383
2393
|
blockchainAmountFromRawOrThrow,
|
|
2384
2394
|
parseBlockchainAmount,
|
|
2385
|
-
Ticker,
|
|
2386
2395
|
OndoTradingStatus,
|
|
2387
2396
|
OndoQuote,
|
|
2388
2397
|
OndoBuyTransaction,
|
|
@@ -2424,4 +2433,4 @@ export {
|
|
|
2424
2433
|
OAuthRefreshToken,
|
|
2425
2434
|
OAuthSession
|
|
2426
2435
|
};
|
|
2427
|
-
//# sourceMappingURL=chunk-
|
|
2436
|
+
//# sourceMappingURL=chunk-D42IQHQZ.js.map
|