@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.
@@ -18,7 +18,7 @@ import {
18
18
  generateSecureRandomBase64Url,
19
19
  internalLogger,
20
20
  sha256
21
- } from "./chunk-6CQHDASY.js";
21
+ } from "./chunk-D42IQHQZ.js";
22
22
 
23
23
  // src/universal/types/oauth.ts
24
24
  var AuthorizationCode = (value) => value;
@@ -664,4 +664,4 @@ export {
664
664
  UserEmail,
665
665
  User
666
666
  };
667
- //# sourceMappingURL=chunk-ZFBEI3BW.js.map
667
+ //# sourceMappingURL=chunk-ZUVVNZJJ.js.map
@@ -1457,6 +1457,10 @@ var OfferToken = {
1457
1457
  listFromDto: (dtos) => dtos.filter((dto) => isChain(dto.chain)).map(OfferToken.fromDto)
1458
1458
  };
1459
1459
 
1460
+ // src/universal/types/trading.ts
1461
+ var Ticker = (value) => value;
1462
+ var Isin = (value) => value;
1463
+
1460
1464
  // src/universal/types/offer-detail.ts
1461
1465
  var OfferOptionId = (value) => value;
1462
1466
  var OfferOptionSlug = (value) => value;
@@ -1509,6 +1513,8 @@ var OfferDetail = {
1509
1513
  `OfferDetail.swap_contracts: expected an array, got ${typeof swapContracts}`
1510
1514
  );
1511
1515
  }
1516
+ const isin = notBlankStringOrNull(dto.isin);
1517
+ const ticker = notBlankStringOrNull(dto.ticker);
1512
1518
  return {
1513
1519
  id: OfferId(dto.id),
1514
1520
  slug: OfferSlug(dto.slug),
@@ -1523,6 +1529,11 @@ var OfferDetail = {
1523
1529
  bannerUrl: dto.banner_url,
1524
1530
  logoUrl: dto.logo_url,
1525
1531
  category: dto.category,
1532
+ issuer: notBlankStringOrNull(dto.issuer),
1533
+ isin: isin === null ? null : Isin(isin),
1534
+ ticker: ticker === null ? null : Ticker(ticker),
1535
+ instrumentType: notBlankStringOrNull(dto.instrument_type),
1536
+ listingVenue: notBlankStringOrNull(dto.listing_venue),
1526
1537
  startsAt: new Date(dto.starts_at),
1527
1538
  endsAt: dto.ends_at ? new Date(dto.ends_at) : null,
1528
1539
  faqs: dto.faqs.map(FaqItem.fromDto),
@@ -2001,9 +2012,6 @@ function parseBlockchainAmount(amount, decimals) {
2001
2012
  }
2002
2013
  }
2003
2014
 
2004
- // src/universal/types/trading.ts
2005
- var Ticker = (value) => value;
2006
-
2007
2015
  // src/universal/types/providers/ondo/ondo.ts
2008
2016
  var OndoTradingStatus = {
2009
2017
  fromDto: (dto) => {
@@ -6131,6 +6139,7 @@ var ISSUER_LABEL = "Issuer";
6131
6139
  var TICKER_SYMBOL_LABEL = "Ticker symbol";
6132
6140
  var ISIN_LABEL = "ISIN";
6133
6141
  var ASSET_TYPE_LABEL = "Asset type";
6142
+ var LISTING_VENUE_LABEL = "Listing venue";
6134
6143
  var NETWORK_LABEL = "Network";
6135
6144
  var PRICE_UNAVAILABLE = "-";
6136
6145
  function OndoSidebarView({
@@ -6162,6 +6171,7 @@ function detailRows2(state) {
6162
6171
  { label: TICKER_SYMBOL_LABEL, value: state.tickerSymbol },
6163
6172
  { label: ISIN_LABEL, value: state.isin },
6164
6173
  { label: ASSET_TYPE_LABEL, value: state.assetType },
6174
+ { label: LISTING_VENUE_LABEL, value: state.listingVenue },
6165
6175
  { label: NETWORK_LABEL, value: state.networkName }
6166
6176
  ];
6167
6177
  }
@@ -9484,12 +9494,14 @@ function useOndoSidebarViewModel({
9484
9494
  networkName: getNetworkName(chain),
9485
9495
  tokenMetadata
9486
9496
  }),
9487
- // No frontline endpoint carries any of these today, and the detail list
9488
- // drops a null row rather than dashing it.
9489
- issuer: null,
9490
- tickerSymbol: null,
9491
- isin: null,
9492
- assetType: null,
9497
+ // Reference data for the security the token tracks. Each is null on an
9498
+ // offer that tokenizes none, and the detail list drops a null row rather
9499
+ // than dashing it.
9500
+ issuer: offer.issuer,
9501
+ tickerSymbol: offer.ticker,
9502
+ isin: offer.isin,
9503
+ assetType: offer.instrumentType,
9504
+ listingVenue: offer.listingVenue,
9493
9505
  networkName: getNetworkName(chain),
9494
9506
  price: toPriceUi(priceState, tradingStatusState, locale)
9495
9507
  };