mirror of
https://github.com/tompro/sattle.git
synced 2026-08-27 07:15:59 +00:00
feat: pinia wallet, mints and activity stores with wallet boot
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { defineBoot } from '#q-app';
|
||||
import { useWalletStore } from '@/stores/wallet';
|
||||
|
||||
// Wallet lifecycle bootstrap: reflects whatever is on this device into the
|
||||
// wallet store at app start - a plaintext-stored key unlocks straight away,
|
||||
// a password-encrypted one lands on 'locked' for the unlock screen, and no
|
||||
// key at all lands on 'none' for onboarding.
|
||||
export default defineBoot(async () => {
|
||||
const wallet = useWalletStore();
|
||||
await wallet.init();
|
||||
});
|
||||
Reference in New Issue
Block a user