@visualizevalue/mint-app-base 0.1.103 → 0.1.105
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/components/Embed.vue
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
mintOpen,
|
|
9
9
|
currentBlock,
|
|
10
10
|
blocksRemaining,
|
|
11
|
+
endBlock,
|
|
11
12
|
secondsRemaining,
|
|
12
13
|
countDownStr,
|
|
13
14
|
until,
|
|
@@ -54,7 +55,8 @@ const store = useOnchainStore()
|
|
|
54
55
|
const priceFeed = usePriceFeedStore()
|
|
55
56
|
|
|
56
57
|
const { data: currentBlock } = useBlockNumber({ chainId: config.public.chainId })
|
|
57
|
-
const
|
|
58
|
+
const endBlock = computed(() => props.token.mintedBlock + BLOCKS_PER_DAY)
|
|
59
|
+
const blocksRemaining = computed(() => endBlock.value - (currentBlock.value || 0n))
|
|
58
60
|
const now = useNow()
|
|
59
61
|
const until = computed(() => props.token.closeAt)
|
|
60
62
|
const secondsRemaining = computed(() => until.value - BigInt(now.value))
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
minted,
|
|
23
23
|
mintOpen,
|
|
24
24
|
currentBlock,
|
|
25
|
+
endBlock,
|
|
25
26
|
countDownStr,
|
|
26
27
|
blocksRemaining,
|
|
27
28
|
transactionFlowConfig
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
<TokenMintOpen :blocks="blocksRemaining" :time="countDownStr" />
|
|
58
59
|
</p>
|
|
59
60
|
<p v-else-if="currentBlock">
|
|
60
|
-
{{ $t('token.
|
|
61
|
+
{{ $t('token.closed_at_block', { block: endBlock })}}
|
|
61
62
|
</p>
|
|
62
63
|
<p v-if="ownedBalance">
|
|
63
64
|
{{ $t('token.you_own', { ownedBalance }) }}
|
package/locales/en.json
CHANGED