@visualizevalue/mint-app-base 0.1.105 → 0.1.107
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/composables/collections.ts +9 -2
- package/nuxt.config.ts +4 -0
- package/package.json +2 -2
- package/utils/types.ts +1 -0
|
@@ -3,7 +3,7 @@ import { type GetBalanceReturnType } from '@wagmi/core'
|
|
|
3
3
|
import { parseAbiItem, type PublicClient } from 'viem'
|
|
4
4
|
import type { MintEvent } from '~/utils/types'
|
|
5
5
|
|
|
6
|
-
export const CURRENT_STATE_VERSION =
|
|
6
|
+
export const CURRENT_STATE_VERSION = 9
|
|
7
7
|
export const MAX_BLOCK_RANGE = 1800n
|
|
8
8
|
export const MINT_BLOCKS = BLOCKS_PER_DAY
|
|
9
9
|
|
|
@@ -176,13 +176,19 @@ export const useOnchainStore = () => {
|
|
|
176
176
|
return this.collection(address)
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
const [data, initBlock, latestTokenId, owner, balance] = await Promise.all([
|
|
179
|
+
const [data, version, initBlock, latestTokenId, owner, balance] = await Promise.all([
|
|
180
180
|
readContract($wagmi, {
|
|
181
181
|
abi: MINT_ABI,
|
|
182
182
|
address,
|
|
183
183
|
functionName: 'contractURI',
|
|
184
184
|
chainId,
|
|
185
185
|
}) as Promise<string>,
|
|
186
|
+
readContract($wagmi, {
|
|
187
|
+
abi: MINT_ABI,
|
|
188
|
+
address,
|
|
189
|
+
functionName: 'version',
|
|
190
|
+
chainId,
|
|
191
|
+
}) as Promise<bigint>,
|
|
186
192
|
readContract($wagmi, {
|
|
187
193
|
abi: MINT_ABI,
|
|
188
194
|
address,
|
|
@@ -216,6 +222,7 @@ export const useOnchainStore = () => {
|
|
|
216
222
|
image: metadata.image,
|
|
217
223
|
name: metadata.name,
|
|
218
224
|
symbol: metadata.symbol,
|
|
225
|
+
version,
|
|
219
226
|
description: metadata.description,
|
|
220
227
|
address,
|
|
221
228
|
initBlock,
|
package/nuxt.config.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visualizevalue/mint-app-base",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.107",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@csstools/postcss-global-data": "^2.1.1",
|
|
8
|
-
"@nuxtjs/i18n": "^
|
|
8
|
+
"@nuxtjs/i18n": "^9.5.2",
|
|
9
9
|
"@pinia-plugin-persistedstate/nuxt": "^1.2.1",
|
|
10
10
|
"@pinia/nuxt": "^0.5.3",
|
|
11
11
|
"@tanstack/vue-query": ">=5.45.0",
|