Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions python/dao-voting-dashboard/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Environment Configuration

# BNB Chain Testnet RPC
RPC_URL=https://data-seed-prebsc-1-s1.bnbchain.org:8545

# Governance Contract Address (mock)
GOVERNANCE_CONTRACT_ADDRESS=0x1234567890123456789012345678901234567890

# Database
DATABASE_PATH=./data/dao_votes.db

# Server
HOST=0.0.0.0
PORT=8000

# Governance Rules
QUORUM_PERCENTAGE=20
APPROVAL_THRESHOLD_PERCENTAGE=50

# Demo Private Key (DO NOT USE IN PRODUCTION)
# Generate your own: from eth_account import Account; Account.create()
DEMO_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
57 changes: 57 additions & 0 deletions python/dao-voting-dashboard/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# Virtual environments
venv/
ENV/
env/
.venv

# IDEs
.vscode/
.idea/
*.swp
*.swo
*~

# Environment
.env
.env.local

# Database
*.db
*.sqlite
*.sqlite3
data/

# Testing
.pytest_cache/
.coverage
htmlcov/
.tox/

# Logs
*.log

# OS
.DS_Store
Thumbs.db
Loading