Struct subspace_runtime::Runtime

source ·
pub struct Runtime;

Implementations§

source§

impl Runtime

source

pub fn metadata() -> RuntimeMetadataPrefixed

source

pub fn metadata_at_version(version: u32) -> Option<OpaqueMetadata>

source

pub fn metadata_versions() -> Vec<u32>

Trait Implementations§

source§

impl AccountNonceApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime

source§

fn account_nonce(account: AccountId) -> Nonce

Get current account nonce of given AccountId.
source§

impl BlockBuilderV6<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>> for Runtime

source§

fn apply_extrinsic( extrinsic: <Block as BlockT>::Extrinsic, ) -> ApplyExtrinsicResult

Apply the given extrinsic. Read more
source§

fn finalize_block() -> <Block as BlockT>::Header

Finish the current block.
source§

fn inherent_extrinsics(data: InherentData) -> Vec<<Block as BlockT>::Extrinsic>

Generate inherent extrinsics. The inherent data will vary from chain to chain.
source§

fn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult

Check that the inherents are valid. The inherent data will vary from chain to chain.
source§

impl BlockSlot<Runtime> for BlockSlot

source§

fn future_slot(block_number: BlockNumber) -> Option<Slot>

source§

fn slot_produced_after(to_check: Slot) -> Option<BlockNumber>

source§

impl BundleProducerElectionApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>, u128> for Runtime

source§

impl CallerTrait<<Runtime as Config>::AccountId> for OriginCaller

source§

fn into_system(self) -> Option<RawOrigin<<Runtime as Config>::AccountId>>

Extract the signer from the message if it is a Signed origin.
source§

fn as_system_ref(&self) -> Option<&RawOrigin<<Runtime as Config>::AccountId>>

Extract a reference to the system-level RawOrigin if it is that.
§

fn as_signed(&self) -> Option<&AccountId>

Extract the signer from it if a system Signed origin, None otherwise.
§

fn is_root(&self) -> bool

Returns true if self is a system Root origin, None otherwise.
§

fn is_none(&self) -> bool

Returns true if self is a system None origin, None otherwise.
source§

impl Clone for Runtime

source§

fn clone(&self) -> Runtime

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Config<Instance1> for Runtime

§

type MotionDuration = CouncilMotionDuration

Duration of voting for a given council motion.

§

type DefaultVote = PrimeDefaultVote

Default vote strategy of this collective.
§

type MaxMembers = ConstU32<100>

The maximum number of members supported by the pallet. Used for weight estimation. Read more
§

type MaxProposalWeight = MaxProposalWeight

The maximum weight of a dispatch call that can be proposed and executed.
§

type MaxProposals = ConstU32<100>

Maximum number of proposals allowed to be active in parallel.
§

type Proposal = RuntimeCall

The runtime call dispatch type.
§

type RuntimeEvent = RuntimeEvent

The runtime event type.
§

type RuntimeOrigin = RuntimeOrigin

The runtime origin type.
§

type SetMembersOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Origin allowed to set collective members
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type BaseCallFilter = Everything

The basic call filter to use in dispatchable.

Everything is used here as we use the signed extension DisablePallets as the actual call filter.

§

type BlockWeights = SubspaceBlockWeights

Block & extrinsics weights: base values and limits.

§

type BlockLength = SubspaceBlockLength

The maximum length of a block (in bytes).

§

type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId

The identifier used to distinguish between accounts.

§

type RuntimeCall = RuntimeCall

The aggregated dispatch type that is available for extrinsics.

§

type RuntimeTask = RuntimeTask

The aggregated RuntimeTask type.

§

type Lookup = AccountIdLookup<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>

The lookup mechanism to get account ID from whatever is passed in dispatchers.

§

type Nonce = u32

The type for storing how many extrinsics an account has signed.

§

type Hash = H256

The type for hashing blocks and tries.

§

type Hashing = BlakeTwo256

The hashing algorithm used.

§

type Block = Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>

The block type.

§

type RuntimeEvent = RuntimeEvent

The ubiquitous event type.

§

type RuntimeOrigin = RuntimeOrigin

The ubiquitous origin type.

§

type BlockHashCount = BlockHashCount

Maximum number of block number to block hash mappings to keep (oldest pruned first).

§

type DbWeight = ParityDbWeight

The weight of database operations that the runtime can invoke.

§

type Version = Version

Version of the runtime.

§

type PalletInfo = PalletInfo

Converts a module to the index of the module in construct_runtime!.

This type is being generated by construct_runtime!.

§

type OnNewAccount = ()

What to do if a new account is created.

§

type OnKilledAccount = ()

What to do if an account is fully reaped from the system.

§

type AccountData = AccountData<u128>

The data to be stored in an account.

§

type SystemWeightInfo = ()

Weight information for the extrinsics of this pallet.

§

type SS58Prefix = ConstU16<2254>

This is used as an identifier of the chain.

§

type OnSetCode = ()

The set code logic, just the default since we’re not a parachain.

§

type SingleBlockMigrations = ()

All migrations that should run in the next runtime upgrade. Read more
§

type MultiBlockMigrator = ()

The migrator that is used to run Multi-Block-Migrations. Read more
§

type PreInherents = ()

A callback that executes in every block directly before all inherents were applied. Read more
§

type PostInherents = ()

A callback that executes in every block directly after all inherents were applied. Read more
§

type PostTransactions = ()

A callback that executes in every block directly after all transactions were applied. Read more
§

type MaxConsumers = ConstU32<16>

The maximum number of consumers allowed on a single account.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type BlockAuthoringDelay = BlockAuthoringDelay

Number of slots between slot arrival and when corresponding block can be produced. Read more
§

type PotEntropyInjectionInterval = PotEntropyInjectionInterval

Interval, in blocks, between blockchain entropy injection into proof of time chain.
§

type PotEntropyInjectionLookbackDepth = PotEntropyInjectionLookbackDepth

Interval, in entropy injection intervals, where to take entropy for injection from.
§

type PotEntropyInjectionDelay = PotEntropyInjectionDelay

Delay after block, in slots, when entropy injection takes effect.
§

type EraDuration = EraDuration

The amount of time, in blocks, that each era should last. NOTE: Currently it is not possible to change the era duration after the chain has started. Attempting to do so will brick block production.
§

type InitialSolutionRange = ConstU64<INITIAL_SOLUTION_RANGE>

Initial solution range used for challenges during the very first era.
§

type SlotProbability = SlotProbability

How often in slots slots (on average, not counting collisions) will have a block. Read more
§

type ConfirmationDepthK = ConfirmationDepthK

Depth K after which a block enters the recorded history (a global constant, as opposed to the client-dependent transaction confirmation depth k).
§

type RecentSegments = RecentSegments

Number of latest archived segments that are considered “recent history”.
§

type RecentHistoryFraction = RecentHistoryFraction

Fraction of pieces from the “recent history” (recent_segments) in each sector.
§

type MinSectorLifetime = MinSectorLifetime

Minimum lifetime of a plotted sector, measured in archived segment.
§

type ExpectedVotesPerBlock = ExpectedVotesPerBlock

Number of votes expected per block. Read more
§

type MaxPiecesInSector = ConstU16<{ MAX_PIECES_IN_SECTOR }>

How many pieces one sector is supposed to contain (max)
§

type ShouldAdjustSolutionRange = ShouldAdjustSolutionRange

§

type EraChangeTrigger = NormalEraChange

Subspace requires some logic to be triggered on every block to query for whether an era has ended and to perform the transition to the next era. Read more
§

type BlockSlotCount = BlockSlotCount

Maximum number of block number to block slot mappings to keep (oldest pruned first).
§

type HandleEquivocation = EquivocationHandler<Pallet<Runtime>, ConstU64<{ EQUIVOCATION_REPORT_LONGEVITY as u64 }>>

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). Read more
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type CancelProposalOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

To cancel a proposal before it has been passed and slash its backers, must be root.

§

type CancellationOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1, 2, 3>>

Origin to cancel a proposal.

§

type CooloffPeriod = CooloffPeriod

Period in blocks where an external proposal may not be re-submitted after being vetoed.

§

type EnactmentPeriod = EnactmentPeriod

The minimum period of locking and the period between a proposal being approved and enacted.

§

type ExternalDefaultOrigin = EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1, 1, 1>

A unanimous council can have the next scheduled referendum be a straight default-carries (negative turnout biased) vote. 100% council vote.

§

type ExternalMajorityOrigin = EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1, 1, 2>

A simple majority can have the next scheduled referendum be a straight majority-carries vote. 50% of council votes.

§

type ExternalOrigin = EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1, 1, 2>

A simple majority of the council can decide what their next motion is. 50% council votes.

§

type FastTrackOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1, 1, 2>>

Half of the council can have an ExternalMajority/ExternalDefault vote be tabled immediately and with a shorter voting/enactment period.

§

type FastTrackVotingPeriod = FastTrackVotingPeriod

Voting period for Fast track voting.

§

type LaunchPeriod = LaunchPeriod

How often (in blocks) new public referenda are launched.

§

type MinimumDeposit = ConstU128<{ 1000 * SSC }>

The minimum amount to be used as a deposit for a public referendum proposal.

§

type Slash = DemocracySlash

Handler for the unbalanced reduction when slashing a preimage deposit.

§

type SubmitOrigin = EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>

Origin used to submit proposals. Currently set to Council member so that no one can submit new proposals except council through democracy

§

type VetoOrigin = EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>

Any single council member may veto a coming council proposal, however they can only do it once and it lasts only for the cooloff period.

§

type VotingPeriod = VotingPeriod

How often (in blocks) to check for new votes.

§

type BlacklistOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Origin from which proposals may be blacklisted.
§

type Currency = Pallet<Runtime>

Currency type for this pallet.
§

type InstantAllowed = ConstBool<true>

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.
§

type InstantOrigin = EitherOfDiverse<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1, 1, 1>>

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.
§

type MaxBlacklisted = ConstU32<100>

The maximum number of items which can be blacklisted.
§

type MaxDeposits = ConstU32<100>

The maximum number of deposits a public proposal may have at any time.
§

type MaxProposals = ConstU32<100>

The maximum number of public proposals that can exist at any time.
§

type MaxVotes = ConstU32<100>

The maximum number of votes for an account. Read more
§

type PalletsOrigin = OriginCaller

Overarching type of all pallets origins.
§

type Preimages = Pallet<Runtime>

The Preimage provider.
§

type RuntimeEvent = RuntimeEvent

§

type Scheduler = Pallet<Runtime>

The Scheduler.
§

type VoteLockingPeriod = VoteLockingPeriod

The minimum period of vote locking. Read more
§

type WeightInfo = SubstrateWeight<Runtime>

source§

impl Config for Runtime

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

§

type SelfChainId = SelfChainId

Gets the chain_id that is treated as src_chain_id for outgoing messages.
source§

fn get_endpoint_handler( endpoint: &Endpoint, ) -> Option<Box<dyn EndpointHandlerT<MessageId>>>

function to fetch endpoint response handler by Endpoint.
§

type Currency = Pallet<Runtime>

Currency type pallet uses for fees and deposits.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
§

type WeightToFee = ConstantMultiplier<u128, TransactionWeightFee>

Weight to fee conversion.
§

type OnXDMRewards = OnXDMRewards

Handle XDM rewards.
§

type MmrHash = <<Runtime as Config>::Hashing as Hash>::Output

Hash type of MMR
§

type MmrProofVerifier = MmrProofVerifier

MMR proof verifier
§

type StorageKeys = StorageKeys

Storage key provider.
§

type DomainOwner = Pallet<Runtime>

Domain owner provider.
§

type HoldIdentifier = HoldIdentifier

A variation of the Identifier used for holding the funds used for Messenger
§

type ChannelReserveFee = ChannelReserveFee

Channel reserve fee to open a channel.
§

type ChannelInitReservePortion = ChannelInitReservePortion

Portion of Channel reserve taken by the protocol if the channel is in init state and is requested to be closed.
§

type DomainRegistration = DomainRegistration

Type to check if a given domain is registered on Consensus chain.
§

type ChannelFeeModel = ChannelFeeModel

Channels fee model
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

Event type for this pallet.
§

type SelfChainId = SelfChainId

Gets the chain_id of the current execution environment.
§

type SelfEndpointId = TransporterEndpointId

Gets the endpoint_id of this pallet in a given execution environment.
§

type Currency = Pallet<Runtime>

Currency used by this pallet.
§

type Sender = Pallet<Runtime>

Sender used to transfer funds.
§

type AccountIdConverter = AccountIdConverter

MultiAccountID <> T::AccountId converter.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type OnOffenceHandler = Pallet<Runtime>

A handler called for every offence report.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

§

type DomainHash = H256

Domain block hash type.
§

type DomainHeader = Header<u32, BlakeTwo256>

The domain header type.
§

type ConfirmationDepthK = ConfirmationDepthK

Same with pallet_subspace::Config::ConfirmationDepthK.
§

type DomainRuntimeUpgradeDelay = DomainRuntimeUpgradeDelay

Delay before a domain runtime is upgraded.
§

type Currency = Pallet<Runtime>

Currency type used by the domains for staking and other currency related stuff.
§

type HoldIdentifier = HoldIdentifier

A variation of the Identifier used for holding the funds used for staking and domains.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
§

type InitialDomainTxRange = InitialDomainTxRange

Initial domain tx range value.
§

type DomainTxRangeAdjustmentInterval = DomainTxRangeAdjustmentInterval

Domain tx range is adjusted after every DomainTxRangeAdjustmentInterval blocks.
§

type MinOperatorStake = MinOperatorStake

Minimum operator stake required to become operator of a domain.
§

type MinNominatorStake = MinNominatorStake

Minimum nominator stake required to nominate and operator.
§

type MaxDomainBlockSize = MaxDomainBlockSize

The maximum block size limit for all domain.
§

type MaxDomainBlockWeight = MaxDomainBlockWeight

The maximum block weight limit for all domain.
§

type MaxBundlesPerBlock = MaxBundlesPerBlock

The maximum bundle per block limit for all domain.
§

type DomainInstantiationDeposit = DomainInstantiationDeposit

The amount of fund to be locked up for the domain instance creator.
§

type MaxDomainNameLength = MaxDomainNameLength

The maximum domain name length limit for all domain.
§

type Share = u128

Type representing the shares in the staking protocol.
§

type BlockTreePruningDepth = BlockTreePruningDepth

The block tree pruning depth.
§

type ConsensusSlotProbability = SlotProbability

Consensus chain slot probability.
§

type StakeWithdrawalLockingPeriod = StakeWithdrawalLockingPeriod

Minimum number of blocks after which any finalized withdrawals are released to nominators.
§

type StakeEpochDuration = StakeEpochDuration

Domain epoch transition interval
§

type TreasuryAccount = TreasuryAccount

Treasury account.
§

type MaxPendingStakingOperation = MaxPendingStakingOperation

The maximum number of pending staking operation that can perform upon epoch transition.
§

type Randomness = Pallet<Runtime>

Randomness source.
§

type PalletId = DomainsPalletId

The pallet-domains’s pallet id.
§

type StorageFee = Pallet<Runtime>

Storage fee interface used to deal with bundle storage fee
§

type BlockSlot = BlockSlot

The block slot
§

type BundleLongevity = BundleLongevity

How many block a bundle should still consider as valid after produced
§

type DomainsTransfersTracker = Pallet<Runtime>

Transfers tracker.
§

type MaxInitialDomainAccounts = MaxInitialDomainAccounts

Upper limit for total initial accounts domains
§

type MinInitialDomainAccountBalance = MinInitialDomainAccountBalance

Minimum balance for each initial domain account
§

type DomainBundleSubmitted = Pallet<Runtime>

Post hook to notify accepted domain bundles in previous block.
§

type OnDomainInstantiated = Pallet<Runtime>

A hook to call after a domain is instantiated
§

type Balance = u128

§

type MmrHash = <<Runtime as Config>::Hashing as Hash>::Output

Hash type of MMR
§

type MmrProofVerifier = MmrProofVerifier

MMR proof verifier
§

type FraudProofStorageKeyProvider = StorageKeyProvider

Fraud proof storage key provider
§

type OnChainRewards = OnChainRewards

Hook to handle chain rewards.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

pallet-rewards events
§

type Currency = Pallet<Runtime>

§

type AvgBlockspaceUsageNumBlocks = AvgBlockspaceUsageNumBlocks

Number of blocks over which to compute average blockspace usage
§

type TransactionByteFee = TransactionByteFee

Cost of one byte of blockspace
§

type MaxRewardPoints = ConstU32<20>

Max number of reward points
§

type ProposerTaxOnVotes = ProposerTaxOnVotes

Tax of the proposer on vote rewards
§

type RewardsEnabled = Pallet<Runtime>

Determine whether rewards are enabled or not
§

type FindBlockRewardAddress = Pallet<Runtime>

Reward address of block producer
§

type FindVotingRewardAddresses = Pallet<Runtime>

Reward addresses of all receivers of voting rewards
§

type WeightInfo = SubstrateWeight<Runtime>

§

type OnReward = ()

source§

impl Config for Runtime

§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

source§

const INDEXING_PREFIX: &'static [u8] = mmr::INDEXING_PREFIX

Prefix for elements stored in the Off-chain DB via Indexing API. Read more
§

type Hashing = Keccak256

A hasher type for MMR. Read more
§

type LeafData = Pallet<Runtime>

Data stored in the leaf nodes. Read more
§

type OnNewRoot = Pallet<Runtime>

A hook to act on the new MMR root. Read more
§

type BlockHashProvider = BlockHashProvider

Block hash provider for a given block number.
§

type WeightInfo = ()

Weights for this pallet.
source§

impl Config for Runtime

§

type MmrRootHash = <<Runtime as Config>::Hashing as Hash>::Output

§

type MmrRootHashCount = MmrRootHashCount

The number of mmr root hashes to store in the runtime. It will be used to verify mmr proof statelessly and the number of roots stored here represents the number of blocks for which the mmr proof is valid since it is generated. After that the mmr proof will be expired and the prover needs to re-generate the proof.
source§

impl Config for Runtime

§

type Moment = u64

A timestamp: milliseconds since the unix epoch.

§

type OnTimestampSet = ()

Something which can be notified (e.g. another pallet) when the timestamp is set. Read more
§

type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>

The minimum period between blocks. Read more
§

type WeightInfo = ()

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type Balance = u128

The type for recording an account’s balance.

§

type RuntimeEvent = RuntimeEvent

The ubiquitous event type.

§

type RuntimeFreezeReason = RuntimeFreezeReason

The overarching freeze reason.
§

type MaxLocks = ConstU32<50>

The maximum number of locks that should exist on an account. Not strictly enforced, but used for weight estimation. Read more
§

type MaxReserves = ()

The maximum number of named reserves that can exist on an account. Read more
§

type ReserveIdentifier = [u8; 8]

The ID type for reserves. Read more
§

type DustRemoval = ()

Handler for the unbalanced reduction when removing a dust account.
§

type ExistentialDeposit = ExistentialDeposit

The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO! Read more
§

type AccountStore = Pallet<Runtime>

The means of storing the balances of an account.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
§

type FreezeIdentifier = ()

The ID type for freezes.
§

type MaxFreezes = ()

The maximum number of individual freeze locks that can exist on an account at any time.
§

type RuntimeHoldReason = HoldIdentifier

The overarching hold reason.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

pallet-transaction-fees events
§

type MinReplicationFactor = ConstU16<MIN_REPLICATION_FACTOR>

Minimum desired number of replicas of the blockchain to be stored by the network, impacts storage fees.
§

type CreditSupply = CreditSupply

How many credits there is in circulation.
§

type TotalSpacePledged = TotalSpacePledged

How much space there is on the network.
§

type BlockchainHistorySize = BlockchainHistorySize

How big is the history of the blockchain in archived state (thus includes erasure coding, but not replication).
§

type Currency = Pallet<Runtime>

§

type FindBlockRewardAddress = Pallet<Runtime>

§

type DynamicCostOfStorage = DynamicCostOfStorage

Whether dynamic cost of storage should be used
§

type WeightInfo = ()

source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type OnChargeTransaction = OnChargeTransaction

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.
§

type OperationalFeeMultiplier = ConstU8<5>

A fee multiplier for Operational extrinsics to compute “virtual tip” to boost their priority Read more
§

type WeightToFee = ConstantMultiplier<u128, TransactionWeightFee>

Convert a weight value into a deductible fee based on the currency type.
§

type LengthToFee = ConstantMultiplier<u128, TransactionByteFee>

Convert a length value into a deductible fee based on the currency type.
§

type FeeMultiplierUpdate = TargetedFeeAdjustment<Runtime, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier, MaximumMultiplier>

Update the multiplier of the next block, based on the previous block’s weight.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

The overarching call type.
§

type PalletsOrigin = OriginCaller

The caller origin, overarching type of all pallets origins.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeCall = RuntimeCall

A sudo-able call.
§

type WeightInfo = SubstrateWeight<Runtime>

Type representing the weight of this pallet
source§

impl Config for Runtime

§

type Consideration = HoldConsideration<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Pallet<Runtime>, PreImageHoldReason, LinearStoragePrice<PreimageBaseDeposit, PreimageByteDeposit, u128>>

A means of providing some cost while data is stored on-chain. Read more
§

type Currency = Pallet<Runtime>

Currency type for this pallet.
§

type ManagerOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

An origin that can request a preimage be placed on-chain without a deposit or fee, or manage existing preimages.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type WeightInfo = SubstrateWeight<Runtime>

The Weight information for this pallet.
source§

impl Config for Runtime

§

type MaxScheduledPerBlock = ConstU32<50>

The maximum number of scheduled calls in the queue for a single block. Read more
§

type MaximumWeight = MaximumSchedulerWeight

The maximum weight that may be scheduled per block for any dispatchables.
§

type OriginPrivilegeCmp = EqualPrivilegeOnly

Compare the privileges of origins. Read more
§

type PalletsOrigin = OriginCaller

The caller origin, overarching type of all pallets origins.
§

type Preimages = Pallet<Runtime>

The preimage provider with which we look up call hashes to get the call.
§

type RuntimeCall = RuntimeCall

The aggregated call type.
§

type RuntimeEvent = RuntimeEvent

The overarching event type.
§

type RuntimeOrigin = RuntimeOrigin

The aggregated origin which the dispatch will take.
§

type ScheduleOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Required origin to schedule or cancel calls.
§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl CoreV5<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>> for Runtime

source§

fn version() -> RuntimeVersion

Returns the version of the runtime.
source§

fn execute_block(block: Block)

Execute the given block.
source§

fn initialize_block( header: &<Block as BlockT>::Header, ) -> ExtrinsicInclusionMode

Initialize a block with the given header and return the runtime executive mode.
source§

impl Debug for Runtime

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DomainsApiV6<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>, Header<u32, BlakeTwo256>> for Runtime

source§

fn submit_bundle_unsigned( opaque_bundle: OpaqueBundle<NumberFor<Block>, <Block as BlockT>::Hash, DomainHeader, Balance>, )

Submits the transaction bundle via an unsigned extrinsic.
source§

fn submit_receipt_unsigned( singleton_receipt: SealedSingletonReceipt<NumberFor<Block>, <Block as BlockT>::Hash, DomainHeader, Balance>, )

source§

fn extract_successful_bundles( domain_id: DomainId, extrinsics: Vec<<Block as BlockT>::Extrinsic>, ) -> OpaqueBundles<Block, DomainHeader, Balance>

Extract the bundles stored successfully from the given extrinsics.
source§

fn extract_bundle( extrinsic: <Block as BlockT>::Extrinsic, ) -> Option<OpaqueBundle<NumberFor<Block>, <Block as BlockT>::Hash, DomainHeader, Balance>>

Extract bundle from the extrinsic if the extrinsic is submit_bundle.
source§

fn extract_receipts( domain_id: DomainId, extrinsics: Vec<<Block as BlockT>::Extrinsic>, ) -> Vec<ExecutionReceiptFor<DomainHeader, Block, Balance>>

Extract the execution receipt stored successfully from the given extrinsics.
source§

fn extrinsics_shuffling_seed() -> Randomness

Generates a randomness seed for extrinsics shuffling.
source§

fn domain_runtime_code(domain_id: DomainId) -> Option<Vec<u8>>

Returns the WASM bundle for given domain_id.
source§

fn runtime_id(domain_id: DomainId) -> Option<RuntimeId>

Returns the runtime id for given domain_id.
source§

fn domain_instance_data( domain_id: DomainId, ) -> Option<(DomainInstanceData, NumberFor<Block>)>

Returns the domain instance data for given domain_id.
source§

fn timestamp() -> Moment

Returns the current timestamp at given height.
source§

fn domain_tx_range(domain_id: DomainId) -> U256

Returns the current Tx range for the given domain Id.
source§

fn genesis_state_root(domain_id: DomainId) -> Option<H256>

Return the genesis state root if not pruned
source§

fn head_receipt_number(domain_id: DomainId) -> DomainNumber

Returns the best execution chain number.
source§

fn oldest_unconfirmed_receipt_number( domain_id: DomainId, ) -> Option<DomainNumber>

Returns the block number of oldest unconfirmed execution receipt.
source§

fn domain_block_limit(domain_id: DomainId) -> Option<DomainBlockLimit>

Returns the domain block limit of the given domain.
source§

fn domain_bundle_limit(domain_id: DomainId) -> Option<DomainBundleLimit>

Returns the domain bundle limit of the given domain.
source§

fn non_empty_er_exists(domain_id: DomainId) -> bool

Returns true if there are any ERs in the challenge period with non empty extrinsics.
source§

fn domain_best_number(domain_id: DomainId) -> Option<DomainNumber>

Returns the current best number of the domain.
source§

fn execution_receipt( receipt_hash: DomainHash, ) -> Option<ExecutionReceiptFor<DomainHeader, Block, Balance>>

Returns the execution receipt
source§

fn domain_operators( domain_id: DomainId, ) -> Option<(BTreeMap<OperatorId, Balance>, Vec<OperatorId>)>

Returns the current epoch and the next epoch operators of the given domain
source§

fn operator_id_by_signing_key( signing_key: OperatorPublicKey, ) -> Option<OperatorId>

Get operator id by signing key
source§

fn receipt_hash( domain_id: DomainId, domain_number: DomainNumber, ) -> Option<DomainHash>

Returns the execution receipt hash of the given domain and domain block number
source§

fn consensus_chain_byte_fee() -> Balance

Return the consensus chain byte fee that will used to charge the domain transaction for consensus chain storage fee
source§

fn latest_confirmed_domain_block( domain_id: DomainId, ) -> Option<(DomainNumber, DomainHash)>

Returns the latest confirmed domain block number and hash
source§

fn is_bad_er_pending_to_prune( domain_id: DomainId, receipt_hash: DomainHash, ) -> bool

Return if the receipt is exist and pending to prune
source§

fn storage_fund_account_balance(operator_id: OperatorId) -> Balance

Return the balance of the storage fund account
source§

fn is_domain_runtime_updraded_since( domain_id: DomainId, at: NumberFor<Block>, ) -> Option<bool>

Return if the domain runtime code is upgraded since at
source§

fn domain_sudo_call(domain_id: DomainId) -> Option<Vec<u8>>

Return domain sudo call.
source§

fn last_confirmed_domain_block_receipt( domain_id: DomainId, ) -> Option<ExecutionReceiptFor<DomainHeader, Block, Balance>>

Return last confirmed domain block execution receipt.
source§

impl EnsureInherentsAreFirst<<Runtime as Config>::Block> for Runtime

source§

fn ensure_inherents_are_first( block: &<Runtime as Config>::Block, ) -> Result<u32, u32>

Ensure the position of inherent is correct, i.e. they are before non-inherents. Read more
source§

impl FraudProofApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>, Header<u32, BlakeTwo256>> for Runtime

source§

fn submit_fraud_proof_unsigned( fraud_proof: FraudProof<NumberFor<Block>, <Block as BlockT>::Hash, DomainHeader, H256>, )

Submit the fraud proof via an unsigned extrinsic.
source§

fn fraud_proof_storage_key( req: FraudProofStorageKeyRequest<NumberFor<Block>>, ) -> Vec<u8>

Reture the storage key used in fraud proof
source§

impl GenesisBuilderV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>> for Runtime

source§

fn build_state(config: Vec<u8>) -> Result

Build RuntimeGenesisConfig from a JSON blob not using any defaults and store it in the storage. Read more
source§

fn get_preset(id: &Option<PresetId>) -> Option<Vec<u8>>

Returns a JSON blob representation of the built-in RuntimeGenesisConfig identified by id. Read more
source§

fn preset_names() -> Vec<PresetId>

Returns a list of identifiers for available builtin RuntimeGenesisConfig presets. Read more
source§

impl GetRuntimeBlockType for Runtime

§

type RuntimeBlock = <Runtime as Config>::Block

The RuntimeBlock type.
source§

impl HoldIdentifier<Runtime> for HoldIdentifier

source§

fn staking_staked(operator_id: OperatorId) -> Self

source§

fn domain_instantiation_id(domain_id: DomainId) -> Self

source§

fn storage_fund_withdrawal(operator_id: OperatorId) -> Self

source§

impl HoldIdentifier<Runtime> for HoldIdentifier

source§

fn messenger_channel(dst_chain_id: ChainId, channel_id: ChannelId) -> Self

source§

impl IsInherent<<<Runtime as Config>::Block as Block>::Extrinsic> for Runtime

source§

fn is_inherent(ext: &<<Runtime as Config>::Block as Block>::Extrinsic) -> bool

Whether this extrinsic is an inherent.
source§

impl MessengerApiV4<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>, u32, <Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>> as Block>::Hash> for Runtime

source§

fn is_xdm_mmr_proof_valid(ext: &<Block as BlockT>::Extrinsic) -> Option<bool>

Returns Some(true) if valid XDM or Some(false) if not Returns None if this is not an XDM
source§

fn extract_xdm_mmr_proof( ext: &<Block as BlockT>::Extrinsic, ) -> Option<ConsensusChainMmrLeafProof<BlockNumber, <Block as BlockT>::Hash, H256>>

source§

fn confirmed_domain_block_storage_key(domain_id: DomainId) -> Vec<u8>

Returns the confirmed domain block storage for given domain.
source§

fn outbox_storage_key(message_key: MessageKey) -> Vec<u8>

Returns storage key for outbox for a given message_id.
source§

fn inbox_response_storage_key(message_key: MessageKey) -> Vec<u8>

Returns storage key for inbox response for a given message_id.
source§

fn domain_chains_allowlist_update( domain_id: DomainId, ) -> Option<DomainAllowlistUpdates>

Returns any domain’s chains allowlist updates on consensus chain.
source§

impl MetadataV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>> for Runtime

source§

fn metadata() -> OpaqueMetadata

Returns the metadata of a runtime.
source§

fn metadata_at_version(version: u32) -> Option<OpaqueMetadata>

Returns the metadata at a given version. Read more
source§

fn metadata_versions() -> Vec<u32>

Returns the supported metadata versions. Read more
source§

impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> MmrApi<__SrApiBlock__, <<Runtime as Config>::Hashing as Hash>::Output, u32> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>
where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send, Result<<<Runtime as Config>::Hashing as Hash>::Output, Error>: UnwindSafe + RefUnwindSafe, Result<LeafIndex, Error>: UnwindSafe + RefUnwindSafe, Vec<BlockNumber>: UnwindSafe + RefUnwindSafe, Option<BlockNumber>: UnwindSafe + RefUnwindSafe, Result<(Vec<EncodableOpaqueLeaf>, LeafProof<<<Runtime as Config>::Hashing as Hash>::Output>), Error>: UnwindSafe + RefUnwindSafe, Vec<EncodableOpaqueLeaf>: UnwindSafe + RefUnwindSafe, LeafProof<<<Runtime as Config>::Hashing as Hash>::Output>: UnwindSafe + RefUnwindSafe, Result<(), Error>: UnwindSafe + RefUnwindSafe, <<Runtime as Config>::Hashing as Hash>::Output: UnwindSafe + RefUnwindSafe, __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,

§

fn mmr_root( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<Result<Hash, Error>, ApiError>

Return the on-chain MMR root hash.
§

fn mmr_leaf_count( &self, __runtime_api_at_param__: <Block as Block>::Hash, ) -> Result<Result<u64, Error>, ApiError>

Return the number of MMR blocks in the chain.
§

fn generate_proof( &self, __runtime_api_at_param__: <Block as Block>::Hash, block_numbers: Vec<BlockNumber>, best_known_block_number: Option<BlockNumber>, ) -> Result<Result<(Vec<EncodableOpaqueLeaf>, LeafProof<Hash>), Error>, ApiError>

Generate MMR proof for a series of block numbers. If best_known_block_number = Some(n), use historical MMR state at given block height n. Else, use current MMR state.
§

fn verify_proof( &self, __runtime_api_at_param__: <Block as Block>::Hash, leaves: Vec<EncodableOpaqueLeaf>, proof: LeafProof<Hash>, ) -> Result<Result<(), Error>, ApiError>

Verify MMR proof against on-chain MMR for a batch of leaves. Read more
§

fn verify_proof_stateless( &self, __runtime_api_at_param__: <Block as Block>::Hash, root: Hash, leaves: Vec<EncodableOpaqueLeaf>, proof: LeafProof<Hash>, ) -> Result<Result<(), Error>, ApiError>

Verify MMR proof against given root hash for a batch of leaves. Read more
source§

impl MmrApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>, <<Runtime as Config>::Hashing as Hash>::Output, u32> for Runtime

source§

fn mmr_root() -> Result<<<Runtime as Config>::Hashing as Hash>::Output, Error>

Return the on-chain MMR root hash.
source§

fn mmr_leaf_count() -> Result<LeafIndex, Error>

Return the number of MMR blocks in the chain.
source§

fn generate_proof( block_numbers: Vec<BlockNumber>, best_known_block_number: Option<BlockNumber>, ) -> Result<(Vec<EncodableOpaqueLeaf>, LeafProof<<<Runtime as Config>::Hashing as Hash>::Output>), Error>

Generate MMR proof for a series of block numbers. If best_known_block_number = Some(n), use historical MMR state at given block height n. Else, use current MMR state.
source§

fn verify_proof( leaves: Vec<EncodableOpaqueLeaf>, proof: LeafProof<<<Runtime as Config>::Hashing as Hash>::Output>, ) -> Result<(), Error>

Verify MMR proof against on-chain MMR for a batch of leaves. Read more
source§

fn verify_proof_stateless( root: <<Runtime as Config>::Hashing as Hash>::Output, leaves: Vec<EncodableOpaqueLeaf>, proof: LeafProof<<<Runtime as Config>::Hashing as Hash>::Output>, ) -> Result<(), Error>

Verify MMR proof against given root hash for a batch of leaves. Read more
source§

impl MmrProofVerifier<<<Runtime as Config>::Hashing as Hash>::Output, <<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>> as Block>::Header as Header>::Number, H256> for MmrProofVerifier

source§

fn verify_proof_and_extract_leaf( mmr_leaf_proof: ConsensusChainMmrLeafProof<NumberFor<Block>, Hash, <<Runtime as Config>::Hashing as Hash>::Output>, ) -> Option<<<Runtime as Config>::LeafData as LeafDataProvider>::LeafData>

Returns consensus state root if the given MMR proof is valid
source§

fn verify_proof_stateless( mmr_root: <<Runtime as Config>::Hashing as Hash>::Output, mmr_leaf_proof: ConsensusChainMmrLeafProof<NumberFor<Block>, Hash, <<Runtime as Config>::Hashing as Hash>::Output>, ) -> Option<<<Runtime as Config>::LeafData as LeafDataProvider>::LeafData>

source§

fn extract_leaf_without_verifying( mmr_leaf_proof: ConsensusChainMmrLeafProof<CBlockNumber, CBlockHash, MmrHash>, ) -> Option<MmrLeaf<CBlockNumber, CBlockHash>>

source§

impl ObjectsApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>> for Runtime

source§

fn extract_block_object_mapping( block: Block, successful_calls: Vec<Hash>, ) -> BlockObjectMapping

Extract block object mapping for a given block
source§

fn validated_object_call_hashes() -> Vec<Hash>

Returns all the validated object call hashes for a given block
source§

impl OffchainWorkerApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>> for Runtime

source§

fn offchain_worker(header: &<Block as BlockT>::Header)

Starts the off-chain task for given block header.
source§

impl PartialEq for Runtime

source§

fn eq(&self, other: &Runtime) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl RelayerApiV2<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>, u32, u32, <Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>> as Block>::Hash> for Runtime

source§

fn block_messages() -> BlockMessagesWithStorageKey

Returns all the outbox and inbox responses to deliver. Storage key is used to generate the storage proof for the message.
source§

fn outbox_message_unsigned( msg: CrossDomainMessage<NumberFor<Block>, <Block as BlockT>::Hash, <Block as BlockT>::Hash>, ) -> Option<<Block as BlockT>::Extrinsic>

Constructs an outbox message to the dst_chain as an unsigned extrinsic.
source§

fn inbox_response_message_unsigned( msg: CrossDomainMessage<NumberFor<Block>, <Block as BlockT>::Hash, <Block as BlockT>::Hash>, ) -> Option<<Block as BlockT>::Extrinsic>

Constructs an inbox response message to the dst_chain as an unsigned extrinsic.
source§

fn should_relay_outbox_message(dst_chain_id: ChainId, msg_id: MessageId) -> bool

Returns true if the outbox message is ready to be relayed to dst_chain.
source§

fn should_relay_inbox_message_response( dst_chain_id: ChainId, msg_id: MessageId, ) -> bool

Returns true if the inbox message response is ready to be relayed to dst_chain.
source§

fn updated_channels() -> BTreeSet<(ChainId, ChannelId)>

Returns the list of channels updated in the given block.
source§

fn channel_storage_key(chain_id: ChainId, channel_id: ChannelId) -> Vec<u8>

Returns storage key for channels for given chain and channel id.
source§

impl<C> SendTransactionTypes<C> for Runtime
where RuntimeCall: From<C>,

§

type Extrinsic = UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>

The extrinsic type expected by the runtime.
§

type OverarchingCall = RuntimeCall

The runtime’s call type. Read more
source§

impl SessionKeysV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>> for Runtime

source§

fn generate_session_keys(seed: Option<Vec<u8>>) -> Vec<u8>

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
source§

fn decode_session_keys(encoded: Vec<u8>) -> Option<Vec<(Vec<u8>, KeyTypeId)>>

Decode the given public session keys. Read more
source§

impl SubspaceApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>, Public> for Runtime

source§

fn pot_parameters() -> PotParameters

Proof of time parameters
source§

fn solution_ranges() -> SolutionRanges

Solution ranges.
source§

fn submit_report_equivocation_extrinsic( equivocation_proof: EquivocationProof<<Block as BlockT>::Header>, ) -> Option<()>

Submits an unsigned extrinsic to report an equivocation. The caller must provide the equivocation 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.
source§

fn submit_vote_extrinsic( signed_vote: SignedVote<NumberFor<Block>, <Block as BlockT>::Hash, FarmerPublicKey>, )

Submit farmer vote vote that is essentially a header with bigger solution range than acceptable for block authoring. Only useful in an offchain context.
source§

fn is_in_block_list(farmer_public_key: &FarmerPublicKey) -> bool

Check if farmer_public_key is in block list (due to equivocation)
source§

fn history_size() -> HistorySize

Size of the blockchain history
source§

fn max_pieces_in_sector() -> u16

How many pieces one sector is supposed to contain (max)
source§

fn segment_commitment(segment_index: SegmentIndex) -> Option<SegmentCommitment>

Get the segment commitment of records for specified segment index
source§

fn extract_segment_headers( ext: &<Block as BlockT>::Extrinsic, ) -> Option<Vec<SegmentHeader>>

Returns Vec<SegmentHeader> if a given extrinsic has them.
source§

fn is_inherent(ext: &<Block as BlockT>::Extrinsic) -> bool

Checks if the extrinsic is an inherent.
source§

fn root_plot_public_key() -> Option<FarmerPublicKey>

Returns root plot public key in case block authoring is restricted.
source§

fn should_adjust_solution_range() -> bool

Whether solution range adjustment is enabled.
source§

fn chain_constants() -> ChainConstants

Get Subspace blockchain constants
source§

impl TaggedTransactionQueueV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>> for Runtime

source§

fn validate_transaction( source: TransactionSource, tx: <Block as BlockT>::Extrinsic, block_hash: <Block as BlockT>::Hash, ) -> TransactionValidity

Validate the transaction. Read more
source§

impl TransactionPaymentApiV4<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>, CheckStorageAccess, DisablePallets)>>, u128> for Runtime

source§

fn query_info( uxt: <Block as BlockT>::Extrinsic, len: u32, ) -> RuntimeDispatchInfo<Balance>

source§

fn query_fee_details( uxt: <Block as BlockT>::Extrinsic, len: u32, ) -> FeeDetails<Balance>

source§

fn query_weight_to_fee(weight: Weight) -> Balance

source§

fn query_length_to_fee(length: u32) -> Balance

source§

impl TypeInfo for Runtime

§

type Identity = Runtime

The type identifying for which type info is provided. Read more
source§

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl ValidateUnsigned for Runtime

§

type Call = RuntimeCall

The call to validate
source§

fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>

Validate the call right before dispatch. Read more
source§

fn validate_unsigned( source: TransactionSource, call: &Self::Call, ) -> TransactionValidity

Return the validity of the call Read more
source§

impl Copy for Runtime

source§

impl Eq for Runtime

source§

impl StructuralPartialEq for Runtime

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
§

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T, U> IntoKey<U> for T
where U: FromKey<T>,

§

fn into_key(self) -> U

§

impl<T> IsType<T> for T

§

fn from_ref(t: &T) -> &T

Cast reference.
§

fn into_ref(&self) -> &T

Cast reference.
§

fn from_mut(t: &mut T) -> &mut T

Cast mutable reference.
§

fn into_mut(&mut self) -> &mut T

Cast mutable reference.
§

impl<T, Outer> IsWrappedBy<Outer> for T
where Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

§

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

§

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<T> SaturatedConversion for T

§

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
§

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T, U> TryIntoKey<U> for T
where U: TryFromKey<T>,

§

type Error = <U as TryFromKey<T>>::Error

§

fn try_into_key(self) -> Result<U, <U as TryFromKey<T>>::Error>

§

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
§

impl<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> JsonSchemaMaybe for T

§

impl<T> MaybeDebug for T
where T: Debug,

§

impl<T> MaybeRefUnwindSafe for T
where T: RefUnwindSafe,

§

impl<T> Member for T
where T: Send + Sync + Debug + Eq + PartialEq + Clone + 'static,

§

impl<T> StaticTypeInfo for T
where T: TypeInfo + 'static,