👎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§
- Host
Functions - 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.