# seismicsystems/praxis-src20-test architecture

> Architecture diagram of the GitHub repository seismicsystems/praxis-src20-test, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/seismicsystems/praxis-src20-test
- Repository: https://github.com/seismicsystems/praxis-src20-test

## Overview

This repository is a small Praxis token interaction example, not a shared service: its scripts independently demonstrate wrapping native PRX into Praxis SRC20, unwrapping, token transfers, and a three-wallet end-to-end demo. Each script creates a shielded wallet client, submits transactions and checks receipts or balances against the Praxis devnet. The README documents all four entry points. The sampled sources show direct RPC interactions, so the graph omits speculative contract internals and depicts the devnet as an external system.

Main entry points: [`src/main.ts`](https://github.com/seismicsystems/praxis-src20-test/blob/main/src/main.ts) (Wallet demo), [`src/wrap.ts`](https://github.com/seismicsystems/praxis-src20-test/blob/main/src/wrap.ts) (Wrap PRX), [`src/unwrap.ts`](https://github.com/seismicsystems/praxis-src20-test/blob/main/src/unwrap.ts) (Unwrap token), [`src/send.ts`](https://github.com/seismicsystems/praxis-src20-test/blob/main/src/send.ts) (Send token)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflows["Token workflows"]
  node_demo["Wallet demo<br/>[main.ts]"]
  node_wrap["Wrap PRX<br/>[wrap.ts]"]
  node_unwrap["Unwrap token<br/>[unwrap.ts]"]
  node_send["Send token<br/>[send.ts]"]
end

subgraph group_chain["Chain access"]
  node_client["Shielded client<br/>[main.ts]"]
end

node_user(("Operator"))
node_devnet[("Praxis devnet")]

node_user -->|"runs demo"| node_demo
node_user -->|"runs wrap"| node_wrap
node_user -->|"runs unwrap"| node_unwrap
node_user -->|"runs send"| node_send
node_demo -->|"creates clients"| node_client
node_client -->|"reads and submits"| node_devnet
node_wrap -->|"deposits and reads"| node_devnet
node_unwrap -->|"withdraws and reads"| node_devnet
node_send -->|"transfers and reads"| node_devnet

click node_demo "https://github.com/seismicsystems/praxis-src20-test/blob/main/src/main.ts"
click node_wrap "https://github.com/seismicsystems/praxis-src20-test/blob/main/src/wrap.ts"
click node_unwrap "https://github.com/seismicsystems/praxis-src20-test/blob/main/src/unwrap.ts"
click node_send "https://github.com/seismicsystems/praxis-src20-test/blob/main/src/send.ts"
click node_client "https://github.com/seismicsystems/praxis-src20-test/blob/main/src/main.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_demo,node_wrap,node_unwrap,node_send toneBlue
class node_client,node_devnet toneAmber
class node_user toneIndigo
```

## Components

### Token workflows

- [Wallet demo](https://github.com/seismicsystems/praxis-src20-test/blob/main/src/main.ts): `src/main.ts`
- [Wrap PRX](https://github.com/seismicsystems/praxis-src20-test/blob/main/src/wrap.ts): `src/wrap.ts`
- [Unwrap token](https://github.com/seismicsystems/praxis-src20-test/blob/main/src/unwrap.ts): `src/unwrap.ts`
- [Send token](https://github.com/seismicsystems/praxis-src20-test/blob/main/src/send.ts): `src/send.ts`

### Chain access

- [Shielded client](https://github.com/seismicsystems/praxis-src20-test/blob/main/src/main.ts): `src/main.ts`

### Other components

- **Operator**
- **Praxis devnet**

## Connections

- Operator → Wallet demo: runs demo (evidence: `README.md`)
- Operator → Wrap PRX: runs wrap (evidence: `README.md`)
- Operator → Unwrap token: runs unwrap (evidence: `README.md`)
- Operator → Send token: runs send (evidence: `README.md`)
- Wallet demo → Shielded client: creates clients (evidence: `src/main.ts`)
- Shielded client → Praxis devnet: reads and submits (evidence: `src/main.ts`)
- Wrap PRX → Praxis devnet: deposits and reads (evidence: `src/wrap.ts`)
- Unwrap token → Praxis devnet: withdraws and reads (evidence: `src/unwrap.ts`)
- Send token → Praxis devnet: transfers and reads (evidence: `src/send.ts`)
