referrerpolicy=no-referrer-when-downgrade

Module v1

Source
👎Deprecated: ’The V1 benchmarking syntax is deprecated. Please use the V2 syntax. This warning may become a hard error any time after April 2025. For more info, see: https://github.com/paritytech/polkadot-sdk/pull/5995

Macros§

add_benchmark
This macro adds pallet benchmarks to a Vec<BenchmarkBatch> object.
benchmarks
Construct pallet benchmarks for weighing dispatchables.
whitelist
Whitelist the given account.

Structs§

HostFunctions
Provides implementations for the extern host functions.
System
The Pallet struct, the main type that implements traits and standalone functions within the pallet.

Enums§

RawOrigin
Origin for the System pallet.

Functions§

account
Grab an account, seeded by a name and index.
add_to_whitelist
commit_db
Commit pending storage changes to the trie database and clear the database cache.
current_time
Get the number of nanoseconds passed since the UNIX epoch, as u128 le-bytes.
get_read_and_written_keys
get_whitelist
Get the DB whitelist.
proof_size
Get current estimated proof size.
read_write_count
Get the read/write count.
remove_from_whitelist
reset_read_write_count
Reset the read/write count.
set_whitelist
Set the DB whitelist.
whitelisted_caller
This caller account is automatically whitelisted for DB reads/writes by the benchmarking macro.
wipe_db
Reset the trie database to the genesis state.