Struct node_runtime::Runtime [−][src]
pub struct Runtime;
Implementations
Trait Implementations
impl AccountNonceApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime
impl AccountNonceApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime
Get current account nonce of given AccountId
.
impl AuthorityDiscoveryApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl AuthorityDiscoveryApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Retrieve authority identifiers of the current and next authority set.
impl BabeApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl BabeApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Return the genesis configuration for BABE. The configuration is only read on genesis.
Returns the slot that started the current epoch.
Returns information regarding the current epoch.
Returns information regarding the next epoch (which was already previously announced). Read more
fn generate_key_ownership_proof(
_slot: Slot,
authority_id: AuthorityId
) -> Option<OpaqueKeyOwnershipProof>
fn generate_key_ownership_proof(
_slot: Slot,
authority_id: AuthorityId
) -> Option<OpaqueKeyOwnershipProof>
Generates a proof of key ownership for the given authority in the
current epoch. An example usage of this module is coupled with the
session historical module to prove that a given authority key is
tied to a given staking identity during a specific session. Proofs
of key ownership are necessary for submitting equivocation reports.
NOTE: even though the API takes a slot
as parameter the current
implementations ignores this parameter and instead relies on this
method being called at the correct block height, i.e. any point at
which the epoch for the given slot is live on-chain. Future
implementations will instead use indexed data through an offchain
worker, not requiring older states to be available. Read more
fn submit_report_equivocation_unsigned_extrinsic(
equivocation_proof: EquivocationProof<<Block as BlockT>::Header>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Option<()>
fn submit_report_equivocation_unsigned_extrinsic(
equivocation_proof: EquivocationProof<<Block as BlockT>::Header>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Option<()>
Submits an unsigned extrinsic to report an equivocation. The caller
must provide the equivocation proof and a key ownership proof
(should be obtained using generate_key_ownership_proof
). The
extrinsic will be unsigned and should only be accepted for local
authorship (not to be broadcast to the network). This method returns
None
when creation of the extrinsic fails, e.g. if equivocation
reporting is disabled for the given runtime (i.e. this method is
hardcoded to return None
). Only useful in an offchain context. Read more
impl Benchmark<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl Benchmark<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Get the benchmark metadata available for this runtime. Read more
Dispatch the given benchmark.
impl BlockBuilder<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl BlockBuilder<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Apply the given extrinsic. Read more
Finish the current block.
Generate inherent extrinsics. The inherent data will vary from chain to chain.
Check that the inherents are valid. The inherent data will vary from chain to chain.
type BaseCallFilter = Everything
type BaseCallFilter = Everything
The basic call filter to use in Origin. All origins are built with this filter as base, except Root. Read more
type BlockWeights = RuntimeBlockWeights
type BlockWeights = RuntimeBlockWeights
Block & extrinsics weights: base values and limits.
type BlockLength = RuntimeBlockLength
type BlockLength = RuntimeBlockLength
The maximum length of a block (in bytes).
type DbWeight = RocksDbWeight
type DbWeight = RocksDbWeight
The weight of runtime database operations the runtime can invoke.
Account index (aka nonce) type. This stores the number of previous transactions associated with a sender account. Read more
type BlockNumber = BlockNumber
type BlockNumber = BlockNumber
The block number type used by the runtime.
type Hashing = BlakeTwo256
type Hashing = BlakeTwo256
The hashing system (algorithm) being used in the runtime (e.g. Blake2).
type Header = Header<BlockNumber, BlakeTwo256>
type Header = Header<BlockNumber, BlakeTwo256>
The block header.
type BlockHashCount = BlockHashCount
type BlockHashCount = BlockHashCount
Maximum number of block number to block hash mappings to keep (oldest pruned first).
type PalletInfo = PalletInfo
type PalletInfo = PalletInfo
Provides information about the pallet setup in the runtime. Read more
type AccountData = AccountData<Balance>
type AccountData = AccountData<Balance>
Data to be associated with an account (other than nonce/transaction counter, which this pallet does regardless). Read more
type OnNewAccount = ()
type OnNewAccount = ()
Handler for when a new account has just been created.
type OnKilledAccount = ()
type OnKilledAccount = ()
A function that is invoked when an account has been determined to be dead. Read more
type SystemWeightInfo = SubstrateWeight<Runtime>
type SS58Prefix = SS58Prefix
type SS58Prefix = SS58Prefix
The designated SS85 prefix of this chain. Read more
The maximum number of locks that should exist on an account. Not strictly enforced, but used for weight estimation. Read more
type MaxReserves = MaxReserves
type MaxReserves = MaxReserves
The maximum number of named reserves that can exist on an account.
type ReserveIdentifier = [u8; 8]
type ReserveIdentifier = [u8; 8]
The id type for named reserves.
type DustRemoval = ()
type DustRemoval = ()
Handler for the unbalanced reduction when removing a dust account.
The minimum amount required to keep an account open.
type AccountStore = Pallet<Runtime>
type AccountStore = Pallet<Runtime>
The means of storing the balances of an account.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
Prefix for elements stored in the Off-chain DB via Indexing API. Read more
type WeightInfo = ()
type WeightInfo = ()
Weights for this pallet.
type PalletId = TreasuryPalletId
type PalletId = TreasuryPalletId
The treasury’s pallet id, used for deriving its sovereign account ID.
Origin from which approvals must come.
Origin from which rejections must come.
Handler for the unbalanced decrease when slashing for a rejected proposal or bounty.
type ProposalBond = ProposalBond
type ProposalBond = ProposalBond
Fraction of a proposal’s value that should be bonded in order to place the proposal. An accepted proposal gets these back. A rejected proposal does not. Read more
Minimum amount of funds that should be placed in a deposit for making a proposal.
type SpendPeriod = SpendPeriod
type SpendPeriod = SpendPeriod
Period between successive spends.
type BurnDestination = ()
type BurnDestination = ()
Handler for the unbalanced decrease when treasury funds are burned.
type SpendFunds = Bounties
type SpendFunds = Bounties
Runtime hooks to external pallet using treasury to compute spend funds.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type MaxApprovals = MaxApprovals
type MaxApprovals = MaxApprovals
The maximum number of approvals that can wait in the spending queue.
type ForceOrigin = EnsureRoot<AccountId>
type ForceOrigin = EnsureRoot<AccountId>
The origin which may forcibly create or destroy an asset or otherwise alter privileged attributes. Read more
type AssetDeposit = AssetDeposit
type AssetDeposit = AssetDeposit
The basic amount of funds that must be reserved for an asset.
The basic amount of funds that must be reserved when adding metadata to your asset.
The additional funds that must be reserved for the number of bytes you store in your metadata. Read more
type ApprovalDeposit = ApprovalDeposit
type ApprovalDeposit = ApprovalDeposit
The amount of funds that must be reserved when creating a new approval.
type StringLimit = StringLimit
type StringLimit = StringLimit
The maximum length of a name or symbol stored on-chain.
A hook to allow a per-asset, per-account minimum balance to be enforced. This must be respected in all permissionless operations. Read more
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type InstanceId = u32
type InstanceId = u32
The type used to identify a unique asset within an asset class.
type ForceOrigin = EnsureRoot<AccountId>
type ForceOrigin = EnsureRoot<AccountId>
The origin which may forcibly create or destroy an asset or otherwise alter privileged attributes. Read more
type ClassDeposit = ClassDeposit
type ClassDeposit = ClassDeposit
The basic amount of funds that must be reserved for an asset class.
type InstanceDeposit = InstanceDeposit
type InstanceDeposit = InstanceDeposit
The basic amount of funds that must be reserved for an asset instance.
The basic amount of funds that must be reserved when adding metadata to your asset.
The basic amount of funds that must be reserved when adding an attribute to an asset.
The additional funds that must be reserved for the number of bytes store in metadata, either “normal” metadata or attribute metadata. Read more
type StringLimit = StringLimit
type StringLimit = StringLimit
The maximum length of data stored on-chain.
type ValueLimit = ValueLimit
type ValueLimit = ValueLimit
The maximum length of an attribute value.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type PalletId = SocietyPalletId
type PalletId = SocietyPalletId
The societies’s module id
Something that provides randomness in the runtime.
type CandidateDeposit = CandidateDeposit
type CandidateDeposit = CandidateDeposit
The minimum amount of a deposit required for a bid to be made.
The amount of the unpaid reward that gets deducted in the case that either a skeptic doesn’t vote or someone votes in the wrong way. Read more
type MaxStrikes = MaxStrikes
type MaxStrikes = MaxStrikes
The number of times a member may vote the wrong way (or not at all, when they are a skeptic) before they become suspended. Read more
type PeriodSpend = PeriodSpend
type PeriodSpend = PeriodSpend
The amount of incentive paid within each period. Doesn’t include VoterTip.
type MembershipChanged = ()
type MembershipChanged = ()
The receiver of the signal for when the members have changed.
type RotationPeriod = RotationPeriod
type RotationPeriod = RotationPeriod
The number of blocks between candidate/membership rotation periods.
type MaxLockDuration = MaxLockDuration
type MaxLockDuration = MaxLockDuration
The maximum duration of the payout lock.
type FounderSetOrigin = EnsureProportionMoreThan<_1, _2, AccountId, Instance1>
type FounderSetOrigin = EnsureProportionMoreThan<_1, _2, AccountId, Instance1>
The origin that is allowed to call found
.
The origin that is allowed to make suspension judgements.
The maximum number of candidates that we accept per round.
type ChallengePeriod = ChallengePeriod
type ChallengePeriod = ChallengePeriod
The number of blocks between membership challenges.
The time-out for council motions.
type MaxProposals = CouncilMaxProposals
type MaxProposals = CouncilMaxProposals
Maximum number of proposals allowed to be active in parallel.
type MaxMembers = CouncilMaxMembers
type MaxMembers = CouncilMaxMembers
The maximum number of members supported by the pallet. Used for weight estimation. Read more
type DefaultVote = PrimeDefaultVote
type DefaultVote = PrimeDefaultVote
Default vote strategy of this collective.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type AddOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
type AddOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
Required origin for adding a member (though can always be Root).
Required origin for removing a member (though can always be Root).
type SwapOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
type SwapOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
Required origin for adding and removing a member in a single action.
type ResetOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
type ResetOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
Required origin for resetting membership.
type PrimeOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
type PrimeOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
Required origin for setting or resetting the prime member.
The receiver of the signal for when the membership has been initialized. This happens pre-
genesis and will usually be the same as MembershipChanged
. If you need to do something
different on initialization, then you can change this accordingly. Read more
The receiver of the signal for when the membership has changed.
type MaxMembers = TechnicalMaxMembers
type MaxMembers = TechnicalMaxMembers
The maximum number of members that this membership can have. Read more
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
The time-out for council motions.
Maximum number of proposals allowed to be active in parallel.
type MaxMembers = TechnicalMaxMembers
type MaxMembers = TechnicalMaxMembers
The maximum number of members supported by the pallet. Used for weight estimation. Read more
type DefaultVote = PrimeDefaultVote
type DefaultVote = PrimeDefaultVote
Default vote strategy of this collective.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type CallFilter = Nothing
type CallFilter = Nothing
The safest default is to allow no calls at all.
Runtimes should whitelist dispatchables that are allowed to be called from contracts
and make sure they are stable. Dispatchables exposed to contracts are not allowed to
change because that would break already deployed contracts. The Call
structure itself
is not allowed to change the indices of existing pallets, too.
The time implementation used to supply timestamps to conntracts through seal_now
.
The generator used to supply randomness to contracts through seal_random
.
type RentPayment = ()
type RentPayment = ()
Handler for rent payments.
Number of block delay an extrinsic claim surcharge has. Read more
type TombstoneDeposit = TombstoneDeposit
type TombstoneDeposit = TombstoneDeposit
The minimum amount required to generate a tombstone.
The balance every contract needs to deposit to stay alive indefinitely. Read more
The balance a contract needs to deposit per storage byte to stay alive indefinitely. Read more
The balance a contract needs to deposit per storage item to stay alive indefinitely. Read more
type RentFraction = RentFraction
type RentFraction = RentFraction
The fraction of the deposit that should be used as rent per block. Read more
type SurchargeReward = SurchargeReward
type SurchargeReward = SurchargeReward
Reward that is received by the party whose touch has led to removal of a contract. Read more
The type of the call stack determines the maximum nesting depth of contract calls. Read more
type WeightPrice = Pallet<Self>
type WeightPrice = Pallet<Self>
Used to answer contracts’ queries regarding the current weight price. This is not used to calculate the actual fee and is only for informational purposes. Read more
type WeightInfo = SubstrateWeight<Self>
type WeightInfo = SubstrateWeight<Self>
Describes the weights of the dispatchables of this module and is also used to construct a default cost schedule. Read more
type ChainExtension = ()
type ChainExtension = ()
Type that allows the runtime authors to add new host functions for a contract to call.
The maximum number of tries that can be queued for deletion.
The maximum amount of weight that can be consumed per block for lazy trie removal.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type AccountIndex = AccountIndex
type AccountIndex = AccountIndex
Type used for storing an account’s index; implies the maximum number of accounts the system can hold. Read more
type Deposit = IndexDeposit
type Deposit = IndexDeposit
The deposit needed for reserving an index.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type ExternalOrigin = EnsureProportionAtLeast<_1, _2, AccountId, Instance1>
type ExternalOrigin = EnsureProportionAtLeast<_1, _2, AccountId, Instance1>
A straight majority of the council can decide what their next motion is.
A super-majority can have the next scheduled referendum be a straight majority-carries vote.
A unanimous council can have the next scheduled referendum be a straight default-carries (NTB) vote.
type FastTrackOrigin = EnsureProportionAtLeast<_2, _3, AccountId, Instance2>
type FastTrackOrigin = EnsureProportionAtLeast<_2, _3, AccountId, Instance2>
Two thirds of the technical committee can have an ExternalMajority/ExternalDefault vote be tabled immediately and with a shorter voting/enactment period.
type EnactmentPeriod = EnactmentPeriod
type EnactmentPeriod = EnactmentPeriod
The minimum period of locking and the period between a proposal being approved and enacted. Read more
type LaunchPeriod = LaunchPeriod
type LaunchPeriod = LaunchPeriod
How often (in blocks) new public referenda are launched.
type VotingPeriod = VotingPeriod
type VotingPeriod = VotingPeriod
How often (in blocks) to check for new votes.
type MinimumDeposit = MinimumDeposit
type MinimumDeposit = MinimumDeposit
The minimum amount to be used as a deposit for a public referendum proposal.
type InstantOrigin = EnsureProportionAtLeast<_1, _1, AccountId, Instance2>
type InstantOrigin = EnsureProportionAtLeast<_1, _1, AccountId, Instance2>
Origin from which the next majority-carries (or more permissive) referendum may be tabled to vote immediately and asynchronously in a similar manner to the emergency origin. It retains its threshold method. Read more
type InstantAllowed = InstantAllowed
type InstantAllowed = InstantAllowed
Indicator for whether an emergency origin is even allowed to happen. Some chains may
want to set this permanently to false
, others may want to condition it on things such
as an upgrade having happened recently. Read more
Minimum voting period allowed for a fast-track referendum.
type CancellationOrigin = EnsureProportionAtLeast<_2, _3, AccountId, Instance1>
type CancellationOrigin = EnsureProportionAtLeast<_2, _3, AccountId, Instance1>
Origin from which any referendum may be cancelled in an emergency.
Origin from which a proposal may be cancelled and its backers slashed.
type BlacklistOrigin = EnsureRoot<AccountId>
type BlacklistOrigin = EnsureRoot<AccountId>
Origin from which proposals may be blacklisted.
type VetoOrigin = EnsureMember<AccountId, Instance2>
type VetoOrigin = EnsureMember<AccountId, Instance2>
Origin for anyone able to veto proposals. Read more
type CooloffPeriod = CooloffPeriod
type CooloffPeriod = CooloffPeriod
Period in blocks where an external proposal may not be re-submitted after being vetoed.
The amount of balance that must be deposited per byte of preimage stored.
An origin that can provide a preimage using operational extrinsics.
type PalletsOrigin = OriginCaller
type PalletsOrigin = OriginCaller
Overarching type of all pallets origins.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type MaxProposals = MaxProposals
type MaxProposals = MaxProposals
The maximum number of public proposals that can exist at any time.
Identifier for the elections-phragmen pallet’s lock
type ChangeMembers = Council
type ChangeMembers = Council
What to do when the members change.
type InitializeMembers = Council
type InitializeMembers = Council
What to do with genesis members
type CurrencyToVote = U128CurrencyToVote
type CurrencyToVote = U128CurrencyToVote
Convert a balance into a number used for election calculation.
This must fit into a u64
but is allowed to be sensibly lossy. Read more
type CandidacyBond = CandidacyBond
type CandidacyBond = CandidacyBond
How much should be locked up in order to submit one’s candidacy.
type VotingBondBase = VotingBondBase
type VotingBondBase = VotingBondBase
Base deposit associated with voting. Read more
type VotingBondFactor = VotingBondFactor
type VotingBondFactor = VotingBondFactor
The amount of bond that need to be locked for each vote (32 bytes).
type LoserCandidate = ()
type LoserCandidate = ()
Handler for the unbalanced reduction when a candidate has lost (and is not a runner-up)
type KickedMember = ()
type KickedMember = ()
Handler for the unbalanced reduction when a member has been kicked.
type DesiredMembers = DesiredMembers
type DesiredMembers = DesiredMembers
Number of members to elect.
type DesiredRunnersUp = DesiredRunnersUp
type DesiredRunnersUp = DesiredRunnersUp
Number of runners_up to keep.
type TermDuration = TermDuration
type TermDuration = TermDuration
How long each seat is kept. This defines the next block number at which an election round will happen. If set to zero, no elections are ever triggered and the module will be in passive mode. Read more
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type IdentificationTuple = IdentificationTuple<Self>
type IdentificationTuple = IdentificationTuple<Self>
Full identification of the validator.
type OnOffenceHandler = Staking
type OnOffenceHandler = Staking
A handler called for every offence report.
type BasicDeposit = BasicDeposit
type BasicDeposit = BasicDeposit
The amount held on deposit for a registered identity
type FieldDeposit = FieldDeposit
type FieldDeposit = FieldDeposit
The amount held on deposit per additional field for a registered identity.
The amount held on deposit for a registered subaccount. This should account for the fact that one storage item’s value will increase by the size of an account ID, and there will be another trie item whose value is the size of an account ID plus 32 bytes. Read more
type MaxSubAccounts = MaxSubAccounts
type MaxSubAccounts = MaxSubAccounts
The maximum number of sub-accounts allowed per identified account.
Maximum number of additional fields that may be stored in an ID. Needed to bound the I/O required to access an identity, but can be pretty high. Read more
type MaxRegistrars = MaxRegistrars
type MaxRegistrars = MaxRegistrars
Maxmimum number of registrars allowed in the system. Needed to bound the complexity of, e.g., updating judgements. Read more
type ForceOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
type ForceOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
The origin which may forcibly set or remove a name. Root can always do this.
The origin which may add or remove registrars. Root can always do this.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
The base amount of currency needed to reserve for creating a recovery configuration. Read more
The amount of currency needed per additional user when creating a recovery configuration. Read more
type MaxFriends = MaxFriends
type MaxFriends = MaxFriends
The maximum amount of friends allowed in a recovery configuration.
type RecoveryDeposit = RecoveryDeposit
type RecoveryDeposit = RecoveryDeposit
The base amount of currency needed to reserve for starting a recovery. Read more
type BlockNumberToBalance = ConvertInto
type BlockNumberToBalance = ConvertInto
Convert the block number into a balance.
The minimum amount transferred to call vested_transfer
.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type PalletsOrigin = OriginCaller
type PalletsOrigin = OriginCaller
The caller origin, overarching type of all pallets origins.
The maximum weight that may be scheduled per block for any dispatchables of less
priority than schedule::HARD_DEADLINE
. Read more
type ScheduleOrigin = EnsureRoot<AccountId>
type ScheduleOrigin = EnsureRoot<AccountId>
Required origin to schedule or cancel calls.
The maximum number of scheduled calls in the queue for a single block. Not strictly enforced, but used for weight estimation. Read more
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
Something that can predict the fee of a call. Used to sensibly distribute rewards.
type SignedPhase = SignedPhase
type SignedPhase = SignedPhase
Duration of the signed phase.
type UnsignedPhase = UnsignedPhase
type UnsignedPhase = UnsignedPhase
Duration of the unsigned phase.
The minimum amount of improvement to the solution score that defines a solution as “better” (in any phase). Read more
type OffchainRepeat = OffchainRepeat
type OffchainRepeat = OffchainRepeat
The repeat threshold of the offchain worker. Read more
Maximum number of iteration of balancing that will be executed in the embedded miner of the pallet. Read more
type MinerMaxWeight = MinerMaxWeight
type MinerMaxWeight = MinerMaxWeight
Maximum weight that the miner should consume. Read more
type MinerMaxLength = MinerMaxLength
type MinerMaxLength = MinerMaxLength
Maximum length (bytes) that the mined solution should consume. Read more
The priority of the unsigned transaction submitted in the unsigned-phase
Maximum number of signed submissions that can be queued. Read more
type SignedRewardBase = SignedRewardBase
type SignedRewardBase = SignedRewardBase
Base reward for a signed solution
Base deposit for a signed solution.
Per-byte deposit for a signed solution.
type SignedDepositWeight = ()
type SignedDepositWeight = ()
Per-weight deposit for a signed solution.
type SignedMaxWeight = MinerMaxWeight
type SignedMaxWeight = MinerMaxWeight
Maximum weight of a signed solution. Read more
type SlashHandler = ()
type SlashHandler = ()
Handler for the slashed deposits.
type RewardHandler = ()
type RewardHandler = ()
Handler for the rewards.
type DataProvider = Staking
type DataProvider = Staking
Something that will provide the election data.
type OnChainAccuracy = Perbill
type OnChainAccuracy = Perbill
Accuracy used for fallback on-chain election.
type Solution = NposSolution16
type Solution = NposSolution16
The solution type.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
The weight of the pallet.
type ForceOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
type ForceOrigin = EnsureOneOf<AccountId, EnsureRoot<AccountId>, EnsureProportionMoreThan<_1, _2, AccountId, Instance1>>
Origin that can control this pallet. Note that any action taken by this origin (such) as providing an emergency solution is not checked. Thus, it must be a trusted origin. Read more
The configuration of benchmarking.
A kind of proxy; specified with the proxy and passed in to the IsProxyable
fitler.
The instance filter determines whether a given call may be proxied under this type. Read more
type ProxyDepositBase = ProxyDepositBase
type ProxyDepositBase = ProxyDepositBase
The base amount of currency needed to reserve for creating a proxy. Read more
The amount of currency needed per proxy added. Read more
type MaxProxies = MaxProxies
type MaxProxies = MaxProxies
The maximum amount of proxies allowed for a single account.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type MaxPending = MaxPending
type MaxPending = MaxPending
The maximum amount of time-delayed announcements that are allowed to be pending.
type CallHasher = BlakeTwo256
type CallHasher = BlakeTwo256
The type of hash used for hashing the call.
The base amount of currency needed to reserve for creating an announcement. Read more
The amount of currency needed per announcement made. Read more
type DepositBase = DepositBase
type DepositBase = DepositBase
The base amount of currency needed to reserve for creating a multisig execution or to store a dispatch call for later. Read more
type DepositFactor = DepositFactor
type DepositFactor = DepositFactor
The amount of currency needed per unit threshold when creating a multisig execution. Read more
type MaxSignatories = MaxSignatories
type MaxSignatories = MaxSignatories
The maximum amount of signatories allowed in the multisig.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
The amount held on deposit for placing a bounty proposal.
The delay period for which a bounty beneficiary need to wait before claim the payout.
Bounty duration in blocks.
Percentage of the curator fee that will be reserved upfront as deposit for bounty curator.
Minimum value for a bounty.
The amount held on deposit per byte within the tip report reason or bounty description.
Maximum acceptable reason length.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
The amount held on deposit per byte within the tip report reason or bounty description.
Maximum acceptable reason length.
type TipCountdown = TipCountdown
type TipCountdown = TipCountdown
The period for which a tip remains open after is has achieved threshold tippers.
type TipFindersFee = TipFindersFee
type TipFindersFee = TipFindersFee
The percent of the final tip which goes to the original reporter of the tip.
The amount held on deposit for placing a tip report.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type PalletId = LotteryPalletId
type PalletId = LotteryPalletId
The Lottery’s pallet id
Something that provides randomness in the runtime.
type ManagerOrigin = EnsureRoot<AccountId>
type ManagerOrigin = EnsureRoot<AccountId>
The manager origin.
type ValidateCall = Lottery
type ValidateCall = Lottery
Used to determine if a call would be valid for purchasing a ticket. Read more
Number of time we should try to generate a random number that has no modulo bias. The larger this number, the more potential computation is used for picking the winner, but also the more likely that the chosen winner is done fairly. Read more
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type CurrencyBalance = Balance
type CurrencyBalance = Balance
Just the Currency::Balance
type; we have this item to allow us to constrain it to
From<u64>
. Read more
type AdminOrigin = EnsureRoot<AccountId>
type AdminOrigin = EnsureRoot<AccountId>
Origin required for setting the target proportion to be under gilt.
Unbalanced handler to account for funds created (in case of a higher total issuance over freezing period). Read more
Unbalanced handler to account for funds destroyed (in case of a lower total issuance over freezing period). Read more
type IgnoredIssuance = IgnoredIssuance
type IgnoredIssuance = IgnoredIssuance
The issuance to ignore. This is subtracted from the Currency
’s total_issuance
to get
the issuance by which we inflate or deflate the gilt. Read more
type QueueCount = QueueCount
type QueueCount = QueueCount
Number of duration queues in total. This sets the maximum duration supported, which is
this value multiplied by Period
. Read more
type MaxQueueLen = MaxQueueLen
type MaxQueueLen = MaxQueueLen
Maximum number of items that may be in each duration queue.
type FifoQueueLen = FifoQueueLen
type FifoQueueLen = FifoQueueLen
Portion of the queue which is free from ordering and just a FIFO. Read more
The base period for the duration queues. This is the common multiple across all supported freezing durations that can be bid upon. Read more
The minimum amount of funds that may be offered to freeze for a gilt. Note that this does not actually limit the amount which may be frozen in a gilt since gilts may be split up in order to satisfy the desired amount of funds under gilts. Read more
type IntakePeriod = IntakePeriod
type IntakePeriod = IntakePeriod
The number of blocks between consecutive attempts to issue more gilts in an effort to get to the target amount to be frozen. Read more
type MaxIntakeBids = MaxIntakeBids
type MaxIntakeBids = MaxIntakeBids
The maximum amount of bids that can be turned into issued gilts each block. A larger value here means less of the block available for transactions should there be a glut of bids to make into gilts to reach the target. Read more
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Information on runtime weights.
type FeeDestination = ()
type FeeDestination = ()
Handler for the unbalanced decrease when fees are burned.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type EpochDuration = EpochDuration
type EpochDuration = EpochDuration
The amount of time, in slots, that each epoch should last. NOTE: Currently it is not possible to change the epoch duration after the chain has started. Attempting to do so will brick block production. Read more
The expected average block time at which BABE should be creating
blocks. Since BABE is probabilistic it is not trivial to figure out
what the expected average block time should be based on the slot
duration and the security parameter c
(where 1 - c
represents
the probability of a slot being empty). Read more
BABE requires some logic to be triggered on every block to query for whether an epoch has ended and to perform the transition to the next epoch. Read more
type DisabledValidators = Session
type DisabledValidators = Session
A way to check whether a given validator is disabled and should not be authoring blocks. Blocks authored by a disabled validator will lead to a panic as part of this module’s initialization. Read more
type KeyOwnerProofSystem = Historical
type KeyOwnerProofSystem = Historical
A system for proving ownership of keys, i.e. that a given key was part of a validator set, needed for validating equivocation reports. Read more
type KeyOwnerProof = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, AuthorityId)>>::Proof
type KeyOwnerProof = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, AuthorityId)>>::Proof
The proof of key ownership, used for validating equivocation reports. The proof must include the session index and validator count of the session at which the equivocation occurred. Read more
type KeyOwnerIdentification = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, AuthorityId)>>::IdentificationTuple
type KeyOwnerIdentification = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, AuthorityId)>>::IdentificationTuple
The identification of a key owner, used when reporting equivocations.
The equivocation handling subsystem, defines methods to report an
offence (after the equivocation has been validated) and for submitting a
transaction to report an equivocation (from an offchain context).
NOTE: when enabling equivocation handling (i.e. this type isn’t set to
()
) you must use this pallet’s ValidateUnsigned
in the runtime
definition. Read more
type WeightInfo = ()
type OnTimestampSet = Babe
type OnTimestampSet = Babe
Something which can be notified when the timestamp is set. Set this to ()
if not
needed. Read more
type MinimumPeriod = MinimumPeriod
type MinimumPeriod = MinimumPeriod
The minimum period between blocks. Beware that this is different to the expected period that the block production apparatus provides. Your chosen consensus system will generally work with this to determine a sensible block time. e.g. For Aura, it will be double this period on default settings. Read more
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type KeyOwnerProofSystem = Historical
type KeyOwnerProofSystem = Historical
A system for proving ownership of keys, i.e. that a given key was part of a validator set, needed for validating equivocation reports. Read more
type KeyOwnerProof = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, GrandpaId)>>::Proof
type KeyOwnerProof = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, GrandpaId)>>::Proof
The proof of key ownership, used for validating equivocation reports The proof must include the session index and validator count of the session at which the equivocation occurred. Read more
type KeyOwnerIdentification = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, GrandpaId)>>::IdentificationTuple
type KeyOwnerIdentification = <Self::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, GrandpaId)>>::IdentificationTuple
The identification of a key owner, used when reporting equivocations.
The equivocation handling subsystem, defines methods to report an
offence (after the equivocation has been validated) and for submitting a
transaction to report an equivocation (from an offchain context).
NOTE: when enabling equivocation handling (i.e. this type isn’t set to
()
) you must use this pallet’s ValidateUnsigned
in the runtime
definition. Read more
type WeightInfo = ()
type WeightInfo = ()
Weights for this pallet.
type FindAuthor = FindAccountFromAuthorIndex<Self, Babe>
type FindAuthor = FindAccountFromAuthorIndex<Self, Babe>
Find the author of a block.
type UncleGenerations = UncleGenerations
type UncleGenerations = UncleGenerations
The number of blocks back we should accept uncles.
This means that we will deal with uncle-parents that are
UncleGenerations + 1
before now
. Read more
type FilterUncle = ()
type FilterUncle = ()
A filter for uncles within a block. This is for implementing further constraints on what uncles can be included, other than their ancestry. Read more
type EventHandler = (Staking, ImOnline)
type EventHandler = (Staking, ImOnline)
An event handler for authored blocks.
type FullIdentification = Exposure<AccountId, Balance>
type FullIdentification = Exposure<AccountId, Balance>
Full identification of the validator.
type FullIdentificationOf = ExposureOf<Runtime>
type FullIdentificationOf = ExposureOf<Runtime>
A conversion from validator ID to full identification. Read more
type ValidatorId = <Self as Config>::AccountId
type ValidatorId = <Self as Config>::AccountId
A stable ID for a validator.
type ValidatorIdOf = StashOf<Self>
type ValidatorIdOf = StashOf<Self>
A conversion from account ID to validator ID. Read more
type ShouldEndSession = Babe
type ShouldEndSession = Babe
Indicator for when to end the session.
type NextSessionRotation = Babe
type NextSessionRotation = Babe
Something that can predict the next session rotation. This should typically come from the
same logical unit that provides ShouldEndSession
, yet, it gives a best effort estimate.
It is helpful to implement EstimateNextNewSession
. Read more
type SessionManager = NoteHistoricalRoot<Self, Staking>
type SessionManager = NoteHistoricalRoot<Self, Staking>
Handler for managing new session.
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders
Handler when a session has changed.
type Keys = SessionKeys
type Keys = SessionKeys
The keys.
The fraction of validators set that is safe to be disabled. Read more
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
type AuthorityId = ImOnlineId
type AuthorityId = ImOnlineId
The identifier type for an authority.
type NextSessionRotation = Babe
type NextSessionRotation = Babe
A trait that allows us to estimate the current session progress and also the average session length. Read more
type ValidatorSet = Historical
type ValidatorSet = Historical
A type for retrieving the validators supposed to be online in a session.
type ReportUnresponsiveness = Offences
type ReportUnresponsiveness = Offences
A type that gives us the ability to submit unresponsiveness offence reports.
A configuration for base priority of unsigned transactions. Read more
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
Handler for withdrawing, refunding and depositing the transaction fee. Transaction fees are withdrawn before the transaction is executed. After the transaction was executed the transaction weight can be adjusted, depending on the used resources by the transaction. If the transaction weight is lower than expected, parts of the transaction fee might be refunded. In the end the fees can be deposited. Read more
The fee to be paid for making a transaction; the per-byte portion.
type WeightToFee = IdentityFee<Balance>
type WeightToFee = IdentityFee<Balance>
Convert a weight value into a deductible fee based on the currency type.
Update the multiplier of the next block, based on the previous block’s weight.
A super-majority of the council can cancel the slash.
Maximum number of nominations per nominator.
type CurrencyToVote = U128CurrencyToVote
type CurrencyToVote = U128CurrencyToVote
Convert a balance into a number used for election calculation. This must fit into a
u64
but is allowed to be sensibly lossy. The u64
is used to communicate with the
sp_npos_elections
crate which accepts u64 numbers and does operations in 128.
Consequently, the backward convert is used convert the u128s from sp-elections back to a
BalanceOf
. Read more
type RewardRemainder = Treasury
type RewardRemainder = Treasury
Tokens have been minted and are unused for validator-reward. See Era payout. Read more
type SessionsPerEra = SessionsPerEra
type SessionsPerEra = SessionsPerEra
Number of sessions per era.
type BondingDuration = BondingDuration
type BondingDuration = BondingDuration
Number of eras that staked funds must remain bonded for.
Number of eras that slashes are deferred by, after computation. Read more
type SessionInterface = Self
type SessionInterface = Self
Interface for interacting with a session pallet.
type EraPayout = ConvertCurve<RewardCurve>
type EraPayout = ConvertCurve<RewardCurve>
The payout for validators and the system for the current era. See Era payout. Read more
type NextNewSession = Session
type NextNewSession = Session
Something that can estimate the next session change, accurately or as a best effort guess. Read more
The maximum number of nominators rewarded for each validator. Read more
Something that provides the election functionality.
type GenesisElectionProvider = OnChainSequentialPhragmen<OnChainConfig<Self>>
type GenesisElectionProvider = OnChainSequentialPhragmen<OnChainConfig<Self>>
Something that provides the election functionality at genesis.
type WeightInfo = SubstrateWeight<Runtime>
type WeightInfo = SubstrateWeight<Runtime>
Weight information for extrinsics in this pallet.
impl ContractsApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128, u32, H256> for Runtime
impl ContractsApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128, u32, H256> for Runtime
Perform a call from a specified account to a given contract. Read more
fn instantiate(
origin: AccountId,
endowment: Balance,
gas_limit: u64,
code: Code<Hash>,
data: Vec<u8>,
salt: Vec<u8>
) -> ContractInstantiateResult<AccountId, BlockNumber>
fn instantiate(
origin: AccountId,
endowment: Balance,
gas_limit: u64,
code: Code<Hash>,
data: Vec<u8>,
salt: Vec<u8>
) -> ContractInstantiateResult<AccountId, BlockNumber>
Instantiate a new contract. Read more
Query a given storage key in a given contract. Read more
Returns the projected time a given contract will be able to sustain paying its rent. Read more
impl Core<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl Core<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Returns the version of the runtime.
Execute the given block.
Initialize a block with the given header.
Attempt to create signed extrinsic data that encodes call from given account. Read more
impl EnsureInherentsAreFirst<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl EnsureInherentsAreFirst<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
type RuntimeBlock = Block
type RuntimeBlock = Block
The RuntimeBlock
type.
impl GrandpaApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl GrandpaApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed. Read more
Get current GRANDPA authority set id.
fn submit_report_equivocation_unsigned_extrinsic(
equivocation_proof: EquivocationProof<<Block as BlockT>::Hash, NumberFor<Block>>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Option<()>
fn submit_report_equivocation_unsigned_extrinsic(
equivocation_proof: EquivocationProof<<Block as BlockT>::Hash, NumberFor<Block>>,
key_owner_proof: OpaqueKeyOwnershipProof
) -> Option<()>
Submits an unsigned extrinsic to report an equivocation. The caller
must provide the equivocation proof and a key ownership proof
(should be obtained using generate_key_ownership_proof
). The
extrinsic will be unsigned and should only be accepted for local
authorship (not to be broadcast to the network). This method returns
None
when creation of the extrinsic fails, e.g. if equivocation
reporting is disabled for the given runtime (i.e. this method is
hardcoded to return None
). Only useful in an offchain context. Read more
fn generate_key_ownership_proof(
_set_id: SetId,
authority_id: GrandpaId
) -> Option<OpaqueKeyOwnershipProof>
fn generate_key_ownership_proof(
_set_id: SetId,
authority_id: GrandpaId
) -> Option<OpaqueKeyOwnershipProof>
Generates a proof of key ownership for the given authority in the
given set. An example usage of this module is coupled with the
session historical module to prove that a given authority key is
tied to a given staking identity during a specific session. Proofs
of key ownership are necessary for submitting equivocation reports.
NOTE: even though the API takes a set_id
as parameter the current
implementations ignore this parameter and instead rely on this
method being called at the correct block height, i.e. any point at
which the given set id is live on-chain. Future implementations will
instead use indexed data through an offchain worker, not requiring
older states to be available. Read more
impl Metadata<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl Metadata<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Returns the metadata of a runtime.
impl MmrApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, <Runtime as Config<()>>::Hash> for Runtime
impl MmrApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, <Runtime as Config<()>>::Hash> for Runtime
Generate MMR proof for a leaf under given index.
fn verify_proof(
leaf: EncodableOpaqueLeaf,
proof: Proof<<Runtime as Config>::Hash>
) -> Result<(), Error>
fn verify_proof(
leaf: EncodableOpaqueLeaf,
proof: Proof<<Runtime as Config>::Hash>
) -> Result<(), Error>
Verify MMR proof against on-chain MMR. Read more
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> MmrApi<__SR_API_BLOCK__, <Runtime as Config<()>>::Hash> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall> where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
u64: UnwindSafe + RefUnwindSafe,
Result<(EncodableOpaqueLeaf, Proof<<Runtime as Config>::Hash>), Error>: UnwindSafe + RefUnwindSafe,
EncodableOpaqueLeaf: UnwindSafe + RefUnwindSafe,
Proof<<Runtime as Config>::Hash>: UnwindSafe + RefUnwindSafe,
Result<(), Error>: UnwindSafe + RefUnwindSafe,
<Runtime as Config>::Hash: UnwindSafe + RefUnwindSafe,
EncodableOpaqueLeaf: UnwindSafe + RefUnwindSafe,
Proof<<Runtime as Config>::Hash>: UnwindSafe + RefUnwindSafe,
Result<(), Error>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
impl<__SR_API_BLOCK__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SR_API_BLOCK__> + 'static> MmrApi<__SR_API_BLOCK__, <Runtime as Config<()>>::Hash> for RuntimeApiImpl<__SR_API_BLOCK__, RuntimeApiImplCall> where
RuntimeApiImplCall::StateBackend: StateBackend<HashFor<__SR_API_BLOCK__>>,
u64: UnwindSafe + RefUnwindSafe,
Result<(EncodableOpaqueLeaf, Proof<<Runtime as Config>::Hash>), Error>: UnwindSafe + RefUnwindSafe,
EncodableOpaqueLeaf: UnwindSafe + RefUnwindSafe,
Proof<<Runtime as Config>::Hash>: UnwindSafe + RefUnwindSafe,
Result<(), Error>: UnwindSafe + RefUnwindSafe,
<Runtime as Config>::Hash: UnwindSafe + RefUnwindSafe,
EncodableOpaqueLeaf: UnwindSafe + RefUnwindSafe,
Proof<<Runtime as Config>::Hash>: UnwindSafe + RefUnwindSafe,
Result<(), Error>: UnwindSafe + RefUnwindSafe,
__SR_API_BLOCK__::Header: UnwindSafe + RefUnwindSafe,
fn MmrApi_generate_proof_runtime_api_impl(
&self,
at: &BlockId<__SR_API_BLOCK__>,
context: ExecutionContext,
params: Option<u64>,
params_encoded: Vec<u8>
) -> Result<NativeOrEncoded<Result<(EncodableOpaqueLeaf, Proof<<Runtime as Config>::Hash>), Error>>, ApiError>
fn MmrApi_verify_proof_runtime_api_impl(
&self,
at: &BlockId<__SR_API_BLOCK__>,
context: ExecutionContext,
params: Option<(EncodableOpaqueLeaf, Proof<<Runtime as Config>::Hash>)>,
params_encoded: Vec<u8>
) -> Result<NativeOrEncoded<Result<(), Error>>, ApiError>
fn MmrApi_verify_proof_stateless_runtime_api_impl(
&self,
at: &BlockId<__SR_API_BLOCK__>,
context: ExecutionContext,
params: Option<(<Runtime as Config>::Hash, EncodableOpaqueLeaf, Proof<<Runtime as Config>::Hash>)>,
params_encoded: Vec<u8>
) -> Result<NativeOrEncoded<Result<(), Error>>, ApiError>
Generate MMR proof for a leaf under given index.
fn generate_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaf_index: u64
) -> Result<Result<(EncodableOpaqueLeaf, Proof<Hash>), Error>, ApiError>
fn generate_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaf_index: u64
) -> Result<Result<(EncodableOpaqueLeaf, Proof<Hash>), Error>, ApiError>
Generate MMR proof for a leaf under given index.
fn verify_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_proof(
&self,
__runtime_api_at_param__: &BlockId<Block>,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against on-chain MMR. Read more
fn verify_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_proof_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against on-chain MMR. Read more
fn verify_proof_stateless(
&self,
__runtime_api_at_param__: &BlockId<Block>,
root: Hash,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_proof_stateless(
&self,
__runtime_api_at_param__: &BlockId<Block>,
root: Hash,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against given root hash. Read more
fn verify_proof_stateless_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
root: Hash,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
fn verify_proof_stateless_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
root: Hash,
leaf: EncodableOpaqueLeaf,
proof: Proof<Hash>
) -> Result<Result<(), Error>, ApiError>
Verify MMR proof against given root hash. Read more
impl OffchainWorkerApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl OffchainWorkerApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Starts the off-chain task for given block header.
type Extrinsic = UncheckedExtrinsic
type Extrinsic = UncheckedExtrinsic
The extrinsic type expected by the runtime.
type OverarchingCall = Call
type OverarchingCall = Call
The runtime’s call type. Read more
impl SessionKeys<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl SessionKeys<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities. Read more
impl TaggedTransactionQueue<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl TaggedTransactionQueue<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
fn validate_transaction(
source: TransactionSource,
tx: <Block as BlockT>::Extrinsic,
block_hash: <Block as BlockT>::Hash
) -> TransactionValidity
fn validate_transaction(
source: TransactionSource,
tx: <Block as BlockT>::Extrinsic,
block_hash: <Block as BlockT>::Hash
) -> TransactionValidity
Validate the transaction. Read more
impl TransactionPaymentApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u128> for Runtime
impl TransactionPaymentApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u128> for Runtime
impl TryRuntime<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl TryRuntime<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32>, Call, MultiSignature, (CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
dry-run runtime upgrades, returning the total weight consumed. Read more
Auto Trait Implementations
impl RefUnwindSafe for Runtime
impl UnwindSafe for Runtime
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,