Implement solana wallet adapter using svelte
I want to integrate solana wallet on my svelte app, but these 2 projects are outdated, So I made this project to learn how solana wallets works on a web frontend project.
walletStore.ts
contains the core logic about the connected wallet state. all the heavy stuff is done here, mostly copied from the above 2 projects.
WalletProvider.svelte
init the walletStore so we can use in other pages
WalletMultiButton.svelte
If connected a wallet, click this button will see 2 operation menu, if not, click to open a modal with installed wallet list
Transfer.svelte
A component to do transfer to test the wallet is connected and can sign and send transactions.