The Glitch Gremlin governance system allows token holders to participate in decision-making through a democratic process. Key features include:
- On-chain proposal creation and voting
- Delegated voting power
- Staking with lockup periods
- Transparent vote tallying
- Timelock execution of passed proposals
- Emergency pause functionality
- Comprehensive security controls
- Real-time monitoring and alerts
- Automated proposal execution
- Multi-sig security for critical operations
- ProposalManager
- Handles proposal lifecycle
- Manages proposal metadata
- Enforces creation rules
- VoteTracker
- Manages voting and tallying
- Enforces voting rules
- Calculates voting power
- StakingPool
- Handles token staking
- Manages lockup periods
- Distributes rewards
- DelegationManager
- Manages voting power delegation
- Tracks delegated votes
- Enforces delegation rules
- TreasuryManager
- Manages protocol funds
- Handles allocations
- Enforces spending limits
- Multi-sig for critical operations
- Timelock for parameter changes
- Rate limiting for all operations
- Circuit breaker for emergencies
- Comprehensive access controls
- Real-time monitoring
- Automated alerts
- Incident response plan
- Minimum stake: 1000 GREMLINAI
- Proposal types:
- Protocol parameter changes
- Treasury allocations
- Chaos test campaigns
- Emergency measures
- Proposal metadata includes:
- Title
- Description
- Target program (if applicable)
- Test parameters (for chaos campaigns)
- Execution instructions
- Budget requirements
- Implementation timeline
- Duration: 3 days (configurable)
- Quorum: 10% of circulating supply
- Vote options: Yes/No/Abstain
- Voting power based on staked amount
- Delegated votes allowed
- Real-time vote tracking
- Transparent tallying
- Successful proposals enter timelock
- Execution delay: 24 hours
- Multi-sig execution for security
- Automated execution for simple proposals
- Failed proposals refund stake
- Comprehensive logging
import { GovernanceWorker } from '@glitch-gremlin/governance-worker'
import { useAppKitAccount } from '@reown/appkit/vue'
const { address } = useAppKitAccount()
// Initialize worker
const worker = new GovernanceWorker({
rpcUrl: 'https://api.devnet.solana.com',
programId: 'GremlinGov11111111111111111111111111111111111',
walletAddress: address
})
// Subscribe to governance events
worker.on('proposalCreated', (proposal) => {
console.log('New proposal:', proposal)
})
worker.on('voteCast', (vote) => {
console.log('Vote recorded:', vote)
})
// Start worker
await worker.start()
// Get all proposals
const proposals = await worker.getProposals()
// Get proposal details
const proposal = await worker.getProposal(proposalId)
// Get voting results
const results = await worker.getVoteResults(proposalId)
// Get staking info
const stakingInfo = await worker.getStakingInfo(address)
- Minimum stake: 1000 GREMLINAI
- Maximum stake: 1M GREMLINAI per address
- Lockup periods: 1 day to 1 year
- SP00GE token holder benefits:
- 2x voting power multiplier for SP00GE holders
- 25% bonus on staking rewards
- Early access to new features
- Exclusive governance proposals
- Higher voting power with longer lockups
- Rewards from protocol fees
- Early unstake penalty (50% of staked amount)
- Delegated staking support
- Auto-compounding rewards
- Real-time staking metrics
- Staking tiers with bonus rewards:
- Bronze: 1k-10k GREMLINAI
- Silver: 10k-100k GREMLINAI
- Gold: 100k+ GREMLINAI
- Multi-sig controlled (3/5 signatures)
- Funds allocated for:
- Governance proposals
- Community initiatives
- Protocol development
- Emergency reserves
- Transparent allocation tracking
- Monthly treasury reports
- Allocation limits per period
- Comprehensive audit trail
- 1 proposal per address per day
- 2 second cooldown between chaos requests
- Maximum 3 requests per minute
- Maximum 10 active proposals at once
- Cooldown period enforced between votes
- Exponential backoff for rate limiting
- Proposal creators: 5% of test fees
- Voters: Share of 2% fee pool
- Stakers: APY based on lockup duration
- Delegators: Share of staking rewards
- Community contributors: Grants from treasury
- Use multi-sig for all privileged operations
- Enable timelock for critical changes
- Monitor governance activity in real-time
- Use rate limiting to prevent abuse
- Implement emergency pause functionality
- Conduct regular security audits
- Maintain comprehensive documentation
- Use automated monitoring and alerts
- Implement incident response procedures
- Conduct regular security training