@coinlist-co/react 0.12.1-rc.14ac67e → 0.12.1-rc.a230abc

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.
@@ -1,4 +1,4 @@
1
- import { aD as ClientId, bk as RedirectUri, aE as CodeChallenge, b9 as PKCEState, C as CodeVerifier, r as EvmWalletAddress, a as EthereumChain, bD as Tx, B as BlockchainAmount, bt as SwapPreview, Y as AssetDecimals, av as Newtype } from './config-DFYAM0GD.cjs';
1
+ import { aE as ClientId, bl as RedirectUri, aF as CodeChallenge, ba as PKCEState, C as CodeVerifier, r as EvmWalletAddress, a as EthereumChain, bD as Tx, B as BlockchainAmount, bu as SwapPreview, Z as AssetDecimals, aw as Newtype } from './config-D19ktBr0.cjs';
2
2
  import { Hex, Abi, Hash, TransactionReceipt } from 'viem';
3
3
 
4
4
  type PKCEParams = {
@@ -1,4 +1,4 @@
1
- import { aD as ClientId, bk as RedirectUri, aE as CodeChallenge, b9 as PKCEState, C as CodeVerifier, r as EvmWalletAddress, a as EthereumChain, bD as Tx, B as BlockchainAmount, bt as SwapPreview, Y as AssetDecimals, av as Newtype } from './config-DFYAM0GD.js';
1
+ import { aE as ClientId, bl as RedirectUri, aF as CodeChallenge, ba as PKCEState, C as CodeVerifier, r as EvmWalletAddress, a as EthereumChain, bD as Tx, B as BlockchainAmount, bu as SwapPreview, Z as AssetDecimals, aw as Newtype } from './config-D19ktBr0.js';
2
2
  import { Hex, Abi, Hash, TransactionReceipt } from 'viem';
3
3
 
4
4
  type PKCEParams = {
@@ -580,6 +580,12 @@ type SolanaChain = 'solana_mainnet' | 'solana_devnet';
580
580
  * caused it.
581
581
  */
582
582
  declare const SolanaChain: (value: string) => SolanaChain;
583
+ /**
584
+ * {@link Chain}'s check without the throw, for a mapper over a list that drops
585
+ * the entries it cannot name rather than rejecting the whole list. Frontline's
586
+ * chain registry may carry chains this SDK does not model yet.
587
+ */
588
+ declare const isChain: (value: string) => value is Chain;
583
589
  type Chain = EthereumChain | SolanaChain;
584
590
  declare const Chain: (value: string) => Chain;
585
591
  /**
@@ -1196,6 +1202,18 @@ type OfferToken = {
1196
1202
  };
1197
1203
  declare const OfferToken: {
1198
1204
  fromDto: (dto: OfferTokenDto) => OfferToken;
1205
+ /**
1206
+ * Maps an offer's token list, dropping every token on a chain this SDK does
1207
+ * not name. Frontline's chain registry runs ahead of {@link Chain}, and a
1208
+ * plain `.map` would throw out of `Offer.fromDto` and, through
1209
+ * `PaginatedResponse.fromDto`, reject the whole offers page - which is how
1210
+ * one Base token blanked production's offers list. Dropping costs that
1211
+ * token's metadata alone: `coinlist.tokens.get` takes an `EthereumChain`,
1212
+ * so nobody could have looked it up anyway.
1213
+ *
1214
+ * Same shape as `TokenMetadata.fromRegistryDto`.
1215
+ */
1216
+ listFromDto: (dtos: OfferTokenDto[]) => OfferToken[];
1199
1217
  };
1200
1218
 
1201
1219
  /**
@@ -2981,4 +2999,4 @@ interface Config {
2981
2999
  readonly logger?: Logger;
2982
3000
  }
2983
3001
 
2984
- export { OndoQuote as $, AuthorizationCode as A, BlockchainAmount as B, CodeVerifier as C, OfferDetail as D, type Erc20Namespace as E, type OfferType as F, Offer as G, RequirementStatusInfo as H, type RequirementType as I, type RequirementStatusValue as J, OfferOptionAddress as K, type Logger as L, RequirementId as M, type KycLevelName as N, OfferId as O, Participation as P, DocumentSubmission as Q, type RequirementsNamespace as R, type SharedNamespaceContext as S, type TokensNamespace as T, type WalletChallengeType as U, type PinoLoggerOptions as V, type WalletError as W, OndoTradingStatus as X, AssetDecimals as Y, type BuildOndoBuyParams as Z, type BuildOndoSellParams as _, EthereumChain as a, MAX_UINT_256 as a$, type OndoQuoteSize as a0, OfferOptionAddressId as a1, TokenMetadata as a2, type TokenIdentifier as a3, type DebugEvent as a4, type FrontlineEventId as a5, HttpError as a6, type HttpResponse as a7, KycToken as a8, type LogBinding as a9, Blockchain as aA, type BuildOndoSwapParamsCore as aB, Chain as aC, ClientId as aD, CodeChallenge as aE, ConnectExternalWalletParams as aF, type CreateKycTokenParams as aG, CreateParticipationParams as aH, CreateWalletOwnershipChallengeParams as aI, Cursor as aJ, type DocumentFormType as aK, type DocumentSubmissionStatus as aL, type DocumentType as aM, ETHEREUM_CHAINS as aN, Erc20NamespaceImpl as aO, FaqItem as aP, type GetOndoQuoteParams as aQ, type GetOndoTradingStatusParams as aR, type GetSwapAuthorizationParams as aS, type GetSwapPreviewParams as aT, type GetTokenAllowanceParams as aU, type GetTokenBalanceParams as aV, HexEncodedTransactionData as aW, Iso2CountryCode as aX, Link as aY, type ListOptionAddressesParams as aZ, MAX_ASSET_DECIMALS as a_, type LogBindings as aa, type LogCause as ab, type LogLevel as ac, type LogScope as ad, type LogValue as ae, type ProductionLogLevel as af, RedactedWalletError as ag, type RequestId as ah, type SafeEvent as ai, type SafeFields as aj, type UnredactedFields as ak, OAuthSession as al, ClientCredentialsOAuth as am, ClientSecret as an, type Sender as ao, PaginationParams as ap, PaginatedResponse as aq, type Uint256 as ar, KnownAssetSymbol as as, DecimalString as at, SwapStatus as au, type Newtype as av, type AllowWalletParams as aw, AllowWalletResponse as ax, Asset as ay, AssetCode as az, EvmContractAddress as b, Milestone as b0, OAuthRefreshToken as b1, OfferOption as b2, OfferOptionSlug as b3, OfferSlug as b4, OfferToken as b5, OffersNamespaceImpl as b6, type OndoQuoteDuration as b7, type OndoSellOutcome as b8, PKCEState as b9, TokenLogoUrl as bA, type TokenRole as bB, TokensNamespaceImpl as bC, type Tx as bD, WalletAddress as bE, WalletOwnershipChallenge as bF, type WalletProtocol as bG, WalletsNamespaceImpl as bH, apiErrorCode as bI, assertUint256 as bJ, parseUint256 as bK, type PaginatedResponseDto as ba, ParticipationId as bb, type ParticipationStatus as bc, ParticipationsPaginationParams as bd, Pii as be, PiiAddress as bf, PiiJurisdiction as bg, type PiiKind as bh, type QueryParamValue as bi, type QueryParamValues as bj, RedirectUri as bk, type RemoveOptionAddressParams as bl, type RequirementActionNeededReason as bm, SOLANA_CHAINS as bn, STABLE_DECIMALS as bo, SolanaChain as bp, type SubmitDocumentParams as bq, SwapAuthorization as br, type SwapContractRef as bs, SwapPreview as bt, TermItem as bu, Ticker as bv, TokenAllowance as bw, TokenBalance as bx, TokenLogo as by, type TokenLogoImage as bz, type CoinListTokenSaleNamespace as c, OfferOptionId as d, AssetId as e, CoinListTokenSaleNamespaceImpl as f, type OndoNamespace as g, AssetSymbol as h, OfferSwapContract as i, OndoBuyTransaction as j, OndoSellTransaction as k, type OndoSwapTransactionCore as l, type OrderBookSide as m, OndoNamespaceImpl as n, type SuperstateSwapNamespace as o, type WalletsNamespace as p, Bps as q, EvmWalletAddress as r, SuperstateSwapNamespaceImpl as s, Requirement as t, RequirementsNamespaceImpl as u, type Config as v, type OAuthAccessToken as w, type OffersNamespace as x, StablecoinSymbol as y, type Erc20Asset as z };
3002
+ export { type BuildOndoSellParams as $, AuthorizationCode as A, BlockchainAmount as B, CodeVerifier as C, OfferDetail as D, type Erc20Namespace as E, TokenMetadata as F, type OfferType as G, Offer as H, RequirementStatusInfo as I, type RequirementType as J, type RequirementStatusValue as K, type Logger as L, OfferOptionAddress as M, RequirementId as N, OfferId as O, Participation as P, type KycLevelName as Q, type RequirementsNamespace as R, type SharedNamespaceContext as S, type TokensNamespace as T, DocumentSubmission as U, type WalletChallengeType as V, type WalletError as W, type PinoLoggerOptions as X, OndoTradingStatus as Y, AssetDecimals as Z, type BuildOndoBuyParams as _, EthereumChain as a, MAX_ASSET_DECIMALS as a$, OndoQuote as a0, type OndoQuoteSize as a1, type TokenIdentifier as a2, OfferOptionAddressId as a3, TokenLogo as a4, type DebugEvent as a5, type FrontlineEventId as a6, HttpError as a7, type HttpResponse as a8, KycToken as a9, AssetCode as aA, Blockchain as aB, type BuildOndoSwapParamsCore as aC, Chain as aD, ClientId as aE, CodeChallenge as aF, ConnectExternalWalletParams as aG, type CreateKycTokenParams as aH, CreateParticipationParams as aI, CreateWalletOwnershipChallengeParams as aJ, Cursor as aK, type DocumentFormType as aL, type DocumentSubmissionStatus as aM, type DocumentType as aN, ETHEREUM_CHAINS as aO, Erc20NamespaceImpl as aP, FaqItem as aQ, type GetOndoQuoteParams as aR, type GetOndoTradingStatusParams as aS, type GetSwapAuthorizationParams as aT, type GetSwapPreviewParams as aU, type GetTokenAllowanceParams as aV, type GetTokenBalanceParams as aW, HexEncodedTransactionData as aX, Iso2CountryCode as aY, Link as aZ, type ListOptionAddressesParams as a_, type LogBinding as aa, type LogBindings as ab, type LogCause as ac, type LogLevel as ad, type LogScope as ae, type LogValue as af, type ProductionLogLevel as ag, RedactedWalletError as ah, type RequestId as ai, type SafeEvent as aj, type SafeFields as ak, type UnredactedFields as al, OAuthSession as am, ClientCredentialsOAuth as an, ClientSecret as ao, type Sender as ap, PaginationParams as aq, PaginatedResponse as ar, type Uint256 as as, KnownAssetSymbol as at, DecimalString as au, SwapStatus as av, type Newtype as aw, type AllowWalletParams as ax, AllowWalletResponse as ay, Asset as az, EvmContractAddress as b, MAX_UINT_256 as b0, Milestone as b1, OAuthRefreshToken as b2, OfferOption as b3, OfferOptionSlug as b4, OfferSlug as b5, OfferToken as b6, OffersNamespaceImpl as b7, type OndoQuoteDuration as b8, type OndoSellOutcome as b9, TokenLogoUrl as bA, type TokenRole as bB, TokensNamespaceImpl as bC, type Tx as bD, WalletAddress as bE, WalletOwnershipChallenge as bF, type WalletProtocol as bG, WalletsNamespaceImpl as bH, apiErrorCode as bI, assertUint256 as bJ, isChain as bK, parseUint256 as bL, PKCEState as ba, type PaginatedResponseDto as bb, ParticipationId as bc, type ParticipationStatus as bd, ParticipationsPaginationParams as be, Pii as bf, PiiAddress as bg, PiiJurisdiction as bh, type PiiKind as bi, type QueryParamValue as bj, type QueryParamValues as bk, RedirectUri as bl, type RemoveOptionAddressParams as bm, type RequirementActionNeededReason as bn, SOLANA_CHAINS as bo, STABLE_DECIMALS as bp, SolanaChain as bq, type SubmitDocumentParams as br, SwapAuthorization as bs, type SwapContractRef as bt, SwapPreview as bu, TermItem as bv, Ticker as bw, TokenAllowance as bx, TokenBalance as by, type TokenLogoImage as bz, type CoinListTokenSaleNamespace as c, OfferOptionId as d, AssetId as e, CoinListTokenSaleNamespaceImpl as f, type OndoNamespace as g, AssetSymbol as h, OfferSwapContract as i, OndoBuyTransaction as j, OndoSellTransaction as k, type OndoSwapTransactionCore as l, type OrderBookSide as m, OndoNamespaceImpl as n, type SuperstateSwapNamespace as o, type WalletsNamespace as p, Bps as q, EvmWalletAddress as r, SuperstateSwapNamespaceImpl as s, Requirement as t, RequirementsNamespaceImpl as u, type Config as v, type OAuthAccessToken as w, type OffersNamespace as x, StablecoinSymbol as y, type Erc20Asset as z };
@@ -580,6 +580,12 @@ type SolanaChain = 'solana_mainnet' | 'solana_devnet';
580
580
  * caused it.
581
581
  */
582
582
  declare const SolanaChain: (value: string) => SolanaChain;
583
+ /**
584
+ * {@link Chain}'s check without the throw, for a mapper over a list that drops
585
+ * the entries it cannot name rather than rejecting the whole list. Frontline's
586
+ * chain registry may carry chains this SDK does not model yet.
587
+ */
588
+ declare const isChain: (value: string) => value is Chain;
583
589
  type Chain = EthereumChain | SolanaChain;
584
590
  declare const Chain: (value: string) => Chain;
585
591
  /**
@@ -1196,6 +1202,18 @@ type OfferToken = {
1196
1202
  };
1197
1203
  declare const OfferToken: {
1198
1204
  fromDto: (dto: OfferTokenDto) => OfferToken;
1205
+ /**
1206
+ * Maps an offer's token list, dropping every token on a chain this SDK does
1207
+ * not name. Frontline's chain registry runs ahead of {@link Chain}, and a
1208
+ * plain `.map` would throw out of `Offer.fromDto` and, through
1209
+ * `PaginatedResponse.fromDto`, reject the whole offers page - which is how
1210
+ * one Base token blanked production's offers list. Dropping costs that
1211
+ * token's metadata alone: `coinlist.tokens.get` takes an `EthereumChain`,
1212
+ * so nobody could have looked it up anyway.
1213
+ *
1214
+ * Same shape as `TokenMetadata.fromRegistryDto`.
1215
+ */
1216
+ listFromDto: (dtos: OfferTokenDto[]) => OfferToken[];
1199
1217
  };
1200
1218
 
1201
1219
  /**
@@ -2981,4 +2999,4 @@ interface Config {
2981
2999
  readonly logger?: Logger;
2982
3000
  }
2983
3001
 
2984
- export { OndoQuote as $, AuthorizationCode as A, BlockchainAmount as B, CodeVerifier as C, OfferDetail as D, type Erc20Namespace as E, type OfferType as F, Offer as G, RequirementStatusInfo as H, type RequirementType as I, type RequirementStatusValue as J, OfferOptionAddress as K, type Logger as L, RequirementId as M, type KycLevelName as N, OfferId as O, Participation as P, DocumentSubmission as Q, type RequirementsNamespace as R, type SharedNamespaceContext as S, type TokensNamespace as T, type WalletChallengeType as U, type PinoLoggerOptions as V, type WalletError as W, OndoTradingStatus as X, AssetDecimals as Y, type BuildOndoBuyParams as Z, type BuildOndoSellParams as _, EthereumChain as a, MAX_UINT_256 as a$, type OndoQuoteSize as a0, OfferOptionAddressId as a1, TokenMetadata as a2, type TokenIdentifier as a3, type DebugEvent as a4, type FrontlineEventId as a5, HttpError as a6, type HttpResponse as a7, KycToken as a8, type LogBinding as a9, Blockchain as aA, type BuildOndoSwapParamsCore as aB, Chain as aC, ClientId as aD, CodeChallenge as aE, ConnectExternalWalletParams as aF, type CreateKycTokenParams as aG, CreateParticipationParams as aH, CreateWalletOwnershipChallengeParams as aI, Cursor as aJ, type DocumentFormType as aK, type DocumentSubmissionStatus as aL, type DocumentType as aM, ETHEREUM_CHAINS as aN, Erc20NamespaceImpl as aO, FaqItem as aP, type GetOndoQuoteParams as aQ, type GetOndoTradingStatusParams as aR, type GetSwapAuthorizationParams as aS, type GetSwapPreviewParams as aT, type GetTokenAllowanceParams as aU, type GetTokenBalanceParams as aV, HexEncodedTransactionData as aW, Iso2CountryCode as aX, Link as aY, type ListOptionAddressesParams as aZ, MAX_ASSET_DECIMALS as a_, type LogBindings as aa, type LogCause as ab, type LogLevel as ac, type LogScope as ad, type LogValue as ae, type ProductionLogLevel as af, RedactedWalletError as ag, type RequestId as ah, type SafeEvent as ai, type SafeFields as aj, type UnredactedFields as ak, OAuthSession as al, ClientCredentialsOAuth as am, ClientSecret as an, type Sender as ao, PaginationParams as ap, PaginatedResponse as aq, type Uint256 as ar, KnownAssetSymbol as as, DecimalString as at, SwapStatus as au, type Newtype as av, type AllowWalletParams as aw, AllowWalletResponse as ax, Asset as ay, AssetCode as az, EvmContractAddress as b, Milestone as b0, OAuthRefreshToken as b1, OfferOption as b2, OfferOptionSlug as b3, OfferSlug as b4, OfferToken as b5, OffersNamespaceImpl as b6, type OndoQuoteDuration as b7, type OndoSellOutcome as b8, PKCEState as b9, TokenLogoUrl as bA, type TokenRole as bB, TokensNamespaceImpl as bC, type Tx as bD, WalletAddress as bE, WalletOwnershipChallenge as bF, type WalletProtocol as bG, WalletsNamespaceImpl as bH, apiErrorCode as bI, assertUint256 as bJ, parseUint256 as bK, type PaginatedResponseDto as ba, ParticipationId as bb, type ParticipationStatus as bc, ParticipationsPaginationParams as bd, Pii as be, PiiAddress as bf, PiiJurisdiction as bg, type PiiKind as bh, type QueryParamValue as bi, type QueryParamValues as bj, RedirectUri as bk, type RemoveOptionAddressParams as bl, type RequirementActionNeededReason as bm, SOLANA_CHAINS as bn, STABLE_DECIMALS as bo, SolanaChain as bp, type SubmitDocumentParams as bq, SwapAuthorization as br, type SwapContractRef as bs, SwapPreview as bt, TermItem as bu, Ticker as bv, TokenAllowance as bw, TokenBalance as bx, TokenLogo as by, type TokenLogoImage as bz, type CoinListTokenSaleNamespace as c, OfferOptionId as d, AssetId as e, CoinListTokenSaleNamespaceImpl as f, type OndoNamespace as g, AssetSymbol as h, OfferSwapContract as i, OndoBuyTransaction as j, OndoSellTransaction as k, type OndoSwapTransactionCore as l, type OrderBookSide as m, OndoNamespaceImpl as n, type SuperstateSwapNamespace as o, type WalletsNamespace as p, Bps as q, EvmWalletAddress as r, SuperstateSwapNamespaceImpl as s, Requirement as t, RequirementsNamespaceImpl as u, type Config as v, type OAuthAccessToken as w, type OffersNamespace as x, StablecoinSymbol as y, type Erc20Asset as z };
3002
+ export { type BuildOndoSellParams as $, AuthorizationCode as A, BlockchainAmount as B, CodeVerifier as C, OfferDetail as D, type Erc20Namespace as E, TokenMetadata as F, type OfferType as G, Offer as H, RequirementStatusInfo as I, type RequirementType as J, type RequirementStatusValue as K, type Logger as L, OfferOptionAddress as M, RequirementId as N, OfferId as O, Participation as P, type KycLevelName as Q, type RequirementsNamespace as R, type SharedNamespaceContext as S, type TokensNamespace as T, DocumentSubmission as U, type WalletChallengeType as V, type WalletError as W, type PinoLoggerOptions as X, OndoTradingStatus as Y, AssetDecimals as Z, type BuildOndoBuyParams as _, EthereumChain as a, MAX_ASSET_DECIMALS as a$, OndoQuote as a0, type OndoQuoteSize as a1, type TokenIdentifier as a2, OfferOptionAddressId as a3, TokenLogo as a4, type DebugEvent as a5, type FrontlineEventId as a6, HttpError as a7, type HttpResponse as a8, KycToken as a9, AssetCode as aA, Blockchain as aB, type BuildOndoSwapParamsCore as aC, Chain as aD, ClientId as aE, CodeChallenge as aF, ConnectExternalWalletParams as aG, type CreateKycTokenParams as aH, CreateParticipationParams as aI, CreateWalletOwnershipChallengeParams as aJ, Cursor as aK, type DocumentFormType as aL, type DocumentSubmissionStatus as aM, type DocumentType as aN, ETHEREUM_CHAINS as aO, Erc20NamespaceImpl as aP, FaqItem as aQ, type GetOndoQuoteParams as aR, type GetOndoTradingStatusParams as aS, type GetSwapAuthorizationParams as aT, type GetSwapPreviewParams as aU, type GetTokenAllowanceParams as aV, type GetTokenBalanceParams as aW, HexEncodedTransactionData as aX, Iso2CountryCode as aY, Link as aZ, type ListOptionAddressesParams as a_, type LogBinding as aa, type LogBindings as ab, type LogCause as ac, type LogLevel as ad, type LogScope as ae, type LogValue as af, type ProductionLogLevel as ag, RedactedWalletError as ah, type RequestId as ai, type SafeEvent as aj, type SafeFields as ak, type UnredactedFields as al, OAuthSession as am, ClientCredentialsOAuth as an, ClientSecret as ao, type Sender as ap, PaginationParams as aq, PaginatedResponse as ar, type Uint256 as as, KnownAssetSymbol as at, DecimalString as au, SwapStatus as av, type Newtype as aw, type AllowWalletParams as ax, AllowWalletResponse as ay, Asset as az, EvmContractAddress as b, MAX_UINT_256 as b0, Milestone as b1, OAuthRefreshToken as b2, OfferOption as b3, OfferOptionSlug as b4, OfferSlug as b5, OfferToken as b6, OffersNamespaceImpl as b7, type OndoQuoteDuration as b8, type OndoSellOutcome as b9, TokenLogoUrl as bA, type TokenRole as bB, TokensNamespaceImpl as bC, type Tx as bD, WalletAddress as bE, WalletOwnershipChallenge as bF, type WalletProtocol as bG, WalletsNamespaceImpl as bH, apiErrorCode as bI, assertUint256 as bJ, isChain as bK, parseUint256 as bL, PKCEState as ba, type PaginatedResponseDto as bb, ParticipationId as bc, type ParticipationStatus as bd, ParticipationsPaginationParams as be, Pii as bf, PiiAddress as bg, PiiJurisdiction as bh, type PiiKind as bi, type QueryParamValue as bj, type QueryParamValues as bk, RedirectUri as bl, type RemoveOptionAddressParams as bm, type RequirementActionNeededReason as bn, SOLANA_CHAINS as bo, STABLE_DECIMALS as bp, SolanaChain as bq, type SubmitDocumentParams as br, SwapAuthorization as bs, type SwapContractRef as bt, SwapPreview as bu, TermItem as bv, Ticker as bw, TokenAllowance as bx, TokenBalance as by, type TokenLogoImage as bz, type CoinListTokenSaleNamespace as c, OfferOptionId as d, AssetId as e, CoinListTokenSaleNamespaceImpl as f, type OndoNamespace as g, AssetSymbol as h, OfferSwapContract as i, OndoBuyTransaction as j, OndoSellTransaction as k, type OndoSwapTransactionCore as l, type OrderBookSide as m, OndoNamespaceImpl as n, type SuperstateSwapNamespace as o, type WalletsNamespace as p, Bps as q, EvmWalletAddress as r, SuperstateSwapNamespaceImpl as s, Requirement as t, RequirementsNamespaceImpl as u, type Config as v, type OAuthAccessToken as w, type OffersNamespace as x, StablecoinSymbol as y, type Erc20Asset as z };
@@ -925,8 +925,9 @@ var SOLANA_CHAINS = {
925
925
  solana_mainnet: true,
926
926
  solana_devnet: true
927
927
  };
928
+ var isChain = (value) => Object.keys(ETHEREUM_CHAINS).includes(value) || Object.keys(SOLANA_CHAINS).includes(value);
928
929
  var Chain = (value) => {
929
- if (!Object.keys(ETHEREUM_CHAINS).includes(value) && !Object.keys(SOLANA_CHAINS).includes(value)) {
930
+ if (!isChain(value)) {
930
931
  throw new ValidationError(`Unsupported chain: "${value}"`);
931
932
  }
932
933
  return value;
@@ -1014,7 +1015,7 @@ var Offer = {
1014
1015
  logoUrl: dto.logo_url,
1015
1016
  startsAt: new Date(dto.starts_at),
1016
1017
  endsAt: dto.ends_at ? new Date(dto.ends_at) : null,
1017
- tokens: dto.tokens.map(OfferToken.fromDto)
1018
+ tokens: OfferToken.listFromDto(dto.tokens)
1018
1019
  };
1019
1020
  }
1020
1021
  };
@@ -1023,7 +1024,19 @@ var OfferToken = {
1023
1024
  role: dto.role,
1024
1025
  chain: Chain(dto.chain),
1025
1026
  address: EvmContractAddress(dto.address)
1026
- })
1027
+ }),
1028
+ /**
1029
+ * Maps an offer's token list, dropping every token on a chain this SDK does
1030
+ * not name. Frontline's chain registry runs ahead of {@link Chain}, and a
1031
+ * plain `.map` would throw out of `Offer.fromDto` and, through
1032
+ * `PaginatedResponse.fromDto`, reject the whole offers page - which is how
1033
+ * one Base token blanked production's offers list. Dropping costs that
1034
+ * token's metadata alone: `coinlist.tokens.get` takes an `EthereumChain`,
1035
+ * so nobody could have looked it up anyway.
1036
+ *
1037
+ * Same shape as `TokenMetadata.fromRegistryDto`.
1038
+ */
1039
+ listFromDto: (dtos) => dtos.filter((dto) => isChain(dto.chain)).map(OfferToken.fromDto)
1027
1040
  };
1028
1041
 
1029
1042
  // src/shared/types/asset.ts
@@ -1097,7 +1110,7 @@ var OfferDetail = {
1097
1110
  name: dto.name,
1098
1111
  asset: Asset.fromDto(dto.asset),
1099
1112
  fundingAssets: dto.funding_assets.map(Asset.fromDto),
1100
- tokens: dto.tokens.map(OfferToken.fromDto),
1113
+ tokens: OfferToken.listFromDto(dto.tokens),
1101
1114
  swapContracts: swapContracts.map(OfferSwapContract.fromDto),
1102
1115
  about: notBlankStringOrNull(dto.about),
1103
1116
  tagline: dto.tagline,