Crate domain_block_preprocessor
source ·Expand description
Crate domain_block_preprocessor
source ·Expand description
This crate provides a preprocessor for the domain block, which is used to construct domain extrinsics from the consensus block.
The workflow is as follows:
-
diff --git a/domain_block_preprocessor/stateless_runtime/index.html b/domain_block_preprocessor/stateless_runtime/index.html
index ec98c6ee39..4da79cfc23 100644
--- a/domain_block_preprocessor/stateless_runtime/index.html
+++ b/domain_block_preprocessor/stateless_runtime/index.html
@@ -1 +1 @@
-
- Stateless runtime api based on the runtime code and partial state if provided.
- Stateless runtime api based on the runtime code and partial state if provided.
- This is only supposed to be used when no domain client available, i.e., when the
@@ -7,37 +7,38 @@
for the stateful APIs. If some states are used inside a runtime api, these states must
be provided and set before dispatching otherwise
StatelessRuntime
may give invalid output. - AccountId
- Address
- Balance
- BlockNumber
- EVMChainId
- Hash
- Nonce
- Signature
- opaque::AccountId
- opaque::Block
- opaque::BlockId
- opaque::Header
- Opaque types. These are used by the CLI to instantiate machinery that don’t need to know the specifics of the runtime. They can then be made to be agnostic over specific formats of data like extrinsics, allowing for them to continue syncing the network through upgrades -to even the core data structures.
- An AccountId32 to MultiAccount converter.
- MultiAccountId used by all the domains to describe their account type.
- Slot duration that is same as consensus chain runtime.
- Base API that every domain runtime must implement.
- Extracts the signer from an unchecked extrinsic.
- Extensible conversion trait. Generic over both source and destination types.
- Some way of identifying an account on the chain. We intentionally make it equivalent +to even the core data structures.
- An AccountId32 to MultiAccount converter.
- MultiAccountId used by all the domains to describe their account type.
- Slot duration that is same as consensus chain runtime.
- Base API that every domain runtime must implement.
- Extracts the signer from an unchecked extrinsic.
- Extensible conversion trait. Generic over both source and destination types.
- Some way of identifying an account on the chain. We intentionally make it equivalent to the public key of our transaction signing scheme.
- The address format for describing accounts.
- Balance of an account.
- An index to a block.
- The EVM chain Id type
- A hash of some data used by the chain.
- Index of a transaction in the chain.
- Alias to 512-bit hash when used in the context of a transaction signature on the chain.
- A generic domain node instance used for testing.
- A builder to create a
DomainNode
. - Evm domain executor instance.
- Trait for convert keyring to account id
- The backend type used by the test service.
- Domain executor for the test service.
- The evm domain client
- The evm domain node
- AccountId20Converter
- ActualPaidFeesHandler
- BaseFeeThreshold
- BlockGasLimit
- BlockHashCount
- BoundDivision
- DefaultBaseFeePerGas
- DefaultElasticity
- EVMCurrencyAdapter
- ExistentialDeposit
- ExtrinsicsRootStateVersion
- FindAuthorTruncated
- GasLimitPovSizeRatio
- MaxLocks
- MaxReserves
- OnXDMRewards
- OperationalFeeMultiplier
- PalletInfo
- Perbill
- Permill
- PostOnlyBlockHash
- PrecompilesValue
- RelayConfirmationDepth
- Runtime
- RuntimeApi
- RuntimeApiImpl
- RuntimeBlockLength
- RuntimeBlockWeights
- RuntimeGenesisConfig
- RuntimeOrigin
- SelfChainId
- SessionKeys
- TransactionByteFee
- TransactionConverter
- TransporterEndpointId
- Version
- WeightPerGas
- opaque::UncheckedExtrinsic
- MultiAddress
- OriginCaller
- RuntimeCall
- RuntimeError
- RuntimeEvent
- RuntimeFreezeReason
- RuntimeHoldReason
- RuntimeLockId
- RuntimeSlashReason
- AccountId
- Address
- AllPallets
- AllPalletsReversedWithSystemFirst
- AllPalletsWithSystem
- AllPalletsWithSystemReversed
- AllPalletsWithoutSystem
- AllPalletsWithoutSystemReversed
- Balance
- Balances
- BalancesConfig
- BaseFee
- BaseFeeConfig
- Block
- BlockId
- BlockNumber
- CheckedExtrinsic
- EVM
- EVMChainId
- EVMChainIdConfig
- EVMConfig
- Ethereum
- EthereumConfig
- Executive
- ExecutivePallet
- GenesisConfig
- Hash
- Messenger
- Nonce
- OperatorRewards
- Precompiles
- SelfDomainId
- SelfDomainIdConfig
- Signature
- SignedBlock
- SignedExtra
- Sudo
- SudoConfig
- System
- SystemConfig
- Timestamp
- TransactionPayment
- TransactionPaymentConfig
- Transporter
- UncheckedExtrinsic
- opaque::AccountId
- opaque::Block
- opaque::BlockId
- opaque::Header
- AccountId20Converter
- ActualPaidFeesHandler
- BaseFeeThreshold
- BlockGasLimit
- BlockHashCount
- BoundDivision
- DefaultBaseFeePerGas
- DefaultElasticity
- EVMCurrencyAdapter
- ExistentialDeposit
- ExtrinsicsRootStateVersion
- FindAuthorTruncated
- GasLimitPovSizeRatio
- MaxLocks
- MaxReserves
- OnXDMRewards
- OperationalFeeMultiplier
- PalletInfo
- Perbill
- Permill
- PostOnlyBlockHash
- PrecompilesValue
- RelayConfirmationDepth
- Runtime
- RuntimeApi
- RuntimeApiImpl
- RuntimeBlockLength
- RuntimeBlockWeights
- RuntimeGenesisConfig
- RuntimeOrigin
- SelfChainId
- SessionKeys
- TransactionByteFee
- TransactionConverter
- TransporterEndpointId
- Version
- WeightPerGas
- opaque::UncheckedExtrinsic
- MultiAddress
- OriginCaller
- RuntimeCall
- RuntimeError
- RuntimeEvent
- RuntimeFreezeReason
- RuntimeHoldReason
- RuntimeLockId
- RuntimeSlashReason
- AccountId
- Address
- AllPallets
- AllPalletsReversedWithSystemFirst
- AllPalletsWithSystem
- AllPalletsWithSystemReversed
- AllPalletsWithoutSystem
- AllPalletsWithoutSystemReversed
- Balance
- Balances
- BalancesConfig
- BaseFee
- BaseFeeConfig
- Block
- BlockId
- BlockNumber
- CheckedExtrinsic
- EVM
- EVMChainId
- EVMChainIdConfig
- EVMConfig
- Ethereum
- EthereumConfig
- Executive
- ExecutivePallet
- GenesisConfig
- Hash
- Messenger
- Nonce
- OperatorRewards
- Precompiles
- SelfDomainId
- SelfDomainIdConfig
- Signature
- SignedBlock
- SignedExtra
- Sudo
- SudoConfig
- System
- SystemConfig
- Timestamp
- TransactionPayment
- TransactionPaymentConfig
- Transporter
- UncheckedExtrinsic
- opaque::AccountId
- opaque::Block
- opaque::BlockId
- opaque::Header
Structs
Type Aliases
Structs
Type Aliases
pub struct StatelessRuntime<Block, Executor> { /* private fields */ }
Expand description
Stateless runtime api based on the runtime code and partial state if provided.
+pub struct StatelessRuntime<Block, Executor> { /* private fields */ }
Expand description
Stateless runtime api based on the runtime code and partial state if provided.
NOTE:
Implementations§
source§impl<Block, Executor> StatelessRuntime<Block, Executor>where
+
impl<Block, Executor> StatelessRuntime<Block, Executor>where +
Implementations§
source§impl<Block, Executor> StatelessRuntime<Block, Executor>where
Block: BlockT,
- Executor: CodeExecutor + RuntimeVersionOf,
impl<Block, Executor> StatelessRuntime<Block, Executor>where Block: BlockT, - Executor: CodeExecutor + RuntimeVersionOf,
sourcepub fn new(executor: Arc<Executor>, runtime_code: Cow<'static, [u8]>) -> Self
pub fn new(executor: Arc<Executor>, runtime_code: Cow<'static, [u8]>) -> Self
Create a new instance of StatelessRuntime
with empty storage.
sourcepub fn set_storage(&mut self, storage: Storage)
pub fn set_storage(&mut self, storage: Storage)
Set the storage.
+ Executor: CodeExecutor + RuntimeVersionOf,sourcepub fn new(executor: Arc<Executor>, runtime_code: Cow<'static, [u8]>) -> Self
pub fn new(executor: Arc<Executor>, runtime_code: Cow<'static, [u8]>) -> Self
Create a new instance of StatelessRuntime
with empty storage.
sourcepub fn set_storage(&mut self, storage: Storage)
pub fn set_storage(&mut self, storage: Storage)
Set the storage.
Inject the state necessary for calling stateful runtime APIs.
-pub fn extract_state_roots( +
pub fn extract_state_roots( &self, ext: &Block::Extrinsic -) -> Result<ExtractedStateRoots<Block>, ApiError>
pub fn extract_signer( +) -> Result<ExtractedStateRoots<Block>, ApiError>
pub fn extract_signer( &self, extrinsics: Vec<<Block as BlockT>::Extrinsic> -) -> Result<ExtractSignerResult<Block>, ApiError>
pub fn construct_set_code_extrinsic( +) -> Result<ExtractSignerResult<Block>, ApiError>
pub fn construct_set_code_extrinsic( &self, runtime_code: Vec<u8> -) -> Result<Vec<u8>, ApiError>
pub fn construct_timestamp_extrinsic( +) -> Result<Vec<u8>, ApiError>
pub fn construct_timestamp_extrinsic( &self, moment: Moment -) -> Result<Block::Extrinsic, ApiError>
pub fn is_inherent_extrinsic( +) -> Result<Block::Extrinsic, ApiError>
pub fn is_inherent_extrinsic( &self, extrinsic: &<Block as BlockT>::Extrinsic -) -> Result<bool, ApiError>
pub fn is_within_tx_range( +) -> Result<bool, ApiError>
pub fn is_within_tx_range( &self, extrinsic: &<Block as BlockT>::Extrinsic, bundle_vrf_hash: &U256, tx_range: &U256 -) -> Result<bool, ApiError>
pub fn check_transaction_validity( +) -> Result<bool, ApiError>
sourcepub fn check_transaction_and_do_pre_dispatch(
&self,
uxt: &<Block as BlockT>::Extrinsic,
block_number: NumberFor<Block>,
block_hash: <Block as BlockT>::Hash
-) -> Result<Result<(), CheckTxValidityError>, ApiError>
pub fn check_transaction_and_do_pre_dispatch( &self, uxt: &<Block as BlockT>::Extrinsic, block_number: NumberFor<Block>, block_hash: <Block as BlockT>::Hash -) -> Result<Result<(), CheckTxValidityError>, ApiError>
Trait Implementations§
Trait Implementations§
source§impl<Block, Executor> Core<Block> for StatelessRuntime<Block, Executor>where
Block: BlockT,
Executor: CodeExecutor + RuntimeVersionOf,
impl<Block, Executor> Core<Block> for StatelessRuntime<Block, Executor>where Block: BlockT, Executor: CodeExecutor + RuntimeVersionOf,
source§impl<Block, Executor> DomainCoreApi<Block> for StatelessRuntime<Block, Executor>where
+) -> Result<(), ApiError>
impl<Block, Executor> DomainCoreApi<Block> for StatelessRuntime<Block, Executor>where +) -> Result<(), ApiError>
source§impl<Block, Executor> DomainCoreApi<Block> for StatelessRuntime<Block, Executor>where
Block: BlockT,
Executor: CodeExecutor + RuntimeVersionOf,
impl<Block, Executor> DomainCoreApi<Block> for StatelessRuntime<Block, Executor>where Block: BlockT, Executor: CodeExecutor + RuntimeVersionOf,
§fn extract_signer(
&self,
@@ -85,19 +86,13 @@
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
extrinsic: &<Block as Block>::Extrinsic
-) -> Result<bool, ApiError>
fn extract_signer( &self, @@ -85,19 +86,13 @@ &self, __runtime_api_at_param__: <Block as Block>::Hash, extrinsic: &<Block as Block>::Extrinsic -) -> Result<bool, ApiError>
§fn check_transaction_validity(
+) -> Result<bool, ApiError>
fn check_transaction_validity( +) -> Result<bool, ApiError>
§fn check_transaction_and_do_pre_dispatch(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
uxt: &<Block as Block>::Extrinsic,
block_number: <<Block as Block>::Header as Header>::Number,
block_hash: <Block as Block>::Hash
-) -> Result<Result<(), CheckTxValidityError>, ApiError>
fn check_transaction_and_do_pre_dispatch( &self, __runtime_api_at_param__: <Block as Block>::Hash, uxt: &<Block as Block>::Extrinsic, block_number: <<Block as Block>::Header as Header>::Number, block_hash: <Block as Block>::Hash -) -> Result<Result<(), CheckTxValidityError>, ApiError>
§fn storage_keys_for_verifying_transaction_validity(
- &self,
- __runtime_api_at_param__: <Block as Block>::Hash,
- account_id: Vec<u8, Global>,
- block_number: <<Block as Block>::Header as Header>::Number,
- tx_era: Option<Era>
-) -> Result<Result<Vec<Vec<u8, Global>, Global>, VerifyTxValidityError>, ApiError>
fn storage_keys_for_verifying_transaction_validity( - &self, - __runtime_api_at_param__: <Block as Block>::Hash, - account_id: Vec<u8, Global>, - block_number: <<Block as Block>::Header as Header>::Number, - tx_era: Option<Era> -) -> Result<Result<Vec<Vec<u8, Global>, Global>, VerifyTxValidityError>, ApiError>
check_transaction_validity
.§fn extrinsic_era(
+) -> Result<Result<(), TransactionValidityError>, ApiError>
fn extrinsic_era( +) -> Result<Result<(), TransactionValidityError>, ApiError>
§fn extrinsic_era(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
extrinsic: &<Block as Block>::Extrinsic
@@ -114,7 +109,7 @@
) -> Result<Digest, ApiError>
fn extrinsic_era( &self, __runtime_api_at_param__: <Block as Block>::Hash, extrinsic: &<Block as Block>::Extrinsic @@ -114,7 +109,7 @@ ) -> Result<Digest, ApiError>
§fn block_weight(
&self,
__runtime_api_at_param__: <Block as Block>::Hash
-) -> Result<Weight, ApiError>
fn block_weight( &self, __runtime_api_at_param__: <Block as Block>::Hash -) -> Result<Weight, ApiError>
source§impl<Block, Executor> FetchRuntimeCode for StatelessRuntime<Block, Executor>
impl<Block, Executor> FetchRuntimeCode for StatelessRuntime<Block, Executor>
source§impl<Block, Executor> MessengerApi<Block, <<Block as Block>::Header as Header>::Number> for StatelessRuntime<Block, Executor>where
+) -> Result<Weight, ApiError>
impl<Block, Executor> MessengerApi<Block, <<Block as Block>::Header as Header>::Number> for StatelessRuntime<Block, Executor>where +) -> Result<Weight, ApiError>
source§impl<Block, Executor> FetchRuntimeCode for StatelessRuntime<Block, Executor>
impl<Block, Executor> FetchRuntimeCode for StatelessRuntime<Block, Executor>
source§impl<Block, Executor> MessengerApi<Block, <<Block as Block>::Header as Header>::Number> for StatelessRuntime<Block, Executor>where
Block: BlockT,
NumberFor<Block>: Codec,
Executor: CodeExecutor + RuntimeVersionOf,
impl<Block, Executor> MessengerApi<Block, <<Block as Block>::Header as Header>::Number> for StatelessRuntime<Block, Executor>where Block: BlockT, NumberFor<Block>: Codec, Executor: CodeExecutor + RuntimeVersionOf,
fn extract_xdm_proof_state_roots(
diff --git a/domain_block_preprocessor/stateless_runtime/type.ExtractSignerResult.html b/domain_block_preprocessor/stateless_runtime/type.ExtractSignerResult.html
index 67e698362a..cc09d4b64f 100644
--- a/domain_block_preprocessor/stateless_runtime/type.ExtractSignerResult.html
+++ b/domain_block_preprocessor/stateless_runtime/type.ExtractSignerResult.html
@@ -1,4 +1,4 @@
-ExtractSignerResult in domain_block_preprocessor::stateless_runtime - Rust Type Alias domain_block_preprocessor::stateless_runtime::ExtractSignerResult
source · pub type ExtractSignerResult<Block> = Vec<(Option<AccountId>, <Block as BlockT>::Extrinsic)>;
Aliased Type§
struct ExtractSignerResult<Block> { /* private fields */ }
Implementations§
source§impl<T> Vec<T, Global>
1.0.0 (const: 1.39.0) · sourcepub const fn new() -> Vec<T, Global>
Constructs a new, empty Vec<T>
.
+ExtractSignerResult in domain_block_preprocessor::stateless_runtime - Rust Type Alias domain_block_preprocessor::stateless_runtime::ExtractSignerResult
source · pub type ExtractSignerResult<Block> = Vec<(Option<AccountId>, <Block as BlockT>::Extrinsic)>;
Aliased Type§
struct ExtractSignerResult<Block> { /* private fields */ }
Implementations§
source§impl<T> Vec<T, Global>
1.0.0 (const: 1.39.0) · sourcepub const fn new() -> Vec<T, Global>
Constructs a new, empty Vec<T>
.
The vector will not allocate until elements are pushed onto it.
Examples
let mut vec: Vec<i32> = Vec::new();
diff --git a/domain_block_preprocessor/stateless_runtime/type.ExtractedStateRoots.html b/domain_block_preprocessor/stateless_runtime/type.ExtractedStateRoots.html
index ed22ac16fd..94d926cd03 100644
--- a/domain_block_preprocessor/stateless_runtime/type.ExtractedStateRoots.html
+++ b/domain_block_preprocessor/stateless_runtime/type.ExtractedStateRoots.html
@@ -1,4 +1,4 @@
-ExtractedStateRoots in domain_block_preprocessor::stateless_runtime - Rust Type Alias domain_block_preprocessor::stateless_runtime::ExtractedStateRoots
source · pub type ExtractedStateRoots<Block> = ExtractedStateRootsFromProof<NumberFor<Block>, <Block as BlockT>::Hash, <Block as BlockT>::Hash>;
Aliased Type§
struct ExtractedStateRoots<Block> {
+ExtractedStateRoots in domain_block_preprocessor::stateless_runtime - Rust Type Alias domain_block_preprocessor::stateless_runtime::ExtractedStateRoots
source · pub type ExtractedStateRoots<Block> = ExtractedStateRootsFromProof<NumberFor<Block>, <Block as BlockT>::Hash, <Block as BlockT>::Hash>;
Aliased Type§
struct ExtractedStateRoots<Block> {
pub consensus_chain_block_info: BlockInfo<<<Block as Block>::Header as Header>::Number, <Block as Block>::Hash>,
pub consensus_chain_state_root: <Block as Block>::Hash,
pub domain_info: Option<(DomainId, BlockInfo<<<Block as Block>::Header as Header>::Number, <Block as Block>::Hash>, <Block as Block>::Hash)>,
diff --git a/domain_block_preprocessor/struct.DomainBlockPreprocessor.html b/domain_block_preprocessor/struct.DomainBlockPreprocessor.html
index f421dc5298..c763f8d8ea 100644
--- a/domain_block_preprocessor/struct.DomainBlockPreprocessor.html
+++ b/domain_block_preprocessor/struct.DomainBlockPreprocessor.html
@@ -1,4 +1,4 @@
-DomainBlockPreprocessor in domain_block_preprocessor - Rust pub struct DomainBlockPreprocessor<Block, CBlock, Client, CClient, ReceiptValidator> { /* private fields */ }
Implementations§
source§impl<Block, CBlock, Client, CClient, ReceiptValidator> DomainBlockPreprocessor<Block, CBlock, Client, CClient, ReceiptValidator>where
+DomainBlockPreprocessor in domain_block_preprocessor - Rust pub struct DomainBlockPreprocessor<Block, CBlock, Client, CClient, ReceiptValidator> { /* private fields */ }
Implementations§
source§impl<Block, CBlock, Client, CClient, ReceiptValidator> DomainBlockPreprocessor<Block, CBlock, Client, CClient, ReceiptValidator>where
Block: BlockT,
Block::Hash: Into<H256>,
CBlock: BlockT,
diff --git a/domain_runtime_primitives/all.html b/domain_runtime_primitives/all.html
index 888ccc430a..f686c5caa8 100644
--- a/domain_runtime_primitives/all.html
+++ b/domain_runtime_primitives/all.html
@@ -1 +1 @@
-List of all items in this crate List of all items
Structs
Enums
Traits
Type Aliases
Constants
\ No newline at end of file
+List of all items in this crate
\ No newline at end of file
diff --git a/domain_runtime_primitives/constant.SLOT_DURATION.html b/domain_runtime_primitives/constant.SLOT_DURATION.html
index 47c305e696..b83c28a807 100644
--- a/domain_runtime_primitives/constant.SLOT_DURATION.html
+++ b/domain_runtime_primitives/constant.SLOT_DURATION.html
@@ -1,2 +1,2 @@
-SLOT_DURATION in domain_runtime_primitives - Rust Constant domain_runtime_primitives::SLOT_DURATION
source · pub const SLOT_DURATION: u64 = 1000;
Expand description
Slot duration that is same as consensus chain runtime.
+SLOT_DURATION in domain_runtime_primitives - Rust Constant domain_runtime_primitives::SLOT_DURATION
source · pub const SLOT_DURATION: u64 = 1000;
Expand description
Slot duration that is same as consensus chain runtime.
\ No newline at end of file
diff --git a/domain_runtime_primitives/enum.CheckTxValidityError.html b/domain_runtime_primitives/enum.CheckTxValidityError.html
deleted file mode 100644
index 860e8ddffa..0000000000
--- a/domain_runtime_primitives/enum.CheckTxValidityError.html
+++ /dev/null
@@ -1,80 +0,0 @@
-CheckTxValidityError in domain_runtime_primitives - Rust pub enum CheckTxValidityError {
- Lookup,
- UnableToExtractSigner {
- error: TransactionValidityError,
- },
- InvalidTransaction {
- error: TransactionValidityError,
- storage_keys: Vec<Vec<u8>>,
- },
-}
Variants§
§Lookup
Can not find the sender from address.
-§UnableToExtractSigner
Fields
§error: TransactionValidityError
Unable to extract signer from tx
-§InvalidTransaction
Fields
§error: TransactionValidityError
Concrete transaction validity error type.
-Transaction is invalid.
-Trait Implementations§
source§impl Debug for CheckTxValidityError
source§impl Decode for CheckTxValidityError
source§fn decode<__CodecInputEdqy: Input>(
- __codec_input_edqy: &mut __CodecInputEdqy
-) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
- input: &mut I,
- dst: &mut MaybeUninit<Self>
-) -> Result<DecodeFinished, Error>where
- I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for CheckTxValidityError
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
- &self,
- __codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<LookupError> for CheckTxValidityError
source§impl PartialEq<CheckTxValidityError> for CheckTxValidityError
source§fn eq(&self, other: &CheckTxValidityError) -> bool
This method tests for self
and other
values to be equal, and is used
-by ==
.source§impl TypeInfo for CheckTxValidityError
source§impl EncodeLike<CheckTxValidityError> for CheckTxValidityError
source§impl Eq for CheckTxValidityError
source§impl StructuralEq for CheckTxValidityError
source§impl StructuralPartialEq for CheckTxValidityError
Auto Trait Implementations§
§impl RefUnwindSafe for CheckTxValidityError
§impl Send for CheckTxValidityError
§impl Sync for CheckTxValidityError
§impl Unpin for CheckTxValidityError
§impl UnwindSafe for CheckTxValidityError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- 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>,
§fn checked_into<T>(self) -> Option<T>where
- Self: TryInto<T>,
§impl<T> DecodeAll for Twhere
- T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
- T: Decode,
source§impl<Q, K> Equivalent<K> for Qwhere
- 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 Qwhere
- 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<T> Hashable for Twhere
- T: Codec,
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
- Outer: AsRef<T> + AsMut<T> + From<T>,
- T: From<Outer>,
§impl<T> KeyedVec for Twhere
- T: Codec,
§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
- Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
- Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
- T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
The counterpart to unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for Swhere
- T: Bounded,
- S: TryInto<T>,
§fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
§impl<S> Codec for Swhere
- S: Decode + Encode,
§impl<T> EncodeLike<&&T> for Twhere
- T: Encode,
§impl<T> EncodeLike<&T> for Twhere
- T: Encode,
§impl<T> EncodeLike<&mut T> for Twhere
- T: Encode,
§impl<T> EncodeLike<Arc<T, Global>> for Twhere
- T: Encode,
§impl<T> EncodeLike<Box<T, Global>> for Twhere
- T: Encode,
§impl<T> EncodeLike<Rc<T, Global>> for Twhere
- T: Encode,
§impl<S> FullCodec for Swhere
- S: Decode + FullEncode,
§impl<S> FullEncode for Swhere
- S: Encode + EncodeLike<S>,
§impl<T> JsonSchemaMaybe for T
§impl<T> MaybeDebug for Twhere
- T: Debug,
§impl<T> MaybeRefUnwindSafe for Twhere
- T: RefUnwindSafe,
§impl<T> StaticTypeInfo for Twhere
- T: TypeInfo + 'static,
\ No newline at end of file
diff --git a/domain_runtime_primitives/enum.MultiAccountId.html b/domain_runtime_primitives/enum.MultiAccountId.html
index 3f25a72278..b092ad1e6c 100644
--- a/domain_runtime_primitives/enum.MultiAccountId.html
+++ b/domain_runtime_primitives/enum.MultiAccountId.html
@@ -1,4 +1,4 @@
-MultiAccountId in domain_runtime_primitives - Rust pub enum MultiAccountId {
+MultiAccountId in domain_runtime_primitives - Rust pub enum MultiAccountId {
AccountId32([u8; 32]),
AccountId20([u8; 20]),
Raw(Vec<u8>),
@@ -6,20 +6,20 @@
Variants§
§AccountId32([u8; 32])
32 byte account Id.
§AccountId20([u8; 20])
20 byte account Id. Ex: Ethereum
§Raw(Vec<u8>)
Some raw bytes
-Trait Implementations§
source§impl Clone for MultiAccountId
source§fn clone(&self) -> MultiAccountId
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl Debug for MultiAccountId
Trait Implementations§
source§impl Clone for MultiAccountId
source§fn clone(&self) -> MultiAccountId
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl Debug for MultiAccountId
source§impl Decode for MultiAccountId
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for MultiAccountId
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
+ I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for MultiAccountId
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl PartialEq<MultiAccountId> for MultiAccountId
source§fn eq(&self, other: &MultiAccountId) -> bool
source§impl PartialEq<MultiAccountId> for MultiAccountId
source§fn eq(&self, other: &MultiAccountId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.source§impl TypeInfo for MultiAccountId
source§impl EncodeLike<MultiAccountId> for MultiAccountId
source§impl Eq for MultiAccountId
source§impl StructuralEq for MultiAccountId
source§impl StructuralPartialEq for MultiAccountId
Auto Trait Implementations§
§impl RefUnwindSafe for MultiAccountId
§impl Send for MultiAccountId
§impl Sync for MultiAccountId
§impl Unpin for MultiAccountId
§impl UnwindSafe for MultiAccountId
Blanket Implementations§
source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.source§impl TypeInfo for MultiAccountId
source§impl EncodeLike<MultiAccountId> for MultiAccountId
source§impl Eq for MultiAccountId
source§impl StructuralEq for MultiAccountId
source§impl StructuralPartialEq for MultiAccountId
Auto Trait Implementations§
§impl RefUnwindSafe for MultiAccountId
§impl Send for MultiAccountId
§impl Sync for MultiAccountId
§impl Unpin for MultiAccountId
§impl UnwindSafe for MultiAccountId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
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
diff --git a/domain_runtime_primitives/enum.VerifyTxValidityError.html b/domain_runtime_primitives/enum.VerifyTxValidityError.html
deleted file mode 100644
index d88bc3186d..0000000000
--- a/domain_runtime_primitives/enum.VerifyTxValidityError.html
+++ /dev/null
@@ -1,69 +0,0 @@
-VerifyTxValidityError in domain_runtime_primitives - Rust pub enum VerifyTxValidityError {
- FailedToDecodeAccountId,
-}
Variants§
§FailedToDecodeAccountId
Failed to decode the opaque account id into the runtime account type.
-Trait Implementations§
source§impl Debug for VerifyTxValidityError
source§impl Decode for VerifyTxValidityError
source§fn decode<__CodecInputEdqy: Input>(
- __codec_input_edqy: &mut __CodecInputEdqy
-) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
- input: &mut I,
- dst: &mut MaybeUninit<Self>
-) -> Result<DecodeFinished, Error>where
- I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for VerifyTxValidityError
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
- &self,
- __codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl PartialEq<VerifyTxValidityError> for VerifyTxValidityError
source§fn eq(&self, other: &VerifyTxValidityError) -> bool
This method tests for self
and other
values to be equal, and is used
-by ==
.source§impl TypeInfo for VerifyTxValidityError
source§impl EncodeLike<VerifyTxValidityError> for VerifyTxValidityError
source§impl Eq for VerifyTxValidityError
source§impl StructuralEq for VerifyTxValidityError
source§impl StructuralPartialEq for VerifyTxValidityError
Auto Trait Implementations§
§impl RefUnwindSafe for VerifyTxValidityError
§impl Send for VerifyTxValidityError
§impl Sync for VerifyTxValidityError
§impl Unpin for VerifyTxValidityError
§impl UnwindSafe for VerifyTxValidityError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- 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>,
§fn checked_into<T>(self) -> Option<T>where
- Self: TryInto<T>,
§impl<T> DecodeAll for Twhere
- T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
- T: Decode,
source§impl<Q, K> Equivalent<K> for Qwhere
- 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 Qwhere
- 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<T> Hashable for Twhere
- T: Codec,
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
- Outer: AsRef<T> + AsMut<T> + From<T>,
- T: From<Outer>,
§impl<T> KeyedVec for Twhere
- T: Codec,
§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
- Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
- Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
- T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
The counterpart to unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for Swhere
- T: Bounded,
- S: TryInto<T>,
§fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
§impl<S> Codec for Swhere
- S: Decode + Encode,
§impl<T> EncodeLike<&&T> for Twhere
- T: Encode,
§impl<T> EncodeLike<&T> for Twhere
- T: Encode,
§impl<T> EncodeLike<&mut T> for Twhere
- T: Encode,
§impl<T> EncodeLike<Arc<T, Global>> for Twhere
- T: Encode,
§impl<T> EncodeLike<Box<T, Global>> for Twhere
- T: Encode,
§impl<T> EncodeLike<Rc<T, Global>> for Twhere
- T: Encode,
§impl<S> FullCodec for Swhere
- S: Decode + FullEncode,
§impl<S> FullEncode for Swhere
- S: Encode + EncodeLike<S>,
§impl<T> JsonSchemaMaybe for T
§impl<T> MaybeDebug for Twhere
- T: Debug,
§impl<T> MaybeRefUnwindSafe for Twhere
- T: RefUnwindSafe,
§impl<T> StaticTypeInfo for Twhere
- T: TypeInfo + 'static,
\ No newline at end of file
diff --git a/domain_runtime_primitives/index.html b/domain_runtime_primitives/index.html
index fa31569d91..20300844cb 100644
--- a/domain_runtime_primitives/index.html
+++ b/domain_runtime_primitives/index.html
@@ -1,7 +1,7 @@
domain_runtime_primitives - Rust Crate domain_runtime_primitives
source · Expand description
Crate domain_runtime_primitives
source · Expand description
Common primitives for subspace domain runtime.
Modules
Structs
Enums
Constants
Traits
Type Aliases
Structs
Enums
Constants
Traits
Type Aliases
\ No newline at end of file
diff --git a/domain_runtime_primitives/opaque/index.html b/domain_runtime_primitives/opaque/index.html
index beeea2f657..b63e0e77be 100644
--- a/domain_runtime_primitives/opaque/index.html
+++ b/domain_runtime_primitives/opaque/index.html
@@ -1,4 +1,4 @@
-domain_runtime_primitives::opaque - Rust Module domain_runtime_primitives::opaque
source · Expand description
Opaque types. These are used by the CLI to instantiate machinery that don’t need to know
+
domain_runtime_primitives::opaque - Rust Module domain_runtime_primitives::opaque
source · Expand description
Opaque types. These are used by the CLI to instantiate machinery that don’t need to know
the specifics of the runtime. They can then be made to be agnostic over specific formats
of data like extrinsics, allowing for them to continue syncing the network through upgrades
to even the core data structures.
diff --git a/domain_runtime_primitives/opaque/type.AccountId.html b/domain_runtime_primitives/opaque/type.AccountId.html
index c1b2bd8e6c..1df4b33b7a 100644
--- a/domain_runtime_primitives/opaque/type.AccountId.html
+++ b/domain_runtime_primitives/opaque/type.AccountId.html
@@ -1,4 +1,4 @@
-AccountId in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::AccountId
source · pub type AccountId = Vec<u8>;
Expand description
Opaque account identifier type.
+AccountId in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::AccountId
source · pub type AccountId = Vec<u8>;
Expand description
Opaque account identifier type.
Aliased Type§
struct AccountId { /* private fields */ }
Implementations§
source§impl<T> Vec<T, Global>
1.0.0 (const: 1.39.0) · sourcepub const fn new() -> Vec<T, Global>
Constructs a new, empty Vec<T>
.
The vector will not allocate until elements are pushed onto it.
Examples
diff --git a/domain_runtime_primitives/opaque/type.Block.html b/domain_runtime_primitives/opaque/type.Block.html
index 0a8901aae9..2fcd972d78 100644
--- a/domain_runtime_primitives/opaque/type.Block.html
+++ b/domain_runtime_primitives/opaque/type.Block.html
@@ -1,4 +1,4 @@
-Block in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::Block
source · pub type Block = Block<Header, UncheckedExtrinsic>;
Expand description
Opaque block type.
+Block in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::Block
source · pub type Block = Block<Header, UncheckedExtrinsic>;
Expand description
Opaque block type.
Aliased Type§
struct Block {
pub header: Header<u32, BlakeTwo256>,
pub extrinsics: Vec<OpaqueExtrinsic, Global>,
diff --git a/domain_runtime_primitives/opaque/type.BlockId.html b/domain_runtime_primitives/opaque/type.BlockId.html
index 16eeab94ef..bdadf81442 100644
--- a/domain_runtime_primitives/opaque/type.BlockId.html
+++ b/domain_runtime_primitives/opaque/type.BlockId.html
@@ -1,4 +1,4 @@
-BlockId in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::BlockId
source · pub type BlockId = BlockId<Block>;
Expand description
Opaque block identifier type.
+BlockId in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::BlockId
source · pub type BlockId = BlockId<Block>;
Expand description
Opaque block identifier type.
Aliased Type§
enum BlockId {
Hash(H256),
Number(u32),
diff --git a/domain_runtime_primitives/opaque/type.Header.html b/domain_runtime_primitives/opaque/type.Header.html
index abd1b07004..9175a35e60 100644
--- a/domain_runtime_primitives/opaque/type.Header.html
+++ b/domain_runtime_primitives/opaque/type.Header.html
@@ -1,4 +1,4 @@
-Header in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::Header
source · pub type Header = Header<BlockNumber, BlakeTwo256>;
Expand description
Opaque block header type.
+Header in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::Header
source · pub type Header = Header<BlockNumber, BlakeTwo256>;
Expand description
Opaque block header type.
Aliased Type§
struct Header {
pub parent_hash: H256,
pub number: u32,
diff --git a/domain_runtime_primitives/sidebar-items.js b/domain_runtime_primitives/sidebar-items.js
index 2d4a5fae2c..974f421143 100644
--- a/domain_runtime_primitives/sidebar-items.js
+++ b/domain_runtime_primitives/sidebar-items.js
@@ -1 +1 @@
-window.SIDEBAR_ITEMS = {"constant":["SLOT_DURATION"],"enum":["CheckTxValidityError","MultiAccountId","VerifyTxValidityError"],"mod":["opaque"],"struct":["AccountIdConverter"],"trait":["DomainCoreApi","Signer","TryConvertBack"],"type":["AccountId","Address","Balance","BlockNumber","EVMChainId","Hash","Nonce","Signature"]};
\ No newline at end of file
+window.SIDEBAR_ITEMS = {"constant":["SLOT_DURATION"],"enum":["MultiAccountId"],"mod":["opaque"],"struct":["AccountIdConverter"],"trait":["DomainCoreApi","Signer","TryConvertBack"],"type":["AccountId","Address","Balance","BlockNumber","EVMChainId","Hash","Nonce","Signature"]};
\ No newline at end of file
diff --git a/domain_runtime_primitives/struct.AccountIdConverter.html b/domain_runtime_primitives/struct.AccountIdConverter.html
index c8312da2ff..1faae39100 100644
--- a/domain_runtime_primitives/struct.AccountIdConverter.html
+++ b/domain_runtime_primitives/struct.AccountIdConverter.html
@@ -1,5 +1,5 @@
-AccountIdConverter in domain_runtime_primitives - Rust pub struct AccountIdConverter;
Expand description
An AccountId32 to MultiAccount converter.
-Trait Implementations§
source§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.Auto Trait Implementations§
§impl RefUnwindSafe for AccountIdConverter
§impl Send for AccountIdConverter
§impl Sync for AccountIdConverter
§impl Unpin for AccountIdConverter
§impl UnwindSafe for AccountIdConverter
Blanket Implementations§
source§impl<T> Any for Twhere
+AccountIdConverter in domain_runtime_primitives - Rust pub struct AccountIdConverter;
Expand description
An AccountId32 to MultiAccount converter.
+Trait Implementations§
source§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.Auto Trait Implementations§
§impl RefUnwindSafe for AccountIdConverter
§impl Send for AccountIdConverter
§impl Sync for AccountIdConverter
§impl Unpin for AccountIdConverter
§impl UnwindSafe for AccountIdConverter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
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
diff --git a/domain_runtime_primitives/trait.DomainCoreApi.html b/domain_runtime_primitives/trait.DomainCoreApi.html
index ea3f8e46a2..fd32e3c386 100644
--- a/domain_runtime_primitives/trait.DomainCoreApi.html
+++ b/domain_runtime_primitives/trait.DomainCoreApi.html
@@ -1,5 +1,5 @@
-DomainCoreApi in domain_runtime_primitives - Rust pub trait DomainCoreApi<Block: BlockT>: Core<Block> {
-Show 15 methods
// Provided methods
+DomainCoreApi in domain_runtime_primitives - Rust pub trait DomainCoreApi<Block: BlockT>: Core<Block> {
+Show 14 methods
// Provided methods
fn extract_signer(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
@@ -41,20 +41,13 @@
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsic: &<Block as BlockT>::Extrinsic
) -> Result<bool, ApiError> { ... }
- fn check_transaction_validity(
+ fn check_transaction_and_do_pre_dispatch(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
uxt: &<Block as BlockT>::Extrinsic,
block_number: NumberFor<Block>,
block_hash: <Block as BlockT>::Hash
- ) -> Result<Result<(), CheckTxValidityError>, ApiError> { ... }
- fn storage_keys_for_verifying_transaction_validity(
- &self,
- __runtime_api_at_param__: <Block as BlockT>::Hash,
- account_id: AccountId,
- block_number: NumberFor<Block>,
- tx_era: Option<Era>
- ) -> Result<Result<Vec<Vec<u8>>, VerifyTxValidityError>, ApiError> { ... }
+ ) -> Result<Result<(), TransactionValidityError>, ApiError> { ... }
fn extrinsic_era(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
@@ -78,80 +71,73 @@
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Weight, ApiError> { ... }
}
Expand description
Base API that every domain runtime must implement.
-Provided Methods§
sourcefn extract_signer(
+
Provided Methods§
sourcefn extract_signer(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsics: Vec<<Block as BlockT>::Extrinsic>
) -> Result<Vec<(Option<AccountId>, <Block as BlockT>::Extrinsic)>, ApiError>
Extracts the optional signer per extrinsic.
-sourcefn is_within_tx_range(
+
sourcefn is_within_tx_range(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsic: &<Block as BlockT>::Extrinsic,
bundle_vrf_hash: &U256,
tx_range: &U256
-) -> Result<bool, ApiError>
sourcefn intermediate_roots(
+) -> Result<bool, ApiError>
sourcefn initialize_block_with_post_state_root(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
header: &<Block as BlockT>::Header
) -> Result<Vec<u8>, ApiError>
Returns the storage root after initializing the block.
-
sourcefn apply_extrinsic_with_post_state_root(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsic: <Block as BlockT>::Extrinsic
) -> Result<Vec<u8>, ApiError>
Returns the storage root after applying the extrinsic.
-sourcefn construct_timestamp_extrinsic(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
moment: Moment
) -> Result<Block::Extrinsic, ApiError>
Returns an encoded extrinsic to set timestamp.
-
sourcefn is_inherent_extrinsic(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsic: &<Block as BlockT>::Extrinsic
) -> Result<bool, ApiError>
Returns true if the extrinsic is an inherent extrinsic.
-sourcefn check_transaction_and_do_pre_dispatch(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
uxt: &<Block as BlockT>::Extrinsic,
block_number: NumberFor<Block>,
block_hash: <Block as BlockT>::Hash
-) -> Result<Result<(), CheckTxValidityError>, ApiError>
Checks the validity of extrinsic in a bundle.
-sourcefn storage_keys_for_verifying_transaction_validity(
- &self,
- __runtime_api_at_param__: <Block as BlockT>::Hash,
- account_id: AccountId,
- block_number: NumberFor<Block>,
- tx_era: Option<Era>
-) -> Result<Result<Vec<Vec<u8>>, VerifyTxValidityError>, ApiError>
Returns the storage keys of states accessed in the API check_transaction_validity
.
-sourcefn extrinsic_era(
+) -> Result<Result<(), TransactionValidityError>, ApiError>
Checks the validity of extrinsic + do pre_dispatch as well.
+sourcefn extrinsic_era(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsic: &<Block as BlockT>::Extrinsic
) -> Result<Option<Era>, ApiError>
Returns extrinsic Era if present
-sourcefn extrinsic_weight(
+
sourcefn extrinsic_weight(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
ext: &Block::Extrinsic
) -> Result<Weight, ApiError>
Return the extrinsic weight
-sourcefn block_rewards(
+
sourcefn block_rewards(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Balance, ApiError>
The accumulated transaction fee of all transactions included in the block
-sourcefn block_digest(
+
sourcefn block_digest(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Digest, ApiError>
Return the block digest
-sourcefn block_weight(
+
sourcefn block_weight(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Weight, ApiError>
Return the consumed weight of the block
-
Trait Implementations§
Implementors§
\ No newline at end of file
+
Trait Implementations§
Implementors§
\ No newline at end of file
diff --git a/domain_runtime_primitives/trait.Signer.html b/domain_runtime_primitives/trait.Signer.html
index 1660929f26..f9303bc64b 100644
--- a/domain_runtime_primitives/trait.Signer.html
+++ b/domain_runtime_primitives/trait.Signer.html
@@ -1,10 +1,10 @@
-Signer in domain_runtime_primitives - Rust Trait domain_runtime_primitives::Signer
source · pub trait Signer<AccountId, Lookup> {
+Signer in domain_runtime_primitives - Rust Trait domain_runtime_primitives::Signer
source · pub trait Signer<AccountId, Lookup> {
// Required method
fn signer(&self, lookup: &Lookup) -> Option<AccountId>;
}
Expand description
Extracts the signer from an unchecked extrinsic.
Used by executor to extract the optional signer when shuffling the extrinsics.
-Required Methods§
Implementations on Foreign Types§
Required Methods§
Implementations on Foreign Types§
source§impl<Address, AccountId, Call, Signature, Extra, Lookup> Signer<AccountId, Lookup> for UncheckedExtrinsic<Address, Call, Signature, Extra>where
Address: Clone,
Extra: SignedExtension<AccountId = AccountId>,
- Lookup: Lookup<Source = Address, Target = AccountId>,
Implementors§
\ No newline at end of file
+ Lookup: Lookup<Source = Address, Target = AccountId>,Implementors§
\ No newline at end of file
diff --git a/domain_runtime_primitives/trait.TryConvertBack.html b/domain_runtime_primitives/trait.TryConvertBack.html
index 493718157f..d0613a73c0 100644
--- a/domain_runtime_primitives/trait.TryConvertBack.html
+++ b/domain_runtime_primitives/trait.TryConvertBack.html
@@ -1,6 +1,6 @@
-TryConvertBack in domain_runtime_primitives - Rust pub trait TryConvertBack<A, B>: Convert<A, B> {
+TryConvertBack in domain_runtime_primitives - Rust pub trait TryConvertBack<A, B>: Convert<A, B> {
// Required method
fn try_convert_back(b: B) -> Option<A>;
}
Expand description
Extensible conversion trait. Generic over both source and destination types.
-Required Methods§
sourcefn try_convert_back(b: B) -> Option<A>
Make conversion back.
-Implementors§
source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
\ No newline at end of file
+
Required Methods§
sourcefn try_convert_back(b: B) -> Option<A>
Make conversion back.
+Implementors§
source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.AccountId.html b/domain_runtime_primitives/type.AccountId.html
index 7f02a5d5e1..221113f76f 100644
--- a/domain_runtime_primitives/type.AccountId.html
+++ b/domain_runtime_primitives/type.AccountId.html
@@ -1,3 +1,3 @@
-AccountId in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::AccountId
source · pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;
Expand description
Some way of identifying an account on the chain. We intentionally make it equivalent
+
AccountId in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::AccountId
source · pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;
Expand description
Some way of identifying an account on the chain. We intentionally make it equivalent
to the public key of our transaction signing scheme.
-Trait Implementations§
source§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.
\ No newline at end of file
+Trait Implementations§
source§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.Address.html b/domain_runtime_primitives/type.Address.html
index 484b3d8e15..a1e1c38dfb 100644
--- a/domain_runtime_primitives/type.Address.html
+++ b/domain_runtime_primitives/type.Address.html
@@ -1,4 +1,4 @@
-Address in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Address
source · pub type Address = MultiAddress<AccountId, ()>;
Expand description
The address format for describing accounts.
+Address in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Address
source · pub type Address = MultiAddress<AccountId, ()>;
Expand description
The address format for describing accounts.
Aliased Type§
enum Address {
Id(AccountId32),
Index(()),
diff --git a/domain_runtime_primitives/type.Balance.html b/domain_runtime_primitives/type.Balance.html
index e1a60a9ef5..f4ac7427f5 100644
--- a/domain_runtime_primitives/type.Balance.html
+++ b/domain_runtime_primitives/type.Balance.html
@@ -1,2 +1,2 @@
-Balance in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Balance
source · pub type Balance = u128;
Expand description
Balance of an account.
+Balance in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Balance
source · pub type Balance = u128;
Expand description
Balance of an account.
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.BlockNumber.html b/domain_runtime_primitives/type.BlockNumber.html
index 6cd11b7a2f..5568be7ab2 100644
--- a/domain_runtime_primitives/type.BlockNumber.html
+++ b/domain_runtime_primitives/type.BlockNumber.html
@@ -1,2 +1,2 @@
-BlockNumber in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::BlockNumber
source · pub type BlockNumber = u32;
Expand description
An index to a block.
+BlockNumber in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::BlockNumber
source · pub type BlockNumber = u32;
Expand description
An index to a block.
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.EVMChainId.html b/domain_runtime_primitives/type.EVMChainId.html
index e1b995544d..8e0c2dbcd6 100644
--- a/domain_runtime_primitives/type.EVMChainId.html
+++ b/domain_runtime_primitives/type.EVMChainId.html
@@ -1,2 +1,2 @@
-EVMChainId in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::EVMChainId
source · pub type EVMChainId = u64;
Expand description
The EVM chain Id type
+EVMChainId in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::EVMChainId
source · pub type EVMChainId = u64;
Expand description
The EVM chain Id type
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.Hash.html b/domain_runtime_primitives/type.Hash.html
index 330c3b749a..4f06112fc7 100644
--- a/domain_runtime_primitives/type.Hash.html
+++ b/domain_runtime_primitives/type.Hash.html
@@ -1,2 +1,2 @@
-Hash in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Hash
source · pub type Hash = H256;
Expand description
A hash of some data used by the chain.
+Hash in domain_runtime_primitives - Rust
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.Nonce.html b/domain_runtime_primitives/type.Nonce.html
index 0f288f9f59..0d7cb0ffaa 100644
--- a/domain_runtime_primitives/type.Nonce.html
+++ b/domain_runtime_primitives/type.Nonce.html
@@ -1,2 +1,2 @@
-Nonce in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Nonce
source · pub type Nonce = u32;
Expand description
Index of a transaction in the chain.
+Nonce in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Nonce
source · pub type Nonce = u32;
Expand description
Index of a transaction in the chain.
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.Signature.html b/domain_runtime_primitives/type.Signature.html
index d3f6074c36..31970b5ccb 100644
--- a/domain_runtime_primitives/type.Signature.html
+++ b/domain_runtime_primitives/type.Signature.html
@@ -1,4 +1,4 @@
-Signature in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Signature
source · pub type Signature = MultiSignature;
Expand description
Alias to 512-bit hash when used in the context of a transaction signature on the chain.
+Signature in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Signature
source · pub type Signature = MultiSignature;
Expand description
Alias to 512-bit hash when used in the context of a transaction signature on the chain.
Aliased Type§
enum Signature {
Ed25519(Signature),
Sr25519(Signature),
diff --git a/domain_test_service/domain/index.html b/domain_test_service/domain/index.html
index c9917ffd3d..f7fb87c87d 100644
--- a/domain_test_service/domain/index.html
+++ b/domain_test_service/domain/index.html
@@ -1,2 +1,2 @@
-domain_test_service::domain - Rust Module domain_test_service::domain
source · Expand description
Utilities used for testing with the domain.
+domain_test_service::domain - Rust Module domain_test_service::domain
source · Expand description
Utilities used for testing with the domain.
Structs
Traits
Type Aliases
\ No newline at end of file
diff --git a/domain_test_service/domain/struct.DomainNode.html b/domain_test_service/domain/struct.DomainNode.html
index 7e23775fd4..9a9e9ea08d 100644
--- a/domain_test_service/domain/struct.DomainNode.html
+++ b/domain_test_service/domain/struct.DomainNode.html
@@ -1,4 +1,4 @@
-DomainNode in domain_test_service::domain - Rust Struct domain_test_service::domain::DomainNode
source · pub struct DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
+DomainNode in domain_test_service::domain - Rust Struct domain_test_service::domain::DomainNode
source · pub struct DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi, ExecutorDispatch>> + Send + Sync + 'static,
RuntimeApi::RuntimeApi: ApiExt<Block> + Metadata<Block> + BlockBuilder<Block> + OffchainWorkerApi<Block> + SessionKeys<Block> + DomainCoreApi<Block> + MessengerApi<Block, NumberFor<Block>> + TaggedTransactionQueue<Block> + AccountNonceApi<Block, AccountId, Nonce> + TransactionPaymentRuntimeApi<Block, Balance> + RelayerApi<Block, NumberFor<Block>>,
ExecutorDispatch: NativeExecutionDispatch + Send + Sync + 'static,
@@ -30,7 +30,7 @@
§rpc_handlers: RpcHandlers
RPCHandlers to make RPC queries.
§operator: DomainOperator<RuntimeApi, ExecutorDispatch>
Domain oeprator.
§tx_pool_sink: TracingUnboundedSender<ChainTxPoolMsg>
Sink to the node’s tx pool
-Implementations§
source§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
+
Implementations§
source§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
Runtime: Config<Hash = H256> + Config + Send + Sync,
Runtime::RuntimeCall: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo> + Send + Sync,
<<Runtime as Config>::OnChargeTransaction as OnChargeTransaction<Runtime>>::Balance: Send + Sync + From<u64> + FixedPointOperand,
@@ -38,31 +38,31 @@
RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi, ExecutorDispatch>> + Send + Sync + 'static,
RuntimeApi::RuntimeApi: ApiExt<Block> + Metadata<Block> + BlockBuilder<Block> + OffchainWorkerApi<Block> + SessionKeys<Block> + DomainCoreApi<Block> + TaggedTransactionQueue<Block> + AccountNonceApi<Block, AccountId, Nonce> + TransactionPaymentRuntimeApi<Block, Balance> + MessengerApi<Block, NumberFor<Block>> + RelayerApi<Block, NumberFor<Block>> + OnchainStateApi<Block, AccountId, Balance> + EthereumRuntimeRPCApi<Block>,
ExecutorDispatch: NativeExecutionDispatch + Send + Sync + 'static,
- AccountId: DeserializeOwned + Encode + Decode + Clone + Debug + Display + FromStr + Sync + Send + FromKeyring + 'static,
sourcepub fn wait_for_blocks(&self, count: usize) -> impl Future<Output = ()>
Wait for count
blocks to be imported in the node and then exit. This function will not
+ AccountId: DeserializeOwned + Encode + Decode + Clone + Debug + Display + FromStr + Sync + Send + FromKeyring + 'static,
sourcepub fn wait_for_blocks(&self, count: usize) -> impl Future<Output = ()>
Wait for count
blocks to be imported in the node and then exit. This function will not
return if no blocks are ever created, thus you should restrict the maximum amount of time of
the test execution.
-sourcepub fn account_nonce(&self) -> u32
Get the nonce of the node account
-sourcepub async fn send_system_remark(&mut self)
Sends an system.remark extrinsic to the pool.
-sourcepub async fn construct_and_send_extrinsic(
+
sourcepub fn account_nonce(&self) -> u32
Get the nonce of the node account
+sourcepub async fn send_system_remark(&mut self)
Sends an system.remark extrinsic to the pool.
+sourcepub async fn construct_and_send_extrinsic(
&mut self,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> Result<RpcTransactionOutput, RpcTransactionError>
Construct an extrinsic with the current nonce of the node account and send it to this node.
-sourcepub fn construct_extrinsic(
+
sourcepub fn construct_extrinsic(
&mut self,
nonce: u32,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> UncheckedExtrinsic<Address, <Runtime as Config>::RuntimeCall, Signature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
Construct an extrinsic.
-sourcepub fn construct_extrinsic_with_tip(
+
sourcepub fn construct_extrinsic_with_tip(
&mut self,
nonce: u32,
- tip: u32,
+ tip: <<Runtime as Config>::OnChargeTransaction as OnChargeTransaction<Runtime>>::Balance,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> UncheckedExtrinsic<Address, <Runtime as Config>::RuntimeCall, Signature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
Construct an extrinsic with the given transaction tip.
-sourcepub async fn send_extrinsic(
+
sourcepub async fn send_extrinsic(
&self,
extrinsic: impl Into<OpaqueExtrinsic>
) -> Result<RpcTransactionOutput, RpcTransactionError>
Send an extrinsic to this node.
-sourcepub fn free_balance(&self, account_id: AccountId) -> Balance
Get the free balance of the given account
+sourcepub fn free_balance(&self, account_id: AccountId) -> Balance
Get the free balance of the given account
Auto Trait Implementations§
§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> !RefUnwindSafe for DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>
§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> Send for DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
AccountId: Send,
Runtime: Send,
§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> !Sync for DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>
§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> Unpin for DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
diff --git a/domain_test_service/domain/struct.DomainNodeBuilder.html b/domain_test_service/domain/struct.DomainNodeBuilder.html
index d511bcf96f..aaa055fd7c 100644
--- a/domain_test_service/domain/struct.DomainNodeBuilder.html
+++ b/domain_test_service/domain/struct.DomainNodeBuilder.html
@@ -1,15 +1,15 @@
-DomainNodeBuilder in domain_test_service::domain - Rust Struct domain_test_service::domain::DomainNodeBuilder
source · pub struct DomainNodeBuilder { /* private fields */ }
Expand description
A builder to create a DomainNode
.
-Implementations§
source§impl DomainNodeBuilder
sourcepub fn new(tokio_handle: Handle, key: EcdsaKeyring, base_path: BasePath) -> Self
Create a new instance of Self
.
+DomainNodeBuilder in domain_test_service::domain - Rust Struct domain_test_service::domain::DomainNodeBuilder
source · pub struct DomainNodeBuilder { /* private fields */ }
Expand description
A builder to create a DomainNode
.
+Implementations§
source§impl DomainNodeBuilder
sourcepub fn new(tokio_handle: Handle, key: EcdsaKeyring, base_path: BasePath) -> Self
Create a new instance of Self
.
tokio_handle
- The tokio handler to use.
key
- The key that will be used to generate the name.
base_path
- Where databases will be stored.
-sourcepub fn exclusively_connect_to_registered_parachain_nodes(self) -> Self
Instruct the node to exclusively connect to registered parachain nodes.
+sourcepub fn exclusively_connect_to_registered_parachain_nodes(self) -> Self
Instruct the node to exclusively connect to registered parachain nodes.
Domain nodes can be registered using Self::connect_to_domain_node
.
-sourcepub fn connect_to_domain_node(self, addr: MultiaddrWithPeerId) -> Self
Make the node connect to the given domain node.
+sourcepub fn connect_to_domain_node(self, addr: MultiaddrWithPeerId) -> Self
Make the node connect to the given domain node.
By default the node will not be connected to any node or will be able to discover any other
node.
-sourcepub fn skip_empty_bundle(self) -> Self
Skip empty bundle production when there is no non-empty domain block need to confirm
-sourcepub async fn build_evm_node(
+
sourcepub fn skip_empty_bundle(self) -> Self
Skip empty bundle production when there is no non-empty domain block need to confirm
+sourcepub async fn build_evm_node(
self,
role: Role,
domain_id: DomainId,
diff --git a/domain_test_service/domain/struct.EVMDomainExecutorDispatch.html b/domain_test_service/domain/struct.EVMDomainExecutorDispatch.html
index 4e99b53d46..fa3341ce30 100644
--- a/domain_test_service/domain/struct.EVMDomainExecutorDispatch.html
+++ b/domain_test_service/domain/struct.EVMDomainExecutorDispatch.html
@@ -1,6 +1,6 @@
-EVMDomainExecutorDispatch in domain_test_service::domain - Rust pub struct EVMDomainExecutorDispatch;
Expand description
Evm domain executor instance.
-Trait Implementations§
source§impl NativeExecutionDispatch for EVMDomainExecutorDispatch
§type ExtendHostFunctions = ()
Host functions for custom runtime interfaces that should be callable from within the runtime
-besides the default Substrate runtime interfaces.source§fn native_version() -> NativeVersion
Provide native runtime version.Auto Trait Implementations§
§impl RefUnwindSafe for EVMDomainExecutorDispatch
§impl Send for EVMDomainExecutorDispatch
§impl Sync for EVMDomainExecutorDispatch
§impl Unpin for EVMDomainExecutorDispatch
§impl UnwindSafe for EVMDomainExecutorDispatch
Blanket Implementations§
source§impl<T> Any for Twhere
+EVMDomainExecutorDispatch in domain_test_service::domain - Rust pub struct EVMDomainExecutorDispatch;
Expand description
Evm domain executor instance.
+Trait Implementations§
source§impl NativeExecutionDispatch for EVMDomainExecutorDispatch
§type ExtendHostFunctions = ()
Host functions for custom runtime interfaces that should be callable from within the runtime
+besides the default Substrate runtime interfaces.source§fn native_version() -> NativeVersion
Provide native runtime version.Auto Trait Implementations§
§impl RefUnwindSafe for EVMDomainExecutorDispatch
§impl Send for EVMDomainExecutorDispatch
§impl Sync for EVMDomainExecutorDispatch
§impl Unpin for EVMDomainExecutorDispatch
§impl UnwindSafe for EVMDomainExecutorDispatch
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/domain_test_service/domain/trait.FromKeyring.html b/domain_test_service/domain/trait.FromKeyring.html
index 1c31e897c4..908324a1d7 100644
--- a/domain_test_service/domain/trait.FromKeyring.html
+++ b/domain_test_service/domain/trait.FromKeyring.html
@@ -1,6 +1,6 @@
-FromKeyring in domain_test_service::domain - Rust Trait domain_test_service::domain::FromKeyring
source · pub trait FromKeyring {
+FromKeyring in domain_test_service::domain - Rust Trait domain_test_service::domain::FromKeyring
source · pub trait FromKeyring {
// Required method
fn from_keyring(key: EcdsaKeyring) -> Self;
}
Expand description
Trait for convert keyring to account id
-Required Methods§
sourcefn from_keyring(key: EcdsaKeyring) -> Self
Convert keyring to account id
-Implementations on Foreign Types§
source§impl FromKeyring for AccountId
source§fn from_keyring(key: EcdsaKeyring) -> Self
Implementors§
\ No newline at end of file
+
Required Methods§
sourcefn from_keyring(key: EcdsaKeyring) -> Self
Convert keyring to account id
+Implementations on Foreign Types§
source§impl FromKeyring for AccountId
source§fn from_keyring(key: EcdsaKeyring) -> Self
Implementors§
\ No newline at end of file
diff --git a/domain_test_service/domain/type.Backend.html b/domain_test_service/domain/type.Backend.html
index 09942b2071..a357bd3138 100644
--- a/domain_test_service/domain/type.Backend.html
+++ b/domain_test_service/domain/type.Backend.html
@@ -1,2 +1,2 @@
-Backend in domain_test_service::domain - Rust Type Alias domain_test_service::domain::Backend
source · pub type Backend = TFullBackend<Block>;
Expand description
The backend type used by the test service.
+Backend in domain_test_service::domain - Rust
\ No newline at end of file
diff --git a/domain_test_service/domain/type.DomainOperator.html b/domain_test_service/domain/type.DomainOperator.html
index adf5bbc8f0..4475ba54e9 100644
--- a/domain_test_service/domain/type.DomainOperator.html
+++ b/domain_test_service/domain/type.DomainOperator.html
@@ -1,2 +1,2 @@
-DomainOperator in domain_test_service::domain - Rust Type Alias domain_test_service::domain::DomainOperator
source · pub type DomainOperator<RuntimeApi, ExecutorDispatch> = DomainOperator<Block, Block, Client, RuntimeApi, ExecutorDispatch>;
Expand description
Domain executor for the test service.
+DomainOperator in domain_test_service::domain - Rust Type Alias domain_test_service::domain::DomainOperator
source · pub type DomainOperator<RuntimeApi, ExecutorDispatch> = DomainOperator<Block, Block, Client, RuntimeApi, ExecutorDispatch>;
Expand description
Domain executor for the test service.
Aliased Type§
struct DomainOperator<RuntimeApi, ExecutorDispatch> { /* private fields */ }
\ No newline at end of file
diff --git a/domain_test_service/domain/type.EvmDomainClient.html b/domain_test_service/domain/type.EvmDomainClient.html
index 446b599fdc..a7c2c2d35a 100644
--- a/domain_test_service/domain/type.EvmDomainClient.html
+++ b/domain_test_service/domain/type.EvmDomainClient.html
@@ -1,2 +1,2 @@
-EvmDomainClient in domain_test_service::domain - Rust Type Alias domain_test_service::domain::EvmDomainClient
source · pub type EvmDomainClient = FullClient<Block, RuntimeApi, EVMDomainExecutorDispatch>;
Expand description
The evm domain client
+EvmDomainClient in domain_test_service::domain - Rust Type Alias domain_test_service::domain::EvmDomainClient
source · pub type EvmDomainClient = FullClient<Block, RuntimeApi, EVMDomainExecutorDispatch>;
Expand description
The evm domain client
Aliased Type§
struct EvmDomainClient { /* private fields */ }
\ No newline at end of file
diff --git a/domain_test_service/domain/type.EvmDomainNode.html b/domain_test_service/domain/type.EvmDomainNode.html
index bd7a304406..36cb098e39 100644
--- a/domain_test_service/domain/type.EvmDomainNode.html
+++ b/domain_test_service/domain/type.EvmDomainNode.html
@@ -1,4 +1,4 @@
-EvmDomainNode in domain_test_service::domain - Rust Type Alias domain_test_service::domain::EvmDomainNode
source · pub type EvmDomainNode = DomainNode<Runtime, RuntimeApi, EVMDomainExecutorDispatch, AccountId>;
Expand description
The evm domain node
+EvmDomainNode in domain_test_service::domain - Rust Type Alias domain_test_service::domain::EvmDomainNode
source · pub type EvmDomainNode = DomainNode<Runtime, RuntimeApi, EVMDomainExecutorDispatch, AccountId>;
Expand description
The evm domain node
Aliased Type§
struct EvmDomainNode {
pub domain_id: DomainId,
pub key: Keyring,
@@ -26,7 +26,7 @@
§rpc_handlers: RpcHandlers
RPCHandlers to make RPC queries.
§operator: Operator<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, NativeElseWasmExecutor<EVMDomainExecutorDispatch>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, NativeElseWasmExecutor<TestExecutorDispatch>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>, BasicPool<FullChainApiWrapper<Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, NativeElseWasmExecutor<TestExecutorDispatch>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, NativeElseWasmExecutor<EVMDomainExecutorDispatch>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, NativeElseWasmExecutor<EVMDomainExecutorDispatch>>
Domain oeprator.
§tx_pool_sink: TracingUnboundedSender<ChainTxPoolMsg>
Sink to the node’s tx pool
-Implementations§
source§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
+
Implementations§
source§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
Runtime: Config<Hash = H256> + Config + Send + Sync,
Runtime::RuntimeCall: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo> + Send + Sync,
<<Runtime as Config>::OnChargeTransaction as OnChargeTransaction<Runtime>>::Balance: Send + Sync + From<u64> + FixedPointOperand,
@@ -34,29 +34,29 @@
RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi, ExecutorDispatch>> + Send + Sync + 'static,
RuntimeApi::RuntimeApi: ApiExt<Block> + Metadata<Block> + BlockBuilder<Block> + OffchainWorkerApi<Block> + SessionKeys<Block> + DomainCoreApi<Block> + TaggedTransactionQueue<Block> + AccountNonceApi<Block, AccountId, Nonce> + TransactionPaymentRuntimeApi<Block, Balance> + MessengerApi<Block, NumberFor<Block>> + RelayerApi<Block, NumberFor<Block>> + OnchainStateApi<Block, AccountId, Balance> + EthereumRuntimeRPCApi<Block>,
ExecutorDispatch: NativeExecutionDispatch + Send + Sync + 'static,
- AccountId: DeserializeOwned + Encode + Decode + Clone + Debug + Display + FromStr + Sync + Send + FromKeyring + 'static,
sourcepub fn wait_for_blocks(&self, count: usize) -> impl Future<Output = ()>
Wait for count
blocks to be imported in the node and then exit. This function will not
+ AccountId: DeserializeOwned + Encode + Decode + Clone + Debug + Display + FromStr + Sync + Send + FromKeyring + 'static,
sourcepub fn wait_for_blocks(&self, count: usize) -> impl Future<Output = ()>
Wait for count
blocks to be imported in the node and then exit. This function will not
return if no blocks are ever created, thus you should restrict the maximum amount of time of
the test execution.
-sourcepub fn account_nonce(&self) -> u32
Get the nonce of the node account
-sourcepub async fn send_system_remark(&mut self)
Sends an system.remark extrinsic to the pool.
-sourcepub async fn construct_and_send_extrinsic(
+
sourcepub fn account_nonce(&self) -> u32
Get the nonce of the node account
+sourcepub async fn send_system_remark(&mut self)
Sends an system.remark extrinsic to the pool.
+sourcepub async fn construct_and_send_extrinsic(
&mut self,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> Result<RpcTransactionOutput, RpcTransactionError>
Construct an extrinsic with the current nonce of the node account and send it to this node.
-sourcepub fn construct_extrinsic(
+
sourcepub fn construct_extrinsic(
&mut self,
nonce: u32,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> UncheckedExtrinsic<Address, <Runtime as Config>::RuntimeCall, Signature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
Construct an extrinsic.
-sourcepub fn construct_extrinsic_with_tip(
+
sourcepub fn construct_extrinsic_with_tip(
&mut self,
nonce: u32,
- tip: u32,
+ tip: <<Runtime as Config>::OnChargeTransaction as OnChargeTransaction<Runtime>>::Balance,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> UncheckedExtrinsic<Address, <Runtime as Config>::RuntimeCall, Signature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
Construct an extrinsic with the given transaction tip.
-sourcepub async fn send_extrinsic(
+
sourcepub async fn send_extrinsic(
&self,
extrinsic: impl Into<OpaqueExtrinsic>
) -> Result<RpcTransactionOutput, RpcTransactionError>
Send an extrinsic to this node.
-sourcepub fn free_balance(&self, account_id: AccountId) -> Balance
Get the free balance of the given account
+sourcepub fn free_balance(&self, account_id: AccountId) -> Balance
Get the free balance of the given account
\ No newline at end of file
diff --git a/domain_test_service/fn.construct_extrinsic_generic.html b/domain_test_service/fn.construct_extrinsic_generic.html
index 2a59f8d3c4..5b35d17f74 100644
--- a/domain_test_service/fn.construct_extrinsic_generic.html
+++ b/domain_test_service/fn.construct_extrinsic_generic.html
@@ -4,7 +4,7 @@
caller: EcdsaKeyring,
immortal: bool,
nonce: u32,
- tip: u32
+ tip: <<Runtime as Config>::OnChargeTransaction as OnChargeTransaction<Runtime>>::Balance
) -> UncheckedExtrinsic<Address, <Runtime as Config>::RuntimeCall, Signature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>where
Runtime: Config<Hash = H256> + Config + Send + Sync,
Runtime::RuntimeCall: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo> + Send + Sync,
diff --git a/evm_domain_runtime/all.html b/evm_domain_runtime/all.html
index ab970aa566..43c200c236 100644
--- a/evm_domain_runtime/all.html
+++ b/evm_domain_runtime/all.html
@@ -1 +1 @@
-List of all items in this crate List of all items
Structs
Enums
Traits
Functions
Type Aliases
Constants
\ No newline at end of file
+List of all items in this crate List of all items
Structs
Enums
Functions
Type Aliases
Constants
\ No newline at end of file
diff --git a/evm_domain_runtime/api/fn.dispatch.html b/evm_domain_runtime/api/fn.dispatch.html
index 275bd26cd5..c6d54d13fc 100644
--- a/evm_domain_runtime/api/fn.dispatch.html
+++ b/evm_domain_runtime/api/fn.dispatch.html
@@ -1 +1 @@
-dispatch in evm_domain_runtime::api - Rust
\ No newline at end of file
+dispatch in evm_domain_runtime::api - Rust
\ No newline at end of file
diff --git a/evm_domain_runtime/api/index.html b/evm_domain_runtime/api/index.html
index 4334092635..308f5d41b8 100644
--- a/evm_domain_runtime/api/index.html
+++ b/evm_domain_runtime/api/index.html
@@ -1 +1 @@
-evm_domain_runtime::api - Rust Module evm_domain_runtime::api
source · Functions
\ No newline at end of file
+evm_domain_runtime::api - Rust Module evm_domain_runtime::api
source · Functions
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.EXISTENTIAL_DEPOSIT.html b/evm_domain_runtime/constant.EXISTENTIAL_DEPOSIT.html
index d5d293284f..5e9106b9b4 100644
--- a/evm_domain_runtime/constant.EXISTENTIAL_DEPOSIT.html
+++ b/evm_domain_runtime/constant.EXISTENTIAL_DEPOSIT.html
@@ -1,2 +1,2 @@
-EXISTENTIAL_DEPOSIT in evm_domain_runtime - Rust Constant evm_domain_runtime::EXISTENTIAL_DEPOSIT
source · pub const EXISTENTIAL_DEPOSIT: Balance = _; // 500u128
Expand description
The existential deposit. Same with the one on primary chain.
+EXISTENTIAL_DEPOSIT in evm_domain_runtime - Rust Constant evm_domain_runtime::EXISTENTIAL_DEPOSIT
source · pub const EXISTENTIAL_DEPOSIT: Balance = _; // 500u128
Expand description
The existential deposit. Same with the one on primary chain.
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.GAS_PER_SECOND.html b/evm_domain_runtime/constant.GAS_PER_SECOND.html
index e0483c7c63..ee4e73a432 100644
--- a/evm_domain_runtime/constant.GAS_PER_SECOND.html
+++ b/evm_domain_runtime/constant.GAS_PER_SECOND.html
@@ -1,4 +1,4 @@
-GAS_PER_SECOND in evm_domain_runtime - Rust Constant evm_domain_runtime::GAS_PER_SECOND
source · pub const GAS_PER_SECOND: u64 = 40_000_000;
Expand description
Current approximation of the gas/s consumption considering
+
GAS_PER_SECOND in evm_domain_runtime - Rust Constant evm_domain_runtime::GAS_PER_SECOND
source · pub const GAS_PER_SECOND: u64 = 40_000_000;
Expand description
Current approximation of the gas/s consumption considering
EVM execution over compiled WASM (on 4.4Ghz CPU).
Given the 500ms Weight, from which 75% only are used for transactions,
the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 15_000_000.
diff --git a/evm_domain_runtime/constant.MAXIMUM_BLOCK_LENGTH.html b/evm_domain_runtime/constant.MAXIMUM_BLOCK_LENGTH.html
index aedb91ead1..f756e1d305 100644
--- a/evm_domain_runtime/constant.MAXIMUM_BLOCK_LENGTH.html
+++ b/evm_domain_runtime/constant.MAXIMUM_BLOCK_LENGTH.html
@@ -1 +1 @@
-MAXIMUM_BLOCK_LENGTH in evm_domain_runtime - Rust Constant evm_domain_runtime::MAXIMUM_BLOCK_LENGTH
source · pub const MAXIMUM_BLOCK_LENGTH: u32 = _; // 5_242_880u32
\ No newline at end of file
+MAXIMUM_BLOCK_LENGTH in evm_domain_runtime - Rust Constant evm_domain_runtime::MAXIMUM_BLOCK_LENGTH
source · pub const MAXIMUM_BLOCK_LENGTH: u32 = _; // 5_242_880u32
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.MAXIMUM_BLOCK_WEIGHT.html b/evm_domain_runtime/constant.MAXIMUM_BLOCK_WEIGHT.html
index d285c178f9..289da5ed64 100644
--- a/evm_domain_runtime/constant.MAXIMUM_BLOCK_WEIGHT.html
+++ b/evm_domain_runtime/constant.MAXIMUM_BLOCK_WEIGHT.html
@@ -1 +1 @@
-MAXIMUM_BLOCK_WEIGHT in evm_domain_runtime - Rust Constant evm_domain_runtime::MAXIMUM_BLOCK_WEIGHT
source · pub const MAXIMUM_BLOCK_WEIGHT: Weight;
\ No newline at end of file
+MAXIMUM_BLOCK_WEIGHT in evm_domain_runtime - Rust Constant evm_domain_runtime::MAXIMUM_BLOCK_WEIGHT
source · pub const MAXIMUM_BLOCK_WEIGHT: Weight;
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.VERSION.html b/evm_domain_runtime/constant.VERSION.html
index b6619a50ae..d658f38640 100644
--- a/evm_domain_runtime/constant.VERSION.html
+++ b/evm_domain_runtime/constant.VERSION.html
@@ -1 +1 @@
-VERSION in evm_domain_runtime - Rust Constant evm_domain_runtime::VERSION
source · pub const VERSION: RuntimeVersion;
\ No newline at end of file
+VERSION in evm_domain_runtime - Rust Constant evm_domain_runtime::VERSION
source · pub const VERSION: RuntimeVersion;
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.WEIGHT_MILLISECS_PER_BLOCK.html b/evm_domain_runtime/constant.WEIGHT_MILLISECS_PER_BLOCK.html
index b878c5fafd..720f8c1491 100644
--- a/evm_domain_runtime/constant.WEIGHT_MILLISECS_PER_BLOCK.html
+++ b/evm_domain_runtime/constant.WEIGHT_MILLISECS_PER_BLOCK.html
@@ -1,2 +1,2 @@
-WEIGHT_MILLISECS_PER_BLOCK in evm_domain_runtime - Rust Constant evm_domain_runtime::WEIGHT_MILLISECS_PER_BLOCK
source · pub const WEIGHT_MILLISECS_PER_BLOCK: u64 = 2000;
Expand description
We allow for 2000ms of compute with a 6 second average block time.
+WEIGHT_MILLISECS_PER_BLOCK in evm_domain_runtime - Rust Constant evm_domain_runtime::WEIGHT_MILLISECS_PER_BLOCK
source · pub const WEIGHT_MILLISECS_PER_BLOCK: u64 = 2000;
Expand description
We allow for 2000ms of compute with a 6 second average block time.
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.WEIGHT_PER_GAS.html b/evm_domain_runtime/constant.WEIGHT_PER_GAS.html
index b2eb5d18a3..99215cf411 100644
--- a/evm_domain_runtime/constant.WEIGHT_PER_GAS.html
+++ b/evm_domain_runtime/constant.WEIGHT_PER_GAS.html
@@ -1,3 +1,3 @@
-WEIGHT_PER_GAS in evm_domain_runtime - Rust Constant evm_domain_runtime::WEIGHT_PER_GAS
source · pub const WEIGHT_PER_GAS: u64 = _; // 25_000u64
Expand description
Approximate ratio of the amount of Weight per Gas.
+
WEIGHT_PER_GAS in evm_domain_runtime - Rust Constant evm_domain_runtime::WEIGHT_PER_GAS
source · pub const WEIGHT_PER_GAS: u64 = _; // 25_000u64
Expand description
Approximate ratio of the amount of Weight per Gas.
u64 works for approximations because Weight is a very small unit compared to gas.
\ No newline at end of file
diff --git a/evm_domain_runtime/enum.MultiAddress.html b/evm_domain_runtime/enum.MultiAddress.html
index 078c7b23a0..edabad2b3b 100644
--- a/evm_domain_runtime/enum.MultiAddress.html
+++ b/evm_domain_runtime/enum.MultiAddress.html
@@ -101,9 +101,9 @@
T: From<Outer>,§fn from_mut(outer: &mut Outer) -> &mut T
Get a mutable reference to the inner from the outer.
§impl<T> KeyedVec for Twhere
- T: Codec,
§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
- Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
- Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
+ Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
+ Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read moresource§impl<T, U> TryInto<U> for Twhere
diff --git a/evm_domain_runtime/enum.OriginCaller.html b/evm_domain_runtime/enum.OriginCaller.html
index cefa2b2e75..d4485f40bd 100644
--- a/evm_domain_runtime/enum.OriginCaller.html
+++ b/evm_domain_runtime/enum.OriginCaller.html
@@ -1,21 +1,21 @@
-OriginCaller in evm_domain_runtime - Rust Enum evm_domain_runtime::OriginCaller
source · pub enum OriginCaller {
+OriginCaller in evm_domain_runtime - Rust Enum evm_domain_runtime::OriginCaller
source · pub enum OriginCaller {
system(Origin<Runtime>),
Ethereum(Origin),
Void(Void),
-}
Variants§
Trait Implementations§
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.source§impl Clone for OriginCaller
source§fn clone(&self) -> OriginCaller
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for OriginCaller
source§impl Decode for OriginCaller
source§fn decode<__CodecInputEdqy: Input>(
+}Variants§
Trait Implementations§
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.source§impl Clone for OriginCaller
source§fn clone(&self) -> OriginCaller
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for OriginCaller
source§impl Decode for OriginCaller
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for OriginCaller
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
+ I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for OriginCaller
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<OriginCaller> for RuntimeOrigin
source§fn from(x: OriginCaller) -> Self
Converts to this type from the input type.source§impl From<RawOrigin<<Runtime as Config>::AccountId>> for OriginCaller
source§impl From<RawOrigin> for OriginCaller
source§impl MaxEncodedLen for OriginCaller
source§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl PartialEq<OriginCaller> for OriginCaller
source§fn eq(&self, other: &OriginCaller) -> bool
source§impl From<OriginCaller> for RuntimeOrigin
source§fn from(x: OriginCaller) -> Self
Converts to this type from the input type.source§impl From<RawOrigin<<Runtime as Config>::AccountId>> for OriginCaller
source§impl From<RawOrigin> for OriginCaller
source§impl MaxEncodedLen for OriginCaller
source§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl PartialEq<OriginCaller> for OriginCaller
source§fn eq(&self, other: &OriginCaller) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl<'a> TryFrom<&'a OriginCaller> for &'a Origin
source§impl TryFrom<OriginCaller> for Origin
§type Error = OriginCaller
The type returned in the event of a conversion error.source§fn try_from(x: OriginCaller) -> Result<Origin, OriginCaller>
Performs the conversion.source§impl TryFrom<OriginCaller> for Origin<Runtime>
§type Error = OriginCaller
The type returned in the event of a conversion error.source§fn try_from(x: OriginCaller) -> Result<Origin<Runtime>, OriginCaller>
Performs the conversion.source§impl TypeInfo for OriginCaller
source§impl EncodeLike<OriginCaller> for OriginCaller
source§impl Eq for OriginCaller
source§impl StructuralEq for OriginCaller
source§impl StructuralPartialEq for OriginCaller
Auto Trait Implementations§
§impl RefUnwindSafe for OriginCaller
§impl Send for OriginCaller
§impl Sync for OriginCaller
§impl Unpin for OriginCaller
§impl UnwindSafe for OriginCaller
Blanket Implementations§
source§impl<'a> TryFrom<&'a OriginCaller> for &'a Origin
source§impl TryFrom<OriginCaller> for Origin
§type Error = OriginCaller
The type returned in the event of a conversion error.source§fn try_from(x: OriginCaller) -> Result<Origin, OriginCaller>
Performs the conversion.source§impl TryFrom<OriginCaller> for Origin<Runtime>
§type Error = OriginCaller
The type returned in the event of a conversion error.source§fn try_from(x: OriginCaller) -> Result<Origin<Runtime>, OriginCaller>
Performs the conversion.source§impl TypeInfo for OriginCaller
source§impl EncodeLike<OriginCaller> for OriginCaller
source§impl Eq for OriginCaller
source§impl StructuralEq for OriginCaller
source§impl StructuralPartialEq for OriginCaller
Auto Trait Implementations§
§impl RefUnwindSafe for OriginCaller
§impl Send for OriginCaller
§impl Sync for OriginCaller
§impl Unpin for OriginCaller
§impl UnwindSafe for OriginCaller
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
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
@@ -45,9 +45,9 @@
T: From<Outer>,
§impl<T> KeyedVec for Twhere
- T: Codec,
§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
- Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
- Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
+ Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
+ Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
diff --git a/evm_domain_runtime/enum.RuntimeCall.html b/evm_domain_runtime/enum.RuntimeCall.html
index d0a9e7456b..7fc097caff 100644
--- a/evm_domain_runtime/enum.RuntimeCall.html
+++ b/evm_domain_runtime/enum.RuntimeCall.html
@@ -1,4 +1,4 @@
-RuntimeCall in evm_domain_runtime - Rust
Type Alias domain_block_preprocessor::stateless_runtime::ExtractSignerResult
source · pub type ExtractSignerResult<Block> = Vec<(Option<AccountId>, <Block as BlockT>::Extrinsic)>;
Aliased Type§
struct ExtractSignerResult<Block> { /* private fields */ }
Implementations§
source§impl<T> Vec<T, Global>
impl<T> Vec<T, Global>
1.0.0 (const: 1.39.0) · sourcepub const fn new() -> Vec<T, Global>
pub const fn new() -> Vec<T, Global>
Constructs a new, empty Vec<T>
.
Type Alias domain_block_preprocessor::stateless_runtime::ExtractSignerResult
source · pub type ExtractSignerResult<Block> = Vec<(Option<AccountId>, <Block as BlockT>::Extrinsic)>;
Aliased Type§
struct ExtractSignerResult<Block> { /* private fields */ }
Implementations§
source§impl<T> Vec<T, Global>
impl<T> Vec<T, Global>
1.0.0 (const: 1.39.0) · sourcepub const fn new() -> Vec<T, Global>
pub const fn new() -> Vec<T, Global>
Constructs a new, empty Vec<T>
.
The vector will not allocate until elements are pushed onto it.
Examples
let mut vec: Vec<i32> = Vec::new();
Type Alias domain_block_preprocessor::stateless_runtime::ExtractedStateRoots
source · pub type ExtractedStateRoots<Block> = ExtractedStateRootsFromProof<NumberFor<Block>, <Block as BlockT>::Hash, <Block as BlockT>::Hash>;
Aliased Type§
struct ExtractedStateRoots<Block> {
+ExtractedStateRoots in domain_block_preprocessor::stateless_runtime - Rust Type Alias domain_block_preprocessor::stateless_runtime::ExtractedStateRoots
source · pub type ExtractedStateRoots<Block> = ExtractedStateRootsFromProof<NumberFor<Block>, <Block as BlockT>::Hash, <Block as BlockT>::Hash>;
Aliased Type§
struct ExtractedStateRoots<Block> {
pub consensus_chain_block_info: BlockInfo<<<Block as Block>::Header as Header>::Number, <Block as Block>::Hash>,
pub consensus_chain_state_root: <Block as Block>::Hash,
pub domain_info: Option<(DomainId, BlockInfo<<<Block as Block>::Header as Header>::Number, <Block as Block>::Hash>, <Block as Block>::Hash)>,
diff --git a/domain_block_preprocessor/struct.DomainBlockPreprocessor.html b/domain_block_preprocessor/struct.DomainBlockPreprocessor.html
index f421dc5298..c763f8d8ea 100644
--- a/domain_block_preprocessor/struct.DomainBlockPreprocessor.html
+++ b/domain_block_preprocessor/struct.DomainBlockPreprocessor.html
@@ -1,4 +1,4 @@
-DomainBlockPreprocessor in domain_block_preprocessor - Rust pub struct DomainBlockPreprocessor<Block, CBlock, Client, CClient, ReceiptValidator> { /* private fields */ }
Implementations§
source§impl<Block, CBlock, Client, CClient, ReceiptValidator> DomainBlockPreprocessor<Block, CBlock, Client, CClient, ReceiptValidator>where
+DomainBlockPreprocessor in domain_block_preprocessor - Rust pub struct DomainBlockPreprocessor<Block, CBlock, Client, CClient, ReceiptValidator> { /* private fields */ }
Implementations§
source§impl<Block, CBlock, Client, CClient, ReceiptValidator> DomainBlockPreprocessor<Block, CBlock, Client, CClient, ReceiptValidator>where
Block: BlockT,
Block::Hash: Into<H256>,
CBlock: BlockT,
diff --git a/domain_runtime_primitives/all.html b/domain_runtime_primitives/all.html
index 888ccc430a..f686c5caa8 100644
--- a/domain_runtime_primitives/all.html
+++ b/domain_runtime_primitives/all.html
@@ -1 +1 @@
-List of all items in this crate List of all items
Structs
Enums
Traits
Type Aliases
Constants
\ No newline at end of file
+List of all items in this crate
\ No newline at end of file
diff --git a/domain_runtime_primitives/constant.SLOT_DURATION.html b/domain_runtime_primitives/constant.SLOT_DURATION.html
index 47c305e696..b83c28a807 100644
--- a/domain_runtime_primitives/constant.SLOT_DURATION.html
+++ b/domain_runtime_primitives/constant.SLOT_DURATION.html
@@ -1,2 +1,2 @@
-SLOT_DURATION in domain_runtime_primitives - Rust Constant domain_runtime_primitives::SLOT_DURATION
source · pub const SLOT_DURATION: u64 = 1000;
Expand description
Slot duration that is same as consensus chain runtime.
+SLOT_DURATION in domain_runtime_primitives - Rust Constant domain_runtime_primitives::SLOT_DURATION
source · pub const SLOT_DURATION: u64 = 1000;
Expand description
Slot duration that is same as consensus chain runtime.
\ No newline at end of file
diff --git a/domain_runtime_primitives/enum.CheckTxValidityError.html b/domain_runtime_primitives/enum.CheckTxValidityError.html
deleted file mode 100644
index 860e8ddffa..0000000000
--- a/domain_runtime_primitives/enum.CheckTxValidityError.html
+++ /dev/null
@@ -1,80 +0,0 @@
-CheckTxValidityError in domain_runtime_primitives - Rust pub enum CheckTxValidityError {
- Lookup,
- UnableToExtractSigner {
- error: TransactionValidityError,
- },
- InvalidTransaction {
- error: TransactionValidityError,
- storage_keys: Vec<Vec<u8>>,
- },
-}
Variants§
§Lookup
Can not find the sender from address.
-§UnableToExtractSigner
Fields
§error: TransactionValidityError
Unable to extract signer from tx
-§InvalidTransaction
Fields
§error: TransactionValidityError
Concrete transaction validity error type.
-Transaction is invalid.
-Trait Implementations§
source§impl Debug for CheckTxValidityError
source§impl Decode for CheckTxValidityError
source§fn decode<__CodecInputEdqy: Input>(
- __codec_input_edqy: &mut __CodecInputEdqy
-) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
- input: &mut I,
- dst: &mut MaybeUninit<Self>
-) -> Result<DecodeFinished, Error>where
- I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for CheckTxValidityError
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
- &self,
- __codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<LookupError> for CheckTxValidityError
source§impl PartialEq<CheckTxValidityError> for CheckTxValidityError
source§fn eq(&self, other: &CheckTxValidityError) -> bool
This method tests for self
and other
values to be equal, and is used
-by ==
.source§impl TypeInfo for CheckTxValidityError
source§impl EncodeLike<CheckTxValidityError> for CheckTxValidityError
source§impl Eq for CheckTxValidityError
source§impl StructuralEq for CheckTxValidityError
source§impl StructuralPartialEq for CheckTxValidityError
Auto Trait Implementations§
§impl RefUnwindSafe for CheckTxValidityError
§impl Send for CheckTxValidityError
§impl Sync for CheckTxValidityError
§impl Unpin for CheckTxValidityError
§impl UnwindSafe for CheckTxValidityError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- 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>,
§fn checked_into<T>(self) -> Option<T>where
- Self: TryInto<T>,
§impl<T> DecodeAll for Twhere
- T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
- T: Decode,
source§impl<Q, K> Equivalent<K> for Qwhere
- 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 Qwhere
- 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<T> Hashable for Twhere
- T: Codec,
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
- Outer: AsRef<T> + AsMut<T> + From<T>,
- T: From<Outer>,
§impl<T> KeyedVec for Twhere
- T: Codec,
§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
- Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
- Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
- T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
The counterpart to unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for Swhere
- T: Bounded,
- S: TryInto<T>,
§fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
§impl<S> Codec for Swhere
- S: Decode + Encode,
§impl<T> EncodeLike<&&T> for Twhere
- T: Encode,
§impl<T> EncodeLike<&T> for Twhere
- T: Encode,
§impl<T> EncodeLike<&mut T> for Twhere
- T: Encode,
§impl<T> EncodeLike<Arc<T, Global>> for Twhere
- T: Encode,
§impl<T> EncodeLike<Box<T, Global>> for Twhere
- T: Encode,
§impl<T> EncodeLike<Rc<T, Global>> for Twhere
- T: Encode,
§impl<S> FullCodec for Swhere
- S: Decode + FullEncode,
§impl<S> FullEncode for Swhere
- S: Encode + EncodeLike<S>,
§impl<T> JsonSchemaMaybe for T
§impl<T> MaybeDebug for Twhere
- T: Debug,
§impl<T> MaybeRefUnwindSafe for Twhere
- T: RefUnwindSafe,
§impl<T> StaticTypeInfo for Twhere
- T: TypeInfo + 'static,
\ No newline at end of file
diff --git a/domain_runtime_primitives/enum.MultiAccountId.html b/domain_runtime_primitives/enum.MultiAccountId.html
index 3f25a72278..b092ad1e6c 100644
--- a/domain_runtime_primitives/enum.MultiAccountId.html
+++ b/domain_runtime_primitives/enum.MultiAccountId.html
@@ -1,4 +1,4 @@
-MultiAccountId in domain_runtime_primitives - Rust pub enum MultiAccountId {
+MultiAccountId in domain_runtime_primitives - Rust pub enum MultiAccountId {
AccountId32([u8; 32]),
AccountId20([u8; 20]),
Raw(Vec<u8>),
@@ -6,20 +6,20 @@
Variants§
§AccountId32([u8; 32])
32 byte account Id.
§AccountId20([u8; 20])
20 byte account Id. Ex: Ethereum
§Raw(Vec<u8>)
Some raw bytes
-Trait Implementations§
source§impl Clone for MultiAccountId
source§fn clone(&self) -> MultiAccountId
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl Debug for MultiAccountId
Trait Implementations§
source§impl Clone for MultiAccountId
source§fn clone(&self) -> MultiAccountId
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl Debug for MultiAccountId
source§impl Decode for MultiAccountId
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for MultiAccountId
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
+ I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for MultiAccountId
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl PartialEq<MultiAccountId> for MultiAccountId
source§fn eq(&self, other: &MultiAccountId) -> bool
source§impl PartialEq<MultiAccountId> for MultiAccountId
source§fn eq(&self, other: &MultiAccountId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.source§impl TypeInfo for MultiAccountId
source§impl EncodeLike<MultiAccountId> for MultiAccountId
source§impl Eq for MultiAccountId
source§impl StructuralEq for MultiAccountId
source§impl StructuralPartialEq for MultiAccountId
Auto Trait Implementations§
§impl RefUnwindSafe for MultiAccountId
§impl Send for MultiAccountId
§impl Sync for MultiAccountId
§impl Unpin for MultiAccountId
§impl UnwindSafe for MultiAccountId
Blanket Implementations§
source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.source§impl TypeInfo for MultiAccountId
source§impl EncodeLike<MultiAccountId> for MultiAccountId
source§impl Eq for MultiAccountId
source§impl StructuralEq for MultiAccountId
source§impl StructuralPartialEq for MultiAccountId
Auto Trait Implementations§
§impl RefUnwindSafe for MultiAccountId
§impl Send for MultiAccountId
§impl Sync for MultiAccountId
§impl Unpin for MultiAccountId
§impl UnwindSafe for MultiAccountId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
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
diff --git a/domain_runtime_primitives/enum.VerifyTxValidityError.html b/domain_runtime_primitives/enum.VerifyTxValidityError.html
deleted file mode 100644
index d88bc3186d..0000000000
--- a/domain_runtime_primitives/enum.VerifyTxValidityError.html
+++ /dev/null
@@ -1,69 +0,0 @@
-VerifyTxValidityError in domain_runtime_primitives - Rust pub enum VerifyTxValidityError {
- FailedToDecodeAccountId,
-}
Variants§
§FailedToDecodeAccountId
Failed to decode the opaque account id into the runtime account type.
-Trait Implementations§
source§impl Debug for VerifyTxValidityError
source§impl Decode for VerifyTxValidityError
source§fn decode<__CodecInputEdqy: Input>(
- __codec_input_edqy: &mut __CodecInputEdqy
-) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
- input: &mut I,
- dst: &mut MaybeUninit<Self>
-) -> Result<DecodeFinished, Error>where
- I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for VerifyTxValidityError
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
- &self,
- __codec_dest_edqy: &mut __CodecOutputEdqy
-)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl PartialEq<VerifyTxValidityError> for VerifyTxValidityError
source§fn eq(&self, other: &VerifyTxValidityError) -> bool
This method tests for self
and other
values to be equal, and is used
-by ==
.source§impl TypeInfo for VerifyTxValidityError
source§impl EncodeLike<VerifyTxValidityError> for VerifyTxValidityError
source§impl Eq for VerifyTxValidityError
source§impl StructuralEq for VerifyTxValidityError
source§impl StructuralPartialEq for VerifyTxValidityError
Auto Trait Implementations§
§impl RefUnwindSafe for VerifyTxValidityError
§impl Send for VerifyTxValidityError
§impl Sync for VerifyTxValidityError
§impl Unpin for VerifyTxValidityError
§impl UnwindSafe for VerifyTxValidityError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
- 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>,
§fn checked_into<T>(self) -> Option<T>where
- Self: TryInto<T>,
§impl<T> DecodeAll for Twhere
- T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
- T: Decode,
source§impl<Q, K> Equivalent<K> for Qwhere
- 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 Qwhere
- 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<T> Hashable for Twhere
- T: Codec,
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
§impl<T> IsType<T> for T
§impl<T, Outer> IsWrappedBy<Outer> for Twhere
- Outer: AsRef<T> + AsMut<T> + From<T>,
- T: From<Outer>,
§impl<T> KeyedVec for Twhere
- T: Codec,
§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
- Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
- Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
- T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
The counterpart to unchecked_from
.§impl<T, S> UniqueSaturatedInto<T> for Swhere
- T: Bounded,
- S: TryInto<T>,
§fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of T
.source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
§impl<S> Codec for Swhere
- S: Decode + Encode,
§impl<T> EncodeLike<&&T> for Twhere
- T: Encode,
§impl<T> EncodeLike<&T> for Twhere
- T: Encode,
§impl<T> EncodeLike<&mut T> for Twhere
- T: Encode,
§impl<T> EncodeLike<Arc<T, Global>> for Twhere
- T: Encode,
§impl<T> EncodeLike<Box<T, Global>> for Twhere
- T: Encode,
§impl<T> EncodeLike<Rc<T, Global>> for Twhere
- T: Encode,
§impl<S> FullCodec for Swhere
- S: Decode + FullEncode,
§impl<S> FullEncode for Swhere
- S: Encode + EncodeLike<S>,
§impl<T> JsonSchemaMaybe for T
§impl<T> MaybeDebug for Twhere
- T: Debug,
§impl<T> MaybeRefUnwindSafe for Twhere
- T: RefUnwindSafe,
§impl<T> StaticTypeInfo for Twhere
- T: TypeInfo + 'static,
\ No newline at end of file
diff --git a/domain_runtime_primitives/index.html b/domain_runtime_primitives/index.html
index fa31569d91..20300844cb 100644
--- a/domain_runtime_primitives/index.html
+++ b/domain_runtime_primitives/index.html
@@ -1,7 +1,7 @@
domain_runtime_primitives - Rust Crate domain_runtime_primitives
source · Expand description
Crate domain_runtime_primitives
source · Expand description
Common primitives for subspace domain runtime.
Modules
Structs
Enums
Constants
Traits
Type Aliases
Structs
Enums
Constants
Traits
Type Aliases
\ No newline at end of file
diff --git a/domain_runtime_primitives/opaque/index.html b/domain_runtime_primitives/opaque/index.html
index beeea2f657..b63e0e77be 100644
--- a/domain_runtime_primitives/opaque/index.html
+++ b/domain_runtime_primitives/opaque/index.html
@@ -1,4 +1,4 @@
-domain_runtime_primitives::opaque - Rust Module domain_runtime_primitives::opaque
source · Expand description
Opaque types. These are used by the CLI to instantiate machinery that don’t need to know
+
domain_runtime_primitives::opaque - Rust Module domain_runtime_primitives::opaque
source · Expand description
Opaque types. These are used by the CLI to instantiate machinery that don’t need to know
the specifics of the runtime. They can then be made to be agnostic over specific formats
of data like extrinsics, allowing for them to continue syncing the network through upgrades
to even the core data structures.
diff --git a/domain_runtime_primitives/opaque/type.AccountId.html b/domain_runtime_primitives/opaque/type.AccountId.html
index c1b2bd8e6c..1df4b33b7a 100644
--- a/domain_runtime_primitives/opaque/type.AccountId.html
+++ b/domain_runtime_primitives/opaque/type.AccountId.html
@@ -1,4 +1,4 @@
-AccountId in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::AccountId
source · pub type AccountId = Vec<u8>;
Expand description
Opaque account identifier type.
+AccountId in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::AccountId
source · pub type AccountId = Vec<u8>;
Expand description
Opaque account identifier type.
Aliased Type§
struct AccountId { /* private fields */ }
Implementations§
source§impl<T> Vec<T, Global>
1.0.0 (const: 1.39.0) · sourcepub const fn new() -> Vec<T, Global>
Constructs a new, empty Vec<T>
.
The vector will not allocate until elements are pushed onto it.
Examples
diff --git a/domain_runtime_primitives/opaque/type.Block.html b/domain_runtime_primitives/opaque/type.Block.html
index 0a8901aae9..2fcd972d78 100644
--- a/domain_runtime_primitives/opaque/type.Block.html
+++ b/domain_runtime_primitives/opaque/type.Block.html
@@ -1,4 +1,4 @@
-Block in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::Block
source · pub type Block = Block<Header, UncheckedExtrinsic>;
Expand description
Opaque block type.
+Block in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::Block
source · pub type Block = Block<Header, UncheckedExtrinsic>;
Expand description
Opaque block type.
Aliased Type§
struct Block {
pub header: Header<u32, BlakeTwo256>,
pub extrinsics: Vec<OpaqueExtrinsic, Global>,
diff --git a/domain_runtime_primitives/opaque/type.BlockId.html b/domain_runtime_primitives/opaque/type.BlockId.html
index 16eeab94ef..bdadf81442 100644
--- a/domain_runtime_primitives/opaque/type.BlockId.html
+++ b/domain_runtime_primitives/opaque/type.BlockId.html
@@ -1,4 +1,4 @@
-BlockId in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::BlockId
source · pub type BlockId = BlockId<Block>;
Expand description
Opaque block identifier type.
+BlockId in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::BlockId
source · pub type BlockId = BlockId<Block>;
Expand description
Opaque block identifier type.
Aliased Type§
enum BlockId {
Hash(H256),
Number(u32),
diff --git a/domain_runtime_primitives/opaque/type.Header.html b/domain_runtime_primitives/opaque/type.Header.html
index abd1b07004..9175a35e60 100644
--- a/domain_runtime_primitives/opaque/type.Header.html
+++ b/domain_runtime_primitives/opaque/type.Header.html
@@ -1,4 +1,4 @@
-Header in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::Header
source · pub type Header = Header<BlockNumber, BlakeTwo256>;
Expand description
Opaque block header type.
+Header in domain_runtime_primitives::opaque - Rust Type Alias domain_runtime_primitives::opaque::Header
source · pub type Header = Header<BlockNumber, BlakeTwo256>;
Expand description
Opaque block header type.
Aliased Type§
struct Header {
pub parent_hash: H256,
pub number: u32,
diff --git a/domain_runtime_primitives/sidebar-items.js b/domain_runtime_primitives/sidebar-items.js
index 2d4a5fae2c..974f421143 100644
--- a/domain_runtime_primitives/sidebar-items.js
+++ b/domain_runtime_primitives/sidebar-items.js
@@ -1 +1 @@
-window.SIDEBAR_ITEMS = {"constant":["SLOT_DURATION"],"enum":["CheckTxValidityError","MultiAccountId","VerifyTxValidityError"],"mod":["opaque"],"struct":["AccountIdConverter"],"trait":["DomainCoreApi","Signer","TryConvertBack"],"type":["AccountId","Address","Balance","BlockNumber","EVMChainId","Hash","Nonce","Signature"]};
\ No newline at end of file
+window.SIDEBAR_ITEMS = {"constant":["SLOT_DURATION"],"enum":["MultiAccountId"],"mod":["opaque"],"struct":["AccountIdConverter"],"trait":["DomainCoreApi","Signer","TryConvertBack"],"type":["AccountId","Address","Balance","BlockNumber","EVMChainId","Hash","Nonce","Signature"]};
\ No newline at end of file
diff --git a/domain_runtime_primitives/struct.AccountIdConverter.html b/domain_runtime_primitives/struct.AccountIdConverter.html
index c8312da2ff..1faae39100 100644
--- a/domain_runtime_primitives/struct.AccountIdConverter.html
+++ b/domain_runtime_primitives/struct.AccountIdConverter.html
@@ -1,5 +1,5 @@
-AccountIdConverter in domain_runtime_primitives - Rust pub struct AccountIdConverter;
Expand description
An AccountId32 to MultiAccount converter.
-Trait Implementations§
source§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.Auto Trait Implementations§
§impl RefUnwindSafe for AccountIdConverter
§impl Send for AccountIdConverter
§impl Sync for AccountIdConverter
§impl Unpin for AccountIdConverter
§impl UnwindSafe for AccountIdConverter
Blanket Implementations§
source§impl<T> Any for Twhere
+AccountIdConverter in domain_runtime_primitives - Rust pub struct AccountIdConverter;
Expand description
An AccountId32 to MultiAccount converter.
+Trait Implementations§
source§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.Auto Trait Implementations§
§impl RefUnwindSafe for AccountIdConverter
§impl Send for AccountIdConverter
§impl Sync for AccountIdConverter
§impl Unpin for AccountIdConverter
§impl UnwindSafe for AccountIdConverter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
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
diff --git a/domain_runtime_primitives/trait.DomainCoreApi.html b/domain_runtime_primitives/trait.DomainCoreApi.html
index ea3f8e46a2..fd32e3c386 100644
--- a/domain_runtime_primitives/trait.DomainCoreApi.html
+++ b/domain_runtime_primitives/trait.DomainCoreApi.html
@@ -1,5 +1,5 @@
-DomainCoreApi in domain_runtime_primitives - Rust pub trait DomainCoreApi<Block: BlockT>: Core<Block> {
-Show 15 methods
// Provided methods
+DomainCoreApi in domain_runtime_primitives - Rust pub trait DomainCoreApi<Block: BlockT>: Core<Block> {
+Show 14 methods
// Provided methods
fn extract_signer(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
@@ -41,20 +41,13 @@
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsic: &<Block as BlockT>::Extrinsic
) -> Result<bool, ApiError> { ... }
- fn check_transaction_validity(
+ fn check_transaction_and_do_pre_dispatch(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
uxt: &<Block as BlockT>::Extrinsic,
block_number: NumberFor<Block>,
block_hash: <Block as BlockT>::Hash
- ) -> Result<Result<(), CheckTxValidityError>, ApiError> { ... }
- fn storage_keys_for_verifying_transaction_validity(
- &self,
- __runtime_api_at_param__: <Block as BlockT>::Hash,
- account_id: AccountId,
- block_number: NumberFor<Block>,
- tx_era: Option<Era>
- ) -> Result<Result<Vec<Vec<u8>>, VerifyTxValidityError>, ApiError> { ... }
+ ) -> Result<Result<(), TransactionValidityError>, ApiError> { ... }
fn extrinsic_era(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
@@ -78,80 +71,73 @@
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Weight, ApiError> { ... }
}
Expand description
Base API that every domain runtime must implement.
-Provided Methods§
sourcefn extract_signer(
+
Provided Methods§
sourcefn extract_signer(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsics: Vec<<Block as BlockT>::Extrinsic>
) -> Result<Vec<(Option<AccountId>, <Block as BlockT>::Extrinsic)>, ApiError>
Extracts the optional signer per extrinsic.
-sourcefn is_within_tx_range(
+
sourcefn is_within_tx_range(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsic: &<Block as BlockT>::Extrinsic,
bundle_vrf_hash: &U256,
tx_range: &U256
-) -> Result<bool, ApiError>
sourcefn intermediate_roots(
+) -> Result<bool, ApiError>
sourcefn initialize_block_with_post_state_root(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
header: &<Block as BlockT>::Header
) -> Result<Vec<u8>, ApiError>
Returns the storage root after initializing the block.
-
sourcefn apply_extrinsic_with_post_state_root(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsic: <Block as BlockT>::Extrinsic
) -> Result<Vec<u8>, ApiError>
Returns the storage root after applying the extrinsic.
-sourcefn construct_timestamp_extrinsic(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
moment: Moment
) -> Result<Block::Extrinsic, ApiError>
Returns an encoded extrinsic to set timestamp.
-
sourcefn is_inherent_extrinsic(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsic: &<Block as BlockT>::Extrinsic
) -> Result<bool, ApiError>
Returns true if the extrinsic is an inherent extrinsic.
-sourcefn check_transaction_and_do_pre_dispatch(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
uxt: &<Block as BlockT>::Extrinsic,
block_number: NumberFor<Block>,
block_hash: <Block as BlockT>::Hash
-) -> Result<Result<(), CheckTxValidityError>, ApiError>
Checks the validity of extrinsic in a bundle.
-sourcefn storage_keys_for_verifying_transaction_validity(
- &self,
- __runtime_api_at_param__: <Block as BlockT>::Hash,
- account_id: AccountId,
- block_number: NumberFor<Block>,
- tx_era: Option<Era>
-) -> Result<Result<Vec<Vec<u8>>, VerifyTxValidityError>, ApiError>
Returns the storage keys of states accessed in the API check_transaction_validity
.
-sourcefn extrinsic_era(
+) -> Result<Result<(), TransactionValidityError>, ApiError>
Checks the validity of extrinsic + do pre_dispatch as well.
+sourcefn extrinsic_era(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
extrinsic: &<Block as BlockT>::Extrinsic
) -> Result<Option<Era>, ApiError>
Returns extrinsic Era if present
-sourcefn extrinsic_weight(
+
sourcefn extrinsic_weight(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
ext: &Block::Extrinsic
) -> Result<Weight, ApiError>
Return the extrinsic weight
-sourcefn block_rewards(
+
sourcefn block_rewards(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Balance, ApiError>
The accumulated transaction fee of all transactions included in the block
-sourcefn block_digest(
+
sourcefn block_digest(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Digest, ApiError>
Return the block digest
-sourcefn block_weight(
+
sourcefn block_weight(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash
) -> Result<Weight, ApiError>
Return the consumed weight of the block
-
Trait Implementations§
Implementors§
\ No newline at end of file
+
Trait Implementations§
Implementors§
\ No newline at end of file
diff --git a/domain_runtime_primitives/trait.Signer.html b/domain_runtime_primitives/trait.Signer.html
index 1660929f26..f9303bc64b 100644
--- a/domain_runtime_primitives/trait.Signer.html
+++ b/domain_runtime_primitives/trait.Signer.html
@@ -1,10 +1,10 @@
-Signer in domain_runtime_primitives - Rust Trait domain_runtime_primitives::Signer
source · pub trait Signer<AccountId, Lookup> {
+Signer in domain_runtime_primitives - Rust Trait domain_runtime_primitives::Signer
source · pub trait Signer<AccountId, Lookup> {
// Required method
fn signer(&self, lookup: &Lookup) -> Option<AccountId>;
}
Expand description
Extracts the signer from an unchecked extrinsic.
Used by executor to extract the optional signer when shuffling the extrinsics.
-Required Methods§
Implementations on Foreign Types§
Required Methods§
Implementations on Foreign Types§
source§impl<Address, AccountId, Call, Signature, Extra, Lookup> Signer<AccountId, Lookup> for UncheckedExtrinsic<Address, Call, Signature, Extra>where
Address: Clone,
Extra: SignedExtension<AccountId = AccountId>,
- Lookup: Lookup<Source = Address, Target = AccountId>,
Implementors§
\ No newline at end of file
+ Lookup: Lookup<Source = Address, Target = AccountId>,Implementors§
\ No newline at end of file
diff --git a/domain_runtime_primitives/trait.TryConvertBack.html b/domain_runtime_primitives/trait.TryConvertBack.html
index 493718157f..d0613a73c0 100644
--- a/domain_runtime_primitives/trait.TryConvertBack.html
+++ b/domain_runtime_primitives/trait.TryConvertBack.html
@@ -1,6 +1,6 @@
-TryConvertBack in domain_runtime_primitives - Rust pub trait TryConvertBack<A, B>: Convert<A, B> {
+TryConvertBack in domain_runtime_primitives - Rust pub trait TryConvertBack<A, B>: Convert<A, B> {
// Required method
fn try_convert_back(b: B) -> Option<A>;
}
Expand description
Extensible conversion trait. Generic over both source and destination types.
-Required Methods§
sourcefn try_convert_back(b: B) -> Option<A>
Make conversion back.
-Implementors§
source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
\ No newline at end of file
+
Required Methods§
sourcefn try_convert_back(b: B) -> Option<A>
Make conversion back.
+Implementors§
source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.AccountId.html b/domain_runtime_primitives/type.AccountId.html
index 7f02a5d5e1..221113f76f 100644
--- a/domain_runtime_primitives/type.AccountId.html
+++ b/domain_runtime_primitives/type.AccountId.html
@@ -1,3 +1,3 @@
-AccountId in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::AccountId
source · pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;
Expand description
Some way of identifying an account on the chain. We intentionally make it equivalent
+
AccountId in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::AccountId
source · pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;
Expand description
Some way of identifying an account on the chain. We intentionally make it equivalent
to the public key of our transaction signing scheme.
-Trait Implementations§
source§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.
\ No newline at end of file
+Trait Implementations§
source§impl Convert<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn convert(account_id: AccountId) -> MultiAccountId
Make conversion.source§impl TryConvertBack<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, MultiAccountId> for AccountIdConverter
source§fn try_convert_back(multi_account_id: MultiAccountId) -> Option<AccountId>
Make conversion back.
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.Address.html b/domain_runtime_primitives/type.Address.html
index 484b3d8e15..a1e1c38dfb 100644
--- a/domain_runtime_primitives/type.Address.html
+++ b/domain_runtime_primitives/type.Address.html
@@ -1,4 +1,4 @@
-Address in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Address
source · pub type Address = MultiAddress<AccountId, ()>;
Expand description
The address format for describing accounts.
+Address in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Address
source · pub type Address = MultiAddress<AccountId, ()>;
Expand description
The address format for describing accounts.
Aliased Type§
enum Address {
Id(AccountId32),
Index(()),
diff --git a/domain_runtime_primitives/type.Balance.html b/domain_runtime_primitives/type.Balance.html
index e1a60a9ef5..f4ac7427f5 100644
--- a/domain_runtime_primitives/type.Balance.html
+++ b/domain_runtime_primitives/type.Balance.html
@@ -1,2 +1,2 @@
-Balance in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Balance
source · pub type Balance = u128;
Expand description
Balance of an account.
+Balance in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Balance
source · pub type Balance = u128;
Expand description
Balance of an account.
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.BlockNumber.html b/domain_runtime_primitives/type.BlockNumber.html
index 6cd11b7a2f..5568be7ab2 100644
--- a/domain_runtime_primitives/type.BlockNumber.html
+++ b/domain_runtime_primitives/type.BlockNumber.html
@@ -1,2 +1,2 @@
-BlockNumber in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::BlockNumber
source · pub type BlockNumber = u32;
Expand description
An index to a block.
+BlockNumber in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::BlockNumber
source · pub type BlockNumber = u32;
Expand description
An index to a block.
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.EVMChainId.html b/domain_runtime_primitives/type.EVMChainId.html
index e1b995544d..8e0c2dbcd6 100644
--- a/domain_runtime_primitives/type.EVMChainId.html
+++ b/domain_runtime_primitives/type.EVMChainId.html
@@ -1,2 +1,2 @@
-EVMChainId in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::EVMChainId
source · pub type EVMChainId = u64;
Expand description
The EVM chain Id type
+EVMChainId in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::EVMChainId
source · pub type EVMChainId = u64;
Expand description
The EVM chain Id type
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.Hash.html b/domain_runtime_primitives/type.Hash.html
index 330c3b749a..4f06112fc7 100644
--- a/domain_runtime_primitives/type.Hash.html
+++ b/domain_runtime_primitives/type.Hash.html
@@ -1,2 +1,2 @@
-Hash in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Hash
source · pub type Hash = H256;
Expand description
A hash of some data used by the chain.
+Hash in domain_runtime_primitives - Rust
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.Nonce.html b/domain_runtime_primitives/type.Nonce.html
index 0f288f9f59..0d7cb0ffaa 100644
--- a/domain_runtime_primitives/type.Nonce.html
+++ b/domain_runtime_primitives/type.Nonce.html
@@ -1,2 +1,2 @@
-Nonce in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Nonce
source · pub type Nonce = u32;
Expand description
Index of a transaction in the chain.
+Nonce in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Nonce
source · pub type Nonce = u32;
Expand description
Index of a transaction in the chain.
\ No newline at end of file
diff --git a/domain_runtime_primitives/type.Signature.html b/domain_runtime_primitives/type.Signature.html
index d3f6074c36..31970b5ccb 100644
--- a/domain_runtime_primitives/type.Signature.html
+++ b/domain_runtime_primitives/type.Signature.html
@@ -1,4 +1,4 @@
-Signature in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Signature
source · pub type Signature = MultiSignature;
Expand description
Alias to 512-bit hash when used in the context of a transaction signature on the chain.
+Signature in domain_runtime_primitives - Rust Type Alias domain_runtime_primitives::Signature
source · pub type Signature = MultiSignature;
Expand description
Alias to 512-bit hash when used in the context of a transaction signature on the chain.
Aliased Type§
enum Signature {
Ed25519(Signature),
Sr25519(Signature),
diff --git a/domain_test_service/domain/index.html b/domain_test_service/domain/index.html
index c9917ffd3d..f7fb87c87d 100644
--- a/domain_test_service/domain/index.html
+++ b/domain_test_service/domain/index.html
@@ -1,2 +1,2 @@
-domain_test_service::domain - Rust Module domain_test_service::domain
source · Expand description
Utilities used for testing with the domain.
+domain_test_service::domain - Rust Module domain_test_service::domain
source · Expand description
Utilities used for testing with the domain.
Structs
Traits
Type Aliases
\ No newline at end of file
diff --git a/domain_test_service/domain/struct.DomainNode.html b/domain_test_service/domain/struct.DomainNode.html
index 7e23775fd4..9a9e9ea08d 100644
--- a/domain_test_service/domain/struct.DomainNode.html
+++ b/domain_test_service/domain/struct.DomainNode.html
@@ -1,4 +1,4 @@
-DomainNode in domain_test_service::domain - Rust Struct domain_test_service::domain::DomainNode
source · pub struct DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
+DomainNode in domain_test_service::domain - Rust Struct domain_test_service::domain::DomainNode
source · pub struct DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi, ExecutorDispatch>> + Send + Sync + 'static,
RuntimeApi::RuntimeApi: ApiExt<Block> + Metadata<Block> + BlockBuilder<Block> + OffchainWorkerApi<Block> + SessionKeys<Block> + DomainCoreApi<Block> + MessengerApi<Block, NumberFor<Block>> + TaggedTransactionQueue<Block> + AccountNonceApi<Block, AccountId, Nonce> + TransactionPaymentRuntimeApi<Block, Balance> + RelayerApi<Block, NumberFor<Block>>,
ExecutorDispatch: NativeExecutionDispatch + Send + Sync + 'static,
@@ -30,7 +30,7 @@
§rpc_handlers: RpcHandlers
RPCHandlers to make RPC queries.
§operator: DomainOperator<RuntimeApi, ExecutorDispatch>
Domain oeprator.
§tx_pool_sink: TracingUnboundedSender<ChainTxPoolMsg>
Sink to the node’s tx pool
-Implementations§
source§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
+
Implementations§
source§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
Runtime: Config<Hash = H256> + Config + Send + Sync,
Runtime::RuntimeCall: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo> + Send + Sync,
<<Runtime as Config>::OnChargeTransaction as OnChargeTransaction<Runtime>>::Balance: Send + Sync + From<u64> + FixedPointOperand,
@@ -38,31 +38,31 @@
RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi, ExecutorDispatch>> + Send + Sync + 'static,
RuntimeApi::RuntimeApi: ApiExt<Block> + Metadata<Block> + BlockBuilder<Block> + OffchainWorkerApi<Block> + SessionKeys<Block> + DomainCoreApi<Block> + TaggedTransactionQueue<Block> + AccountNonceApi<Block, AccountId, Nonce> + TransactionPaymentRuntimeApi<Block, Balance> + MessengerApi<Block, NumberFor<Block>> + RelayerApi<Block, NumberFor<Block>> + OnchainStateApi<Block, AccountId, Balance> + EthereumRuntimeRPCApi<Block>,
ExecutorDispatch: NativeExecutionDispatch + Send + Sync + 'static,
- AccountId: DeserializeOwned + Encode + Decode + Clone + Debug + Display + FromStr + Sync + Send + FromKeyring + 'static,
sourcepub fn wait_for_blocks(&self, count: usize) -> impl Future<Output = ()>
Wait for count
blocks to be imported in the node and then exit. This function will not
+ AccountId: DeserializeOwned + Encode + Decode + Clone + Debug + Display + FromStr + Sync + Send + FromKeyring + 'static,
sourcepub fn wait_for_blocks(&self, count: usize) -> impl Future<Output = ()>
Wait for count
blocks to be imported in the node and then exit. This function will not
return if no blocks are ever created, thus you should restrict the maximum amount of time of
the test execution.
-sourcepub fn account_nonce(&self) -> u32
Get the nonce of the node account
-sourcepub async fn send_system_remark(&mut self)
Sends an system.remark extrinsic to the pool.
-sourcepub async fn construct_and_send_extrinsic(
+
sourcepub fn account_nonce(&self) -> u32
Get the nonce of the node account
+sourcepub async fn send_system_remark(&mut self)
Sends an system.remark extrinsic to the pool.
+sourcepub async fn construct_and_send_extrinsic(
&mut self,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> Result<RpcTransactionOutput, RpcTransactionError>
Construct an extrinsic with the current nonce of the node account and send it to this node.
-sourcepub fn construct_extrinsic(
+
sourcepub fn construct_extrinsic(
&mut self,
nonce: u32,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> UncheckedExtrinsic<Address, <Runtime as Config>::RuntimeCall, Signature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
Construct an extrinsic.
-sourcepub fn construct_extrinsic_with_tip(
+
sourcepub fn construct_extrinsic_with_tip(
&mut self,
nonce: u32,
- tip: u32,
+ tip: <<Runtime as Config>::OnChargeTransaction as OnChargeTransaction<Runtime>>::Balance,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> UncheckedExtrinsic<Address, <Runtime as Config>::RuntimeCall, Signature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
Construct an extrinsic with the given transaction tip.
-sourcepub async fn send_extrinsic(
+
sourcepub async fn send_extrinsic(
&self,
extrinsic: impl Into<OpaqueExtrinsic>
) -> Result<RpcTransactionOutput, RpcTransactionError>
Send an extrinsic to this node.
-sourcepub fn free_balance(&self, account_id: AccountId) -> Balance
Get the free balance of the given account
+sourcepub fn free_balance(&self, account_id: AccountId) -> Balance
Get the free balance of the given account
Auto Trait Implementations§
§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> !RefUnwindSafe for DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>
§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> Send for DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
AccountId: Send,
Runtime: Send,
§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> !Sync for DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>
§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> Unpin for DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
diff --git a/domain_test_service/domain/struct.DomainNodeBuilder.html b/domain_test_service/domain/struct.DomainNodeBuilder.html
index d511bcf96f..aaa055fd7c 100644
--- a/domain_test_service/domain/struct.DomainNodeBuilder.html
+++ b/domain_test_service/domain/struct.DomainNodeBuilder.html
@@ -1,15 +1,15 @@
-DomainNodeBuilder in domain_test_service::domain - Rust Struct domain_test_service::domain::DomainNodeBuilder
source · pub struct DomainNodeBuilder { /* private fields */ }
Expand description
A builder to create a DomainNode
.
-Implementations§
source§impl DomainNodeBuilder
sourcepub fn new(tokio_handle: Handle, key: EcdsaKeyring, base_path: BasePath) -> Self
Create a new instance of Self
.
+DomainNodeBuilder in domain_test_service::domain - Rust Struct domain_test_service::domain::DomainNodeBuilder
source · pub struct DomainNodeBuilder { /* private fields */ }
Expand description
A builder to create a DomainNode
.
+Implementations§
source§impl DomainNodeBuilder
sourcepub fn new(tokio_handle: Handle, key: EcdsaKeyring, base_path: BasePath) -> Self
Create a new instance of Self
.
tokio_handle
- The tokio handler to use.
key
- The key that will be used to generate the name.
base_path
- Where databases will be stored.
-sourcepub fn exclusively_connect_to_registered_parachain_nodes(self) -> Self
Instruct the node to exclusively connect to registered parachain nodes.
+sourcepub fn exclusively_connect_to_registered_parachain_nodes(self) -> Self
Instruct the node to exclusively connect to registered parachain nodes.
Domain nodes can be registered using Self::connect_to_domain_node
.
-sourcepub fn connect_to_domain_node(self, addr: MultiaddrWithPeerId) -> Self
Make the node connect to the given domain node.
+sourcepub fn connect_to_domain_node(self, addr: MultiaddrWithPeerId) -> Self
Make the node connect to the given domain node.
By default the node will not be connected to any node or will be able to discover any other
node.
-sourcepub fn skip_empty_bundle(self) -> Self
Skip empty bundle production when there is no non-empty domain block need to confirm
-sourcepub async fn build_evm_node(
+
sourcepub fn skip_empty_bundle(self) -> Self
Skip empty bundle production when there is no non-empty domain block need to confirm
+sourcepub async fn build_evm_node(
self,
role: Role,
domain_id: DomainId,
diff --git a/domain_test_service/domain/struct.EVMDomainExecutorDispatch.html b/domain_test_service/domain/struct.EVMDomainExecutorDispatch.html
index 4e99b53d46..fa3341ce30 100644
--- a/domain_test_service/domain/struct.EVMDomainExecutorDispatch.html
+++ b/domain_test_service/domain/struct.EVMDomainExecutorDispatch.html
@@ -1,6 +1,6 @@
-EVMDomainExecutorDispatch in domain_test_service::domain - Rust pub struct EVMDomainExecutorDispatch;
Expand description
Evm domain executor instance.
-Trait Implementations§
source§impl NativeExecutionDispatch for EVMDomainExecutorDispatch
§type ExtendHostFunctions = ()
Host functions for custom runtime interfaces that should be callable from within the runtime
-besides the default Substrate runtime interfaces.source§fn native_version() -> NativeVersion
Provide native runtime version.Auto Trait Implementations§
§impl RefUnwindSafe for EVMDomainExecutorDispatch
§impl Send for EVMDomainExecutorDispatch
§impl Sync for EVMDomainExecutorDispatch
§impl Unpin for EVMDomainExecutorDispatch
§impl UnwindSafe for EVMDomainExecutorDispatch
Blanket Implementations§
source§impl<T> Any for Twhere
+EVMDomainExecutorDispatch in domain_test_service::domain - Rust pub struct EVMDomainExecutorDispatch;
Expand description
Evm domain executor instance.
+Trait Implementations§
source§impl NativeExecutionDispatch for EVMDomainExecutorDispatch
§type ExtendHostFunctions = ()
Host functions for custom runtime interfaces that should be callable from within the runtime
+besides the default Substrate runtime interfaces.source§fn native_version() -> NativeVersion
Provide native runtime version.Auto Trait Implementations§
§impl RefUnwindSafe for EVMDomainExecutorDispatch
§impl Send for EVMDomainExecutorDispatch
§impl Sync for EVMDomainExecutorDispatch
§impl Unpin for EVMDomainExecutorDispatch
§impl UnwindSafe for EVMDomainExecutorDispatch
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/domain_test_service/domain/trait.FromKeyring.html b/domain_test_service/domain/trait.FromKeyring.html
index 1c31e897c4..908324a1d7 100644
--- a/domain_test_service/domain/trait.FromKeyring.html
+++ b/domain_test_service/domain/trait.FromKeyring.html
@@ -1,6 +1,6 @@
-FromKeyring in domain_test_service::domain - Rust Trait domain_test_service::domain::FromKeyring
source · pub trait FromKeyring {
+FromKeyring in domain_test_service::domain - Rust Trait domain_test_service::domain::FromKeyring
source · pub trait FromKeyring {
// Required method
fn from_keyring(key: EcdsaKeyring) -> Self;
}
Expand description
Trait for convert keyring to account id
-Required Methods§
sourcefn from_keyring(key: EcdsaKeyring) -> Self
Convert keyring to account id
-Implementations on Foreign Types§
source§impl FromKeyring for AccountId
source§fn from_keyring(key: EcdsaKeyring) -> Self
Implementors§
\ No newline at end of file
+
Required Methods§
sourcefn from_keyring(key: EcdsaKeyring) -> Self
Convert keyring to account id
+Implementations on Foreign Types§
source§impl FromKeyring for AccountId
source§fn from_keyring(key: EcdsaKeyring) -> Self
Implementors§
\ No newline at end of file
diff --git a/domain_test_service/domain/type.Backend.html b/domain_test_service/domain/type.Backend.html
index 09942b2071..a357bd3138 100644
--- a/domain_test_service/domain/type.Backend.html
+++ b/domain_test_service/domain/type.Backend.html
@@ -1,2 +1,2 @@
-Backend in domain_test_service::domain - Rust Type Alias domain_test_service::domain::Backend
source · pub type Backend = TFullBackend<Block>;
Expand description
The backend type used by the test service.
+Backend in domain_test_service::domain - Rust
\ No newline at end of file
diff --git a/domain_test_service/domain/type.DomainOperator.html b/domain_test_service/domain/type.DomainOperator.html
index adf5bbc8f0..4475ba54e9 100644
--- a/domain_test_service/domain/type.DomainOperator.html
+++ b/domain_test_service/domain/type.DomainOperator.html
@@ -1,2 +1,2 @@
-DomainOperator in domain_test_service::domain - Rust Type Alias domain_test_service::domain::DomainOperator
source · pub type DomainOperator<RuntimeApi, ExecutorDispatch> = DomainOperator<Block, Block, Client, RuntimeApi, ExecutorDispatch>;
Expand description
Domain executor for the test service.
+DomainOperator in domain_test_service::domain - Rust Type Alias domain_test_service::domain::DomainOperator
source · pub type DomainOperator<RuntimeApi, ExecutorDispatch> = DomainOperator<Block, Block, Client, RuntimeApi, ExecutorDispatch>;
Expand description
Domain executor for the test service.
Aliased Type§
struct DomainOperator<RuntimeApi, ExecutorDispatch> { /* private fields */ }
\ No newline at end of file
diff --git a/domain_test_service/domain/type.EvmDomainClient.html b/domain_test_service/domain/type.EvmDomainClient.html
index 446b599fdc..a7c2c2d35a 100644
--- a/domain_test_service/domain/type.EvmDomainClient.html
+++ b/domain_test_service/domain/type.EvmDomainClient.html
@@ -1,2 +1,2 @@
-EvmDomainClient in domain_test_service::domain - Rust Type Alias domain_test_service::domain::EvmDomainClient
source · pub type EvmDomainClient = FullClient<Block, RuntimeApi, EVMDomainExecutorDispatch>;
Expand description
The evm domain client
+EvmDomainClient in domain_test_service::domain - Rust Type Alias domain_test_service::domain::EvmDomainClient
source · pub type EvmDomainClient = FullClient<Block, RuntimeApi, EVMDomainExecutorDispatch>;
Expand description
The evm domain client
Aliased Type§
struct EvmDomainClient { /* private fields */ }
\ No newline at end of file
diff --git a/domain_test_service/domain/type.EvmDomainNode.html b/domain_test_service/domain/type.EvmDomainNode.html
index bd7a304406..36cb098e39 100644
--- a/domain_test_service/domain/type.EvmDomainNode.html
+++ b/domain_test_service/domain/type.EvmDomainNode.html
@@ -1,4 +1,4 @@
-EvmDomainNode in domain_test_service::domain - Rust Type Alias domain_test_service::domain::EvmDomainNode
source · pub type EvmDomainNode = DomainNode<Runtime, RuntimeApi, EVMDomainExecutorDispatch, AccountId>;
Expand description
The evm domain node
+EvmDomainNode in domain_test_service::domain - Rust Type Alias domain_test_service::domain::EvmDomainNode
source · pub type EvmDomainNode = DomainNode<Runtime, RuntimeApi, EVMDomainExecutorDispatch, AccountId>;
Expand description
The evm domain node
Aliased Type§
struct EvmDomainNode {
pub domain_id: DomainId,
pub key: Keyring,
@@ -26,7 +26,7 @@
§rpc_handlers: RpcHandlers
RPCHandlers to make RPC queries.
§operator: Operator<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, NativeElseWasmExecutor<EVMDomainExecutorDispatch>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, NativeElseWasmExecutor<TestExecutorDispatch>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>, BasicPool<FullChainApiWrapper<Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, NativeElseWasmExecutor<TestExecutorDispatch>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Client<Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, LocalCallExecutor<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, NativeElseWasmExecutor<EVMDomainExecutorDispatch>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>, RuntimeApi>>, Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, Backend<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>, NativeElseWasmExecutor<EVMDomainExecutorDispatch>>
Domain oeprator.
§tx_pool_sink: TracingUnboundedSender<ChainTxPoolMsg>
Sink to the node’s tx pool
-Implementations§
source§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
+
Implementations§
source§impl<Runtime, RuntimeApi, ExecutorDispatch, AccountId> DomainNode<Runtime, RuntimeApi, ExecutorDispatch, AccountId>where
Runtime: Config<Hash = H256> + Config + Send + Sync,
Runtime::RuntimeCall: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo> + Send + Sync,
<<Runtime as Config>::OnChargeTransaction as OnChargeTransaction<Runtime>>::Balance: Send + Sync + From<u64> + FixedPointOperand,
@@ -34,29 +34,29 @@
RuntimeApi: ConstructRuntimeApi<Block, FullClient<Block, RuntimeApi, ExecutorDispatch>> + Send + Sync + 'static,
RuntimeApi::RuntimeApi: ApiExt<Block> + Metadata<Block> + BlockBuilder<Block> + OffchainWorkerApi<Block> + SessionKeys<Block> + DomainCoreApi<Block> + TaggedTransactionQueue<Block> + AccountNonceApi<Block, AccountId, Nonce> + TransactionPaymentRuntimeApi<Block, Balance> + MessengerApi<Block, NumberFor<Block>> + RelayerApi<Block, NumberFor<Block>> + OnchainStateApi<Block, AccountId, Balance> + EthereumRuntimeRPCApi<Block>,
ExecutorDispatch: NativeExecutionDispatch + Send + Sync + 'static,
- AccountId: DeserializeOwned + Encode + Decode + Clone + Debug + Display + FromStr + Sync + Send + FromKeyring + 'static,
sourcepub fn wait_for_blocks(&self, count: usize) -> impl Future<Output = ()>
Wait for count
blocks to be imported in the node and then exit. This function will not
+ AccountId: DeserializeOwned + Encode + Decode + Clone + Debug + Display + FromStr + Sync + Send + FromKeyring + 'static,
sourcepub fn wait_for_blocks(&self, count: usize) -> impl Future<Output = ()>
Wait for count
blocks to be imported in the node and then exit. This function will not
return if no blocks are ever created, thus you should restrict the maximum amount of time of
the test execution.
-sourcepub fn account_nonce(&self) -> u32
Get the nonce of the node account
-sourcepub async fn send_system_remark(&mut self)
Sends an system.remark extrinsic to the pool.
-sourcepub async fn construct_and_send_extrinsic(
+
sourcepub fn account_nonce(&self) -> u32
Get the nonce of the node account
+sourcepub async fn send_system_remark(&mut self)
Sends an system.remark extrinsic to the pool.
+sourcepub async fn construct_and_send_extrinsic(
&mut self,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> Result<RpcTransactionOutput, RpcTransactionError>
Construct an extrinsic with the current nonce of the node account and send it to this node.
-sourcepub fn construct_extrinsic(
+
sourcepub fn construct_extrinsic(
&mut self,
nonce: u32,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> UncheckedExtrinsic<Address, <Runtime as Config>::RuntimeCall, Signature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
Construct an extrinsic.
-sourcepub fn construct_extrinsic_with_tip(
+
sourcepub fn construct_extrinsic_with_tip(
&mut self,
nonce: u32,
- tip: u32,
+ tip: <<Runtime as Config>::OnChargeTransaction as OnChargeTransaction<Runtime>>::Balance,
function: impl Into<<Runtime as Config>::RuntimeCall>
) -> UncheckedExtrinsic<Address, <Runtime as Config>::RuntimeCall, Signature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>
Construct an extrinsic with the given transaction tip.
-sourcepub async fn send_extrinsic(
+
sourcepub async fn send_extrinsic(
&self,
extrinsic: impl Into<OpaqueExtrinsic>
) -> Result<RpcTransactionOutput, RpcTransactionError>
Send an extrinsic to this node.
-sourcepub fn free_balance(&self, account_id: AccountId) -> Balance
Get the free balance of the given account
+sourcepub fn free_balance(&self, account_id: AccountId) -> Balance
Get the free balance of the given account
\ No newline at end of file
diff --git a/domain_test_service/fn.construct_extrinsic_generic.html b/domain_test_service/fn.construct_extrinsic_generic.html
index 2a59f8d3c4..5b35d17f74 100644
--- a/domain_test_service/fn.construct_extrinsic_generic.html
+++ b/domain_test_service/fn.construct_extrinsic_generic.html
@@ -4,7 +4,7 @@
caller: EcdsaKeyring,
immortal: bool,
nonce: u32,
- tip: u32
+ tip: <<Runtime as Config>::OnChargeTransaction as OnChargeTransaction<Runtime>>::Balance
) -> UncheckedExtrinsic<Address, <Runtime as Config>::RuntimeCall, Signature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>, ChargeTransactionPayment<Runtime>)>where
Runtime: Config<Hash = H256> + Config + Send + Sync,
Runtime::RuntimeCall: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo> + Send + Sync,
diff --git a/evm_domain_runtime/all.html b/evm_domain_runtime/all.html
index ab970aa566..43c200c236 100644
--- a/evm_domain_runtime/all.html
+++ b/evm_domain_runtime/all.html
@@ -1 +1 @@
-List of all items in this crate List of all items
Structs
Enums
Traits
Functions
Type Aliases
Constants
\ No newline at end of file
+List of all items in this crate List of all items
Structs
Enums
Functions
Type Aliases
Constants
\ No newline at end of file
diff --git a/evm_domain_runtime/api/fn.dispatch.html b/evm_domain_runtime/api/fn.dispatch.html
index 275bd26cd5..c6d54d13fc 100644
--- a/evm_domain_runtime/api/fn.dispatch.html
+++ b/evm_domain_runtime/api/fn.dispatch.html
@@ -1 +1 @@
-dispatch in evm_domain_runtime::api - Rust
\ No newline at end of file
+dispatch in evm_domain_runtime::api - Rust
\ No newline at end of file
diff --git a/evm_domain_runtime/api/index.html b/evm_domain_runtime/api/index.html
index 4334092635..308f5d41b8 100644
--- a/evm_domain_runtime/api/index.html
+++ b/evm_domain_runtime/api/index.html
@@ -1 +1 @@
-evm_domain_runtime::api - Rust Module evm_domain_runtime::api
source · Functions
\ No newline at end of file
+evm_domain_runtime::api - Rust Module evm_domain_runtime::api
source · Functions
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.EXISTENTIAL_DEPOSIT.html b/evm_domain_runtime/constant.EXISTENTIAL_DEPOSIT.html
index d5d293284f..5e9106b9b4 100644
--- a/evm_domain_runtime/constant.EXISTENTIAL_DEPOSIT.html
+++ b/evm_domain_runtime/constant.EXISTENTIAL_DEPOSIT.html
@@ -1,2 +1,2 @@
-EXISTENTIAL_DEPOSIT in evm_domain_runtime - Rust Constant evm_domain_runtime::EXISTENTIAL_DEPOSIT
source · pub const EXISTENTIAL_DEPOSIT: Balance = _; // 500u128
Expand description
The existential deposit. Same with the one on primary chain.
+EXISTENTIAL_DEPOSIT in evm_domain_runtime - Rust Constant evm_domain_runtime::EXISTENTIAL_DEPOSIT
source · pub const EXISTENTIAL_DEPOSIT: Balance = _; // 500u128
Expand description
The existential deposit. Same with the one on primary chain.
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.GAS_PER_SECOND.html b/evm_domain_runtime/constant.GAS_PER_SECOND.html
index e0483c7c63..ee4e73a432 100644
--- a/evm_domain_runtime/constant.GAS_PER_SECOND.html
+++ b/evm_domain_runtime/constant.GAS_PER_SECOND.html
@@ -1,4 +1,4 @@
-GAS_PER_SECOND in evm_domain_runtime - Rust Constant evm_domain_runtime::GAS_PER_SECOND
source · pub const GAS_PER_SECOND: u64 = 40_000_000;
Expand description
Current approximation of the gas/s consumption considering
+
GAS_PER_SECOND in evm_domain_runtime - Rust Constant evm_domain_runtime::GAS_PER_SECOND
source · pub const GAS_PER_SECOND: u64 = 40_000_000;
Expand description
Current approximation of the gas/s consumption considering
EVM execution over compiled WASM (on 4.4Ghz CPU).
Given the 500ms Weight, from which 75% only are used for transactions,
the total EVM execution gas limit is: GAS_PER_SECOND * 0.500 * 0.75 ~= 15_000_000.
diff --git a/evm_domain_runtime/constant.MAXIMUM_BLOCK_LENGTH.html b/evm_domain_runtime/constant.MAXIMUM_BLOCK_LENGTH.html
index aedb91ead1..f756e1d305 100644
--- a/evm_domain_runtime/constant.MAXIMUM_BLOCK_LENGTH.html
+++ b/evm_domain_runtime/constant.MAXIMUM_BLOCK_LENGTH.html
@@ -1 +1 @@
-MAXIMUM_BLOCK_LENGTH in evm_domain_runtime - Rust Constant evm_domain_runtime::MAXIMUM_BLOCK_LENGTH
source · pub const MAXIMUM_BLOCK_LENGTH: u32 = _; // 5_242_880u32
\ No newline at end of file
+MAXIMUM_BLOCK_LENGTH in evm_domain_runtime - Rust Constant evm_domain_runtime::MAXIMUM_BLOCK_LENGTH
source · pub const MAXIMUM_BLOCK_LENGTH: u32 = _; // 5_242_880u32
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.MAXIMUM_BLOCK_WEIGHT.html b/evm_domain_runtime/constant.MAXIMUM_BLOCK_WEIGHT.html
index d285c178f9..289da5ed64 100644
--- a/evm_domain_runtime/constant.MAXIMUM_BLOCK_WEIGHT.html
+++ b/evm_domain_runtime/constant.MAXIMUM_BLOCK_WEIGHT.html
@@ -1 +1 @@
-MAXIMUM_BLOCK_WEIGHT in evm_domain_runtime - Rust Constant evm_domain_runtime::MAXIMUM_BLOCK_WEIGHT
source · pub const MAXIMUM_BLOCK_WEIGHT: Weight;
\ No newline at end of file
+MAXIMUM_BLOCK_WEIGHT in evm_domain_runtime - Rust Constant evm_domain_runtime::MAXIMUM_BLOCK_WEIGHT
source · pub const MAXIMUM_BLOCK_WEIGHT: Weight;
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.VERSION.html b/evm_domain_runtime/constant.VERSION.html
index b6619a50ae..d658f38640 100644
--- a/evm_domain_runtime/constant.VERSION.html
+++ b/evm_domain_runtime/constant.VERSION.html
@@ -1 +1 @@
-VERSION in evm_domain_runtime - Rust Constant evm_domain_runtime::VERSION
source · pub const VERSION: RuntimeVersion;
\ No newline at end of file
+VERSION in evm_domain_runtime - Rust Constant evm_domain_runtime::VERSION
source · pub const VERSION: RuntimeVersion;
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.WEIGHT_MILLISECS_PER_BLOCK.html b/evm_domain_runtime/constant.WEIGHT_MILLISECS_PER_BLOCK.html
index b878c5fafd..720f8c1491 100644
--- a/evm_domain_runtime/constant.WEIGHT_MILLISECS_PER_BLOCK.html
+++ b/evm_domain_runtime/constant.WEIGHT_MILLISECS_PER_BLOCK.html
@@ -1,2 +1,2 @@
-WEIGHT_MILLISECS_PER_BLOCK in evm_domain_runtime - Rust Constant evm_domain_runtime::WEIGHT_MILLISECS_PER_BLOCK
source · pub const WEIGHT_MILLISECS_PER_BLOCK: u64 = 2000;
Expand description
We allow for 2000ms of compute with a 6 second average block time.
+WEIGHT_MILLISECS_PER_BLOCK in evm_domain_runtime - Rust Constant evm_domain_runtime::WEIGHT_MILLISECS_PER_BLOCK
source · pub const WEIGHT_MILLISECS_PER_BLOCK: u64 = 2000;
Expand description
We allow for 2000ms of compute with a 6 second average block time.
\ No newline at end of file
diff --git a/evm_domain_runtime/constant.WEIGHT_PER_GAS.html b/evm_domain_runtime/constant.WEIGHT_PER_GAS.html
index b2eb5d18a3..99215cf411 100644
--- a/evm_domain_runtime/constant.WEIGHT_PER_GAS.html
+++ b/evm_domain_runtime/constant.WEIGHT_PER_GAS.html
@@ -1,3 +1,3 @@
-WEIGHT_PER_GAS in evm_domain_runtime - Rust Constant evm_domain_runtime::WEIGHT_PER_GAS
source · pub const WEIGHT_PER_GAS: u64 = _; // 25_000u64
Expand description
Approximate ratio of the amount of Weight per Gas.
+
WEIGHT_PER_GAS in evm_domain_runtime - Rust Constant evm_domain_runtime::WEIGHT_PER_GAS
source · pub const WEIGHT_PER_GAS: u64 = _; // 25_000u64
Expand description
Approximate ratio of the amount of Weight per Gas.
u64 works for approximations because Weight is a very small unit compared to gas.
\ No newline at end of file
diff --git a/evm_domain_runtime/enum.MultiAddress.html b/evm_domain_runtime/enum.MultiAddress.html
index 078c7b23a0..edabad2b3b 100644
--- a/evm_domain_runtime/enum.MultiAddress.html
+++ b/evm_domain_runtime/enum.MultiAddress.html
@@ -101,9 +101,9 @@
T: From<Outer>,§fn from_mut(outer: &mut Outer) -> &mut T
Get a mutable reference to the inner from the outer.
§impl<T> KeyedVec for Twhere
- T: Codec,
§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
- Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
- Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
+ Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
+ Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read moresource§impl<T, U> TryInto<U> for Twhere
diff --git a/evm_domain_runtime/enum.OriginCaller.html b/evm_domain_runtime/enum.OriginCaller.html
index cefa2b2e75..d4485f40bd 100644
--- a/evm_domain_runtime/enum.OriginCaller.html
+++ b/evm_domain_runtime/enum.OriginCaller.html
@@ -1,21 +1,21 @@
-OriginCaller in evm_domain_runtime - Rust Enum evm_domain_runtime::OriginCaller
source · pub enum OriginCaller {
+OriginCaller in evm_domain_runtime - Rust Enum evm_domain_runtime::OriginCaller
source · pub enum OriginCaller {
system(Origin<Runtime>),
Ethereum(Origin),
Void(Void),
-}
Variants§
Trait Implementations§
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.source§impl Clone for OriginCaller
source§fn clone(&self) -> OriginCaller
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for OriginCaller
source§impl Decode for OriginCaller
source§fn decode<__CodecInputEdqy: Input>(
+}Variants§
Trait Implementations§
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.source§impl Clone for OriginCaller
source§fn clone(&self) -> OriginCaller
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for OriginCaller
source§impl Decode for OriginCaller
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more§fn skip<I>(input: &mut I) -> Result<(), Error>where
- I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for OriginCaller
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
+ I: Input,
Attempt to skip the encoded value from input. Read more§fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read moresource§impl Encode for OriginCaller
source§fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read moresource§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.§fn using_encoded<R, F>(&self, f: F) -> Rwhere
- F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.§fn encoded_size(&self) -> usize
Calculates the encoded size. Read moresource§impl From<OriginCaller> for RuntimeOrigin
source§fn from(x: OriginCaller) -> Self
Converts to this type from the input type.source§impl From<RawOrigin<<Runtime as Config>::AccountId>> for OriginCaller
source§impl From<RawOrigin> for OriginCaller
source§impl MaxEncodedLen for OriginCaller
source§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl PartialEq<OriginCaller> for OriginCaller
source§fn eq(&self, other: &OriginCaller) -> bool
source§impl From<OriginCaller> for RuntimeOrigin
source§fn from(x: OriginCaller) -> Self
Converts to this type from the input type.source§impl From<RawOrigin<<Runtime as Config>::AccountId>> for OriginCaller
source§impl From<RawOrigin> for OriginCaller
source§impl MaxEncodedLen for OriginCaller
source§fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.source§impl PartialEq<OriginCaller> for OriginCaller
source§fn eq(&self, other: &OriginCaller) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl<'a> TryFrom<&'a OriginCaller> for &'a Origin
source§impl TryFrom<OriginCaller> for Origin
§type Error = OriginCaller
The type returned in the event of a conversion error.source§fn try_from(x: OriginCaller) -> Result<Origin, OriginCaller>
Performs the conversion.source§impl TryFrom<OriginCaller> for Origin<Runtime>
§type Error = OriginCaller
The type returned in the event of a conversion error.source§fn try_from(x: OriginCaller) -> Result<Origin<Runtime>, OriginCaller>
Performs the conversion.source§impl TypeInfo for OriginCaller
source§impl EncodeLike<OriginCaller> for OriginCaller
source§impl Eq for OriginCaller
source§impl StructuralEq for OriginCaller
source§impl StructuralPartialEq for OriginCaller
Auto Trait Implementations§
§impl RefUnwindSafe for OriginCaller
§impl Send for OriginCaller
§impl Sync for OriginCaller
§impl Unpin for OriginCaller
§impl UnwindSafe for OriginCaller
Blanket Implementations§
source§impl<'a> TryFrom<&'a OriginCaller> for &'a Origin
source§impl TryFrom<OriginCaller> for Origin
§type Error = OriginCaller
The type returned in the event of a conversion error.source§fn try_from(x: OriginCaller) -> Result<Origin, OriginCaller>
Performs the conversion.source§impl TryFrom<OriginCaller> for Origin<Runtime>
§type Error = OriginCaller
The type returned in the event of a conversion error.source§fn try_from(x: OriginCaller) -> Result<Origin<Runtime>, OriginCaller>
Performs the conversion.source§impl TypeInfo for OriginCaller
source§impl EncodeLike<OriginCaller> for OriginCaller
source§impl Eq for OriginCaller
source§impl StructuralEq for OriginCaller
source§impl StructuralPartialEq for OriginCaller
Auto Trait Implementations§
§impl RefUnwindSafe for OriginCaller
§impl Send for OriginCaller
§impl Sync for OriginCaller
§impl Unpin for OriginCaller
§impl UnwindSafe for OriginCaller
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
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
@@ -45,9 +45,9 @@
T: From<Outer>,
§impl<T> KeyedVec for Twhere
- T: Codec,
§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
- Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
- Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more§impl<T> Pointable for T
§impl<T> SaturatedConversion for T
§fn saturated_from<T>(t: T) -> Selfwhere
+ Self: UniqueSaturatedFrom<T>,
§fn saturated_into<T>(self) -> Twhere
+ Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of T
. Read more§impl<S, T> UncheckedInto<T> for Swhere
diff --git a/evm_domain_runtime/enum.RuntimeCall.html b/evm_domain_runtime/enum.RuntimeCall.html
index d0a9e7456b..7fc097caff 100644
--- a/evm_domain_runtime/enum.RuntimeCall.html
+++ b/evm_domain_runtime/enum.RuntimeCall.html
@@ -1,4 +1,4 @@
-RuntimeCall in evm_domain_runtime - Rust