consolidate interface and remove copies of code

This commit is contained in:
2024-02-24 10:26:12 -07:00
parent c239db6a4f
commit 6aab1ff49d
22 changed files with 81 additions and 206 deletions

View File

@@ -75,20 +75,15 @@
<script lang="ts">
import { Component, Vue } from "vue-facing-decorator";
import { NotificationIface } from "@/constants/app";
import { accountsDB, db } from "@/db/index";
import { MASTER_SETTINGS_KEY } from "@/db/tables/settings";
import {
DEFAULT_ROOT_DERIVATION_PATH,
deriveAddress,
newIdentifier,
} from "../libs/crypto";
import { accountsDB, db } from "@/db/index";
import { MASTER_SETTINGS_KEY } from "@/db/tables/settings";
interface Notification {
group: string;
type: string;
title: string;
text: string;
}
} from "@/libs/crypto";
@Component({
components: {},
@@ -96,7 +91,7 @@ interface Notification {
export default class ImportAccountView extends Vue {
UPORT_DERIVATION_PATH = "m/7696500'/0'/0'/0'"; // for legacy imports, likely never used
$notify!: (notification: Notification, timeout?: number) => void;
$notify!: (notification: NotificationIface, timeout?: number) => void;
mnemonic = "";
address = "";