Sol.College

Full lesson

AImour

Your AI needs a date

What it does

From the project README:

[](https://opensource.org/licenses/MIT) [](https://solana.com/) [](https://nextjs.org/)
Original
mreeddd/AImour
SuperStack fork
Blockchains/AImour @ bca510d
Stars
0
Last push (original)
2025-05-15
Languages
TypeScript, Python, Rust, CSS, JavaScript
Detected stack
AnchorNext.js
Categories
AI & Agents
Licence
MIT

Architecture

88 source files. By extension: .tsx ×71, .ts ×8, .py ×6, .rs ×3.

Top-level directorySource files
frontend79
ai-engine6
solana-programs3

On-chain programs: solana-programs/agent-registry, solana-programs/influence, solana-programs/relationship

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/aimour/. 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.

mreeddd/AImour · solana-programs/influence/src/lib.rs L241–264 @ bca510d · MIT · original
        init,        payer = authority,        space = 8 + std::mem::size_of::<MintConfig>() + 100, // Extra space for strings        seeds = [b"mint_config", mint.key().as_ref()],        bump    )]    pub mint_config: Account<'info, MintConfig>,        pub token_program: Program<'info, Token>,    pub system_program: Program<'info, System>,    pub rent: Sysvar<'info, Rent>,} #[derive(Accounts)]pub struct MintTokens<'info> {    #[account(mut)]    pub authority: Signer<'info>,        #[account(        mut,        constraint = mint_config.mint == mint.key(),        constraint = mint_config.authority == authority.key(),    )]    pub mint_config: Account<'info, MintConfig>,
  1. Line 241 init,: Creates and pays for a new account. Space and payer must be specified.
  2. Line 244 seeds = [b"mint_config", mint.key().as_ref()],: Declares the PDA seeds. Anchor re-derives the address and rejects the account if it doesn't match.
  3. Line 245 bump: Uses the bump seed, the extra byte that pushes the derived address off the ed25519 curve.
  4. Line 255 pub struct MintTokens<'info> {: Mints new tokens. The mint authority must sign.
  5. Line 257 pub authority: Signer<'info>,: Requires this account to have signed the transaction.
mreeddd/AImour · solana-programs/relationship/src/lib.rs L133–155 @ bca510d · MIT · original
    pub timestamp: i64,} // Context structs for instructions#[derive(Accounts)]pub struct CreateRelationship<'info> {    #[account(mut)]    pub authority: Signer<'info>,        pub agent_one: AccountInfo<'info>,    pub agent_two: AccountInfo<'info>,        #[account(        init,        payer = authority,        space = 8 + std::mem::size_of::<RelationshipData>(),        seeds = [b"relationship", agent_one.key().as_ref(), agent_two.key().as_ref()],        bump    )]    pub relationship_data: Account<'info, RelationshipData>,        pub system_program: Program<'info, System>,}
  1. Line 140 pub authority: Signer<'info>,: Requires this account to have signed the transaction.
  2. Line 146 init,: Creates and pays for a new account. Space and payer must be specified.
  3. Line 149 seeds = [b"relationship", agent_one.key().as_ref(), agent_two.key().as_ref()],: Declares the PDA seeds. Anchor re-derives the address and rejects the account if it doesn't match.
  4. Line 150 bump: Uses the bump seed, the extra byte that pushes the derived address off the ed25519 curve.
mreeddd/AImour · solana-programs/agent-registry/src/lib.rs L205–228 @ bca510d · MIT · original
pub struct MatchData {    pub agent_one: Pubkey,    pub agent_two: Pubkey,    pub compatibility_score: u8,    pub match_date: i64,    pub is_active: bool,} // Context structs for instructions#[derive(Accounts)]pub struct RegisterAgent<'info> {    #[account(mut)]    pub owner: Signer<'info>,     #[account(        init,        payer = owner,        space = 8 + std::mem::size_of::<AgentData>(),        seeds = [b"agent", owner.key().as_ref(), name.as_bytes()],        bump    )]    pub agent_data: Account<'info, AgentData>,     // Accounts needed for minting compressed NFT
  1. Line 217 pub owner: Signer<'info>,: Requires this account to have signed the transaction.
  2. Line 220 init,: Creates and pays for a new account. Space and payer must be specified.
  3. Line 223 seeds = [b"agent", owner.key().as_ref(), name.as_bytes()],: Declares the PDA seeds. Anchor re-derives the address and rejects the account if it doesn't match.
  4. Line 224 bump: Uses the bump seed, the extra byte that pushes the derived address off the ed25519 curve.

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 devnext dev
frontendnpm run startnext start
frontendnpm run buildnext build
frontendnpm run lintnext lint

What you could build from it

Used in lessons