# nheoshikuyanhemo/pante architecture

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

- Interactive diagram: https://gitdiagram.com/nheoshikuyanhemo/pante
- Repository: https://github.com/nheoshikuyanhemo/pante

## Overview

Pante is a token project with a React site for token information and wallet-connected DEX access, alongside Arc-chain smart contracts and a separate legacy HTML client. The main browser workflow is to open the home or DEX route, connect a wallet, view token balance, and enter Synthra’s launchpad, swap, or liquidity flows. The contracts and legacy client are meaningful product branches, but their internal wiring is not established by the excerpts; deployment scripts are excluded.

Main entry points: [`src/main.tsx`](https://github.com/nheoshikuyanhemo/pante/blob/main/src/main.tsx) (React Bootstrap), [`src/App.tsx`](https://github.com/nheoshikuyanhemo/pante/blob/main/src/App.tsx) (Route Shell), [`src/pages/DexPage.tsx`](https://github.com/nheoshikuyanhemo/pante/blob/main/src/pages/DexPage.tsx) (DEX Page), [`src/contracts/PanteToken.ts`](https://github.com/nheoshikuyanhemo/pante/blob/main/src/contracts/PanteToken.ts) (Token & DEX Config)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Pante Web App"]
  node_bootstrap["React Bootstrap<br/>[main.tsx]"]
  node_app["Route Shell<br/>[App.tsx]"]
  node_header["Navigation &amp; Wallet<br/>[PanteHeader.tsx]"]
  node_home["Token Home<br/>[HomePage.tsx]"]
  node_dex["DEX Page<br/>[DexPage.tsx]"]
  node_footer["Social Footer<br/>[PanteFooter.tsx]"]
  node_tokenconfig["Token &amp; DEX Config<br/>[PanteToken.ts]"]
  node_chainfacts["Chain Facts<br/>[onchain-facts.ts]"]
  node_money["Onchain Money<br/>[onchain-money.ts]"]
  node_wait["Onchain Wait<br/>[onchain-wait.ts]"]
  node_walletconfig["Wallet Configuration<br/>[config.ts]"]
end

subgraph group_chain["Onchain Contracts"]
  node_token["Pante Token<br/>[PanteToken.sol]"]
  node_presale["Pante Presale<br/>[PantePresale.sol]"]
  node_vesting["Pante Vesting<br/>[PanteVesting.sol]"]
  node_locker["Liquidity Locker"]
  node_migrator["Liquidity Migrator"]
end

subgraph group_legacy["Legacy HTML Client"]
  node_legacyui["Legacy Site Scripts<br/>[script.js]"]
  node_legacywallet["Legacy Wallet Connect<br/>[wallet-reown.js]"]
  node_legacyi18n["Legacy Localization<br/>[i18n.js]"]
  node_legacyi18nen["English Strings<br/>[i18n.en.js]"]
  node_legacynft["NFT Interface<br/>[nft.js]"]
  node_appkit["AppKit Bundle<br/>[appkit-bundle.js]"]
end

subgraph group_observability["Runtime Instrumentation"]
  node_tracing["Transaction Tracing<br/>[tracing.ts]"]
  node_console["Console Capture<br/>[console-capture.ts]"]
end

node_visitor(("Visitor"))
node_synthra["Synthra DEX"]
node_arc["Arc Network"]

node_visitor -->|"opens app"| node_bootstrap
node_bootstrap -->|"renders"| node_app
node_bootstrap -->|"configures provider"| node_walletconfig
node_bootstrap -->|"loads instrumentation"| node_tracing
node_bootstrap -->|"loads instrumentation"| node_console
node_app -->|"renders"| node_header
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_dex
node_home -->|"renders"| node_footer
node_home -->|"reads balance"| node_tokenconfig
node_dex -->|"reads balance"| node_tokenconfig
node_dex -->|"embeds DEX"| node_synthra
node_dex -->|"bridges wallet state"| node_synthra
node_header -->|"uses DEX links"| node_tokenconfig
node_tokenconfig -->|"identifies token network"| node_arc
node_legacywallet -->|"loads bundle"| node_appkit
node_visitor -.->|"uses legacy site"| node_legacyui

click node_bootstrap "https://github.com/nheoshikuyanhemo/pante/blob/main/src/main.tsx"
click node_app "https://github.com/nheoshikuyanhemo/pante/blob/main/src/App.tsx"
click node_header "https://github.com/nheoshikuyanhemo/pante/blob/main/src/components/PanteHeader.tsx"
click node_home "https://github.com/nheoshikuyanhemo/pante/blob/main/src/pages/HomePage.tsx"
click node_dex "https://github.com/nheoshikuyanhemo/pante/blob/main/src/pages/DexPage.tsx"
click node_footer "https://github.com/nheoshikuyanhemo/pante/blob/main/src/components/PanteFooter.tsx"
click node_tokenconfig "https://github.com/nheoshikuyanhemo/pante/blob/main/src/contracts/PanteToken.ts"
click node_chainfacts "https://github.com/nheoshikuyanhemo/pante/blob/main/src/onchain-facts.ts"
click node_money "https://github.com/nheoshikuyanhemo/pante/blob/main/src/onchain-money.ts"
click node_wait "https://github.com/nheoshikuyanhemo/pante/blob/main/src/onchain-wait.ts"
click node_walletconfig "https://github.com/nheoshikuyanhemo/pante/blob/main/src/config.ts"
click node_token "https://github.com/nheoshikuyanhemo/pante/blob/main/contracts/PanteToken.sol"
click node_presale "https://github.com/nheoshikuyanhemo/pante/blob/main/contracts/PantePresale.sol"
click node_vesting "https://github.com/nheoshikuyanhemo/pante/blob/main/contracts/PanteVesting.sol"
click node_locker "https://github.com/nheoshikuyanhemo/pante/blob/main/contracts/PanteLiquidityLocker.sol"
click node_migrator "https://github.com/nheoshikuyanhemo/pante/blob/main/contracts/PanteLiquidityMigrator.sol"
click node_legacyui "https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/script.js"
click node_legacywallet "https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/wallet-reown.js"
click node_legacyi18n "https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/i18n.js"
click node_legacyi18nen "https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/i18n.en.js"
click node_legacynft "https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/nft.js"
click node_appkit "https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/appkit-bundle.js"
click node_tracing "https://github.com/nheoshikuyanhemo/pante/blob/main/src/tracing.ts"
click node_console "https://github.com/nheoshikuyanhemo/pante/blob/main/src/console-capture.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_bootstrap,node_app,node_header,node_home,node_dex,node_footer,node_tokenconfig,node_chainfacts,node_money,node_wait,node_walletconfig toneBlue
class node_token,node_presale,node_vesting,node_locker,node_migrator toneAmber
class node_legacyui,node_legacywallet,node_legacyi18n,node_legacyi18nen,node_legacynft,node_appkit toneMint
class node_tracing,node_console toneRose
class node_visitor,node_synthra,node_arc toneIndigo
```

## Components

### Pante Web App

- [React Bootstrap](https://github.com/nheoshikuyanhemo/pante/blob/main/src/main.tsx): `src/main.tsx`
- [Route Shell](https://github.com/nheoshikuyanhemo/pante/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation & Wallet](https://github.com/nheoshikuyanhemo/pante/blob/main/src/components/PanteHeader.tsx): `src/components/PanteHeader.tsx`
- [Token Home](https://github.com/nheoshikuyanhemo/pante/blob/main/src/pages/HomePage.tsx): `src/pages/HomePage.tsx`
- [DEX Page](https://github.com/nheoshikuyanhemo/pante/blob/main/src/pages/DexPage.tsx): `src/pages/DexPage.tsx`
- [Social Footer](https://github.com/nheoshikuyanhemo/pante/blob/main/src/components/PanteFooter.tsx): `src/components/PanteFooter.tsx`
- [Token & DEX Config](https://github.com/nheoshikuyanhemo/pante/blob/main/src/contracts/PanteToken.ts): `src/contracts/PanteToken.ts`
- [Chain Facts](https://github.com/nheoshikuyanhemo/pante/blob/main/src/onchain-facts.ts): `src/onchain-facts.ts`
- [Onchain Money](https://github.com/nheoshikuyanhemo/pante/blob/main/src/onchain-money.ts): `src/onchain-money.ts`
- [Onchain Wait](https://github.com/nheoshikuyanhemo/pante/blob/main/src/onchain-wait.ts): `src/onchain-wait.ts`
- [Wallet Configuration](https://github.com/nheoshikuyanhemo/pante/blob/main/src/config.ts): `src/config.ts`

### Onchain Contracts

- [Pante Token](https://github.com/nheoshikuyanhemo/pante/blob/main/contracts/PanteToken.sol): `contracts/PanteToken.sol`
- [Pante Presale](https://github.com/nheoshikuyanhemo/pante/blob/main/contracts/PantePresale.sol): `contracts/PantePresale.sol`
- [Pante Vesting](https://github.com/nheoshikuyanhemo/pante/blob/main/contracts/PanteVesting.sol): `contracts/PanteVesting.sol`
- [Liquidity Locker](https://github.com/nheoshikuyanhemo/pante/blob/main/contracts/PanteLiquidityLocker.sol): `contracts/PanteLiquidityLocker.sol`
- [Liquidity Migrator](https://github.com/nheoshikuyanhemo/pante/blob/main/contracts/PanteLiquidityMigrator.sol): `contracts/PanteLiquidityMigrator.sol`

### Legacy HTML Client

- [Legacy Site Scripts](https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/script.js): `html/js/script.js`
- [Legacy Wallet Connect](https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/wallet-reown.js): `html/js/wallet-reown.js`
- [Legacy Localization](https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/i18n.js): `html/js/i18n.js`
- [English Strings](https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/i18n.en.js): `html/js/i18n.en.js`
- [NFT Interface](https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/nft.js): `html/js/nft.js`
- [AppKit Bundle](https://github.com/nheoshikuyanhemo/pante/blob/main/html/js/appkit-bundle.js): `html/js/appkit-bundle.js`

### Runtime Instrumentation

- [Transaction Tracing](https://github.com/nheoshikuyanhemo/pante/blob/main/src/tracing.ts): `src/tracing.ts`
- [Console Capture](https://github.com/nheoshikuyanhemo/pante/blob/main/src/console-capture.ts): `src/console-capture.ts`

### Other components

- **Visitor**
- **Synthra DEX**
- **Arc Network**

## Connections

- Visitor → React Bootstrap: opens app (evidence: `src/main.tsx`)
- React Bootstrap → Route Shell: renders (evidence: `src/main.tsx`)
- React Bootstrap → Wallet Configuration: configures provider (evidence: `src/main.tsx`)
- React Bootstrap → Transaction Tracing: loads instrumentation (evidence: `src/main.tsx`)
- React Bootstrap → Console Capture: loads instrumentation (evidence: `src/main.tsx`)
- Route Shell → Navigation & Wallet: renders (evidence: `src/App.tsx`)
- Route Shell → Token Home: routes to (evidence: `src/App.tsx`)
- Route Shell → DEX Page: routes to (evidence: `src/App.tsx`)
- Token Home → Social Footer: renders (evidence: `src/pages/HomePage.tsx`)
- Token Home → Token & DEX Config: reads balance (evidence: `src/pages/HomePage.tsx`)
- DEX Page → Token & DEX Config: reads balance (evidence: `src/pages/DexPage.tsx`)
- DEX Page → Synthra DEX: embeds DEX (evidence: `src/pages/DexPage.tsx`)
- DEX Page → Synthra DEX: bridges wallet state (evidence: `src/pages/DexPage.tsx`)
- Navigation & Wallet → Token & DEX Config: uses DEX links (evidence: `src/components/PanteHeader.tsx`)
- Token & DEX Config → Arc Network: identifies token network (evidence: `src/contracts/PanteToken.ts`)
- Legacy Wallet Connect → AppKit Bundle: loads bundle (evidence: `html/js/wallet-reown.js`)
- Visitor → Legacy Site Scripts: uses legacy site
