system
applyAuthorizedUpgrade(code: Bytes)
interface:
system.applyAuthorizedUpgradesummary: Provide the preimage (runtime binary)
codefor an upgrade that has been authorized.If the authorization required a version check, this call will ensure the spec name remains unchanged and that the spec version has increased.
Depending on the runtime’s
OnSetCodeconfiguration, this function may directly apply the newcodein the same block or attempt to schedule the upgrade.All origins are allowed.
authorizeUpgrade(code_hash: H256)
interface:
system.authorizeUpgradesummary: Authorize an upgrade to a given
code_hashfor the runtime. The runtime can be supplied later.This call requires Root origin.
authorizeUpgradeWithoutChecks(code_hash: H256)
interface:
system.authorizeUpgradeWithoutCheckssummary: Authorize an upgrade to a given
code_hashfor the runtime. The runtime can be supplied later.WARNING: This authorizes an upgrade that will take place without any safety checks, for example that the spec name remains the same and that the version number increases. Not recommended for normal use. Use
authorize_upgradeinstead.This call requires Root origin.
killPrefix(prefix: Bytes, subkeys: u32)
interface:
system.killPrefixsummary: Kill all storage items with a key that starts with the given prefix.
NOTE: We rely on the Root origin to provide us the number of subkeys under the prefix we are removing to accurately calculate the weight of this function.
killStorage(keys: Vec<Bytes>)
interface:
system.killStoragesummary: Kill some items from storage.
remark(remark: Bytes)
interface:
system.remarksummary: Make some on-chain remark.
Can be executed by every
origin.
remarkWithEvent(remark: Bytes)
interface:
system.remarkWithEventsummary: Make some on-chain remark and emit event.
setCode(code: Bytes)
interface:
system.setCodesummary: Set the new runtime code.
setCodeWithoutChecks(code: Bytes)
interface:
system.setCodeWithoutCheckssummary: Set the new runtime code without doing any checks of the given
code.Note that runtime upgrades will not run if this is called with a not-increasing spec version!
setHeapPages(pages: u64)
interface:
system.setHeapPagessummary: Set the number of pages in the WebAssembly environment’s heap.
setStorage(items: Vec<(Bytes,Bytes)>)
interface:
system.setStoragesummary: Set some items of storage.