feat: add block number in home

This commit is contained in:
DIYgod
2023-07-27 23:03:33 +01:00
parent e9c80277ad
commit e15ea3f9fa
9 changed files with 231 additions and 11 deletions
+12
View File
@@ -219,3 +219,15 @@ export const getCharacterColors = async (character?: ExpandedCharacter) => {
}
}>
}
export const getBlockNumber = async (queryClient: QueryClient) => {
const key = ["getBlockNumber"]
await queryClient.prefetchQuery(key, async () => {
return cacheGet({
key: key,
getValueFun: async () => {
return siteModel.getBlockNumber()
},
})
})
}