Sol.College

Structure lesson (licence does not allow quoting code)

AvelockWallet

Original
avelock/AvelockWallet
SuperStack fork
Blockchains/AvelockWallet @ 2cf75b8
Stars
0
Last push (original)
2026-10-01
Languages
Solidity, JavaScript, TypeScript, Rust, Tact, Python
Detected stack
Anchorweb3.js
Categories
Wallets & Identity
Licence
GPL-3.0: code not quoted on Sol.College

Architecture

847 source files. By extension: .sol ×538, .js ×275, .ts ×28, .rs ×4, .py ×2.

Top-level directorySource files
contracts847

On-chain programs: contracts/solana/programs/avelock_wallet

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
set_withdrawal_delayOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:93
set_address_delayOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:100
set_confirmation_windowOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:107
set_policy_delayOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:113
set_lock_delayOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:120
apply_param_changeOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:128
cancel_param_changeOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:145
add_allowed_addressAddAllowedAddresscontracts/solana/programs/avelock_wallet/src/lib.rs:163
remove_allowed_addressRemoveAllowedAddresscontracts/solana/programs/avelock_wallet/src/lib.rs:184
request_native_withdrawalRequestWithdrawalcontracts/solana/programs/avelock_wallet/src/lib.rs:200
request_token_withdrawalRequestWithdrawalcontracts/solana/programs/avelock_wallet/src/lib.rs:234
cancel_withdrawalCancelWithdrawalcontracts/solana/programs/avelock_wallet/src/lib.rs:270
confirm_native_withdrawalConfirmNativeWithdrawalcontracts/solana/programs/avelock_wallet/src/lib.rs:283
confirm_token_withdrawalConfirmTokenWithdrawalcontracts/solana/programs/avelock_wallet/src/lib.rs:325
prune_requestPruneRequestcontracts/solana/programs/avelock_wallet/src/lib.rs:372
add_guardOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:387
remove_guardOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:397
cancel_guard_removalOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:405
finalize_guard_removalOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:412
lockOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:425
unlockOwnerOnlycontracts/solana/programs/avelock_wallet/src/lib.rs:433
guard_lockGuardActioncontracts/solana/programs/avelock_wallet/src/lib.rs:443
guard_cancel_param_changeGuardActioncontracts/solana/programs/avelock_wallet/src/lib.rs:452
guard_drop_pending_guardGuardActioncontracts/solana/programs/avelock_wallet/src/lib.rs:464
guard_cancel_withdrawalGuardCancelWithdrawalcontracts/solana/programs/avelock_wallet/src/lib.rs:473
guard_cancel_pending_addressGuardCancelPendingAddresscontracts/solana/programs/avelock_wallet/src/lib.rs:483

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
contracts/solana/programs/avelock_wallet/src/lib.rsPubkey, seeds, has_one, Program, transfer, init_if_needed
contracts/solana/tests/avelock_wallet.spec.tsKeypair, SystemProgram, PublicKey, transfer, getAssociatedTokenAddressSync, Connection
contracts/solana/programs/avelock_wallet/src/state.rsPubkey, transfer
contracts/solana/tests/layout.tsPublicKey, findProgramAddressSync, Program, seeds, Pubkey
contracts/solana/scripts/release-readiness.tsPublicKey, AccountInfo, Connection, Program, findProgramAddressSync, Pubkey
contracts/solana/programs/avelock_wallet/src/native_transfer.rsAccountInfo, Pubkey, transfer
contracts/solana/tests/unit/release-readiness.spec.tsPublicKey

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/avelockwallet/. 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
rpc-proxynpm run dev
rpc-proxynpm run start
rpc-proxynpm run test
rpc-proxynpm run deploy
contracts/utxonpm run build
contracts/utxonpm run test
contracts/tonnpm run start
contracts/tonnpm run build
contracts/tonnpm run test
contracts/solananpm run test
contracts/solanaanchor build
contracts/solanaanchor test
contracts/solanaanchor run test

What you could build from it