additional trait for the evm governance

Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
Uncle Stinky 2026-09-05 23:34:33 +03:00
parent 3b8030527b
commit c7637d8ce6
Signed by: st1nky
GPG Key ID: 016064BD97603B40
4 changed files with 66 additions and 44 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "ghost-exodus"
version = "0.0.2"
version = "0.0.3"
description = "Threshold signature generation with DKG included"
license.workspace = true
authors.workspace = true

View File

@ -4875,6 +4875,20 @@ impl<T: Config> BlockNumberProvider for Pallet<T> {
}
}
impl<T: Config> EvmGovernanceRegistrar<NetworkIdOf<T>, EvmAddress, GovernanceAction> for Pallet<T> {
fn register_evm_governance_action(
network_id: NetworkIdOf<T>,
target_address: EvmAddress,
governance_action: GovernanceAction,
) -> DispatchResult {
Self::do_register_evm_governance(
network_id,
target_address,
governance_action,
)
}
}
impl<T: Config> OneSessionHandler<T::AccountId> for Pallet<T> {
type Key = T::AuthorityId;

View File

@ -1,6 +1,6 @@
[package]
name = "ghost-traits"
version = "0.4.3"
version = "0.4.4"
description = "Shared traits including `GhostHasher`, `NetworkDataBasicHandler`, `BoundedBTreeMap`, `MerkleTree` and more."
license.workspace = true
authors.workspace = true

View File

@ -118,3 +118,11 @@ pub trait MerkleTreeBuilder<A, E>: IdentifierConverter<A, E> {
authority_index: A,
) -> Result<(), E>;
}
pub trait EvmGovernanceRegistrar<NetworkId, EvmAddress, GovernanceAction> {
fn register_evm_governance_action(
network_id: NetworkId,
target_address: EvmAddress,
governance_action: GovernanceAction
) -> frame_support::dispatch::DispatchResult;
}