Sol.College

Full lesson

DEADLOCK-NETWORK

What it does

From the project README:

DEADLOCK-NETWORK is an ambitious project integrating blockchain technology, artificial intelligence, and decentralized applications to create a unique ecosystem. At its core, it features a custom blockchain, a Solana-based token (`DEADSGOLD`), and AI-driven agents (Deep Q-Networks) that interact with the network, potentially for mining, trading, or other decentralized operations.
Original
Deadsg/DEADLOCK-NETWORK
SuperStack fork
Blockchains/DEADLOCK-NETWORK @ 8912a12
Stars
2
Last push (original)
2025-11-10
Languages
Python, TypeScript, Nix, Shell, Rust, Batchfile
Detected stack
Anchorsolana-py
Categories
Other
Licence
MIT

Architecture

23 source files. By extension: .py ×21, .ts ×1, .rs ×1.

Top-level directorySource files
DEADSGOLD23

On-chain programs: DEADSGOLD/solana_program_example/programs/hello_world

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/deadlock-network/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

Key code, explained

Excerpts chosen automatically where the code uses the most Solana concepts, pinned to the fork's commit.

Deadsg/DEADLOCK-NETWORK · DEADSGOLD/solana_program_example/programs/hello_world/src/lib.rs L13–36 @ 8912a12 · MIT · original
        Ok(())    }     pub fn increment(ctx: Context<Increment>) -> Result<()> {        let base_account = &mut ctx.accounts.base_account;        base_account.count += 1;        Ok(())    }} #[derive(Accounts)]pub struct Initialize<'info> {    #[account(init, payer = user, space = 8 + 8)]    pub base_account: Account<'info, BaseAccount>,    #[account(mut)]    pub user: Signer<'info>,    pub system_program: Program<'info, System>,} #[derive(Accounts)]pub struct Increment<'info> {    #[account(mut)]    pub base_account: Account<'info, BaseAccount>,}
  1. Line 25 #[account(init, payer = user, space = 8 + 8)]: Creates and pays for a new account. Space and payer must be specified.
  2. Line 28 pub user: Signer<'info>,: Requires this account to have signed the transaction.

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
DEADSGOLD/solana_program_exampleanchor buildcompile programs and generate IDLs
DEADSGOLD/solana_program_exampleanchor testlocal validator + test suite
DEADSGOLD/solana_program_exampleanchor run testyarn run ts-mocha -p ./tsconfig.json -t 1000000 'tests/**/*.ts'

What you could build from it

Used in lessons