@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.
@@ -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 = 8
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
@@ -117,5 +117,9 @@ export default defineNuxtConfig({
117
117
  storage: 'localStorage'
118
118
  },
119
119
 
120
+ i18n: {
121
+ restructureDir: false,
122
+ },
123
+
120
124
  compatibilityDate: '2024-08-14',
121
125
  })
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@visualizevalue/mint-app-base",
3
- "version": "0.1.105",
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.5.5",
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",
package/utils/types.ts CHANGED
@@ -28,6 +28,7 @@ export interface Artist {
28
28
  export interface Collection {
29
29
  address: `0x${string}`
30
30
  owner: `0x${string}`
31
+ version: bigint,
31
32
  image: string
32
33
  name: string
33
34
  symbol: string