mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
Cherry-pick fix from https://github.com/moonbeam-foundation/moonbeam/pull/3540 for the Collective precompile. > In the `members` and `is_member` functions, the `MaxProposals` value was being used instead of `MaxMembers` to record gas costs for database access.
51 lines
1.5 KiB
TOML
51 lines
1.5 KiB
TOML
[package]
|
|
name = "pallet-evm-precompile-collective"
|
|
authors = { workspace = true }
|
|
description = "A Precompile wrapping the collective pallet."
|
|
edition = "2021"
|
|
version = "0.1.0"
|
|
|
|
[dependencies]
|
|
# Substrate
|
|
frame-support = { workspace = true }
|
|
frame-system = { workspace = true }
|
|
pallet-collective = { workspace = true }
|
|
parity-scale-codec = { workspace = true, features = ["max-encoded-len"] }
|
|
sp-core = { workspace = true }
|
|
sp-io = { workspace = true }
|
|
sp-runtime = { workspace = true }
|
|
sp-std = { workspace = true }
|
|
|
|
# Frontier
|
|
evm = { workspace = true, features = ["with-codec"] }
|
|
fp-account = { workspace = true }
|
|
fp-evm = { workspace = true }
|
|
pallet-evm = { workspace = true, features = ["forbid-evm-reentrancy"] }
|
|
precompile-utils = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
#similar-asserts = { workspace = true }
|
|
|
|
pallet-balances = { workspace = true, features = ["std"] }
|
|
pallet-timestamp = { workspace = true, features = ["std"] }
|
|
pallet-treasury = { workspace = true, features = ["std"] }
|
|
parity-scale-codec = { workspace = true, features = ["max-encoded-len"] }
|
|
precompile-utils = { workspace = true, features = ["std", "testing"] }
|
|
scale-info = { workspace = true, features = ["derive", "std"] }
|
|
sp-runtime = { workspace = true, features = ["std"] }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"fp-evm/std",
|
|
"frame-support/std",
|
|
"frame-system/std",
|
|
"pallet-collective/std",
|
|
"pallet-evm/std",
|
|
"parity-scale-codec/std",
|
|
"precompile-utils/std",
|
|
"sp-core/std",
|
|
"sp-io/std",
|
|
"sp-std/std",
|
|
]
|
|
runtime-benchmarks = []
|