mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
## Add Conviction Voting Precompile This PR introduces a new EVM precompile for conviction voting functionality, enabling smart contracts to interact with the Substrate conviction voting pallet. ### Key Changes - **New Precompile**: Added `ConvictionVotingPrecompile` at address `0x0000000000000000000000000000000000000812` (2066) - **Solidity Interface**: Complete Solidity interface (`ConvictionVoting.sol`) with all conviction voting operations - **Runtime Integration**: Integrated precompile across all runtime configurations (mainnet, testnet, stagenet) - **Comprehensive Testing**: Inherits test suite from Moonbeam ### Features - Vote casting with different conviction levels (None, Locked1x-6x) - Vote delegation and undelegation - Poll management and tallying - Support for all conviction voting pallet operations --------- Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com> Co-authored-by: Steve Degosserie <723552+stiiifff@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| ConvictionVoting.sol | ||