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 directory | Source files |
|---|---|
DEADSGOLD | 23 |
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.
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>,}- Line 25
#[account(init, payer = user, space = 8 + 8)]: Creates and pays for a new account. Space and payer must be specified. - 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.
| Directory | Command | Runs |
|---|---|---|
DEADSGOLD/solana_program_example | anchor build | compile programs and generate IDLs |
DEADSGOLD/solana_program_example | anchor test | local validator + test suite |
DEADSGOLD/solana_program_example | anchor run test | yarn run ts-mocha -p ./tsconfig.json -t 1000000 'tests/**/*.ts' |
What you could build from it
- Fork the SuperStack copy and extend it within the Other gaps listed on the idea page.
- Learn the pattern first: Program Derived Addresses (PDAs)
- Learn the pattern first: Cross-Program Invocations (CPIs)