How hardiext/wrokchain works
Workchain appears to be a Web3 work-agreement application: a client creates and funds a milestone-based project, while workers and clients can view projects and act on agreements and milestone submissions. The sampled creation page submits a contract transaction and parses its ProjectCreated event; the dashboard reads contract state. Other route capabilities and contract interactions are inferred only from the route tree and ABI, so those links are left unverified where source excerpts do not establish them.
Main entry points: WorkChainAgreement.sol Work agreement · ABI.ts WorkChain ABI · common.ts Ethers shared types · page.tsx Create project
Components 17
Application routes
- Home
src/app/page.tsx - Create project
src/app/create/page.tsx - Project dashboard
src/app/dashboard/page.tsx - Project details
src/app/project/[id]/page.tsx - Address records
src/app/records/[address]/page.tsx - Project verification
src/app/verify/[id]/page.tsx
Agreement contract
- Work agreement
contracts/WorkChainAgreement.sol
Wallet and chain
- Wallet providers
src/components/provider.tsx - Sepolia configuration
src/lib/wagmi.ts
Contract bindings
- WorkChain ABI
src/constants/ABI.ts - Typed agreement
types/ethers-contracts/WorkChainAgreement.ts - Agreement factory
types/ethers-contracts/factories/WorkChainAgreement__factory.ts - Ethers shared types
types/ethers-contracts/common.ts - Counter bindings
types/ethers-contracts/Counter.ts - Counter factory
types/ethers-contracts/factories/Counter__factory.ts
Other components
- Client or worker
- Sepolia network
Connections 25
- Client or worker → Home: opens
- Client or worker → Create project: creates project
- Client or worker → Project dashboard: views projects
- Client or worker → Project details: views details
- Client or worker → Address records: views records
- Client or worker → Project verification: checks project
- Create project → WorkChain ABI: uses ABI
src/app/create/page.tsx - Project dashboard → WorkChain ABI: uses ABI
src/app/dashboard/page.tsx - Project details → WorkChain ABI: uses ABI
src/app/project/[id]/page.tsx - Address records → WorkChain ABI: uses ABI
src/app/records/[address]/page.tsx - Project verification → WorkChain ABI: uses ABI
src/app/verify/[id]/page.tsx - Create project → Work agreement: submits project
- Project dashboard → Work agreement: reads projects
- Project details → Work agreement: reads or updates
- Address records → Work agreement: reads records
- Project verification → Work agreement: checks state
- Wallet providers → Sepolia configuration: loads config
src/components/provider.tsx - Wallet providers → Sepolia network: provides wallet access
- Sepolia configuration → Sepolia network: configures RPC
src/lib/wagmi.ts - Agreement factory → Typed agreement: types contract
types/ethers-contracts/factories/WorkChainAgreement__factory.ts - Agreement factory → Ethers shared types: uses shared types
types/ethers-contracts/factories/WorkChainAgreement__factory.ts - Typed agreement → Ethers shared types: uses shared types
types/ethers-contracts/WorkChainAgreement.ts - Counter factory → Counter bindings: types contract
types/ethers-contracts/factories/Counter__factory.ts - Counter factory → Ethers shared types: uses shared types
types/ethers-contracts/factories/Counter__factory.ts - Counter bindings → Ethers shared types: uses shared types
types/ethers-contracts/Counter.ts