Sol.College

Structure lesson (licence does not allow quoting code)

Eplyx

Original
thomasdevving/Eplyx
SuperStack fork
Blockchains/Eplyx @ 51047d2
Stars
0
Last push (original)
2026-10-12
Languages
Rust, JavaScript, Python, CSS, Shell, TypeScript
Detected stack
Native Rust
Categories
Other
Licence
none detected: code not quoted on Sol.College

Architecture

601 source files. By extension: .rs ×435, .py ×93, .js ×70, .ts ×3.

Top-level directorySource files
engine309
scripts89
server71
frontend62
docs47
programs11
media7
(root)3

On-chain programs: docs/examples/phase-u3c-interface/scope/programs/scope, programs/eplyx-token-migration, programs/fixture-lending, programs/fixture-memo-candidate, programs/fixture-stake-pool-candidate, programs/fixture-stake-pool-config-candidate, programs/fixture-stake-pool-oversized-rollout-candidate, programs/fixture-stake-pool-rollout-candidate

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
SemanticTargetnative instruction variantengine/src/envelope.rs:9
TargetPrerequisitenative instruction variantengine/src/envelope.rs:10
ExecutionDependencynative instruction variantengine/src/envelope.rs:11
StandardCompanionnative instruction variantengine/src/envelope.rs:12
UnsupportedCompanionnative instruction variantengine/src/envelope.rs:13
SemanticTargetnative instruction variantengine/src/universal/model.rs:425
TargetPrerequisitenative instruction variantengine/src/universal/model.rs:426
ExecutionDependencynative instruction variantengine/src/universal/model.rs:427
StandardCompanionnative instruction variantengine/src/universal/model.rs:428
Upgradenative instruction variantengine/src/standard_programs/upgradeable_loader.rs:48
UpgradeKeepingBuffernative instruction variantengine/src/standard_programs/upgradeable_loader.rs:53
Othernative instruction variantengine/src/standard_programs/upgradeable_loader.rs:55
Undecodablenative instruction variantengine/src/standard_programs/upgradeable_loader.rs:56
Transfernative instruction variantengine/src/standard_programs/system.rs:29
initializeInitializedocs/examples/phase-u3c-interface/scope/programs/scope/src/lib.rs:45
reset_twapResetTwapdocs/examples/phase-u3c-interface/scope/programs/scope/src/lib.rs:96
approve_admin_cachedApproveAdminCacheddocs/examples/phase-u3c-interface/scope/programs/scope/src/lib.rs:111
close_mint_mapCloseMintMapdocs/examples/phase-u3c-interface/scope/programs/scope/src/lib.rs:125
processRefreshReservedocs/examples/phase-u3c-interface/klend/programs/klend/src/handlers/handler_refresh_reserve.rs:11
reclaim_rentReclaimRentdocs/examples/phase-u13-drift-witness/source/lib.rs:499
revert_fillRevertFilldocs/examples/phase-u13-drift-witness/source/lib.rs:520
update_user_open_orders_countUpdateUserIdledocs/examples/phase-u13-drift-witness/source/lib.rs:577
update_funding_rateUpdateFundingRatedocs/examples/phase-u13-drift-witness/source/lib.rs:743
update_prelaunch_oracleUpdatePrelaunchOracledocs/examples/phase-u13-drift-witness/source/lib.rs:747
initializeInitializedocs/examples/phase-u13-drift-witness/source/lib.rs:890
update_serum_vaultUpdateSerumVaultdocs/examples/phase-u13-drift-witness/source/lib.rs:1001
repeg_amm_curveRepegCurvedocs/examples/phase-u13-drift-witness/source/lib.rs:1200
update_perp_market_amm_oracle_twapRepegCurvedocs/examples/phase-u13-drift-witness/source/lib.rs:1204
reset_perp_market_amm_oracle_twapRepegCurvedocs/examples/phase-u13-drift-witness/source/lib.rs:1208
update_kAdminUpdateKdocs/examples/phase-u13-drift-witness/source/lib.rs:1212

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
docs/examples/phase-u9-freeze/runtime-source/solana-system-program-4.2.2/src/system_processor.rsPubkey, transfer
docs/examples/phase-u8-freeze/source/account-loader.rsPubkey, Keypair, Transaction, Program, transfer
docs/examples/phase-u3f-interface/agave/transaction_processor.rsPubkey, Transaction, Keypair, SystemProgram
programs/eplyx-token-migration/src/lib.rsPubkey, AccountInfo, invoke, invoke_signed, seeds, transfer
docs/examples/phase-u8-freeze/source/transaction-processor.rsPubkey, Program, Transaction, SystemProgram
docs/examples/phase-u9-freeze/runtime-source/litesvm-0.16.0/src/lib.rsVersionedTransaction, Keypair, Program, transfer, Transaction
docs/examples/phase-u3f-interface/runtime/litesvm-0.16.0/src/lib.rsVersionedTransaction, Keypair, Program, transfer, Transaction
engine/examples/u13_2c_sequence.rsseeds, VersionedTransaction
docs/examples/phase-u13-drift-witness/source/lib.rsPubkey, AccountInfo
engine/src/rollout/mod.rsProgram, transfer
docs/examples/phase-u9-freeze/runtime-source/solana-system-program-4.2.2/src/system_instruction.rsPubkey
engine/src/lifecycle/current.rsgetAccountInfo, Program, transfer

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/eplyx/. 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 start
.npm run build
.cargo build
.cargo test
.make all
.make compare
.make report
.make fixtures
.make impact-fixtures
.make governance-fixtures
.make test
.make test-artifacts

What you could build from it