evm_domain_runtime

Struct Runtime

source
pub struct Runtime;

Implementations§

source§

impl Runtime

source

pub fn metadata() -> RuntimeMetadataPrefixed

source

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

source

pub fn metadata_versions() -> Vec<u32>

Trait Implementations§

source§

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

source§

fn account_nonce(account: AccountId) -> Nonce

Get current account nonce of given AccountId.
source§

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

source§

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

Apply the given extrinsic. Read more
source§

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

Finish the current block.
source§

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

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

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

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

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

source§

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

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

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

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

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

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

fn is_root(&self) -> bool

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

fn is_none(&self) -> bool

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

impl Clone for Runtime

source§

fn clone(&self) -> Runtime

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

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

Performs copy-assignment from source. Read more
source§

impl Config for Runtime

source§

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

The identifier used to distinguish between accounts.

source§

type RuntimeCall = RuntimeCall

The aggregated dispatch type that is available for extrinsics.

source§

type RuntimeTask = RuntimeTask

The aggregated RuntimeTask type.

source§

type Lookup = IdentityLookup<<<EthereumSignature as Verify>::Signer as IdentifyAccount>::AccountId>

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

source§

type Nonce = u32

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

source§

type Hash = H256

The type for hashing blocks and tries.

source§

type Hashing = BlakeTwo256

The hashing algorithm used.

source§

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

The block type.

source§

type RuntimeEvent = RuntimeEvent

The ubiquitous event type.

source§

type RuntimeOrigin = RuntimeOrigin

The ubiquitous origin type.

source§

type BlockHashCount = BlockHashCount

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

source§

type Version = Version

Runtime version.

source§

type PalletInfo = PalletInfo

Converts a module to an index of this module in the runtime.

source§

type AccountData = AccountData<u128>

The data to be stored in an account.

source§

type OnNewAccount = ()

What to do if a new account is created.

source§

type OnKilledAccount = ()

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

source§

type DbWeight = ParityDbWeight

The weight of database operations that the runtime can invoke.

source§

type BaseCallFilter = Everything

The basic call filter to use in dispatchable.

source§

type SystemWeightInfo = ()

Weight information for the extrinsics of this pallet.

source§

type BlockWeights = RuntimeBlockWeights

Block & extrinsics weights: base values and limits.

source§

type BlockLength = RuntimeBlockLength

The maximum length of a block (in bytes).

source§

type OnSetCode = ()

The action to take on a Runtime Upgrade

source§

type SS58Prefix = ConstU16<6094>

The designated SS58 prefix of this chain. Read more
source§

type SingleBlockMigrations = ()

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

type MultiBlockMigrator = ()

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

type PreInherents = ()

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

type PostInherents = ()

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

type PostTransactions = ()

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

type MaxConsumers = ConstU32<16>

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

impl Config for Runtime

source§

type Moment = u64

A timestamp: milliseconds since the unix epoch.

source§

type OnTimestampSet = ()

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

type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>

The minimum period between blocks. Read more
source§

type WeightInfo = ()

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
source§

type StateRoot = IntermediateStateRoot<Runtime>

How Ethereum state root is calculated.
source§

type PostLogContent = PostOnlyBlockHash

What’s included in the PostLog.
source§

type ExtraDataLength = ConstU32<30>

The maximum length of the extra data in the Executed event.
source§

impl Config for Runtime

source§

impl Config for Runtime

source§

impl Config for Runtime

source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
source§

type RuntimeCall = RuntimeCall

The overarching call type.
source§

type PalletsOrigin = OriginCaller

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

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

source§

type Balance = u128

The type for recording an account’s balance.

source§

type RuntimeEvent = RuntimeEvent

The ubiquitous event type.

source§

type RuntimeFreezeReason = RuntimeFreezeReason

The overarching freeze reason.
source§

type MaxLocks = MaxLocks

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

type DustRemoval = DustRemovalHandler

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

type ExistentialDeposit = ExistentialDeposit

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

type AccountStore = Pallet<Runtime>

The means of storing the balances of an account.
source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

type MaxReserves = MaxReserves

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

type ReserveIdentifier = [u8; 8]

The ID type for reserves. Read more
source§

type FreezeIdentifier = ()

The ID type for freezes.
source§

type MaxFreezes = ()

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

type RuntimeHoldReason = HoldIdentifierWrapper

The overarching hold reason.
source§

impl Config for Runtime

source§

type Balance = u128

The balance of an account.
source§

type DomainChainByteFee = DomainChainByteFee

The domain chain byte fee
source§

impl Config for Runtime

source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
source§

type OnChargeTransaction = OnChargeDomainTransaction<Pallet<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.
source§

type WeightToFee = ConstantMultiplier<u128, TransactionWeightFee>

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

type LengthToFee = ConstantMultiplier<u128, FinalDomainTransactionByteFee>

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

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

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

type OperationalFeeMultiplier = OperationalFeeMultiplier

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

impl Config for Runtime

source§

impl Config for Runtime

source§

type RuntimeEvent = RuntimeEvent

source§

type SelfChainId = SelfChainId

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

type Currency = Pallet<Runtime>

Currency type pallet uses for fees and deposits.
source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

type WeightToFee = ConstantMultiplier<u128, TransactionWeightFee>

Weight to fee conversion.
source§

type OnXDMRewards = OnXDMRewards

Handle XDM rewards.
source§

type MmrHash = <Keccak256 as Hash>::Output

Hash type of MMR
source§

type MmrProofVerifier = MmrProofVerifier

MMR proof verifier
source§

type StorageKeys = StorageKeys

Storage key provider.
source§

type DomainOwner = ()

Domain owner provider.
source§

type HoldIdentifier = HoldIdentifierWrapper

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

type ChannelReserveFee = ChannelReserveFee

Channel reserve fee to open a channel.
source§

type ChannelInitReservePortion = ChannelInitReservePortion

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

type DomainRegistration = ()

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

type ChannelFeeModel = ChannelFeeModel

Channels fee model
source§

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

function to fetch endpoint response handler by Endpoint.
source§

impl Config for Runtime

source§

type RuntimeEvent = RuntimeEvent

Event type for this pallet.
source§

type SelfChainId = SelfChainId

Gets the chain_id of the current execution environment.
source§

type SelfEndpointId = TransporterEndpointId

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

type Currency = Pallet<Runtime>

Currency used by this pallet.
source§

type Sender = Pallet<Runtime>

Sender used to transfer funds.
source§

type AccountIdConverter = AccountId20Converter

MultiAccountID <> T::AccountId converter.
source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

source§

type FeeCalculator = Pallet<Runtime>

Calculator for current gas price.
source§

type GasWeightMapping = FixedGasWeightMapping<Runtime>

Maps Ethereum gas to Substrate weight.
source§

type WeightPerGas = WeightPerGas

Weight corresponding to a gas unit.
source§

type BlockHashMapping = EthereumBlockHashMapping<Runtime>

Block number to block hash.
source§

type CallOrigin = EnsureAddressRoot<<<EthereumSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Allow the origin to call on behalf of given address.
source§

type WithdrawOrigin = EnsureAddressNever<<<EthereumSignature as Verify>::Signer as IdentifyAccount>::AccountId>

Allow the origin to withdraw on behalf of given address.
source§

type AddressMapping = IdentityAddressMapping

Mapping from address to account id.
source§

type Currency = Pallet<Runtime>

Currency type for withdraw and balance storage.
source§

type RuntimeEvent = RuntimeEvent

The overarching event type.
source§

type PrecompilesType = Precompiles<Runtime>

Precompiles associated with this EVM engine.
source§

type PrecompilesValue = PrecompilesValue

source§

type ChainId = Pallet<Runtime>

Chain ID of EVM.
source§

type BlockGasLimit = BlockGasLimit

The block gas limit. Can be a simple constant, or an adjustment algorithm in another pallet.
source§

type Runner = Runner<Runtime>

EVM execution runner.
source§

type OnChargeTransaction = EVMCurrencyAdapter

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

type OnCreate = ()

Called on create calls, used to record owner
source§

type FindAuthor = FindAuthorTruncated

Find author for the current block.
source§

type GasLimitPovSizeRatio = GasLimitPovSizeRatio

Gas limit Pov size ratio.
source§

type SuicideQuickClearLimit = SuicideQuickClearLimit

Define the quick clear limit of storage clearing when a contract suicides. Set to 0 to disable it.
source§

type Timestamp = Pallet<Runtime>

Get the timestamp for the current block.
source§

type WeightInfo = SubstrateWeight<Runtime>

Weight information for extrinsics in this pallet.
§

fn config() -> &'static Config

EVM config used in the module.
source§

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

source§

fn convert_transaction( transaction: EthereumTransaction, ) -> <Block as BlockT>::Extrinsic

source§

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

source§

fn version() -> RuntimeVersion

Returns the version of the runtime.
source§

fn execute_block(block: Block)

Execute the given block.
source§

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

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

impl Debug for Runtime

source§

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

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

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

source§

fn extract_signer( extrinsics: Vec<<Block as BlockT>::Extrinsic>, ) -> Vec<(Option<AccountId>, <Block as BlockT>::Extrinsic)>

Extracts the optional signer per extrinsic.
source§

fn is_within_tx_range( extrinsic: &<Block as BlockT>::Extrinsic, bundle_vrf_hash: &U256, tx_range: &U256, ) -> bool

source§

fn intermediate_roots() -> Vec<[u8; 32]>

Returns the intermediate storage roots in an encoded form.
source§

fn initialize_block_with_post_state_root( header: &<Block as BlockT>::Header, ) -> Vec<u8>

Returns the storage root after initializing the block.
source§

fn apply_extrinsic_with_post_state_root( extrinsic: <Block as BlockT>::Extrinsic, ) -> Vec<u8>

Returns the storage root after applying the extrinsic.
source§

fn construct_set_code_extrinsic(code: Vec<u8>) -> Vec<u8>

Returns an encoded extrinsic aiming to upgrade the runtime using given code.
source§

fn construct_timestamp_extrinsic(moment: Moment) -> <Block as BlockT>::Extrinsic

Returns an encoded extrinsic to set timestamp.
source§

fn is_inherent_extrinsic(extrinsic: &<Block as BlockT>::Extrinsic) -> bool

Returns true if the extrinsic is an inherent extrinsic.
source§

fn check_extrinsics_and_do_pre_dispatch( uxts: Vec<<Block as BlockT>::Extrinsic>, block_number: BlockNumber, block_hash: <Block as BlockT>::Hash, ) -> Result<(), CheckExtrinsicsValidityError>

Checks the validity of array of extrinsics + pre_dispatch returning failure on first extrinsic that fails runtime call. IMPORTANT: Change CHECK_EXTRINSICS_AND_DO_PRE_DISPATCH_METHOD_NAME constant when this method name is changed
source§

fn decode_extrinsic( opaque_extrinsic: OpaqueExtrinsic, ) -> Result<<Block as BlockT>::Extrinsic, DecodeExtrinsicError>

Decodes the domain specific extrinsic from the opaque extrinsic.
source§

fn extrinsic_era(extrinsic: &<Block as BlockT>::Extrinsic) -> Option<Era>

Returns extrinsic Era if present.
source§

fn extrinsic_weight(ext: &<Block as BlockT>::Extrinsic) -> Weight

Returns the extrinsic weight.
source§

fn block_fees() -> BlockFees<Balance>

The accumulated transaction fee of all transactions included in the block.
source§

fn block_digest() -> Digest

Returns the block digest.
source§

fn block_weight() -> Weight

Returns the consumed weight of the block.
source§

fn construct_consensus_chain_byte_fee_extrinsic( transaction_byte_fee: Balance, ) -> <Block as BlockT>::Extrinsic

Returns an encoded extrinsic to set domain transaction byte fee.
source§

fn construct_domain_update_chain_allowlist_extrinsic( updates: DomainAllowlistUpdates, ) -> <Block as BlockT>::Extrinsic

Returns an extrinsic to update chain allowlist.
source§

fn transfers() -> Transfers<Balance>

Returns the transfers for this domain in the block.
source§

fn transfers_storage_key() -> Vec<u8>

Returns the storage key for the Transfers on Domain.
source§

fn block_fees_storage_key() -> Vec<u8>

Returns the storage key for the CollectedBlockFees on Domain.
source§

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

source§

fn is_valid_sudo_call(extrinsic: Vec<u8>) -> bool

Returns true if the domain_sudo exists in the runtime and extrinsic is valid
source§

fn construct_domain_sudo_extrinsic( inner: Vec<u8>, ) -> <Block as BlockT>::Extrinsic

Returns an encoded extrinsic for domain sudo call.
source§

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

source§

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

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

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

source§

fn chain_id() -> u64

Returns runtime defined pallet_evm::ChainId.
source§

fn account_basic(address: H160) -> EVMAccount

Returns pallet_evm::Accounts by address.
source§

fn gas_price() -> U256

Returns FixedGasPrice::min_gas_price
source§

fn account_code_at(address: H160) -> Vec<u8>

For a given account address, returns pallet_evm::AccountCodes.
source§

fn author() -> H160

Returns the converted FindAuthor::find_author authority id.
source§

fn storage_at(address: H160, index: U256) -> H256

For a given account address and index, returns pallet_evm::AccountStorages.
source§

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>

source§

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>

source§

fn current_transaction_statuses() -> Option<Vec<TransactionStatus>>

Return the current transaction status.
source§

fn current_block() -> Option<Block>

Return the current block.
source§

fn current_receipts() -> Option<Vec<Receipt>>

Return the current receipt.
source§

fn current_all() -> (Option<Block>, Option<Vec<Receipt>>, Option<Vec<TransactionStatus>>)

source§

fn extrinsic_filter( xts: Vec<<Block as BlockT>::Extrinsic>, ) -> Vec<EthereumTransaction>

Receives a Vec<OpaqueExtrinsic> and filters all the ethereum transactions.
source§

fn elasticity() -> Option<Permill>

Return the elasticity multiplier.
source§

fn gas_limit_multiplier_support()

Used to determine if gas limit multiplier for non-transactional calls (eth_call/estimateGas) is supported.
source§

fn pending_block( xts: Vec<<Block as BlockT>::Extrinsic>, ) -> (Option<Block>, Option<Vec<TransactionStatus>>)

Return the pending block.
source§

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

Initialize the pending block. The behavior should be the same as the runtime api Core_initialize_block but for a “pending” block. If your project don’t need to have a different behavior to initialize “pending” blocks, you can copy your Core_initialize_block implementation.
source§

impl ExtrinsicStorageFees<Runtime> for ExtrinsicStorageFees

source§

fn extract_signer(xt: UncheckedExtrinsic) -> (Option<AccountId>, DispatchInfo)

Extracts signer from given extrinsic and its dispatch info.
source§

fn on_storage_fees_charged( charged_fees: Balance, tx_size: u32, ) -> Result<(), TransactionValidityError>

Hook to note operator rewards for charged storage fees.
source§

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

source§

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

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

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

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

fn preset_names() -> Vec<PresetId>

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

impl GetRuntimeBlockType for Runtime

source§

type RuntimeBlock = <Runtime as Config>::Block

The RuntimeBlock type.
source§

impl HoldIdentifier<Runtime> for HoldIdentifierWrapper

source§

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

source§

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

Whether this extrinsic is an inherent.
source§

impl MessengerApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<<<EthereumSignature as Verify>::Signer as IdentifyAccount>::AccountId, RuntimeCall, EthereumSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u32, H256> for Runtime

source§

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

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

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

source§

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

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

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

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

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

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

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

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

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

source§

fn metadata() -> OpaqueMetadata

Returns the metadata of a runtime.
source§

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

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

fn metadata_versions() -> Vec<u32>

Returns the supported metadata versions. Read more
source§

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

source§

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

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

impl OnChargeEVMTransaction<Runtime> for EVMCurrencyAdapter

source§

type LiquidityInfo = Option<<Pallet<Runtime> as Currency<<<EthereumSignature as Verify>::Signer as IdentifyAccount>::AccountId>>::NegativeImbalance>

source§

fn withdraw_fee( who: &H160, fee: U256, ) -> Result<Self::LiquidityInfo, Error<Runtime>>

Before the transaction is executed the payment of the transaction fees need to be secured.
source§

fn correct_and_deposit_fee( who: &H160, corrected_fee: U256, base_fee: U256, already_withdrawn: Self::LiquidityInfo, ) -> Self::LiquidityInfo

After the transaction was executed the actual fee can be calculated. This function should refund any overpaid fees and optionally deposit the corrected amount, and handles the base fee rationing using the provided OnUnbalanced implementation. Returns the NegativeImbalance - if any - produced by the priority fee.
source§

fn pay_priority_fee(tip: Self::LiquidityInfo)

Introduced in EIP1559 to handle the priority tip.
source§

impl PartialEq for Runtime

source§

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

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

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

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

impl RelayerApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<<<EthereumSignature as Verify>::Signer as IdentifyAccount>::AccountId, RuntimeCall, EthereumSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>>, u32, u32, H256> for Runtime

source§

fn block_messages() -> BlockMessagesWithStorageKey

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

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

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

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

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

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

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

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

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

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

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

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

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

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

source§

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

The extrinsic type expected by the runtime.
source§

type OverarchingCall = RuntimeCall

The runtime’s call type. Read more
source§

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

source§

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

Generate a set of session keys with optionally using the given seed. The keys should be stored within the keystore exposed via runtime externalities. Read more
source§

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

Decode the given public session keys. Read more
source§

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

source§

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

Validate the transaction. Read more
source§

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

source§

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

source§

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

source§

fn query_weight_to_fee(weight: Weight) -> Balance

source§

fn query_length_to_fee(length: u32) -> Balance

source§

impl TypeInfo for Runtime

source§

type Identity = Runtime

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

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl ValidateUnsigned for Runtime

source§

type Call = RuntimeCall

The call to validate
source§

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

Validate the call right before dispatch. Read more
source§

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

Return the validity of the call Read more
source§

impl Config for Runtime

source§

impl Config for Runtime

source§

impl Config for Runtime

source§

impl Copy for Runtime

source§

impl Eq for Runtime

source§

impl StructuralPartialEq for Runtime

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

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

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

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

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

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

source§

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

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

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

source§

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

source§

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

source§

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

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

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

§

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

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

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

§

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

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

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

§

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

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

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

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> IntoEither for T

source§

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

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

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

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

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

§

fn into_key(self) -> U

§

impl<T> IsType<T> for T

§

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

Cast reference.
§

fn into_ref(&self) -> &T

Cast reference.
§

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

Cast mutable reference.
§

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

Cast mutable reference.
§

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

§

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

Get a reference to the inner from the outer.

§

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

Get a mutable reference to the inner from the outer.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<T> Same for T

source§

type Output = T

Should always be Self
§

impl<T> SaturatedConversion for T

§

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

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

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

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

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

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

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

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

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

source§

type Error = Infallible

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

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

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.
§

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

§

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

§

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

§

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

§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
§

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

§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
§

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> JsonSchemaMaybe for T

§

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

§

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

§

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

§

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