import { queryClient } from '../commands/_app.js';
import { fetchSuperchainRegistryAddresses, SUPERCHAIN_REGISTRY_ADDRESSES_URL, } from '../util/fetchSuperchainRegistryAddresses.js';
const getQueryParams = (chainListURL) => {
    return {
        queryKey: ['superchainRegistryAddresses', chainListURL],
        queryFn: () => fetchSuperchainRegistryAddresses(SUPERCHAIN_REGISTRY_ADDRESSES_URL),
    };
};
export const querySuperchainRegistryAddresses = async (addressesUrl = SUPERCHAIN_REGISTRY_ADDRESSES_URL) => {
    return queryClient.fetchQuery(getQueryParams(addressesUrl));
};
