You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fully on-chain decentralized message board built on Arbitrum Sepolia
testnet. Users connect their wallet, compile string segments into a final
message using DAPP tokens, publish it permanently to the blockchain,
and view the complete transaction history — all from a mobile browser.
User approves DAPP tokens for StringCompiler
↓
Types first segment (max 80 chars) → Compile
→ FREE — saved on-chain
↓
Types additional segments → Compile
→ 10 DAPP charged per segment at publish
↓
Reviews compiled preview and token cost
↓
Taps Publish Message
→ Total DAPP cost charged at once
→ Combined string pushed to HelloWorld
→ Compiler state resets automatically
↓
Message appears on-chain permanently
History updates with cost and sender
⛽ Compile Pricing
Segments
DAPP Cost
1
0 DAPP (free)
2
10 DAPP
3
20 DAPP
4
30 DAPP
N
(N-1) × 10 DAPP
📊 Contract Architecture
User Wallet
↓ approve()
DAppToken (DAPP ERC-20)
↓ allowance granted to StringCompiler
StringCompiler
↑ compileString() — free, stores segments on-chain
↑ publishMessage() — charges DAPP, pushes to HelloWorld
↓ updateMessage() — restricted by onlyCompiler modifier
HelloWorld
↓ emits MessageUpdated event
Transaction History displayed in DApp
🔒 Security Features
onlyCompiler modifier — HelloWorld only accepts updates from StringCompiler
immutable owner — Owner set once at deployment, cannot be changed
Zero address check — Prevents setting compiler to invalid address
CompilerUpdated event — Logs every compiler change on-chain
XSS Protection — All user messages sanitized before display
Input Validation — Segments limited to 80 characters
Wallet Checks — All functions verify wallet connection before executing
Network Switching — Auto-switches to Arbitrum Sepolia on connect, logged as a DebugHub security check
msg.sender — Used instead of tx.origin to prevent phishing attacks
Privacy — Wallet addresses displayed in abbreviated form only
⛽ Gas & Transaction Handling
Automatically estimates gas for every transaction, with a 50% buffer on gasLimit
Fetches current network fee data via getFeeData(), with a 130% buffer on maxFeePerGas and maxPriorityFeePerGas (prevents "max fee per gas less than block base fee" on Arbitrum Sepolia)
Explicit nonce via getTransactionCount(address, "pending") on every write, preventing NONCE_EXPIRED after rapid sequential transactions
Compatible with MetaMask and Brave Wallet fee structures
🛰️ DebugHub Integration
This DApp reports telemetry to DebugHub, the shared diagnostics
dashboard for the 0xTimberzx ecosystem.
appName: "MessageBoard" — events stored under MessageBoard_sessions
Session starts on wallet connect, ends on disconnect / account switch / page unload