forked from ghostchain/ghost-node
additional trait for the evm governance
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
parent
3b8030527b
commit
c7637d8ce6
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ghost-exodus"
|
name = "ghost-exodus"
|
||||||
version = "0.0.2"
|
version = "0.0.3"
|
||||||
description = "Threshold signature generation with DKG included"
|
description = "Threshold signature generation with DKG included"
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@ -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> {
|
impl<T: Config> OneSessionHandler<T::AccountId> for Pallet<T> {
|
||||||
type Key = T::AuthorityId;
|
type Key = T::AuthorityId;
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ghost-traits"
|
name = "ghost-traits"
|
||||||
version = "0.4.3"
|
version = "0.4.4"
|
||||||
description = "Shared traits including `GhostHasher`, `NetworkDataBasicHandler`, `BoundedBTreeMap`, `MerkleTree` and more."
|
description = "Shared traits including `GhostHasher`, `NetworkDataBasicHandler`, `BoundedBTreeMap`, `MerkleTree` and more."
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@ -118,3 +118,11 @@ pub trait MerkleTreeBuilder<A, E>: IdentifierConverter<A, E> {
|
|||||||
authority_index: A,
|
authority_index: A,
|
||||||
) -> Result<(), E>;
|
) -> 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;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user