Registry / other / pallet-preimage

pallet-preimage

JSON →
library48.0.0rscratesunverified

FRAME pallet for storing preimages of hashes, used in Polkadot's on-chain governance and runtime upgrades.

# Cargo.toml [dependencies] pallet-preimage = "48.0.0"
INSTALL
IMPORT
SIG · PALLET-PREIMAGE
P
pallet-preimage
otherrustv48.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Pallet
use pallet_preimage::Pallet;

Demonstrates importing the preimage pallet for use in a Substrate runtime.

use pallet_preimage::Pallet; fn main() { // Pallet is typically used within a Substrate runtime configuration println!("Preimage pallet ready"); }
Debug
Known issues
gotchaRequires the `frame-support` and `frame-system` dependencies to be configured in the runtime.
fix
Ensure proper runtime configuration with `construct_runtime!` macro.
affects: >=48.0.0
Upgrade
Version history
48.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pallet-preimage — cargo add pallet-preimage · libregistry