@thenamespace/ens-components 0.35.0 → 0.37.0

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/index.js CHANGED
@@ -57288,25 +57288,19 @@ const LIST_MANAGER_API = "https://list-manager.namespace.ninja";
57288
57288
  const LIST_MANAGER_TESTNET_API = "https://staging.list-manager.namespace.ninja";
57289
57289
  const useMintManager = ({ isTestnet }) => {
57290
57290
  const mintClient = useMemo(() => {
57291
+ console.info(`Creating a mint clinet, testnet: ${isTestnet}`);
57291
57292
  return distExports$1.createMintClient({
57292
57293
  cursomRpcUrls: {},
57293
57294
  isTestnet: isTestnet || false
57294
57295
  });
57295
57296
  }, [isTestnet]);
57296
- const getListManagerApi = useCallback(() => {
57297
- return isTestnet ? LIST_MANAGER_TESTNET_API : LIST_MANAGER_API;
57298
- }, [isTestnet]);
57299
- const getListingNetwork = useCallback(() => {
57300
- return isTestnet ? ListingNetwork.Sepolia : ListingNetwork.Mainnet;
57301
- }, [isTestnet]);
57302
- const getListingDetails = useCallback(
57303
- async (name) => {
57304
- return fetch(
57305
- `${getListManagerApi()}/api/v1/listing/network/${getListingNetwork()}/name/${name}`
57306
- ).then((res) => res.json());
57307
- },
57308
- [getListManagerApi, getListingNetwork, isTestnet]
57309
- );
57297
+ const getListingDetails = async (name) => {
57298
+ const listManagerApi = isTestnet ? LIST_MANAGER_TESTNET_API : LIST_MANAGER_API;
57299
+ const listingNetwork = isTestnet ? ListingNetwork.Sepolia : ListingNetwork.Mainnet;
57300
+ return fetch(
57301
+ `${listManagerApi}/api/v1/listing/network/${listingNetwork}/name/${name}`
57302
+ ).then((res) => res.json());
57303
+ };
57310
57304
  return {
57311
57305
  mintClient,
57312
57306
  getListingDetails
@@ -61702,7 +61696,7 @@ const MIN_ENS_LEN$1 = 1;
61702
61696
  const SubnameMintForm = ({
61703
61697
  parentName,
61704
61698
  label,
61705
- isTestnet = false,
61699
+ isTestnet,
61706
61700
  onCancel,
61707
61701
  onSuccess,
61708
61702
  onSubnameMinted,
@@ -61855,7 +61849,8 @@ const SubnameMintFormContent = ({
61855
61849
  const details = await mintClient.getMintDetails({
61856
61850
  minterAddress: minter,
61857
61851
  parentName: parentNameToCheck,
61858
- label: labelToCheck
61852
+ label: labelToCheck,
61853
+ isTestnet
61859
61854
  });
61860
61855
  setMintDetails({ isChecking: false, details });
61861
61856
  };