Sol.College

Structure lesson (licence does not allow quoting code)

Helio-Wallet

Original
UtkarshArjariya/Helio-Wallet
SuperStack fork
Blockchains/Helio-Wallet @ 7f93638
Stars
0
Last push (original)
2026-10-16
Languages
TypeScript, Rust, JavaScript, CSS, HTML
Detected stack
@solana/kitAnchorweb3.js
Categories
Wallets & Identity
Licence
none detected: code not quoted on Sol.College
Homepage
https://helio-wallet-nine.vercel.app

Architecture

235 source files. By extension: .ts ×142, .tsx ×70, .rs ×21, .js ×2.

Top-level directorySource files
src117
packages92
anchor22
(root)4

On-chain programs: anchor/programs/helio, anchor/programs/mock-yield-vault

How it works: instructions and accounts

Each instruction handler and the accounts struct it validates, found by reading the Rust source. Links go to the exact line at the pinned commit.

InstructionAccountsSource
pause_auto_yieldUpdateAutoYieldConfiganchor/programs/helio/src/lib.rs:40
resume_auto_yieldUpdateAutoYieldConfiganchor/programs/helio/src/lib.rs:44
sweep_solSweepSolanchor/programs/helio/src/lib.rs:48
sweep_stableSweepStableanchor/programs/helio/src/lib.rs:52
withdraw_solWithdrawSolanchor/programs/helio/src/lib.rs:56
withdraw_stableWithdrawStableanchor/programs/helio/src/lib.rs:60
close_empty_reserveCloseEmptyReserveanchor/programs/helio/src/lib.rs:64
handlerSendSolanchor/programs/helio/src/instructions/send_sol.rs:43
handlerWithdrawFromProtocolanchor/programs/helio/src/instructions/withdraw_from_protocol.rs:101
handlerCloseEmptyReserveanchor/programs/helio/src/instructions/close_reserve.rs:57
handlerWithdrawSolanchor/programs/helio/src/instructions/withdraw_sol.rs:36
handlerWithdrawStableanchor/programs/helio/src/instructions/withdraw_stable.rs:51
pause_handlerUpdateAutoYieldConfiganchor/programs/helio/src/instructions/update_config.rs:29
resume_handlerUpdateAutoYieldConfiganchor/programs/helio/src/instructions/update_config.rs:34
handlerSweepStableanchor/programs/helio/src/instructions/sweep_stable.rs:51
handlerWithdrawVaultSolanchor/programs/helio/src/instructions/withdraw_vault_sol.rs:25
handlerSweepSolanchor/programs/helio/src/instructions/sweep_sol.rs:37
handlerDeployToProtocolanchor/programs/helio/src/instructions/deploy_to_protocol.rs:124
handlerInitializeAutoYieldanchor/programs/helio/src/instructions/initialize.rs:59
init_vaultInitVaultanchor/programs/mock-yield-vault/src/lib.rs:57
depositDepositWithdrawanchor/programs/mock-yield-vault/src/lib.rs:81
withdrawDepositWithdrawanchor/programs/mock-yield-vault/src/lib.rs:148
accrueAccrueanchor/programs/mock-yield-vault/src/lib.rs:207
set_pausedSetPausedanchor/programs/mock-yield-vault/src/lib.rs:256

Where the Solana code lives

Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.

FileSolana APIs used
anchor/tests/helio.tsKeypair, PublicKey, seeds, findProgramAddressSync, SystemProgram, Program
packages/api/src/rpc/helio-rpc-client.tsPublicKey, Connection, VersionedTransaction, ComputeBudgetProgram, Transaction, SystemProgram
src/lib/helio-program.tsPublicKey, Keypair, Connection, findProgramAddressSync, Transaction, getAccountInfo
anchor/programs/mock-yield-vault/src/lib.rsseeds, CpiContext, Pubkey, transfer, has_one, Program
packages/solana/src/auto-yield/auto-yield-program.test.tsPublicKey, findProgramAddressSync, Keypair
packages/api/src/rpc/kit-rpc.test.tsgetAccountInfo, getLatestBlockhash, Program, getBalance, getProgramAccounts, sendTransaction
packages/api/src/rpc/kit-rpc.tsgetLatestBlockhash, getAccountInfo, getProgramAccounts, getBalance, Program, sendTransaction
src/lib/transaction-history.tstransfer, PublicKey, Connection, Program, Transaction
src/lib/send-review.tsConnection, Transaction, PublicKey, transfer, ComputeBudgetProgram, getBalance
src/extension-runtime/extension-service.tsTransaction, VersionedTransaction, Keypair
anchor/programs/helio/src/instructions/send_sol.rstransfer, init_if_needed, Pubkey, CpiContext, seeds, Program
anchor/programs/helio/src/instructions/deploy_to_protocol.rsseeds, Pubkey, invoke_signed

Dapp: devnet deploy pending

⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/helio-wallet/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

How to run, build and test

These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.

DirectoryCommandRuns
.npm run dev
.npm run build
.npm run test
.npm run lint
anchornpm run test
packages/typesnpm run build
packages/typesnpm run test
packages/typesnpm run lint
packages/uinpm run build
packages/uinpm run test
packages/uinpm run lint
packages/solananpm run build
packages/solananpm run test
packages/solananpm run lint
packages/apinpm run build
packages/apinpm run test

What you could build from it