@0xsequence/hooks 5.3.23 → 5.3.24
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/cjs/hooks/API/useAPIClient.d.ts +0 -1
- package/dist/cjs/hooks/API/useAPIClient.d.ts.map +1 -1
- package/dist/cjs/hooks/API/useAPIClient.js +0 -1
- package/dist/cjs/hooks/API/useAPIClient.js.map +1 -1
- package/dist/cjs/hooks/API/useGetCoinPrices.d.ts +1 -1
- package/dist/cjs/hooks/API/useGetCoinPrices.js +1 -1
- package/dist/cjs/hooks/API/useGetCollectiblePrices.d.ts +1 -1
- package/dist/cjs/hooks/API/useGetCollectiblePrices.js +1 -1
- package/dist/cjs/hooks/API/useGetExchangeRate.d.ts +1 -1
- package/dist/cjs/hooks/API/useGetExchangeRate.js +1 -1
- package/dist/cjs/hooks/Builder/useFindVersion.d.ts +0 -1
- package/dist/cjs/hooks/Builder/useFindVersion.d.ts.map +1 -1
- package/dist/cjs/hooks/Builder/useFindVersion.js.map +1 -1
- package/dist/cjs/hooks/Combination/useGetSwapQuote.d.ts +1 -1
- package/dist/cjs/hooks/Combination/useGetSwapQuote.js +1 -1
- package/dist/cjs/hooks/Combination/useGetSwapRoutes.d.ts +1 -1
- package/dist/cjs/hooks/Combination/useGetSwapRoutes.js +1 -1
- package/dist/cjs/hooks/Indexer/useGetTransactionHistory.d.ts +1 -1
- package/dist/cjs/hooks/Indexer/useGetTransactionHistory.js +1 -1
- package/dist/cjs/hooks/Indexer/useGetTransactionHistorySummary.d.ts +1 -1
- package/dist/cjs/hooks/Indexer/useGetTransactionHistorySummary.js +1 -1
- package/dist/cjs/hooks/Indexer/useIndexerClient.d.ts +0 -1
- package/dist/cjs/hooks/Indexer/useIndexerClient.d.ts.map +1 -1
- package/dist/cjs/hooks/Indexer/useIndexerClient.js +0 -1
- package/dist/cjs/hooks/Indexer/useIndexerClient.js.map +1 -1
- package/dist/cjs/hooks/IndexerGateway/useGetNativeTokenBalance.d.ts +1 -1
- package/dist/cjs/hooks/IndexerGateway/useGetNativeTokenBalance.js +1 -1
- package/dist/cjs/hooks/IndexerGateway/useGetSingleTokenBalance.d.ts +4 -4
- package/dist/cjs/hooks/IndexerGateway/useGetSingleTokenBalance.js +4 -4
- package/dist/cjs/hooks/IndexerGateway/useGetTokenBalancesByContract.d.ts +1 -1
- package/dist/cjs/hooks/IndexerGateway/useGetTokenBalancesByContract.js +1 -1
- package/dist/cjs/hooks/IndexerGateway/useGetTokenBalancesDetails.d.ts +1 -1
- package/dist/cjs/hooks/IndexerGateway/useGetTokenBalancesDetails.js +1 -1
- package/dist/cjs/hooks/IndexerGateway/useGetTokenBalancesSummary.d.ts +1 -1
- package/dist/cjs/hooks/IndexerGateway/useGetTokenBalancesSummary.js +1 -1
- package/dist/cjs/hooks/IndexerGateway/useIndexerGatewayClient.d.ts +1 -1
- package/dist/cjs/hooks/IndexerGateway/useIndexerGatewayClient.js +1 -1
- package/dist/cjs/hooks/Metadata/useGetContractInfo.d.ts +1 -1
- package/dist/cjs/hooks/Metadata/useGetContractInfo.js +1 -1
- package/dist/cjs/hooks/Metadata/useGetMultipleContractsInfo.d.ts +1 -1
- package/dist/cjs/hooks/Metadata/useGetMultipleContractsInfo.js +1 -1
- package/dist/cjs/hooks/Metadata/useGetTokenMetadata.d.ts +1 -1
- package/dist/cjs/hooks/Metadata/useGetTokenMetadata.js +1 -1
- package/dist/cjs/hooks/Metadata/useMetadataClient.d.ts +1 -1
- package/dist/cjs/hooks/Metadata/useMetadataClient.js +1 -1
- package/dist/esm/hooks/API/useAPIClient.d.ts +0 -1
- package/dist/esm/hooks/API/useAPIClient.d.ts.map +1 -1
- package/dist/esm/hooks/API/useAPIClient.js +0 -1
- package/dist/esm/hooks/API/useAPIClient.js.map +1 -1
- package/dist/esm/hooks/API/useGetCoinPrices.d.ts +1 -1
- package/dist/esm/hooks/API/useGetCoinPrices.js +1 -1
- package/dist/esm/hooks/API/useGetCollectiblePrices.d.ts +1 -1
- package/dist/esm/hooks/API/useGetCollectiblePrices.js +1 -1
- package/dist/esm/hooks/API/useGetExchangeRate.d.ts +1 -1
- package/dist/esm/hooks/API/useGetExchangeRate.js +1 -1
- package/dist/esm/hooks/Builder/useFindVersion.d.ts +0 -1
- package/dist/esm/hooks/Builder/useFindVersion.d.ts.map +1 -1
- package/dist/esm/hooks/Builder/useFindVersion.js.map +1 -1
- package/dist/esm/hooks/Combination/useGetSwapQuote.d.ts +1 -1
- package/dist/esm/hooks/Combination/useGetSwapQuote.js +1 -1
- package/dist/esm/hooks/Combination/useGetSwapRoutes.d.ts +1 -1
- package/dist/esm/hooks/Combination/useGetSwapRoutes.js +1 -1
- package/dist/esm/hooks/Indexer/useGetTransactionHistory.d.ts +1 -1
- package/dist/esm/hooks/Indexer/useGetTransactionHistory.js +1 -1
- package/dist/esm/hooks/Indexer/useGetTransactionHistorySummary.d.ts +1 -1
- package/dist/esm/hooks/Indexer/useGetTransactionHistorySummary.js +1 -1
- package/dist/esm/hooks/Indexer/useIndexerClient.d.ts +0 -1
- package/dist/esm/hooks/Indexer/useIndexerClient.d.ts.map +1 -1
- package/dist/esm/hooks/Indexer/useIndexerClient.js +0 -1
- package/dist/esm/hooks/Indexer/useIndexerClient.js.map +1 -1
- package/dist/esm/hooks/IndexerGateway/useGetNativeTokenBalance.d.ts +1 -1
- package/dist/esm/hooks/IndexerGateway/useGetNativeTokenBalance.js +1 -1
- package/dist/esm/hooks/IndexerGateway/useGetSingleTokenBalance.d.ts +4 -4
- package/dist/esm/hooks/IndexerGateway/useGetSingleTokenBalance.js +4 -4
- package/dist/esm/hooks/IndexerGateway/useGetTokenBalancesByContract.d.ts +1 -1
- package/dist/esm/hooks/IndexerGateway/useGetTokenBalancesByContract.js +1 -1
- package/dist/esm/hooks/IndexerGateway/useGetTokenBalancesDetails.d.ts +1 -1
- package/dist/esm/hooks/IndexerGateway/useGetTokenBalancesDetails.js +1 -1
- package/dist/esm/hooks/IndexerGateway/useGetTokenBalancesSummary.d.ts +1 -1
- package/dist/esm/hooks/IndexerGateway/useGetTokenBalancesSummary.js +1 -1
- package/dist/esm/hooks/IndexerGateway/useIndexerGatewayClient.d.ts +1 -1
- package/dist/esm/hooks/IndexerGateway/useIndexerGatewayClient.js +1 -1
- package/dist/esm/hooks/Metadata/useGetContractInfo.d.ts +1 -1
- package/dist/esm/hooks/Metadata/useGetContractInfo.js +1 -1
- package/dist/esm/hooks/Metadata/useGetMultipleContractsInfo.d.ts +1 -1
- package/dist/esm/hooks/Metadata/useGetMultipleContractsInfo.js +1 -1
- package/dist/esm/hooks/Metadata/useGetTokenMetadata.d.ts +1 -1
- package/dist/esm/hooks/Metadata/useGetTokenMetadata.js +1 -1
- package/dist/esm/hooks/Metadata/useMetadataClient.d.ts +1 -1
- package/dist/esm/hooks/Metadata/useMetadataClient.js +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,6 @@ import { SequenceAPIClient } from '@0xsequence/api';
|
|
|
15
15
|
* The client instance is memoized based on the project access key, meaning a new
|
|
16
16
|
* instance is only created when the access key changes.
|
|
17
17
|
*
|
|
18
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useAPIClient} for more detailed documentation.
|
|
19
18
|
*
|
|
20
19
|
* @returns {SequenceAPIClient} A configured instance of the Sequence API client
|
|
21
20
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAPIClient.d.ts","sourceRoot":"","sources":["../../../../src/hooks/API/useAPIClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAKnD
|
|
1
|
+
{"version":3,"file":"useAPIClient.d.ts","sourceRoot":"","sources":["../../../../src/hooks/API/useAPIClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAKnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,YAAY,yBAQxB,CAAA"}
|
|
@@ -20,7 +20,6 @@ const useConfig_js_1 = require("../useConfig.js");
|
|
|
20
20
|
* The client instance is memoized based on the project access key, meaning a new
|
|
21
21
|
* instance is only created when the access key changes.
|
|
22
22
|
*
|
|
23
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useAPIClient} for more detailed documentation.
|
|
24
23
|
*
|
|
25
24
|
* @returns {SequenceAPIClient} A configured instance of the Sequence API client
|
|
26
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAPIClient.js","sourceRoot":"","sources":["../../../../src/hooks/API/useAPIClient.ts"],"names":[],"mappings":";;;AAAA,yCAAmD;AACnD,iCAA+B;AAE/B,kDAA2C;AAE3C
|
|
1
|
+
{"version":3,"file":"useAPIClient.js","sourceRoot":"","sources":["../../../../src/hooks/API/useAPIClient.ts"],"names":[],"mappings":";;;AAAA,yCAAmD;AACnD,iCAA+B;AAE/B,kDAA2C;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACI,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAA,wBAAS,GAAE,CAAA;IAElD,MAAM,SAAS,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAC7B,OAAO,IAAI,uBAAiB,CAAC,GAAG,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAA;IACjE,CAAC,EAAE,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IAE3B,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA;AARY,QAAA,YAAY,gBAQxB"}
|
|
@@ -6,7 +6,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
6
6
|
* This hook uses React Query to fetch and cache token prices from the Sequence API.
|
|
7
7
|
* Prices are automatically refreshed every minute to ensure they stay current.
|
|
8
8
|
*
|
|
9
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetCoinPrices} for more detailed documentation.
|
|
9
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetCoinPrices} for more detailed documentation.
|
|
10
10
|
*
|
|
11
11
|
* @param tokens - Array of tokens to get prices for. Each token must include:
|
|
12
12
|
* - chainId: The chain ID where the token exists
|
|
@@ -25,7 +25,7 @@ const getCoinPrices = async (apiClient, tokens) => {
|
|
|
25
25
|
* This hook uses React Query to fetch and cache token prices from the Sequence API.
|
|
26
26
|
* Prices are automatically refreshed every minute to ensure they stay current.
|
|
27
27
|
*
|
|
28
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetCoinPrices} for more detailed documentation.
|
|
28
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetCoinPrices} for more detailed documentation.
|
|
29
29
|
*
|
|
30
30
|
* @param tokens - Array of tokens to get prices for. Each token must include:
|
|
31
31
|
* - chainId: The chain ID where the token exists
|
|
@@ -8,7 +8,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
8
8
|
* Used in various UI components to display NFT valuations, particularly in collection views
|
|
9
9
|
* and transaction details.
|
|
10
10
|
*
|
|
11
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetCollectiblePrices} for more detailed documentation.
|
|
11
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetCollectiblePrices} for more detailed documentation.
|
|
12
12
|
*
|
|
13
13
|
* @param tokens - Array of tokens to get prices for. Each token must include:
|
|
14
14
|
* - chainId: The chain ID where the NFT exists
|
|
@@ -27,7 +27,7 @@ const getCollectiblePrices = async (apiClient, tokens) => {
|
|
|
27
27
|
* Used in various UI components to display NFT valuations, particularly in collection views
|
|
28
28
|
* and transaction details.
|
|
29
29
|
*
|
|
30
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetCollectiblePrices} for more detailed documentation.
|
|
30
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetCollectiblePrices} for more detailed documentation.
|
|
31
31
|
*
|
|
32
32
|
* @param tokens - Array of tokens to get prices for. Each token must include:
|
|
33
33
|
* - chainId: The chain ID where the NFT exists
|
|
@@ -7,7 +7,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
7
7
|
* Used throughout the wallet widget and checkout components to display fiat values
|
|
8
8
|
* for tokens and NFTs.
|
|
9
9
|
*
|
|
10
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetExchangeRate} for more detailed documentation.
|
|
10
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetExchangeRate} for more detailed documentation.
|
|
11
11
|
*
|
|
12
12
|
* @param toCurrency - The target currency code (e.g., 'EUR', 'GBP', 'JPY').
|
|
13
13
|
* If 'USD' is provided, returns 1 as the conversion rate.
|
|
@@ -12,7 +12,7 @@ const useAPIClient_js_1 = require("./useAPIClient.js");
|
|
|
12
12
|
* Used throughout the wallet widget and checkout components to display fiat values
|
|
13
13
|
* for tokens and NFTs.
|
|
14
14
|
*
|
|
15
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetExchangeRate} for more detailed documentation.
|
|
15
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetExchangeRate} for more detailed documentation.
|
|
16
16
|
*
|
|
17
17
|
* @param toCurrency - The target currency code (e.g., 'EUR', 'GBP', 'JPY').
|
|
18
18
|
* If 'USD' is provided, returns 1 as the conversion rate.
|
|
@@ -4,7 +4,6 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
4
4
|
*
|
|
5
5
|
* This hook uses React Query to fetch and cache the version of a contract.
|
|
6
6
|
*
|
|
7
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useFindVersion} for more detailed documentation.
|
|
8
7
|
*
|
|
9
8
|
* @param args - The arguments for the hook:
|
|
10
9
|
* - uid: The UID of the contract
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFindVersion.d.ts","sourceRoot":"","sources":["../../../../src/hooks/Builder/useFindVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD
|
|
1
|
+
{"version":3,"file":"useFindVersion.d.ts","sourceRoot":"","sources":["../../../../src/hooks/Builder/useFindVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,UAAU,eAAe;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,eAAe,EAAE,UAAU,YAAY,+DAkB3E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFindVersion.js","sourceRoot":"","sources":["../../../../src/hooks/Builder/useFindVersion.ts"],"names":[],"mappings":";;;AAAA,uDAAgD;AAEhD,qDAAqD;AAErD,kDAA2C;
|
|
1
|
+
{"version":3,"file":"useFindVersion.js","sourceRoot":"","sources":["../../../../src/hooks/Builder/useFindVersion.ts"],"names":[],"mappings":";;;AAAA,uDAAgD;AAEhD,qDAAqD;AAErD,kDAA2C;AA8BpC,MAAM,cAAc,GAAG,CAAC,IAAqB,EAAE,OAAsB,EAAE,EAAE;IAC9E,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,IAAA,wBAAS,GAAE,CAAA;IAE7C,OAAO,IAAA,sBAAQ,EAAC;QACd,QAAQ,EAAE,CAAC,yBAAU,CAAC,cAAc,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC;QACnE,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,GAAG,CAAC,UAAU,kCAAkC,EAAE;gBAC3E,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,gBAAgB,EAAE;gBACjF,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;aACzD,CAAC,CAAA;YACF,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAA;YAC7B,OAAO,IAAI,CAAA;QACb,CAAC;QACD,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,KAAK;QAC9B,SAAS,EAAE,mBAAI,CAAC,SAAS,GAAG,EAAE;QAC9B,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,QAAQ;KACzD,CAAC,CAAA;AACJ,CAAC,CAAA;AAlBY,QAAA,cAAc,kBAkB1B"}
|
|
@@ -14,7 +14,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
14
14
|
* - Transaction data generation for the swap
|
|
15
15
|
* - Error handling for failed API calls
|
|
16
16
|
*
|
|
17
|
-
* Go to {@link https://docs.sequence.xyz/sdk/web/hooks/useGetSwapQuote} for more detailed documentation.
|
|
17
|
+
* Go to {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSwapQuote} for more detailed documentation.
|
|
18
18
|
*
|
|
19
19
|
* @param getSwapQuoteArgs - Configuration object for the swap quote query:
|
|
20
20
|
* - params: The parameters for the swap quote query
|
|
@@ -19,7 +19,7 @@ const useAPIClient_js_1 = require("../API/useAPIClient.js");
|
|
|
19
19
|
* - Transaction data generation for the swap
|
|
20
20
|
* - Error handling for failed API calls
|
|
21
21
|
*
|
|
22
|
-
* Go to {@link https://docs.sequence.xyz/sdk/web/hooks/useGetSwapQuote} for more detailed documentation.
|
|
22
|
+
* Go to {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSwapQuote} for more detailed documentation.
|
|
23
23
|
*
|
|
24
24
|
* @param getSwapQuoteArgs - Configuration object for the swap quote query:
|
|
25
25
|
* - params: The parameters for the swap quote query
|
|
@@ -20,7 +20,7 @@ export interface UseGetSwapRoutesArgs {
|
|
|
20
20
|
* This hook uses React Query to fetch and cache swap routes from the Sequence API.
|
|
21
21
|
* Stale time is set to one hour by default
|
|
22
22
|
*
|
|
23
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetSwapRoutes} for more detailed documentation.
|
|
23
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSwapRoutes} for more detailed documentation.
|
|
24
24
|
*
|
|
25
25
|
* @param args - Arguments for fetching swap routes:
|
|
26
26
|
* - walletAddress: The address of the user's wallet
|
|
@@ -25,7 +25,7 @@ const getSwapRoutes = async (apiClient, args) => {
|
|
|
25
25
|
* This hook uses React Query to fetch and cache swap routes from the Sequence API.
|
|
26
26
|
* Stale time is set to one hour by default
|
|
27
27
|
*
|
|
28
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetSwapRoutes} for more detailed documentation.
|
|
28
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSwapRoutes} for more detailed documentation.
|
|
29
29
|
*
|
|
30
30
|
* @param args - Arguments for fetching swap routes:
|
|
31
31
|
* - walletAddress: The address of the user's wallet
|
|
@@ -16,7 +16,7 @@ export interface UseGetTransactionHistoryArgs extends GetTransactionHistoryArgs
|
|
|
16
16
|
* It can filter transactions by contract address and token ID, making it useful for both
|
|
17
17
|
* general account history and specific asset history views.
|
|
18
18
|
*
|
|
19
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTransactionHistory} for more detailed documentation.
|
|
19
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTransactionHistory} for more detailed documentation.
|
|
20
20
|
*
|
|
21
21
|
* @param args - Configuration object for the transaction history query {@link GetTransactionHistoryArgs}
|
|
22
22
|
*
|
|
@@ -56,7 +56,7 @@ const getTransactionHistory = async (indexerClient, { accountAddresses, contract
|
|
|
56
56
|
* It can filter transactions by contract address and token ID, making it useful for both
|
|
57
57
|
* general account history and specific asset history views.
|
|
58
58
|
*
|
|
59
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTransactionHistory} for more detailed documentation.
|
|
59
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTransactionHistory} for more detailed documentation.
|
|
60
60
|
*
|
|
61
61
|
* @param args - Configuration object for the transaction history query {@link GetTransactionHistoryArgs}
|
|
62
62
|
*
|
|
@@ -31,7 +31,7 @@ export interface GetTransactionHistorySummaryArgs {
|
|
|
31
31
|
* - metaTxnID: Optional meta transaction ID
|
|
32
32
|
* - Other standard React Query properties (isLoading, isError, etc.)
|
|
33
33
|
*
|
|
34
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTransactionHistorySummary} for more detailed documentation.
|
|
34
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTransactionHistorySummary} for more detailed documentation.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```tsx
|
|
@@ -55,7 +55,7 @@ const getTransactionHistorySummary = async (indexerClients, { accountAddresses }
|
|
|
55
55
|
* - metaTxnID: Optional meta transaction ID
|
|
56
56
|
* - Other standard React Query properties (isLoading, isError, etc.)
|
|
57
57
|
*
|
|
58
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTransactionHistorySummary} for more detailed documentation.
|
|
58
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTransactionHistorySummary} for more detailed documentation.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
61
|
* ```tsx
|
|
@@ -69,7 +69,6 @@ export declare const useIndexerClient: (chainId: ChainId) => SequenceIndexer;
|
|
|
69
69
|
*
|
|
70
70
|
* @throws Error if an indexer client cannot be created for any of the specified chain IDs
|
|
71
71
|
*
|
|
72
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useIndexerClients} for more detailed documentation.
|
|
73
72
|
*
|
|
74
73
|
* @example
|
|
75
74
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIndexerClient.d.ts","sourceRoot":"","sources":["../../../../src/hooks/Indexer/useIndexerClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAY,MAAM,qBAAqB,CAAA;AAOvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,oBAqBhD,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"useIndexerClient.d.ts","sourceRoot":"","sources":["../../../../src/hooks/Indexer/useIndexerClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAY,MAAM,qBAAqB,CAAA;AAOvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,oBAqBhD,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,EAAE,kCA2BnD,CAAA"}
|
|
@@ -92,7 +92,6 @@ exports.useIndexerClient = useIndexerClient;
|
|
|
92
92
|
*
|
|
93
93
|
* @throws Error if an indexer client cannot be created for any of the specified chain IDs
|
|
94
94
|
*
|
|
95
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useIndexerClients} for more detailed documentation.
|
|
96
95
|
*
|
|
97
96
|
* @example
|
|
98
97
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIndexerClient.js","sourceRoot":"","sources":["../../../../src/hooks/Indexer/useIndexerClient.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AACrD,iDAAuD;AACvD,iCAA+B;AAE/B,2DAAoD;AACpD,kDAA2C;AAC3C,oDAA6C;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACI,MAAM,gBAAgB,GAAG,CAAC,OAAgB,EAAE,EAAE;IACnD,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,IAAA,wBAAS,GAAE,CAAA;IAElD,MAAM,cAAc,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAClC,OAAO,IAAI,GAAG,EAA4B,CAAA;IAC5C,CAAC,EAAE,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IAE3B,MAAM,OAAO,GAAG,IAAA,0BAAU,EAAC,OAAO,CAAC,CAAA;IACnC,MAAM,UAAU,GAAG,IAAA,wBAAS,EAAC,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IAErE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;QACjC,cAAc,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,yBAAe,CAAC,UAAU,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IACrF,CAAC;IAED,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAEjD,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,yCAAyC,OAAO,qCAAqC,CAAC,CAAA;IACxG,CAAC;IAED,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA;AArBY,QAAA,gBAAgB,oBAqB5B;AAED
|
|
1
|
+
{"version":3,"file":"useIndexerClient.js","sourceRoot":"","sources":["../../../../src/hooks/Indexer/useIndexerClient.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AACrD,iDAAuD;AACvD,iCAA+B;AAE/B,2DAAoD;AACpD,kDAA2C;AAC3C,oDAA6C;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACI,MAAM,gBAAgB,GAAG,CAAC,OAAgB,EAAE,EAAE;IACnD,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,IAAA,wBAAS,GAAE,CAAA;IAElD,MAAM,cAAc,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAClC,OAAO,IAAI,GAAG,EAA4B,CAAA;IAC5C,CAAC,EAAE,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IAE3B,MAAM,OAAO,GAAG,IAAA,0BAAU,EAAC,OAAO,CAAC,CAAA;IACnC,MAAM,UAAU,GAAG,IAAA,wBAAS,EAAC,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IAErE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;QACjC,cAAc,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,yBAAe,CAAC,UAAU,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IACrF,CAAC;IAED,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAEjD,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,yCAAyC,OAAO,qCAAqC,CAAC,CAAA;IACxG,CAAC;IAED,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA;AArBY,QAAA,gBAAgB,oBAqB5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACI,MAAM,iBAAiB,GAAG,CAAC,QAAkB,EAAE,EAAE;IACtD,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,IAAA,wBAAS,GAAE,CAAA;IAElD,MAAM,cAAc,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QAClC,OAAO,IAAI,GAAG,EAA4B,CAAA;IAC5C,CAAC,EAAE,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IAE3B,MAAM,MAAM,GAAG,IAAI,GAAG,EAA4B,CAAA;IAElD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,OAAO,GAAG,kBAAQ,CAAC,OAAkB,CAAC,CAAA;QAC5C,MAAM,UAAU,GAAG,IAAA,wBAAS,EAAC,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;QAErE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACjC,cAAc,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,yBAAe,CAAC,UAAU,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;QACrF,CAAC;QAED,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QAEjD,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,yCAAyC,OAAO,qCAAqC,CAAC,CAAA;QACxG,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAA;IACpC,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC,CAAA;AA3BY,QAAA,iBAAiB,qBA2B7B"}
|
|
@@ -11,7 +11,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
11
11
|
*
|
|
12
12
|
* @returns Query result containing an array of TokenBalance objects
|
|
13
13
|
*
|
|
14
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetNativeTokenBalance} for more detailed documentation.
|
|
14
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetNativeTokenBalance} for more detailed documentation.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```tsx
|
|
@@ -21,7 +21,7 @@ const getNativeTokenBalance = async (indexerGatewayClient, args) => {
|
|
|
21
21
|
*
|
|
22
22
|
* @returns Query result containing an array of TokenBalance objects
|
|
23
23
|
*
|
|
24
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetNativeTokenBalance} for more detailed documentation.
|
|
24
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetNativeTokenBalance} for more detailed documentation.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
27
|
* ```tsx
|
|
@@ -19,15 +19,15 @@ export interface GetSingleTokenBalanceArgs {
|
|
|
19
19
|
*
|
|
20
20
|
* @returns Query result containing the token balance
|
|
21
21
|
*
|
|
22
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/
|
|
22
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSingleTokenBalance} for more detailed documentation.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```tsx
|
|
26
|
-
* import {
|
|
26
|
+
* import { useGetSingleTokenBalance, ZERO_ADDRESS } from '@0xsequence/hooks'
|
|
27
27
|
*
|
|
28
28
|
* // Fetch native ETH balance
|
|
29
29
|
* function NativeBalance() {
|
|
30
|
-
* const { data: ethBalance } =
|
|
30
|
+
* const { data: ethBalance } = useGetSingleTokenBalance({
|
|
31
31
|
* chainId: 1,
|
|
32
32
|
* accountAddress: '0x123...',
|
|
33
33
|
* contractAddress: ZERO_ADDRESS
|
|
@@ -37,7 +37,7 @@ export interface GetSingleTokenBalanceArgs {
|
|
|
37
37
|
*
|
|
38
38
|
* // Fetch USDC balance
|
|
39
39
|
* function TokenBalance() {
|
|
40
|
-
* const { data: usdcBalance } =
|
|
40
|
+
* const { data: usdcBalance } = useGetSingleTokenBalance({
|
|
41
41
|
* chainId: 1,
|
|
42
42
|
* accountAddress: '0x123...',
|
|
43
43
|
* contractAddress: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' // USDC
|
|
@@ -41,15 +41,15 @@ const getSingleTokenBalance = async (args, indexerGatewayClient) => {
|
|
|
41
41
|
*
|
|
42
42
|
* @returns Query result containing the token balance
|
|
43
43
|
*
|
|
44
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/
|
|
44
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSingleTokenBalance} for more detailed documentation.
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* ```tsx
|
|
48
|
-
* import {
|
|
48
|
+
* import { useGetSingleTokenBalance, ZERO_ADDRESS } from '@0xsequence/hooks'
|
|
49
49
|
*
|
|
50
50
|
* // Fetch native ETH balance
|
|
51
51
|
* function NativeBalance() {
|
|
52
|
-
* const { data: ethBalance } =
|
|
52
|
+
* const { data: ethBalance } = useGetSingleTokenBalance({
|
|
53
53
|
* chainId: 1,
|
|
54
54
|
* accountAddress: '0x123...',
|
|
55
55
|
* contractAddress: ZERO_ADDRESS
|
|
@@ -59,7 +59,7 @@ const getSingleTokenBalance = async (args, indexerGatewayClient) => {
|
|
|
59
59
|
*
|
|
60
60
|
* // Fetch USDC balance
|
|
61
61
|
* function TokenBalance() {
|
|
62
|
-
* const { data: usdcBalance } =
|
|
62
|
+
* const { data: usdcBalance } = useGetSingleTokenBalance({
|
|
63
63
|
* chainId: 1,
|
|
64
64
|
* accountAddress: '0x123...',
|
|
65
65
|
* contractAddress: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' // USDC
|
|
@@ -30,7 +30,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
30
30
|
* - `decimals`: Number of decimals (for ERC20)
|
|
31
31
|
* - `logoURI`: URL of the token logo
|
|
32
32
|
*
|
|
33
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesByContract} for more detailed documentation.
|
|
33
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesByContract} for more detailed documentation.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* ```tsx
|
|
@@ -41,7 +41,7 @@ const getTokenBalancesByContract = async (indexerGatewayClient, args) => {
|
|
|
41
41
|
* - `decimals`: Number of decimals (for ERC20)
|
|
42
42
|
* - `logoURI`: URL of the token logo
|
|
43
43
|
*
|
|
44
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesByContract} for more detailed documentation.
|
|
44
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesByContract} for more detailed documentation.
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* ```tsx
|
|
@@ -50,7 +50,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
50
50
|
* - `image`: Token image URL
|
|
51
51
|
* - `attributes`: Array of token attributes
|
|
52
52
|
*
|
|
53
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesDetails} for more detailed documentation.
|
|
53
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesDetails} for more detailed documentation.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
56
|
* ```tsx
|
|
@@ -74,7 +74,7 @@ const getTokenBalancesDetails = async (indexerGatewayClient, args) => {
|
|
|
74
74
|
* - `image`: Token image URL
|
|
75
75
|
* - `attributes`: Array of token attributes
|
|
76
76
|
*
|
|
77
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesDetails} for more detailed documentation.
|
|
77
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesDetails} for more detailed documentation.
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
80
|
* ```tsx
|
|
@@ -36,7 +36,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
36
36
|
* - `decimals`: Number of decimals
|
|
37
37
|
* - `logoURI`: URL of the token logo
|
|
38
38
|
*
|
|
39
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesSummary} for more detailed documentation.
|
|
39
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesSummary} for more detailed documentation.
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```tsx
|
|
@@ -60,7 +60,7 @@ const getTokenBalancesSummary = async (indexerGatewayClient, args) => {
|
|
|
60
60
|
* - `decimals`: Number of decimals
|
|
61
61
|
* - `logoURI`: URL of the token logo
|
|
62
62
|
*
|
|
63
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesSummary} for more detailed documentation.
|
|
63
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesSummary} for more detailed documentation.
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* ```tsx
|
|
@@ -6,7 +6,7 @@ import { SequenceIndexerGateway } from '@0xsequence/indexer';
|
|
|
6
6
|
*
|
|
7
7
|
* @returns A SequenceIndexerGateway instance
|
|
8
8
|
*
|
|
9
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useIndexerGatewayClient} for more detailed documentation.
|
|
9
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useIndexerGatewayClient} for more detailed documentation.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```tsx
|
|
@@ -11,7 +11,7 @@ const useConfig_js_1 = require("../useConfig.js");
|
|
|
11
11
|
*
|
|
12
12
|
* @returns A SequenceIndexerGateway instance
|
|
13
13
|
*
|
|
14
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useIndexerGatewayClient} for more detailed documentation.
|
|
14
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useIndexerGatewayClient} for more detailed documentation.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```tsx
|
|
@@ -8,7 +8,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
8
8
|
* For native tokens (like ETH, POL), it enriches the response with network-specific
|
|
9
9
|
* information like the native token symbol and network logo.
|
|
10
10
|
*
|
|
11
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetContractInfo} for more detailed documentation.
|
|
11
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetContractInfo} for more detailed documentation.
|
|
12
12
|
*
|
|
13
13
|
* @param getContractInfoArgs - Arguments for fetching contract info
|
|
14
14
|
* @param getContractInfoArgs.chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -13,7 +13,7 @@ const useMetadataClient_js_1 = require("./useMetadataClient.js");
|
|
|
13
13
|
* For native tokens (like ETH, POL), it enriches the response with network-specific
|
|
14
14
|
* information like the native token symbol and network logo.
|
|
15
15
|
*
|
|
16
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetContractInfo} for more detailed documentation.
|
|
16
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetContractInfo} for more detailed documentation.
|
|
17
17
|
*
|
|
18
18
|
* @param getContractInfoArgs - Arguments for fetching contract info
|
|
19
19
|
* @param getContractInfoArgs.chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -9,7 +9,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
9
9
|
* for cross-chain applications. Can fetch any combination of NFTs (ERC721/ERC1155) and
|
|
10
10
|
* tokens (ERC20) across different chains simultaneously.
|
|
11
11
|
*
|
|
12
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetMultipleContractsInfo} for more detailed documentation.
|
|
12
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetMultipleContractsInfo} for more detailed documentation.
|
|
13
13
|
*
|
|
14
14
|
* @param useGetMultipleContractsInfoArgs - Array of contract info arguments
|
|
15
15
|
* @param useGetMultipleContractsInfoArgs[].chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -22,7 +22,7 @@ const getMultipleContractsInfo = async (metadataClient, args) => {
|
|
|
22
22
|
* for cross-chain applications. Can fetch any combination of NFTs (ERC721/ERC1155) and
|
|
23
23
|
* tokens (ERC20) across different chains simultaneously.
|
|
24
24
|
*
|
|
25
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetMultipleContractsInfo} for more detailed documentation.
|
|
25
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetMultipleContractsInfo} for more detailed documentation.
|
|
26
26
|
*
|
|
27
27
|
* @param useGetMultipleContractsInfoArgs - Array of contract info arguments
|
|
28
28
|
* @param useGetMultipleContractsInfoArgs[].chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -9,7 +9,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
9
9
|
* Optimized for batch fetching with automatic chunking of token IDs to respect
|
|
10
10
|
* rate limits (50 tokens per request).
|
|
11
11
|
*
|
|
12
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenMetadata} for more detailed documentation.
|
|
12
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenMetadata} for more detailed documentation.
|
|
13
13
|
*
|
|
14
14
|
* @param getTokenMetadataArgs - Arguments for fetching token metadata
|
|
15
15
|
* @param getTokenMetadataArgs.chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -32,7 +32,7 @@ const getTokenMetadata = async (metadataClient, args, imageProxyUrl) => {
|
|
|
32
32
|
* Optimized for batch fetching with automatic chunking of token IDs to respect
|
|
33
33
|
* rate limits (50 tokens per request).
|
|
34
34
|
*
|
|
35
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenMetadata} for more detailed documentation.
|
|
35
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenMetadata} for more detailed documentation.
|
|
36
36
|
*
|
|
37
37
|
* @param getTokenMetadataArgs - Arguments for fetching token metadata
|
|
38
38
|
* @param getTokenMetadataArgs.chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -14,7 +14,7 @@ import { SequenceMetadata } from '@0xsequence/metadata';
|
|
|
14
14
|
* - {@link useGetContractInfo} for fetching contract information
|
|
15
15
|
* - {@link useGetMultipleContractsInfo} for batch fetching contract information
|
|
16
16
|
*
|
|
17
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useMetadataClient} for more detailed documentation.
|
|
17
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useMetadataClient} for more detailed documentation.
|
|
18
18
|
*
|
|
19
19
|
* @returns A configured instance of SequenceMetadata client
|
|
20
20
|
*
|
|
@@ -19,7 +19,7 @@ const useConfig_js_1 = require("../useConfig.js");
|
|
|
19
19
|
* - {@link useGetContractInfo} for fetching contract information
|
|
20
20
|
* - {@link useGetMultipleContractsInfo} for batch fetching contract information
|
|
21
21
|
*
|
|
22
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useMetadataClient} for more detailed documentation.
|
|
22
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useMetadataClient} for more detailed documentation.
|
|
23
23
|
*
|
|
24
24
|
* @returns A configured instance of SequenceMetadata client
|
|
25
25
|
*
|
|
@@ -15,7 +15,6 @@ import { SequenceAPIClient } from '@0xsequence/api';
|
|
|
15
15
|
* The client instance is memoized based on the project access key, meaning a new
|
|
16
16
|
* instance is only created when the access key changes.
|
|
17
17
|
*
|
|
18
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useAPIClient} for more detailed documentation.
|
|
19
18
|
*
|
|
20
19
|
* @returns {SequenceAPIClient} A configured instance of the Sequence API client
|
|
21
20
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAPIClient.d.ts","sourceRoot":"","sources":["../../../../src/hooks/API/useAPIClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAKnD
|
|
1
|
+
{"version":3,"file":"useAPIClient.d.ts","sourceRoot":"","sources":["../../../../src/hooks/API/useAPIClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAKnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,YAAY,yBAQxB,CAAA"}
|
|
@@ -17,7 +17,6 @@ import { useConfig } from '../useConfig.js';
|
|
|
17
17
|
* The client instance is memoized based on the project access key, meaning a new
|
|
18
18
|
* instance is only created when the access key changes.
|
|
19
19
|
*
|
|
20
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useAPIClient} for more detailed documentation.
|
|
21
20
|
*
|
|
22
21
|
* @returns {SequenceAPIClient} A configured instance of the Sequence API client
|
|
23
22
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAPIClient.js","sourceRoot":"","sources":["../../../../src/hooks/API/useAPIClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C
|
|
1
|
+
{"version":3,"file":"useAPIClient.js","sourceRoot":"","sources":["../../../../src/hooks/API/useAPIClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE;IAC/B,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,SAAS,EAAE,CAAA;IAElD,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE;QAC7B,OAAO,IAAI,iBAAiB,CAAC,GAAG,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAA;IACjE,CAAC,EAAE,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IAE3B,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA"}
|
|
@@ -6,7 +6,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
6
6
|
* This hook uses React Query to fetch and cache token prices from the Sequence API.
|
|
7
7
|
* Prices are automatically refreshed every minute to ensure they stay current.
|
|
8
8
|
*
|
|
9
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetCoinPrices} for more detailed documentation.
|
|
9
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetCoinPrices} for more detailed documentation.
|
|
10
10
|
*
|
|
11
11
|
* @param tokens - Array of tokens to get prices for. Each token must include:
|
|
12
12
|
* - chainId: The chain ID where the token exists
|
|
@@ -22,7 +22,7 @@ const getCoinPrices = async (apiClient, tokens) => {
|
|
|
22
22
|
* This hook uses React Query to fetch and cache token prices from the Sequence API.
|
|
23
23
|
* Prices are automatically refreshed every minute to ensure they stay current.
|
|
24
24
|
*
|
|
25
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetCoinPrices} for more detailed documentation.
|
|
25
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetCoinPrices} for more detailed documentation.
|
|
26
26
|
*
|
|
27
27
|
* @param tokens - Array of tokens to get prices for. Each token must include:
|
|
28
28
|
* - chainId: The chain ID where the token exists
|
|
@@ -8,7 +8,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
8
8
|
* Used in various UI components to display NFT valuations, particularly in collection views
|
|
9
9
|
* and transaction details.
|
|
10
10
|
*
|
|
11
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetCollectiblePrices} for more detailed documentation.
|
|
11
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetCollectiblePrices} for more detailed documentation.
|
|
12
12
|
*
|
|
13
13
|
* @param tokens - Array of tokens to get prices for. Each token must include:
|
|
14
14
|
* - chainId: The chain ID where the NFT exists
|
|
@@ -24,7 +24,7 @@ const getCollectiblePrices = async (apiClient, tokens) => {
|
|
|
24
24
|
* Used in various UI components to display NFT valuations, particularly in collection views
|
|
25
25
|
* and transaction details.
|
|
26
26
|
*
|
|
27
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetCollectiblePrices} for more detailed documentation.
|
|
27
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetCollectiblePrices} for more detailed documentation.
|
|
28
28
|
*
|
|
29
29
|
* @param tokens - Array of tokens to get prices for. Each token must include:
|
|
30
30
|
* - chainId: The chain ID where the NFT exists
|
|
@@ -7,7 +7,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
7
7
|
* Used throughout the wallet widget and checkout components to display fiat values
|
|
8
8
|
* for tokens and NFTs.
|
|
9
9
|
*
|
|
10
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetExchangeRate} for more detailed documentation.
|
|
10
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetExchangeRate} for more detailed documentation.
|
|
11
11
|
*
|
|
12
12
|
* @param toCurrency - The target currency code (e.g., 'EUR', 'GBP', 'JPY').
|
|
13
13
|
* If 'USD' is provided, returns 1 as the conversion rate.
|
|
@@ -9,7 +9,7 @@ import { useAPIClient } from './useAPIClient.js';
|
|
|
9
9
|
* Used throughout the wallet widget and checkout components to display fiat values
|
|
10
10
|
* for tokens and NFTs.
|
|
11
11
|
*
|
|
12
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetExchangeRate} for more detailed documentation.
|
|
12
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetExchangeRate} for more detailed documentation.
|
|
13
13
|
*
|
|
14
14
|
* @param toCurrency - The target currency code (e.g., 'EUR', 'GBP', 'JPY').
|
|
15
15
|
* If 'USD' is provided, returns 1 as the conversion rate.
|
|
@@ -4,7 +4,6 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
4
4
|
*
|
|
5
5
|
* This hook uses React Query to fetch and cache the version of a contract.
|
|
6
6
|
*
|
|
7
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useFindVersion} for more detailed documentation.
|
|
8
7
|
*
|
|
9
8
|
* @param args - The arguments for the hook:
|
|
10
9
|
* - uid: The UID of the contract
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFindVersion.d.ts","sourceRoot":"","sources":["../../../../src/hooks/Builder/useFindVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD
|
|
1
|
+
{"version":3,"file":"useFindVersion.d.ts","sourceRoot":"","sources":["../../../../src/hooks/Builder/useFindVersion.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,UAAU,eAAe;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAED,eAAO,MAAM,cAAc,GAAI,MAAM,eAAe,EAAE,UAAU,YAAY,+DAkB3E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFindVersion.js","sourceRoot":"","sources":["../../../../src/hooks/Builder/useFindVersion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAEhD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"useFindVersion.js","sourceRoot":"","sources":["../../../../src/hooks/Builder/useFindVersion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAEhD,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AA8B3C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAqB,EAAE,OAAsB,EAAE,EAAE;IAC9E,MAAM,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,SAAS,EAAE,CAAA;IAE7C,OAAO,QAAQ,CAAC;QACd,QAAQ,EAAE,CAAC,UAAU,CAAC,cAAc,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC;QACnE,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,GAAG,GAAG,CAAC,UAAU,kCAAkC,EAAE;gBAC3E,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,cAAc,EAAE,gBAAgB,EAAE;gBACjF,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC;aACzD,CAAC,CAAA;YACF,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAA;YAC7B,OAAO,IAAI,CAAA;QACb,CAAC;QACD,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,KAAK;QAC9B,SAAS,EAAE,IAAI,CAAC,SAAS,GAAG,EAAE;QAC9B,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,QAAQ;KACzD,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -14,7 +14,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
14
14
|
* - Transaction data generation for the swap
|
|
15
15
|
* - Error handling for failed API calls
|
|
16
16
|
*
|
|
17
|
-
* Go to {@link https://docs.sequence.xyz/sdk/web/hooks/useGetSwapQuote} for more detailed documentation.
|
|
17
|
+
* Go to {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSwapQuote} for more detailed documentation.
|
|
18
18
|
*
|
|
19
19
|
* @param getSwapQuoteArgs - Configuration object for the swap quote query:
|
|
20
20
|
* - params: The parameters for the swap quote query
|
|
@@ -16,7 +16,7 @@ import { useAPIClient } from '../API/useAPIClient.js';
|
|
|
16
16
|
* - Transaction data generation for the swap
|
|
17
17
|
* - Error handling for failed API calls
|
|
18
18
|
*
|
|
19
|
-
* Go to {@link https://docs.sequence.xyz/sdk/web/hooks/useGetSwapQuote} for more detailed documentation.
|
|
19
|
+
* Go to {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSwapQuote} for more detailed documentation.
|
|
20
20
|
*
|
|
21
21
|
* @param getSwapQuoteArgs - Configuration object for the swap quote query:
|
|
22
22
|
* - params: The parameters for the swap quote query
|
|
@@ -20,7 +20,7 @@ export interface UseGetSwapRoutesArgs {
|
|
|
20
20
|
* This hook uses React Query to fetch and cache swap routes from the Sequence API.
|
|
21
21
|
* Stale time is set to one hour by default
|
|
22
22
|
*
|
|
23
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetSwapRoutes} for more detailed documentation.
|
|
23
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSwapRoutes} for more detailed documentation.
|
|
24
24
|
*
|
|
25
25
|
* @param args - Arguments for fetching swap routes:
|
|
26
26
|
* - walletAddress: The address of the user's wallet
|
|
@@ -22,7 +22,7 @@ const getSwapRoutes = async (apiClient, args) => {
|
|
|
22
22
|
* This hook uses React Query to fetch and cache swap routes from the Sequence API.
|
|
23
23
|
* Stale time is set to one hour by default
|
|
24
24
|
*
|
|
25
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetSwapRoutes} for more detailed documentation.
|
|
25
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSwapRoutes} for more detailed documentation.
|
|
26
26
|
*
|
|
27
27
|
* @param args - Arguments for fetching swap routes:
|
|
28
28
|
* - walletAddress: The address of the user's wallet
|
|
@@ -16,7 +16,7 @@ export interface UseGetTransactionHistoryArgs extends GetTransactionHistoryArgs
|
|
|
16
16
|
* It can filter transactions by contract address and token ID, making it useful for both
|
|
17
17
|
* general account history and specific asset history views.
|
|
18
18
|
*
|
|
19
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTransactionHistory} for more detailed documentation.
|
|
19
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTransactionHistory} for more detailed documentation.
|
|
20
20
|
*
|
|
21
21
|
* @param args - Configuration object for the transaction history query {@link GetTransactionHistoryArgs}
|
|
22
22
|
*
|
|
@@ -53,7 +53,7 @@ const getTransactionHistory = async (indexerClient, { accountAddresses, contract
|
|
|
53
53
|
* It can filter transactions by contract address and token ID, making it useful for both
|
|
54
54
|
* general account history and specific asset history views.
|
|
55
55
|
*
|
|
56
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTransactionHistory} for more detailed documentation.
|
|
56
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTransactionHistory} for more detailed documentation.
|
|
57
57
|
*
|
|
58
58
|
* @param args - Configuration object for the transaction history query {@link GetTransactionHistoryArgs}
|
|
59
59
|
*
|
|
@@ -31,7 +31,7 @@ export interface GetTransactionHistorySummaryArgs {
|
|
|
31
31
|
* - metaTxnID: Optional meta transaction ID
|
|
32
32
|
* - Other standard React Query properties (isLoading, isError, etc.)
|
|
33
33
|
*
|
|
34
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTransactionHistorySummary} for more detailed documentation.
|
|
34
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTransactionHistorySummary} for more detailed documentation.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```tsx
|
|
@@ -52,7 +52,7 @@ const getTransactionHistorySummary = async (indexerClients, { accountAddresses }
|
|
|
52
52
|
* - metaTxnID: Optional meta transaction ID
|
|
53
53
|
* - Other standard React Query properties (isLoading, isError, etc.)
|
|
54
54
|
*
|
|
55
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTransactionHistorySummary} for more detailed documentation.
|
|
55
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTransactionHistorySummary} for more detailed documentation.
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* ```tsx
|
|
@@ -69,7 +69,6 @@ export declare const useIndexerClient: (chainId: ChainId) => SequenceIndexer;
|
|
|
69
69
|
*
|
|
70
70
|
* @throws Error if an indexer client cannot be created for any of the specified chain IDs
|
|
71
71
|
*
|
|
72
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useIndexerClients} for more detailed documentation.
|
|
73
72
|
*
|
|
74
73
|
* @example
|
|
75
74
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIndexerClient.d.ts","sourceRoot":"","sources":["../../../../src/hooks/Indexer/useIndexerClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAY,MAAM,qBAAqB,CAAA;AAOvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,oBAqBhD,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"useIndexerClient.d.ts","sourceRoot":"","sources":["../../../../src/hooks/Indexer/useIndexerClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAY,MAAM,qBAAqB,CAAA;AAOvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,oBAqBhD,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,EAAE,kCA2BnD,CAAA"}
|
|
@@ -88,7 +88,6 @@ export const useIndexerClient = (chainId) => {
|
|
|
88
88
|
*
|
|
89
89
|
* @throws Error if an indexer client cannot be created for any of the specified chain IDs
|
|
90
90
|
*
|
|
91
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useIndexerClients} for more detailed documentation.
|
|
92
91
|
*
|
|
93
92
|
* @example
|
|
94
93
|
* ```typescript
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIndexerClient.js","sourceRoot":"","sources":["../../../../src/hooks/Indexer/useIndexerClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAW,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,OAAgB,EAAE,EAAE;IACnD,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,SAAS,EAAE,CAAA;IAElD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE;QAClC,OAAO,IAAI,GAAG,EAA4B,CAAA;IAC5C,CAAC,EAAE,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IAE3B,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACnC,MAAM,UAAU,GAAG,SAAS,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IAErE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;QACjC,cAAc,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,eAAe,CAAC,UAAU,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IACrF,CAAC;IAED,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAEjD,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,yCAAyC,OAAO,qCAAqC,CAAC,CAAA;IACxG,CAAC;IAED,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"useIndexerClient.js","sourceRoot":"","sources":["../../../../src/hooks/Indexer/useIndexerClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAW,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,OAAgB,EAAE,EAAE;IACnD,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,SAAS,EAAE,CAAA;IAElD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE;QAClC,OAAO,IAAI,GAAG,EAA4B,CAAA;IAC5C,CAAC,EAAE,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IAE3B,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,CAAA;IACnC,MAAM,UAAU,GAAG,SAAS,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IAErE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;QACjC,cAAc,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,eAAe,CAAC,UAAU,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IACrF,CAAC;IAED,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IAEjD,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,yCAAyC,OAAO,qCAAqC,CAAC,CAAA;IACxG,CAAC;IAED,OAAO,aAAa,CAAA;AACtB,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAkB,EAAE,EAAE;IACtD,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,GAAG,SAAS,EAAE,CAAA;IAElD,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE;QAClC,OAAO,IAAI,GAAG,EAA4B,CAAA;IAC5C,CAAC,EAAE,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;IAE3B,MAAM,MAAM,GAAG,IAAI,GAAG,EAA4B,CAAA;IAElD,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAkB,CAAC,CAAA;QAC5C,MAAM,UAAU,GAAG,SAAS,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;QAErE,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACjC,cAAc,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,eAAe,CAAC,UAAU,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC,CAAA;QACrF,CAAC;QAED,MAAM,aAAa,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;QAEjD,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,yCAAyC,OAAO,qCAAqC,CAAC,CAAA;QACxG,CAAC;QAED,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,CAAA;IACpC,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
|
@@ -11,7 +11,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
11
11
|
*
|
|
12
12
|
* @returns Query result containing an array of TokenBalance objects
|
|
13
13
|
*
|
|
14
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetNativeTokenBalance} for more detailed documentation.
|
|
14
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetNativeTokenBalance} for more detailed documentation.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```tsx
|
|
@@ -18,7 +18,7 @@ const getNativeTokenBalance = async (indexerGatewayClient, args) => {
|
|
|
18
18
|
*
|
|
19
19
|
* @returns Query result containing an array of TokenBalance objects
|
|
20
20
|
*
|
|
21
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetNativeTokenBalance} for more detailed documentation.
|
|
21
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetNativeTokenBalance} for more detailed documentation.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* ```tsx
|
|
@@ -19,15 +19,15 @@ export interface GetSingleTokenBalanceArgs {
|
|
|
19
19
|
*
|
|
20
20
|
* @returns Query result containing the token balance
|
|
21
21
|
*
|
|
22
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/
|
|
22
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSingleTokenBalance} for more detailed documentation.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
25
|
* ```tsx
|
|
26
|
-
* import {
|
|
26
|
+
* import { useGetSingleTokenBalance, ZERO_ADDRESS } from '@0xsequence/hooks'
|
|
27
27
|
*
|
|
28
28
|
* // Fetch native ETH balance
|
|
29
29
|
* function NativeBalance() {
|
|
30
|
-
* const { data: ethBalance } =
|
|
30
|
+
* const { data: ethBalance } = useGetSingleTokenBalance({
|
|
31
31
|
* chainId: 1,
|
|
32
32
|
* accountAddress: '0x123...',
|
|
33
33
|
* contractAddress: ZERO_ADDRESS
|
|
@@ -37,7 +37,7 @@ export interface GetSingleTokenBalanceArgs {
|
|
|
37
37
|
*
|
|
38
38
|
* // Fetch USDC balance
|
|
39
39
|
* function TokenBalance() {
|
|
40
|
-
* const { data: usdcBalance } =
|
|
40
|
+
* const { data: usdcBalance } = useGetSingleTokenBalance({
|
|
41
41
|
* chainId: 1,
|
|
42
42
|
* accountAddress: '0x123...',
|
|
43
43
|
* contractAddress: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' // USDC
|
|
@@ -38,15 +38,15 @@ const getSingleTokenBalance = async (args, indexerGatewayClient) => {
|
|
|
38
38
|
*
|
|
39
39
|
* @returns Query result containing the token balance
|
|
40
40
|
*
|
|
41
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/
|
|
41
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetSingleTokenBalance} for more detailed documentation.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* ```tsx
|
|
45
|
-
* import {
|
|
45
|
+
* import { useGetSingleTokenBalance, ZERO_ADDRESS } from '@0xsequence/hooks'
|
|
46
46
|
*
|
|
47
47
|
* // Fetch native ETH balance
|
|
48
48
|
* function NativeBalance() {
|
|
49
|
-
* const { data: ethBalance } =
|
|
49
|
+
* const { data: ethBalance } = useGetSingleTokenBalance({
|
|
50
50
|
* chainId: 1,
|
|
51
51
|
* accountAddress: '0x123...',
|
|
52
52
|
* contractAddress: ZERO_ADDRESS
|
|
@@ -56,7 +56,7 @@ const getSingleTokenBalance = async (args, indexerGatewayClient) => {
|
|
|
56
56
|
*
|
|
57
57
|
* // Fetch USDC balance
|
|
58
58
|
* function TokenBalance() {
|
|
59
|
-
* const { data: usdcBalance } =
|
|
59
|
+
* const { data: usdcBalance } = useGetSingleTokenBalance({
|
|
60
60
|
* chainId: 1,
|
|
61
61
|
* accountAddress: '0x123...',
|
|
62
62
|
* contractAddress: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' // USDC
|
|
@@ -30,7 +30,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
30
30
|
* - `decimals`: Number of decimals (for ERC20)
|
|
31
31
|
* - `logoURI`: URL of the token logo
|
|
32
32
|
*
|
|
33
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesByContract} for more detailed documentation.
|
|
33
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesByContract} for more detailed documentation.
|
|
34
34
|
*
|
|
35
35
|
* @example
|
|
36
36
|
* ```tsx
|
|
@@ -38,7 +38,7 @@ const getTokenBalancesByContract = async (indexerGatewayClient, args) => {
|
|
|
38
38
|
* - `decimals`: Number of decimals (for ERC20)
|
|
39
39
|
* - `logoURI`: URL of the token logo
|
|
40
40
|
*
|
|
41
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesByContract} for more detailed documentation.
|
|
41
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesByContract} for more detailed documentation.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* ```tsx
|
|
@@ -50,7 +50,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
50
50
|
* - `image`: Token image URL
|
|
51
51
|
* - `attributes`: Array of token attributes
|
|
52
52
|
*
|
|
53
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesDetails} for more detailed documentation.
|
|
53
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesDetails} for more detailed documentation.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
56
|
* ```tsx
|
|
@@ -71,7 +71,7 @@ const getTokenBalancesDetails = async (indexerGatewayClient, args) => {
|
|
|
71
71
|
* - `image`: Token image URL
|
|
72
72
|
* - `attributes`: Array of token attributes
|
|
73
73
|
*
|
|
74
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesDetails} for more detailed documentation.
|
|
74
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesDetails} for more detailed documentation.
|
|
75
75
|
*
|
|
76
76
|
* @example
|
|
77
77
|
* ```tsx
|
|
@@ -36,7 +36,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
36
36
|
* - `decimals`: Number of decimals
|
|
37
37
|
* - `logoURI`: URL of the token logo
|
|
38
38
|
*
|
|
39
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesSummary} for more detailed documentation.
|
|
39
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesSummary} for more detailed documentation.
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```tsx
|
|
@@ -57,7 +57,7 @@ const getTokenBalancesSummary = async (indexerGatewayClient, args) => {
|
|
|
57
57
|
* - `decimals`: Number of decimals
|
|
58
58
|
* - `logoURI`: URL of the token logo
|
|
59
59
|
*
|
|
60
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenBalancesSummary} for more detailed documentation.
|
|
60
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenBalancesSummary} for more detailed documentation.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* ```tsx
|
|
@@ -6,7 +6,7 @@ import { SequenceIndexerGateway } from '@0xsequence/indexer';
|
|
|
6
6
|
*
|
|
7
7
|
* @returns A SequenceIndexerGateway instance
|
|
8
8
|
*
|
|
9
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useIndexerGatewayClient} for more detailed documentation.
|
|
9
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useIndexerGatewayClient} for more detailed documentation.
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```tsx
|
|
@@ -8,7 +8,7 @@ import { useConfig } from '../useConfig.js';
|
|
|
8
8
|
*
|
|
9
9
|
* @returns A SequenceIndexerGateway instance
|
|
10
10
|
*
|
|
11
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useIndexerGatewayClient} for more detailed documentation.
|
|
11
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useIndexerGatewayClient} for more detailed documentation.
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```tsx
|
|
@@ -8,7 +8,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
8
8
|
* For native tokens (like ETH, POL), it enriches the response with network-specific
|
|
9
9
|
* information like the native token symbol and network logo.
|
|
10
10
|
*
|
|
11
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetContractInfo} for more detailed documentation.
|
|
11
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetContractInfo} for more detailed documentation.
|
|
12
12
|
*
|
|
13
13
|
* @param getContractInfoArgs - Arguments for fetching contract info
|
|
14
14
|
* @param getContractInfoArgs.chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -10,7 +10,7 @@ import { useMetadataClient } from './useMetadataClient.js';
|
|
|
10
10
|
* For native tokens (like ETH, POL), it enriches the response with network-specific
|
|
11
11
|
* information like the native token symbol and network logo.
|
|
12
12
|
*
|
|
13
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetContractInfo} for more detailed documentation.
|
|
13
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetContractInfo} for more detailed documentation.
|
|
14
14
|
*
|
|
15
15
|
* @param getContractInfoArgs - Arguments for fetching contract info
|
|
16
16
|
* @param getContractInfoArgs.chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -9,7 +9,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
9
9
|
* for cross-chain applications. Can fetch any combination of NFTs (ERC721/ERC1155) and
|
|
10
10
|
* tokens (ERC20) across different chains simultaneously.
|
|
11
11
|
*
|
|
12
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetMultipleContractsInfo} for more detailed documentation.
|
|
12
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetMultipleContractsInfo} for more detailed documentation.
|
|
13
13
|
*
|
|
14
14
|
* @param useGetMultipleContractsInfoArgs - Array of contract info arguments
|
|
15
15
|
* @param useGetMultipleContractsInfoArgs[].chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -19,7 +19,7 @@ const getMultipleContractsInfo = async (metadataClient, args) => {
|
|
|
19
19
|
* for cross-chain applications. Can fetch any combination of NFTs (ERC721/ERC1155) and
|
|
20
20
|
* tokens (ERC20) across different chains simultaneously.
|
|
21
21
|
*
|
|
22
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetMultipleContractsInfo} for more detailed documentation.
|
|
22
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetMultipleContractsInfo} for more detailed documentation.
|
|
23
23
|
*
|
|
24
24
|
* @param useGetMultipleContractsInfoArgs - Array of contract info arguments
|
|
25
25
|
* @param useGetMultipleContractsInfoArgs[].chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -9,7 +9,7 @@ import type { HooksOptions } from '../../types/hooks.js';
|
|
|
9
9
|
* Optimized for batch fetching with automatic chunking of token IDs to respect
|
|
10
10
|
* rate limits (50 tokens per request).
|
|
11
11
|
*
|
|
12
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenMetadata} for more detailed documentation.
|
|
12
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenMetadata} for more detailed documentation.
|
|
13
13
|
*
|
|
14
14
|
* @param getTokenMetadataArgs - Arguments for fetching token metadata
|
|
15
15
|
* @param getTokenMetadataArgs.chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -29,7 +29,7 @@ const getTokenMetadata = async (metadataClient, args, imageProxyUrl) => {
|
|
|
29
29
|
* Optimized for batch fetching with automatic chunking of token IDs to respect
|
|
30
30
|
* rate limits (50 tokens per request).
|
|
31
31
|
*
|
|
32
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useGetTokenMetadata} for more detailed documentation.
|
|
32
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useGetTokenMetadata} for more detailed documentation.
|
|
33
33
|
*
|
|
34
34
|
* @param getTokenMetadataArgs - Arguments for fetching token metadata
|
|
35
35
|
* @param getTokenMetadataArgs.chainID - Chain ID as string (e.g., "1" for Ethereum mainnet)
|
|
@@ -14,7 +14,7 @@ import { SequenceMetadata } from '@0xsequence/metadata';
|
|
|
14
14
|
* - {@link useGetContractInfo} for fetching contract information
|
|
15
15
|
* - {@link useGetMultipleContractsInfo} for batch fetching contract information
|
|
16
16
|
*
|
|
17
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useMetadataClient} for more detailed documentation.
|
|
17
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useMetadataClient} for more detailed documentation.
|
|
18
18
|
*
|
|
19
19
|
* @returns A configured instance of SequenceMetadata client
|
|
20
20
|
*
|
|
@@ -16,7 +16,7 @@ import { useConfig } from '../useConfig.js';
|
|
|
16
16
|
* - {@link useGetContractInfo} for fetching contract information
|
|
17
17
|
* - {@link useGetMultipleContractsInfo} for batch fetching contract information
|
|
18
18
|
*
|
|
19
|
-
* @see {@link https://docs.sequence.xyz/sdk/web/hooks/useMetadataClient} for more detailed documentation.
|
|
19
|
+
* @see {@link https://docs.sequence.xyz/sdk/web/hooks-sdk/hooks/useMetadataClient} for more detailed documentation.
|
|
20
20
|
*
|
|
21
21
|
* @returns A configured instance of SequenceMetadata client
|
|
22
22
|
*
|
package/package.json
CHANGED