File tree Expand file tree Collapse file tree 8 files changed +780
-176
lines changed
Expand file tree Collapse file tree 8 files changed +780
-176
lines changed Original file line number Diff line number Diff line change 3030 - name : 🟢 Node
3131 uses : actions/setup-node@v3
3232 with :
33- node-version : 16
33+ node-version : 18
3434 registry-url : ' https://registry.npmjs.org'
3535 - name : 🕵 Yarn install
3636 uses : borales/actions-yarn@v4
Original file line number Diff line number Diff line change 1414 - name : 🟢 Node
1515 uses : actions/setup-node@v3
1616 with :
17- node-version : 16
17+ node-version : 18
1818 registry-url : ' https://registry.npmjs.org'
1919 - name : 🕵 Yarn install
2020 uses : borales/actions-yarn@v4
Original file line number Diff line number Diff line change 11import { watchContractEvent as masterWatchContractEvent } from '@wagmi/core'
2- import type { TransactionReceipt } from 'viem/src/ types/transaction'
2+ import type { TransactionReceipt } from 'viem/types/transaction'
33import { decodeEventLog } from 'viem/utils'
44
55import { chain } from '../chain'
Original file line number Diff line number Diff line change 1- import { multicall as masterMulticall } from '@wagmi/core'
1+ import { type MulticallResult , multicall as masterMulticall } from '@wagmi/core'
22import { type MulticallParameters } from 'viem/actions'
3- import { type ContractFunctionConfig } from 'viem/src/ types/contract'
3+ import { type ContractFunctionConfig } from 'viem/types/contract'
44
55import type { MulticallArgs } from '../types'
66
77export async function multicall < TContracts extends ContractFunctionConfig [ ] , TAllowFailure extends boolean = true > (
88 params : MulticallArgs < TAllowFailure >
9- ) {
9+ ) : Promise < MulticallResult < TContracts , TAllowFailure > > {
1010 // @ts -ignore
1111 const contracts : TContracts = [ ] as TContracts
1212
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import type {
88} from '@wagmi/core'
99import type { ThemeCtrlState } from '@web3modal/core'
1010import type { EthereumClient } from '@web3modal/ethereum'
11- import type { WatchAssetParams } from 'viem/src/ types/eip1193'
11+ import type { WatchAssetParams } from 'viem/types/eip1193'
1212
1313type BlockTag = 'latest' | 'earliest' | 'pending' | 'safe' | 'finalized'
1414
Original file line number Diff line number Diff line change 11{
22 "name" : " @kolirt/vue-web3-auth" ,
3- "version" : " 2.2.1 " ,
3+ "version" : " 2.3.0 " ,
44 "description" : " Web3 authentication for Vue3 apps based on WalletConnect Web3Modal v2" ,
55 "author" : " kolirt" ,
66 "license" : " MIT" ,
6262 },
6363 "homepage" : " https://github.com/kolirt/vue-web3-auth#readme" ,
6464 "peerDependencies" : {
65- "vue" : " ^3.0.0 "
65+ "vue" : " >=3 "
6666 },
6767 "dependencies" : {
68- "@wagmi/core" : " ^1.2.1 " ,
69- "@web3modal/ethereum" : " ^2.4.7 " ,
70- "@web3modal/html" : " ^2.4.7 " ,
68+ "@wagmi/core" : " 1.4.13 " ,
69+ "@web3modal/ethereum" : " 2.7.1 " ,
70+ "@web3modal/html" : " 2.7.1 " ,
7171 "bootstrap" : " 5.3.0" ,
72- "js-event-bus" : " ^ 1.1.1" ,
73- "viem" : " ^1.1.6 " ,
72+ "js-event-bus" : " 1.1.1" ,
73+ "viem" : " 1.21.4 " ,
7474 "vue" : " ^3.3.2" ,
75- "wagmi" : " ^1.2.1 "
75+ "wagmi" : " 1.4.13 "
7676 },
7777 "devDependencies" : {
7878 "@rushstack/eslint-patch" : " ^1.2.0" ,
Original file line number Diff line number Diff line change @@ -199,6 +199,8 @@ async function signMessage() {
199199 </button >
200200 </div >
201201
202+ <hr />
203+
202204 <div class =" d-grid d-sm-flex mb-3 gap-2" >
203205 <button
204206 v-for =" item in availableChains"
@@ -208,13 +210,11 @@ async function signMessage() {
208210 >
209211 Reconnect to {{ item.name }}
210212 </button >
211- </div >
212-
213- <hr />
214213
215- <button @click =" disconnect" class =" btn btn-danger" >
216- {{ loading.logouting ? 'Logouting...' : 'Logout' }}
217- </button >
214+ <button @click =" disconnect" class =" btn btn-danger" >
215+ {{ loading.logouting ? 'Logouting...' : 'Logout' }}
216+ </button >
217+ </div >
218218 </template >
219219
220220 <div v-else class =" d-grid d-sm-flex mb-3 gap-2" >
You can’t perform that action at this time.
0 commit comments