0.0.22 • Published 2 years ago
@vue-ethereum-hooks/hooks v0.0.22
API is identical to wagmi. Check out wagmi.sh for examples
Initialization Example:
import { boot } from 'quasar/wrappers'
import { wagmiVue } from '@vue-ethereum-hooks/hooks'
import { publicProvider } from '@vue-ethereum-hooks/hooks/providers/public'
import { CoinbaseWalletConnector } from '@vue-ethereum-hooks/hooks/connectors/coinbaseWallet'
import { InjectedConnector } from '@vue-ethereum-hooks/hooks/connectors/injected'
import { MetaMaskConnector } from '@vue-ethereum-hooks/hooks/connectors/metaMask'
import { WalletConnectConnector } from '@vue-ethereum-hooks/hooks/connectors/walletConnect'
import { configureChains, defaultChains } from '@vue-ethereum-hooks/hooks'
const { chains, provider, webSocketProvider } = configureChains(defaultChains, [
publicProvider(),
])
export default boot(({ app }) => {
wagmiVue.install(app, {
autoConnect: true,
provider,
webSocketProvider,
connectors: [
new MetaMaskConnector({ chains }),
new CoinbaseWalletConnector({
chains,
options: {
appName: 'moonlight.xyz',
},
}),
new WalletConnectConnector({
chains,
options: {
qrcode: true,
},
}),
new InjectedConnector({
chains,
options: {
name: 'Injected',
shimDisconnect: true,
},
}),
],
})
})
0.0.22
2 years ago
0.0.21
2 years ago
0.0.20
2 years ago
0.0.19
2 years ago
0.0.18
2 years ago
0.0.17
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago