Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVM support OpenGov #1296

Merged
merged 7 commits into from
Oct 18, 2023
Merged

EVM support OpenGov #1296

merged 7 commits into from
Oct 18, 2023

Conversation

boundless-forest
Copy link
Member

@boundless-forest boundless-forest commented Oct 17, 2023

Close #1295

There is a well tested precompile in the Moonbeam, reuse it to enable OpenGov functionality in the EVM. Note that Darwinia has a different precompile address fot it.

@boundless-forest boundless-forest marked this pull request as ready for review October 17, 2023 05:46
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link

Check c1cdba6 pangolin-dev

Check runtime version

Check runtime storage

+ Pallet: "ConvictionVoting"
- Pallet: "PhragmenElection"
+ Pallet: "Referenda"
- Pallet: "TechnicalMembership"
+ Pallet: "Whitelist"

Pallet DarwiniaStaking
+ Entry: StorageEntryMetadata { name: "Exposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 461, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Current stakers' exposure."] }
- Entry: StorageEntryMetadata { name: "Exposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 319, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Current stakers' exposure."] }
+ Entry: StorageEntryMetadata { name: "NextExposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 461, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Next stakers' exposure."] }
- Entry: StorageEntryMetadata { name: "NextExposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 319, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Next stakers' exposure."] }

@github-actions
Copy link

Check c1cdba6 crab-dev

Check runtime version

RuntimeVersion {
    spec_name: "Crab2",
    impl_name: "DarwiniaOfficialRust",
    authoring_version: 0,
-   spec_version: 6403,
+   spec_version: 6402,
    impl_version: 0,
    transaction_version: 0,
    state_version: 0,
}

Check runtime storage

Pallet DarwiniaStaking
+ Entry: StorageEntryMetadata { name: "Exposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 319, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Current stakers' exposure."] }
- Entry: StorageEntryMetadata { name: "Exposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 319, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Current stakers' exposure."] }
+ Entry: StorageEntryMetadata { name: "NextExposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 319, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Next stakers' exposure."] }
- Entry: StorageEntryMetadata { name: "NextExposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 319, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Next stakers' exposure."] }

@github-actions
Copy link

Check c1cdba6 pangoro-dev

Check runtime version

Check runtime storage

Pallet DarwiniaStaking
+ Entry: StorageEntryMetadata { name: "Exposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 314, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Current stakers' exposure."] }
- Entry: StorageEntryMetadata { name: "Exposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 314, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Current stakers' exposure."] }
+ Entry: StorageEntryMetadata { name: "NextExposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 314, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Next stakers' exposure."] }
- Entry: StorageEntryMetadata { name: "NextExposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 314, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Next stakers' exposure."] }

@github-actions
Copy link

Check c1cdba6 darwinia-dev

Check runtime version

RuntimeVersion {
    spec_name: "Darwinia2",
    impl_name: "DarwiniaOfficialRust",
    authoring_version: 0,
-   spec_version: 6403,
+   spec_version: 6402,
    impl_version: 0,
    transaction_version: 0,
    state_version: 0,
}

Check runtime storage

Pallet DarwiniaStaking
+ Entry: StorageEntryMetadata { name: "Exposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 319, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Current stakers' exposure."] }
- Entry: StorageEntryMetadata { name: "Exposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 319, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Current stakers' exposure."] }
+ Entry: StorageEntryMetadata { name: "NextExposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 319, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Next stakers' exposure."] }
- Entry: StorageEntryMetadata { name: "NextExposures", modifier: Optional, ty: Map { hashers: [Twox64Concat], key: UntrackedSymbol { id: 0, marker: PhantomData<fn() -> core::any::TypeId> }, value: UntrackedSymbol { id: 319, marker: PhantomData<fn() -> core::any::TypeId> } }, default: [0], docs: [" Next stakers' exposure."] }

@aurexav aurexav merged commit 98bab67 into main Oct 18, 2023
13 checks passed
@aurexav aurexav deleted the bear-evm-opengov branch October 18, 2023 07:35
@aurexav aurexav added the C-Precompile [Component] Something about precompile label Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Precompile [Component] Something about precompile
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

EVM support for OpenGov
2 participants