diff --git a/src/components/common/FormCommon.vue b/src/components/common/FormCommon.vue
index e11da64..2e1bbb6 100644
--- a/src/components/common/FormCommon.vue
+++ b/src/components/common/FormCommon.vue
@@ -23,7 +23,7 @@ const showPassword = ref(false)
const isFocused = ref(false)
const inputType = computed(() => {
- if (props.type === 'password' ) {
+ if (props.type === 'password') {
return showPassword.value ? 'text' : 'password'
}
return props.type
diff --git a/src/components/common/PasswordForm.vue b/src/components/common/PasswordForm.vue
index a7bbc90..4da69de 100644
--- a/src/components/common/PasswordForm.vue
+++ b/src/components/common/PasswordForm.vue
@@ -58,11 +58,11 @@ const passwordStrength = computed(() => {
const canProceed = computed(() => {
if (!password.value || passwordError.value) return false
-
+
if (props.validateFormat) {
return password.value.length >= 8 && passwordStrength.value.level >= 2
}
-
+
return password.value.length > 0
})
@@ -103,7 +103,7 @@ const handleBack = () => {
@input="passwordError = ''"
@keyup.enter="handleSubmit"
/>
-
+
diff --git a/src/components/common/TabPaneCommon.vue b/src/components/common/TabPaneCommon.vue
index df81fe9..8dcefa3 100644
--- a/src/components/common/TabPaneCommon.vue
+++ b/src/components/common/TabPaneCommon.vue
@@ -26,4 +26,3 @@ const isActive = computed(() => {
flex-direction: column;
}
-
diff --git a/src/components/common/TabsCommon.vue b/src/components/common/TabsCommon.vue
index 8c4b60b..e5c0449 100644
--- a/src/components/common/TabsCommon.vue
+++ b/src/components/common/TabsCommon.vue
@@ -53,7 +53,13 @@ const tabClasses = computed(() => {
>
{{ item.label }}
-
+
@@ -135,4 +141,3 @@ const tabClasses = computed(() => {
}
}
-
diff --git a/src/composables/useNeptuneWallet.ts b/src/composables/useNeptuneWallet.ts
index 428b53b..f2c0fc9 100644
--- a/src/composables/useNeptuneWallet.ts
+++ b/src/composables/useNeptuneWallet.ts
@@ -1,6 +1,11 @@
import { useNeptuneStore } from '@/stores/neptuneStore'
import * as API from '@/api/neptuneApi'
-import type { GenerateSeedResult, PayloadBuildTransaction, ViewKeyResult, WalletState } from '@/interface'
+import type {
+ GenerateSeedResult,
+ PayloadBuildTransaction,
+ ViewKeyResult,
+ WalletState,
+} from '@/interface'
import initWasm, { generate_seed, address_from_seed, validate_seed_phrase } from '@neptune/wasm'
let wasmInitialized = false
@@ -227,7 +232,9 @@ export function useNeptuneWallet() {
}
}
- const buildTransactionWithPrimitiveProof = async (args: PayloadBuildTransaction): Promise
=> {
+ const buildTransactionWithPrimitiveProof = async (
+ args: PayloadBuildTransaction
+ ): Promise => {
const payload = {
spendingKeyHex: store.getSpendingKey,
inputAdditionRecords: args.inputAdditionRecords,
diff --git a/src/views/Auth/components/create/WalletCreatedStep.vue b/src/views/Auth/components/create/WalletCreatedStep.vue
index 753e622..f4e8921 100644
--- a/src/views/Auth/components/create/WalletCreatedStep.vue
+++ b/src/views/Auth/components/create/WalletCreatedStep.vue
@@ -42,7 +42,11 @@ const handleCreateAnother = () => {
keystore file should only be used in an offline setting.
-

+
{
const handleGridInput = (index: number, value: string) => {
emit('update:valid', true)
seedWords.value[index] = value
- emit('update:words', seedWords.value.filter((w) => w.trim()))
+ emit(
+ 'update:words',
+ seedWords.value.filter((w) => w.trim())
+ )
}
const handlePaste = (event: ClipboardEvent) => {
@@ -42,7 +45,10 @@ const handlePaste = (event: ClipboardEvent) => {
const filledWords = Array.from({ length: 18 }, (_, i) => words[i] || '')
seedWords.value = filledWords
- emit('update:words', words.filter((w) => w.trim()))
+ emit(
+ 'update:words',
+ words.filter((w) => w.trim())
+ )
}
const handleSubmit = () => {
diff --git a/src/views/Home/HomeView.vue b/src/views/Home/HomeView.vue
index 1daef65..57691ab 100644
--- a/src/views/Home/HomeView.vue
+++ b/src/views/Home/HomeView.vue
@@ -23,8 +23,8 @@ onMounted(async () => {
-
-
+
+
diff --git a/src/views/Home/components/UTXOTab.vue b/src/views/Home/components/UTXOTab.vue
index 544f148..636dbdb 100644
--- a/src/views/Home/components/UTXOTab.vue
+++ b/src/views/Home/components/UTXOTab.vue
@@ -4,7 +4,6 @@ import { Table, message } from 'ant-design-vue'
import { useNeptuneWallet } from '@/composables/useNeptuneWallet'
import { useNeptuneStore } from '@/stores/neptuneStore'
import { CardBaseScrollable, SpinnerCommon } from '@/components'
-import { PER_PAGE } from '@/utils'
import { columns } from '../utils'
const { getUtxos } = useNeptuneWallet()
@@ -12,12 +11,15 @@ const neptuneStore = useNeptuneStore()
const loading = ref(false)
-const utxosList = computed(() => [...(neptuneStore.getUtxos || []), ...Array.from({ length: 18 }, (_, i) => ({
- additionRecord: `additionRecord${i}`,
- amount: `${i}.00000000`,
- blockHeight: `blockHeight${i}`,
- utxoHash: `utxoHash${i}`,
-}))])
+const utxosList = computed(() => [
+ ...(neptuneStore.getUtxos || []),
+ ...Array.from({ length: 18 }, (_, i) => ({
+ additionRecord: `additionRecord${i}`,
+ amount: `${i}.00000000`,
+ blockHeight: `blockHeight${i}`,
+ utxoHash: `utxoHash${i}`,
+ })),
+])
const inUseUtxosCount = computed(() => (utxosList.value?.length ? utxosList.value.length : 0))
const inUseUtxosAmount = computed(() => {
diff --git a/src/views/Home/components/wallet-tab/SendTransactionComponent.vue b/src/views/Home/components/wallet-tab/SendTransactionComponent.vue
index f329d1d..533fed9 100644
--- a/src/views/Home/components/wallet-tab/SendTransactionComponent.vue
+++ b/src/views/Home/components/wallet-tab/SendTransactionComponent.vue
@@ -26,11 +26,11 @@ const isAmountValid = computed(() => {
if (!outputAmounts.value) return false
const num = parseFloat(outputAmounts.value)
if (isNaN(num) || num <= 0) return false
-
+
// Check if amount exceeds available balance
const balance = parseFloat(props.availableBalance)
if (!isNaN(balance) && num > balance) return false
-
+
return true
})
const isFeeValid = computed(() => {
@@ -43,12 +43,12 @@ const amountErrorMessage = computed(() => {
if (!outputAmounts.value) return ''
const num = parseFloat(outputAmounts.value)
if (isNaN(num) || num <= 0) return 'Invalid amount'
-
+
const balance = parseFloat(props.availableBalance)
if (!isNaN(balance) && num > balance) {
return `Insufficient balance. Available: ${props.availableBalance} NPT`
}
-
+
return ''
})
diff --git a/src/views/Home/components/wallet-tab/WalletInfo.vue b/src/views/Home/components/wallet-tab/WalletInfo.vue
index 71bbca5..208ad17 100644
--- a/src/views/Home/components/wallet-tab/WalletInfo.vue
+++ b/src/views/Home/components/wallet-tab/WalletInfo.vue
@@ -3,7 +3,13 @@ import { ref, computed, onMounted, onUnmounted } from 'vue'
import { useNeptuneStore } from '@/stores/neptuneStore'
import { useNeptuneWallet } from '@/composables/useNeptuneWallet'
import { message } from 'ant-design-vue'
-import { ButtonCommon, CardBaseScrollable, ModalCommon, SpinnerCommon, PasswordForm } from '@/components'
+import {
+ ButtonCommon,
+ CardBaseScrollable,
+ ModalCommon,
+ SpinnerCommon,
+ PasswordForm,
+} from '@/components'
import SeedPhraseDisplayComponent from '@/views/Auth/components/SeedPhraseDisplayComponent.vue'
import SendTransactionComponent from './SendTransactionComponent.vue'
import { WalletAddress, WalletBalance } from '.'