Skip to content

Commit

Permalink
Remove legacy Qi HD Wallet export
Browse files Browse the repository at this point in the history
  • Loading branch information
rileystephens28 committed Oct 23, 2024
1 parent a65b73b commit 1268361
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions examples/wallets/qi-send.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/quais.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ export {
Mnemonic,
QuaiHDWallet,
QiHDWallet,
QiHDWalletLegacy,
Wallet,
isKeystoreJson,
decryptKeystoreJsonSync,
Expand Down
2 changes: 0 additions & 2 deletions src/wallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 1268361

Please sign in to comment.