Smart Contracts
Contract Architecture
Overview
graph TD
A[TreemGovernanceToken] --> B[TreemGovernor]
A --> C[TreemStaking]
B --> D[TimelockController]
C --> A
C --> BContract Relationships
TreemGovernanceToken Contract
Contract Overview
Token Specifications
Distribution Allocation
Recipient
Amount
Percentage
Purpose
Key Functions
Events
TreemStaking Contract
Contract Overview
Staking Tiers
Constructor
Core Functions
Administrative Functions
Events
TreemGovernor Contract
Contract Overview
Governance Parameters
Core Functions
Proposal Execution
Events
TimelockController Contract
Overview
Configuration
Key Functions
Deployment Guide
Prerequisites
Deployment Sequence
Gas Estimates
Contract
Deployment Gas
Mainnet Cost (50 gwei)
Security Considerations
Access Controls
Reentrancy Protection
Time-Based Security
Integration Examples
Frontend Integration
Event Listening
Troubleshooting
Common Deployment Issues
Runtime Issues
Last updated