From f6905cf92e2743398eb7087cedfbe5fb41ca3c16 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 7 Aug 2025 19:26:23 -0700 Subject: [PATCH] Import fixes. --- src/lib/account.ts | 4 ++-- src/lib/bip39-mnemonic.ts | 2 +- src/lib/constants.ts | 1 + src/lib/rolodex.ts | 1 - src/lib/safe.ts | 4 ++-- src/lib/wallet.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/account.ts b/src/lib/account.ts index 05d175a..3cc15bf 100644 --- a/src/lib/account.ts +++ b/src/lib/account.ts @@ -3,10 +3,10 @@ import { Blake2b } from './blake2b' import { ACCOUNT_KEY_BYTE_LENGTH, ACCOUNT_KEY_HEX_LENGTH, ALPHABET, PREFIX, PREFIX_LEGACY } from './constants' -import { base32, bytes, hex, utf8 } from './convert' +import { base32, bytes, hex } from './convert' import { NanoNaCl } from './nano-nacl' import { Rpc } from './rpc' -import { Key, KeyPair, NamedData } from '#types' +import { Key, KeyPair } from '#types' /** * Represents a single Nano address and the associated public key. To include the diff --git a/src/lib/bip39-mnemonic.ts b/src/lib/bip39-mnemonic.ts index f75a568..10a59ea 100644 --- a/src/lib/bip39-mnemonic.ts +++ b/src/lib/bip39-mnemonic.ts @@ -3,7 +3,7 @@ import { Bip39Words } from './bip39-wordlist' import { BIP39_ITERATIONS } from './constants' -import { bytes, hex, utf8 } from './convert' +import { bytes, utf8 } from './convert' import { Entropy } from './entropy' /** diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 0332ab8..15be831 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -69,6 +69,7 @@ export default ` const BIP44_PURPOSE = ${BIP44_PURPOSE} const BIP44_COIN_NANO = ${BIP44_COIN_NANO} const BURN_ADDRESS = '${BURN_ADDRESS}' + const BURN_PUBLIC_KEY = '${BURN_PUBLIC_KEY}' const HARDENED_OFFSET = ${HARDENED_OFFSET} const NONCE_LENGTH = ${NONCE_LENGTH} const PBKDF2_ITERATIONS = ${PBKDF2_ITERATIONS} diff --git a/src/lib/rolodex.ts b/src/lib/rolodex.ts index 5f24a09..9c23b0e 100644 --- a/src/lib/rolodex.ts +++ b/src/lib/rolodex.ts @@ -2,7 +2,6 @@ //! SPDX-License-Identifier: GPL-3.0-or-later import { Account } from './account' -import { bytes, utf8 } from './convert' import { Database } from './database' import { verify } from './tools' import { NamedData } from '#types' diff --git a/src/lib/safe.ts b/src/lib/safe.ts index 81e7516..33c8bfb 100644 --- a/src/lib/safe.ts +++ b/src/lib/safe.ts @@ -4,13 +4,13 @@ 'use strict' import { parentPort } from 'node:worker_threads' -import { Bip39Mnemonic } from './bip39-mnemonic.js' +import { Bip39Mnemonic } from './bip39-mnemonic' import { default as Bip39Words } from './bip39-wordlist' import { Bip44Ckd } from './bip44-ckd' import { Blake2b } from './blake2b' import { Blake2bCkd } from './blake2b-ckd' import { default as Constants, BIP44_COIN_NANO } from './constants' -import { default as Convert, bytes, hex, utf8 } from './convert.js' +import { default as Convert, bytes, hex, utf8 } from './convert' import { Entropy } from './entropy' import { NanoNaCl } from './nano-nacl' import { NamedData } from '#types' diff --git a/src/lib/wallet.ts b/src/lib/wallet.ts index be76ffa..18d7a69 100644 --- a/src/lib/wallet.ts +++ b/src/lib/wallet.ts @@ -2,8 +2,8 @@ //! SPDX-License-Identifier: GPL-3.0-or-later import { Account, AccountList } from './account' -import { Block } from './block' import { Bip39Mnemonic } from './bip39-mnemonic' +import { Block } from './block' import { ADDRESS_GAP } from './constants' import { bytes, hex, utf8 } from './convert' import { Database } from './database' -- 2.47.3