Smart contracts for Derad Network on Somnia Shannon testnet.
This repository contains the core smart contracts for Derad Network's testnet deployment on Somnia Shannon. The system enables decentralized ADS-B data validation through a network of staked nodes.
ERC20 token with UUPS upgradeability.
- Symbol: ttDERAD
- Decimals: 18
- Total Supply: 1,000,000,000
Manages node registration, staking, and packet validation with on-chain signature verification.
Configuration:
- Minimum stake: 10,000 ttDERAD
- Ping interval: 22 minutes
- Reward per packet: 1 ttDERAD
- Pusher share: 25%
- Signer share: 75% (split equally)
- Unstake cooldown: 30 days
- Max signers per packet: 100
Node Registration: Nodes stake 10,000 ttDERAD to join the network. Staked tokens remain locked until the node unregisters and completes a 30-day cooldown period.
Online Status: Nodes ping the contract every 22 minutes to maintain online status. Missing the ping window marks the node as offline.
Packet Validation: ADS-B packets require signatures from 51% of online nodes. The submitter (pusher) must also be a registered, online node. All signatures are verified on-chain using ecrecover.
Reward Distribution: Each validated packet distributes 1 ttDERAD: 25% to the pusher, 75% split equally among signers. Rewards accumulate and can be claimed anytime.
Signature Requirements:
Signers must be sorted by address in ascending order for gas-efficient duplicate checking. The contract verifies each signature against the message hash: keccak256(packetHash, timestamp).