@visualizevalue/mint-app-base 0.1.9 → 0.1.10
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/app/plugins/2.wagmi.ts +21 -18
- package/nuxt.config.ts +5 -5
- package/package.json +1 -1
package/app/plugins/2.wagmi.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VueQueryPlugin } from '@tanstack/vue-query'
|
|
2
|
-
import { http, cookieStorage, createConfig, createStorage, WagmiPlugin, fallback, type Config } from '@wagmi/vue'
|
|
2
|
+
import { http, cookieStorage, createConfig, createStorage, WagmiPlugin, fallback, type Config, type CreateConnectorFn } from '@wagmi/vue'
|
|
3
3
|
import { mainnet, sepolia, holesky, localhost } from '@wagmi/vue/chains'
|
|
4
4
|
import { coinbaseWallet, injected, metaMask, walletConnect } from '@wagmi/vue/connectors'
|
|
5
5
|
import type { CustomTransport, Transport } from 'viem'
|
|
@@ -7,6 +7,25 @@ import type { CustomTransport, Transport } from 'viem'
|
|
|
7
7
|
export default defineNuxtPlugin(nuxtApp => {
|
|
8
8
|
const title = nuxtApp.$config.public.title || 'Mint'
|
|
9
9
|
|
|
10
|
+
const connectors: CreateConnectorFn[] = [
|
|
11
|
+
injected(),
|
|
12
|
+
coinbaseWallet({
|
|
13
|
+
appName: title,
|
|
14
|
+
appLogoUrl: '',
|
|
15
|
+
}),
|
|
16
|
+
metaMask({
|
|
17
|
+
dappMetadata: {
|
|
18
|
+
name: title,
|
|
19
|
+
iconUrl: '',
|
|
20
|
+
url: '',
|
|
21
|
+
}
|
|
22
|
+
}),
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
if (nuxtApp.$config.public.walletConnectProjectId) connectors.push(walletConnect({
|
|
26
|
+
projectId: nuxtApp.$config.public.walletConnectProjectId,
|
|
27
|
+
}))
|
|
28
|
+
|
|
10
29
|
const transportDefinitions: CustomTransport|Transport[] = []
|
|
11
30
|
|
|
12
31
|
if (nuxtApp.$config.public.rpc1) transportDefinitions.push(http(nuxtApp.$config.public.rpc1 as string))
|
|
@@ -21,23 +40,7 @@ export default defineNuxtPlugin(nuxtApp => {
|
|
|
21
40
|
batch: {
|
|
22
41
|
multicall: true,
|
|
23
42
|
},
|
|
24
|
-
connectors
|
|
25
|
-
injected(),
|
|
26
|
-
walletConnect({
|
|
27
|
-
projectId: nuxtApp.$config.public.walletConnectProjectId,
|
|
28
|
-
}),
|
|
29
|
-
coinbaseWallet({
|
|
30
|
-
appName: title,
|
|
31
|
-
appLogoUrl: '',
|
|
32
|
-
}),
|
|
33
|
-
metaMask({
|
|
34
|
-
dappMetadata: {
|
|
35
|
-
name: title,
|
|
36
|
-
iconUrl: '',
|
|
37
|
-
url: '',
|
|
38
|
-
}
|
|
39
|
-
}),
|
|
40
|
-
],
|
|
43
|
+
connectors,
|
|
41
44
|
storage: createStorage({
|
|
42
45
|
storage: cookieStorage,
|
|
43
46
|
}),
|
package/nuxt.config.ts
CHANGED
|
@@ -12,15 +12,15 @@ export default defineNuxtConfig({
|
|
|
12
12
|
public: {
|
|
13
13
|
title: 'Mint',
|
|
14
14
|
description: 'To mint is a human right.',
|
|
15
|
-
blockExplorer: 'https://etherscan.io',
|
|
15
|
+
blockExplorer: 'https://sepolia.etherscan.io',
|
|
16
16
|
creatorAddress: '',
|
|
17
|
-
factoryAddress: '',
|
|
17
|
+
factoryAddress: '0x0Eb7fB145e697B7e82711BeEFff195F2d7b66cdd',
|
|
18
18
|
chainId: 1337,
|
|
19
19
|
walletConnectProjectId: '',
|
|
20
20
|
platformUrl: 'https://networked.art',
|
|
21
|
-
rpc1: '',
|
|
22
|
-
rpc2: '',
|
|
23
|
-
rpc3: '',
|
|
21
|
+
rpc1: 'https://ethereum-sepolia.rpc.subquery.network/public',
|
|
22
|
+
rpc2: 'https://ethereum-sepolia-rpc.publicnode.com',
|
|
23
|
+
rpc3: 'https://1rpc.io/sepolia',
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
|