diff --git a/help.html b/help.html index 437e5b1c2b..69ffcfaa10 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -
fn load_genesis(data_path: PathBuf) -> GenesisLoader
fn load_genesis(data_path: PathBuf) -> GenesisLoader
pub fn print_development_accounts(genesis_loader: &GenesisLoader)
pub fn print_development_accounts(genesis_loader: &GenesisLoader)
fn testnet_genesis(
- genesis_loader: GenesisLoader,
+ genesis_loader: GenesisLoader,
wasm_binary: &[u8],
initial_authorities: Vec<(AuthorityId, AuthorityId)>,
_enable_println: bool
diff --git a/madara/import_queue/fn.build_aura_queue_grandpa_pipeline.html b/madara/import_queue/fn.build_aura_queue_grandpa_pipeline.html
index a33719a4de..1353151347 100644
--- a/madara/import_queue/fn.build_aura_queue_grandpa_pipeline.html
+++ b/madara/import_queue/fn.build_aura_queue_grandpa_pipeline.html
@@ -4,7 +4,7 @@
task_manager: &TaskManager,
telemetry: &Option<Telemetry>,
select_chain: LongestChain<TFullBackend<Block>, Block>,
- madara_backend: Arc<Backend<Block>>
+ madara_backend: Arc<Backend<Block>>
) -> Result<(DefaultImportQueue<Block>, BlockImportPipeline), Error>
Build a block import queue & pipeline for default sealing.
If Starknet block import (Sierra class verification) is enabled for prod:
Queue (external blocks): AuraVerifier -> StarknetBlockImport -> GrandpaBlockImport -> Client
diff --git a/madara/import_queue/fn.build_manual_seal_queue_pipeline.html b/madara/import_queue/fn.build_manual_seal_queue_pipeline.html
index 32c598fc89..ca3b7c9b66 100644
--- a/madara/import_queue/fn.build_manual_seal_queue_pipeline.html
+++ b/madara/import_queue/fn.build_manual_seal_queue_pipeline.html
@@ -2,7 +2,7 @@
client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
config: &Configuration,
task_manager: &TaskManager,
- madara_backend: Arc<Backend<Block>>
+ madara_backend: Arc<Backend<Block>>
) -> (DefaultImportQueue<Block>, BlockImportPipeline) Build a block import queue & pipeline for manual/instant sealing. If Starknet block import (Sierra class verification) is enabled for testing:
Queue (external blocks): StarknetBlockImport -> Client
diff --git a/madara/rpc/fn.create_full.html b/madara/rpc/fn.create_full.html
index 05c32dbfc5..2be8d0cfca 100644
--- a/madara/rpc/fn.create_full.html
+++ b/madara/rpc/fn.create_full.html
@@ -3,8 +3,8 @@
) -> Result<RpcModule<()>, Box<dyn Error + Send + Sync>>where
A: ChainApi<Block = Block> + 'static,
C: ProvideRuntimeApi<Block> + HeaderBackend<Block> + BlockBackend<Block> + HeaderMetadata<Block, Error = Error> + StorageProvider<Block, BE> + 'static + Send + Sync,
- C::Api: AccountNonceApi<Block, AccountId, Index> + BlockBuilder<Block> + StarknetRuntimeApi<Block> + ConvertTransactionRuntimeApi<Block>,
- G: GenesisProvider + Send + Sync + 'static,
+ C::Api: AccountNonceApi<Block, AccountId, Index> + BlockBuilder<Block> + StarknetRuntimeApi<Block> + ConvertTransactionRuntimeApi<Block>,
+ G: GenesisProvider + Send + Sync + 'static,
P: TransactionPool<Block = Block> + 'static,
BE: Backend<Block> + 'static, Instantiate all full RPC extensions. Extra dependencies for Starknet compatibility. The client instance to use. Madara Backend. Starknet data access overrides. Madara Backend. Starknet data access overrides. The Substrate client sync service. The starting block for the syncing. The genesis state data provider Optionally convert the Optionally convert the Returns Assimilate the storage for this module into pre-existing overlays. Build the storage out of this builder. Default ChainId MADARA Default ChainId MADARA Configure the Starknet pallet in pallets/starknet. Configure the Starknet pallet in pallets/starknet. Timestamp manipulation.
For instance, we need it to set the timestamp of the Starknet block. Assimilate the storage for this module into pre-existing overlays. Build the storage out of this builder. Import the types. Import the types. Returns the current Starknet block from the block header’s digest Returns the Version of the StarkNet JSON-RPC Specification Being Used Gets the Transaction Status, Including Mempool Status and Execution Details Gets the Transaction Status, Including Mempool Status and Execution Details This method retrieves the status of a specified transaction. It provides information on
whether the transaction is still in the mempool, has been executed, or dropped from the
mempool. The status includes both finality status and execution status of the
@@ -413,9 +413,9 @@ Gets the Transaction Status, Including Mempool Status and Execution Details Gets the Transaction Status, Including Mempool Status and Execution Details Helper function to get Starknet block details Constructor for A Starknet RPC server for Madara Returns the Version of the StarkNet JSON-RPC Specification Being Used Gets the Transaction Status, Including Mempool Status and Execution Details Gets the Transaction Status, Including Mempool Status and Execution Details This method retrieves the status of a specified transaction. It provides information on
whether the transaction is still in the mempool, has been executed, or dropped from the
mempool. The status includes both finality status and execution status of the
@@ -530,11 +530,11 @@ Gets the Transaction Status, Including Mempool Status and Execution Details Gets the Transaction Status, Including Mempool Status and Execution DetailsExpand description
\ No newline at end of file
diff --git a/madara/rpc/starknet/struct.StarknetDeps.html b/madara/rpc/starknet/struct.StarknetDeps.html
index a55ad6cb82..410475ed3c 100644
--- a/madara/rpc/starknet/struct.StarknetDeps.html
+++ b/madara/rpc/starknet/struct.StarknetDeps.html
@@ -1,18 +1,18 @@
-Expand description
Struct madara::
source · pub struct StarknetDeps<C, G: GenesisProvider, B: BlockT> {
+
Struct madara::
source · pub struct StarknetDeps<C, G: GenesisProvider, B: BlockT> {
pub client: Arc<C>,
- pub madara_backend: Arc<Backend<B>>,
- pub overrides: Arc<OverrideHandle<B>>,
+ pub madara_backend: Arc<Backend<B>>,
+ pub overrides: Arc<OverrideHandle<B>>,
pub sync_service: Arc<SyncingService<B>>,
pub starting_block: <B::Header as HeaderT>::Number,
pub genesis_provider: Arc<G>,
}
Expand description
Fields§
§client: Arc<C>
§madara_backend: Arc<Backend<B>>
§overrides: Arc<OverrideHandle<B>>
§madara_backend: Arc<Backend<B>>
§overrides: Arc<OverrideHandle<B>>
§sync_service: Arc<SyncingService<B>>
§starting_block: <B::Header as HeaderT>::Number
§genesis_provider: Arc<G>
Trait Implementations§
impl<C, G: GenesisProvider, B: BlockT> Clone for StarknetDeps<C, G, B>
Auto Trait Implementations§
impl<C, G, B> !RefUnwindSafe for StarknetDeps<C, G, B>
impl<C, G, B> Send for StarknetDeps<C, G, B>where
+
Trait Implementations§
Auto Trait Implementations§
impl<C, G, B> !RefUnwindSafe for StarknetDeps<C, G, B>
impl<C, G, B> Send for StarknetDeps<C, G, B>where
C: Send + Sync,
G: Send + Sync,
impl<C, G, B> Sync for StarknetDeps<C, G, B>where
C: Send + Sync,
diff --git a/madara/rpc/struct.FullDeps.html b/madara/rpc/struct.FullDeps.html
index 371980a32b..d1853fe9d9 100644
--- a/madara/rpc/struct.FullDeps.html
+++ b/madara/rpc/struct.FullDeps.html
@@ -1,4 +1,4 @@
-
pub struct FullDeps<A: ChainApi, C, G: GenesisProvider, P> {
+
pub struct FullDeps<A: ChainApi, C, G: GenesisProvider, P> {
pub client: Arc<C>,
pub pool: Arc<P>,
pub graph: Arc<Pool<A>>,
diff --git a/madara/service/fn.new_chain_ops.html b/madara/service/fn.new_chain_ops.html
index 94880da386..37bd787d0e 100644
--- a/madara/service/fn.new_chain_ops.html
+++ b/madara/service/fn.new_chain_ops.html
@@ -1,3 +1,3 @@
Function madara::
source · pub fn new_chain_ops(
config: &mut Configuration
-) -> Result<(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, Arc<TFullBackend<Block>>, BasicQueue<Block>, TaskManager, Arc<Backend<Block>>), Error>
Function madara::
source · pub fn new_partial(
config: &Configuration,
manual_sealing: bool
-) -> Result<PartialComponents<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, TFullBackend<Block>, LongestChain<TFullBackend<Block>, Block>, DefaultImportQueue<Block>, FullPool<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, (Arc<Backend<Block>>, BlockImportPipeline, Option<Telemetry>)>, Error>where
+) -> Result<PartialComponents<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, TFullBackend<Block>, LongestChain<TFullBackend<Block>, Block>, DefaultImportQueue<Block>, FullPool<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, (Arc<Backend<Block>>, BlockImportPipeline, Option<Telemetry>)>, Error>where
RuntimeApi: ConstructRuntimeApi<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>> + Send + Sync + 'static,
Type Definition madara::
source · type ChainOpsResult = Result<(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, Arc<TFullBackend<Block>>, BasicQueue<Block>, TaskManager, Arc<Backend<Block>>), Error>;
Type Definition madara::
source · type ChainOpsResult = Result<(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, Arc<TFullBackend<Block>>, BasicQueue<Block>, TaskManager, Arc<Backend<Block>>), Error>;
Type Definition madara::
source · pub type MadaraBackend = Backend<Block>;
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 moreimpl GetCallMetadata for RuntimeCall
fn get_call_metadata(&self) -> CallMetadata
Return a [CallMetadata
], containing function and pallet name of the Call.fn get_module_names() -> &'static [&'static str]
Return all module names.fn get_call_names(module: &str) -> &'static [&'static str]
Return all function names for the given module
.impl GetDispatchInfo for RuntimeCall
fn get_dispatch_info(&self) -> DispatchInfo
Return a DispatchInfo
, containing relevant information of this dispatch. Read moreimpl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl PartialEq<RuntimeCall> for RuntimeCall
fn eq(&self, other: &RuntimeCall) -> bool
impl GetCallMetadata for RuntimeCall
fn get_call_metadata(&self) -> CallMetadata
Return a [CallMetadata
], containing function and pallet name of the Call.fn get_module_names() -> &'static [&'static str]
Return all module names.fn get_call_names(module: &str) -> &'static [&'static str]
Return all function names for the given module
.impl GetDispatchInfo for RuntimeCall
fn get_dispatch_info(&self) -> DispatchInfo
Return a DispatchInfo
, containing relevant information of this dispatch. Read moreimpl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
impl PartialEq<RuntimeCall> for RuntimeCall
fn eq(&self, other: &RuntimeCall) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.impl TypeInfo for RuntimeCall
impl UnfilteredDispatchable for RuntimeCall
type RuntimeOrigin = RuntimeOrigin
The origin type of the runtime, (i.e. frame_system::Config::RuntimeOrigin
).fn dispatch_bypass_filter(
self,
diff --git a/madara_runtime/enum.RuntimeError.html b/madara_runtime/enum.RuntimeError.html
index 71f071f1dc..79b79a5104 100644
--- a/madara_runtime/enum.RuntimeError.html
+++ b/madara_runtime/enum.RuntimeError.html
@@ -1,8 +1,8 @@
Enum madara_runtime::
source · pub enum RuntimeError {
System(Error<Runtime>),
Grandpa(Error<Runtime>),
- Starknet(Error<Runtime>),
-}
Variants§
Implementations§
impl RuntimeError
pub fn from_dispatch_error(err: DispatchError) -> Option<Self>
DispatchError
into the RuntimeError
.Variants§
Implementations§
impl RuntimeError
pub fn from_dispatch_error(err: DispatchError) -> Option<Self>
DispatchError
into the RuntimeError
.Some
if the error matches the DispatchError::Module
variant, otherwise None
.Trait Implementations§
impl Debug for RuntimeError
impl Decode for RuntimeError
fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
@@ -15,7 +15,7 @@
&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 moreimpl From<Error<Runtime>> for RuntimeError
impl From<Error<Runtime>> for RuntimeError
impl TryInto<Error<Runtime>> for RuntimeError
impl TryInto<Error<Runtime>> for RuntimeError
impl TypeInfo for RuntimeError
impl EncodeLike<RuntimeError> for RuntimeError
Auto Trait Implementations§
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations§
impl<T> Any for Twhere
+ 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 moreimpl From<Error<Runtime>> for RuntimeError
impl From<Error<Runtime>> for RuntimeError
impl From<Error<Runtime>> for RuntimeError
impl TryInto<Error<Runtime>> for RuntimeError
impl TryInto<Error<Runtime>> for RuntimeError
impl TryInto<Error<Runtime>> for RuntimeError
impl TypeInfo for RuntimeError
impl EncodeLike<RuntimeError> for RuntimeError
Auto Trait Implementations§
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations§
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreimpl<T> CheckedConversion for T
fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/madara_runtime/index.html b/madara_runtime/index.html
index d7c4d4b0c5..646669502a 100644
--- a/madara_runtime/index.html
+++ b/madara_runtime/index.html
@@ -2,7 +2,7 @@
public Starknet L2.
For now this is the same because we don’t support yet validity proofs and state updates to
another layer.
-
Re-exports
pub use pallet_starknet;
Modules
Macros
Construct a runtime, with the given name and the given pallets.Create new implementations of the Get
trait.Structs
Time to execute an empty block.
+Re-exports
pub use pallet_starknet;
Modules
Macros
Construct a runtime, with the given name and the given pallets.Create new implementations of the Get
trait.Structs
Time to execute an empty block.
Calculated by multiplying the Average with 1.0
and adding 0
.We allow for 2 seconds of compute with a 6 second average block time.Const getter for a basic type.Const getter for a basic type.Const getter for a basic type.Const getter for a basic type.Default ChainId MADARATime to execute a NO-OP extrinsic, for example System::remark
.
Calculated by multiplying the Average with 1.0
and adding 0
.Implementor of WeightToFee
that maps one unit of weight to one unit of fee.Provides an implementation of PalletInfo
to provide information
about the pallet setup in the runtime.A fixed point representation of a number in the range [0, 1].A fixed point representation of a number in the range [0, 1].By default, Substrate uses RocksDB, so this will be the weight used throughout
diff --git a/madara_runtime/opaque/index.html b/madara_runtime/opaque/index.html
index 35e02a3c2b..6635e400f6 100644
--- a/madara_runtime/opaque/index.html
+++ b/madara_runtime/opaque/index.html
@@ -1,4 +1,4 @@
-Module madara_runtime::
source · Re-exports
pub use pallet_starknet;
Macros
Construct a runtime, with the given name and the given pallets.Create new implementations of the Get
trait.Structs
Time to execute an empty block.
+Module madara_runtime::
source · Re-exports
pub use pallet_starknet;
Macros
Construct a runtime, with the given name and the given pallets.Create new implementations of the Get
trait.Structs
Time to execute an empty block.
Calculated by multiplying the Average with 1.0
and adding 0
.Const getter for a basic type.Const getter for a basic type.Const getter for a basic type.Const getter for a basic type.Time to execute a NO-OP extrinsic, for example System::remark
.
Calculated by multiplying the Average with 1.0
and adding 0
.Implementor of WeightToFee
that maps one unit of weight to one unit of fee.A fixed point representation of a number in the range [0, 1].A fixed point representation of a number in the range [0, 1].By default, Substrate uses RocksDB, so this will be the weight used throughout
the runtime.Metadata about storage from the runtime.Opaque types. These are used by the CLI to instantiate machinery that don’t need to know
diff --git a/madara_runtime/opaque/trait.BuildStorage.html b/madara_runtime/opaque/trait.BuildStorage.html
index f7c55423bc..969909502e 100644
--- a/madara_runtime/opaque/trait.BuildStorage.html
+++ b/madara_runtime/opaque/trait.BuildStorage.html
@@ -8,8 +8,8 @@
Required Methods§
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
Provided Methods§
fn build_storage(&self) -> Result<Storage, String>
Implementations on Foreign Types§
impl BuildStorage for Storage
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl BuildStorage for ()
fn assimilate_storage(&self, _: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
- T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
- T: Config,
impl<T> BuildStorage for GenesisConfig<T>where
+ T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
+ T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
Implementors§
impl BuildStorage for RuntimeGenesisConfig
Struct madara_runtime::
source · pub struct DefaultChainId {}
Expand description
Trait Implementations§
impl Get<Felt252Wrapper> for DefaultChainId
fn get() -> Felt252Wrapper
Return the current value.Auto Trait Implementations§
impl RefUnwindSafe for DefaultChainId
impl Send for DefaultChainId
impl Sync for DefaultChainId
impl Unpin for DefaultChainId
impl UnwindSafe for DefaultChainId
Blanket Implementations§
impl<T> Any for Twhere
+
Struct madara_runtime::
pub struct DefaultChainId {}
Expand description
Trait Implementations§
impl Get<Felt252Wrapper> for DefaultChainId
Auto Trait Implementations§
impl RefUnwindSafe for DefaultChainId
impl Send for DefaultChainId
impl Sync for DefaultChainId
impl Unpin for DefaultChainId
impl UnwindSafe for DefaultChainId
Blanket Implementations§
\ No newline at end of file
diff --git a/madara_runtime/type.Starknet.html b/madara_runtime/type.Starknet.html
index ef2ad8bf58..381cbb004d 100644
--- a/madara_runtime/type.Starknet.html
+++ b/madara_runtime/type.Starknet.html
@@ -1 +1 @@
-impl<T> BorrowMut<T> for Twhere
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreimpl<T> CheckedConversion for T
fn checked_from<T>(t: T) -> Option<Self>where
diff --git a/madara_runtime/struct.Runtime.html b/madara_runtime/struct.Runtime.html
index 2dda3ef3f9..16588a20d4 100644
--- a/madara_runtime/struct.Runtime.html
+++ b/madara_runtime/struct.Runtime.html
@@ -1,7 +1,7 @@
Struct madara_runtime::
source · pub struct Runtime;
Implementations§
Trait Implementations§
impl AccountNonceApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime
fn account_nonce(account: AccountId) -> Index
Get current account nonce of given AccountId
.impl AuraApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>)>>, Public> for Runtime
fn slot_duration() -> SlotDuration
Returns the slot duration for Aura. Read moreReturn the current set of authorities.impl BlockBuilderV6<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>)>>> for Runtime
fn apply_extrinsic(
extrinsic: <Block as BlockT>::Extrinsic
-) -> ApplyExtrinsicResult
Apply the given extrinsic. Read morefn finalize_block() -> <Block as BlockT>::Header
Finish the current block.fn inherent_extrinsics(data: InherentData) -> Vec<<Block as BlockT>::Extrinsic>
Generate inherent extrinsics. The inherent data will vary from chain to chain.fn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult
Check that the inherents are valid. The inherent data will vary from chain to chain.impl CallerTrait<<Runtime as Config>::AccountId> for OriginCaller
fn into_system(self) -> Option<RawOrigin<<Runtime as Config>::AccountId>>
Extract the signer from the message if it is a Signed
origin.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.impl Config for Runtime
type TimestampProvider = Pallet<Runtime>
The block timetype UnsignedPriority = UnsignedPriority
A configuration for base priority of unsigned transactions. Read moretype TransactionLongevity = TransactionLongevity
A configuration for longevity of transactions. Read moretype DisableTransactionFee = ConstBool<false>
A bool to disable transaction fees and make all transactions freetype DisableNonceValidation = ConstBool<false>
A bool to disable Nonce validationtype ProtocolVersion = ProtocolVersion
type ProgramHash = ProgramHash
type ExecutionConstants = ExecutionConstants
type InvokeTransactionFilter = ()
Custom transaction filter for Invoke txstype DeclareTransactionFilter = ()
Custom transaction filter for Declare txstype DeployAccountTransactionFilter = ()
Custom transaction filter for DeployAccount txsimpl Config for Runtime
+) -> ApplyExtrinsicResultApply the given extrinsic. Read morefn finalize_block() -> <Block as BlockT>::Header
Finish the current block.fn inherent_extrinsics(data: InherentData) -> Vec<<Block as BlockT>::Extrinsic>
Generate inherent extrinsics. The inherent data will vary from chain to chain.fn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult
Check that the inherents are valid. The inherent data will vary from chain to chain.impl CallerTrait<<Runtime as Config>::AccountId> for OriginCaller
fn into_system(self) -> Option<RawOrigin<<Runtime as Config>::AccountId>>
Extract the signer from the message if it is a Signed
origin.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.impl Config for Runtime
type TimestampProvider = Pallet<Runtime>
The block timetype UnsignedPriority = UnsignedPriority
A configuration for base priority of unsigned transactions. Read moretype TransactionLongevity = TransactionLongevity
A configuration for longevity of transactions. Read moretype DisableTransactionFee = ConstBool<false>
A bool to disable transaction fees and make all transactions freetype DisableNonceValidation = ConstBool<false>
A bool to disable Nonce validationtype ProtocolVersion = ProtocolVersion
type ProgramHash = ProgramHash
type ExecutionConstants = ExecutionConstants
type InvokeTransactionFilter = ()
Custom transaction filter for Invoke txstype DeclareTransactionFilter = ()
Custom transaction filter for Declare txstype DeployAccountTransactionFilter = ()
Custom transaction filter for DeployAccount txsimpl Config for Runtime
OTHER 3RD PARTY FRAME PALLETS
FRAME SYSTEM PALLET<
externalities. Read more
impl StarknetRuntimeApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>)>>> for Runtime
fn get_storage_at(
address: ContractAddress,
key: StorageKey
-) -> Result<StarkFelt, SimulationError>
Returns a storage slot valuefn call(
address: ContractAddress,
function_selector: EntryPointSelector,
calldata: Calldata
-) -> Result<Vec<Felt252Wrapper>, SimulationError>
Returns a Call
response.fn nonce(address: ContractAddress) -> Nonce
Returns the nonce associated with the given address in the given blockfn contract_class_hash_by_address(address: ContractAddress) -> ClassHash
Returns the contract class hash at the given address.fn contract_class_by_class_hash(class_hash: ClassHash) -> Option<ContractClass>
Returns the contract class for the given class hash.fn chain_id() -> Felt252Wrapper
Returns the chain id.fn program_hash() -> Felt252Wrapper
Returns the Starknet OS Cairo program hash.fn fee_token_addresses() -> FeeTokenAddresses
Returns the fee token address.fn is_transaction_fee_disabled() -> bool
Return is fee disabled in statefn estimate_fee(
+) -> Result<Vec<Felt252Wrapper>, SimulationError>
Returns a Call
response.fn nonce(address: ContractAddress) -> Nonce
Returns the nonce associated with the given address in the given blockfn contract_class_hash_by_address(address: ContractAddress) -> ClassHash
Returns the contract class hash at the given address.fn contract_class_by_class_hash(class_hash: ClassHash) -> Option<ContractClass>
Returns the contract class for the given class hash.fn program_hash() -> Felt252Wrapper
Returns the Starknet OS Cairo program hash.fn fee_token_addresses() -> FeeTokenAddresses
Returns the fee token address.fn is_transaction_fee_disabled() -> bool
Return is fee disabled in statefn estimate_fee(
transactions: Vec<AccountTransaction>,
- simulation_flags: SimulationFlags
-) -> Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>
Returns fee estimatefn re_execute_transactions(
+ simulation_flags: SimulationFlags
+) -> Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>
Returns fee estimatefn re_execute_transactions(
transactions_before: Vec<Transaction>,
transactions_to_trace: Vec<Transaction>,
with_state_diff: bool
-) -> Result<ReExecutionResult, InternalSubstrateError>
Used to re-execute transactions from a past block and return their trace Read morefn estimate_message_fee(
+) -> Result<ReExecutionResult, InternalSubstrateError>
Used to re-execute transactions from a past block and return their trace Read morefn estimate_message_fee(
message: L1HandlerTransaction
-) -> Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>
Returns message fee estimatefn get_transaction_re_execution_state_diff(
+) -> Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>
Returns message fee estimatefn get_transaction_re_execution_state_diff(
transactions_before: Vec<Transaction>,
transactions_to_trace: Vec<Transaction>
-) -> Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>
fn simulate_transactions(
+) -> Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>
fn simulate_transactions(
transactions: Vec<AccountTransaction>,
- simulation_flags: SimulationFlags
-) -> Result<Vec<TransactionSimulationResult>, InternalSubstrateError>
Simulates transactions and returns their tracefn simulate_message(
+ simulation_flags: SimulationFlags
+) -> Result<Vec<TransactionSimulationResult>, InternalSubstrateError>
Simulates transactions and returns their tracefn simulate_message(
message: L1HandlerTransaction,
- simulation_flags: SimulationFlags
-) -> Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>
Simulates single L1 Message and returns its tracefn extrinsic_filter(xts: Vec<<Block as BlockT>::Extrinsic>) -> Vec<Transaction>
Filters extrinsic transactions to return only Starknet transactions Read morefn get_index_and_tx_for_tx_hash(
+ simulation_flags: SimulationFlags
+) -> Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>
Simulates single L1 Message and returns its tracefn extrinsic_filter(xts: Vec<<Block as BlockT>::Extrinsic>) -> Vec<Transaction>
Filters extrinsic transactions to return only Starknet transactions Read morefn get_index_and_tx_for_tx_hash(
extrinsics: Vec<<Block as BlockT>::Extrinsic>,
tx_hash: TransactionHash
-) -> Option<(u32, Transaction)>
fn get_tx_messages_to_l1(tx_hash: TransactionHash) -> Vec<MessageToL1>
Return messages sent to L1 during tx executionfn get_events_for_tx_by_hash(tx_hash: TransactionHash) -> Vec<StarknetEvent>
fn get_tx_execution_outcome(tx_hash: TransactionHash) -> Option<Vec<u8>>
Return the outcome of the tx executionfn get_block_context() -> BlockContext
Return the block contextfn l1_nonce_unused(nonce: Nonce) -> bool
Check if L1 Message Nonce has not been usedfn current_l1_gas_prices() -> L1GasPrices
Get current L1 gas pricesimpl TaggedTransactionQueueV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>)>>> for Runtime
fn validate_transaction(
+) -> Option<(u32, Transaction)>
fn get_tx_messages_to_l1(tx_hash: TransactionHash) -> Vec<MessageToL1>
Return messages sent to L1 during tx executionfn get_events_for_tx_by_hash(tx_hash: TransactionHash) -> Vec<StarknetEvent>
fn get_tx_execution_outcome(tx_hash: TransactionHash) -> Option<Vec<u8>>
Return the outcome of the tx executionfn get_block_context() -> BlockContext
Return the block contextfn l1_nonce_unused(nonce: Nonce) -> bool
Check if L1 Message Nonce has not been usedfn current_l1_gas_prices() -> L1GasPrices
Get current L1 gas pricesimpl TaggedTransactionQueueV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>)>>> for Runtime
fn validate_transaction(
source: TransactionSource,
tx: <Block as BlockT>::Extrinsic,
block_hash: <Block as BlockT>::Hash
diff --git a/madara_runtime/struct.RuntimeApiImpl.html b/madara_runtime/struct.RuntimeApiImpl.html
index d383fea8f0..639eb215bf 100644
--- a/madara_runtime/struct.RuntimeApiImpl.html
+++ b/madara_runtime/struct.RuntimeApiImpl.html
@@ -72,17 +72,17 @@
__runtime_api_at_param__: <Block as Block>::Hash,
block: Block,
data: InherentData
-) -> Result<CheckInherentsResult, ApiError>
Check that the inherents are valid. The inherent data will vary from chain to chain.impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> ConvertTransactionRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
+) -> Result<CheckInherentsResult, ApiError>
Check that the inherents are valid. The inherent data will vary from chain to chain.impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> ConvertTransactionRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
AccountTransaction: UnwindSafe + RefUnwindSafe,
UncheckedExtrinsic: UnwindSafe + RefUnwindSafe,
L1HandlerTransaction: UnwindSafe + RefUnwindSafe,
- __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
fn convert_account_transaction(
+ __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
fn convert_account_transaction(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
transaction: AccountTransaction
-) -> Result<<Block as Block>::Extrinsic, ApiError>
Converts the transaction to an UncheckedExtrinsic for submission to the pool.fn convert_l1_transaction(
+) -> Result<<Block as Block>::Extrinsic, ApiError>
Converts the transaction to an UncheckedExtrinsic for submission to the pool.fn convert_l1_transaction(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
transaction: L1HandlerTransaction
@@ -192,31 +192,31 @@
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
encoded: Vec<u8, Global>
-) -> Result<Option<Vec<(Vec<u8, Global>, KeyTypeId), Global>>, ApiError>
Decode the given public session keys. Read moreimpl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> StarknetRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
+) -> Result<Option<Vec<(Vec<u8, Global>, KeyTypeId), Global>>, ApiError>
Decode the given public session keys. Read moreimpl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> StarknetRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
ContractAddress: UnwindSafe + RefUnwindSafe,
StorageKey: UnwindSafe + RefUnwindSafe,
- Result<StarkFelt, SimulationError>: UnwindSafe + RefUnwindSafe,
+ Result<StarkFelt, SimulationError>: UnwindSafe + RefUnwindSafe,
EntryPointSelector: UnwindSafe + RefUnwindSafe,
Calldata: UnwindSafe + RefUnwindSafe,
- Result<Vec<Felt252Wrapper>, SimulationError>: UnwindSafe + RefUnwindSafe,
+ Result<Vec<Felt252Wrapper>, SimulationError>: UnwindSafe + RefUnwindSafe,
Nonce: UnwindSafe + RefUnwindSafe,
ClassHash: UnwindSafe + RefUnwindSafe,
Option<ContractClass>: UnwindSafe + RefUnwindSafe,
- Felt252Wrapper: UnwindSafe + RefUnwindSafe,
+ Felt252Wrapper: UnwindSafe + RefUnwindSafe,
FeeTokenAddresses: UnwindSafe + RefUnwindSafe,
bool: UnwindSafe + RefUnwindSafe,
Vec<AccountTransaction>: UnwindSafe + RefUnwindSafe,
- SimulationFlags: UnwindSafe + RefUnwindSafe,
- Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
+ SimulationFlags: UnwindSafe + RefUnwindSafe,
+ Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
Vec<Transaction>: UnwindSafe + RefUnwindSafe,
- Result<ReExecutionResult, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
+ Result<ReExecutionResult, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
L1HandlerTransaction: UnwindSafe + RefUnwindSafe,
- Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
- Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
- Result<Vec<TransactionSimulationResult>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
- Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
+ Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
+ Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
+ Result<Vec<TransactionSimulationResult>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
+ Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,
Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,
TransactionHash: UnwindSafe + RefUnwindSafe,
Option<(u32, Transaction)>: UnwindSafe + RefUnwindSafe,
@@ -224,104 +224,104 @@
Vec<Event>: UnwindSafe + RefUnwindSafe,
Option<Vec<u8>>: UnwindSafe + RefUnwindSafe,
BlockContext: UnwindSafe + RefUnwindSafe,
- L1GasPrices: UnwindSafe + RefUnwindSafe,
- __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
fn nonce(
+ L1GasPrices: UnwindSafe + RefUnwindSafe,
+ __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
fn nonce(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
contract_address: ContractAddress
-) -> Result<Nonce, ApiError>
Returns the nonce associated with the given address in the given blockfn get_storage_at(
+) -> Result<Nonce, ApiError>
Returns the nonce associated with the given address in the given blockfn get_storage_at(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
address: ContractAddress,
key: StorageKey
-) -> Result<Result<StarkFelt, SimulationError>, ApiError>
Returns a storage slot valuefn call(
+) -> Result<Result<StarkFelt, SimulationError>, ApiError>
Returns a storage slot valuefn call(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
address: ContractAddress,
function_selector: EntryPointSelector,
calldata: Calldata
-) -> Result<Result<Vec<Felt252Wrapper, Global>, SimulationError>, ApiError>
Returns a Call
response.fn contract_class_hash_by_address(
+) -> Result<Result<Vec<Felt252Wrapper, Global>, SimulationError>, ApiError>
Returns a Call
response.fn contract_class_hash_by_address(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
address: ContractAddress
-) -> Result<ClassHash, ApiError>
Returns the contract class hash at the given address.fn contract_class_by_class_hash(
+) -> Result<ClassHash, ApiError>
Returns the contract class hash at the given address.fn contract_class_by_class_hash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
class_hash: ClassHash
-) -> Result<Option<ContractClass>, ApiError>
Returns the contract class for the given class hash.fn chain_id(
+) -> Result<Option<ContractClass>, ApiError>
Returns the contract class for the given class hash.fn chain_id(
&self,
__runtime_api_at_param__: <Block as Block>::Hash
-) -> Result<Felt252Wrapper, ApiError>
Returns the chain id.fn program_hash(
+) -> Result<Felt252Wrapper, ApiError>
Returns the chain id.fn program_hash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash
-) -> Result<Felt252Wrapper, ApiError>
Returns the Starknet OS Cairo program hash.fn fee_token_addresses(
+) -> Result<Felt252Wrapper, ApiError>
Returns the Starknet OS Cairo program hash.fn fee_token_addresses(
&self,
__runtime_api_at_param__: <Block as Block>::Hash
-) -> Result<FeeTokenAddresses, ApiError>
Returns the fee token address.fn estimate_fee(
+) -> Result<FeeTokenAddresses, ApiError>
Returns the fee token address.fn estimate_fee(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
transactions: Vec<AccountTransaction, Global>,
- simulation_flags: SimulationFlags
-) -> Result<Result<Result<Vec<FeeEstimate, Global>, SimulationError>, InternalSubstrateError>, ApiError>
Returns fee estimatefn estimate_message_fee(
+ simulation_flags: SimulationFlags
+) -> Result<Result<Result<Vec<FeeEstimate, Global>, SimulationError>, InternalSubstrateError>, ApiError>
Returns fee estimatefn estimate_message_fee(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
message: L1HandlerTransaction
-) -> Result<Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>, ApiError>
Returns message fee estimatefn simulate_message(
+) -> Result<Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>, ApiError>
Returns message fee estimatefn simulate_message(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
message: L1HandlerTransaction,
- simulation_flags: SimulationFlags
-) -> Result<Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>, ApiError>
Simulates single L1 Message and returns its tracefn simulate_transactions(
+ simulation_flags: SimulationFlags
+) -> Result<Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>, ApiError>
Simulates single L1 Message and returns its tracefn simulate_transactions(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
transactions: Vec<AccountTransaction, Global>,
- simulation_flags: SimulationFlags
-) -> Result<Result<Vec<Result<TransactionSimulation, SimulationError>, Global>, InternalSubstrateError>, ApiError>
Simulates transactions and returns their tracefn extrinsic_filter(
+ simulation_flags: SimulationFlags
+) -> Result<Result<Vec<Result<TransactionSimulation, SimulationError>, Global>, InternalSubstrateError>, ApiError>
Simulates transactions and returns their tracefn extrinsic_filter(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
xts: Vec<<Block as Block>::Extrinsic, Global>
-) -> Result<Vec<Transaction, Global>, ApiError>
Filters extrinsic transactions to return only Starknet transactions Read morefn re_execute_transactions(
+) -> Result<Vec<Transaction, Global>, ApiError>
Filters extrinsic transactions to return only Starknet transactions Read morefn re_execute_transactions(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
transactions_before: Vec<Transaction, Global>,
transactions_to_trace: Vec<Transaction, Global>,
with_state_diff: bool
-) -> Result<Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>), Global>, SimulationError>, InternalSubstrateError>, ApiError>
Used to re-execute transactions from a past block and return their trace Read morefn get_transaction_re_execution_state_diff(
+) -> Result<Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>), Global>, SimulationError>, InternalSubstrateError>, ApiError>
Used to re-execute transactions from a past block and return their trace Read morefn get_transaction_re_execution_state_diff(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
transactions_before: Vec<Transaction, Global>,
transactions: Vec<Transaction, Global>
-) -> Result<Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>, ApiError>
fn get_index_and_tx_for_tx_hash(
+) -> Result<Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>, ApiError>
fn get_index_and_tx_for_tx_hash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
xts: Vec<<Block as Block>::Extrinsic, Global>,
tx_hash: TransactionHash
-) -> Result<Option<(u32, Transaction)>, ApiError>
fn get_events_for_tx_by_hash(
+) -> Result<Option<(u32, Transaction)>, ApiError>
fn get_events_for_tx_by_hash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
tx_hash: TransactionHash
-) -> Result<Vec<Event, Global>, ApiError>
fn get_tx_execution_outcome(
+) -> Result<Vec<Event, Global>, ApiError>
fn get_tx_execution_outcome(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
tx_hash: TransactionHash
-) -> Result<Option<Vec<u8, Global>>, ApiError>
Return the outcome of the tx executionfn get_block_context(
+) -> Result<Option<Vec<u8, Global>>, ApiError>
Return the outcome of the tx executionfn get_block_context(
&self,
__runtime_api_at_param__: <Block as Block>::Hash
-) -> Result<BlockContext, ApiError>
Return the block contextfn is_transaction_fee_disabled(
+) -> Result<BlockContext, ApiError>
Return the block contextfn is_transaction_fee_disabled(
&self,
__runtime_api_at_param__: <Block as Block>::Hash
-) -> Result<bool, ApiError>
Return is fee disabled in statefn get_tx_messages_to_l1(
+) -> Result<bool, ApiError>
Return is fee disabled in statefn get_tx_messages_to_l1(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
tx_hash: TransactionHash
-) -> Result<Vec<MessageToL1, Global>, ApiError>
Return messages sent to L1 during tx executionfn l1_nonce_unused(
+) -> Result<Vec<MessageToL1, Global>, ApiError>
Return messages sent to L1 during tx executionfn l1_nonce_unused(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
nonce: Nonce
-) -> Result<bool, ApiError>
Check if L1 Message Nonce has not been usedfn current_l1_gas_prices(
+) -> Result<bool, ApiError>
Check if L1 Message Nonce has not been usedfn current_l1_gas_prices(
&self,
__runtime_api_at_param__: <Block as Block>::Hash
-) -> Result<L1GasPrices, ApiError>
Get current L1 gas pricesimpl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> TaggedTransactionQueue<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
+) -> Result<L1GasPrices, ApiError>
Get current L1 gas pricesimpl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> TaggedTransactionQueue<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
TransactionSource: UnwindSafe + RefUnwindSafe,
diff --git a/madara_runtime/trait.BuildStorage.html b/madara_runtime/trait.BuildStorage.html
index e5f404d938..ac18c696e3 100644
--- a/madara_runtime/trait.BuildStorage.html
+++ b/madara_runtime/trait.BuildStorage.html
@@ -8,8 +8,8 @@
Required Methods§
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
Provided Methods§
fn build_storage(&self) -> Result<Storage, String>
Implementations on Foreign Types§
impl BuildStorage for Storage
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl BuildStorage for ()
fn assimilate_storage(&self, _: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
- T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
- T: Config,
impl<T> BuildStorage for GenesisConfig<T>where
+ T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
+ T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
impl<T> BuildStorage for GenesisConfig<T>where
T: Config,
fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>
Implementors§
impl BuildStorage for RuntimeGenesisConfig
Type Definition madara_runtime::
source · pub type Starknet = Pallet<Runtime>;
Type Definition madara_runtime::
source · pub type Starknet = Pallet<Runtime>;
Type Definition madara_runtime::
source · pub type StarknetConfig = GenesisConfig<Runtime>;
Type Definition madara_runtime::
source · pub type StarknetConfig = GenesisConfig<Runtime>;
Type Definition madara_runtime::
source · pub type StarknetHasher = PedersenHasher;
Expand description
Type Definition madara_runtime::
source · pub type StarknetHasher = PedersenHasher;
Expand description
pub struct CommitmentStateDiffWorker<B: BlockT, C, H> { /* private fields */ }
Implementations§
impl<B: BlockT, C, H> CommitmentStateDiffWorker<B, C, H>where
C: BlockchainEvents<B>,
Trait Implementations§
impl<B: BlockT, C, H> Stream for CommitmentStateDiffWorker<B, C, H>where
C: ProvideRuntimeApi<B> + HeaderBackend<B>,
- C::Api: StarknetRuntimeApi<B>,
- H: HasherT + Unpin,
fn poll_next(
+ C::Api: StarknetRuntimeApi<B>,
+ H: HasherT + Unpin,
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Self::Item>>
Attempt to pull out the next value of this stream, registering the
diff --git a/mc_l1_gas_price/worker/fn.run_worker.html b/mc_l1_gas_price/worker/fn.run_worker.html
index 3cecb00cfb..2c53378aca 100644
--- a/mc_l1_gas_price/worker/fn.run_worker.html
+++ b/mc_l1_gas_price/worker/fn.run_worker.html
@@ -1,5 +1,5 @@
Function mc_l1_gas_price::
source · pub async fn run_worker(
- config: Arc<EthereumClientConfig>,
+ config: Arc<EthereumClientConfig>,
gas_price: Arc<Mutex<L1GasPrices>>,
infinite_loop: bool
)
pub enum L1MessagesWorkerError<PE> {
ConfigError(ParseError),
ConvertTransactionRuntimeApiError(ApiError),
- DatabaseError(DbError),
+ DatabaseError(DbError),
L1MessageAlreadyProcessed(u64),
RuntimeApiError(ApiError),
SubmitTxError(PE),
ToFeeError,
ToTransactionError(L1EventToTransactionError),
- EthereumClient(Error),
-}
Variants§
ConfigError(ParseError)
ConvertTransactionRuntimeApiError(ApiError)
DatabaseError(DbError)
L1MessageAlreadyProcessed(u64)
RuntimeApiError(ApiError)
SubmitTxError(PE)
ToFeeError
ToTransactionError(L1EventToTransactionError)
EthereumClient(Error)
Trait Implementations§
impl<PE: Debug> Debug for L1MessagesWorkerError<PE>
impl<PE> Display for L1MessagesWorkerError<PE>
impl<PE> Error for L1MessagesWorkerError<PE>where
+ EthereumClient(Error),
+}
Variants§
ConfigError(ParseError)
ConvertTransactionRuntimeApiError(ApiError)
DatabaseError(DbError)
L1MessageAlreadyProcessed(u64)
RuntimeApiError(ApiError)
SubmitTxError(PE)
ToFeeError
ToTransactionError(L1EventToTransactionError)
EthereumClient(Error)
Trait Implementations§
impl<PE: Debug> Debug for L1MessagesWorkerError<PE>
impl<PE> Display for L1MessagesWorkerError<PE>
impl<PE> Error for L1MessagesWorkerError<PE>where
PE: Error + 'static,
- Self: Debug + Display,
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read morefn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()impl<PE> From<DbError> for L1MessagesWorkerError<PE>
impl<PE> From<Error> for L1MessagesWorkerError<PE>
impl<PE> From<ParseError> for L1MessagesWorkerError<PE>
fn from(source: ParseError) -> Self
Converts to this type from the input type.Auto Trait Implementations§
impl<PE> !RefUnwindSafe for L1MessagesWorkerError<PE>
impl<PE> Send for L1MessagesWorkerError<PE>where
+ Self: Debug + Display,
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read morefn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()impl<PE> From<DbError> for L1MessagesWorkerError<PE>
impl<PE> From<Error> for L1MessagesWorkerError<PE>
impl<PE> From<ParseError> for L1MessagesWorkerError<PE>
fn from(source: ParseError) -> Self
Converts to this type from the input type.Auto Trait Implementations§
impl<PE> !RefUnwindSafe for L1MessagesWorkerError<PE>
impl<PE> Send for L1MessagesWorkerError<PE>where
PE: Send,
impl<PE> Sync for L1MessagesWorkerError<PE>where
PE: Sync,
impl<PE> Unpin for L1MessagesWorkerError<PE>where
PE: Unpin,
impl<PE> !UnwindSafe for L1MessagesWorkerError<PE>
Blanket Implementations§
\ No newline at end of file
diff --git a/mc_l1_messages/worker/struct.EthereumClientConfig.html b/mc_l1_messages/worker/struct.EthereumClientConfig.html
index 326346b07e..994b94c6a3 100644
--- a/mc_l1_messages/worker/struct.EthereumClientConfig.html
+++ b/mc_l1_messages/worker/struct.EthereumClientConfig.html
@@ -1,11 +1,11 @@
-impl<T> Any for Twhere
diff --git a/mc_l1_messages/worker/fn.run_worker.html b/mc_l1_messages/worker/fn.run_worker.html
index 9b74e1e472..750117176a 100644
--- a/mc_l1_messages/worker/fn.run_worker.html
+++ b/mc_l1_messages/worker/fn.run_worker.html
@@ -2,9 +2,9 @@
config: Arc<EthereumClientConfig>,
client: Arc<C>,
pool: Arc<P>,
- backend: Arc<Backend<B>>
+ backend: Arc<Backend<B>>
)where
B: BlockT,
C: ProvideRuntimeApi<B> + HeaderBackend<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
P: TransactionPool<Block = B> + 'static,
Struct mc_l1_messages::
source · pub struct EthereumClientConfig {
- pub provider: EthereumProviderConfig,
- pub wallet: Option<EthereumWalletConfig>,
- pub contracts: StarknetContracts,
-}
Fields§
§provider: EthereumProviderConfig
§wallet: Option<EthereumWalletConfig>
§contracts: StarknetContracts
Implementations§
impl EthereumClientConfig
pub fn from_json_file(path: &PathBuf) -> Result<EthereumClientConfig, Error>
Trait Implementations§
impl Clone for EthereumClientConfig
fn clone(&self) -> EthereumClientConfig
Returns a copy of the value. Read morefn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreimpl Debug for EthereumClientConfig
impl Default for EthereumClientConfig
fn default() -> EthereumClientConfig
Returns the “default value” for a type. Read moreimpl<'de> Deserialize<'de> for EthereumClientConfig
fn deserialize<__D>(
+
Struct mc_l1_messages::
pub struct EthereumClientConfig {
+ pub provider: EthereumProviderConfig,
+ pub wallet: Option<EthereumWalletConfig>,
+ pub contracts: StarknetContracts,
+}
Fields§
§provider: EthereumProviderConfig
§wallet: Option<EthereumWalletConfig>
§contracts: StarknetContracts
Implementations§
impl EthereumClientConfig
pub fn from_json_file(path: &PathBuf) -> Result<EthereumClientConfig, Error>
Trait Implementations§
impl Clone for EthereumClientConfig
fn clone(&self) -> EthereumClientConfig
Returns a copy of the value. Read morefn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreimpl Debug for EthereumClientConfig
impl Default for EthereumClientConfig
fn default() -> EthereumClientConfig
Returns the “default value” for a type. Read moreimpl<'de> Deserialize<'de> for EthereumClientConfig
fn deserialize<__D>(
__deserializer: __D
) -> Result<EthereumClientConfig, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreimpl Serialize for EthereumClientConfig
fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreimpl Serialize for EthereumClientConfig
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
diff --git a/mc_mapping_sync/struct.MappingSyncWorker.html b/mc_mapping_sync/struct.MappingSyncWorker.html
index 6e9b95d4c3..2e06bed8d0 100644
--- a/mc_mapping_sync/struct.MappingSyncWorker.html
+++ b/mc_mapping_sync/struct.MappingSyncWorker.html
@@ -4,15 +4,15 @@
timeout: Duration,
client: Arc<C>,
substrate_backend: Arc<BE>,
- frontier_backend: Arc<Backend<B>>,
+ frontier_backend: Arc<Backend<B>>,
retry_times: usize,
sync_from: <B::Header as HeaderT>::Number,
prometheus_registry: Option<Registry>
) -> Self
Trait Implementations§
impl<B: BlockT, C, BE, H> Stream for MappingSyncWorker<B, C, BE, H>where
C: ProvideRuntimeApi<B> + HeaderBackend<B> + StorageProvider<B, BE>,
- C::Api: StarknetRuntimeApi<B>,
+ C::Api: StarknetRuntimeApi<B>,
BE: Backend<B>,
- H: HasherT,
\ No newline at end of file
diff --git a/mc_rpc/struct.PredeployedAccountWithBalance.html b/mc_rpc/struct.PredeployedAccountWithBalance.html
index 82d16a6bac..a391d32c71 100644
--- a/mc_rpc/struct.PredeployedAccountWithBalance.html
+++ b/mc_rpc/struct.PredeployedAccountWithBalance.html
@@ -1,7 +1,7 @@
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<()>>
Attempt to pull out the next value of this stream, registering the
+ H: HasherT,impl<B: BlockT, C, BE, H> Unpin for MappingSyncWorker<B, C, BE, H>
Auto Trait Implementations§
impl<B, C, BE, H> !RefUnwindSafe for MappingSyncWorker<B, C, BE, H>
impl<B, C, BE, H> Send for MappingSyncWorker<B, C, BE, H>where
BE: Send + Sync,
diff --git a/mc_rpc/fn.get_block_by_block_hash.html b/mc_rpc/fn.get_block_by_block_hash.html
index 54ce42172f..e5edd8ef8a 100644
--- a/mc_rpc/fn.get_block_by_block_hash.html
+++ b/mc_rpc/fn.get_block_by_block_hash.html
@@ -1,7 +1,7 @@
Function mc_rpc::
source · pub fn get_block_by_block_hash<B, C>(
client: &C,
block_hash: <B as Block>::Hash
-) -> Result<Block, Error>where
+) -> Result<Block, Error>where
B: Block,
C: HeaderBackend<B>,
Expand description
pub struct PredeployedAccountWithBalance {
- pub account: PredeployedAccount,
+ pub account: PredeployedAccount,
pub balance: FieldElement,
-}
Fields§
§account: PredeployedAccount
§balance: FieldElement
Trait Implementations§
impl<'de> Deserialize<'de> for PredeployedAccountWithBalance
\ No newline at end of file
diff --git a/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html
index c50451aff0..d736c0c82d 100644
--- a/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html
+++ b/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html
@@ -47,14 +47,14 @@
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,fn deserialize<__D>(
+}
Fields§
§account: PredeployedAccount
§balance: FieldElement
Trait Implementations§
impl<'de> Deserialize<'de> for PredeployedAccountWithBalance
fn deserialize<__D>(
__deserializer: __D
) -> Result<PredeployedAccountWithBalance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreimpl Serialize for PredeployedAccountWithBalance
\ No newline at end of file
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,fn serialize<__S>(
diff --git a/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html b/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html
index b686d41855..02dfda6209 100644
--- a/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html
+++ b/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html
@@ -3,18 +3,18 @@
B: BlockT,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
P: TransactionPool<Block = B> + 'static,
- H: HasherT + Send + Sync + 'static,
fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>
impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
+ H: HasherT + Send + Sync + 'static,
fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>
impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
A: ChainApi<Block = B> + 'static,
B: BlockT,
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,
fn spec_version(&self) -> RpcResult<String>
\ No newline at end of file
diff --git a/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html
index fd1d52d157..e797f00747 100644
--- a/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html
+++ b/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html
@@ -49,16 +49,16 @@
A: ChainApi<Block = B> + 'static,
B: BlockT,
BE: Backend<B> + 'static,
- G: GenesisProvider + Send + Sync + 'static,
+ G: GenesisProvider + Send + Sync + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
P: TransactionPool<Block = B> + 'static,
- H: HasherT + Send + Sync + 'static,fn spec_version(&self) -> RpcResult<String>
fn get_transaction_status(
&self,
transaction_hash: FieldElement
-) -> RpcResult<TransactionStatus>
\ No newline at end of file
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,Errors
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,
\ No newline at end of file
diff --git a/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html
index cef21551c6..47926d5b94 100644
--- a/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html
+++ b/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html
@@ -10,7 +10,7 @@
fn get_transaction_status(
&self,
transaction_hash: FieldElement
- ) -> Result<TransactionStatus, Error>;
+ ) -> Result<TransactionStatus, Error>;
fn get_storage_at(
&self,
contract_address: FieldElement,
@@ -107,7 +107,7 @@
fn simulate_transactions<'life0, 'async_trait>(
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,
fn simulate_transactions<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
transactions: Vec<BroadcastedTransaction>,
@@ -441,9 +441,9 @@
Errors
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,
\ No newline at end of file
+ H: HasherT + Send + Sync + 'static,fn add_declare_transaction<'life0, 'async_trait>(
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,
fn add_declare_transaction<'life0, 'async_trait>(
&'life0 self,
declare_transaction: BroadcastedDeclareTransaction
) -> Pin<Box<dyn Future<Output = RpcResult<DeclareTransactionResult>> + Send + 'async_trait>>where
diff --git a/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html
index 68fc58a770..ff95b28085 100644
--- a/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html
+++ b/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html
@@ -15,15 +15,15 @@
B: BlockT,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
P: TransactionPool<Block = B> + 'static,
- H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
+ H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
A: ChainApi<Block = B> + 'static,
B: BlockT,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
P: TransactionPool<Block = B> + 'static,
- H: HasherT + Send + Sync + 'static,
fn get_transaction_status(
&self,
transaction_hash: FieldElement
-) -> Result<TransactionStatus, Error>
fn get_storage_at(
&self,
contract_address: FieldElement,
@@ -201,14 +201,14 @@
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
A: ChainApi<Block = B> + 'static,
B: BlockT,
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
+ H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
A: ChainApi<Block = B> + 'static,
B: BlockT,
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
A: ChainApi<Block = B> + 'static,
B: BlockT,
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,
Struct mc_rpc::
source · pub struct PredeployedAccountWithBalance {
- pub account: PredeployedAccount,
+ pub account: PredeployedAccount,
pub balance: FieldElement,
-}
Fields§
§account: PredeployedAccount
§balance: FieldElement
Trait Implementations§
impl<'de> Deserialize<'de> for PredeployedAccountWithBalance
fn deserialize<__D>(
+}
Fields§
§account: PredeployedAccount
§balance: FieldElement
Trait Implementations§
impl<'de> Deserialize<'de> for PredeployedAccountWithBalance
fn deserialize<__D>(
__deserializer: __D
) -> Result<PredeployedAccountWithBalance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreimpl Serialize for PredeployedAccountWithBalance
fn serialize<__S>(
diff --git a/mc_rpc/struct.Starknet.html b/mc_rpc/struct.Starknet.html
index 59d583e7e0..693edf028c 100644
--- a/mc_rpc/struct.Starknet.html
+++ b/mc_rpc/struct.Starknet.html
@@ -3,9 +3,9 @@
A: ChainApi<Block = B> + 'static,
B: BlockT,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
BE: Backend<B>,
- H: HasherT + Send + Sync + 'static,
pub fn get_block_events(
+ H: HasherT + Send + Sync + 'static,
pub fn get_block_events(
&self,
block_number: u64
) -> Result<Vec<EmittedEvent>, StarknetRpcApiError>
Returns
B: BlockT,
BE: Backend<B>,
C: HeaderBackend<B> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- H: HasherT + Send + Sync + 'static,pub fn do_call(
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ H: HasherT + Send + Sync + 'static,
pub fn do_call(
&self,
best_block_hash: B::Hash,
contract_address: ContractAddress,
entry_point_selector: EntryPointSelector,
calldata: Calldata
-) -> Result<Vec<Felt252Wrapper>, StarknetRpcApiError>
pub fn do_estimate_message_fee(
+) -> Result<Vec<Felt252Wrapper>, StarknetRpcApiError>
pub fn do_estimate_message_fee(
&self,
block_hash: B::Hash,
message: L1HandlerTransaction
@@ -59,11 +59,11 @@
Returns
&self,
block_hash: B::Hash,
transactions: Vec<AccountTransaction>,
- simulation_flags: SimulationFlags
+ simulation_flags: SimulationFlags
) -> Result<Vec<FeeEstimate>, StarknetRpcApiError>pub fn get_best_block_hash(&self) -> B::Hash
pub fn get_chain_id(
&self,
block_hash: B::Hash
-) -> Result<Felt252Wrapper, StarknetRpcApiError>
pub fn filter_extrinsics(
+) -> Result<Felt252Wrapper, StarknetRpcApiError>
pub fn filter_extrinsics(
&self,
block_hash: B::Hash,
extrinsics: Vec<B::Extrinsic>
@@ -84,11 +84,11 @@
Returns
A: ChainApi<Block = B> + 'static,
B: BlockT,
BE: Backend<B> + 'static,
- G: GenesisProvider + Send + Sync + 'static,
+ G: GenesisProvider + Send + Sync + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
P: TransactionPool<Block = B> + 'static,
- H: HasherT + Send + Sync + 'static,pub fn re_execute_transactions(
+ H: HasherT + Send + Sync + 'static,
pub fn re_execute_transactions(
&self,
previous_block_substrate_hash: B::Hash,
transactions_before: Vec<Transaction>,
@@ -102,8 +102,8 @@
Returns
) -> RpcResult<StateDiff>impl<A: ChainApi, B: BlockT, BE, G, C, P, H> Starknet<A, B, BE, G, C, P, H>
Arguments
pub fn new(
client: Arc<C>,
- backend: Arc<Backend<B>>,
- overrides: Arc<OverrideHandle<B>>,
+ backend: Arc<Backend<B>>,
+ overrides: Arc<OverrideHandle<B>>,
pool: Arc<P>,
graph: Arc<Pool<A>>,
sync_service: Arc<SyncingService<B>>,
@@ -116,24 +116,24 @@
Arguments
pub fn current_spec_version(&self) -> RpcResult<String>
impl<A: ChainApi, B, BE, G, C, P, H> Starknet<A, B, BE, G, C, P, H>where
B: BlockT,
C: HeaderBackend<B> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B>,
- H: HasherT + Send + Sync + 'static,
pub fn current_block_hash(&self) -> Result<H256, StarknetRpcApiError>
Trait Implementations§
impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
+ C::Api: StarknetRuntimeApi<B>,
+ H: HasherT + Send + Sync + 'static,
pub fn current_block_hash(&self) -> Result<H256, StarknetRpcApiError>
Trait Implementations§
\ No newline at end of file
+ H: HasherT + Send + Sync + 'static,impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
A: ChainApi<Block = B> + 'static,
B: BlockT,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
P: TransactionPool<Block = B> + 'static,
- H: HasherT + Send + Sync + 'static,
fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>
impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
+ H: HasherT + Send + Sync + 'static,
fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>
impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
A: ChainApi<Block = B> + 'static,
B: BlockT,
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,
fn spec_version(&self) -> RpcResult<String>
\ No newline at end of file
diff --git a/mc_rpc/trait.StarknetTraceRpcApiServer.html b/mc_rpc/trait.StarknetTraceRpcApiServer.html
index 17fc3deda4..569fdcad73 100644
--- a/mc_rpc/trait.StarknetTraceRpcApiServer.html
+++ b/mc_rpc/trait.StarknetTraceRpcApiServer.html
@@ -51,14 +51,14 @@
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,fn spec_version(&self) -> RpcResult<String>
fn get_transaction_status(
&self,
transaction_hash: FieldElement
-) -> RpcResult<TransactionStatus>
\ No newline at end of file
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,Errors
A: ChainApi<Block = B> + 'static,
B: BlockT,
BE: Backend<B> + 'static,
- G: GenesisProvider + Send + Sync + 'static,
+ G: GenesisProvider + Send + Sync + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
P: TransactionPool<Block = B> + 'static,
- H: HasherT + Send + Sync + 'static,
\ No newline at end of file
diff --git a/mc_rpc/trait.StarknetReadRpcApiServer.html b/mc_rpc/trait.StarknetReadRpcApiServer.html
index 7df14ab766..3b0dd3113e 100644
--- a/mc_rpc/trait.StarknetReadRpcApiServer.html
+++ b/mc_rpc/trait.StarknetReadRpcApiServer.html
@@ -10,7 +10,7 @@
fn get_transaction_status(
&self,
transaction_hash: FieldElement
- ) -> Result<TransactionStatus, Error>;
+ ) -> Result<TransactionStatus, Error>;
fn get_storage_at(
&self,
contract_address: FieldElement,
@@ -107,7 +107,7 @@
fn simulate_transactions<'life0, 'async_trait>(
+ H: HasherT + Send + Sync + 'static,
fn simulate_transactions<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
transactions: Vec<BroadcastedTransaction>,
@@ -557,9 +557,9 @@
Errors
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,
\ No newline at end of file
+ H: HasherT + Send + Sync + 'static,fn add_declare_transaction<'life0, 'async_trait>(
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,
fn add_declare_transaction<'life0, 'async_trait>(
&'life0 self,
declare_transaction: BroadcastedDeclareTransaction
) -> Pin<Box<dyn Future<Output = RpcResult<DeclareTransactionResult>> + Send + 'async_trait>>where
diff --git a/mc_rpc/trait.MadaraRpcApiServer.html b/mc_rpc/trait.MadaraRpcApiServer.html
index 9cd0d73b91..5678c96cfa 100644
--- a/mc_rpc/trait.MadaraRpcApiServer.html
+++ b/mc_rpc/trait.MadaraRpcApiServer.html
@@ -15,15 +15,15 @@
B: BlockT,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
P: TransactionPool<Block = B> + 'static,
- H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
+ H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
A: ChainApi<Block = B> + 'static,
B: BlockT,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
P: TransactionPool<Block = B> + 'static,
- H: HasherT + Send + Sync + 'static,
fn get_transaction_status(
&self,
transaction_hash: FieldElement
-) -> Result<TransactionStatus, Error>
fn get_storage_at(
&self,
contract_address: FieldElement,
@@ -201,14 +201,14 @@
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
A: ChainApi<Block = B> + 'static,
B: BlockT,
P: TransactionPool<Block = B> + 'static,
BE: Backend<B> + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- G: GenesisProvider + Send + Sync + 'static,
- H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,
impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
A: ChainApi<Block = B> + 'static,
B: BlockT,
BE: Backend<B> + 'static,
- G: GenesisProvider + Send + Sync + 'static,
+ G: GenesisProvider + Send + Sync + 'static,
C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
P: TransactionPool<Block = B> + 'static,
- H: HasherT + Send + Sync + 'static,