@thenamespace/ens-components 0.35.0 → 0.36.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 +9 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
57297
|
-
|
|
57298
|
-
|
|
57299
|
-
|
|
57300
|
-
|
|
57301
|
-
|
|
57302
|
-
|
|
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
|
|
61699
|
+
isTestnet,
|
|
61706
61700
|
onCancel,
|
|
61707
61701
|
onSuccess,
|
|
61708
61702
|
onSubnameMinted,
|