diff --git a/help.html b/help.html index 437e5b1c2b..69ffcfaa10 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -
pub fn create_benchmark_extrinsic(
- client: &TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>,
+ client: &TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>,
sender: Pair,
- call: RuntimeCall,
+ call: RuntimeCall,
nonce: u32
-) -> UncheckedExtrinsic
Create a transaction using the given call
.
Create a transaction using the given call
.
Note: Should only be used for benchmarking.
pub struct RemarkBuilder {
- client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
+ client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
}
Generates extrinsics for the benchmark overhead
command.
Note: Should only be used for benchmarking.
-client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>
client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>
Creates a new Self
from the given client.
pub fn development_config(
- sealing: SealingMode,
+ sealing: SealingMode,
base_path: BasePath
) -> Result<GenericChainSpec<DevGenesisExt>, String>
fn load_genesis(data_path: PathBuf) -> GenesisLoader
fn load_genesis(data_path: PathBuf) -> GenesisLoader
pub fn local_testnet_config(
base_path: BasePath,
chain_id: &str
-) -> Result<GenericChainSpec<RuntimeGenesisConfig>, String>
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
-) -> RuntimeGenesisConfig
Configure initial storage state for FRAME modules.
+) -> RuntimeGenesisConfigConfigure initial storage state for FRAME modules.
pub struct DevGenesisExt {
- genesis_config: RuntimeGenesisConfig,
- sealing: SealingMode,
+ genesis_config: RuntimeGenesisConfig,
+ sealing: SealingMode,
}
Extension for the dev genesis config to support a custom changes to the genesis state.
-genesis_config: RuntimeGenesisConfig
Genesis config.
-sealing: SealingMode
The sealing mode being used.
+genesis_config: RuntimeGenesisConfig
Genesis config.
+sealing: SealingMode
The sealing mode being used.
The sealing
from the DevGenesisExt
is passed to the runtime via the storage. The runtime
can then use this information to adjust accordingly. This is just a common way to pass
information from the chain spec to the runtime.
pub type ChainSpec = GenericChainSpec<RuntimeGenesisConfig>;
Specialized ChainSpec
. This is a specialization of the general Substrate ChainSpec type.
pub type ChainSpec = GenericChainSpec<RuntimeGenesisConfig>;
Specialized ChainSpec
. This is a specialization of the general Substrate ChainSpec type.
--sealing=instant-finality
.
Seal when transaction is executed with finalization.
fn build_aura_import_queue(
- client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
+ client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
config: &Configuration,
task_manager: &TaskManager,
telemetry: &Option<Telemetry>,
- block_import: BoxBlockImport<Block>,
- justification_import: Option<BoxJustificationImport<Block>>
-) -> Result<DefaultImportQueue<Block>, Error>
Build the import queue for default sealing given the block import.
+ block_import: BoxBlockImport<Block>, + justification_import: Option<BoxJustificationImport<Block>> +) -> Result<DefaultImportQueue<Block>, Error>Build the import queue for default sealing given the block import.
pub fn build_aura_queue_grandpa_pipeline(
- client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
+ client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
config: &Configuration,
task_manager: &TaskManager,
telemetry: &Option<Telemetry>,
- select_chain: LongestChain<TFullBackend<Block>, Block>,
- madara_backend: Arc<Backend<Block>>
-) -> Result<(DefaultImportQueue<Block>, BlockImportPipeline), Error>
Build a block import queue & pipeline for default sealing.
+ select_chain: LongestChain<TFullBackend<Block>, 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 Pipeline (authored blocks): 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..b570a7e816 100644 --- a/madara/import_queue/fn.build_manual_seal_queue_pipeline.html +++ b/madara/import_queue/fn.build_manual_seal_queue_pipeline.html @@ -1,9 +1,9 @@pub fn build_manual_seal_queue_pipeline(
- client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
+ client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
config: &Configuration,
task_manager: &TaskManager,
- madara_backend: Arc<Backend<Block>>
-) -> (DefaultImportQueue<Block>, BlockImportPipeline)
Build a block import queue & pipeline for manual/instant sealing.
+ 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 Pipeline: StarknetBlockImport -> Client
diff --git a/madara/import_queue/struct.BlockImportPipeline.html b/madara/import_queue/struct.BlockImportPipeline.html index f67a19c5e8..ccfc0705fc 100644 --- a/madara/import_queue/struct.BlockImportPipeline.html +++ b/madara/import_queue/struct.BlockImportPipeline.html @@ -1,9 +1,9 @@pub struct BlockImportPipeline {
- pub block_import: BoxBlockImport<Block>,
- pub grandpa_link: Option<LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>>,
+ pub block_import: BoxBlockImport<Block>,
+ pub grandpa_link: Option<LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>>,
}
Block import pipeline is a helper struct encapsulating the authored (own) block import and optionally a link (hook) to the Grandpa block import.
-block_import: BoxBlockImport<Block>
§grandpa_link: Option<LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>>
block_import: BoxBlockImport<Block>
§grandpa_link: Option<LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>>
type GrandpaLinkT = LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>;
Grandpa link (hook) type.
+type GrandpaLinkT = LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>;
Grandpa link (hook) type.
Import queue provides hooks via the Link trait that can be used to follow its progress.
pub fn create_full<A, C, G, P, BE>(
deps: FullDeps<A, C, G, P>
) -> 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,
- P: TransactionPool<Block = Block> + 'static,
- BE: Backend<Block> + 'static,
Instantiate all full RPC extensions.
+ 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, + P: TransactionPool<Block = Block> + 'static, + BE: Backend<Block> + 'static,Instantiate all full RPC extensions.
pub struct StarknetDeps<C, G: GenesisProvider, B: BlockT> {
+StarknetDeps in madara::rpc::starknet - Rust Struct madara::rpc::starknet::StarknetDeps
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
Extra dependencies for Starknet compatibility.
Fields§
§client: Arc<C>
The client instance to use.
-§madara_backend: Arc<Backend<B>>
Madara Backend.
-§overrides: Arc<OverrideHandle<B>>
Starknet data access overrides.
+§madara_backend: Arc<Backend<B>>
Madara Backend.
+§overrides: Arc<OverrideHandle<B>>
Starknet data access overrides.
§sync_service: Arc<SyncingService<B>>
The Substrate client sync service.
§starting_block: <B::Header as HeaderT>::Number
The starting block for the syncing.
§genesis_provider: Arc<G>
The genesis state data provider
-Trait Implementations§
source§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..fb0c2cf3d0 100644
--- a/madara/rpc/struct.FullDeps.html
+++ b/madara/rpc/struct.FullDeps.html
@@ -1,17 +1,17 @@
-FullDeps in madara::rpc - Rust pub struct FullDeps<A: ChainApi, C, G: GenesisProvider, P> {
+FullDeps in madara::rpc - Rust pub struct FullDeps<A: ChainApi, C, G: GenesisProvider, P> {
pub client: Arc<C>,
pub pool: Arc<P>,
pub graph: Arc<Pool<A>>,
pub deny_unsafe: DenyUnsafe,
- pub command_sink: Option<Sender<EngineCommand<Hash>>>,
- pub starknet: StarknetDeps<C, G, Block>,
+ pub command_sink: Option<Sender<EngineCommand<Hash>>>,
+ pub starknet: StarknetDeps<C, G, Block>,
}
Expand description
Full client dependencies.
Fields§
§client: Arc<C>
The client instance to use.
§pool: Arc<P>
Transaction pool instance.
§graph: Arc<Pool<A>>
Extrinsic pool graph instance.
§deny_unsafe: DenyUnsafe
Whether to deny unsafe calls
-§command_sink: Option<Sender<EngineCommand<Hash>>>
Manual seal command sink
-§starknet: StarknetDeps<C, G, Block>
Starknet dependencies
+§command_sink: Option<Sender<EngineCommand<Hash>>>
Manual seal command sink
+§starknet: StarknetDeps<C, G, Block>
Starknet dependencies
Auto Trait Implementations§
§impl<A, C, G, P> !RefUnwindSafe for FullDeps<A, C, G, P>
§impl<A, C, G, P> Send for FullDeps<A, C, G, P>where
C: Send + Sync,
G: Send + Sync,
diff --git a/madara/service/fn.new_chain_ops.html b/madara/service/fn.new_chain_ops.html
index bd9ccb1b2c..a904b3f417 100644
--- a/madara/service/fn.new_chain_ops.html
+++ b/madara/service/fn.new_chain_ops.html
@@ -1,3 +1,3 @@
new_chain_ops in madara::service - Rust Function madara::service::new_chain_ops
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>
\ No newline at end of file
+) -> Result<(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, Arc<TFullBackend<Block>>, BasicQueue<Block>, TaskManager, Arc<Backend<Block>>), Error>
\ No newline at end of file
diff --git a/madara/service/fn.new_full.html b/madara/service/fn.new_full.html
index 57317f1d08..3fa1ab20d4 100644
--- a/madara/service/fn.new_full.html
+++ b/madara/service/fn.new_full.html
@@ -1,6 +1,6 @@
new_full in madara::service - Rust pub fn new_full(
config: Configuration,
- sealing: SealingMode
+ sealing: SealingMode
) -> Result<TaskManager, Error>
Expand description
Builds a new service for a full client.
Arguments
diff --git a/madara/service/fn.new_partial.html b/madara/service/fn.new_partial.html
index b9cfd4a21c..e3e3dd5448 100644
--- a/madara/service/fn.new_partial.html
+++ b/madara/service/fn.new_partial.html
@@ -1,5 +1,5 @@
new_partial in madara::service - Rust Function madara::service::new_partial
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
- RuntimeApi: ConstructRuntimeApi<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>> + Send + Sync + 'static,
\ No newline at end of file
+) -> 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,
\ No newline at end of file
diff --git a/madara/service/fn.run_manual_seal_authorship.html b/madara/service/fn.run_manual_seal_authorship.html
index d3f13b9502..a6e6781ad4 100644
--- a/madara/service/fn.run_manual_seal_authorship.html
+++ b/madara/service/fn.run_manual_seal_authorship.html
@@ -1,12 +1,12 @@
run_manual_seal_authorship in madara::service - Rust Function madara::service::run_manual_seal_authorship
source · fn run_manual_seal_authorship(
- sealing: SealingMode,
- client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
- transaction_pool: Arc<FullPool<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>>,
- select_chain: LongestChain<TFullBackend<Block>, Block>,
- block_import: BoxBlockImport<Block>,
+ sealing: SealingMode,
+ client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
+ transaction_pool: Arc<FullPool<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>>,
+ select_chain: LongestChain<TFullBackend<Block>, Block>,
+ block_import: BoxBlockImport<Block>,
task_manager: &TaskManager,
prometheus_registry: Option<&Registry>,
- commands_stream: Option<Receiver<EngineCommand<Hash>>>,
+ commands_stream: Option<Receiver<EngineCommand<Hash>>>,
telemetry: Option<Telemetry>
) -> Result<(), Error>where
- RuntimeApi: ConstructRuntimeApi<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>> + Send + Sync + 'static,
\ No newline at end of file
+ RuntimeApi: ConstructRuntimeApi<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>> + Send + Sync + 'static,
\ No newline at end of file
diff --git a/madara/service/type.BasicImportQueue.html b/madara/service/type.BasicImportQueue.html
index 1bcceccfb0..ce01110c5e 100644
--- a/madara/service/type.BasicImportQueue.html
+++ b/madara/service/type.BasicImportQueue.html
@@ -1 +1 @@
-BasicImportQueue in madara::service - Rust Type Definition madara::service::BasicImportQueue
source · pub(crate) type BasicImportQueue = DefaultImportQueue<Block>;
\ No newline at end of file
+BasicImportQueue in madara::service - Rust Type Definition madara::service::BasicImportQueue
source · pub(crate) type BasicImportQueue = DefaultImportQueue<Block>;
\ No newline at end of file
diff --git a/madara/service/type.BoxBlockImport.html b/madara/service/type.BoxBlockImport.html
index fa065e3991..22ad028627 100644
--- a/madara/service/type.BoxBlockImport.html
+++ b/madara/service/type.BoxBlockImport.html
@@ -1 +1 @@
-BoxBlockImport in madara::service - Rust Type Definition madara::service::BoxBlockImport
source · type BoxBlockImport = BoxBlockImport<Block>;
\ No newline at end of file
+BoxBlockImport in madara::service - Rust Type Definition madara::service::BoxBlockImport
source · type BoxBlockImport = BoxBlockImport<Block>;
\ No newline at end of file
diff --git a/madara/service/type.ChainOpsResult.html b/madara/service/type.ChainOpsResult.html
index 6b974ee240..55e82c085d 100644
--- a/madara/service/type.ChainOpsResult.html
+++ b/madara/service/type.ChainOpsResult.html
@@ -1 +1 @@
-ChainOpsResult in madara::service - Rust Type Definition madara::service::ChainOpsResult
source · type ChainOpsResult = Result<(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, Arc<TFullBackend<Block>>, BasicQueue<Block>, TaskManager, Arc<Backend<Block>>), Error>;
\ No newline at end of file
+ChainOpsResult in madara::service - Rust Type Definition madara::service::ChainOpsResult
source · type ChainOpsResult = Result<(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, Arc<TFullBackend<Block>>, BasicQueue<Block>, TaskManager, Arc<Backend<Block>>), Error>;
\ No newline at end of file
diff --git a/madara/service/type.FullBackend.html b/madara/service/type.FullBackend.html
index d8510d2e63..a54a486b4f 100644
--- a/madara/service/type.FullBackend.html
+++ b/madara/service/type.FullBackend.html
@@ -1 +1 @@
-FullBackend in madara::service - Rust Type Definition madara::service::FullBackend
source · pub(crate) type FullBackend = TFullBackend<Block>;
\ No newline at end of file
+FullBackend in madara::service - Rust Type Definition madara::service::FullBackend
source · pub(crate) type FullBackend = TFullBackend<Block>;
\ No newline at end of file
diff --git a/madara/service/type.FullClient.html b/madara/service/type.FullClient.html
index 46b67f1066..aeb8a5be0a 100644
--- a/madara/service/type.FullClient.html
+++ b/madara/service/type.FullClient.html
@@ -1 +1 @@
-FullClient in madara::service - Rust Type Definition madara::service::FullClient
source · pub(crate) type FullClient = TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>;
\ No newline at end of file
+FullClient in madara::service - Rust Type Definition madara::service::FullClient
source · pub(crate) type FullClient = TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>;
\ No newline at end of file
diff --git a/madara/service/type.FullSelectChain.html b/madara/service/type.FullSelectChain.html
index d811c5c9df..387ef4fd6b 100644
--- a/madara/service/type.FullSelectChain.html
+++ b/madara/service/type.FullSelectChain.html
@@ -1 +1 @@
-FullSelectChain in madara::service - Rust
\ No newline at end of file
+FullSelectChain in madara::service - Rust Type Definition madara::service::FullSelectChain
source · pub(crate) type FullSelectChain = LongestChain<TFullBackend<Block>, Block>;
\ No newline at end of file
diff --git a/madara/starknet/type.MadaraBackend.html b/madara/starknet/type.MadaraBackend.html
index 0a7ba6d152..1e937b67cd 100644
--- a/madara/starknet/type.MadaraBackend.html
+++ b/madara/starknet/type.MadaraBackend.html
@@ -1 +1 @@
-MadaraBackend in madara::starknet - Rust
\ No newline at end of file
+MadaraBackend in madara::starknet - Rust Type Definition madara::starknet::MadaraBackend
source · pub type MadaraBackend = Backend<Block>;
\ No newline at end of file
diff --git a/madara_runtime/enum.OriginCaller.html b/madara_runtime/enum.OriginCaller.html
index 03ca268645..c861a75e0f 100644
--- a/madara_runtime/enum.OriginCaller.html
+++ b/madara_runtime/enum.OriginCaller.html
@@ -12,7 +12,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 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 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 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 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> Borrow<T> for Twhere
diff --git a/madara_runtime/enum.RuntimeCall.html b/madara_runtime/enum.RuntimeCall.html
index df6ed32965..ad9a6b1f4f 100644
--- a/madara_runtime/enum.RuntimeCall.html
+++ b/madara_runtime/enum.RuntimeCall.html
@@ -19,7 +19,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 moresource§impl GetCallMetadata for RuntimeCall
source§fn get_call_metadata(&self) -> CallMetadata
Return a [CallMetadata
], containing function and pallet name of the Call.source§fn get_module_names() -> &'static [&'static str]
Return all module names.source§fn get_call_names(module: &str) -> &'static [&'static str]
Return all function names for the given module
.source§impl GetDispatchInfo for RuntimeCall
source§fn get_dispatch_info(&self) -> DispatchInfo
Return a DispatchInfo
, containing relevant information of this dispatch. Read moresource§impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
source§impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
source§impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
source§impl PartialEq<RuntimeCall> for RuntimeCall
source§fn eq(&self, other: &RuntimeCall) -> bool
source§impl GetCallMetadata for RuntimeCall
source§fn get_call_metadata(&self) -> CallMetadata
Return a [CallMetadata
], containing function and pallet name of the Call.source§fn get_module_names() -> &'static [&'static str]
Return all module names.source§fn get_call_names(module: &str) -> &'static [&'static str]
Return all function names for the given module
.source§impl GetDispatchInfo for RuntimeCall
source§fn get_dispatch_info(&self) -> DispatchInfo
Return a DispatchInfo
, containing relevant information of this dispatch. Read moresource§impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
source§impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
source§impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall
source§impl PartialEq<RuntimeCall> for RuntimeCall
source§fn eq(&self, other: &RuntimeCall) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl TypeInfo for RuntimeCall
source§impl UnfilteredDispatchable for RuntimeCall
§type RuntimeOrigin = RuntimeOrigin
The origin type of the runtime, (i.e. frame_system::Config::RuntimeOrigin
).source§fn dispatch_bypass_filter(
self,
diff --git a/madara_runtime/enum.RuntimeError.html b/madara_runtime/enum.RuntimeError.html
index e0e3f64185..81d54064f7 100644
--- a/madara_runtime/enum.RuntimeError.html
+++ b/madara_runtime/enum.RuntimeError.html
@@ -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 moresource§impl From<Error<Runtime>> for RuntimeError
source§impl From<Error<Runtime>> for RuntimeError
source§impl TryInto<Error<Runtime>> for RuntimeError
source§impl TryInto<Error<Runtime>> for RuntimeError
source§impl TypeInfo for RuntimeError
source§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§
source§impl From<Error<Runtime>> for RuntimeError
source§impl From<Error<Runtime>> for RuntimeError
source§impl TryInto<Error<Runtime>> for RuntimeError
source§impl TryInto<Error<Runtime>> for RuntimeError
source§impl TypeInfo for RuntimeError
source§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§
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/madara_runtime/enum.RuntimeEvent.html b/madara_runtime/enum.RuntimeEvent.html
index 0adedb867c..f13c3bc62e 100644
--- a/madara_runtime/enum.RuntimeEvent.html
+++ b/madara_runtime/enum.RuntimeEvent.html
@@ -12,7 +12,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 moresource§impl From<Event<Runtime>> for RuntimeEvent
source§impl From<Event> for RuntimeEvent
source§impl PartialEq<RuntimeEvent> for RuntimeEvent
source§fn eq(&self, other: &RuntimeEvent) -> bool
source§impl From<Event<Runtime>> for RuntimeEvent
source§impl From<Event> for RuntimeEvent
source§impl PartialEq<RuntimeEvent> for RuntimeEvent
source§fn eq(&self, other: &RuntimeEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl TryInto<Event<Runtime>> for RuntimeEvent
source§impl TryInto<Event> for RuntimeEvent
source§impl TypeInfo for RuntimeEvent
source§impl EncodeLike<RuntimeEvent> for RuntimeEvent
source§impl Eq for RuntimeEvent
source§impl StructuralEq for RuntimeEvent
source§impl StructuralPartialEq for RuntimeEvent
Auto Trait Implementations§
§impl RefUnwindSafe for RuntimeEvent
§impl Send for RuntimeEvent
§impl Sync for RuntimeEvent
§impl Unpin for RuntimeEvent
§impl UnwindSafe for RuntimeEvent
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/madara_runtime/struct.BlockLength.html b/madara_runtime/struct.BlockLength.html
index f998986c92..46d3e3a20e 100644
--- a/madara_runtime/struct.BlockLength.html
+++ b/madara_runtime/struct.BlockLength.html
@@ -1,5 +1,5 @@
BlockLength in madara_runtime - Rust Struct madara_runtime::BlockLength
source · pub struct BlockLength;
Implementations§
source§impl BlockLength
Trait Implementations§
source§impl<_I: From<BlockLength>> Get<_I> for BlockLength
Auto Trait Implementations§
§impl RefUnwindSafe for BlockLength
§impl Send for BlockLength
§impl Sync for BlockLength
§impl Unpin for BlockLength
§impl UnwindSafe for BlockLength
Blanket Implementations§
Trait Implementations§
source§impl<_I: From<BlockLength>> Get<_I> for BlockLength
Auto Trait Implementations§
§impl RefUnwindSafe for BlockLength
§impl Send for BlockLength
§impl Sync for BlockLength
§impl Unpin for BlockLength
§impl UnwindSafe for BlockLength
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/madara_runtime/struct.BlockWeights.html b/madara_runtime/struct.BlockWeights.html
index 50e51d4ef3..009a019c0d 100644
--- a/madara_runtime/struct.BlockWeights.html
+++ b/madara_runtime/struct.BlockWeights.html
@@ -1,6 +1,6 @@
BlockWeights in madara_runtime - Rust Struct madara_runtime::BlockWeights
source · pub struct BlockWeights;
Expand description
We allow for 2 seconds of compute with a 6 second average block time.
Implementations§
source§impl BlockWeights
Trait Implementations§
source§impl<_I: From<BlockWeights>> Get<_I> for BlockWeights
Auto Trait Implementations§
§impl RefUnwindSafe for BlockWeights
§impl Send for BlockWeights
§impl Sync for BlockWeights
§impl Unpin for BlockWeights
§impl UnwindSafe for BlockWeights
Blanket Implementations§
Trait Implementations§
source§impl<_I: From<BlockWeights>> Get<_I> for BlockWeights
Auto Trait Implementations§
§impl RefUnwindSafe for BlockWeights
§impl Send for BlockWeights
§impl Sync for BlockWeights
§impl Unpin for BlockWeights
§impl UnwindSafe for BlockWeights
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/madara_runtime/struct.DefaultChainId.html b/madara_runtime/struct.DefaultChainId.html
index aa9c2fb009..eb0b4b7562 100644
--- a/madara_runtime/struct.DefaultChainId.html
+++ b/madara_runtime/struct.DefaultChainId.html
@@ -1,5 +1,5 @@
DefaultChainId in madara_runtime - Rust Struct madara_runtime::DefaultChainId
source · pub struct DefaultChainId {}
Expand description
Default ChainId MADARA
-Trait Implementations§
source§impl Get<Felt252Wrapper> for DefaultChainId
source§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§
Trait Implementations§
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§
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/madara_runtime/struct.Runtime.html b/madara_runtime/struct.Runtime.html
index f3c70a3093..6d3d0c5b65 100644
--- a/madara_runtime/struct.Runtime.html
+++ b/madara_runtime/struct.Runtime.html
@@ -1,6 +1,13 @@
Runtime in madara_runtime - Rust Struct madara_runtime::Runtime
source · pub struct Runtime;
Implementations§
Trait Implementations§
source§impl AccountNonceApiV1<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>)>>, <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, u32> for Runtime
source§fn account_nonce(account: AccountId) -> Index
Get current account nonce of given AccountId
.source§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
source§fn slot_duration() -> SlotDuration
Returns the slot duration for Aura. Read more
Return the current set of authorities.source§impl BlockBuilderV6<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>)>>> for Runtime
source§fn apply_extrinsic(
extrinsic: <Block as BlockT>::Extrinsic
-) -> ApplyExtrinsicResult
Apply the given extrinsic. Read moresource§fn finalize_block() -> <Block as BlockT>::Header
Finish the current block.source§fn inherent_extrinsics(data: InherentData) -> Vec<<Block as BlockT>::Extrinsic>
Generate inherent extrinsics. The inherent data will vary from chain to chain.source§fn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult
Check that the inherents are valid. The inherent data will vary from chain to chain.source§impl CallerTrait<<Runtime as Config>::AccountId> for OriginCaller
source§fn into_system(self) -> Option<RawOrigin<<Runtime as Config>::AccountId>>
Extract the signer from the message if it is a Signed
origin.source§fn as_system_ref(&self) -> Option<&RawOrigin<<Runtime as Config>::AccountId>>
Extract a reference to the system-level RawOrigin
if it is that.§fn as_signed(&self) -> Option<&AccountId>
Extract the signer from it if a system Signed
origin, None
otherwise.source§impl Config for Runtime
+) -> ApplyExtrinsicResultApply the given extrinsic. Read moresource§fn finalize_block() -> <Block as BlockT>::Header
Finish the current block.source§fn inherent_extrinsics(data: InherentData) -> Vec<<Block as BlockT>::Extrinsic>
Generate inherent extrinsics. The inherent data will vary from chain to chain.source§fn check_inherents(block: Block, data: InherentData) -> CheckInherentsResult
Check that the inherents are valid. The inherent data will vary from chain to chain.source§impl CallerTrait<<Runtime as Config>::AccountId> for OriginCaller
source§fn into_system(self) -> Option<RawOrigin<<Runtime as Config>::AccountId>>
Extract the signer from the message if it is a Signed
origin.source§fn as_system_ref(&self) -> Option<&RawOrigin<<Runtime as Config>::AccountId>>
Extract a reference to the system-level RawOrigin
if it is that.§fn as_signed(&self) -> Option<&AccountId>
Extract the signer from it if a system Signed
origin, None
otherwise.source§impl Config for Runtime
Deterministic finality mechanism used for block finalization.
+TODO: Comment and explain the rationale behind the configuration items.
+§type RuntimeEvent = RuntimeEvent
The event type of this module.§type WeightInfo = ()
Weights for this pallet.§type MaxAuthorities = ConstU32<32>
Max Authorities in use§type MaxSetIdSessionEntries = ConstU64<0>
The maximum number of entries to keep in the set id to session index mapping. Read more§type MaxNominators = ConstU32<1000>
The maximum number of nominators for each validator.§type KeyOwnerProof = Void
The proof of key ownership, used for validating equivocation reports
+The proof include the session index and validator count of the
+session at which the equivocation occurred.§type EquivocationReportSystem = ()
The equivocation handling subsystem, defines methods to check/report an
+offence and for submitting a transaction to report an equivocation
+(from an offchain context).source§impl Config for Runtime
Configure the Starknet pallet in pallets/starknet.
+§type SystemHash = PedersenHasher
The hashing function to use.§type TimestampProvider = Pallet<Runtime>
The block time§type UnsignedPriority = UnsignedPriority
A configuration for base priority of unsigned transactions. Read more§type TransactionLongevity = TransactionLongevity
A configuration for longevity of transactions. Read more§type DisableTransactionFee = ConstBool<false>
A bool to disable transaction fees and make all transactions free§type DisableNonceValidation = ConstBool<false>
A bool to disable Nonce validation§type ProtocolVersion = ProtocolVersion
§type ProgramHash = ProgramHash
§type L1GasPrices = L1GasPrices
The gas pricesource§impl Config for Runtime
§type BaseCallFilter = Everything
The basic call filter to use in dispatchable.
@@ -13,7 +20,7 @@ FRAME SYSTEM PALLET<
§type Block = Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>)>>
The Block type.
-§type RuntimeEvent = RuntimeEvent
The ubiquitous event type.
+§type RuntimeEvent = RuntimeEvent
The ubiquitous event type.
§type RuntimeOrigin = RuntimeOrigin
The ubiquitous origin type.
§type BlockHashCount = BlockHashCount
Maximum number of block number to block hash mappings to keep (oldest pruned first).
§type DbWeight = RocksDbWeight
The weight of database operations that the runtime can invoke.
@@ -26,27 +33,20 @@ FRAME SYSTEM PALLET<
§type SystemWeightInfo = ()
Weight information for the extrinsics of this pallet.
§type SS58Prefix = SS58Prefix
This is used as an identifier of the chain. 42 is the generic substrate prefix.
§type MaxConsumers = ConstU32<16>
The maximum number of consumers allowed on a single account.§type MaxConsumers = ConstU32<16>
The maximum number of consumers allowed on a single account.source§impl Config for Runtime
Authority-based consensus protocol used for block production.
+TODO: Comment and explain the rationale behind the configuration items.
+§type AuthorityId = Public
The identifier type for an authority.§type DisabledValidators = ()
A way to check whether a given validator is disabled and should not be authoring blocks.
+Blocks authored by a disabled validator will lead to a panic as part of this module’s
+initialization.§type MaxAuthorities = ConstU32<32>
The maximum number of authorities that the pallet can hold.§type AllowMultipleBlocksPerSlot = ConstBool<false>
Whether to allow block authors to create multiple blocks per slot. Read moresource§impl Config for Runtime
OTHER 3RD PARTY FRAME PALLETS
Timestamp manipulation.
For instance, we need it to set the timestamp of the Starknet block.
§type OnTimestampSet = ConsensusOnTimestampSet<Runtime>
Something which can be notified (e.g. another pallet) when the timestamp is set. Read more§type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>
The minimum period between blocks. Read more§type WeightInfo = ()
Weight information for extrinsics in this pallet.source§impl Config for Runtime
Configure the Starknet pallet in pallets/starknet.
-§type SystemHash = PedersenHasher
The hashing function to use.§type TimestampProvider = Pallet<Runtime>
The block time§type UnsignedPriority = UnsignedPriority
A configuration for base priority of unsigned transactions. Read more§type TransactionLongevity = TransactionLongevity
A configuration for longevity of transactions. Read more§type DisableTransactionFee = ConstBool<false>
A bool to disable transaction fees and make all transactions free§type DisableNonceValidation = ConstBool<false>
A bool to disable Nonce validation§type ProtocolVersion = ProtocolVersion
§type ProgramHash = ProgramHash
§type L1GasPrices = L1GasPrices
The gas pricesource§impl Config for Runtime
Deterministic finality mechanism used for block finalization.
-TODO: Comment and explain the rationale behind the configuration items.
-§type RuntimeEvent = RuntimeEvent
The event type of this module.§type WeightInfo = ()
Weights for this pallet.§type MaxAuthorities = ConstU32<32>
Max Authorities in use§type MaxSetIdSessionEntries = ConstU64<0>
The maximum number of entries to keep in the set id to session index mapping. Read more§type MaxNominators = ConstU32<1000>
The maximum number of nominators for each validator.§type KeyOwnerProof = Void
The proof of key ownership, used for validating equivocation reports
-The proof include the session index and validator count of the
-session at which the equivocation occurred.§type EquivocationReportSystem = ()
The equivocation handling subsystem, defines methods to check/report an
-offence and for submitting a transaction to report an equivocation
-(from an offchain context).source§impl Config for Runtime
Authority-based consensus protocol used for block production.
-TODO: Comment and explain the rationale behind the configuration items.
-§type AuthorityId = Public
The identifier type for an authority.§type DisabledValidators = ()
A way to check whether a given validator is disabled and should not be authoring blocks.
-Blocks authored by a disabled validator will lead to a panic as part of this module’s
-initialization.§type MaxAuthorities = ConstU32<32>
The maximum number of authorities that the pallet can hold.§type AllowMultipleBlocksPerSlot = ConstBool<false>
Whether to allow block authors to create multiple blocks per slot. Read moresource§impl ConvertTransactionRuntimeApiV1<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
§type OnTimestampSet = ConsensusOnTimestampSet<Runtime>
Something which can be notified (e.g. another pallet) when the timestamp is set. Read more§type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>
The minimum period between blocks. Read more§type WeightInfo = ()
Weight information for extrinsics in this pallet.
source§impl ConvertTransactionRuntimeApiV1<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
source§fn convert_account_transaction(
transaction: AccountTransaction
) -> UncheckedExtrinsic
Converts the transaction to an UncheckedExtrinsic for submission to the pool.source§fn convert_l1_transaction(
transaction: L1HandlerTransaction
-) -> UncheckedExtrinsic
Converts the L1 Message transaction to an UncheckedExtrinsic for submission to the pool.source§fn convert_error(error: DispatchError) -> StarknetTransactionExecutionError
Converts the DispatchError to an understandable error for the clientsource§impl CoreV4<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
source§impl EnsureInherentsAreFirst<<Runtime as Config>::Block> for Runtime
source§fn ensure_inherents_are_first(
+) -> UncheckedExtrinsic
Converts the L1 Message transaction to an UncheckedExtrinsic for submission to the pool.source§fn convert_error(error: DispatchError) -> StarknetTransactionExecutionError
Converts the DispatchError to an understandable error for the clientsource§impl CoreV4<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
source§impl GetRuntimeBlockType for Runtime
§type RuntimeBlock = <Runtime as Config>::Block
The RuntimeBlock
type.source§impl GrandpaApiV3<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
Get the current GRANDPA authorities and weights. This should not change except
for when changes are scheduled and the corresponding delay has passed. Read moresource§fn current_set_id() -> SetId
Get current GRANDPA authority set id.source§fn submit_report_equivocation_unsigned_extrinsic(
@@ -83,22 +83,22 @@
address: ContractAddress,
function_selector: EntryPointSelector,
calldata: Calldata
-) -> Result<Vec<Felt252Wrapper>, DispatchError>
Returns a Call
response.source§fn nonce(address: ContractAddress) -> Nonce
Returns the nonce associated with the given address in the given blocksource§fn contract_class_hash_by_address(address: ContractAddress) -> ClassHash
Returns the contract class hash at the given address.source§fn contract_class_by_class_hash(class_hash: ClassHash) -> Option<ContractClass>
Returns the contract class for the given class hash.source§fn chain_id() -> Felt252Wrapper
Returns the chain id.source§fn program_hash() -> Felt252Wrapper
Returns the Starknet OS Cairo program hash.source§fn config_hash() -> StarkHash
Returns the Starknet config hash.source§fn fee_token_addresses() -> FeeTokenAddresses
Returns the fee token address.source§fn is_transaction_fee_disabled() -> bool
Return is fee disabled in statesource§fn estimate_fee(
+) -> Result<Vec<Felt252Wrapper>, DispatchError>
Returns a Call
response.source§fn nonce(address: ContractAddress) -> Nonce
Returns the nonce associated with the given address in the given blocksource§fn contract_class_hash_by_address(address: ContractAddress) -> ClassHash
Returns the contract class hash at the given address.source§fn contract_class_by_class_hash(class_hash: ClassHash) -> Option<ContractClass>
Returns the contract class for the given class hash.source§fn program_hash() -> Felt252Wrapper
Returns the Starknet OS Cairo program hash.source§fn config_hash() -> StarkHash
Returns the Starknet config hash.source§fn fee_token_addresses() -> FeeTokenAddresses
Returns the fee token address.source§fn is_transaction_fee_disabled() -> bool
Return is fee disabled in statesource§fn estimate_fee(
transactions: Vec<AccountTransaction>,
- simulation_flags: SimulationFlags
+ simulation_flags: SimulationFlags
) -> Result<Vec<(u128, u128)>, DispatchError>
Returns fee estimatesource§fn re_execute_transactions(
transactions_before: Vec<Transaction>,
transactions_to_trace: Vec<Transaction>,
with_state_diff: bool
-) -> Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>
Used to re-execute transactions from a past block and return their trace Read moresource§fn estimate_message_fee(
+) -> Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>
Used to re-execute transactions from a past block and return their trace Read moresource§fn estimate_message_fee(
message: L1HandlerTransaction
) -> Result<(u128, u128, u128), DispatchError>
Returns message fee estimatesource§fn simulate_transactions(
transactions: Vec<AccountTransaction>,
- simulation_flags: SimulationFlags
-) -> Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>
Simulates transactions and returns their tracesource§fn simulate_message(
+ simulation_flags: SimulationFlags
+) -> Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>
Simulates transactions and returns their tracesource§fn simulate_message(
message: L1HandlerTransaction,
- simulation_flags: SimulationFlags
-) -> Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>
Simulates single L1 Message and returns its tracesource§fn extrinsic_filter(xts: Vec<<Block as BlockT>::Extrinsic>) -> Vec<Transaction>
Filters extrinsic transactions to return only Starknet transactions Read moresource§fn get_index_and_tx_for_tx_hash(
+ simulation_flags: SimulationFlags
+) -> Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>
Simulates single L1 Message and returns its tracesource§fn extrinsic_filter(xts: Vec<<Block as BlockT>::Extrinsic>) -> Vec<Transaction>
Filters extrinsic transactions to return only Starknet transactions Read moresource§fn get_index_and_tx_for_tx_hash(
extrinsics: Vec<<Block as BlockT>::Extrinsic>,
tx_hash: TransactionHash
) -> Option<(u32, Transaction)>
source§fn get_tx_messages_to_l1(tx_hash: TransactionHash) -> Vec<MessageToL1>
Return messages sent to L1 during tx executionsource§fn get_events_for_tx_by_hash(tx_hash: TransactionHash) -> Vec<StarknetEvent>
source§fn get_tx_execution_outcome(tx_hash: TransactionHash) -> Option<Vec<u8>>
Return the outcome of the tx executionsource§fn get_block_context() -> BlockContext
Return the block contextsource§fn l1_nonce_unused(nonce: Nonce) -> bool
Check if L1 Message Nonce has not been usedsource§impl TaggedTransactionQueueV3<Block<Header<u32, BlakeTwo256>, UncheckedExtrinsic<MultiAddress<<<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId, ()>, RuntimeCall, MultiSignature, (CheckNonZeroSender<Runtime>, CheckSpecVersion<Runtime>, CheckTxVersion<Runtime>, CheckGenesis<Runtime>, CheckMortality<Runtime>, CheckNonce<Runtime>, CheckWeight<Runtime>)>>> for Runtime
source§fn validate_transaction(
diff --git a/madara_runtime/struct.RuntimeApiImpl.html b/madara_runtime/struct.RuntimeApiImpl.html
index 4fc911cc15..a7fb4e8ebf 100644
--- a/madara_runtime/struct.RuntimeApiImpl.html
+++ b/madara_runtime/struct.RuntimeApiImpl.html
@@ -72,27 +72,27 @@
__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.source§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.source§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,
DispatchError: UnwindSafe + RefUnwindSafe,
- StarknetTransactionExecutionError: UnwindSafe + RefUnwindSafe,
- __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
source§fn convert_account_transaction(
+ StarknetTransactionExecutionError: UnwindSafe + RefUnwindSafe,
+ __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.source§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
-) -> Result<<Block as Block>::Extrinsic, ApiError>
Converts the L1 Message transaction to an UncheckedExtrinsic for submission to the pool.source§fn convert_error(
+) -> Result<<Block as Block>::Extrinsic, ApiError>
Converts the L1 Message transaction to an UncheckedExtrinsic for submission to the pool.§fn convert_error(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
error: DispatchError
-) -> Result<StarknetTransactionExecutionError, ApiError>
Converts the DispatchError to an understandable error for the clientsource§impl<__SrApiBlock__, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> Core<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
+) -> Result<StarknetTransactionExecutionError, ApiError>
Converts the DispatchError to an understandable error for the clientsource§impl<__SrApiBlock__, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> Core<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where
RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,
&'static RuntimeApiImplCall: Send,
RuntimeVersion: UnwindSafe + RefUnwindSafe,
@@ -198,7 +198,7 @@
&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 moresource§impl<__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 more
source§impl<__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,
@@ -206,23 +206,23 @@
Result<StarkFelt, DispatchError>: UnwindSafe + RefUnwindSafe,
EntryPointSelector: UnwindSafe + RefUnwindSafe,
Calldata: UnwindSafe + RefUnwindSafe,
- Result<Vec<Felt252Wrapper>, DispatchError>: UnwindSafe + RefUnwindSafe,
+ Result<Vec<Felt252Wrapper>, DispatchError>: UnwindSafe + RefUnwindSafe,
Nonce: UnwindSafe + RefUnwindSafe,
ClassHash: UnwindSafe + RefUnwindSafe,
Option<ContractClass>: UnwindSafe + RefUnwindSafe,
- Felt252Wrapper: UnwindSafe + RefUnwindSafe,
+ Felt252Wrapper: UnwindSafe + RefUnwindSafe,
StarkHash: UnwindSafe + RefUnwindSafe,
FeeTokenAddresses: UnwindSafe + RefUnwindSafe,
bool: UnwindSafe + RefUnwindSafe,
Vec<AccountTransaction>: UnwindSafe + RefUnwindSafe,
- SimulationFlags: UnwindSafe + RefUnwindSafe,
+ SimulationFlags: UnwindSafe + RefUnwindSafe,
Result<Vec<(u128, u128)>, DispatchError>: UnwindSafe + RefUnwindSafe,
Vec<Transaction>: UnwindSafe + RefUnwindSafe,
- Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe,
+ Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe,
L1HandlerTransaction: UnwindSafe + RefUnwindSafe,
Result<(u128, u128, u128), DispatchError>: UnwindSafe + RefUnwindSafe,
- Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>: UnwindSafe + RefUnwindSafe,
- Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe,
+ Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>: UnwindSafe + RefUnwindSafe,
+ Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe,
Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,
TransactionHash: UnwindSafe + RefUnwindSafe,
Option<(u32, Transaction)>: UnwindSafe + RefUnwindSafe,
@@ -230,94 +230,94 @@
Vec<Event>: UnwindSafe + RefUnwindSafe,
Option<Vec<u8>>: UnwindSafe + RefUnwindSafe,
BlockContext: UnwindSafe + RefUnwindSafe,
- __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,
source§fn nonce(
+ __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 blocksource§fn get_storage_at(
+) -> Result<Nonce, ApiError>
Returns the nonce associated with the given address in the given block§fn get_storage_at(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
address: ContractAddress,
key: StorageKey
-) -> Result<Result<StarkFelt, DispatchError>, ApiError>
Returns a storage slot valuesource§fn call(
+) -> Result<Result<StarkFelt, DispatchError>, ApiError>
Returns a storage slot value§fn call(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
address: ContractAddress,
function_selector: EntryPointSelector,
calldata: Calldata
-) -> Result<Result<Vec<Felt252Wrapper, Global>, DispatchError>, ApiError>
Returns a Call
response.source§fn contract_class_hash_by_address(
+) -> Result<Result<Vec<Felt252Wrapper, Global>, DispatchError>, 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.source§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.source§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.source§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.source§fn config_hash(
+) -> Result<Felt252Wrapper, ApiError>
Returns the Starknet OS Cairo program hash.§fn config_hash(
&self,
__runtime_api_at_param__: <Block as Block>::Hash
-) -> Result<StarkFelt, ApiError>
Returns the Starknet config hash.source§fn fee_token_addresses(
+) -> Result<StarkFelt, ApiError>
Returns the Starknet config hash.§fn fee_token_addresses(
&self,
__runtime_api_at_param__: <Block as Block>::Hash
-) -> Result<FeeTokenAddresses, ApiError>
Returns the fee token address.source§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<Vec<(u128, u128), Global>, DispatchError>, ApiError>
Returns fee estimatesource§fn estimate_message_fee(
+ simulation_flags: SimulationFlags
+) -> Result<Result<Vec<(u128, u128), Global>, DispatchError>, ApiError>
Returns fee estimate§fn estimate_message_fee(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
message: L1HandlerTransaction
-) -> Result<Result<(u128, u128, u128), DispatchError>, ApiError>
Returns message fee estimatesource§fn simulate_message(
+) -> Result<Result<(u128, u128, u128), DispatchError>, ApiError>
Returns message fee estimate§fn simulate_message(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
message: L1HandlerTransaction,
- simulation_flags: SimulationFlags
-) -> Result<Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError>
Simulates single L1 Message and returns its tracesource§fn simulate_transactions(
+ simulation_flags: SimulationFlags
+) -> Result<Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError>
Simulates single L1 Message and returns its trace§fn simulate_transactions(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
transactions: Vec<AccountTransaction, Global>,
- simulation_flags: SimulationFlags
-) -> Result<Result<Vec<(CommitmentStateDiff, Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>), Global>, DispatchError>, ApiError>
Simulates transactions and returns their tracesource§fn extrinsic_filter(
+ simulation_flags: SimulationFlags
+) -> Result<Result<Vec<(CommitmentStateDiff, Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>), Global>, DispatchError>, ApiError>
Simulates transactions and returns their trace§fn 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 moresource§fn re_execute_transactions(
+) -> Result<Vec<Transaction, Global>, ApiError>
Filters extrinsic transactions to return only Starknet transactions Read more§fn 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>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError>
Used to re-execute transactions from a past block and return their trace Read moresource§fn get_index_and_tx_for_tx_hash(
+) -> Result<Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>), Global>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError>
Used to re-execute transactions from a past block and return their trace Read more§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>
source§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>
source§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 executionsource§fn get_block_context(
+) -> Result<Option<Vec<u8, Global>>, ApiError>
Return the outcome of the tx execution§fn get_block_context(
&self,
__runtime_api_at_param__: <Block as Block>::Hash
-) -> Result<BlockContext, ApiError>
Return the block contextsource§fn is_transaction_fee_disabled(
+) -> Result<BlockContext, ApiError>
Return the block context§fn is_transaction_fee_disabled(
&self,
__runtime_api_at_param__: <Block as Block>::Hash
-) -> Result<bool, ApiError>
Return is fee disabled in statesource§fn get_tx_messages_to_l1(
+) -> Result<bool, ApiError>
Return is fee disabled in state§fn 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 executionsource§fn l1_nonce_unused(
+) -> Result<Vec<MessageToL1, Global>, ApiError>
Return messages sent to L1 during tx execution§fn l1_nonce_unused(
&self,
__runtime_api_at_param__: <Block as Block>::Hash,
nonce: Nonce
diff --git a/madara_runtime/struct.RuntimeOrigin.html b/madara_runtime/struct.RuntimeOrigin.html
index 26f32addcf..e8cf6cc9b4 100644
--- a/madara_runtime/struct.RuntimeOrigin.html
+++ b/madara_runtime/struct.RuntimeOrigin.html
@@ -3,9 +3,9 @@
Implementations§
Trait Implementations§
source§impl Clone for RuntimeOrigin
source§fn clone(&self) -> RuntimeOrigin
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 RuntimeOrigin
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 RuntimeOrigin
source§impl From<RuntimeOrigin> for Result<Origin<Runtime>, RuntimeOrigin>
source§fn from(val: RuntimeOrigin) -> Self
NOTE: converting to pallet origin loses the origin filter information.
+Trait Implementations§
source§impl Clone for RuntimeOrigin
source§fn clone(&self) -> RuntimeOrigin
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 RuntimeOrigin
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 RuntimeOrigin
source§impl From<RuntimeOrigin> for Result<Origin<Runtime>, RuntimeOrigin>
source§fn from(val: RuntimeOrigin) -> Self
NOTE: converting to pallet origin loses the origin filter information.
source§impl OriginTrait for RuntimeOrigin
§type PalletsOrigin = OriginCaller
The caller origin, overarching type of all pallets origins.source§fn add_filter(&mut self, filter: impl Fn(&Self::Call) -> bool + 'static)
Add a filter to the origin.source§fn reset_filter(&mut self)
Reset origin filters to default one, i.e frame_system::Config::BaseCallFilter
.source§fn set_caller_from(&mut self, other: impl Into<Self>)
Replace the caller with caller from the other originsource§fn filter_call(&self, call: &Self::Call) -> bool
Filter the call if caller is not root, if false is returned then the call must be filtered
out. Read moresource§fn into_caller(self) -> Self::PalletsOrigin
Consume self
and return the caller.source§fn try_with_caller<R>(
self,
diff --git a/madara_runtime/struct.Sealing.html b/madara_runtime/struct.Sealing.html
index 71b1895d45..095ac69334 100644
--- a/madara_runtime/struct.Sealing.html
+++ b/madara_runtime/struct.Sealing.html
@@ -3,7 +3,7 @@
This needs to be executed in an externalities provided environment.
sourcepub fn get() -> SealingMode
Returns the value of this parameter type.
This needs to be executed in an externalities provided environment.
-Trait Implementations§
source§impl<_I: From<SealingMode>> Get<_I> for Sealing
source§impl TypedGet for Sealing
§type Type = SealingMode
The type which is returned.source§fn get() -> SealingMode
Return the current value.Auto Trait Implementations§
§impl RefUnwindSafe for Sealing
§impl Send for Sealing
§impl Sync for Sealing
§impl Unpin for Sealing
§impl UnwindSafe for Sealing
Blanket Implementations§
Trait Implementations§
source§impl<_I: From<SealingMode>> Get<_I> for Sealing
source§impl TypedGet for Sealing
§type Type = SealingMode
The type which is returned.source§fn get() -> SealingMode
Return the current value.Auto Trait Implementations§
§impl RefUnwindSafe for Sealing
§impl Send for Sealing
§impl Sync for Sealing
§impl Unpin for Sealing
§impl UnwindSafe for Sealing
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/madara_runtime/type.StarknetHasher.html b/madara_runtime/type.StarknetHasher.html
index 58130e2645..ff77b5c81f 100644
--- a/madara_runtime/type.StarknetHasher.html
+++ b/madara_runtime/type.StarknetHasher.html
@@ -1,2 +1,2 @@
-StarknetHasher in madara_runtime - Rust Type Definition madara_runtime::StarknetHasher
source · pub type StarknetHasher = PedersenHasher;
Expand description
Import the types.
+StarknetHasher in madara_runtime - Rust Type Definition madara_runtime::StarknetHasher
source · pub type StarknetHasher = PedersenHasher;
Expand description
Import the types.
\ No newline at end of file
diff --git a/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html b/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html
index 748d1fe03d..d97d388d28 100644
--- a/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html
+++ b/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html
@@ -1,12 +1,12 @@
CommitmentStateDiffWorker in mc_commitment_state_diff - Rust pub struct CommitmentStateDiffWorker<B: BlockT, C, H> { /* private fields */ }
Implementations§
source§impl<B: BlockT, C, H> CommitmentStateDiffWorker<B, C, H>where
C: BlockchainEvents<B>,
Trait Implementations§
source§impl<B: BlockT, C, H> Stream for CommitmentStateDiffWorker<B, C, H>where
C: ProvideRuntimeApi<B> + HeaderBackend<B>,
- C::Api: StarknetRuntimeApi<B>,
- H: HasherT + Unpin,
source§fn poll_next(
+ C::Api: StarknetRuntimeApi<B>,
+ H: HasherT + Unpin,
source§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_messages/error/enum.L1MessagesWorkerError.html b/mc_l1_messages/error/enum.L1MessagesWorkerError.html
index e916691614..a8421df53e 100644
--- a/mc_l1_messages/error/enum.L1MessagesWorkerError.html
+++ b/mc_l1_messages/error/enum.L1MessagesWorkerError.html
@@ -1,16 +1,16 @@
L1MessagesWorkerError in mc_l1_messages::error - Rust 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§
source§impl<PE: Debug> Debug for L1MessagesWorkerError<PE>
source§impl<PE> Display for L1MessagesWorkerError<PE>
source§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§
source§impl<PE: Debug> Debug for L1MessagesWorkerError<PE>
source§impl<PE> Display for L1MessagesWorkerError<PE>
source§impl<PE> Error for L1MessagesWorkerError<PE>where
PE: Error + 'static,
- Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl<PE> From<DbError> for L1MessagesWorkerError<PE>
source§impl<PE> From<Error> for L1MessagesWorkerError<PE>
source§impl<PE> From<ParseError> for L1MessagesWorkerError<PE>
source§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,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl<PE> From<DbError> for L1MessagesWorkerError<PE>
source§impl<PE> From<Error> for L1MessagesWorkerError<PE>
source§impl<PE> From<ParseError> for L1MessagesWorkerError<PE>
source§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§
source§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 955503df65..4116468b36 100644
--- a/mc_l1_messages/worker/fn.run_worker.html
+++ b/mc_l1_messages/worker/fn.run_worker.html
@@ -2,9 +2,9 @@
config: 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,
\ 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 deda2ce78b..994b94c6a3 100644
--- a/mc_l1_messages/worker/struct.EthereumClientConfig.html
+++ b/mc_l1_messages/worker/struct.EthereumClientConfig.html
@@ -1,11 +1,11 @@
-EthereumClientConfig in mc_l1_messages::worker - Rust Struct mc_l1_messages::worker::EthereumClientConfig
source · pub struct EthereumClientConfig {
- pub provider: EthereumProviderConfig,
- pub wallet: Option<EthereumWalletConfig>,
- pub contracts: StarknetContracts,
-}
Fields§
§provider: EthereumProviderConfig
§wallet: Option<EthereumWalletConfig>
§contracts: StarknetContracts
Implementations§
source§impl EthereumClientConfig
sourcepub fn from_json_file(path: &PathBuf) -> Result<EthereumClientConfig, Error>
Trait Implementations§
source§impl Clone for EthereumClientConfig
source§fn clone(&self) -> EthereumClientConfig
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 EthereumClientConfig
source§impl Default for EthereumClientConfig
source§fn default() -> EthereumClientConfig
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for EthereumClientConfig
source§fn deserialize<__D>(
+EthereumClientConfig in mc_l1_messages::worker - Rust Struct mc_l1_messages::worker::EthereumClientConfig
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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for EthereumClientConfig
§impl Default for EthereumClientConfig
§fn default() -> EthereumClientConfig
Returns the “default value” for a type. Read more§impl<'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 moresource§impl Serialize for EthereumClientConfig
source§fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl 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§
source§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,
source§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,source§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.blockifier_to_rpc_contract_class_types.html b/mc_rpc/fn.blockifier_to_rpc_contract_class_types.html
index 1fb5ef48fe..5f7eb8af20 100644
--- a/mc_rpc/fn.blockifier_to_rpc_contract_class_types.html
+++ b/mc_rpc/fn.blockifier_to_rpc_contract_class_types.html
@@ -1,4 +1,4 @@
-blockifier_to_rpc_contract_class_types in mc_rpc - Rust Function mc_rpc::blockifier_to_rpc_contract_class_types
source · pub fn blockifier_to_rpc_contract_class_types(
+blockifier_to_rpc_contract_class_types in mc_rpc - Rust Function mc_rpc::blockifier_to_rpc_contract_class_types
pub fn blockifier_to_rpc_contract_class_types(
contract_class: ContractClass
) -> Result<ContractClass, Error>
Expand description
Returns a [ContractClass
] from a [BlockifierContractClass
]
\ No newline at end of file
diff --git a/mc_rpc/fn.blockifier_to_rpc_state_diff_types.html b/mc_rpc/fn.blockifier_to_rpc_state_diff_types.html
index fd0326d367..3d11d711eb 100644
--- a/mc_rpc/fn.blockifier_to_rpc_state_diff_types.html
+++ b/mc_rpc/fn.blockifier_to_rpc_state_diff_types.html
@@ -1,4 +1,4 @@
-blockifier_to_rpc_state_diff_types in mc_rpc - Rust Function mc_rpc::blockifier_to_rpc_state_diff_types
source · pub fn blockifier_to_rpc_state_diff_types(
+blockifier_to_rpc_state_diff_types in mc_rpc - Rust Function mc_rpc::blockifier_to_rpc_state_diff_types
pub fn blockifier_to_rpc_state_diff_types(
commitment_state_diff: CommitmentStateDiff
) -> Result<StateDiff, Error>
Expand description
Returns a [StateDiff
] from a [CommitmentStateDiff
]
\ No newline at end of file
diff --git a/mc_rpc/fn.flattened_sierra_to_casm_contract_class.html b/mc_rpc/fn.flattened_sierra_to_casm_contract_class.html
index 4edb351a54..28a7d2eeb8 100644
--- a/mc_rpc/fn.flattened_sierra_to_casm_contract_class.html
+++ b/mc_rpc/fn.flattened_sierra_to_casm_contract_class.html
@@ -1,4 +1,4 @@
-flattened_sierra_to_casm_contract_class in mc_rpc - Rust Function mc_rpc::flattened_sierra_to_casm_contract_class
source · pub fn flattened_sierra_to_casm_contract_class(
+flattened_sierra_to_casm_contract_class in mc_rpc - Rust
\ No newline at end of file
diff --git a/mc_rpc/fn.flattened_sierra_to_sierra_contract_class.html b/mc_rpc/fn.flattened_sierra_to_sierra_contract_class.html
index de3deb3260..389c5da3d3 100644
--- a/mc_rpc/fn.flattened_sierra_to_sierra_contract_class.html
+++ b/mc_rpc/fn.flattened_sierra_to_sierra_contract_class.html
@@ -1,3 +1,3 @@
-flattened_sierra_to_sierra_contract_class in mc_rpc - Rust pub fn flattened_sierra_to_sierra_contract_class(
+flattened_sierra_to_sierra_contract_class in mc_rpc - Rust
\ No newline at end of file
diff --git a/mc_rpc/fn.get_block_by_block_hash.html b/mc_rpc/fn.get_block_by_block_hash.html
index 54ce42172f..add93de811 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 @@
-get_block_by_block_hash in mc_rpc - Rust Function mc_rpc::get_block_by_block_hash
source · pub fn get_block_by_block_hash<B, C>(
+get_block_by_block_hash in mc_rpc - Rust
\ No newline at end of file
diff --git a/mc_rpc/fn.get_casm_cotract_class_hash.html b/mc_rpc/fn.get_casm_cotract_class_hash.html
index 349fab6e86..e2cf74e54c 100644
--- a/mc_rpc/fn.get_casm_cotract_class_hash.html
+++ b/mc_rpc/fn.get_casm_cotract_class_hash.html
@@ -1,3 +1,3 @@
-get_casm_cotract_class_hash in mc_rpc - Rust Function mc_rpc::get_casm_cotract_class_hash
source · pub fn get_casm_cotract_class_hash(
+get_casm_cotract_class_hash in mc_rpc - Rust Function mc_rpc::get_casm_cotract_class_hash
pub fn get_casm_cotract_class_hash(
casm_contract_class: &CasmContractClass
) -> FieldElement
\ No newline at end of file
diff --git a/mc_rpc/fn.to_rpc_state_diff.html b/mc_rpc/fn.to_rpc_state_diff.html
index 43d60057c8..e58bf5c5d2 100644
--- a/mc_rpc/fn.to_rpc_state_diff.html
+++ b/mc_rpc/fn.to_rpc_state_diff.html
@@ -1,2 +1,2 @@
-to_rpc_state_diff in mc_rpc - Rust Function mc_rpc::to_rpc_state_diff
source · pub fn to_rpc_state_diff(thin_state_diff: ThinStateDiff) -> StateDiff
Expand description
Returns a [StateDiff
] from a [ThinStateDiff
]
+to_rpc_state_diff in mc_rpc - Rust Function mc_rpc::to_rpc_state_diff
pub fn to_rpc_state_diff(thin_state_diff: ThinStateDiff) -> StateDiff
Expand description
Returns a [StateDiff
] from a [ThinStateDiff
]
\ No newline at end of file
diff --git a/mc_rpc/starknetrpcwrapper/struct.Felt.html b/mc_rpc/starknetrpcwrapper/struct.Felt.html
index 8e8b059bfc..9ead5c2822 100644
--- a/mc_rpc/starknetrpcwrapper/struct.Felt.html
+++ b/mc_rpc/starknetrpcwrapper/struct.Felt.html
@@ -1,7 +1,7 @@
-Felt in mc_rpc::starknetrpcwrapper - Rust Struct mc_rpc::starknetrpcwrapper::Felt
source · pub struct Felt(pub FieldElement);
Tuple Fields§
§0: FieldElement
Trait Implementations§
source§impl<'de> Deserialize<'de> for Felt
source§fn deserialize<__D>(
+Felt in mc_rpc::starknetrpcwrapper - Rust Struct mc_rpc::starknetrpcwrapper::Felt
pub struct Felt(pub FieldElement);
Tuple Fields§
§0: FieldElement
Trait Implementations§
§impl<'de> Deserialize<'de> for Felt
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Felt, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for Felt
source§fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for Felt
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
diff --git a/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html b/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html
index e098c20437..fced5a0eec 100644
--- a/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html
+++ b/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html
@@ -1,10 +1,10 @@
-PredeployedAccountWithBalance in mc_rpc::starknetrpcwrapper - Rust pub struct PredeployedAccountWithBalance {
- pub account: PredeployedAccount,
+PredeployedAccountWithBalance in mc_rpc::starknetrpcwrapper - Rust pub struct PredeployedAccountWithBalance {
+ pub account: PredeployedAccount,
pub balance: FieldElement,
-}
Fields§
§account: PredeployedAccount
§balance: FieldElement
Trait Implementations§
source§impl<'de> Deserialize<'de> for PredeployedAccountWithBalance
source§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 moresource§impl Serialize for PredeployedAccountWithBalance
source§fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for PredeployedAccountWithBalance
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
diff --git a/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html b/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html
index 9182ed85d4..73a44e94b1 100644
--- a/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html
+++ b/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html
@@ -3,49 +3,49 @@
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,
source§fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>
source§impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
+ H: HasherT + Send + Sync + 'static,
source§fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>
source§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,
source§fn spec_version(&self) -> RpcResult<String>
Returns the Version of the StarkNet JSON-RPC Specification Being Used
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,source§fn spec_version(&self) -> RpcResult<String>
Returns the Version of the StarkNet JSON-RPC Specification Being Used
This method provides the version of the StarkNet JSON-RPC specification that the node is
currently using. The version is returned as a semantic versioning (SemVer) string.
-Arguments
+Arguments
This method does not take any arguments.
-Returns
+Returns
spec_version
- A string representing the SemVer of the StarkNet JSON-RPC specification
being used.
source§fn block_number(&self) -> RpcResult<u64>
source§fn block_hash_and_number(&self) -> RpcResult<BlockHashAndNumber>
source§fn get_block_transaction_count(&self, block_id: BlockId) -> RpcResult<u128>
Get the Number of Transactions in a Given Block
-Arguments
+Arguments
block_id
- The identifier of the requested block. This can be the hash of the block, the
block’s number (height), or a specific block tag.
-Returns
+Returns
transaction_count
- The number of transactions in the specified block.
@@ -55,16 +55,16 @@ Errors
source§fn get_transaction_status(
&self,
transaction_hash: FieldElement
-) -> RpcResult<TransactionStatus>
Gets the Transaction Status, Including Mempool Status and Execution Details
+) -> RpcResult<TransactionStatus>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
transaction.
-Arguments
+Arguments
transaction_hash
- The hash of the transaction for which the status is requested.
-Returns
+Returns
transaction_status
- An object containing the transaction status details:
@@ -83,7 +83,7 @@ Returns
) -> RpcResult<Felt>Get the value of the storage at the given address and key.
This function retrieves the value stored in a specified contract’s storage, identified by a
contract address and a storage key, within a specified block in the current network.
-Arguments
+Arguments
contract_address
- The address of the contract to read from. This parameter identifies
the contract whose storage is being queried.
@@ -93,7 +93,7 @@ Arguments
or a block tag. This parameter defines the state of the blockchain at which the storage
value is to be read.
-Returns
+Returns
Returns the value at the given key for the given contract, represented as a FieldElement
.
If no value is found at the specified storage key, returns 0.
Errors
@@ -110,7 +110,7 @@ Errors
request: FunctionCall,
block_id: BlockId
) -> RpcResult<Vec<String>>Call a Function in a Contract Without Creating a Transaction
-Arguments
+Arguments
request
- The details of the function call to be made. This includes information such as
the contract address, function signature, and arguments.
@@ -118,7 +118,7 @@ Arguments
transaction on. This can be the hash of the block, its number (height), or a specific
block tag.
-Returns
+Returns
result
- The function’s return value, as defined in the Cairo output. This is an array
of field elements (Felt
).
@@ -135,13 +135,13 @@ Errors
block_id: BlockId,
contract_address: FieldElement
) -> RpcResult<ContractClass>Get the Contract Class Definition at a Given Address in a Specific Block
-Arguments
+Arguments
block_id
- The identifier of the block. This can be the hash of the block, its number
(height), or a specific block tag.
contract_address
- The address of the contract whose class definition will be returned.
-Returns
+Returns
contract_class
- The contract class definition. This may be either a standard contract
class or a deprecated contract class, depending on the contract’s status and the
@@ -159,13 +159,13 @@ Errors
contract_address: FieldElement
) -> RpcResult<Felt>Get the contract class hash in the given block for the contract deployed at the given
address
-Arguments
+Arguments
block_id
- The hash of the requested block, or number (height) of the requested block,
or a block tag
contract_address
- The address of the contract whose class hash will be returned
-Returns
+Returns
class_hash
- The class hash of the given contract
@@ -174,9 +174,9 @@ Returns
) -> Pin<Box<dyn Future<Output = RpcResult<SyncStatusType>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,Returns an object about the sync status, or false if the node is not synching
-Arguments
+Arguments
This function does not take any arguments.
-Returns
+Returns
Syncing
- An Enum that can either be a mc_rpc_core::SyncStatus
struct representing the
sync status, or a Boolean
(false
) indicating that the node is not currently
@@ -190,25 +190,25 @@ Returns
block_id: BlockId,
class_hash: FieldElement
) -> RpcResult<ContractClass>Get the contract class definition in the given block associated with the given hash.
-Arguments
+Arguments
block_id
- The hash of the requested block, or number (height) of the requested block,
or a block tag.
class_hash
- The hash of the requested contract class.
-Returns
+Returns
Returns the contract class definition if found. In case of an error, returns a
StarknetRpcApiError
indicating either BlockNotFound
or ClassHashNotFound
.
source§fn get_block_with_tx_hashes(
&self,
block_id: BlockId
) -> RpcResult<MaybePendingBlockWithTxHashes>
Get block information with transaction hashes given the block id.
-Arguments
+Arguments
block_id
- The hash of the requested block, or number (height) of the requested block,
or a block tag.
-Returns
+Returns
Returns block information with transaction hashes. This includes either a confirmed block or
a pending block with transaction hashes, depending on the state of the requested block.
In case the block is not found, returns a StarknetRpcApiError
with BlockNotFound
.
@@ -217,14 +217,14 @@ Returns
block_id: BlockId,
contract_address: FieldElement
) -> RpcResult<Felt>Get the nonce associated with the given address in the given block.
-Arguments
+Arguments
block_id
- The hash of the requested block, or number (height) of the requested block,
or a block tag. This parameter specifies the block in which the nonce is to be checked.
contract_address
- The address of the contract whose nonce we’re seeking. This is the
unique identifier of the contract in the Starknet network.
-Returns
+Returns
Returns the contract’s nonce at the requested state. The nonce is returned as a
FieldElement
, representing the current state of the contract in terms of transactions
count or other contract-specific operations. In case of errors, such as
@@ -234,9 +234,9 @@
Returns
This function provides the chain id for the network that the node is connected to. The chain
id is a unique identifier that distinguishes between different networks, such as mainnet or
testnet.
-Arguments
+Arguments
This function does not take any arguments.
-Returns
+Returns
Returns the chain id this node is connected to. The chain id is returned as a specific type,
defined by the Starknet protocol, indicating the particular network.
source§fn estimate_fee<'life0, 'async_trait>(
@@ -247,12 +247,12 @@ Returns
) -> Pin<Box<dyn Future<Output = RpcResult<Vec<FeeEstimate>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Estimate the fee associated with transaction
-Arguments
+Arguments
request
- starknet transaction request
block_id
- hash of the requested block, number (height), or tag
-Returns
+Returns
fee_estimate
- fee estimate in gwei
@@ -263,12 +263,12 @@ Returns
) -> Pin<Box<dyn Future<Output = RpcResult<FeeEstimate>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,Estimate the L2 fee of a message sent on L1
-Arguments
+Arguments
message
- the message to estimate
block_id
- hash, number (height), or tag of the requested block
-Returns
+Returns
FeeEstimate
- the fee estimation (gas consumed, gas price, overall fee, unit)
@@ -284,7 +284,7 @@ Errors
This function fetches the details of a specific transaction in the StarkNet network by
identifying it through its block and position (index) within that block. If no transaction
is found at the specified index, null is returned.
-Arguments
+Arguments
block_id
- The hash of the requested block, or number (height) of the requested block,
or a block tag. This parameter is used to specify the block in which the transaction is
@@ -293,7 +293,7 @@ Arguments
to be found. The index starts from 0 and increases sequentially for each transaction in
the block.
-Returns
+Returns
Returns the details of the transaction if found, including the transaction hash. The
transaction details are returned as a type conforming to the StarkNet protocol. In case of
errors like BLOCK_NOT_FOUND
or INVALID_TXN_INDEX
, returns a StarknetRpcApiError
@@ -305,13 +305,13 @@
Returns
This function retrieves detailed information about a specific block in the StarkNet network,
including all transactions contained within that block. The block is identified using its
unique block id, which can be the block’s hash, its number (height), or a block tag.
-Arguments
+Arguments
block_id
- The hash of the requested block, or number (height) of the requested block,
or a block tag. This parameter is used to specify the block from which to retrieve
information and transactions.
-Returns
+Returns
Returns detailed block information along with full transactions. Depending on the state of
the block, this can include either a confirmed block or a pending block with its
transactions. In case the specified block is not found, returns a StarknetRpcApiError
with
@@ -323,13 +323,13 @@
Returns
This function fetches details about the state update resulting from executing a specific
block in the StarkNet network. The block is identified using its unique block id, which can
be the block’s hash, its number (height), or a block tag.
-Arguments
+Arguments
block_id
- The hash of the requested block, or number (height) of the requested block,
or a block tag. This parameter specifies the block for which the state update information
is required.
-Returns
+Returns
Returns information about the state update of the requested block, including any changes to
the state of the network as a result of the block’s execution. This can include a confirmed
state update or a pending state update. If the block is not found, returns a
@@ -344,13 +344,13 @@
Returns
provided event filter. The filter can include various criteria such as contract addresses,
event types, and block ranges. The function supports pagination through the result page
request schema.
-Arguments
+Arguments
filter
- The conditions used to filter the returned events. The filter is a combination
of an event filter and a result page request, allowing for precise control over which
events are returned and in what quantity.
-Returns
+Returns
Returns a chunk of event objects that match the filter criteria, encapsulated in an
EventsChunk
type. The chunk includes details about the events, such as their data, the
block in which they occurred, and the transaction that triggered them. In case of
@@ -363,12 +363,12 @@
Returns
This function retrieves the detailed information and status of a transaction identified by
its hash. The transaction hash uniquely identifies a specific transaction that has been
submitted to the StarkNet network.
-Arguments
+Arguments
transaction_hash
- The hash of the requested transaction. This parameter specifies the
transaction for which details and status are requested.
-Returns
+Returns
Returns information about the requested transaction, including its status, sender,
recipient, and other transaction details. The information is encapsulated in a Transaction
type, which is a combination of the TXN
schema and additional properties, such as the
@@ -392,12 +392,12 @@
Errors
This function retrieves the transaction receipt for a specific transaction identified by its
hash. The transaction receipt includes information about the execution status of the
transaction, events generated during its execution, and other relevant details.
-Arguments
+Arguments
transaction_hash
- The hash of the requested transaction. This parameter specifies the
transaction for which the receipt is requested.
-Returns
+Returns
Returns a transaction receipt, which can be one of two types:
source§impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
+
source§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,
source§fn simulate_transactions<'life0, 'async_trait>(
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,
source§fn simulate_transactions<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
transactions: Vec<BroadcastedTransaction>,
@@ -435,25 +435,25 @@ Errors
) -> Pin<Box<dyn Future<Output = RpcResult<TransactionTrace>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the executions traces of a specified transaction in the given block
-source§impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
+
source§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,
source§fn add_declare_transaction<'life0, 'async_trait>(
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,
source§fn add_declare_transaction<'life0, 'async_trait>(
&'life0 self,
declare_transaction: BroadcastedDeclareTransaction
) -> Pin<Box<dyn Future<Output = RpcResult<DeclareTransactionResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Submit a new declare transaction to be added to the chain
-Arguments
+Arguments
declare_transaction
- the declare transaction to be added to the chain
-Returns
+Returns
declare_transaction_result
- the result of the declare transaction
@@ -463,11 +463,11 @@ Returns
) -> Pin<Box<dyn Future<Output = RpcResult<InvokeTransactionResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,Add an Invoke Transaction to invoke a contract function
-Arguments
+Arguments
invoke tx
- https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#invoke_transaction
-Returns
+Returns
transaction_hash
- transaction hash corresponding to the invocation
@@ -477,16 +477,16 @@ Returns
) -> Pin<Box<dyn Future<Output = RpcResult<DeployAccountTransactionResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,Add an Deploy Account Transaction
-Arguments
+Arguments
deploy account transaction
- https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#deploy_account_transaction
-Returns
+Returns
transaction_hash
- transaction hash corresponding to the invocation
contract_address
- address of the deployed contract account
-Auto Trait Implementations§
§impl<A, B, BE, G, C, P, H> !RefUnwindSafe for StarknetRpcWrapper<A, B, BE, G, C, P, H>
§impl<A, B, BE, G, C, P, H> Send for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
+
Auto Trait Implementations§
§impl<A, B, BE, G, C, P, H> !RefUnwindSafe for StarknetRpcWrapper<A, B, BE, G, C, P, H>
§impl<A, B, BE, G, C, P, H> Send for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
BE: Send + Sync,
C: Send + Sync,
G: Send + Sync,
diff --git a/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html
index e45171d1b7..a7968e8afc 100644
--- a/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html
+++ b/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html
@@ -1,4 +1,4 @@
-MadaraRpcApiServer in mc_rpc::starknetrpcwrapper - Rust Trait mc_rpc::starknetrpcwrapper::MadaraRpcApiServer
source · pub trait MadaraRpcApiServer: Sized + Send + Sync + 'static {
+MadaraRpcApiServer in mc_rpc::starknetrpcwrapper - Rust pub trait MadaraRpcApiServer: Sized + Send + Sync + 'static {
// Required method
fn predeployed_accounts(
&self
@@ -7,23 +7,23 @@
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the MadaraRpcApi
RPC API.
-Required Methods§
Required Methods§
fn predeployed_accounts(
&self
-) -> Result<Vec<PredeployedAccountWithBalance, Global>, Error>
Provided Methods§
sourcefn into_rpc(self) -> RpcModule<Self>
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.
+) -> Result<Vec<PredeployedAccountWithBalance, Global>, Error>Provided Methods§
fn into_rpc(self) -> RpcModule<Self>
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.
Implementors§
source§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,
source§impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
+ H: HasherT + Send + Sync + 'static,
source§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,
\ No newline at end of file
+ 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 1ff72f8f6e..cc324aef39 100644
--- a/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html
+++ b/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html
@@ -1,4 +1,4 @@
-StarknetReadRpcApiServer in mc_rpc::starknetrpcwrapper - Rust pub trait StarknetReadRpcApiServer: Sized + Send + Sync + 'static {
+StarknetReadRpcApiServer in mc_rpc::starknetrpcwrapper - Rust pub trait StarknetReadRpcApiServer: Sized + Send + Sync + 'static {
Show 23 methods
// Required methods
fn spec_version(&self) -> Result<String, Error>;
fn block_number(&self) -> Result<u64, Error>;
@@ -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,
@@ -100,61 +100,61 @@
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the StarknetReadRpcApi
RPC API.
-Required Methods§
sourcefn spec_version(&self) -> Result<String, Error>
Get the Version of the StarkNet JSON-RPC Specification Being Used
-sourcefn block_number(&self) -> Result<u64, Error>
Get the most recent accepted block number
-sourcefn block_hash_and_number(&self) -> Result<BlockHashAndNumber, Error>
Get the most recent accepted block hash and number
-sourcefn get_block_transaction_count(&self, block_id: BlockId) -> Result<u128, Error>
Get the number of transactions in a block given a block id
-Required Methods§
fn spec_version(&self) -> Result<String, Error>
Get the Version of the StarkNet JSON-RPC Specification Being Used
+fn block_number(&self) -> Result<u64, Error>
Get the most recent accepted block number
+fn block_hash_and_number(&self) -> Result<BlockHashAndNumber, Error>
Get the most recent accepted block hash and number
+fn get_block_transaction_count(&self, block_id: BlockId) -> Result<u128, Error>
Get the number of transactions in a block given a block id
+fn get_transaction_status(
&self,
transaction_hash: FieldElement
-) -> Result<TransactionStatus, Error>
Gets the Transaction Status, Including Mempool Status and Execution Details
-sourcefn get_storage_at(
+) -> Result<TransactionStatus, Error>
Gets the Transaction Status, Including Mempool Status and Execution Details
+fn get_storage_at(
&self,
contract_address: FieldElement,
key: FieldElement,
block_id: BlockId
) -> Result<Felt, Error>
Get the value of the storage at the given address and key, at the given block id
-fn call(
&self,
request: FunctionCall,
block_id: BlockId
) -> Result<Vec<String, Global>, Error>
Call a contract function at a given block id
-sourcefn get_class_at(
+
fn get_class_at(
&self,
block_id: BlockId,
contract_address: FieldElement
) -> Result<ContractClass, Error>
Get the contract class at a given contract address for a given block id
-sourcefn get_class_hash_at(
+
fn get_class_hash_at(
&self,
block_id: BlockId,
contract_address: FieldElement
) -> Result<Felt, Error>
Get the contract class hash in the given block for the contract deployed at the given
address
-
fn get_block_with_tx_hashes(
&self,
block_id: BlockId
) -> Result<MaybePendingBlockWithTxHashes, Error>
Get block information with transaction hashes given the block id
-fn get_nonce(
&self,
block_id: BlockId,
contract_address: FieldElement
) -> Result<Felt, Error>
Get the nonce associated with the given address at the given block
-sourcefn get_block_with_txs(
+
fn get_block_with_txs(
&self,
block_id: BlockId
) -> Result<MaybePendingBlockWithTxs, Error>
Get block information with full transactions given the block id
-sourcefn estimate_fee<'life0, 'async_trait>(
+
fn estimate_fee<'life0, 'async_trait>(
&'life0 self,
request: Vec<BroadcastedTransaction, Global>,
simulation_flags: Vec<SimulationFlagForEstimateFee, Global>,
@@ -162,53 +162,53 @@
) -> Pin<Box<dyn Future<Output = Result<Vec<FeeEstimate, Global>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Estimate the fee associated with transaction
-sourcefn estimate_message_fee<'life0, 'async_trait>(
+
fn get_transaction_by_block_id_and_index(
&self,
block_id: BlockId,
index: u64
) -> Result<Transaction, Error>
Get the details of a transaction by a given block id and index
-sourcefn get_state_update(
+
fn get_state_update(
&self,
block_id: BlockId
) -> Result<MaybePendingStateUpdate, Error>
Get the information about the result of executing the requested block
-sourcefn get_events<'life0, 'async_trait>(
+
fn get_transaction_by_hash(
&self,
transaction_hash: FieldElement
) -> Result<Transaction, Error>
Returns the information about a transaction by transaction hash.
-sourcefn get_transaction_receipt<'life0, 'async_trait>(
+
fn get_transaction_receipt<'life0, 'async_trait>(
&'life0 self,
transaction_hash: FieldElement
) -> Pin<Box<dyn Future<Output = Result<MaybePendingTransactionReceipt, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the receipt of a transaction by transaction hash.
-Provided Methods§
Provided Methods§
fn into_rpc(self) -> RpcModule<Self>
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.
Implementors§
source§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,
source§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,
source§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,
\ No newline at end of file
+ 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.StarknetTraceRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html
index 4434d3b216..985405af15 100644
--- a/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html
+++ b/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html
@@ -1,4 +1,4 @@
-StarknetTraceRpcApiServer in mc_rpc::starknetrpcwrapper - Rust pub trait StarknetTraceRpcApiServer: Sized + Send + Sync + 'static {
+StarknetTraceRpcApiServer in mc_rpc::starknetrpcwrapper - Rust pub trait StarknetTraceRpcApiServer: Sized + Send + Sync + 'static {
// Required methods
fn simulate_transactions<'life0, 'async_trait>(
&'life0 self,
@@ -24,7 +24,7 @@
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the StarknetTraceRpcApi
RPC API.
-Required Methods§
sourcefn simulate_transactions<'life0, 'async_trait>(
+
Required Methods§
fn simulate_transactions<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
transactions: Vec<BroadcastedTransaction, Global>,
@@ -32,33 +32,33 @@
) -> Pin<Box<dyn Future<Output = Result<Vec<SimulatedTransaction, Global>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the execution trace of a transaction by simulating it in the runtime.
-sourcefn trace_block_transactions<'life0, 'async_trait>(
+
fn trace_block_transactions<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId
) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionTraceWithHash, Global>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the execution traces of all transactions included in the given block
-sourcefn trace_transaction<'life0, 'async_trait>(
+
Provided Methods§
Provided Methods§
fn into_rpc(self) -> RpcModule<Self>
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.
Implementors§
source§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,
source§impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where
+ H: HasherT + Send + Sync + 'static,
source§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,
\ No newline at end of file
+ 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.StarknetWriteRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html
index e2935d61d5..494782e7a3 100644
--- a/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html
+++ b/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html
@@ -1,4 +1,4 @@
-StarknetWriteRpcApiServer in mc_rpc::starknetrpcwrapper - Rust pub trait StarknetWriteRpcApiServer: Sized + Send + Sync + 'static {
+StarknetWriteRpcApiServer in mc_rpc::starknetrpcwrapper - Rust pub trait StarknetWriteRpcApiServer: Sized + Send + Sync + 'static {
// Required methods
fn add_invoke_transaction<'life0, 'async_trait>(
&'life0 self,
@@ -22,39 +22,39 @@
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the StarknetWriteRpcApi
RPC API.
-Required Methods§
sourcefn add_invoke_transaction<'life0, 'async_trait>(
+
Required Methods§
fn add_invoke_transaction<'life0, 'async_trait>(
&'life0 self,
invoke_transaction: BroadcastedInvokeTransaction
) -> Pin<Box<dyn Future<Output = Result<InvokeTransactionResult, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Submit a new transaction to be added to the chain
-sourcefn add_deploy_account_transaction<'life0, 'async_trait>(
+
fn add_deploy_account_transaction<'life0, 'async_trait>(
&'life0 self,
deploy_account_transaction: BroadcastedDeployAccountTransaction
) -> Pin<Box<dyn Future<Output = Result<DeployAccountTransactionResult, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Submit a new class declaration transaction
-sourcefn add_declare_transaction<'life0, 'async_trait>(
+
fn add_declare_transaction<'life0, 'async_trait>(
&'life0 self,
declare_transaction: BroadcastedDeclareTransaction
) -> Pin<Box<dyn Future<Output = Result<DeclareTransactionResult, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Submit a new deploy account transaction
-
Provided Methods§
Provided Methods§
fn into_rpc(self) -> RpcModule<Self>
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.
Implementors§
source§impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer 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,
source§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,
source§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,
\ No newline at end of file
+ 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/struct.Felt.html b/mc_rpc/struct.Felt.html
index 507d9b0d5e..8ef4e3de52 100644
--- a/mc_rpc/struct.Felt.html
+++ b/mc_rpc/struct.Felt.html
@@ -1,7 +1,7 @@
-Felt in mc_rpc - Rust pub struct Felt(pub FieldElement);
Tuple Fields§
§0: FieldElement
Trait Implementations§
source§impl<'de> Deserialize<'de> for Felt
source§fn deserialize<__D>(
+Felt in mc_rpc - Rust pub struct Felt(pub FieldElement);
Tuple Fields§
§0: FieldElement
Trait Implementations§
§impl<'de> Deserialize<'de> for Felt
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Felt, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for Felt
source§fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for Felt
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
diff --git a/mc_rpc/struct.PredeployedAccountWithBalance.html b/mc_rpc/struct.PredeployedAccountWithBalance.html
index 82d16a6bac..6e7b61f5c9 100644
--- a/mc_rpc/struct.PredeployedAccountWithBalance.html
+++ b/mc_rpc/struct.PredeployedAccountWithBalance.html
@@ -1,10 +1,10 @@
-PredeployedAccountWithBalance in mc_rpc - Rust Struct mc_rpc::PredeployedAccountWithBalance
source · pub struct PredeployedAccountWithBalance {
- pub account: PredeployedAccount,
+PredeployedAccountWithBalance in mc_rpc - Rust Struct mc_rpc::PredeployedAccountWithBalance
pub struct PredeployedAccountWithBalance {
+ pub account: PredeployedAccount,
pub balance: FieldElement,
-}
Fields§
§account: PredeployedAccount
§balance: FieldElement
Trait Implementations§
source§impl<'de> Deserialize<'de> for PredeployedAccountWithBalance
source§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 moresource§impl Serialize for PredeployedAccountWithBalance
source§fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for PredeployedAccountWithBalance
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
diff --git a/mc_rpc/struct.Starknet.html b/mc_rpc/struct.Starknet.html
index c1a242b5d0..4d8adf1d03 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,
sourcepub fn get_block_events(
+ H: HasherT + Send + Sync + 'static,
sourcepub fn get_block_events(
&self,
block_number: u64
) -> Result<Vec<EmittedEvent>, StarknetRpcApiError>
Helper function to get Starknet block details
@@ -32,14 +32,14 @@ Returns
B: BlockT,
BE: Backend<B>,
C: HeaderBackend<B> + 'static + ProvideRuntimeApi<B>,
- C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
- H: HasherT + Send + Sync + 'static,sourcepub fn do_call(
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ H: HasherT + Send + Sync + 'static,
sourcepub fn do_call(
&self,
best_block_hash: B::Hash,
contract_address: ContractAddress,
entry_point_selector: EntryPointSelector,
calldata: Calldata
-) -> Result<Result<Vec<Felt252Wrapper>, DispatchError>, StarknetRpcApiError>
sourcepub fn do_estimate_message_fee(
+) -> Result<Result<Vec<Felt252Wrapper>, DispatchError>, StarknetRpcApiError>
sourcepub fn do_estimate_message_fee(
&self,
block_hash: B::Hash,
message: L1HandlerTransaction
@@ -55,7 +55,7 @@ Returns
&self,
best_block_hash: B::Hash,
error: DispatchError
-) -> Result<StarknetTransactionExecutionError, StarknetRpcApiError>
sourcepub fn convert_tx_to_extrinsic(
+) -> Result<StarknetTransactionExecutionError, StarknetRpcApiError>
sourcepub fn convert_tx_to_extrinsic(
&self,
best_block_hash: <B as BlockT>::Hash,
transaction: AccountTransaction
@@ -63,11 +63,11 @@ Returns
&self,
block_hash: B::Hash,
transactions: Vec<AccountTransaction>,
- simulation_flags: SimulationFlags
+ simulation_flags: SimulationFlags
) -> Result<Vec<(u128, u128)>, StarknetRpcApiError>
sourcepub fn get_best_block_hash(&self) -> B::Hash
sourcepub fn get_chain_id(
&self,
block_hash: B::Hash
-) -> Result<Felt252Wrapper, StarknetRpcApiError>
sourcepub fn filter_extrinsics(
+) -> Result<Felt252Wrapper, StarknetRpcApiError>
sourcepub fn filter_extrinsics(
&self,
block_hash: B::Hash,
extrinsics: Vec<B::Extrinsic>
@@ -88,11 +88,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,
sourcepub fn re_execute_transactions(
+ H: HasherT + Send + Sync + 'static,
sourcepub fn re_execute_transactions(
&self,
previous_block_substrate_hash: B::Hash,
transactions_before: Vec<Transaction>,
@@ -101,8 +101,8 @@ Returns
) -> RpcResult<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>>
source§impl<A: ChainApi, B: BlockT, BE, G, C, P, H> Starknet<A, B, BE, G, C, P, H>
Constructor for A Starknet RPC server for Madara
Arguments
sourcepub 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>>,
@@ -115,24 +115,24 @@ Arguments
sourcepub fn current_spec_version(&self) -> RpcResult<String>
source§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,
sourcepub fn current_block_hash(&self) -> Result<H256, StarknetRpcApiError>
Trait Implementations§
source§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,
sourcepub fn current_block_hash(&self) -> Result<H256, StarknetRpcApiError>
Trait Implementations§
source§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,
source§fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>
source§impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
+ H: HasherT + Send + Sync + 'static,
source§fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>
source§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,
source§fn spec_version(&self) -> RpcResult<String>
Returns the Version of the StarkNet JSON-RPC Specification Being Used
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,source§fn spec_version(&self) -> RpcResult<String>
source§fn get_transaction_status(
&self,
transaction_hash: FieldElement
-) -> RpcResult<TransactionStatus>
Gets the Transaction Status, Including Mempool Status and Execution Details
+) -> RpcResult<TransactionStatus>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
@@ -525,15 +525,15 @@
Returns
Errors
The function may return a TXN_HASH_NOT_FOUND
error if the specified transaction hash is
not found.
-source§impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
+
source§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,
source§fn simulate_transactions<'life0, 'async_trait>(
+ H: HasherT + Send + Sync + 'static,
source§fn simulate_transactions<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
transactions: Vec<BroadcastedTransaction>,
@@ -550,15 +550,15 @@ Errors
transaction_hash: FieldElement
) -> Pin<Box<dyn Future<Output = RpcResult<TransactionTrace>> + Send + 'async_trait>>where
Self: 'async_trait,
- 'life0: 'async_trait,
Returns the execution trace of a transactionsource§impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
+ 'life0: 'async_trait,
Returns the execution trace of a transactionsource§impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer 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,
source§fn add_declare_transaction<'life0, 'async_trait>(
+ C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,
+ G: GenesisProvider + Send + Sync + 'static,
+ H: HasherT + Send + Sync + 'static,
source§fn add_declare_transaction<'life0, 'async_trait>(
&'life0 self,
declare_transaction: BroadcastedDeclareTransaction
) -> Pin<Box<dyn Future<Output = RpcResult<DeclareTransactionResult>> + Send + 'async_trait>>where
@@ -601,7 +601,7 @@ Returns
transaction_hash
- transaction hash corresponding to the invocation
contract_address
- address of the deployed contract account
-
Auto Trait Implementations§
Auto Trait Implementations§
§impl<A, B, BE, G, C, P, H> !RefUnwindSafe for Starknet<A, B, BE, G, C, P, H>
§impl<A, B, BE, G, C, P, H> Send for Starknet<A, B, BE, G, C, P, H>where
BE: Send,
C: Send + Sync,
G: Send + Sync,
diff --git a/mc_rpc/trait.MadaraRpcApiServer.html b/mc_rpc/trait.MadaraRpcApiServer.html
index 5d1a2b6fcb..e3e24ed6b2 100644
--- a/mc_rpc/trait.MadaraRpcApiServer.html
+++ b/mc_rpc/trait.MadaraRpcApiServer.html
@@ -1,4 +1,4 @@
-MadaraRpcApiServer in mc_rpc - Rust Trait mc_rpc::MadaraRpcApiServer
source · pub trait MadaraRpcApiServer: Sized + Send + Sync + 'static {
+MadaraRpcApiServer in mc_rpc - Rust Trait mc_rpc::MadaraRpcApiServer
pub trait MadaraRpcApiServer: Sized + Send + Sync + 'static {
// Required method
fn predeployed_accounts(
&self
@@ -7,23 +7,23 @@
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the MadaraRpcApi
RPC API.
-Required Methods§
Required Methods§
fn predeployed_accounts(
&self
-) -> Result<Vec<PredeployedAccountWithBalance, Global>, Error>
Provided Methods§
sourcefn into_rpc(self) -> RpcModule<Self>
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.
+) -> Result<Vec<PredeployedAccountWithBalance, Global>, Error>Provided Methods§
fn into_rpc(self) -> RpcModule<Self>
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.
Implementors§
source§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,
source§impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for Starknet<A, B, BE, G, C, P, H>where
+ H: HasherT + Send + Sync + 'static,
source§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,
\ No newline at end of file
+ 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 7cd63f1c97..a556661d11 100644
--- a/mc_rpc/trait.StarknetReadRpcApiServer.html
+++ b/mc_rpc/trait.StarknetReadRpcApiServer.html
@@ -1,4 +1,4 @@
-StarknetReadRpcApiServer in mc_rpc - Rust Trait mc_rpc::StarknetReadRpcApiServer
source · pub trait StarknetReadRpcApiServer: Sized + Send + Sync + 'static {
+StarknetReadRpcApiServer in mc_rpc - Rust Trait mc_rpc::StarknetReadRpcApiServer
pub trait StarknetReadRpcApiServer: Sized + Send + Sync + 'static {
Show 23 methods
// Required methods
fn spec_version(&self) -> Result<String, Error>;
fn block_number(&self) -> Result<u64, Error>;
@@ -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,
@@ -100,61 +100,61 @@
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the StarknetReadRpcApi
RPC API.
-Required Methods§
sourcefn spec_version(&self) -> Result<String, Error>
Get the Version of the StarkNet JSON-RPC Specification Being Used
-sourcefn block_number(&self) -> Result<u64, Error>
Get the most recent accepted block number
-sourcefn block_hash_and_number(&self) -> Result<BlockHashAndNumber, Error>
Get the most recent accepted block hash and number
-sourcefn get_block_transaction_count(&self, block_id: BlockId) -> Result<u128, Error>
Get the number of transactions in a block given a block id
-Required Methods§
fn spec_version(&self) -> Result<String, Error>
Get the Version of the StarkNet JSON-RPC Specification Being Used
+fn block_number(&self) -> Result<u64, Error>
Get the most recent accepted block number
+fn block_hash_and_number(&self) -> Result<BlockHashAndNumber, Error>
Get the most recent accepted block hash and number
+fn get_block_transaction_count(&self, block_id: BlockId) -> Result<u128, Error>
Get the number of transactions in a block given a block id
+fn get_transaction_status(
&self,
transaction_hash: FieldElement
-) -> Result<TransactionStatus, Error>
Gets the Transaction Status, Including Mempool Status and Execution Details
-sourcefn get_storage_at(
+) -> Result<TransactionStatus, Error>
Gets the Transaction Status, Including Mempool Status and Execution Details
+fn get_storage_at(
&self,
contract_address: FieldElement,
key: FieldElement,
block_id: BlockId
) -> Result<Felt, Error>
Get the value of the storage at the given address and key, at the given block id
-fn call(
&self,
request: FunctionCall,
block_id: BlockId
) -> Result<Vec<String, Global>, Error>
Call a contract function at a given block id
-sourcefn get_class_at(
+
fn get_class_at(
&self,
block_id: BlockId,
contract_address: FieldElement
) -> Result<ContractClass, Error>
Get the contract class at a given contract address for a given block id
-sourcefn get_class_hash_at(
+
fn get_class_hash_at(
&self,
block_id: BlockId,
contract_address: FieldElement
) -> Result<Felt, Error>
Get the contract class hash in the given block for the contract deployed at the given
address
-
fn get_block_with_tx_hashes(
&self,
block_id: BlockId
) -> Result<MaybePendingBlockWithTxHashes, Error>
Get block information with transaction hashes given the block id
-fn get_nonce(
&self,
block_id: BlockId,
contract_address: FieldElement
) -> Result<Felt, Error>
Get the nonce associated with the given address at the given block
-sourcefn get_block_with_txs(
+
fn get_block_with_txs(
&self,
block_id: BlockId
) -> Result<MaybePendingBlockWithTxs, Error>
Get block information with full transactions given the block id
-sourcefn estimate_fee<'life0, 'async_trait>(
+
fn estimate_fee<'life0, 'async_trait>(
&'life0 self,
request: Vec<BroadcastedTransaction, Global>,
simulation_flags: Vec<SimulationFlagForEstimateFee, Global>,
@@ -162,53 +162,53 @@
) -> Pin<Box<dyn Future<Output = Result<Vec<FeeEstimate, Global>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Estimate the fee associated with transaction
-sourcefn estimate_message_fee<'life0, 'async_trait>(
+
fn get_transaction_by_block_id_and_index(
&self,
block_id: BlockId,
index: u64
) -> Result<Transaction, Error>
Get the details of a transaction by a given block id and index
-sourcefn get_state_update(
+
fn get_state_update(
&self,
block_id: BlockId
) -> Result<MaybePendingStateUpdate, Error>
Get the information about the result of executing the requested block
-sourcefn get_events<'life0, 'async_trait>(
+
fn get_transaction_by_hash(
&self,
transaction_hash: FieldElement
) -> Result<Transaction, Error>
Returns the information about a transaction by transaction hash.
-sourcefn get_transaction_receipt<'life0, 'async_trait>(
+
fn get_transaction_receipt<'life0, 'async_trait>(
&'life0 self,
transaction_hash: FieldElement
) -> Pin<Box<dyn Future<Output = Result<MaybePendingTransactionReceipt, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the receipt of a transaction by transaction hash.
-Provided Methods§
Provided Methods§
fn into_rpc(self) -> RpcModule<Self>
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.
Implementors§
source§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,
source§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,
source§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,
\ No newline at end of file
+ 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/trait.StarknetTraceRpcApiServer.html b/mc_rpc/trait.StarknetTraceRpcApiServer.html
index 5400d54068..6b439f54c4 100644
--- a/mc_rpc/trait.StarknetTraceRpcApiServer.html
+++ b/mc_rpc/trait.StarknetTraceRpcApiServer.html
@@ -1,4 +1,4 @@
-StarknetTraceRpcApiServer in mc_rpc - Rust Trait mc_rpc::StarknetTraceRpcApiServer
source · pub trait StarknetTraceRpcApiServer: Sized + Send + Sync + 'static {
+StarknetTraceRpcApiServer in mc_rpc - Rust Trait mc_rpc::StarknetTraceRpcApiServer
pub trait StarknetTraceRpcApiServer: Sized + Send + Sync + 'static {
// Required methods
fn simulate_transactions<'life0, 'async_trait>(
&'life0 self,
@@ -24,7 +24,7 @@
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the StarknetTraceRpcApi
RPC API.
-Required Methods§
sourcefn simulate_transactions<'life0, 'async_trait>(
+
Required Methods§
fn simulate_transactions<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId,
transactions: Vec<BroadcastedTransaction, Global>,
@@ -32,33 +32,33 @@
) -> Pin<Box<dyn Future<Output = Result<Vec<SimulatedTransaction, Global>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the execution trace of a transaction by simulating it in the runtime.
-sourcefn trace_block_transactions<'life0, 'async_trait>(
+
fn trace_block_transactions<'life0, 'async_trait>(
&'life0 self,
block_id: BlockId
) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionTraceWithHash, Global>, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the execution traces of all transactions included in the given block
-sourcefn trace_transaction<'life0, 'async_trait>(
+
Provided Methods§
Provided Methods§
fn into_rpc(self) -> RpcModule<Self>
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.
Implementors§
source§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,
source§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,
source§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,
\ No newline at end of file
+ H: HasherT + Send + Sync + 'static,
\ No newline at end of file
diff --git a/mc_rpc/trait.StarknetWriteRpcApiServer.html b/mc_rpc/trait.StarknetWriteRpcApiServer.html
index 10e900cc20..fbddbd382e 100644
--- a/mc_rpc/trait.StarknetWriteRpcApiServer.html
+++ b/mc_rpc/trait.StarknetWriteRpcApiServer.html
@@ -1,4 +1,4 @@
-StarknetWriteRpcApiServer in mc_rpc - Rust Trait mc_rpc::StarknetWriteRpcApiServer
source · pub trait StarknetWriteRpcApiServer: Sized + Send + Sync + 'static {
+StarknetWriteRpcApiServer in mc_rpc - Rust Trait mc_rpc::StarknetWriteRpcApiServer
pub trait StarknetWriteRpcApiServer: Sized + Send + Sync + 'static {
// Required methods
fn add_invoke_transaction<'life0, 'async_trait>(
&'life0 self,
@@ -22,39 +22,39 @@
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the StarknetWriteRpcApi
RPC API.
-Required Methods§
sourcefn add_invoke_transaction<'life0, 'async_trait>(
+
Required Methods§
fn add_invoke_transaction<'life0, 'async_trait>(
&'life0 self,
invoke_transaction: BroadcastedInvokeTransaction
) -> Pin<Box<dyn Future<Output = Result<InvokeTransactionResult, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Submit a new transaction to be added to the chain
-sourcefn add_deploy_account_transaction<'life0, 'async_trait>(
+
fn add_deploy_account_transaction<'life0, 'async_trait>(
&'life0 self,
deploy_account_transaction: BroadcastedDeployAccountTransaction
) -> Pin<Box<dyn Future<Output = Result<DeployAccountTransactionResult, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Submit a new class declaration transaction
-sourcefn add_declare_transaction<'life0, 'async_trait>(
+
fn add_declare_transaction<'life0, 'async_trait>(
&'life0 self,
declare_transaction: BroadcastedDeclareTransaction
) -> Pin<Box<dyn Future<Output = Result<DeclareTransactionResult, Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Self: 'async_trait,
Submit a new deploy account transaction
-
Provided Methods§
Provided Methods§
fn into_rpc(self) -> RpcModule<Self>
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule
.
Implementors§
source§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,
source§impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer 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,
source§impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer 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,
\ No newline at end of file
+ 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_core/struct.PredeployedAccountWithBalance.html b/mc_rpc_core/struct.PredeployedAccountWithBalance.html
index bae07b055e..a2860158c3 100644
--- a/mc_rpc_core/struct.PredeployedAccountWithBalance.html
+++ b/mc_rpc_core/struct.PredeployedAccountWithBalance.html
@@ -1,7 +1,7 @@
PredeployedAccountWithBalance in mc_rpc_core - Rust pub struct PredeployedAccountWithBalance {
- pub account: PredeployedAccount,
+ pub account: PredeployedAccount,
pub balance: FieldElement,
-}
Fields§
§account: PredeployedAccount
§balance: FieldElement
Trait Implementations§
source§impl<'de> Deserialize<'de> for PredeployedAccountWithBalance
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
+}Fields§
§account: PredeployedAccount
§balance: FieldElement
Trait Implementations§
source§impl<'de> Deserialize<'de> for PredeployedAccountWithBalance
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for PredeployedAccountWithBalance
§impl Send for PredeployedAccountWithBalance
§impl Sync for PredeployedAccountWithBalance
§impl Unpin for PredeployedAccountWithBalance
§impl UnwindSafe for PredeployedAccountWithBalance
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/mc_rpc_core/trait.StarknetReadRpcApiServer.html b/mc_rpc_core/trait.StarknetReadRpcApiServer.html
index 133d948a92..1c91e706d7 100644
--- a/mc_rpc_core/trait.StarknetReadRpcApiServer.html
+++ b/mc_rpc_core/trait.StarknetReadRpcApiServer.html
@@ -7,7 +7,7 @@
fn get_transaction_status(
&self,
transaction_hash: FieldElement
- ) -> RpcResult<TransactionStatus>;
+ ) -> RpcResult<TransactionStatus>;
fn get_storage_at(
&self,
contract_address: FieldElement,
@@ -104,7 +104,7 @@
sourcefn get_transaction_status(
&self,
transaction_hash: FieldElement
-) -> RpcResult<TransactionStatus>
Gets the Transaction Status, Including Mempool Status and Execution Details
+) -> RpcResult<TransactionStatus>Gets the Transaction Status, Including Mempool Status and Execution Details
sourcefn get_storage_at(
&self,
contract_address: FieldElement,
diff --git a/mc_rpc_core/utils/fn.get_block_by_block_hash.html b/mc_rpc_core/utils/fn.get_block_by_block_hash.html
index c7e80cb8a6..9fe27f59ad 100644
--- a/mc_rpc_core/utils/fn.get_block_by_block_hash.html
+++ b/mc_rpc_core/utils/fn.get_block_by_block_hash.html
@@ -1,7 +1,7 @@
get_block_by_block_hash in mc_rpc_core::utils - Rust Function mc_rpc_core::utils::get_block_by_block_hash
source · pub fn get_block_by_block_hash<B, C>(
client: &C,
block_hash: <B as BlockT>::Hash
-) -> Result<Block>where
+) -> Result<Block>where
B: BlockT,
C: HeaderBackend<B>,
Expand description
Returns the current Starknet block from the block header’s digest
\ No newline at end of file
diff --git a/mc_starknet_block_import/struct.StarknetBlockImport.html b/mc_starknet_block_import/struct.StarknetBlockImport.html
index 4803a874bc..09d851c836 100644
--- a/mc_starknet_block_import/struct.StarknetBlockImport.html
+++ b/mc_starknet_block_import/struct.StarknetBlockImport.html
@@ -1,35 +1,35 @@
-StarknetBlockImport in mc_starknet_block_import - Rust pub struct StarknetBlockImport<I: Clone, C: ProvideRuntimeApi<Block>> { /* private fields */ }
Implementations§
source§impl<I, C> StarknetBlockImport<I, C>where
- I: BlockImport<Block> + Send + Sync + Clone,
- C: ProvideRuntimeApi<Block> + Send,
sourcepub fn new(
+StarknetBlockImport in mc_starknet_block_import - Rust pub struct StarknetBlockImport<I: Clone, C: ProvideRuntimeApi<Block>> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<I, C> BlockImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>> for StarknetBlockImport<I, C>where
- I: BlockImport<Block, Error = Error> + Send + Clone,
- C: ProvideRuntimeApi<Block> + Send + Sync,
- C::Api: StarknetRuntimeApi<Block>,
source§fn check_block<'life0, 'async_trait>(
+ I: BlockImport<Block, Error = Error> + Send + Clone,
+ C: ProvideRuntimeApi<Block> + Send + Sync,
+ C::Api: StarknetRuntimeApi<Block>,
source§impl<I, C> Clone for StarknetBlockImport<I, C>where
- I: BlockImport<Block> + Send + Clone,
- C: ProvideRuntimeApi<Block> + Send,
source§impl<I, C> JustificationImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>> for StarknetBlockImport<I, C>where
- I: JustificationImport<Block> + Send + Clone,
- C: ProvideRuntimeApi<Block> + Send + Sync,
§type Error = <I as JustificationImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>>::Error
source§fn on_start<'life0, 'async_trait>(
+ I: BlockImport<Block> + Send + Clone,
+ C: ProvideRuntimeApi<Block> + Send,
source§impl<I, C> JustificationImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>> for StarknetBlockImport<I, C>where
+ I: JustificationImport<Block> + Send + Clone,
+ C: ProvideRuntimeApi<Block> + Send + Sync,
§type Error = <I as JustificationImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>>::Error
source§fn on_start<'life0, 'async_trait>(
&'life0 mut self
-) -> Pin<Box<dyn Future<Output = Vec<(Hash, NumberFor<Block>)>> + Send + 'async_trait>>where
+) -> Pin<Box<dyn Future<Output = Vec<(Hash, NumberFor<Block>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called by the import queue when it is started. Returns a list of justifications to request
from the network.source§fn import_justification<'life0, 'async_trait>(
&'life0 mut self,
- hash: Hash,
- number: NumberFor<Block>,
+ hash: Hash,
+ number: NumberFor<Block>,
justification: Justification
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
diff --git a/mc_storage/fn.onchain_storage_schema.html b/mc_storage/fn.onchain_storage_schema.html
index 256c40b940..4106c98ba5 100644
--- a/mc_storage/fn.onchain_storage_schema.html
+++ b/mc_storage/fn.onchain_storage_schema.html
@@ -1,7 +1,7 @@
onchain_storage_schema in mc_storage - Rust Function mc_storage::onchain_storage_schema
source · pub fn onchain_storage_schema<B, C, BE>(
client: &C,
hash: B::Hash
-) -> StarknetStorageSchemaVersionwhere
+) -> StarknetStorageSchemaVersionwhere
B: BlockT,
C: HeaderBackend<B> + StorageProvider<B, BE>,
BE: Backend<B>,
Expand description
Retrieve the current pallet-starknet
storage schema version
diff --git a/mc_storage/fn.overrides_handle.html b/mc_storage/fn.overrides_handle.html
index d7a4fde96b..258b9465f5 100644
--- a/mc_storage/fn.overrides_handle.html
+++ b/mc_storage/fn.overrides_handle.html
@@ -1,6 +1,6 @@
overrides_handle in mc_storage - Rust Function mc_storage::overrides_handle
source · pub fn overrides_handle<B, C, BE>(client: Arc<C>) -> Arc<OverrideHandle<B>>where
B: BlockT,
C: ProvideRuntimeApi<B> + HeaderBackend<B> + StorageProvider<B, BE> + 'static,
- C::Api: StarknetRuntimeApi<B>,
+ C::Api: StarknetRuntimeApi<B>,
BE: Backend<B> + 'static,
Expand description
Create and return a handle of the starknet schema overrides
\ No newline at end of file
diff --git a/mc_storage/struct.OverrideHandle.html b/mc_storage/struct.OverrideHandle.html
index 4adf39fc82..bea4ef231c 100644
--- a/mc_storage/struct.OverrideHandle.html
+++ b/mc_storage/struct.OverrideHandle.html
@@ -1,12 +1,12 @@
OverrideHandle in mc_storage - Rust Struct mc_storage::OverrideHandle
source · pub struct OverrideHandle<B: BlockT> {
- pub schemas: BTreeMap<StarknetStorageSchemaVersion, Box<dyn StorageOverride<B>>>,
+ pub schemas: BTreeMap<StarknetStorageSchemaVersion, Box<dyn StorageOverride<B>>>,
pub fallback: Box<dyn StorageOverride<B>>,
}
Expand description
A handle containing multiple entities implementing StorageOverride
-Fields§
§schemas: BTreeMap<StarknetStorageSchemaVersion, Box<dyn StorageOverride<B>>>
Contains one implementation of StorageOverride
by version of the pallet storage schema
+Fields§
§schemas: BTreeMap<StarknetStorageSchemaVersion, Box<dyn StorageOverride<B>>>
Contains one implementation of StorageOverride
by version of the pallet storage schema
§fallback: Box<dyn StorageOverride<B>>
A non-failing way to retrieve the storage data
Implementations§
source§impl<B: BlockT> OverrideHandle<B>
sourcepub fn for_schema_version(
&self,
- schema_version: &StarknetStorageSchemaVersion
+ schema_version: &StarknetStorageSchemaVersion
) -> &Box<dyn StorageOverride<B>>
source§impl<B: BlockT> OverrideHandle<B>
sourcepub fn for_block_hash<C: HeaderBackend<B> + StorageProvider<B, BE>, BE: Backend<B>>(
&self,
client: &C,
diff --git a/mc_storage/struct.RuntimeApiStorageOverride.html b/mc_storage/struct.RuntimeApiStorageOverride.html
index 3d98cc8101..d57deff8af 100644
--- a/mc_storage/struct.RuntimeApiStorageOverride.html
+++ b/mc_storage/struct.RuntimeApiStorageOverride.html
@@ -4,7 +4,7 @@
Implementations§
Trait Implementations§
source§impl<B, C> StorageOverride<B> for RuntimeApiStorageOverride<B, C>where
B: BlockT,
C: ProvideRuntimeApi<B> + Send + Sync,
- C::Api: StarknetRuntimeApi<B>,
source§fn contract_class_by_class_hash(
+ C::Api: StarknetRuntimeApi<B>,
source§fn contract_class_by_class_hash(
&self,
block_hash: <B as BlockT>::Hash,
contract_class_hash: ClassHash
diff --git a/mc_storage/trait.StorageOverride.html b/mc_storage/trait.StorageOverride.html
index 8f3269db71..899b8872a4 100644
--- a/mc_storage/trait.StorageOverride.html
+++ b/mc_storage/trait.StorageOverride.html
@@ -65,7 +65,7 @@
) -> Option<Vec<StarknetEvent>>
Implementors§
source§impl<B, C> StorageOverride<B> for RuntimeApiStorageOverride<B, C>where
B: BlockT,
C: ProvideRuntimeApi<B> + Send + Sync,
- C::Api: StarknetRuntimeApi<B>,
source§impl<B, C, BE> StorageOverride<B> for SchemaV1Override<B, C, BE>where
+ C::Api: StarknetRuntimeApi<B>,
source§impl<B, C, BE> StorageOverride<B> for SchemaV1Override<B, C, BE>where
B: BlockT,
C: HeaderBackend<B> + StorageProvider<B, BE> + 'static,
BE: Backend<B> + 'static,
\ No newline at end of file
diff --git a/mp_block/enum.NewBlockError.html b/mp_block/enum.NewBlockError.html
index 1e5c1bf427..4f5fde0bdb 100644
--- a/mp_block/enum.NewBlockError.html
+++ b/mp_block/enum.NewBlockError.html
@@ -1,6 +1,6 @@
NewBlockError in mp_block - Rust Enum mp_block::NewBlockError
source · pub enum NewBlockError {
InvalidTxCount,
-}
Variants§
§InvalidTxCount
Trait Implementations§
source§impl Debug for NewBlockError
source§impl Display for NewBlockError
source§impl Error for NewBlockError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl RefUnwindSafe for NewBlockError
§impl Send for NewBlockError
§impl Sync for NewBlockError
§impl Unpin for NewBlockError
§impl UnwindSafe for NewBlockError
Blanket Implementations§
source§impl<T> Any for Twhere
+}Variants§
§InvalidTxCount
Trait Implementations§
source§impl Debug for NewBlockError
source§impl Display for NewBlockError
source§impl Error for NewBlockError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl RefUnwindSafe for NewBlockError
§impl Send for NewBlockError
§impl Sync for NewBlockError
§impl Unpin for NewBlockError
§impl UnwindSafe for NewBlockError
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> Conv for T
Variants§
§NotLog
There was no Madara [Log] in the [Digest]
§MultipleLogs
There was multiple Madara [Log] in the [Digest]
-Trait Implementations§
source§impl Clone for FindLogError
source§fn clone(&self) -> FindLogError
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 FindLogError
source§impl Display for FindLogError
source§impl Error for FindLogError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl RefUnwindSafe for FindLogError
§impl Send for FindLogError
§impl Sync for FindLogError
§impl Unpin for FindLogError
§impl UnwindSafe for FindLogError
Blanket Implementations§
Trait Implementations§
source§impl Clone for FindLogError
source§fn clone(&self) -> FindLogError
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 FindLogError
source§impl Display for FindLogError
source§impl Error for FindLogError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl RefUnwindSafe for FindLogError
§impl Send for FindLogError
§impl Sync for FindLogError
§impl Unpin for FindLogError
§impl UnwindSafe for FindLogError
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/mp_digest_log/enum.Log.html b/mp_digest_log/enum.Log.html
index d24331ef0f..c74caa856a 100644
--- a/mp_digest_log/enum.Log.html
+++ b/mp_digest_log/enum.Log.html
@@ -1,9 +1,9 @@
Log in mp_digest_log - Rust Enum mp_digest_log::Log
source · pub enum Log {
- Block(Block),
+ Block(Block),
}
Expand description
A Madara log
Right now we only expect Madara to log the Starknet block,
but other usecases may appears later on.
-Variants§
Trait Implementations§
Variants§
§Block(Block)
Trait Implementations§
source§impl Decode for Log
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,
diff --git a/mp_digest_log/fn.find_starknet_block.html b/mp_digest_log/fn.find_starknet_block.html
index 63b7a6c56c..b08a7b66b3 100644
--- a/mp_digest_log/fn.find_starknet_block.html
+++ b/mp_digest_log/fn.find_starknet_block.html
@@ -1,2 +1,2 @@
-find_starknet_block in mp_digest_log - Rust Function mp_digest_log::find_starknet_block
source · pub fn find_starknet_block(digest: &Digest) -> Result<Block, FindLogError>
Expand description
Return the wrapped StarknetBlock contained in a given [Digest]
+find_starknet_block in mp_digest_log - Rust Function mp_digest_log::find_starknet_block
source · pub fn find_starknet_block(digest: &Digest) -> Result<Block, FindLogError>
Expand description
Return the wrapped [StarknetBlock] contained in a given [Digest]
\ No newline at end of file
diff --git a/mp_digest_log/index.html b/mp_digest_log/index.html
index 67d1f70d55..2a2576738a 100644
--- a/mp_digest_log/index.html
+++ b/mp_digest_log/index.html
@@ -7,4 +7,4 @@
In the current state of this crate, only one single log must be pushed to the digest each block,
and it should contain the starknet block. Pushing more log will make it impossible for this set
of reader functions to operate properly.
-Enums
- Error that may occur while searching a Madara [Log] in the [Digest]
- A Madara log
Constants
Functions
- Ensure there is a single valid Madara Log in a given [Digest]
- Return the Madara Log contained in a given [Digest]
- Return the wrapped StarknetBlock contained in a given [Digest]
\ No newline at end of file
+
Enums
- Error that may occur while searching a Madara [Log] in the [Digest]
- A Madara log
Constants
Functions
\ No newline at end of file
diff --git a/mp_simulations/index.html b/mp_simulations/index.html
index d6510cc678..55e63ad318 100644
--- a/mp_simulations/index.html
+++ b/mp_simulations/index.html
@@ -1 +1 @@
-mp_simulations - Rust
\ No newline at end of file
+mp_simulations - Rust
\ No newline at end of file
diff --git a/mp_simulations/struct.SimulationFlags.html b/mp_simulations/struct.SimulationFlags.html
index 775e4874f9..93d5595223 100644
--- a/mp_simulations/struct.SimulationFlags.html
+++ b/mp_simulations/struct.SimulationFlags.html
@@ -8,11 +8,11 @@
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 Default for SimulationFlags
source§impl Encode for SimulationFlags
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 Default for SimulationFlags
source§impl Encode for SimulationFlags
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<SimulationFlags> for SimulationFlags
source§fn eq(&self, other: &SimulationFlags) -> bool
source§impl PartialEq<SimulationFlags> for SimulationFlags
source§fn eq(&self, other: &SimulationFlags) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl TypeInfo for SimulationFlags
source§impl EncodeLike<SimulationFlags> for SimulationFlags
source§impl Eq for SimulationFlags
source§impl StructuralEq for SimulationFlags
source§impl StructuralPartialEq for SimulationFlags
Auto Trait Implementations§
§impl RefUnwindSafe for SimulationFlags
§impl Send for SimulationFlags
§impl Sync for SimulationFlags
§impl Unpin for SimulationFlags
§impl UnwindSafe for SimulationFlags
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/mp_transactions/compute_hash/index.html b/mp_transactions/compute_hash/index.html
index 9282d23040..72aec2cfa9 100644
--- a/mp_transactions/compute_hash/index.html
+++ b/mp_transactions/compute_hash/index.html
@@ -1 +1 @@
-mp_transactions::compute_hash - Rust
\ No newline at end of file
+mp_transactions::compute_hash - Rust
\ No newline at end of file
diff --git a/mp_transactions/compute_hash/trait.ComputeTransactionHash.html b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
index 00ba3d4c7b..fe8292a87f 100644
--- a/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
+++ b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
@@ -9,39 +9,39 @@
&self,
chain_id: Felt252Wrapper,
offset_version: bool
-) -> TransactionHash
Implementations on Foreign Types§
source§impl ComputeTransactionHash for DeployAccountTransactionV1
source§fn compute_hash(
+) -> TransactionHash
Implementations on Foreign Types§
source§impl ComputeTransactionHash for DeclareTransactionV2
source§fn compute_hash(
&self,
chain_id: Felt252Wrapper,
offset_version: bool
-) -> TransactionHash
source§impl ComputeTransactionHash for InvokeTransactionV3
source§fn compute_hash(
+) -> TransactionHash
source§impl ComputeTransactionHash for DeployAccountTransactionV3
source§fn compute_hash(
&self,
chain_id: Felt252Wrapper,
offset_version: bool
-) -> TransactionHash
source§impl ComputeTransactionHash for DeployAccountTransaction
source§fn compute_hash(
+) -> TransactionHash
source§impl ComputeTransactionHash for DeployAccountTransaction
source§fn compute_hash(
&self,
chain_id: Felt252Wrapper,
offset_version: bool
-) -> TransactionHash
source§impl ComputeTransactionHash for DeclareTransactionV2
source§fn compute_hash(
+) -> TransactionHash
source§impl ComputeTransactionHash for InvokeTransactionV1
source§fn compute_hash(
&self,
chain_id: Felt252Wrapper,
offset_version: bool
-) -> TransactionHash
source§impl ComputeTransactionHash for InvokeTransactionV1
source§fn compute_hash(
+) -> TransactionHash
source§impl ComputeTransactionHash for DeployAccountTransactionV1
source§fn compute_hash(
&self,
chain_id: Felt252Wrapper,
offset_version: bool
-) -> TransactionHash
source§impl ComputeTransactionHash for DeployAccountTransactionV3
source§fn compute_hash(
+) -> TransactionHash
source§impl ComputeTransactionHash for InvokeTransactionV3
source§fn compute_hash(
&self,
chain_id: Felt252Wrapper,
offset_version: bool
-) -> TransactionHash
source§impl ComputeTransactionHash for DeclareTransaction
source§fn compute_hash(
+) -> TransactionHash
source§impl ComputeTransactionHash for L1HandlerTransaction
source§fn compute_hash(
&self,
chain_id: Felt252Wrapper,
offset_version: bool
-) -> TransactionHash
source§impl ComputeTransactionHash for L1HandlerTransaction
source§fn compute_hash(
+) -> TransactionHash
source§impl ComputeTransactionHash for DeclareTransactionV3
source§fn compute_hash(
&self,
chain_id: Felt252Wrapper,
offset_version: bool
-) -> TransactionHash
source§impl ComputeTransactionHash for DeclareTransactionV3
source§fn compute_hash(
+) -> TransactionHash
source§impl ComputeTransactionHash for DeclareTransaction
source§fn compute_hash(
&self,
chain_id: Felt252Wrapper,
offset_version: bool
@@ -49,7 +49,7 @@
&self,
chain_id: Felt252Wrapper,
offset_version: bool
-) -> TransactionHash
source§impl ComputeTransactionHash for InvokeTransaction
source§fn compute_hash(
+) -> TransactionHash
source§impl ComputeTransactionHash for InvokeTransaction
source§fn compute_hash(
&self,
chain_id: Felt252Wrapper,
offset_version: bool
diff --git a/mp_transactions/enum.TxType.html b/mp_transactions/enum.TxType.html
index b2a050a599..cd4484741c 100644
--- a/mp_transactions/enum.TxType.html
+++ b/mp_transactions/enum.TxType.html
@@ -11,7 +11,7 @@
§DeployAccount
Deploy account transaction.
§L1Handler
Message sent from ethereum.
Trait Implementations§
source§impl<'de> Deserialize<'de> for TxType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TxType> for TxType
source§fn eq(&self, other: &TxType) -> bool
This method tests for self
and other
values to be equal, and is used
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<TxType> for TxType
source§impl Eq for TxType
source§impl StructuralEq for TxType
source§impl StructuralPartialEq for TxType
Auto Trait Implementations§
§impl RefUnwindSafe for TxType
§impl Send for TxType
§impl Sync for TxType
§impl Unpin for TxType
§impl UnwindSafe for TxType
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/mp_transactions/execution/trait.CheckFeeBounds.html b/mp_transactions/execution/trait.CheckFeeBounds.html
index 1360065aac..c28095129c 100644
--- a/mp_transactions/execution/trait.CheckFeeBounds.html
+++ b/mp_transactions/execution/trait.CheckFeeBounds.html
@@ -10,4 +10,4 @@
}Required Methods§
sourcefn state_changes() -> StateChangesCount
Provided Methods§
sourcefn check_fee_bounds(
&self,
tx_context: &TransactionContext
-) -> TransactionExecutionResult<()>
Implementations on Foreign Types§
source§impl CheckFeeBounds for DeclareTransaction
source§fn state_changes() -> StateChangesCount
source§impl CheckFeeBounds for DeployAccountTransaction
source§fn state_changes() -> StateChangesCount
source§impl CheckFeeBounds for InvokeTransaction
source§fn state_changes() -> StateChangesCount
Implementors§
\ No newline at end of file
+) -> TransactionExecutionResult<()>Implementations on Foreign Types§
source§impl CheckFeeBounds for DeclareTransaction
source§fn state_changes() -> StateChangesCount
source§impl CheckFeeBounds for InvokeTransaction
source§fn state_changes() -> StateChangesCount
source§impl CheckFeeBounds for DeployAccountTransaction
source§fn state_changes() -> StateChangesCount
Implementors§
\ No newline at end of file
diff --git a/mp_transactions/execution/trait.GetActualCostBuilder.html b/mp_transactions/execution/trait.GetActualCostBuilder.html
index 461e6759d3..f33151fa27 100644
--- a/mp_transactions/execution/trait.GetActualCostBuilder.html
+++ b/mp_transactions/execution/trait.GetActualCostBuilder.html
@@ -7,13 +7,13 @@
}Required Methods§
sourcefn get_actual_cost_builder(
&self,
tx_context: Arc<TransactionContext>
-) -> ActualCostBuilder<'_>
Implementations on Foreign Types§
source§impl GetActualCostBuilder for DeclareTransaction
source§fn get_actual_cost_builder(
+) -> ActualCostBuilder<'_>
Implementations on Foreign Types§
source§impl GetActualCostBuilder for DeployAccountTransaction
source§fn get_actual_cost_builder(
&self,
tx_context: Arc<TransactionContext>
-) -> ActualCostBuilder<'_>
source§impl GetActualCostBuilder for DeployAccountTransaction
source§fn get_actual_cost_builder(
+) -> ActualCostBuilder<'_>
source§impl GetActualCostBuilder for InvokeTransaction
source§fn get_actual_cost_builder(
&self,
tx_context: Arc<TransactionContext>
-) -> ActualCostBuilder<'_>
source§impl GetActualCostBuilder for InvokeTransaction
source§fn get_actual_cost_builder(
+) -> ActualCostBuilder<'_>
source§impl GetActualCostBuilder for DeclareTransaction
source§fn get_actual_cost_builder(
&self,
tx_context: Arc<TransactionContext>
) -> ActualCostBuilder<'_>
Implementors§
\ No newline at end of file
diff --git a/mp_transactions/execution/trait.GetCalldataLen.html b/mp_transactions/execution/trait.GetCalldataLen.html
index a6eecfaccc..ca56198ea4 100644
--- a/mp_transactions/execution/trait.GetCalldataLen.html
+++ b/mp_transactions/execution/trait.GetCalldataLen.html
@@ -1,4 +1,4 @@
GetCalldataLen in mp_transactions::execution - Rust Trait mp_transactions::execution::GetCalldataLen
source · pub trait GetCalldataLen {
// Required method
fn get_calldata_len(&self) -> usize;
-}
Required Methods§
sourcefn get_calldata_len(&self) -> usize
Implementations on Foreign Types§
source§impl GetCalldataLen for DeployAccountTransaction
source§fn get_calldata_len(&self) -> usize
source§impl GetCalldataLen for DeclareTransaction
source§fn get_calldata_len(&self) -> usize
source§impl GetCalldataLen for InvokeTransaction
source§fn get_calldata_len(&self) -> usize
Implementors§
\ No newline at end of file
+}Required Methods§
sourcefn get_calldata_len(&self) -> usize
Implementations on Foreign Types§
source§impl GetCalldataLen for InvokeTransaction
source§fn get_calldata_len(&self) -> usize
source§impl GetCalldataLen for DeployAccountTransaction
source§fn get_calldata_len(&self) -> usize
source§impl GetCalldataLen for DeclareTransaction
source§fn get_calldata_len(&self) -> usize
Implementors§
\ No newline at end of file
diff --git a/mp_transactions/execution/trait.GetTxType.html b/mp_transactions/execution/trait.GetTxType.html
index 37f90ad088..9a28b07b10 100644
--- a/mp_transactions/execution/trait.GetTxType.html
+++ b/mp_transactions/execution/trait.GetTxType.html
@@ -1,4 +1,4 @@
GetTxType in mp_transactions::execution - Rust
\ No newline at end of file
+}Required Methods§
Implementations on Foreign Types§
Implementors§
\ No newline at end of file
diff --git a/mp_transactions/execution/trait.GetValidateEntryPointCalldata.html b/mp_transactions/execution/trait.GetValidateEntryPointCalldata.html
index eb08f239af..563b05aca0 100644
--- a/mp_transactions/execution/trait.GetValidateEntryPointCalldata.html
+++ b/mp_transactions/execution/trait.GetValidateEntryPointCalldata.html
@@ -1,4 +1,4 @@
GetValidateEntryPointCalldata in mp_transactions::execution - Rust pub trait GetValidateEntryPointCalldata {
// Required method
fn get_validate_entry_point_calldata(&self) -> Calldata;
-}
Required Methods§
sourcefn get_validate_entry_point_calldata(&self) -> Calldata
Implementations on Foreign Types§
source§impl GetValidateEntryPointCalldata for DeployAccountTransaction
source§fn get_validate_entry_point_calldata(&self) -> Calldata
source§impl GetValidateEntryPointCalldata for L1HandlerTransaction
source§fn get_validate_entry_point_calldata(&self) -> Calldata
source§impl GetValidateEntryPointCalldata for InvokeTransaction
source§fn get_validate_entry_point_calldata(&self) -> Calldata
source§impl GetValidateEntryPointCalldata for DeclareTransaction
source§fn get_validate_entry_point_calldata(&self) -> Calldata
Implementors§
\ No newline at end of file
+}Required Methods§
sourcefn get_validate_entry_point_calldata(&self) -> Calldata
Implementations on Foreign Types§
source§impl GetValidateEntryPointCalldata for DeclareTransaction
source§fn get_validate_entry_point_calldata(&self) -> Calldata
source§impl GetValidateEntryPointCalldata for DeployAccountTransaction
source§fn get_validate_entry_point_calldata(&self) -> Calldata
source§impl GetValidateEntryPointCalldata for InvokeTransaction
source§fn get_validate_entry_point_calldata(&self) -> Calldata
source§impl GetValidateEntryPointCalldata for L1HandlerTransaction
source§fn get_validate_entry_point_calldata(&self) -> Calldata
Implementors§
\ No newline at end of file
diff --git a/mp_transactions/execution/trait.GetValidateEntryPointSelector.html b/mp_transactions/execution/trait.GetValidateEntryPointSelector.html
index a7ade7f0ff..e34d8c5f43 100644
--- a/mp_transactions/execution/trait.GetValidateEntryPointSelector.html
+++ b/mp_transactions/execution/trait.GetValidateEntryPointSelector.html
@@ -1,4 +1,4 @@
GetValidateEntryPointSelector in mp_transactions::execution - Rust pub trait GetValidateEntryPointSelector {
// Required method
fn get_validate_entry_point_selector() -> EntryPointSelector;
-}
Required Methods§
sourcefn get_validate_entry_point_selector() -> EntryPointSelector
Implementations on Foreign Types§
source§impl GetValidateEntryPointSelector for DeployAccountTransaction
source§fn get_validate_entry_point_selector() -> EntryPointSelector
source§impl GetValidateEntryPointSelector for DeclareTransaction
source§fn get_validate_entry_point_selector() -> EntryPointSelector
source§impl GetValidateEntryPointSelector for InvokeTransaction
source§fn get_validate_entry_point_selector() -> EntryPointSelector
source§impl GetValidateEntryPointSelector for L1HandlerTransaction
source§fn get_validate_entry_point_selector() -> EntryPointSelector
Implementors§
\ No newline at end of file
+}Required Methods§
sourcefn get_validate_entry_point_selector() -> EntryPointSelector
Implementations on Foreign Types§
source§impl GetValidateEntryPointSelector for DeployAccountTransaction
source§fn get_validate_entry_point_selector() -> EntryPointSelector
source§impl GetValidateEntryPointSelector for DeclareTransaction
source§fn get_validate_entry_point_selector() -> EntryPointSelector
source§impl GetValidateEntryPointSelector for L1HandlerTransaction
source§fn get_validate_entry_point_selector() -> EntryPointSelector
source§impl GetValidateEntryPointSelector for InvokeTransaction
source§fn get_validate_entry_point_selector() -> EntryPointSelector
Implementors§
\ No newline at end of file
diff --git a/mp_transactions/execution/trait.HandleNonce.html b/mp_transactions/execution/trait.HandleNonce.html
index 7e9895fd05..91c4ba51e4 100644
--- a/mp_transactions/execution/trait.HandleNonce.html
+++ b/mp_transactions/execution/trait.HandleNonce.html
@@ -9,4 +9,4 @@
state: &mut dyn State,
tx_info: &TransactionInfo,
strict: bool
-) -> TransactionExecutionResult<()>Implementations on Foreign Types§
source§impl HandleNonce for InvokeTransaction
source§impl HandleNonce for DeclareTransaction
source§impl HandleNonce for DeployAccountTransaction
Implementors§
\ No newline at end of file
+) -> TransactionExecutionResult<()>Implementations on Foreign Types§
source§impl HandleNonce for InvokeTransaction
source§impl HandleNonce for DeployAccountTransaction
source§impl HandleNonce for DeclareTransaction
Implementors§
\ No newline at end of file
diff --git a/mp_transactions/from_broadcasted_transactions/enum.BroadcastedTransactionConversionError.html b/mp_transactions/from_broadcasted_transactions/enum.BroadcastedTransactionConversionError.html
index a47b398a8f..5f9394b3b5 100644
--- a/mp_transactions/from_broadcasted_transactions/enum.BroadcastedTransactionConversionError.html
+++ b/mp_transactions/from_broadcasted_transactions/enum.BroadcastedTransactionConversionError.html
@@ -10,7 +10,7 @@
InvalidTransactionVersion,
StarknetApi(StarknetApiError),
ContractClass(ContractClassError),
-}Variants§
§MaxFeeTooBig
§ProgramDecompressionFailed
§ProgramDeserializationFailed
§ClassHashComputationFailed
§CasmContractClassConversionFailed
§InvalidCompiledClassHash
§SierraCompilationFailed(StarknetSierraCompilationError)
§UnsuportedTransactionVersion
§InvalidTransactionVersion
§StarknetApi(StarknetApiError)
§ContractClass(ContractClassError)
Trait Implementations§
source§impl Error for BroadcastedTransactionConversionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<ContractClassError> for BroadcastedTransactionConversionError
Auto Trait Implementations§
§impl RefUnwindSafe for BroadcastedTransactionConversionError
§impl Send for BroadcastedTransactionConversionError
§impl Sync for BroadcastedTransactionConversionError
§impl Unpin for BroadcastedTransactionConversionError
§impl UnwindSafe for BroadcastedTransactionConversionError
Blanket Implementations§
source§impl<T> Any for Twhere
+}Variants§
§MaxFeeTooBig
§ProgramDecompressionFailed
§ProgramDeserializationFailed
§ClassHashComputationFailed
§CasmContractClassConversionFailed
§InvalidCompiledClassHash
§SierraCompilationFailed(StarknetSierraCompilationError)
§UnsuportedTransactionVersion
§InvalidTransactionVersion
§StarknetApi(StarknetApiError)
§ContractClass(ContractClassError)
Trait Implementations§
source§impl Error for BroadcastedTransactionConversionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<ContractClassError> for BroadcastedTransactionConversionError
Auto Trait Implementations§
§impl RefUnwindSafe for BroadcastedTransactionConversionError
§impl Send for BroadcastedTransactionConversionError
§impl Sync for BroadcastedTransactionConversionError
§impl Unpin for BroadcastedTransactionConversionError
§impl UnwindSafe for BroadcastedTransactionConversionError
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> Conv for T
§fn conv<T>(self) -> Twhere
diff --git a/pallet_starknet/blockifier_state_adapter/struct.BlockifierStateAdapter.html b/pallet_starknet/blockifier_state_adapter/struct.BlockifierStateAdapter.html
index 882d877e4b..59b5e2f6eb 100644
--- a/pallet_starknet/blockifier_state_adapter/struct.BlockifierStateAdapter.html
+++ b/pallet_starknet/blockifier_state_adapter/struct.BlockifierStateAdapter.html
@@ -2,7 +2,7 @@
We feed this struct when executing a transaction so that we directly use the substrate storage
and not an extra layer that would add overhead.
We don’t implement those traits directly on the pallet to avoid compilation problems.
-
Trait Implementations§
source§impl<T: Config> Default for BlockifierStateAdapter<T>
source§impl<T: Config> SetArbitraryNonce for BlockifierStateAdapter<T>
source§fn set_nonce_at(
+
Trait Implementations§
source§impl<T: Config> Default for BlockifierStateAdapter<T>
source§impl<T: Config> SetArbitraryNonce for BlockifierStateAdapter<T>
source§fn set_nonce_at(
&mut self,
contract_address: ContractAddress,
nonce: Nonce
diff --git a/pallet_starknet/genesis_loader/struct.GenesisData.html b/pallet_starknet/genesis_loader/struct.GenesisData.html
index 9a6f29b6e8..aaa220b22f 100644
--- a/pallet_starknet/genesis_loader/struct.GenesisData.html
+++ b/pallet_starknet/genesis_loader/struct.GenesisData.html
@@ -1,5 +1,5 @@
-GenesisData in pallet_starknet::genesis_loader - Rust Struct pallet_starknet::genesis_loader::GenesisData
source · pub struct GenesisData {
- pub contract_classes: Vec<(HexFelt, ContractClass), Global>,
+GenesisData in pallet_starknet::genesis_loader - Rust Struct pallet_starknet::genesis_loader::GenesisData
pub struct GenesisData {
+ pub contract_classes: Vec<(HexFelt, ContractClass), Global>,
pub sierra_class_hash_to_casm_class_hash: Vec<(HexFelt, HexFelt), Global>,
pub contracts: Vec<(HexFelt, HexFelt), Global>,
pub predeployed_accounts: Vec<PredeployedAccount, Global>,
@@ -7,16 +7,16 @@
pub chain_id: String,
pub strk_fee_token_address: HexFelt,
pub eth_fee_token_address: HexFelt,
-}
Fields§
§contract_classes: Vec<(HexFelt, ContractClass), Global>
§sierra_class_hash_to_casm_class_hash: Vec<(HexFelt, HexFelt), Global>
§contracts: Vec<(HexFelt, HexFelt), Global>
§predeployed_accounts: Vec<PredeployedAccount, Global>
§storage: Vec<((HexFelt, HexFelt), HexFelt), Global>
§chain_id: String
§strk_fee_token_address: HexFelt
§eth_fee_token_address: HexFelt
Trait Implementations§
source§impl Clone for GenesisData
source§fn clone(&self) -> GenesisData
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 GenesisData
source§impl<'de> Deserialize<'de> for GenesisData
source§fn deserialize<__D>(
+}Fields§
§contract_classes: Vec<(HexFelt, ContractClass), Global>
§sierra_class_hash_to_casm_class_hash: Vec<(HexFelt, HexFelt), Global>
§contracts: Vec<(HexFelt, HexFelt), Global>
§predeployed_accounts: Vec<PredeployedAccount, Global>
§storage: Vec<((HexFelt, HexFelt), HexFelt), Global>
§chain_id: String
§strk_fee_token_address: HexFelt
§eth_fee_token_address: HexFelt
Trait Implementations§
§impl Clone for GenesisData
§fn clone(&self) -> GenesisData
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for GenesisData
§impl<'de> Deserialize<'de> for GenesisData
§fn deserialize<__D>(
__deserializer: __D
) -> Result<GenesisData, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<GenesisData> for GenesisData
source§fn eq(&self, other: &GenesisData) -> bool
This method tests for self
and other
values to be equal, and is used
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read more§impl PartialEq<GenesisData> for GenesisData
§fn eq(&self, other: &GenesisData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.§impl Serialize for GenesisData
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for GenesisData
source§impl StructuralEq for GenesisData
source§impl StructuralPartialEq for GenesisData
Auto Trait Implementations§
§impl RefUnwindSafe for GenesisData
§impl Send for GenesisData
§impl Sync for GenesisData
§impl Unpin for GenesisData
§impl UnwindSafe for GenesisData
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl Eq for GenesisData
§impl StructuralEq for GenesisData
§impl StructuralPartialEq for GenesisData
Auto Trait Implementations§
§impl RefUnwindSafe for GenesisData
§impl Send for GenesisData
§impl Sync for GenesisData
§impl Unpin for GenesisData
§impl UnwindSafe for GenesisData
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/pallet_starknet/genesis_loader/struct.GenesisLoader.html b/pallet_starknet/genesis_loader/struct.GenesisLoader.html
index 8bf19002e6..226452b8b8 100644
--- a/pallet_starknet/genesis_loader/struct.GenesisLoader.html
+++ b/pallet_starknet/genesis_loader/struct.GenesisLoader.html
@@ -1,6 +1,6 @@
-GenesisLoader in pallet_starknet::genesis_loader - Rust Struct pallet_starknet::genesis_loader::GenesisLoader
source · pub struct GenesisLoader { /* private fields */ }
Implementations§
source§impl GenesisLoader
sourcepub fn new(base_path: PathBuf, data: GenesisData) -> GenesisLoader
sourcepub fn data(&self) -> &GenesisData
sourcepub fn base_path(&self) -> PathBuf
Trait Implementations§
source§impl Debug for GenesisLoader
source§impl<T: Config> From<GenesisLoader> for GenesisConfig<T>
source§fn from(loader: GenesisLoader) -> Self
Converts to this type from the input type.source§impl PartialEq<GenesisLoader> for GenesisLoader
source§fn eq(&self, other: &GenesisLoader) -> bool
This method tests for self
and other
values to be equal, and is used
+GenesisLoader in pallet_starknet::genesis_loader - Rust Struct pallet_starknet::genesis_loader::GenesisLoader
pub struct GenesisLoader { /* private fields */ }
Implementations§
§impl GenesisLoader
pub fn new(base_path: PathBuf, data: GenesisData) -> GenesisLoader
pub fn data(&self) -> &GenesisData
pub fn base_path(&self) -> PathBuf
Trait Implementations§
§impl Debug for GenesisLoader
source§impl<T: Config> From<GenesisLoader> for GenesisConfig<T>
source§fn from(loader: GenesisLoader) -> Self
Converts to this type from the input type.§impl PartialEq<GenesisLoader> for GenesisLoader
§fn eq(&self, other: &GenesisLoader) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Eq for GenesisLoader
source§impl StructuralEq for GenesisLoader
source§impl StructuralPartialEq for GenesisLoader
Auto Trait Implementations§
§impl RefUnwindSafe for GenesisLoader
§impl Send for GenesisLoader
§impl Sync for GenesisLoader
§impl Unpin for GenesisLoader
§impl UnwindSafe for GenesisLoader
Blanket Implementations§
§impl Eq for GenesisLoader
§impl StructuralEq for GenesisLoader
§impl StructuralPartialEq for GenesisLoader
Auto Trait Implementations§
§impl RefUnwindSafe for GenesisLoader
§impl Send for GenesisLoader
§impl Sync for GenesisLoader
§impl Unpin for GenesisLoader
§impl UnwindSafe for GenesisLoader
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/pallet_starknet/genesis_loader/struct.HexFelt.html b/pallet_starknet/genesis_loader/struct.HexFelt.html
index 6715b6c94a..e27cf4dea2 100644
--- a/pallet_starknet/genesis_loader/struct.HexFelt.html
+++ b/pallet_starknet/genesis_loader/struct.HexFelt.html
@@ -1,14 +1,14 @@
-HexFelt in pallet_starknet::genesis_loader - Rust Struct pallet_starknet::genesis_loader::HexFelt
source · pub struct HexFelt(pub FieldElement);
Expand description
A wrapper for FieldElement that implements serde’s Serialize and Deserialize for hex strings.
-Tuple Fields§
§0: FieldElement
Trait Implementations§
source§impl<'de> Deserialize<'de> for HexFelt
source§fn deserialize<__D>(
+HexFelt in pallet_starknet::genesis_loader - Rust Struct pallet_starknet::genesis_loader::HexFelt
pub struct HexFelt(pub FieldElement);
Expand description
A wrapper for FieldElement that implements serde’s Serialize and Deserialize for hex strings.
+Tuple Fields§
§0: FieldElement
Trait Implementations§
§impl<'de> Deserialize<'de> for HexFelt
§fn deserialize<__D>(
__deserializer: __D
) -> Result<HexFelt, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<Felt252Wrapper> for HexFelt
source§fn from(felt: Felt252Wrapper) -> HexFelt
Converts to this type from the input type.source§impl PartialEq<HexFelt> for HexFelt
source§fn eq(&self, other: &HexFelt) -> bool
This method tests for self
and other
values to be equal, and is used
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read more§impl Serialize for HexFelt
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Copy for HexFelt
source§impl Eq for HexFelt
source§impl StructuralEq for HexFelt
source§impl StructuralPartialEq for HexFelt
Auto Trait Implementations§
§impl RefUnwindSafe for HexFelt
§impl Send for HexFelt
§impl Sync for HexFelt
§impl Unpin for HexFelt
§impl UnwindSafe for HexFelt
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for HexFelt
§impl Eq for HexFelt
§impl StructuralEq for HexFelt
§impl StructuralPartialEq for HexFelt
Auto Trait Implementations§
§impl RefUnwindSafe for HexFelt
§impl Send for HexFelt
§impl Sync for HexFelt
§impl Unpin for HexFelt
§impl UnwindSafe for HexFelt
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/pallet_starknet/genesis_loader/struct.PredeployedAccount.html b/pallet_starknet/genesis_loader/struct.PredeployedAccount.html
index a81eef241f..5a091441ca 100644
--- a/pallet_starknet/genesis_loader/struct.PredeployedAccount.html
+++ b/pallet_starknet/genesis_loader/struct.PredeployedAccount.html
@@ -1,20 +1,20 @@
-PredeployedAccount in pallet_starknet::genesis_loader - Rust pub struct PredeployedAccount {
+PredeployedAccount in pallet_starknet::genesis_loader - Rust pub struct PredeployedAccount {
pub contract_address: HexFelt,
pub class_hash: HexFelt,
pub name: String,
pub private_key: Option<Vec<u8, Global>>,
pub public_key: HexFelt,
}
Expand description
A struct containing predeployed accounts info.
-Fields§
§contract_address: HexFelt
§class_hash: HexFelt
§name: String
§private_key: Option<Vec<u8, Global>>
§public_key: HexFelt
Trait Implementations§
source§impl Clone for PredeployedAccount
source§fn clone(&self) -> PredeployedAccount
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 PredeployedAccount
source§impl<'de> Deserialize<'de> for PredeployedAccount
source§fn deserialize<__D>(
+
Fields§
§contract_address: HexFelt
§class_hash: HexFelt
§name: String
§private_key: Option<Vec<u8, Global>>
§public_key: HexFelt
Trait Implementations§
§impl Clone for PredeployedAccount
§fn clone(&self) -> PredeployedAccount
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for PredeployedAccount
§impl<'de> Deserialize<'de> for PredeployedAccount
§fn deserialize<__D>(
__deserializer: __D
) -> Result<PredeployedAccount, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<PredeployedAccount> for PredeployedAccount
source§fn eq(&self, other: &PredeployedAccount) -> bool
This method tests for self
and other
values to be equal, and is used
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read more§impl PartialEq<PredeployedAccount> for PredeployedAccount
§fn eq(&self, other: &PredeployedAccount) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.§impl Serialize for PredeployedAccount
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for PredeployedAccount
source§impl StructuralEq for PredeployedAccount
source§impl StructuralPartialEq for PredeployedAccount
Auto Trait Implementations§
§impl RefUnwindSafe for PredeployedAccount
§impl Send for PredeployedAccount
§impl Sync for PredeployedAccount
§impl Unpin for PredeployedAccount
§impl UnwindSafe for PredeployedAccount
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for PredeployedAccount
§impl StructuralEq for PredeployedAccount
§impl StructuralPartialEq for PredeployedAccount
Auto Trait Implementations§
§impl RefUnwindSafe for PredeployedAccount
§impl Send for PredeployedAccount
§impl Sync for PredeployedAccount
§impl Unpin for PredeployedAccount
§impl UnwindSafe for PredeployedAccount
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/pallet_starknet/index.html b/pallet_starknet/index.html
index ff365c8b63..a2122726fe 100644
--- a/pallet_starknet/index.html
+++ b/pallet_starknet/index.html
@@ -1,4 +1,4 @@
-pallet_starknet - Rust