Preimage

#14

Preimage storage for hashed data

Part of Utility & Tools: Batch operations, proxies, multisig, and scheduling

Filter by:
AlreadyNoted error v133 → v393 #1

A preimage with this hash has already been stored. Preimages are identified by the Blake2 hash of their content, so identical call data will always produce the same hash.

Cleared event v133 → v393 #2

A preimage has been cleared.

Emitted by: unnote_preimage, unrequest_preimage Modifies: PreimageFor, RequestStatusFor +1
AdminGovernancePreimage
ensure_updated call v151 → v393 #4

Ensures preimage status is current.

Modifies: PreimageFor, StatusFor
AdminGovernancePreimage
NotAuthorized error v133 → v393 #2

You are not authorized to remove (unnote) this preimage. Only the account that originally stored the preimage and paid the deposit can remove it.

note_preimage call v133 → v393 #0

Stores a preimage on-chain.

Emits: Noted Modifies: PreimageFor, StatusFor
AdminGovernancePreimage
Noted event v133 → v393 #0

A preimage has been stored on-chain.

Emitted by: note_preimage, unnote_preimage Modifies: PreimageFor, StatusFor
AdminGovernancePreimage
NotNoted error v133 → v393 #3

No preimage exists with this hash. The preimage was either never stored, already removed, or the hash is incorrect.

NotRequested error v133 → v393 #5

The preimage you are trying to unrequest is not currently in a requested state. It was either never requested or already unrequested.

PreimageFor storage v133 → v393

Actual preimage data stored by (hash, length).

Modified by: ensure_updated, note_preimage +1
AdminGovernancePreimage
request_preimage call v133 → v393 #2

Requests a preimage for use.

Emits: Requested Modifies: StatusFor, RequestStatusFor
AdminGovernancePreimage
Requested event v133 → v393 #1

A preimage has been requested.

Emitted by: request_preimage, unrequest_preimage Modifies: RequestStatusFor, StatusFor
AdminGovernancePreimage
Requested error v133 → v393 #4

This preimage is currently requested by the governance system (e.g., a pending proposal references it). It cannot be removed while something depends on it.

RequestStatusFor storage v151 → v393

Request status for preimages.

Modified by: request_preimage, unrequest_preimage
AdminGovernancePreimage
StatusFor storage v133 → v393

Status of a preimage by hash (deprecated).

Modified by: ensure_updated, note_preimage +3
AdminGovernancePreimage
TooBig error v133 → v393 #0

The preimage data exceeds the maximum allowed size. Preimages store encoded call data for deferred execution (e.g., governance proposals) and have a size limit to prevent state bloat.

TooFew error v151 → v393 #7

Cannot decrease the request reference count below zero. This typically indicates an internal bookkeeping issue where unrequest was called more times than request.

TooMany error v151 → v393 #6

The preimage has too many outstanding request references. There is a maximum number of concurrent requesters allowed per preimage.

unnote_preimage call v133 → v393 #1

Removes an unrequested preimage.

Emits: Noted, Cleared Modifies: PreimageFor, StatusFor
AdminGovernancePreimage
unrequest_preimage call v133 → v393 #3

Removes request for a preimage.

Emits: Requested, Cleared Modifies: StatusFor, RequestStatusFor
AdminGovernancePreimage

Related Pallets