Sol.College

Structure lesson (licence does not allow quoting code)

Establo

A Multibacked Stablecoin on Solana Eco System pegged by USDT & Tokenized Real Estate Bridging the Gap between the Most Monetized Real World Asset with Most Stable Currencies on Planet

Original
Itshbhere/Establo
SuperStack fork
Blockchains/Establo @ 85bc9e8
Stars
4
Last push (original)
2025-11-11
Languages
TypeScript, Rust, JavaScript, Shell, CSS, Batchfile
Detected stack
AnchorNext.jsweb3.js
Categories
DeFi
Licence
none detected: code not quoted on Sol.College

Architecture

53 source files. By extension: .tsx ×22, .ts ×15, .rs ×9, .js ×7.

Top-level directorySource files
frontend43
backend9
src1

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
initializeInitializebackend/src/rwa_marketplace.rs:21
Initializenative instruction variantbackend/src/instruction.rs:24
transferStablecoinTransferbackend/src/lib.rs:44
mintMintTokensbackend/src/lib.rs:96
burnBurnTokensbackend/src/lib.rs:121
get_reservesGetReservesbackend/src/lib.rs:145
update_dao_accountUpdateDaobackend/src/lib.rs:182
get_dao_contributionsGetDaoContributionsbackend/src/lib.rs:203
mintMintStablecoinsrc/stablecoin.rs:43
burnBurnStablecoinsrc/stablecoin.rs:94
transferStablecoinTransfersrc/stablecoin.rs:129
update_dao_accountUpdateDaosrc/stablecoin.rs:180
get_dao_contributionsGetDaoContributionssrc/stablecoin.rs:199

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
frontend/types/solana-adapter.d.tsTransaction, VersionedTransaction, PublicKey, signTransaction, Connection, sendTransaction
frontend/src/services/stablecoin-service.tsPublicKey, getAssociatedTokenAddress, Program, sendTransaction, Transaction, Connection
backend/src/rwa_marketplace.rsPubkey, AccountInfo, seeds, Program, CpiContext, transfer
frontend/lib/hooks/useRWAMarketplace.tsxPublicKey, getAssociatedTokenAddress, findProgramAddressSync, sendTransaction, SystemProgram, useConnection
frontend/types/solana.d.tsTransaction, PublicKey, Connection, VersionedTransaction, sendTransaction, AnchorProvider
src/stablecoin.rsPubkey, CpiContext, Program, seeds, transfer, has_one
frontend/types/solana-web3.d.tsPublicKey, Transaction, seeds, Connection, getBalance, getProgramAccounts
frontend/types/solana-spl-token.d.tsPublicKey, Transaction, getAssociatedTokenAddress, createTransferInstruction, mintTo
frontend/src/services/establo-service.jsPublicKey, transfer, Transaction, getAssociatedTokenAddress, Connection, SystemProgram
backend/src/lib.rsPubkey, Program, CpiContext, transfer, seeds
backend/tests/rwa-marketplace-integration.jsPublicKey, SystemProgram, createMint, Keypair, getAssociatedTokenAddress, requestAirdrop
frontend/lib/hooks/useStablecoin.tsxPublicKey, getAssociatedTokenAddress, sendTransaction, useConnection, Program, AnchorProvider

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/establo/. 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
frontendnpm run dev
frontendnpm run start
frontendnpm run build
frontendnpm run lint
backendanchor build
backendanchor test
backendanchor run test
backendanchor run test-rwa

What you could build from it