@1001-digital/components.evm 2.1.3 → 2.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1001-digital/components.evm",
3
- "version": "2.1.3",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -21,7 +21,7 @@
21
21
  "@wagmi/vue": ">=0.5.0",
22
22
  "viem": ">=2.0.0",
23
23
  "vue": "^3.5.0",
24
- "@1001-digital/components": "^2.0.5"
24
+ "@1001-digital/components": "^2.0.7"
25
25
  },
26
26
  "dependencies": {
27
27
  "@1001-digital/dweb-fetch": "^0.1.6",
@@ -20,15 +20,15 @@ interface UseEnsOptions {
20
20
  async function resolve(
21
21
  identifier: string,
22
22
  strategies: EnsMode[],
23
- indexerUrls: string[],
23
+ indexers: string[],
24
24
  wagmi: Config,
25
25
  chainKeys: string[],
26
26
  ): Promise<EnsProfile> {
27
27
  for (const strategy of strategies) {
28
28
  try {
29
29
  if (strategy === 'indexer') {
30
- if (!indexerUrls.length) continue
31
- return await fetchEnsFromIndexer(identifier, indexerUrls)
30
+ if (!indexers.length) continue
31
+ return await fetchEnsFromIndexer(identifier, indexers)
32
32
  }
33
33
 
34
34
  if (strategy === 'chain') {
@@ -56,7 +56,7 @@ function useEnsBase(
56
56
  const mode = computed<EnsMode>(
57
57
  () => toValue(options.mode) || evmConfig.ens?.mode || 'indexer',
58
58
  )
59
- const indexerUrls = computed(() => evmConfig.ens?.indexerUrls || [])
59
+ const indexers = computed(() => evmConfig.ens?.indexers || [])
60
60
  const cacheKey = computed(() => `ens-${tier}-${toValue(identifier)}`)
61
61
 
62
62
  const data: Ref<EnsProfile | null | undefined> = ref(
@@ -85,7 +85,7 @@ function useEnsBase(
85
85
  pending.value = true
86
86
  try {
87
87
  data.value = await ensCache.fetch(cacheKey.value, () =>
88
- resolve(id, strategies, indexerUrls.value, config, chainKeys),
88
+ resolve(id, strategies, indexers.value, config, chainKeys),
89
89
  )
90
90
  } catch {
91
91
  data.value = null
package/src/config.ts CHANGED
@@ -11,7 +11,7 @@ export interface EvmConfig {
11
11
  chains: Record<string, EvmChainConfig>
12
12
  ens?: {
13
13
  mode?: 'indexer' | 'chain'
14
- indexerUrls?: string[]
14
+ indexers?: string[]
15
15
  }
16
16
  ipfsGateway?: string
17
17
  arweaveGateway?: string