0.1.3 • Published 1 year ago

vue3-wagmi-dome v0.1.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Install it

pnpm add @wagmi/vue viem@2.x @tanstack/vue-query
pnpm add vue3-wagmi-dome

import {QueryClient, VueQueryPlugin} from '@tanstack/vue-query'
import {WagmiPlugin} from '@wagmi/vue'

import { http, createConfig } from '@wagmi/vue'
import { mainnet, sepolia } from '@wagmi/vue/chains'

export const config = createConfig({
    chains: [mainnet, sepolia],
    transports: {
        [mainnet.id]: http(),
        [sepolia.id]: http()
    }
})

const queryClient = new QueryClient()

use(WagmiPlugin, {config})
use(VueQueryPlugin, {queryClient})


walletData 数据  type: Object, 
title 标题  type: String, 


链接成功回调  {address:钱包地址, status: 状态}
onConnects(data)=> {
}

断开链接回调 true
onDisconnect()=> {
}

链接错误回调 Object
onCancel(data)=> {
}

断开链接钱包方法
onDisconnect()
0.1.0

1 year ago

0.1.2

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.1.3

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago