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

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 { aC as ClientId, bj as RedirectUri, aD as CodeChallenge, b8 as PKCEState, C as CodeVerifier, q as EvmWalletAddress, a as EthereumChain, bC as Tx, B as BlockchainAmount, bs as SwapPreview, X as AssetDecimals, au as Newtype } from './config-CMl1bR3F.cjs';
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';
2
2
  import { Hex, Abi, Hash, TransactionReceipt } from 'viem';
3
3
 
4
4
  type PKCEParams = {
@@ -1,4 +1,4 @@
1
- import { aC as ClientId, bj as RedirectUri, aD as CodeChallenge, b8 as PKCEState, C as CodeVerifier, q as EvmWalletAddress, a as EthereumChain, bC as Tx, B as BlockchainAmount, bs as SwapPreview, X as AssetDecimals, au as Newtype } from './config-CMl1bR3F.js';
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';
2
2
  import { Hex, Abi, Hash, TransactionReceipt } from 'viem';
3
3
 
4
4
  type PKCEParams = {
@@ -1285,6 +1285,7 @@ type OfferDetailDto = {
1285
1285
  faqs: OfferDetailFaqDto[];
1286
1286
  funding_assets: AssetDto[];
1287
1287
  tokens: OfferTokenDto[];
1288
+ swap_contracts?: OfferDetailSwapContractDto[];
1288
1289
  id: string;
1289
1290
  links: OfferDetailLinkDto[];
1290
1291
  milestones: OfferDetailMilestoneDto[];
@@ -1329,11 +1330,30 @@ type OfferDetailTermDto = {
1329
1330
  key: string | null;
1330
1331
  value: string | null;
1331
1332
  };
1333
+ type OfferDetailSwapContractDto = {
1334
+ chain: string;
1335
+ address: string;
1336
+ };
1332
1337
 
1333
1338
  type OfferOptionId = Newtype<string, 'OfferOptionId'>;
1334
1339
  declare const OfferOptionId: (value: string) => OfferOptionId;
1335
1340
  type OfferOptionSlug = Newtype<string, 'OfferOptionSlug'>;
1336
1341
  declare const OfferOptionSlug: (value: string) => OfferOptionSlug;
1342
+ /**
1343
+ * A chain an offer can be swapped on, with the CoinList contract the swap
1344
+ * settles through - the spender to approve before any quote exists.
1345
+ *
1346
+ * Carries no role, unlike {@link OfferToken}: there is one swap contract per
1347
+ * chain and it serves every Ondo asset on it, so which token is being traded
1348
+ * does not change the answer.
1349
+ */
1350
+ type OfferSwapContract = {
1351
+ chain: Chain;
1352
+ address: EvmContractAddress;
1353
+ };
1354
+ declare const OfferSwapContract: {
1355
+ fromDto: (dto: OfferDetailSwapContractDto) => OfferSwapContract;
1356
+ };
1337
1357
  type OfferDetail = {
1338
1358
  id: OfferId;
1339
1359
  slug: OfferSlug;
@@ -1342,6 +1362,11 @@ type OfferDetail = {
1342
1362
  asset: Asset;
1343
1363
  fundingAssets: Asset[];
1344
1364
  tokens: OfferToken[];
1365
+ /**
1366
+ * Every chain this offer can be swapped on, with the CoinList contract each
1367
+ * settles through. Empty means it cannot be swapped anywhere.
1368
+ */
1369
+ swapContracts: OfferSwapContract[];
1345
1370
  about: string | null;
1346
1371
  tagline: string;
1347
1372
  bannerUrl: string;
@@ -2956,4 +2981,4 @@ interface Config {
2956
2981
  readonly logger?: Logger;
2957
2982
  }
2958
2983
 
2959
- export { type OndoQuoteSize as $, AuthorizationCode as A, BlockchainAmount as B, CodeVerifier as C, type OfferType as D, type Erc20Namespace as E, Offer as F, RequirementStatusInfo as G, type RequirementType as H, type RequirementStatusValue as I, OfferOptionAddress as J, RequirementId as K, type Logger as L, type KycLevelName as M, DocumentSubmission as N, OfferId as O, Participation as P, type WalletChallengeType as Q, type RequirementsNamespace as R, type SharedNamespaceContext as S, type TokensNamespace as T, type PinoLoggerOptions as U, OndoTradingStatus as V, type WalletError as W, AssetDecimals as X, type BuildOndoBuyParams as Y, type BuildOndoSellParams as Z, OndoQuote as _, EthereumChain as a, Milestone as a$, OfferOptionAddressId as a0, TokenMetadata as a1, type TokenIdentifier as a2, type DebugEvent as a3, type FrontlineEventId as a4, HttpError as a5, type HttpResponse as a6, KycToken as a7, type LogBinding as a8, type LogBindings as a9, type BuildOndoSwapParamsCore as aA, Chain as aB, ClientId as aC, CodeChallenge as aD, ConnectExternalWalletParams as aE, type CreateKycTokenParams as aF, CreateParticipationParams as aG, CreateWalletOwnershipChallengeParams as aH, Cursor as aI, type DocumentFormType as aJ, type DocumentSubmissionStatus as aK, type DocumentType as aL, ETHEREUM_CHAINS as aM, Erc20NamespaceImpl as aN, FaqItem as aO, type GetOndoQuoteParams as aP, type GetOndoTradingStatusParams as aQ, type GetSwapAuthorizationParams as aR, type GetSwapPreviewParams as aS, type GetTokenAllowanceParams as aT, type GetTokenBalanceParams as aU, HexEncodedTransactionData as aV, Iso2CountryCode as aW, Link as aX, type ListOptionAddressesParams as aY, MAX_ASSET_DECIMALS as aZ, MAX_UINT_256 as a_, type LogCause as aa, type LogLevel as ab, type LogScope as ac, type LogValue as ad, type ProductionLogLevel as ae, RedactedWalletError as af, type RequestId as ag, type SafeEvent as ah, type SafeFields as ai, type UnredactedFields as aj, OAuthSession as ak, ClientCredentialsOAuth as al, ClientSecret as am, type Sender as an, PaginationParams as ao, PaginatedResponse as ap, type Uint256 as aq, KnownAssetSymbol as ar, DecimalString as as, SwapStatus as at, type Newtype as au, type AllowWalletParams as av, AllowWalletResponse as aw, Asset as ax, AssetCode as ay, Blockchain as az, EvmContractAddress as b, OAuthRefreshToken as b0, OfferOption as b1, OfferOptionSlug as b2, OfferSlug as b3, OfferToken as b4, OffersNamespaceImpl as b5, type OndoQuoteDuration as b6, type OndoSellOutcome as b7, PKCEState as b8, type PaginatedResponseDto as b9, type TokenRole as bA, TokensNamespaceImpl as bB, type Tx as bC, WalletAddress as bD, WalletOwnershipChallenge as bE, type WalletProtocol as bF, WalletsNamespaceImpl as bG, apiErrorCode as bH, assertUint256 as bI, parseUint256 as bJ, ParticipationId as ba, type ParticipationStatus as bb, ParticipationsPaginationParams as bc, Pii as bd, PiiAddress as be, PiiJurisdiction as bf, type PiiKind as bg, type QueryParamValue as bh, type QueryParamValues as bi, RedirectUri as bj, type RemoveOptionAddressParams as bk, type RequirementActionNeededReason as bl, SOLANA_CHAINS as bm, STABLE_DECIMALS as bn, SolanaChain as bo, type SubmitDocumentParams as bp, SwapAuthorization as bq, type SwapContractRef as br, SwapPreview as bs, TermItem as bt, Ticker as bu, TokenAllowance as bv, TokenBalance as bw, TokenLogo as bx, type TokenLogoImage as by, TokenLogoUrl as bz, type CoinListTokenSaleNamespace as c, OfferOptionId as d, AssetId as e, CoinListTokenSaleNamespaceImpl as f, type OndoNamespace as g, AssetSymbol as h, OndoBuyTransaction as i, OndoSellTransaction as j, type OndoSwapTransactionCore as k, type OrderBookSide as l, OndoNamespaceImpl as m, type SuperstateSwapNamespace as n, type WalletsNamespace as o, Bps as p, EvmWalletAddress as q, SuperstateSwapNamespaceImpl as r, Requirement as s, RequirementsNamespaceImpl as t, type Config as u, type OAuthAccessToken as v, type OffersNamespace as w, StablecoinSymbol as x, type Erc20Asset as y, OfferDetail as z };
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 };
@@ -1285,6 +1285,7 @@ type OfferDetailDto = {
1285
1285
  faqs: OfferDetailFaqDto[];
1286
1286
  funding_assets: AssetDto[];
1287
1287
  tokens: OfferTokenDto[];
1288
+ swap_contracts?: OfferDetailSwapContractDto[];
1288
1289
  id: string;
1289
1290
  links: OfferDetailLinkDto[];
1290
1291
  milestones: OfferDetailMilestoneDto[];
@@ -1329,11 +1330,30 @@ type OfferDetailTermDto = {
1329
1330
  key: string | null;
1330
1331
  value: string | null;
1331
1332
  };
1333
+ type OfferDetailSwapContractDto = {
1334
+ chain: string;
1335
+ address: string;
1336
+ };
1332
1337
 
1333
1338
  type OfferOptionId = Newtype<string, 'OfferOptionId'>;
1334
1339
  declare const OfferOptionId: (value: string) => OfferOptionId;
1335
1340
  type OfferOptionSlug = Newtype<string, 'OfferOptionSlug'>;
1336
1341
  declare const OfferOptionSlug: (value: string) => OfferOptionSlug;
1342
+ /**
1343
+ * A chain an offer can be swapped on, with the CoinList contract the swap
1344
+ * settles through - the spender to approve before any quote exists.
1345
+ *
1346
+ * Carries no role, unlike {@link OfferToken}: there is one swap contract per
1347
+ * chain and it serves every Ondo asset on it, so which token is being traded
1348
+ * does not change the answer.
1349
+ */
1350
+ type OfferSwapContract = {
1351
+ chain: Chain;
1352
+ address: EvmContractAddress;
1353
+ };
1354
+ declare const OfferSwapContract: {
1355
+ fromDto: (dto: OfferDetailSwapContractDto) => OfferSwapContract;
1356
+ };
1337
1357
  type OfferDetail = {
1338
1358
  id: OfferId;
1339
1359
  slug: OfferSlug;
@@ -1342,6 +1362,11 @@ type OfferDetail = {
1342
1362
  asset: Asset;
1343
1363
  fundingAssets: Asset[];
1344
1364
  tokens: OfferToken[];
1365
+ /**
1366
+ * Every chain this offer can be swapped on, with the CoinList contract each
1367
+ * settles through. Empty means it cannot be swapped anywhere.
1368
+ */
1369
+ swapContracts: OfferSwapContract[];
1345
1370
  about: string | null;
1346
1371
  tagline: string;
1347
1372
  bannerUrl: string;
@@ -2956,4 +2981,4 @@ interface Config {
2956
2981
  readonly logger?: Logger;
2957
2982
  }
2958
2983
 
2959
- export { type OndoQuoteSize as $, AuthorizationCode as A, BlockchainAmount as B, CodeVerifier as C, type OfferType as D, type Erc20Namespace as E, Offer as F, RequirementStatusInfo as G, type RequirementType as H, type RequirementStatusValue as I, OfferOptionAddress as J, RequirementId as K, type Logger as L, type KycLevelName as M, DocumentSubmission as N, OfferId as O, Participation as P, type WalletChallengeType as Q, type RequirementsNamespace as R, type SharedNamespaceContext as S, type TokensNamespace as T, type PinoLoggerOptions as U, OndoTradingStatus as V, type WalletError as W, AssetDecimals as X, type BuildOndoBuyParams as Y, type BuildOndoSellParams as Z, OndoQuote as _, EthereumChain as a, Milestone as a$, OfferOptionAddressId as a0, TokenMetadata as a1, type TokenIdentifier as a2, type DebugEvent as a3, type FrontlineEventId as a4, HttpError as a5, type HttpResponse as a6, KycToken as a7, type LogBinding as a8, type LogBindings as a9, type BuildOndoSwapParamsCore as aA, Chain as aB, ClientId as aC, CodeChallenge as aD, ConnectExternalWalletParams as aE, type CreateKycTokenParams as aF, CreateParticipationParams as aG, CreateWalletOwnershipChallengeParams as aH, Cursor as aI, type DocumentFormType as aJ, type DocumentSubmissionStatus as aK, type DocumentType as aL, ETHEREUM_CHAINS as aM, Erc20NamespaceImpl as aN, FaqItem as aO, type GetOndoQuoteParams as aP, type GetOndoTradingStatusParams as aQ, type GetSwapAuthorizationParams as aR, type GetSwapPreviewParams as aS, type GetTokenAllowanceParams as aT, type GetTokenBalanceParams as aU, HexEncodedTransactionData as aV, Iso2CountryCode as aW, Link as aX, type ListOptionAddressesParams as aY, MAX_ASSET_DECIMALS as aZ, MAX_UINT_256 as a_, type LogCause as aa, type LogLevel as ab, type LogScope as ac, type LogValue as ad, type ProductionLogLevel as ae, RedactedWalletError as af, type RequestId as ag, type SafeEvent as ah, type SafeFields as ai, type UnredactedFields as aj, OAuthSession as ak, ClientCredentialsOAuth as al, ClientSecret as am, type Sender as an, PaginationParams as ao, PaginatedResponse as ap, type Uint256 as aq, KnownAssetSymbol as ar, DecimalString as as, SwapStatus as at, type Newtype as au, type AllowWalletParams as av, AllowWalletResponse as aw, Asset as ax, AssetCode as ay, Blockchain as az, EvmContractAddress as b, OAuthRefreshToken as b0, OfferOption as b1, OfferOptionSlug as b2, OfferSlug as b3, OfferToken as b4, OffersNamespaceImpl as b5, type OndoQuoteDuration as b6, type OndoSellOutcome as b7, PKCEState as b8, type PaginatedResponseDto as b9, type TokenRole as bA, TokensNamespaceImpl as bB, type Tx as bC, WalletAddress as bD, WalletOwnershipChallenge as bE, type WalletProtocol as bF, WalletsNamespaceImpl as bG, apiErrorCode as bH, assertUint256 as bI, parseUint256 as bJ, ParticipationId as ba, type ParticipationStatus as bb, ParticipationsPaginationParams as bc, Pii as bd, PiiAddress as be, PiiJurisdiction as bf, type PiiKind as bg, type QueryParamValue as bh, type QueryParamValues as bi, RedirectUri as bj, type RemoveOptionAddressParams as bk, type RequirementActionNeededReason as bl, SOLANA_CHAINS as bm, STABLE_DECIMALS as bn, SolanaChain as bo, type SubmitDocumentParams as bp, SwapAuthorization as bq, type SwapContractRef as br, SwapPreview as bs, TermItem as bt, Ticker as bu, TokenAllowance as bv, TokenBalance as bw, TokenLogo as bx, type TokenLogoImage as by, TokenLogoUrl as bz, type CoinListTokenSaleNamespace as c, OfferOptionId as d, AssetId as e, CoinListTokenSaleNamespaceImpl as f, type OndoNamespace as g, AssetSymbol as h, OndoBuyTransaction as i, OndoSellTransaction as j, type OndoSwapTransactionCore as k, type OrderBookSide as l, OndoNamespaceImpl as m, type SuperstateSwapNamespace as n, type WalletsNamespace as o, Bps as p, EvmWalletAddress as q, SuperstateSwapNamespaceImpl as r, Requirement as s, RequirementsNamespaceImpl as t, type Config as u, type OAuthAccessToken as v, type OffersNamespace as w, StablecoinSymbol as x, type Erc20Asset as y, OfferDetail as z };
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 };
@@ -1041,6 +1041,12 @@ var Asset = {
1041
1041
  // src/shared/types/offer-detail.ts
1042
1042
  var OfferOptionId = (value) => value;
1043
1043
  var OfferOptionSlug = (value) => value;
1044
+ var OfferSwapContract = {
1045
+ fromDto: (dto) => ({
1046
+ chain: Chain(dto.chain),
1047
+ address: EvmContractAddress(dto.address)
1048
+ })
1049
+ };
1044
1050
  var OfferDetail = {
1045
1051
  fromDto: (dto) => {
1046
1052
  if (!Array.isArray(dto.funding_assets)) {
@@ -1078,6 +1084,12 @@ var OfferDetail = {
1078
1084
  `OfferDetail.tokens: expected an array, got ${typeof dto.tokens}`
1079
1085
  );
1080
1086
  }
1087
+ const swapContracts = dto.swap_contracts === void 0 ? [] : dto.swap_contracts;
1088
+ if (!Array.isArray(swapContracts)) {
1089
+ throw new ValidationError(
1090
+ `OfferDetail.swap_contracts: expected an array, got ${typeof swapContracts}`
1091
+ );
1092
+ }
1081
1093
  return {
1082
1094
  id: OfferId(dto.id),
1083
1095
  slug: OfferSlug(dto.slug),
@@ -1086,6 +1098,7 @@ var OfferDetail = {
1086
1098
  asset: Asset.fromDto(dto.asset),
1087
1099
  fundingAssets: dto.funding_assets.map(Asset.fromDto),
1088
1100
  tokens: dto.tokens.map(OfferToken.fromDto),
1101
+ swapContracts: swapContracts.map(OfferSwapContract.fromDto),
1089
1102
  about: notBlankStringOrNull(dto.about),
1090
1103
  tagline: dto.tagline,
1091
1104
  bannerUrl: dto.banner_url,