Struct pangolin_runtime::Runtime
source · [−]pub struct Runtime;
Implementations
Trait Implementations
sourceimpl AccountNonceApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime
sourcefn account_nonce(account: AccountId) -> Nonce
fn account_nonce(account: AccountId) -> Nonce
Get current account nonce of given AccountId
.
sourceimpl AuthorityDiscoveryApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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.
sourceimpl BabeApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
sourcefn configuration() -> BabeGenesisConfiguration
fn configuration() -> BabeGenesisConfiguration
Return the genesis configuration for BABE. The configuration is only read on genesis.
sourcefn current_epoch_start() -> Slot
fn current_epoch_start() -> Slot
Returns the slot that started the current epoch.
sourcefn current_epoch() -> Epoch
fn current_epoch() -> Epoch
Returns information regarding the current epoch.
sourcefn next_epoch() -> Epoch
fn next_epoch() -> Epoch
Returns information regarding the next epoch (which was already previously announced). Read more
sourcefn 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
sourcefn 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
sourceimpl BlockBuilder<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
sourcefn apply_extrinsic(
extrinsic: <Block as BlockT>::Extrinsic
) -> ApplyExtrinsicResult
fn apply_extrinsic(
extrinsic: <Block as BlockT>::Extrinsic
) -> ApplyExtrinsicResult
Apply the given extrinsic. Read more
sourcefn finalize_block() -> <Block as BlockT>::Header
fn finalize_block() -> <Block as BlockT>::Header
Finish the current block.
sourcefn inherent_extrinsics(data: InherentData) -> Vec<<Block as BlockT>::Extrinsic>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn inherent_extrinsics(data: InherentData) -> Vec<<Block as BlockT>::Extrinsic>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Generate inherent extrinsics. The inherent data will vary from chain to chain.
sourcefn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult
fn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult
Check that the inherents are valid. The inherent data will vary from chain to chain.
sourceimpl Config for Runtime
impl Config for Runtime
type AccountData = AccountData<u128>
type AccountData = AccountData<u128>
Data to be associated with an account (other than nonce/transaction counter, which this pallet does regardless). Read more
type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
The user account identifier type for the runtime.
type BaseCallFilter = BaseFilter
type BaseCallFilter = BaseFilter
The basic call filter to use in Origin. All origins are built with this filter as base, except Root. Read more
type BlockHashCount = BlockHashCountForPangolin
type BlockHashCount = BlockHashCountForPangolin
Maximum number of block number to block hash mappings to keep (oldest pruned first).
type BlockLength = RuntimeBlockLength
type BlockLength = RuntimeBlockLength
The maximum length of a block (in bytes).
type BlockNumber = u32
type BlockNumber = u32
The block number type used by the runtime.
type BlockWeights = RuntimeBlockWeights
type BlockWeights = RuntimeBlockWeights
Block & extrinsics weights: base values and limits.
type DbWeight = RocksDbWeight
type DbWeight = RocksDbWeight
The weight of runtime database operations the runtime can invoke.
type Hash = H256
type Hash = H256
The output of the Hashing
function.
type Hashing = BlakeTwo256
type Hashing = BlakeTwo256
The hashing system (algorithm) being used in the runtime (e.g. Blake2).
type Index = u32
type Index = u32
Account index (aka nonce) type. This stores the number of previous transactions associated with a sender account. Read more
type Lookup = DarwiniaAccountLookup
type Lookup = DarwiniaAccountLookup
Converting trait to take a source type and convert to AccountId
. Read more
type MaxConsumers = ConstU32<16_u32>
type MaxConsumers = ConstU32<16_u32>
The maximum number of consumers allowed on a single account.
type OnKilledAccount = ()
type OnKilledAccount = ()
A function that is invoked when an account has been determined to be dead. Read more
type OnNewAccount = ()
type OnNewAccount = ()
Handler for when a new account has just been created.
type PalletInfo = PalletInfo
type PalletInfo = PalletInfo
Provides information about the pallet setup in the runtime. Read more
type SS58Prefix = SS58Prefix
type SS58Prefix = SS58Prefix
The designated SS85 prefix of this chain. Read more
type SystemWeightInfo = WeightInfo<Runtime>
sourceimpl Config<()> for Runtime
impl Config<()> for Runtime
type ApproveOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_3, _5, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type ApproveOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_3, _5, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
Origin from which approvals must come.
type BurnDestination = Pallet<Runtime, ()>
type BurnDestination = Pallet<Runtime, ()>
Handler for the unbalanced decrease when treasury funds are burned.
type MaxApprovals = MaxApprovals
type MaxApprovals = MaxApprovals
The maximum number of approvals that can wait in the spending queue.
type OnSlash = Pallet<Runtime, ()>
type OnSlash = Pallet<Runtime, ()>
Handler for the unbalanced decrease when slashing for a rejected proposal or bounty.
type PalletId = TreasuryPalletId
type PalletId = TreasuryPalletId
The treasury’s pallet id, used for deriving its sovereign account ID.
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
type ProposalBondMaximum = ()
type ProposalBondMaximum = ()
Maximum amount of funds that should be placed in a deposit for making a proposal.
type ProposalBondMinimum = RingProposalBondMinimum
type ProposalBondMinimum = RingProposalBondMinimum
Minimum amount of funds that should be placed in a deposit for making a proposal.
type RejectOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type RejectOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
Origin from which rejections must come.
type SpendFunds = Pallet<Runtime>
type SpendFunds = Pallet<Runtime>
Runtime hooks to external pallet using treasury to compute spend funds.
type SpendPeriod = SpendPeriod
type SpendPeriod = SpendPeriod
Period between successive spends.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config<()> for Runtime
impl Config<()> for Runtime
type CandidateDeposit = CandidateDeposit
type CandidateDeposit = CandidateDeposit
The minimum amount of a deposit required for a bid to be made.
type ChallengePeriod = ChallengePeriod
type ChallengePeriod = ChallengePeriod
The number of blocks between membership challenges.
type FounderSetOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type FounderSetOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
The origin that is allowed to call found
.
type MaxCandidateIntake = MaxCandidateIntake
type MaxCandidateIntake = MaxCandidateIntake
The maximum number of candidates that we accept per round.
type MaxLockDuration = MaxLockDuration
type MaxLockDuration = MaxLockDuration
The maximum duration of the payout lock.
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 MembershipChanged = ()
type MembershipChanged = ()
The receiver of the signal for when the members have changed.
type PalletId = SocietyPalletId
type PalletId = SocietyPalletId
The societies’s pallet id
type PeriodSpend = PeriodSpend
type PeriodSpend = PeriodSpend
The amount of incentive paid within each period. Doesn’t include VoterTip.
type Randomness = RandomnessFromOneEpochAgo<Runtime>
type Randomness = RandomnessFromOneEpochAgo<Runtime>
Something that provides randomness in the runtime.
type RotationPeriod = RotationPeriod
type RotationPeriod = RotationPeriod
The number of blocks between candidate/membership rotation periods.
type SuspensionJudgementOrigin = EnsureFounder<Runtime>
type SuspensionJudgementOrigin = EnsureFounder<Runtime>
The origin that is allowed to make suspension judgements.
type WrongSideDeduction = WrongSideDeduction
type WrongSideDeduction = WrongSideDeduction
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
sourceimpl Config<Instance1> for Runtime
impl Config<Instance1> for Runtime
type AccountStore = Pallet<Runtime>
type AccountStore = Pallet<Runtime>
The means of storing the balances of an account.
type BalanceInfo = AccountData<u128>
type BalanceInfo = AccountData<u128>
A handler to access the balance of an account. Different balances instance might have its own implementation, which you can configure in runtime. Read more
type DustRemoval = ()
type DustRemoval = ()
Handler for the unbalanced reduction when removing a dust account.
type ExistentialDeposit = ExistentialDeposit
type ExistentialDeposit = ExistentialDeposit
The minimum amount required to keep an account open.
type MaxLocks = MaxLocks
type MaxLocks = MaxLocks
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 WeightInfo = ()
type WeightInfo = ()
Weight information for extrinsics in this pallet.
sourceimpl Config<Instance1> for Runtime
impl Config<Instance1> for Runtime
type DefaultVote = PrimeDefaultVote
type DefaultVote = PrimeDefaultVote
Default vote strategy of this collective.
type MaxMembers = CouncilMaxMembers
type MaxMembers = CouncilMaxMembers
The maximum number of members supported by the pallet. Used for weight estimation. Read more
type MaxProposals = CouncilMaxProposals
type MaxProposals = CouncilMaxProposals
Maximum number of proposals allowed to be active in parallel.
type MotionDuration = CouncilMotionDuration
type MotionDuration = CouncilMotionDuration
The time-out for council motions.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config<Instance1> for Runtime
impl Config<Instance1> for Runtime
type AddOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type AddOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
Required origin for adding a member (though can always be Root).
type MaxMembers = TechnicalMaxMembers
type MaxMembers = TechnicalMaxMembers
The maximum number of members that this membership can have. Read more
type MembershipChanged = Pallet<Runtime, Instance2>
type MembershipChanged = Pallet<Runtime, Instance2>
The receiver of the signal for when the membership has changed.
type MembershipInitialized = Pallet<Runtime, Instance2>
type MembershipInitialized = Pallet<Runtime, Instance2>
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
type PrimeOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type PrimeOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
Required origin for setting or resetting the prime member.
type RemoveOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type RemoveOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
Required origin for removing a member (though can always be Root).
type ResetOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type ResetOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
Required origin for resetting membership.
type SwapOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type SwapOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
Required origin for adding and removing a member in a single action.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config<Instance1> for Runtime
impl Config<Instance1> for Runtime
type AccountIdConverter = AccountIdConverter
type AccountIdConverter = AccountIdConverter
A type which can be turned into an AccountId from a 256-bit hash. Read more
type BridgedChainId = PangoroChainId
type BridgedChainId = PangoroChainId
Gets the chain id value from the instance.
type InboundMessageFee = u128
type InboundMessageFee = u128
Message fee type of inbound messages. This fee is paid on the bridged chain.
type InboundPayload = MessagePayload<<<WithPangoroMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::AccountId, <<WithPangoroMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signer, <<WithPangoroMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signature, FromBridgedChainEncodedMessageCall<<<WithPangoroMessageBridge as MessageBridge>::ThisChain as ThisChainWithMessages>::Call>>
type InboundPayload = MessagePayload<<<WithPangoroMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::AccountId, <<WithPangoroMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signer, <<WithPangoroMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signature, FromBridgedChainEncodedMessageCall<<<WithPangoroMessageBridge as MessageBridge>::ThisChain as ThisChainWithMessages>::Call>>
Payload type of inbound messages. This payload is dispatched on this chain.
type InboundRelayer = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
type InboundRelayer = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
Identifier of relayer that deliver messages to this chain. Relayer reward is paid on the bridged chain. Read more
type LaneMessageVerifier = FromThisChainMessageVerifier<WithPangoroMessageBridge, Runtime, Instance1>
type LaneMessageVerifier = FromThisChainMessageVerifier<WithPangoroMessageBridge, Runtime, Instance1>
Message payload verifier.
type MaxMessagesToPruneAtOnce = MaxMessagesToPruneAtOnce
type MaxMessagesToPruneAtOnce = MaxMessagesToPruneAtOnce
Maximal number of messages that may be pruned during maintenance. Maintenance occurs whenever new message is sent. The reason is that if you want to use lane, you should be ready to pay for its maintenance. Read more
type MaxUnconfirmedMessagesAtInboundLane = PangoroMaxUnconfirmedMessagesAtInboundLane
type MaxUnconfirmedMessagesAtInboundLane = PangoroMaxUnconfirmedMessagesAtInboundLane
Maximal number of unconfirmed messages at inbound lane. Unconfirmed means that the message has been delivered, but either confirmations haven’t been delivered back to the source chain, or we haven’t received reward confirmations for these messages yet. Read more
type MaxUnrewardedRelayerEntriesAtInboundLane = PangoroMaxUnrewardedRelayerEntriesAtInboundLane
type MaxUnrewardedRelayerEntriesAtInboundLane = PangoroMaxUnrewardedRelayerEntriesAtInboundLane
Maximal number of unrewarded relayer entries at inbound lane. Unrewarded means that the relayer has delivered messages, but either confirmations haven’t been delivered back to the source chain, or we haven’t received reward confirmations yet. Read more
type MessageDeliveryAndDispatchPayment = FeeMarketPayment<Runtime, Instance1, Pallet<Runtime, Instance1>>
type MessageDeliveryAndDispatchPayment = FeeMarketPayment<Runtime, Instance1, Pallet<Runtime, Instance1>>
Message delivery payment.
type MessageDispatch = FromBridgedChainMessageDispatch<WithPangoroMessageBridge, Runtime, Pallet<Runtime, Instance1>, Instance1>
type MessageDispatch = FromBridgedChainMessageDispatch<WithPangoroMessageBridge, Runtime, Pallet<Runtime, Instance1>, Instance1>
Message dispatch.
type OnDeliveryConfirmed = FeeMarketMessageConfirmedHandler<Runtime, Instance1>
type OnDeliveryConfirmed = FeeMarketMessageConfirmedHandler<Runtime, Instance1>
Handler for delivered messages.
type OnMessageAccepted = FeeMarketMessageAcceptedHandler<Runtime, Instance1>
type OnMessageAccepted = FeeMarketMessageAcceptedHandler<Runtime, Instance1>
Handler for accepted messages.
type OutboundMessageFee = u128
type OutboundMessageFee = u128
Message fee type of outbound messages. This fee is paid on this chain.
type OutboundPayload = MessagePayload<<<WithPangoroMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::AccountId, <<WithPangoroMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signer, <<WithPangoroMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signature, Vec<u8, Global>>
type OutboundPayload = MessagePayload<<<WithPangoroMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::AccountId, <<WithPangoroMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signer, <<WithPangoroMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signature, Vec<u8, Global>>
Payload type of outbound messages. This payload is dispatched on the bridged chain.
type Parameter = PangolinToPangoroMessagesParameter
type Parameter = PangolinToPangoroMessagesParameter
Pallet parameter that is opaque to the pallet itself, but may be used by the runtime for integrating the pallet. Read more
type SourceHeaderChain = Pangoro
type SourceHeaderChain = Pangoro
Source header chain, as it is represented on target chain.
type TargetHeaderChain = Pangoro
type TargetHeaderChain = Pangoro
Target header chain.
type WeightInfo = ()
type WeightInfo = ()
Benchmarks results from runtime we’re plugged into.
sourceimpl Config<Instance1> for Runtime
impl Config<Instance1> for Runtime
type AccountIdConverter = AccountIdConverter
type AccountIdConverter = AccountIdConverter
A type which can be turned into an AccountId from a 256-bit hash. Read more
type BridgeMessageId = ([u8; 4], u64)
type BridgeMessageId = ([u8; 4], u64)
Id of the message. Whenever message is passed to the dispatch module, it emits event with this id + dispatch result. Could be e.g. (LaneId, MessageNonce) if it comes from the messages module. Read more
type CallValidator = CallValidator
type CallValidator = CallValidator
Pre-dispatch validation for incoming calls. Read more
type EncodedCall = FromBridgedChainEncodedMessageCall<Call>
type EncodedCall = FromBridgedChainEncodedMessageCall<Call>
The type that is used to wrap the Self::Call
when it is moved over bridge. Read more
type IntoDispatchOrigin = IntoDispatchOrigin
type IntoDispatchOrigin = IntoDispatchOrigin
The type is used to customize the dispatch call origin.
type SourceChainAccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
type SourceChainAccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
Type of account ID on source chain.
type TargetChainAccountPublic = <MultiSignature as Verify>::Signer
type TargetChainAccountPublic = <MultiSignature as Verify>::Signer
Type of account public key on target chain.
type TargetChainSignature = MultiSignature
type TargetChainSignature = MultiSignature
Type of signature that may prove that the message has been signed by
owner of TargetChainAccountPublic
. Read more
sourceimpl Config<Instance1> for Runtime
impl Config<Instance1> for Runtime
type BridgedChain = DarwiniaLike
type BridgedChain = DarwiniaLike
The chain we are bridging to here.
type HeadersToKeep = PangoroHeadersToKeep
type HeadersToKeep = PangoroHeadersToKeep
Maximal number of finalized headers to keep in the storage. Read more
type MaxRequests = MaxRequests
type MaxRequests = MaxRequests
The upper bound on the number of requests allowed by the pallet. Read more
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weights gathered through benchmarking.
sourceimpl Config<Instance1> for Runtime
impl Config<Instance1> for Runtime
type BridgesGrandpaPalletInstance = Instance2
type BridgesGrandpaPalletInstance = Instance2
Instance of bridges GRANDPA pallet that this pallet is linked to. Read more
type HeadsToKeep = RococoHeadersToKeep
type HeadsToKeep = RococoHeadersToKeep
Maximal number of single parachain heads to keep in the storage. Read more
sourceimpl Config<Instance1> for Runtime
impl Config<Instance1> for Runtime
type AssignedRelayerSlashRatio = AssignedRelayerSlashRatio
type AssignedRelayerSlashRatio = AssignedRelayerSlashRatio
The slash ratio for assigned relayers.
type CollateralPerOrder = CollateralPerOrder
type CollateralPerOrder = CollateralPerOrder
The collateral relayer need to lock for each order. Read more
type ConfirmRelayersRewardRatio = ConfirmRelayersRewardRatio
type Currency = Pallet<Runtime, Instance1>
type DutyRelayersRewardRatio = DutyRelayersRewardRatio
type DutyRelayersRewardRatio = DutyRelayersRewardRatio
Reward parameters
type Event = Event
type LockId = PangoroFeeMarketLockId
type MessageRelayersRewardRatio = MessageRelayersRewardRatio
type MinimumRelayFee = MinimumRelayFee
type MinimumRelayFee = MinimumRelayFee
The minimum fee for relaying.
type Slasher = FeeMarketSlasher
type TreasuryPalletId = TreasuryPalletId
type TreasuryPalletId = TreasuryPalletId
Some reward goes to Treasury.
type WeightInfo = WeightInfo<Runtime>
sourceimpl Config<Instance2> for Runtime
impl Config<Instance2> for Runtime
type AccountStore = Pallet<Runtime>
type AccountStore = Pallet<Runtime>
The means of storing the balances of an account.
type BalanceInfo = AccountData<u128>
type BalanceInfo = AccountData<u128>
A handler to access the balance of an account. Different balances instance might have its own implementation, which you can configure in runtime. Read more
type DustRemoval = ()
type DustRemoval = ()
Handler for the unbalanced reduction when removing a dust account.
type ExistentialDeposit = ExistentialDeposit
type ExistentialDeposit = ExistentialDeposit
The minimum amount required to keep an account open.
type MaxLocks = MaxLocks
type MaxLocks = MaxLocks
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 WeightInfo = ()
type WeightInfo = ()
Weight information for extrinsics in this pallet.
sourceimpl Config<Instance2> for Runtime
impl Config<Instance2> for Runtime
type DefaultVote = PrimeDefaultVote
type DefaultVote = PrimeDefaultVote
Default vote strategy of this collective.
type MaxMembers = TechnicalMaxMembers
type MaxMembers = TechnicalMaxMembers
The maximum number of members supported by the pallet. Used for weight estimation. Read more
type MaxProposals = TechnicalMaxProposals
type MaxProposals = TechnicalMaxProposals
Maximum number of proposals allowed to be active in parallel.
type MotionDuration = TechnicalMotionDuration
type MotionDuration = TechnicalMotionDuration
The time-out for council motions.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config<Instance2> for Runtime
impl Config<Instance2> for Runtime
type ApproveOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_3, _5, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type ApproveOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_3, _5, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
Origin from which approvals must come.
type BurnDestination = ()
type BurnDestination = ()
Handler for the unbalanced decrease when treasury funds are burned.
type MaxApprovals = MaxApprovals
type MaxApprovals = MaxApprovals
The maximum number of approvals that can wait in the spending queue.
type OnSlash = Pallet<Runtime, Instance2>
type OnSlash = Pallet<Runtime, Instance2>
Handler for the unbalanced decrease when slashing for a rejected proposal or bounty.
type PalletId = TreasuryPalletId
type PalletId = TreasuryPalletId
The treasury’s pallet id, used for deriving its sovereign account ID.
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
type ProposalBondMaximum = ()
type ProposalBondMaximum = ()
Maximum amount of funds that should be placed in a deposit for making a proposal.
type ProposalBondMinimum = KtonProposalBondMinimum
type ProposalBondMinimum = KtonProposalBondMinimum
Minimum amount of funds that should be placed in a deposit for making a proposal.
type RejectOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type RejectOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
Origin from which rejections must come.
type SpendFunds = ()
type SpendFunds = ()
Runtime hooks to external pallet using treasury to compute spend funds.
type SpendPeriod = SpendPeriod
type SpendPeriod = SpendPeriod
Period between successive spends.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config<Instance2> for Runtime
impl Config<Instance2> for Runtime
type AccountIdConverter = AccountIdConverter
type AccountIdConverter = AccountIdConverter
A type which can be turned into an AccountId from a 256-bit hash. Read more
type BridgedChainId = PangolinParachainChainId
type BridgedChainId = PangolinParachainChainId
Gets the chain id value from the instance.
type InboundMessageFee = u128
type InboundMessageFee = u128
Message fee type of inbound messages. This fee is paid on the bridged chain.
type InboundPayload = MessagePayload<<<WithPangolinParachainMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::AccountId, <<WithPangolinParachainMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signer, <<WithPangolinParachainMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signature, FromBridgedChainEncodedMessageCall<<<WithPangolinParachainMessageBridge as MessageBridge>::ThisChain as ThisChainWithMessages>::Call>>
type InboundPayload = MessagePayload<<<WithPangolinParachainMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::AccountId, <<WithPangolinParachainMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signer, <<WithPangolinParachainMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signature, FromBridgedChainEncodedMessageCall<<<WithPangolinParachainMessageBridge as MessageBridge>::ThisChain as ThisChainWithMessages>::Call>>
Payload type of inbound messages. This payload is dispatched on this chain.
type InboundRelayer = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
type InboundRelayer = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
Identifier of relayer that deliver messages to this chain. Relayer reward is paid on the bridged chain. Read more
type LaneMessageVerifier = FromThisChainMessageVerifier<WithPangolinParachainMessageBridge, Runtime, Instance2>
type LaneMessageVerifier = FromThisChainMessageVerifier<WithPangolinParachainMessageBridge, Runtime, Instance2>
Message payload verifier.
type MaxMessagesToPruneAtOnce = MaxMessagesToPruneAtOnce
type MaxMessagesToPruneAtOnce = MaxMessagesToPruneAtOnce
Maximal number of messages that may be pruned during maintenance. Maintenance occurs whenever new message is sent. The reason is that if you want to use lane, you should be ready to pay for its maintenance. Read more
type MaxUnconfirmedMessagesAtInboundLane = PangolinParachainMaxUnconfirmedMessagesAtInboundLane
type MaxUnconfirmedMessagesAtInboundLane = PangolinParachainMaxUnconfirmedMessagesAtInboundLane
Maximal number of unconfirmed messages at inbound lane. Unconfirmed means that the message has been delivered, but either confirmations haven’t been delivered back to the source chain, or we haven’t received reward confirmations for these messages yet. Read more
type MaxUnrewardedRelayerEntriesAtInboundLane = PangolinParachainMaxUnrewardedRelayerEntriesAtInboundLane
type MaxUnrewardedRelayerEntriesAtInboundLane = PangolinParachainMaxUnrewardedRelayerEntriesAtInboundLane
Maximal number of unrewarded relayer entries at inbound lane. Unrewarded means that the relayer has delivered messages, but either confirmations haven’t been delivered back to the source chain, or we haven’t received reward confirmations yet. Read more
type MessageDeliveryAndDispatchPayment = FeeMarketPayment<Runtime, Instance2, Pallet<Runtime, Instance1>>
type MessageDeliveryAndDispatchPayment = FeeMarketPayment<Runtime, Instance2, Pallet<Runtime, Instance1>>
Message delivery payment.
type MessageDispatch = FromBridgedChainMessageDispatch<WithPangolinParachainMessageBridge, Runtime, Pallet<Runtime, Instance1>, Instance2>
type MessageDispatch = FromBridgedChainMessageDispatch<WithPangolinParachainMessageBridge, Runtime, Pallet<Runtime, Instance1>, Instance2>
Message dispatch.
type OnDeliveryConfirmed = (Pallet<Runtime>, FeeMarketMessageConfirmedHandler<Runtime, Instance2>)
type OnDeliveryConfirmed = (Pallet<Runtime>, FeeMarketMessageConfirmedHandler<Runtime, Instance2>)
Handler for delivered messages.
type OnMessageAccepted = FeeMarketMessageAcceptedHandler<Runtime, Instance2>
type OnMessageAccepted = FeeMarketMessageAcceptedHandler<Runtime, Instance2>
Handler for accepted messages.
type OutboundMessageFee = u128
type OutboundMessageFee = u128
Message fee type of outbound messages. This fee is paid on this chain.
type OutboundPayload = MessagePayload<<<WithPangolinParachainMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::AccountId, <<WithPangolinParachainMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signer, <<WithPangolinParachainMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signature, Vec<u8, Global>>
type OutboundPayload = MessagePayload<<<WithPangolinParachainMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::AccountId, <<WithPangolinParachainMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signer, <<WithPangolinParachainMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signature, Vec<u8, Global>>
Payload type of outbound messages. This payload is dispatched on the bridged chain.
type Parameter = PangolinToPangolinParachainParameter
type Parameter = PangolinToPangolinParachainParameter
Pallet parameter that is opaque to the pallet itself, but may be used by the runtime for integrating the pallet. Read more
type SourceHeaderChain = PangolinParachain
type SourceHeaderChain = PangolinParachain
Source header chain, as it is represented on target chain.
type TargetHeaderChain = PangolinParachain
type TargetHeaderChain = PangolinParachain
Target header chain.
type WeightInfo = ()
type WeightInfo = ()
Benchmarks results from runtime we’re plugged into.
sourceimpl Config<Instance2> for Runtime
impl Config<Instance2> for Runtime
type AccountIdConverter = AccountIdConverter
type AccountIdConverter = AccountIdConverter
A type which can be turned into an AccountId from a 256-bit hash. Read more
type BridgeMessageId = ([u8; 4], u64)
type BridgeMessageId = ([u8; 4], u64)
Id of the message. Whenever message is passed to the dispatch module, it emits event with this id + dispatch result. Could be e.g. (LaneId, MessageNonce) if it comes from the messages module. Read more
type CallValidator = CallValidator
type CallValidator = CallValidator
Pre-dispatch validation for incoming calls. Read more
type EncodedCall = FromBridgedChainEncodedMessageCall<Call>
type EncodedCall = FromBridgedChainEncodedMessageCall<Call>
The type that is used to wrap the Self::Call
when it is moved over bridge. Read more
type IntoDispatchOrigin = IntoDispatchOrigin
type IntoDispatchOrigin = IntoDispatchOrigin
The type is used to customize the dispatch call origin.
type SourceChainAccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
type SourceChainAccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
Type of account ID on source chain.
type TargetChainAccountPublic = <MultiSignature as Verify>::Signer
type TargetChainAccountPublic = <MultiSignature as Verify>::Signer
Type of account public key on target chain.
type TargetChainSignature = MultiSignature
type TargetChainSignature = MultiSignature
Type of signature that may prove that the message has been signed by
owner of TargetChainAccountPublic
. Read more
sourceimpl Config<Instance2> for Runtime
impl Config<Instance2> for Runtime
type BridgedChain = PolkadotLike
type BridgedChain = PolkadotLike
The chain we are bridging to here.
type HeadersToKeep = RococoHeadersToKeep
type HeadersToKeep = RococoHeadersToKeep
Maximal number of finalized headers to keep in the storage. Read more
type MaxRequests = MaxRequests
type MaxRequests = MaxRequests
The upper bound on the number of requests allowed by the pallet. Read more
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weights gathered through benchmarking.
sourceimpl Config<Instance2> for Runtime
impl Config<Instance2> for Runtime
type BridgesGrandpaPalletInstance = Instance3
type BridgesGrandpaPalletInstance = Instance3
Instance of bridges GRANDPA pallet that this pallet is linked to. Read more
type HeadsToKeep = RococoHeadersToKeep
type HeadsToKeep = RococoHeadersToKeep
Maximal number of single parachain heads to keep in the storage. Read more
sourceimpl Config<Instance2> for Runtime
impl Config<Instance2> for Runtime
type AssignedRelayerSlashRatio = AssignedRelayerSlashRatio
type AssignedRelayerSlashRatio = AssignedRelayerSlashRatio
The slash ratio for assigned relayers.
type CollateralPerOrder = CollateralPerOrder
type CollateralPerOrder = CollateralPerOrder
The collateral relayer need to lock for each order. Read more
type ConfirmRelayersRewardRatio = ConfirmRelayersRewardRatio
type Currency = Pallet<Runtime, Instance1>
type DutyRelayersRewardRatio = DutyRelayersRewardRatio
type DutyRelayersRewardRatio = DutyRelayersRewardRatio
Reward parameters
type Event = Event
type LockId = PangolinParachainFeeMarketLockId
type MessageRelayersRewardRatio = MessageRelayersRewardRatio
type MinimumRelayFee = MinimumRelayFee
type MinimumRelayFee = MinimumRelayFee
The minimum fee for relaying.
type Slasher = FeeMarketSlasher
type TreasuryPalletId = TreasuryPalletId
type TreasuryPalletId = TreasuryPalletId
Some reward goes to Treasury.
type WeightInfo = WeightInfo<Runtime>
sourceimpl Config<Instance3> for Runtime
impl Config<Instance3> for Runtime
type AccountIdConverter = AccountIdConverter
type AccountIdConverter = AccountIdConverter
A type which can be turned into an AccountId from a 256-bit hash. Read more
type BridgedChainId = PangolinParachainAlphaChainId
type BridgedChainId = PangolinParachainAlphaChainId
Gets the chain id value from the instance.
type InboundMessageFee = u128
type InboundMessageFee = u128
Message fee type of inbound messages. This fee is paid on the bridged chain.
type InboundPayload = MessagePayload<<<WithPangolinParachainAlphaMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::AccountId, <<WithPangolinParachainAlphaMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signer, <<WithPangolinParachainAlphaMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signature, FromBridgedChainEncodedMessageCall<<<WithPangolinParachainAlphaMessageBridge as MessageBridge>::ThisChain as ThisChainWithMessages>::Call>>
type InboundPayload = MessagePayload<<<WithPangolinParachainAlphaMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::AccountId, <<WithPangolinParachainAlphaMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signer, <<WithPangolinParachainAlphaMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::Signature, FromBridgedChainEncodedMessageCall<<<WithPangolinParachainAlphaMessageBridge as MessageBridge>::ThisChain as ThisChainWithMessages>::Call>>
Payload type of inbound messages. This payload is dispatched on this chain.
type InboundRelayer = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
type InboundRelayer = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
Identifier of relayer that deliver messages to this chain. Relayer reward is paid on the bridged chain. Read more
type LaneMessageVerifier = FromThisChainMessageVerifier<WithPangolinParachainAlphaMessageBridge, Runtime, Instance3>
type LaneMessageVerifier = FromThisChainMessageVerifier<WithPangolinParachainAlphaMessageBridge, Runtime, Instance3>
Message payload verifier.
type MaxMessagesToPruneAtOnce = MaxMessagesToPruneAtOnce
type MaxMessagesToPruneAtOnce = MaxMessagesToPruneAtOnce
Maximal number of messages that may be pruned during maintenance. Maintenance occurs whenever new message is sent. The reason is that if you want to use lane, you should be ready to pay for its maintenance. Read more
type MaxUnconfirmedMessagesAtInboundLane = PangolinParachainMaxUnconfirmedMessagesAtInboundLane
type MaxUnconfirmedMessagesAtInboundLane = PangolinParachainMaxUnconfirmedMessagesAtInboundLane
Maximal number of unconfirmed messages at inbound lane. Unconfirmed means that the message has been delivered, but either confirmations haven’t been delivered back to the source chain, or we haven’t received reward confirmations for these messages yet. Read more
type MaxUnrewardedRelayerEntriesAtInboundLane = PangolinParachainMaxUnrewardedRelayerEntriesAtInboundLane
type MaxUnrewardedRelayerEntriesAtInboundLane = PangolinParachainMaxUnrewardedRelayerEntriesAtInboundLane
Maximal number of unrewarded relayer entries at inbound lane. Unrewarded means that the relayer has delivered messages, but either confirmations haven’t been delivered back to the source chain, or we haven’t received reward confirmations yet. Read more
type MessageDeliveryAndDispatchPayment = FeeMarketPayment<Runtime, Instance3, Pallet<Runtime, Instance1>>
type MessageDeliveryAndDispatchPayment = FeeMarketPayment<Runtime, Instance3, Pallet<Runtime, Instance1>>
Message delivery payment.
type MessageDispatch = FromBridgedChainMessageDispatch<WithPangolinParachainAlphaMessageBridge, Runtime, Pallet<Runtime, Instance1>, Instance3>
type MessageDispatch = FromBridgedChainMessageDispatch<WithPangolinParachainAlphaMessageBridge, Runtime, Pallet<Runtime, Instance1>, Instance3>
Message dispatch.
type OnDeliveryConfirmed = (Pallet<Runtime>, FeeMarketMessageConfirmedHandler<Runtime, Instance3>)
type OnDeliveryConfirmed = (Pallet<Runtime>, FeeMarketMessageConfirmedHandler<Runtime, Instance3>)
Handler for delivered messages.
type OnMessageAccepted = FeeMarketMessageAcceptedHandler<Runtime, Instance3>
type OnMessageAccepted = FeeMarketMessageAcceptedHandler<Runtime, Instance3>
Handler for accepted messages.
type OutboundMessageFee = u128
type OutboundMessageFee = u128
Message fee type of outbound messages. This fee is paid on this chain.
type OutboundPayload = MessagePayload<<<WithPangolinParachainAlphaMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::AccountId, <<WithPangolinParachainAlphaMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signer, <<WithPangolinParachainAlphaMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signature, Vec<u8, Global>>
type OutboundPayload = MessagePayload<<<WithPangolinParachainAlphaMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::AccountId, <<WithPangolinParachainAlphaMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signer, <<WithPangolinParachainAlphaMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signature, Vec<u8, Global>>
Payload type of outbound messages. This payload is dispatched on the bridged chain.
type Parameter = PangolinToPangolinParachainAlphaParameter
type Parameter = PangolinToPangolinParachainAlphaParameter
Pallet parameter that is opaque to the pallet itself, but may be used by the runtime for integrating the pallet. Read more
type SourceHeaderChain = PangolinParachainAlpha
type SourceHeaderChain = PangolinParachainAlpha
Source header chain, as it is represented on target chain.
type TargetHeaderChain = PangolinParachainAlpha
type TargetHeaderChain = PangolinParachainAlpha
Target header chain.
type WeightInfo = ()
type WeightInfo = ()
Benchmarks results from runtime we’re plugged into.
sourceimpl Config<Instance3> for Runtime
impl Config<Instance3> for Runtime
type AccountIdConverter = AccountIdConverter
type AccountIdConverter = AccountIdConverter
A type which can be turned into an AccountId from a 256-bit hash. Read more
type BridgeMessageId = ([u8; 4], u64)
type BridgeMessageId = ([u8; 4], u64)
Id of the message. Whenever message is passed to the dispatch module, it emits event with this id + dispatch result. Could be e.g. (LaneId, MessageNonce) if it comes from the messages module. Read more
type CallValidator = CallValidator
type CallValidator = CallValidator
Pre-dispatch validation for incoming calls. Read more
type EncodedCall = FromBridgedChainEncodedMessageCall<Call>
type EncodedCall = FromBridgedChainEncodedMessageCall<Call>
The type that is used to wrap the Self::Call
when it is moved over bridge. Read more
type IntoDispatchOrigin = IntoDispatchOrigin
type IntoDispatchOrigin = IntoDispatchOrigin
The type is used to customize the dispatch call origin.
type SourceChainAccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
type SourceChainAccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
Type of account ID on source chain.
type TargetChainAccountPublic = <MultiSignature as Verify>::Signer
type TargetChainAccountPublic = <MultiSignature as Verify>::Signer
Type of account public key on target chain.
type TargetChainSignature = MultiSignature
type TargetChainSignature = MultiSignature
Type of signature that may prove that the message has been signed by
owner of TargetChainAccountPublic
. Read more
sourceimpl Config<Instance3> for Runtime
impl Config<Instance3> for Runtime
type BridgedChain = PolkadotLike
type BridgedChain = PolkadotLike
The chain we are bridging to here.
type HeadersToKeep = RococoHeadersToKeep
type HeadersToKeep = RococoHeadersToKeep
Maximal number of finalized headers to keep in the storage. Read more
type MaxRequests = MaxRequests
type MaxRequests = MaxRequests
The upper bound on the number of requests allowed by the pallet. Read more
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weights gathered through benchmarking.
sourceimpl Config<Instance3> for Runtime
impl Config<Instance3> for Runtime
type AssignedRelayerSlashRatio = AssignedRelayerSlashRatio
type AssignedRelayerSlashRatio = AssignedRelayerSlashRatio
The slash ratio for assigned relayers.
type CollateralPerOrder = CollateralPerOrder
type CollateralPerOrder = CollateralPerOrder
The collateral relayer need to lock for each order. Read more
type ConfirmRelayersRewardRatio = ConfirmRelayersRewardRatio
type Currency = Pallet<Runtime, Instance1>
type DutyRelayersRewardRatio = DutyRelayersRewardRatio
type DutyRelayersRewardRatio = DutyRelayersRewardRatio
Reward parameters
type Event = Event
type LockId = PangolinParachainAlphaFeeMarketLockId
type MessageRelayersRewardRatio = MessageRelayersRewardRatio
type MinimumRelayFee = MinimumRelayFee
type MinimumRelayFee = MinimumRelayFee
The minimum fee for relaying.
type Slasher = FeeMarketSlasher
type TreasuryPalletId = TreasuryPalletId
type TreasuryPalletId = TreasuryPalletId
Some reward goes to Treasury.
type WeightInfo = WeightInfo<Runtime>
sourceimpl Config for Runtime
impl Config for Runtime
type DisabledValidators = Pallet<Runtime>
type DisabledValidators = Pallet<Runtime>
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 EpochChangeTrigger = ExternalTrigger
type EpochChangeTrigger = ExternalTrigger
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 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
type ExpectedBlockTime = ExpectedBlockTime
type ExpectedBlockTime = ExpectedBlockTime
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
type HandleEquivocation = EquivocationHandler<<Runtime as Config>::KeyOwnerIdentification, Pallet<Runtime>, ReportLongevity>
type HandleEquivocation = EquivocationHandler<<Runtime as Config>::KeyOwnerIdentification, Pallet<Runtime>, ReportLongevity>
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 KeyOwnerIdentification = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::IdentificationTuple
type KeyOwnerIdentification = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::IdentificationTuple
The identification of a key owner, used when reporting equivocations.
type KeyOwnerProof = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::Proof
type KeyOwnerProof = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::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 KeyOwnerProofSystem = Pallet<Runtime>
type KeyOwnerProofSystem = Pallet<Runtime>
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 MaxAuthorities = MaxAuthorities
type MaxAuthorities = MaxAuthorities
Max number of authorities allowed
type WeightInfo = ()
sourceimpl Config for Runtime
impl Config for Runtime
type Keys = SessionKeys
type Keys = SessionKeys
The keys.
type NextSessionRotation = Pallet<Runtime>
type NextSessionRotation = Pallet<Runtime>
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 SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders
type SessionHandler = <SessionKeys as OpaqueKeys>::KeyTypeIdProviders
Handler when a session has changed.
type SessionManager = NoteHistoricalRoot<Runtime, Pallet<Runtime>>
type SessionManager = NoteHistoricalRoot<Runtime, Pallet<Runtime>>
Handler for managing new session.
type ShouldEndSession = Pallet<Runtime>
type ShouldEndSession = Pallet<Runtime>
Indicator for when to end the session.
type ValidatorId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
type ValidatorId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId
A stable ID for a validator.
type ValidatorIdOf = StashOf<Runtime>
type ValidatorIdOf = StashOf<Runtime>
A conversion from account ID to validator ID. Read more
type WeightInfo = ()
type WeightInfo = ()
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type HandleEquivocation = EquivocationHandler<<Runtime as Config>::KeyOwnerIdentification, Pallet<Runtime>, ReportLongevity, GrandpaEquivocationOffence<<Runtime as Config>::KeyOwnerIdentification>>
type HandleEquivocation = EquivocationHandler<<Runtime as Config>::KeyOwnerIdentification, Pallet<Runtime>, ReportLongevity, GrandpaEquivocationOffence<<Runtime as Config>::KeyOwnerIdentification>>
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 KeyOwnerIdentification = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::IdentificationTuple
type KeyOwnerIdentification = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::IdentificationTuple
The identification of a key owner, used when reporting equivocations.
type KeyOwnerProof = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::Proof
type KeyOwnerProof = <<Runtime as Config>::KeyOwnerProofSystem as KeyOwnerProofSystem<(KeyTypeId, Public)>>::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 KeyOwnerProofSystem = Pallet<Runtime>
type KeyOwnerProofSystem = Pallet<Runtime>
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 MaxAuthorities = MaxAuthorities
type MaxAuthorities = MaxAuthorities
Max Authorities in use
type WeightInfo = ()
type WeightInfo = ()
Weights for this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type ChainId = ChainId
type ChainId = ChainId
Chain’s ID, which is using for constructing the message. (follow EIP-712 SPEC)
type Event = Event
type MaxAuthorities = ConstU32<3_u32>
type MaxAuthorities = ConstU32<3_u32>
The maximum number of authorities.
type MaxPendingPeriod = MaxPendingPeriod
type MaxPendingPeriod = MaxPendingPeriod
How long should we wait for the message root to be signed. Read more
type MessageRoot = MessageRootGetter<Runtime>
type MessageRoot = MessageRootGetter<Runtime>
The Darwinia message root. Read more
type SignThreshold = SignThreshold
type SignThreshold = SignThreshold
The signing threshold. Read more
type SyncInterval = SyncInterval
type SyncInterval = SyncInterval
The interval of checking the message root.
type WeightInfo = ()
sourceimpl Config for Runtime
impl Config for Runtime
type AuthorityId = Public
type AuthorityId = Public
The identifier type for an authority.
type MaxPeerDataEncodingSize = MaxPeerDataEncodingSize
type MaxPeerDataEncodingSize = MaxPeerDataEncodingSize
The maximum size of the encoding of PeerId
and MultiAddr
that are coming
from the hearbeat Read more
type MaxPeerInHeartbeats = MaxPeerInHeartbeats
type MaxPeerInHeartbeats = MaxPeerInHeartbeats
The maximum number of peers to be stored in ReceivedHeartbeats
type NextSessionRotation = Pallet<Runtime>
type NextSessionRotation = Pallet<Runtime>
A trait that allows us to estimate the current session progress and also the average session length. Read more
type ReportUnresponsiveness = Pallet<Runtime>
type ReportUnresponsiveness = Pallet<Runtime>
A type that gives us the ability to submit unresponsiveness offence reports.
type UnsignedPriority = ImOnlineUnsignedPriority
type UnsignedPriority = ImOnlineUnsignedPriority
A configuration for base priority of unsigned transactions. Read more
type ValidatorSet = Pallet<Runtime>
type ValidatorSet = Pallet<Runtime>
A type for retrieving the validators supposed to be online in a session.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type MaxAuthorities = MaxAuthorities
type MaxAuthorities = MaxAuthorities
The maximum number of authorities that can be added.
sourceimpl Config for Runtime
impl Config for Runtime
type WeightInfo = ()
sourceconst INDEXING_PREFIX: &'static [u8] = b"header-mmr-"
const INDEXING_PREFIX: &'static [u8] = b"header-mmr-"
The offchain-indexing prefix
sourceimpl Config for Runtime
impl Config for Runtime
type ExternalDefaultOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _1, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type ExternalDefaultOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _1, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
A unanimous council can have the next scheduled referendum be a straight default-carries (NTB) vote.
type ExternalMajorityOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type ExternalMajorityOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
A majority can have the next scheduled referendum be a straight majority-carries vote.
type ExternalOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type ExternalOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
A straight majority of the council can decide what their next motion is.
type FastTrackOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_2, _3, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2>>
type FastTrackOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_2, _3, <<MultiSignature as Verify>::Signer as IdentifyAccount>::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 BlacklistOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type BlacklistOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
Origin from which proposals may be blacklisted.
type CancelProposalOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _1, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2>>
type CancelProposalOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _1, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2>>
Origin from which a proposal may be cancelled and its backers slashed.
type CancellationOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_2, _3, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type CancellationOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_2, _3, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
Origin from which any referendum may be cancelled in an emergency.
type CooloffPeriod = CooloffPeriod
type CooloffPeriod = CooloffPeriod
Period in blocks where an external proposal may not be re-submitted after being vetoed.
type EnactmentPeriod = EnactmentPeriod
type EnactmentPeriod = EnactmentPeriod
The period between a proposal being approved and enacted. Read more
type Event = Event
type FastTrackVotingPeriod = FastTrackVotingPeriod
type FastTrackVotingPeriod = FastTrackVotingPeriod
Minimum voting period allowed for a fast-track referendum.
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
type InstantOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _1, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2>>
type InstantOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _1, <<MultiSignature as Verify>::Signer as IdentifyAccount>::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 LaunchPeriod = LaunchPeriod
type LaunchPeriod = LaunchPeriod
How often (in blocks) new public referenda are launched.
type MaxProposals = MaxProposals
type MaxProposals = MaxProposals
The maximum number of public proposals that can exist at any time.
type MinimumDeposit = MinimumDeposit
type MinimumDeposit = MinimumDeposit
The minimum amount to be used as a deposit for a public referendum proposal.
type OperationalPreimageOrigin = EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>
type OperationalPreimageOrigin = EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>
An origin that can provide a preimage using operational extrinsics.
type PalletsOrigin = OriginCaller
type PalletsOrigin = OriginCaller
Overarching type of all pallets origins.
type PreimageByteDeposit = PreimageByteDeposit
type PreimageByteDeposit = PreimageByteDeposit
The amount of balance that must be deposited per byte of preimage stored.
type Proposal = Call
type Slash = Pallet<Runtime, ()>
type Slash = Pallet<Runtime, ()>
Handler for the unbalanced reduction when slashing a preimage deposit.
type VetoOrigin = EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2>
type VetoOrigin = EnsureMember<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance2>
Origin for anyone able to veto proposals. Read more
type VoteLockingPeriod = EnactmentPeriod
type VoteLockingPeriod = EnactmentPeriod
The minimum period of vote locking. Read more
type VotingPeriod = VotingPeriod
type VotingPeriod = VotingPeriod
How often (in blocks) to check for new votes.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type CandidacyBond = CandidacyBond
type CandidacyBond = CandidacyBond
How much should be locked up in order to submit one’s candidacy.
type ChangeMembers = Pallet<Runtime, Instance1>
type ChangeMembers = Pallet<Runtime, Instance1>
What to do when the members change.
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 DesiredMembers = DesiredMembers
type DesiredMembers = DesiredMembers
Number of members to elect.
type DesiredRunnersUp = DesiredRunnersUp
type DesiredRunnersUp = DesiredRunnersUp
Number of runners_up to keep.
type Event = Event
type InitializeMembers = Pallet<Runtime, Instance1>
type InitializeMembers = Pallet<Runtime, Instance1>
What to do with genesis members
type KickedMember = Pallet<Runtime, ()>
type KickedMember = Pallet<Runtime, ()>
Handler for the unbalanced reduction when a member has been kicked.
type LoserCandidate = Pallet<Runtime, ()>
type LoserCandidate = Pallet<Runtime, ()>
Handler for the unbalanced reduction when a candidate has lost (and is not a runner-up)
type PalletId = PhragmenElectionPalletId
type PalletId = PhragmenElectionPalletId
Identifier for the elections-phragmen pallet’s lock
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 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 WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
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 OnTimestampSet = Pallet<Runtime>
type OnTimestampSet = Pallet<Runtime>
Something which can be notified when the timestamp is set. Set this to ()
if not
needed. Read more
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type DataDepositPerByte = DataDepositPerByte
type DataDepositPerByte = DataDepositPerByte
The amount held on deposit per byte within the tip report reason or bounty description.
type MaximumReasonLength = MaximumReasonLength
type MaximumReasonLength = MaximumReasonLength
Maximum acceptable reason length. Read more
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.
type TipReportDepositBase = TipReportDepositBase
type TipReportDepositBase = TipReportDepositBase
The amount held on deposit for placing a tip report.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type BountyCuratorDeposit = BountyCuratorDeposit
type BountyCuratorDeposit = BountyCuratorDeposit
Percentage of the curator fee that will be reserved upfront as deposit for bounty curator. Read more
type BountyDepositBase = BountyDepositBase
type BountyDepositBase = BountyDepositBase
The amount held on deposit for placing a bounty proposal.
type BountyDepositPayoutDelay = BountyDepositPayoutDelay
type BountyDepositPayoutDelay = BountyDepositPayoutDelay
The delay period for which a bounty beneficiary need to wait before claim the payout.
type BountyUpdatePeriod = BountyUpdatePeriod
type BountyUpdatePeriod = BountyUpdatePeriod
Bounty duration in blocks.
type BountyValueMinimum = BountyValueMinimum
type BountyValueMinimum = BountyValueMinimum
Minimum value for a bounty.
type ChildBountyManager = ()
type ChildBountyManager = ()
The child-bounty manager.
type DataDepositPerByte = DataDepositPerByte
type DataDepositPerByte = DataDepositPerByte
The amount held on deposit per byte within the tip report reason or bounty description.
type MaximumReasonLength = MaximumReasonLength
type MaximumReasonLength = MaximumReasonLength
Maximum acceptable reason length. Read more
type WeightInfo = ()
type WeightInfo = ()
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type BlockNumberToBalance = ConvertInto
type BlockNumberToBalance = ConvertInto
Convert the block number into a balance.
type MinVestedTransfer = MinVestedTransfer
type MinVestedTransfer = MinVestedTransfer
The minimum amount transferred to call vested_transfer
.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceconst MAX_VESTING_SCHEDULES: u32 = 28u32
const MAX_VESTING_SCHEDULES: u32 = 28u32
Maximum number of vesting schedules an account may have at a given moment.
sourceimpl Config for Runtime
impl Config for Runtime
type PalletsOrigin = OriginCaller
type PalletsOrigin = OriginCaller
The caller origin, overarching type of all pallets origins.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
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.
type ForceOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type ForceOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
The origin which may forcibly set or remove a name. Root can always do this.
type MaxAdditionalFields = MaxAdditionalFields
type MaxAdditionalFields = MaxAdditionalFields
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 MaxSubAccounts = MaxSubAccounts
type MaxSubAccounts = MaxSubAccounts
The maximum number of sub-accounts allowed per identified account.
type RegistrarOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type RegistrarOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionMoreThan<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
The origin which may add or remove registrars. Root can always do this.
type SubAccountDeposit = SubAccountDeposit
type SubAccountDeposit = SubAccountDeposit
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 WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type ConfigDepositBase = ConfigDepositBase
type ConfigDepositBase = ConfigDepositBase
The base amount of currency needed to reserve for creating a recovery configuration. Read more
type FriendDepositFactor = FriendDepositFactor
type FriendDepositFactor = FriendDepositFactor
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
sourceimpl Config for Runtime
impl Config for Runtime
type MaxScheduledPerBlock = MaxScheduledPerBlock
type MaxScheduledPerBlock = MaxScheduledPerBlock
The maximum number of scheduled calls in the queue for a single block. Not strictly enforced, but used for weight estimation. Read more
type MaximumWeight = MaximumSchedulerWeight
type MaximumWeight = MaximumSchedulerWeight
The maximum weight that may be scheduled per block for any dispatchables of less
priority than schedule::HARD_DEADLINE
. Read more
type NoPreimagePostponement = NoPreimagePostponement
type NoPreimagePostponement = NoPreimagePostponement
If Some
then the number of blocks to postpone execution for when the item is delayed.
type OriginPrivilegeCmp = EqualPrivilegeOnly
type OriginPrivilegeCmp = EqualPrivilegeOnly
Compare the privileges of origins. Read more
type PalletsOrigin = OriginCaller
type PalletsOrigin = OriginCaller
The caller origin, overarching type of all pallets origins.
type PreimageProvider = Pallet<Runtime>
type PreimageProvider = Pallet<Runtime>
The preimage provider with which we look up call hashes to get the call.
type ScheduleOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
type ScheduleOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
Required origin to schedule or cancel calls.
type WeightInfo = ()
type WeightInfo = ()
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type BaseDeposit = PreimageBaseDeposit
type BaseDeposit = PreimageBaseDeposit
The base deposit for placing a preimage on chain.
type ByteDeposit = PreimageByteDeposit
type ByteDeposit = PreimageByteDeposit
The per-byte deposit for placing a preimage on chain.
type ManagerOrigin = EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>
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. Read more
type MaxSize = PreimageMaxSize
type MaxSize = PreimageMaxSize
Max size allowed for a preimage.
type WeightInfo = ()
type WeightInfo = ()
The Weight information for this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type AnnouncementDepositBase = AnnouncementDepositBase
type AnnouncementDepositBase = AnnouncementDepositBase
The base amount of currency needed to reserve for creating an announcement. Read more
type AnnouncementDepositFactor = AnnouncementDepositFactor
type AnnouncementDepositFactor = AnnouncementDepositFactor
The amount of currency needed per announcement made. Read more
type CallHasher = BlakeTwo256
type CallHasher = BlakeTwo256
The type of hash used for hashing the call.
type MaxPending = MaxPending
type MaxPending = MaxPending
The maximum amount of time-delayed announcements that are allowed to be pending.
type MaxProxies = MaxProxies
type MaxProxies = MaxProxies
The maximum amount of proxies allowed for a single account.
type ProxyDepositBase = ProxyDepositBase
type ProxyDepositBase = ProxyDepositBase
The base amount of currency needed to reserve for creating a proxy. Read more
type ProxyDepositFactor = ProxyDepositFactor
type ProxyDepositFactor = ProxyDepositFactor
The amount of currency needed per proxy added. Read more
type ProxyType = ProxyType
type ProxyType = ProxyType
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 WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type FeeMultiplierUpdate = TargetedFeeAdjustment<Runtime, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier>
type FeeMultiplierUpdate = TargetedFeeAdjustment<Runtime, TargetBlockFullness, AdjustmentVariable, MinimumMultiplier>
Update the multiplier of the next block, based on the previous block’s weight.
type OnChargeTransaction = CurrencyAdapter<Pallet<Runtime, Instance1>, DealWithFees<Runtime>>
type OnChargeTransaction = CurrencyAdapter<Pallet<Runtime, Instance1>, DealWithFees<Runtime>>
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
type OperationalFeeMultiplier = OperationalFeeMultiplier
type OperationalFeeMultiplier = OperationalFeeMultiplier
A fee mulitplier for Operational
extrinsics to compute “virtual tip” to boost their
priority
Read more
type TransactionByteFee = TransactionByteFee
type TransactionByteFee = TransactionByteFee
The fee to be paid for making a transaction; the per-byte portion.
type WeightToFee = WeightToFee
type WeightToFee = WeightToFee
Convert a weight value into a deductible fee based on the currency type.
sourceimpl Config for Runtime
impl Config for Runtime
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 = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type KtonCurrency = Pallet<Runtime, Instance2>
type PalletId = TronBackingPalletId
type RingCurrency = Pallet<Runtime, Instance1>
type WeightInfo = ()
sourceimpl Config for Runtime
impl Config for Runtime
type BlockGasLimit = BlockGasLimit
type BlockGasLimit = BlockGasLimit
The block gas limit. Can be a simple constant, or an adjustment algorithm in another pallet. Read more
type BlockHashMapping = EthereumBlockHashMapping<Runtime>
type BlockHashMapping = EthereumBlockHashMapping<Runtime>
Block number to block hash.
type CallOrigin = EnsureAddressTruncated<<Runtime as Config>::AccountId>
type CallOrigin = EnsureAddressTruncated<<Runtime as Config>::AccountId>
Allow the origin to call on behalf of given address.
type FeeCalculator = FixedGasPrice
type FeeCalculator = FixedGasPrice
Calculator for current gas price.
type FindAuthor = EthereumFindAuthor<Pallet<Runtime>>
type FindAuthor = EthereumFindAuthor<Pallet<Runtime>>
Find author for the current block.
type GasWeightMapping = FixedGasWeightMapping
type GasWeightMapping = FixedGasWeightMapping
Maps Ethereum gas to Substrate weight.
type IntoAccountId = ConcatConverter<<Runtime as Config>::AccountId>
type IntoAccountId = ConcatConverter<<Runtime as Config>::AccountId>
Convert from H160 to account id.
type KtonBalanceAdapter = CurrencyAdapter<Runtime, Pallet<Runtime, Instance2>, KtonRemainBalance>
type KtonBalanceAdapter = CurrencyAdapter<Runtime, Pallet<Runtime, Instance2>, KtonRemainBalance>
KTON balance adapter for decimal convert
type OnChargeTransaction = EVMCurrencyAdapter<FindAccountFromAuthorIndex<Runtime, Pallet<Runtime>>>
type OnChargeTransaction = EVMCurrencyAdapter<FindAccountFromAuthorIndex<Runtime, Pallet<Runtime>>>
To handle fee deduction for EVM transactions. An example is this pallet being used by
pallet_ethereum
where the chain implementing pallet_ethereum
should be able to
configure what happens to the fees Similar to OnChargeTransaction
of
pallet_transaction_payment
Read more
type PrecompilesType = PangolinPrecompiles<Runtime>
type PrecompilesType = PangolinPrecompiles<Runtime>
Precompiles associated with this EVM engine.
type PrecompilesValue = PrecompilesValue
type RingBalanceAdapter = CurrencyAdapter<Runtime, Pallet<Runtime, Instance1>, RingRemainBalance>
type RingBalanceAdapter = CurrencyAdapter<Runtime, Pallet<Runtime, Instance1>, RingRemainBalance>
RING balance adapter for decimal convert
sourceimpl Config for Runtime
impl Config for Runtime
type StateRoot = IntermediateStateRoot
type StateRoot = IntermediateStateRoot
How Ethereum state root is calculated.
sourceimpl Config for Runtime
impl Config for Runtime
type DefaultBaseFeePerGas = DefaultBaseFeePerGas
type Event = Event
type IsActive = IsActive
type Threshold = BaseFeeThreshold
type Threshold = BaseFeeThreshold
Lower and upper bounds for increasing / decreasing BaseFeePerGas
.
sourceimpl Config for Runtime
impl Config for Runtime
type Event = Event
type UpdateOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_3, _5, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type UpdateOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_3, _5, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
The origin which may set filter.
type WeightInfo = ()
type WeightInfo = ()
Weight information for the extrinsics in this module.
sourceimpl Config for Runtime
impl Config for Runtime
type BridgedAccountIdConverter = AccountIdConverter
type BridgedAccountIdConverter = AccountIdConverter
The bridge account id converter.
remote account
+ remote chain id
derive the new account Read more
type BridgedChainId = PangolinParachainChainId
type BridgedChainId = PangolinParachainChainId
The bridged chain id
type MaxLockRingAmountPerTx = MaxLockRingAmountPerTx
type MaxLockRingAmountPerTx = MaxLockRingAmountPerTx
The max lock amount per transaction for security.
type MessageLaneId = BridgePangolinParachainLaneId
type MessageLaneId = BridgePangolinParachainLaneId
The lane id of the s2s bridge
type MessageNoncer = PangolinParachainMessageNoncer
type MessageNoncer = PangolinParachainMessageNoncer
The message noncer to get the message nonce from the bridge
type MessagesBridge = Pallet<Runtime, Instance2>
type MessagesBridge = Pallet<Runtime, Instance2>
The message bridge instance to send message
type OutboundPayloadCreator = ToPangolinParachainOutboundPayLoad
type OutboundPayloadCreator = ToPangolinParachainOutboundPayLoad
Outbound payload creator used for s2s message
type PalletId = S2sBackingPalletId
type PalletId = S2sBackingPalletId
The pallet id of this pallet
type RingCurrency = Pallet<Runtime, Instance1>
type RingCurrency = Pallet<Runtime, Instance1>
The RING currency.
type WeightInfo = WeightInfo<Runtime>
type WeightInfo = WeightInfo<Runtime>
Weight information for extrinsics in this pallet.
sourceimpl Config for Runtime
impl Config for Runtime
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 FindAuthor = FindAccountFromAuthorIndex<Runtime, Pallet<Runtime>>
type FindAuthor = FindAccountFromAuthorIndex<Runtime, Pallet<Runtime>>
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
sourceimpl Config for Runtime
impl Config for Runtime
type BenchmarkingConfig = ElectionProviderBenchmarkConfig
type BenchmarkingConfig = ElectionProviderBenchmarkConfig
The configuration of benchmarking.
type DataProvider = Pallet<Runtime>
type DataProvider = Pallet<Runtime>
Something that will provide the election data.
type EstimateCallFee = Pallet<Runtime>
type EstimateCallFee = Pallet<Runtime>
Something that can predict the fee of a call. Used to sensibly distribute rewards.
type Event = Event
type ForceOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type ForceOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::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
type MinerMaxLength = OffchainSolutionLengthLimit
type MinerMaxLength = OffchainSolutionLengthLimit
Maximum length (bytes) that the mined solution should consume. Read more
type MinerMaxWeight = OffchainSolutionWeightLimit
type MinerMaxWeight = OffchainSolutionWeightLimit
Maximum weight that the miner should consume. Read more
type MinerTxPriority = NposSolutionPriority
type MinerTxPriority = NposSolutionPriority
The priority of the unsigned transaction submitted in the unsigned-phase
type OffchainRepeat = OffchainRepeat
type OffchainRepeat = OffchainRepeat
The repeat threshold of the offchain worker. Read more
type RewardHandler = ()
type RewardHandler = ()
Handler for the rewards.
type SignedDepositBase = SignedDepositBase
type SignedDepositBase = SignedDepositBase
Base deposit for a signed solution.
type SignedDepositByte = SignedDepositByte
type SignedDepositByte = SignedDepositByte
Per-byte deposit for a signed solution.
type SignedDepositWeight = ()
type SignedDepositWeight = ()
Per-weight deposit for a signed solution.
type SignedMaxSubmissions = SignedMaxSubmissions
type SignedMaxSubmissions = SignedMaxSubmissions
Maximum number of signed submissions that can be queued. Read more
type SignedMaxWeight = <Runtime as Config>::MinerMaxWeight
type SignedMaxWeight = <Runtime as Config>::MinerMaxWeight
Maximum weight of a signed solution. Read more
type SignedPhase = SignedPhase
type SignedPhase = SignedPhase
Duration of the signed phase.
type SignedRewardBase = SignedRewardBase
type SignedRewardBase = SignedRewardBase
Base reward for a signed solution
type SlashHandler = ()
type SlashHandler = ()
Handler for the slashed deposits.
type Solution = NposCompactSolution24
type Solution = NposCompactSolution24
The solution type.
type SolutionImprovementThreshold = SolutionImprovementThreshold
type SolutionImprovementThreshold = SolutionImprovementThreshold
The minimum amount of improvement to the solution score that defines a solution as “better” (in any phase). Read more
type Solver = SequentialPhragmen<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, <<Runtime as Config>::Solution as NposSolution>::Accuracy, OffchainRandomBalancing>
type Solver = SequentialPhragmen<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, <<Runtime as Config>::Solution as NposSolution>::Accuracy, OffchainRandomBalancing>
OCW election solution miner algorithm implementation.
type UnsignedPhase = UnsignedPhase
type UnsignedPhase = UnsignedPhase
Duration of the unsigned phase.
type VoterSnapshotPerBlock = VoterSnapshotPerBlock
type VoterSnapshotPerBlock = VoterSnapshotPerBlock
The maximum number of voters to put in the snapshot. At the moment, snapshots are only over a single block, but once multi-block elections are introduced they will take place over multiple blocks. Read more
type WeightInfo = ()
type WeightInfo = ()
The weight of the pallet.
sourceimpl Config for Runtime
impl Config for Runtime
type DataProvider = Pallet<Runtime>
type DataProvider = Pallet<Runtime>
Something that provides the data for election.
sourceimpl Config for Runtime
impl Config for Runtime
type SlashCancelOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
type SlashCancelOrigin = EnsureOneOf<EnsureRoot<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId>, EnsureProportionAtLeast<_1, _2, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, Instance1>>
A super-majority of the council can cancel the slash.
type BondingDurationInBlockNumber = BondingDurationInBlockNumber
type BondingDurationInBlockNumber = BondingDurationInBlockNumber
Number of eras that staked funds must remain bonded for.
type BondingDurationInEra = BondingDurationInEra
type BondingDurationInEra = BondingDurationInEra
Number of eras that staked funds must remain bonded for.
type ElectionProvider = Pallet<Runtime>
type ElectionProvider = Pallet<Runtime>
Something that provides the election functionality.
type GenesisElectionProvider = OnChainSequentialPhragmen<Runtime>
type GenesisElectionProvider = OnChainSequentialPhragmen<Runtime>
Something that provides the election functionality at genesis.
type KtonCurrency = Pallet<Runtime, Instance2>
type KtonCurrency = Pallet<Runtime, Instance2>
The KTON currency.
type KtonReward = ()
type KtonReward = ()
Handler for the unbalanced KTON increment when rewarding a staker.
type KtonSlash = Pallet<Runtime, Instance2>
type KtonSlash = Pallet<Runtime, Instance2>
Handler for the unbalanced KTON reduction when slashing a staker.
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator
The maximum number of nominators rewarded for each validator. Read more
type NextNewSession = Pallet<Runtime>
type NextNewSession = Pallet<Runtime>
Something that can estimate the next session change, accurately or as a best effort guess. Read more
type OffendingValidatorsThreshold = OffendingValidatorsThreshold
type OffendingValidatorsThreshold = OffendingValidatorsThreshold
The fraction of the validator set that is safe to be offending. After the threshold is reached a new era will be forced. Read more
type PalletId = StakingPalletId
type RingCurrency = Pallet<Runtime, Instance1>
type RingCurrency = Pallet<Runtime, Instance1>
The RING currency.
type RingReward = ()
type RingReward = ()
Handler for the unbalanced RING increment when rewarding a staker.
type RingRewardRemainder = Pallet<Runtime, ()>
type RingRewardRemainder = Pallet<Runtime, ()>
Tokens have been minted and are unused for validator-reward. See Era payout. Read more
type RingSlash = Pallet<Runtime, ()>
type RingSlash = Pallet<Runtime, ()>
Handler for the unbalanced RING reduction when slashing a staker.
type SessionInterface = Runtime
type SessionInterface = Runtime
Interface for interacting with a session pallet.
type SessionsPerEra = SessionsPerEra
type SessionsPerEra = SessionsPerEra
Number of sessions per era.
type SlashDeferDuration = SlashDeferDuration
type SlashDeferDuration = SlashDeferDuration
Number of eras that slashes are deferred by, after computation. Read more
type SortedListProvider = UseNominatorsMap<Runtime>
type SortedListProvider = UseNominatorsMap<Runtime>
Something that can provide a sorted list of voters in a somewhat sorted way. The
original use case for this was designed with [pallet_bags_list::Pallet
] in mind. If
the bags-list is not desired, [impls::UseNominatorsMap
] is likely the desired option. Read more
type TotalPower = TotalPower
type TotalPower = TotalPower
Darwinia’s staking vote default 1_000_000_000
type WeightInfo = ()
type WeightInfo = ()
Weight information for extrinsics in this pallet.
sourceconst MAX_NOMINATIONS: u32 = 24u32
const MAX_NOMINATIONS: u32 = 24u32
Maximum number of nominations per nominator.
sourceimpl Config for Runtime
impl Config for Runtime
type IdentificationTuple = (<Runtime as Config>::ValidatorId, <Runtime as Config>::FullIdentification)
type IdentificationTuple = (<Runtime as Config>::ValidatorId, <Runtime as Config>::FullIdentification)
Full identification of the validator.
type OnOffenceHandler = Pallet<Runtime>
type OnOffenceHandler = Pallet<Runtime>
A handler called for every offence report.
sourceimpl Config for Runtime
impl Config for Runtime
type FullIdentification = Exposure<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128, u128>
type FullIdentification = Exposure<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u128, u128>
Full identification of the validator.
type FullIdentificationOf = ExposureOf<Runtime>
type FullIdentificationOf = ExposureOf<Runtime>
A conversion from validator ID to full identification. Read more
sourceimpl ConvertTransactionRuntimeApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl ConvertTransactionRuntimeApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
fn convert_transaction(transaction: Transaction) -> <Block as BlockT>::Extrinsic
sourceimpl Core<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
sourcefn execute_block(block: Block)
fn execute_block(block: Block)
Execute the given block.
sourcefn initialize_block(header: &<Block as BlockT>::Header)
fn initialize_block(header: &<Block as BlockT>::Header)
Initialize a block with the given header.
sourceimpl<LocalCall> CreateSignedTransaction<LocalCall> for Runtime where
Call: From<LocalCall>,
impl<LocalCall> CreateSignedTransaction<LocalCall> for Runtime where
Call: From<LocalCall>,
sourcefn create_transaction<C: AppCrypto<Self::Public, Self::Signature>>(
call: Call,
public: <Signature as Verify>::Signer,
account: AccountId,
nonce: Nonce
) -> Option<(Call, <UncheckedExtrinsic as Extrinsic>::SignaturePayload)>
fn create_transaction<C: AppCrypto<Self::Public, Self::Signature>>(
call: Call,
public: <Signature as Verify>::Signer,
account: AccountId,
nonce: Nonce
) -> Option<(Call, <UncheckedExtrinsic as Extrinsic>::SignaturePayload)>
Attempt to create signed extrinsic data that encodes call from given account. Read more
sourceimpl DebugRuntimeApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl DebugRuntimeApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
sourceimpl EnsureInherentsAreFirst<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
sourceimpl EthereumRuntimeRPCApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
impl EthereumRuntimeRPCApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
sourcefn account_basic(address: H160) -> Account
fn account_basic(address: H160) -> Account
Returns pallet_evm::Accounts by address.
sourcefn account_code_at(address: H160) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn account_code_at(address: H160) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
For a given account address, returns pallet_evm::AccountCodes.
Returns the converted FindAuthor::find_author authority id.
sourcefn storage_at(address: H160, index: U256) -> H256
fn storage_at(address: H160, index: U256) -> H256
For a given account address and index, returns pallet_evm::AccountStorages.
fn call(
from: H160,
to: H160,
data: Vec<u8>,
value: U256,
gas_limit: U256,
max_fee_per_gas: Option<U256>,
max_priority_fee_per_gas: Option<U256>,
nonce: Option<U256>,
estimate: bool,
access_list: Option<Vec<(H160, Vec<H256>)>>
) -> Result<CallInfo, DispatchError>
fn create(
from: H160,
data: Vec<u8>,
value: U256,
gas_limit: U256,
max_fee_per_gas: Option<U256>,
max_priority_fee_per_gas: Option<U256>,
nonce: Option<U256>,
estimate: bool,
access_list: Option<Vec<(H160, Vec<H256>)>>
) -> Result<CreateInfo, DispatchError>
sourcefn current_transaction_statuses() -> Option<Vec<TransactionStatus>>
fn current_transaction_statuses() -> Option<Vec<TransactionStatus>>
Return the current transaction status.
sourcefn current_block() -> Option<Block>
fn current_block() -> Option<Block>
Return the current block.
sourcefn current_receipts() -> Option<Vec<Receipt>>
fn current_receipts() -> Option<Vec<Receipt>>
Return the current receipt.
fn current_all(
) -> (Option<Block>, Option<Vec<Receipt>>, Option<Vec<TransactionStatus>>)
sourcefn extrinsic_filter(xts: Vec<<Block as BlockT>::Extrinsic>) -> Vec<Transaction>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn extrinsic_filter(xts: Vec<<Block as BlockT>::Extrinsic>) -> Vec<Transaction>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Receives a Vec<OpaqueExtrinsic>
and filters all the ethereum transactions.
sourcefn elasticity() -> Option<Permill>
fn elasticity() -> Option<Permill>
Return the elasticity multiplier.
sourceimpl GetRuntimeBlockType for Runtime
impl GetRuntimeBlockType for Runtime
type RuntimeBlock = Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>
type RuntimeBlock = Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>
The RuntimeBlock
type.
sourceimpl GrandpaApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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
sourcefn current_set_id() -> SetId
fn current_set_id() -> SetId
Get current GRANDPA authority set id.
sourcefn 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
sourcefn 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
sourceimpl IssueFromRemotePayload<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, <MultiSignature as Verify>::Signer, MultiSignature, Runtime> for ToPangolinParachainOutboundPayLoad
impl IssueFromRemotePayload<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, <MultiSignature as Verify>::Signer, MultiSignature, Runtime> for ToPangolinParachainOutboundPayLoad
type Payload = MessagePayload<<<WithPangolinParachainMessageBridge as MessageBridge>::ThisChain as ChainWithMessages>::AccountId, <<WithPangolinParachainMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signer, <<WithPangolinParachainMessageBridge as MessageBridge>::BridgedChain as ChainWithMessages>::Signature, Vec<u8, Global>>
fn create(
origin: CallOrigin<AccountId, AccountPublic, Signature>,
spec_version: u32,
weight: u64,
call_params: IssuingCall<Runtime>,
dispatch_fee_payment: DispatchFeePayment
) -> Result<Self::Payload, &'static str>
sourceimpl Metadata<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
sourceimpl OffchainWorkerApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
sourcefn offchain_worker(header: &<Block as BlockT>::Header)
fn offchain_worker(header: &<Block as BlockT>::Header)
Starts the off-chain task for given block header.
sourceimpl<C> SendTransactionTypes<C> for Runtime where
Call: From<C>,
impl<C> SendTransactionTypes<C> for Runtime where
Call: From<C>,
type Extrinsic = UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
type Extrinsic = UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
The extrinsic type expected by the runtime.
type OverarchingCall = Call
type OverarchingCall = Call
The runtime’s call type. Read more
sourceimpl SessionKeys<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
sourcefn generate_session_keys(seed: Option<Vec<u8>>) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn generate_session_keys(seed: Option<Vec<u8>>) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
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
sourceimpl TaggedTransactionQueue<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>> for Runtime
sourcefn 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
sourceimpl TransactionPaymentApi<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, 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, ()>, Call, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u128> for Runtime
fn query_info(
uxt: <Block as BlockT>::Extrinsic,
len: u32
) -> RuntimeDispatchInfo<Balance>
fn query_fee_details(
uxt: <Block as BlockT>::Extrinsic,
len: u32
) -> FeeDetails<Balance>
sourceimpl ValidateUnsigned for Runtime
impl ValidateUnsigned for Runtime
sourcefn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>
fn pre_dispatch(call: &Self::Call) -> Result<(), TransactionValidityError>
Validate the call right before dispatch. Read more
sourcefn validate_unsigned(
source: TransactionSource,
call: &Self::Call
) -> TransactionValidity
fn validate_unsigned(
source: TransactionSource,
call: &Self::Call
) -> TransactionValidity
Return the validity of the call Read more
impl Config for Runtime
impl Copy for Runtime
impl Eq for Runtime
impl StructuralEq for Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnwindSafe for Runtime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CheckedConversion for T
impl<T> CheckedConversion for T
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<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>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
Consume self to return Some
equivalent value of Option<T>
. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
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
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> FmtForward for T
impl<T> FmtForward for T
fn fmt_binary(self) -> FmtBinary<Self> where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self> where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.
fn fmt_display(self) -> FmtDisplay<Self> where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self> where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted. Read more
fn fmt_lower_exp(self) -> FmtLowerExp<Self> where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self> where
Self: LowerExp,
Causes self
to use its LowerExp
implementation when
Debug
-formatted. Read more
fn fmt_lower_hex(self) -> FmtLowerHex<Self> where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self> where
Self: LowerHex,
Causes self
to use its LowerHex
implementation when
Debug
-formatted. Read more
fn fmt_octal(self) -> FmtOctal<Self> where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self> where
Self: Octal,
Causes self
to use its Octal
implementation when Debug
-formatted.
fn fmt_pointer(self) -> FmtPointer<Self> where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self> where
Self: Pointer,
Causes self
to use its Pointer
implementation when
Debug
-formatted. Read more
fn fmt_upper_exp(self) -> FmtUpperExp<Self> where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self> where
Self: UpperExp,
Causes self
to use its UpperExp
implementation when
Debug
-formatted. Read more
fn fmt_upper_hex(self) -> FmtUpperHex<Self> where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self> where
Self: UpperHex,
Causes self
to use its UpperHex
implementation when
Debug
-formatted. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
sourcefn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
impl<T> Pipe for T where
T: ?Sized,
impl<T> Pipe for T where
T: ?Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
Pipes by value. This is generally the method you want to use. Read more
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
R: 'a,
Borrows self
and passes that borrow into the pipe function. Read more
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
R: 'a,
Mutably borrows self
and passes that borrow into the pipe function. Read more
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R where
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R where
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
Borrows self
, then passes self.borrow()
into the pipe function. Read more
fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R where
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R where
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
Mutably borrows self
, then passes self.borrow_mut()
into the pipe
function. Read more
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R where
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R where
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
Borrows self
, then passes self.as_ref()
into the pipe function.
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R where
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R where
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
Mutably borrows self
, then passes self.as_mut()
into the pipe
function. Read more
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
Borrows self
, then passes self.deref()
into the pipe function.
impl<T> PipeAsRef for T
impl<T> PipeAsRef for T
fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: AsRef<T>,
T: 'a,
R: 'a,
fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: AsRef<T>,
T: 'a,
R: 'a,
Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more
fn pipe_as_mut<'a, T, R>(&'a mut self, func: impl FnOnce(&'a mut T) -> R) -> R where
Self: AsMut<T>,
T: 'a,
R: 'a,
fn pipe_as_mut<'a, T, R>(&'a mut self, func: impl FnOnce(&'a mut T) -> R) -> R where
Self: AsMut<T>,
T: 'a,
R: 'a,
Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more
impl<T> PipeBorrow for T
impl<T> PipeBorrow for T
fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Borrow<T>,
T: 'a,
R: 'a,
fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Borrow<T>,
T: 'a,
R: 'a,
Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more
fn pipe_borrow_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
T: 'a,
R: 'a,
fn pipe_borrow_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
T: 'a,
R: 'a,
Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more
impl<T> PipeDeref for T
impl<T> PipeDeref for T
fn pipe_deref<'a, R>(&'a self, func: impl FnOnce(&'a Self::Target) -> R) -> R where
Self: Deref,
R: 'a,
fn pipe_deref<'a, R>(&'a self, func: impl FnOnce(&'a Self::Target) -> R) -> R where
Self: Deref,
R: 'a,
Pipes a dereference into a function that cannot normally be called in suffix position. Read more
fn pipe_deref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
fn pipe_deref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more
impl<T> PipeRef for T
impl<T> PipeRef for T
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<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>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more
impl<T> Tap for T
impl<T> Tap for T
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
Immutable access to the Borrow<B>
of a value. Read more
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
Mutable access to the BorrowMut<B>
of a value. Read more
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
Immutable access to the AsRef<R>
view of a value. Read more
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
Mutable access to the AsMut<R>
view of a value. Read more
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self where
Self: Deref<Target = T>,
T: ?Sized,
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self where
Self: Deref<Target = T>,
T: ?Sized,
Immutable access to the Deref::Target
of a value. Read more
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self where
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self where
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
Mutable access to the Deref::Target
of a value. Read more
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls .tap()
only in debug builds, and is erased in release builds.
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls .tap_mut()
only in debug builds, and is erased in release
builds. Read more
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
Calls .tap_borrow()
only in debug builds, and is erased in release
builds. Read more
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
Calls .tap_borrow_mut()
only in debug builds, and is erased in release
builds. Read more
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
Calls .tap_ref()
only in debug builds, and is erased in release
builds. Read more
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
Calls .tap_ref_mut()
only in debug builds, and is erased in release
builds. Read more
impl<T> Tap for T
impl<T> Tap for T
fn tap<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
fn tap<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
Provides immutable access for inspection. Read more
fn tap_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
fn tap_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
Calls tap
in debug builds, and does nothing in release builds.
fn tap_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
fn tap_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
Provides mutable access for modification. Read more
fn tap_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
fn tap_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
Calls tap_mut
in debug builds, and does nothing in release builds.
impl<T, U> TapAsRef<U> for T where
U: ?Sized,
impl<T, U> TapAsRef<U> for T where
U: ?Sized,
fn tap_ref<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
fn tap_ref<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Provides immutable access to the reference for inspection.
fn tap_ref_dbg<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
fn tap_ref_dbg<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Calls tap_ref
in debug builds, and does nothing in release builds.
fn tap_ref_mut<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
fn tap_ref_mut<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Provides mutable access to the reference for modification.
fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Calls tap_ref_mut
in debug builds, and does nothing in release builds.
impl<T, U> TapBorrow<U> for T where
U: ?Sized,
impl<T, U> TapBorrow<U> for T where
U: ?Sized,
fn tap_borrow<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
fn tap_borrow<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Provides immutable access to the borrow for inspection. Read more
fn tap_borrow_dbg<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
fn tap_borrow_dbg<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Calls tap_borrow
in debug builds, and does nothing in release builds.
fn tap_borrow_mut<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
fn tap_borrow_mut<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Provides mutable access to the borrow for modification.
fn tap_borrow_mut_dbg<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
fn tap_borrow_mut_dbg<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Calls tap_borrow_mut
in debug builds, and does nothing in release
builds. Read more
impl<T> TapDeref for T
impl<T> TapDeref for T
fn tap_deref<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
fn tap_deref<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Immutably dereferences self
for inspection.
fn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
fn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Calls tap_deref
in debug builds, and does nothing in release builds.
fn tap_deref_mut<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
fn tap_deref_mut<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Mutably dereferences self
for modification.
fn tap_deref_mut_dbg<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
fn tap_deref_mut_dbg<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Calls tap_deref_mut
in debug builds, and does nothing in release
builds. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to unchecked_from
.
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
fn unique_saturated_into(self) -> 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>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more