mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
# Add Referenda Precompile This PR introduces the referenda precompile from Moonbeam to enable governance functionality through EVM calls. ## Changes Made - Added `operator/precompiles/referenda/` with complete implementation - Updated all runtime configs (mainnet, stagenet, testnet) to include the referenda precompile - Adapted track processing logic to work with DataHaven's runtime configuration - Adapted tests and mock according to our runtime --------- Co-authored-by: Steve Degosserie <723552+stiiifff@users.noreply.github.com>
55 lines
1.4 KiB
TOML
55 lines
1.4 KiB
TOML
[package]
|
|
name = "pallet-evm-precompile-referenda"
|
|
authors = { workspace = true }
|
|
description = "A Precompile to make pallet-referenda calls encoding accessible to pallet-evm"
|
|
edition = "2021"
|
|
version = "0.1.0"
|
|
|
|
[dependencies]
|
|
log = { workspace = true }
|
|
|
|
# Substrate
|
|
frame-support = { workspace = true }
|
|
frame-system = { workspace = true }
|
|
pallet-referenda = { workspace = true }
|
|
parity-scale-codec = { workspace = true, features = ["derive"] }
|
|
sp-core = { workspace = true }
|
|
sp-runtime = { workspace = true }
|
|
sp-std = { workspace = true }
|
|
|
|
# Frontier
|
|
fp-evm = { workspace = true }
|
|
pallet-evm = { workspace = true, features = ["forbid-evm-reentrancy"] }
|
|
precompile-utils = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
pallet-preimage = { workspace = true }
|
|
pallet-scheduler = { workspace = true }
|
|
|
|
# Moonbeam
|
|
precompile-utils = { workspace = true, features = ["std", "testing"] }
|
|
|
|
# Substrate
|
|
pallet-balances = { workspace = true }
|
|
pallet-timestamp = { workspace = true }
|
|
scale-info = { workspace = true, features = ["derive"] }
|
|
sp-io = { workspace = true }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"fp-evm/std",
|
|
"frame-support/std",
|
|
"frame-system/std",
|
|
"pallet-balances/std",
|
|
"pallet-evm/std",
|
|
"pallet-referenda/std",
|
|
"parity-scale-codec/std",
|
|
"precompile-utils/std",
|
|
"sp-runtime/std",
|
|
"sp-std/std",
|
|
]
|
|
runtime-benchmarks = [
|
|
"frame-support/runtime-benchmarks",
|
|
"frame-system/runtime-benchmarks",
|
|
]
|