Skip to content
Merged
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
21 changes: 21 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Network Configuration
SEPOLIA_URL=https://sepolia.infura.io/v3/YOUR_INFURA_PROJECT_ID
MAINNET_URL=https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID

# Private Key (for deployment)
PRIVATE_KEY=your_private_key_here

# Gas Reporting
REPORT_GAS=true

# API Keys (for verification and external data)
ETHERSCAN_API_KEY=your_etherscan_api_key
INFURA_PROJECT_ID=your_infura_project_id

# Carbon Registry APIs
CARBON_REGISTRY_API_KEY=your_carbon_registry_api_key
VERIFICATION_API_KEY=your_verification_api_key

# Notification Settings
DISCORD_WEBHOOK_URL=your_discord_webhook_url
EMAIL_NOTIFICATIONS=true
63 changes: 48 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# Rust/Soroban
target/
Cargo.lock

# Node.js
# Dependencies
node_modules/
node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Rust/Soroban
target/
Cargo.lock

# Hardhat files
cache/
artifacts/
typechain-types/

# TypeScript
*.tsbuildinfo
dist/
Expand Down Expand Up @@ -40,18 +44,47 @@ Thumbs.db
logs
*.log

# Deployment files
deployments/
*.deploy.json
# Coverage
coverage/
coverage.json

# Security sensitive files
# Build outputs
dist/
build/

# Temporary files
*.tmp
*.temp
tmp/
temp/

# Gas reports
gas-report.txt
gas-usage-report.json

# Test outputs
test-results/
test-logs/

# Documentation build
docs/build/

# Local development
localhost/
local/

# Backup files
*.bak
*.backup

# Security
private-keys/
secrets/
*.key
*.pem
*.p12
secrets/
private/

# Temporary files
tmp/
temp/
*.tmp
# Deployment files
deployments/
*.deploy.json
38 changes: 38 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"extends": "solhint:recommended",
"plugins": [],
"rules": {
"compiler-version": ["error", "^0.8.19"],
"avoid-throw": "off",
"avoid-suicide": "error",
"avoid-sha3": "warn",
"constructor-syntax": "error",
"func-visibility": ["warn", { "ignoreConstructors": true }],
"gas-globals": "error",
"indent": ["error", 4],
"linter-length": "off",
"max-line-length": ["warn", 120],
"max-states-count": ["warn", 15],
"no-empty-blocks": "warn",
"no-global-imports": "error",
"no-imports-from-tests": "error",
"no-mix-tabs-and-spaces": "error",
"no-spaces-before-function-parentheses": "off",
"not-rely-on-time": "warn",
"operator-whitespace": "error",
"quotes": ["error", "double"],
"reason-string": ["warn", { "maxLength": 50 }],
"semicolon-whitespace": "error",
"solidity-constructor-align": "error",
"solidity-events-order": "error",
"solidity-modifiers-order": "error",
"solidity-ordered-imports": "error",
"solidity-private-vars-leading-underscore": "error",
"solidity-shorthand": "error",
"solidity-tuple-array-whitespace": "error",
"solidity-upgrade-to-0.8.0": "error",
"style-guide-casing": "error",
"var-name-mixedcase": "error",
"whitespace": "error"
}
}
Loading
Loading