From 2985add8f1906d6bb153689a7107d3f2dc128ca1 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 4 Nov 2024 16:35:36 -0500 Subject: [PATCH] fix: export nft apis (#1573) --- src/api/index.ts | 9 +++++++++ src/api/types.ts | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/src/api/index.ts b/src/api/index.ts index 0a5d189049..b271639e50 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,17 +1,26 @@ // 🌲☀️🌲 +export { buildMintTransaction } from './buildMintTransaction'; export { buildSwapTransaction } from './buildSwapTransaction'; export { buildPayTransaction } from './buildPayTransaction'; +export { getMintDetails } from './getMintDetails'; export { getSwapQuote } from './getSwapQuote'; +export { getTokenDetails } from './getTokenDetails'; export { getTokens } from './getTokens'; export type { APIError, + BuildMintTransactionParams, + BuildMintTransactionResponse, BuildPayTransactionParams, BuildPayTransactionResponse, BuildSwapTransaction, BuildSwapTransactionParams, BuildSwapTransactionResponse, + GetMintDetailsParams, + GetMintDetailsResponse, GetSwapQuoteParams, GetSwapQuoteResponse, + GetTokenDetailsParams, + GetTokenDetailsResponse, GetTokensOptions, GetTokensResponse, } from './types'; diff --git a/src/api/types.ts b/src/api/types.ts index 7ee451fabc..5bf4839d3d 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -145,6 +145,9 @@ export type RawTransactionData = { export type SwapAPIParams = GetQuoteAPIParams | GetSwapAPIParams; +/** + * Note: exported as public Type + */ export type GetTokenDetailsParams = { contractAddress: Address; // The address of the token contract tokenId?: string; // The ID of the token @@ -161,8 +164,14 @@ export type TokenDetails = { contractType: ContractType; // ERC721, ERC1155 }; +/** + * Note: exported as public Type + */ export type GetTokenDetailsResponse = TokenDetails | APIError; +/** + * Note: exported as public Type + */ export type GetMintDetailsParams = { contractAddress: Address; // The address of the token contract takerAddress?: Address; // The address of the user @@ -186,8 +195,14 @@ export type MintDetails = { network: string; // The network the NFT is on }; +/** + * Note: exported as public Type + */ export type GetMintDetailsResponse = MintDetails | APIError; +/** + * Note: exported as public Type + */ export type BuildMintTransactionParams = { mintAddress: Address; // The address of the token contract to mint takerAddress: Address; // The address of the user @@ -205,4 +220,7 @@ type MintTransaction = { }; }; +/** + * Note: exported as public Type + */ export type BuildMintTransactionResponse = MintTransaction | APIError;