From 1268361d1f2d200bc5d0e75261309531d82e5495 Mon Sep 17 00:00:00 2001 From: rileystephens28 Date: Tue, 22 Oct 2024 21:38:42 -0500 Subject: [PATCH] Remove legacy Qi HD Wallet export --- examples/wallets/qi-send.js | 7 ------- src/quais.ts | 1 - src/wallet/index.ts | 2 -- 3 files changed, 10 deletions(-) diff --git a/examples/wallets/qi-send.js b/examples/wallets/qi-send.js index 8555c359..4b6cc87f 100644 --- a/examples/wallets/qi-send.js +++ b/examples/wallets/qi-send.js @@ -11,9 +11,6 @@ async function main() { const aliceQiWallet = quais.QiHDWallet.fromMnemonic(mnemonic); aliceQiWallet.connect(provider); - const aliceLegacyWallet = quais.QiHDWalletLegacy.fromMnemonic(mnemonic); - aliceLegacyWallet.connect(provider); - console.log(`Generating Bob's wallet and payment code...`); const bobMnemonic = quais.Mnemonic.fromPhrase( 'innocent perfect bus miss prevent night oval position aspect nut angle usage expose grace juice', @@ -31,15 +28,11 @@ async function main() { console.log('Initializing Alice wallet...'); console.log('Scanning Cyprus1 zone...', quais.Zone.Cyprus1); await aliceQiWallet.scan(quais.Zone.Cyprus1); - // await aliceLegacyWallet.scan(quais.Zone.Cyprus1); console.log('Alice wallet scan complete'); console.log('Alice Wallet Summary:'); printWalletInfo(aliceQiWallet); - // console.log('Alice Legacy Wallet Summary:'); - // printWalletInfo(aliceLegacyWallet); - // Bob open channel with Alice const alicePaymentCode = aliceQiWallet.getPaymentCode(0); bobQiWallet.openChannel(alicePaymentCode); diff --git a/src/quais.ts b/src/quais.ts index 91824789..d5ddcce7 100644 --- a/src/quais.ts +++ b/src/quais.ts @@ -210,7 +210,6 @@ export { Mnemonic, QuaiHDWallet, QiHDWallet, - QiHDWalletLegacy, Wallet, isKeystoreJson, decryptKeystoreJsonSync, diff --git a/src/wallet/index.ts b/src/wallet/index.ts index 2ba8c356..85043b2d 100644 --- a/src/wallet/index.ts +++ b/src/wallet/index.ts @@ -34,5 +34,3 @@ export type { KeystoreAccount, EncryptOptions } from './json-keystore.js'; export { QiHDWallet, SerializedQiHDWallet } from './qi-hdwallet.js'; export { HDNodeVoidWallet, HDNodeWallet } from './hdnodewallet.js'; - -export { QiHDWalletLegacy } from './qi-hdwallet-legacy.js';