yours-org / yours-wallet

A non-custodial and open-source wallet for BSV and 1Sat Ordinals.
Other
62 stars 49 forks source link

Feat/176 add event emitters #205

Closed mak1986 closed 8 months ago

mak1986 commented 8 months ago

This PR addresses issue #176 by introducing support for two new events, signedOut and networkChanged, in the wallet extension.

Example Usage:

// Listen for the 'signedOut' event
pandaWallet.on('signedOut', () => {
    console.log('Handling signedOut event');
});

// Listen for the 'networkChanged' event
pandaWallet.on('networkChanged', ({ network }) => {
    console.log('Handling networkChanged event. New network:', network);
});
mak1986 commented 8 months ago

This pull request is related to https://github.com/Panda-Wallet/panda-wallet-provider/pull/6.