From 68e1b8c1ae767737cfe8baf914fed0255e669467 Mon Sep 17 00:00:00 2001 From: tdelabro Date: Thu, 6 Jun 2024 09:37:13 +0000 Subject: [PATCH] deploy: 271287e6e4d429fbbc40a61d45ad9d334699776f --- help.html | 2 +- implementors/bounded_collections/trait.Get.js | 2 +- implementors/core/clone/trait.Clone.js | 2 +- implementors/core/convert/trait.From.js | 4 +- implementors/core/convert/trait.TryInto.js | 2 +- .../traits/misc/trait.IsSubType.js | 2 +- .../futures_core/stream/trait.Stream.js | 4 +- .../mc_rpc_core/trait.MadaraRpcApiServer.js | 2 +- .../trait.StarknetReadRpcApiServer.js | 2 +- .../trait.StarknetTraceRpcApiServer.js | 2 +- .../trait.StarknetWriteRpcApiServer.js | 2 +- .../execution/trait.SetArbitraryNonce.js | 2 +- .../pallet_starknet/pallet/trait.Config.js | 2 +- .../trait.ConvertTransactionRuntimeApi.js | 2 +- .../trait.StarknetRuntimeApi.js | 2 +- .../block_import/trait.BlockImport.js | 2 +- madara/chain_spec/fn.load_genesis.html | 2 +- .../fn.print_development_accounts.html | 2 +- madara/chain_spec/fn.testnet_genesis.html | 2 +- .../fn.build_aura_queue_grandpa_pipeline.html | 2 +- .../fn.build_manual_seal_queue_pipeline.html | 2 +- madara/rpc/fn.create_full.html | 4 +- madara/rpc/starknet/struct.StarknetDeps.html | 12 +-- madara/rpc/struct.FullDeps.html | 2 +- madara/service/fn.new_chain_ops.html | 2 +- madara/service/fn.new_partial.html | 2 +- madara/service/type.ChainOpsResult.html | 2 +- madara/starknet/type.MadaraBackend.html | 2 +- madara_runtime/enum.RuntimeCall.html | 2 +- madara_runtime/enum.RuntimeError.html | 6 +- madara_runtime/index.html | 2 +- madara_runtime/opaque/index.html | 2 +- madara_runtime/opaque/trait.BuildStorage.html | 4 +- madara_runtime/struct.DefaultChainId.html | 4 +- madara_runtime/struct.Runtime.html | 28 +++---- madara_runtime/struct.RuntimeApiImpl.html | 84 +++++++++---------- madara_runtime/trait.BuildStorage.html | 4 +- madara_runtime/type.Starknet.html | 2 +- madara_runtime/type.StarknetConfig.html | 2 +- madara_runtime/type.StarknetHasher.html | 2 +- .../struct.CommitmentStateDiffWorker.html | 6 +- mc_l1_gas_price/worker/fn.run_worker.html | 2 +- .../error/enum.L1MessagesWorkerError.html | 8 +- mc_l1_messages/worker/fn.run_worker.html | 4 +- .../worker/struct.EthereumClientConfig.html | 12 +-- mc_mapping_sync/struct.MappingSyncWorker.html | 6 +- mc_rpc/fn.get_block_by_block_hash.html | 2 +- .../struct.PredeployedAccountWithBalance.html | 4 +- .../struct.StarknetRpcWrapper.html | 26 +++--- .../trait.MadaraRpcApiServer.html | 12 +-- .../trait.StarknetReadRpcApiServer.html | 16 ++-- .../trait.StarknetTraceRpcApiServer.html | 12 +-- .../trait.StarknetWriteRpcApiServer.html | 12 +-- .../struct.PredeployedAccountWithBalance.html | 4 +- mc_rpc/struct.Starknet.html | 54 ++++++------ mc_rpc/trait.MadaraRpcApiServer.html | 12 +-- mc_rpc/trait.StarknetReadRpcApiServer.html | 16 ++-- mc_rpc/trait.StarknetTraceRpcApiServer.html | 12 +-- mc_rpc/trait.StarknetWriteRpcApiServer.html | 12 +-- .../struct.PredeployedAccountWithBalance.html | 4 +- .../trait.StarknetReadRpcApiServer.html | 4 +- .../utils/fn.get_block_by_block_hash.html | 2 +- .../struct.StarknetBlockImport.html | 4 +- mc_storage/fn.onchain_storage_schema.html | 2 +- mc_storage/fn.overrides_handle.html | 2 +- mc_storage/struct.OverrideHandle.html | 6 +- .../struct.RuntimeApiStorageOverride.html | 2 +- mc_storage/trait.StorageOverride.html | 2 +- mp_digest_log/enum.Log.html | 4 +- mp_digest_log/fn.find_starknet_block.html | 2 +- mp_digest_log/index.html | 2 +- .../struct.BlockifierStateAdapter.html | 2 +- .../genesis_loader/struct.GenesisData.html | 12 +-- .../genesis_loader/struct.GenesisLoader.html | 4 +- .../genesis_loader/struct.HexFelt.html | 10 +-- .../struct.PredeployedAccount.html | 10 +-- pallet_starknet/index.html | 2 +- .../fn.set_starknet_inherent_data.html | 2 +- pallet_starknet/pallet/enum.Call.html | 6 +- .../pallet/struct.DefaultChainId.html | 2 +- .../pallet/struct.GenesisConfig.html | 4 +- pallet_starknet/pallet/struct.Pallet.html | 62 +++++++------- pallet_starknet/pallet/trait.Config.html | 16 ++-- .../pallet/type.ChainIdStorage.html | 2 +- .../pallet/type.CurrentL1GasPrice.html | 2 +- ...struct.DeployAccountTransactionOutput.html | 4 +- pallet_starknet/types/type.StorageSlot.html | 2 +- .../trait.StarknetRuntimeApi.html | 52 ++++++------ settings.html | 2 +- src/pallet_starknet/lib.rs.html | 50 ----------- 90 files changed, 339 insertions(+), 389 deletions(-) diff --git a/help.html b/help.html index 437e5b1c2b..69ffcfaa10 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -Rustdoc help

Rustdoc help

Back
\ No newline at end of file +Rustdoc help

Rustdoc help

Back
\ No newline at end of file diff --git a/implementors/bounded_collections/trait.Get.js b/implementors/bounded_collections/trait.Get.js index b7bdfe1494..e5c18bee1c 100644 --- a/implementors/bounded_collections/trait.Get.js +++ b/implementors/bounded_collections/trait.Get.js @@ -1,4 +1,4 @@ (function() {var implementors = { "madara_runtime":[["impl<_I: From<RuntimeVersion>> Get<_I> for Version"],["impl<_I: From<BlockLength>> Get<_I> for BlockLength"],["impl<_I: From<u8>> Get<_I> for SS58Prefix"],["impl<_I: From<SealingMode>> Get<_I> for Sealing"],["impl<_I: From<BlockNumber>> Get<_I> for BlockHashCount"],["impl<_I: From<BlockWeights>> Get<_I> for BlockWeights"]], -"pallet_starknet":[["impl Get<Felt252Wrapper> for DefaultChainId"]] +"pallet_starknet":[["impl Get<Felt252Wrapper> for DefaultChainId"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/core/clone/trait.Clone.js b/implementors/core/clone/trait.Clone.js index e72db007c2..5be7486387 100644 --- a/implementors/core/clone/trait.Clone.js +++ b/implementors/core/clone/trait.Clone.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"madara":[["impl Clone for ExtendedRunCmd"],["impl Clone for Sealing"],["impl Clone for SettlementLayer"],["impl<C, G: GenesisProvider, B: BlockT> Clone for StarknetDeps<C, G, B>"]], +"madara":[["impl Clone for ExtendedRunCmd"],["impl Clone for Sealing"],["impl Clone for SettlementLayer"],["impl<C, G: GenesisProvider, B: BlockT> Clone for StarknetDeps<C, G, B>"]], "madara_runtime":[["impl Clone for Runtime"],["impl Clone for RuntimeLockId"],["impl Clone for RuntimeCall"],["impl Clone for SessionKeys"],["impl Clone for RuntimeFreezeReason"],["impl Clone for RuntimeEvent"],["impl Clone for RuntimeOrigin"],["impl Clone for RuntimeHoldReason"],["impl Clone for SealingMode"],["impl Clone for RuntimeSlashReason"],["impl Clone for OriginCaller"]], "madara_test_runner":[["impl Clone for MadaraArgs"],["impl Clone for Settlement"]], "mc_commitment_state_diff":[["impl Clone for BlockDAData"]], diff --git a/implementors/core/convert/trait.From.js b/implementors/core/convert/trait.From.js index ec8e8bf185..49460c5dc5 100644 --- a/implementors/core/convert/trait.From.js +++ b/implementors/core/convert/trait.From.js @@ -1,9 +1,9 @@ (function() {var implementors = { "madara":[["impl From<Sealing> for SealingMode"]], -"madara_runtime":[["impl From<OriginCaller> for RuntimeOrigin"],["impl From<RawOrigin<<Runtime as Config>::AccountId>> for OriginCaller"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<RuntimeOrigin> for Result<Origin<Runtime>, RuntimeOrigin>"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<Event> for RuntimeEvent"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<Event<Runtime>> for RuntimeEvent"],["impl From<Option<<Runtime as Config>::AccountId>> for RuntimeOrigin"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<RawOrigin<<Runtime as Config>::AccountId>> for RuntimeOrigin"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"]], +"madara_runtime":[["impl From<OriginCaller> for RuntimeOrigin"],["impl From<RawOrigin<<Runtime as Config>::AccountId>> for OriginCaller"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<RuntimeOrigin> for Result<Origin<Runtime>, RuntimeOrigin>"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<Event> for RuntimeEvent"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<Event<Runtime>> for RuntimeEvent"],["impl From<Option<<Runtime as Config>::AccountId>> for RuntimeOrigin"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<RawOrigin<<Runtime as Config>::AccountId>> for RuntimeOrigin"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"]], "mc_db":[["impl From<DatabaseError> for DbError"],["impl From<Error> for DbError"],["impl From<Error> for DbError"]], "mc_genesis_data_provider":[["impl From<LoadGenesisDataError> for Error"]], -"mc_l1_messages":[["impl<PE> From<DbError> for L1MessagesWorkerError<PE>"],["impl<PE> From<Error> for L1MessagesWorkerError<PE>"],["impl<PE> From<ParseError> for L1MessagesWorkerError<PE>"]], +"mc_l1_messages":[["impl<PE> From<DbError> for L1MessagesWorkerError<PE>"],["impl<PE> From<Error> for L1MessagesWorkerError<PE>"],["impl<PE> From<ParseError> for L1MessagesWorkerError<PE>"]], "mp_felt":[["impl From<ContractAddressSalt> for Felt252Wrapper"],["impl From<ContractAddress> for Felt252Wrapper"],["impl From<CompiledClassHash> for Felt252Wrapper"],["impl From<Felt252Wrapper> for EntryPointSelector"],["impl From<u32> for Felt252Wrapper"],["impl From<u128> for Felt252Wrapper"],["impl From<Felt252Wrapper> for ClassHash"],["impl From<Felt252Wrapper> for PatriciaKey"],["impl From<Felt252Wrapper> for TransactionVersion"],["impl From<Felt252Wrapper> for ContractAddressSalt"],["impl From<BlockHash> for Felt252Wrapper"],["impl From<EventKey> for Felt252Wrapper"],["impl From<StarkFelt> for Felt252Wrapper"],["impl From<TransactionVersion> for Felt252Wrapper"],["impl From<Felt252WrapperError> for Cow<'static, str>"],["impl From<Felt252> for Felt252Wrapper"],["impl From<Nonce> for Felt252Wrapper"],["impl From<u8> for Felt252Wrapper"],["impl From<Felt252Wrapper> for TransactionHash"],["impl From<Felt252Wrapper> for StarkFelt"],["impl From<Felt252Wrapper> for CompiledClassHash"],["impl From<Felt252Wrapper> for BlockHash"],["impl From<Felt252WrapperError> for String"],["impl From<Felt252Wrapper> for U256"],["impl From<TransactionHash> for Felt252Wrapper"],["impl From<Felt252Wrapper> for Nonce"],["impl From<Felt252Wrapper> for [u8; 32]"],["impl From<EthAddress> for Felt252Wrapper"],["impl From<ClassHash> for Felt252Wrapper"],["impl From<Felt252Wrapper> for EventKey"],["impl From<u64> for Felt252Wrapper"],["impl From<EntryPointSelector> for Felt252Wrapper"],["impl From<StorageKey> for Felt252Wrapper"],["impl From<Felt252Wrapper> for StorageKey"],["impl From<FieldElement> for Felt252Wrapper"],["impl From<Felt252Wrapper> for ContractAddress"],["impl From<Felt252Wrapper> for Felt252"],["impl From<FromStrError> for Felt252WrapperError"],["impl From<PatriciaKey> for Felt252Wrapper"],["impl From<Felt252Wrapper> for H256"],["impl From<Felt252Wrapper> for FieldElement"]], "mp_genesis_config":[["impl From<Felt252Wrapper> for HexFelt"],["impl From<FieldElement> for HexFelt"],["impl From<HexFelt> for FieldElement"]], "mp_messages":[["impl From<L1HandlerTransaction> for MessageL1ToL2"],["impl From<MessageToL1> for MessageL2ToL1"]], diff --git a/implementors/core/convert/trait.TryInto.js b/implementors/core/convert/trait.TryInto.js index 5e0412254b..51073280c6 100644 --- a/implementors/core/convert/trait.TryInto.js +++ b/implementors/core/convert/trait.TryInto.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"madara_runtime":[["impl TryInto<Error<Runtime>> for RuntimeError"],["impl TryInto<Error<Runtime>> for RuntimeError"],["impl TryInto<Event> for RuntimeEvent"],["impl TryInto<Error<Runtime>> for RuntimeError"],["impl TryInto<Event<Runtime>> for RuntimeEvent"]] +"madara_runtime":[["impl TryInto<Error<Runtime>> for RuntimeError"],["impl TryInto<Error<Runtime>> for RuntimeError"],["impl TryInto<Event> for RuntimeEvent"],["impl TryInto<Error<Runtime>> for RuntimeError"],["impl TryInto<Event<Runtime>> for RuntimeEvent"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/frame_support/traits/misc/trait.IsSubType.js b/implementors/frame_support/traits/misc/trait.IsSubType.js index 32f6dbf444..5668d77426 100644 --- a/implementors/frame_support/traits/misc/trait.IsSubType.js +++ b/implementors/frame_support/traits/misc/trait.IsSubType.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"madara_runtime":[["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"]] +"madara_runtime":[["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/futures_core/stream/trait.Stream.js b/implementors/futures_core/stream/trait.Stream.js index 45ff9470c4..879c44488c 100644 --- a/implementors/futures_core/stream/trait.Stream.js +++ b/implementors/futures_core/stream/trait.Stream.js @@ -1,4 +1,4 @@ (function() {var implementors = { -"mc_commitment_state_diff":[["impl<B: BlockT, C, H> Stream for CommitmentStateDiffWorker<B, C, H>where\n C: ProvideRuntimeApi<B> + HeaderBackend<B>,\n C::Api: StarknetRuntimeApi<B>,\n H: HasherT + Unpin,"]], -"mc_mapping_sync":[["impl<B: BlockT, C, BE, H> Stream for MappingSyncWorker<B, C, BE, H>where\n C: ProvideRuntimeApi<B> + HeaderBackend<B> + StorageProvider<B, BE>,\n C::Api: StarknetRuntimeApi<B>,\n BE: Backend<B>,\n H: HasherT,"]] +"mc_commitment_state_diff":[["impl<B: BlockT, C, H> Stream for CommitmentStateDiffWorker<B, C, H>where\n C: ProvideRuntimeApi<B> + HeaderBackend<B>,\n C::Api: StarknetRuntimeApi<B>,\n H: HasherT + Unpin,"]], +"mc_mapping_sync":[["impl<B: BlockT, C, BE, H> Stream for MappingSyncWorker<B, C, BE, H>where\n C: ProvideRuntimeApi<B> + HeaderBackend<B> + StorageProvider<B, BE>,\n C::Api: StarknetRuntimeApi<B>,\n BE: Backend<B>,\n H: HasherT,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/mc_rpc_core/trait.MadaraRpcApiServer.js b/implementors/mc_rpc_core/trait.MadaraRpcApiServer.js index 3ce4827029..88980a32d5 100644 --- a/implementors/mc_rpc_core/trait.MadaraRpcApiServer.js +++ b/implementors/mc_rpc_core/trait.MadaraRpcApiServer.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mc_rpc":[["impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n P: TransactionPool<Block = B> + 'static,\n H: HasherT + Send + Sync + 'static,"],["impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for Starknet<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n P: TransactionPool<Block = B> + 'static,\n H: HasherT + Send + Sync + 'static,"]] +"mc_rpc":[["impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n P: TransactionPool<Block = B> + 'static,\n H: HasherT + Send + Sync + 'static,"],["impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for Starknet<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n P: TransactionPool<Block = B> + 'static,\n H: HasherT + Send + Sync + 'static,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/mc_rpc_core/trait.StarknetReadRpcApiServer.js b/implementors/mc_rpc_core/trait.StarknetReadRpcApiServer.js index 6c2345fc94..4a5d76900a 100644 --- a/implementors/mc_rpc_core/trait.StarknetReadRpcApiServer.js +++ b/implementors/mc_rpc_core/trait.StarknetReadRpcApiServer.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mc_rpc":[["impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n P: TransactionPool<Block = B> + 'static,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n H: HasherT + Send + Sync + 'static,"],["impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n P: TransactionPool<Block = B> + 'static,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n H: HasherT + Send + Sync + 'static,"]] +"mc_rpc":[["impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n P: TransactionPool<Block = B> + 'static,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n H: HasherT + Send + Sync + 'static,"],["impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n P: TransactionPool<Block = B> + 'static,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n H: HasherT + Send + Sync + 'static,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/mc_rpc_core/trait.StarknetTraceRpcApiServer.js b/implementors/mc_rpc_core/trait.StarknetTraceRpcApiServer.js index 4639dc63fc..bc63d98705 100644 --- a/implementors/mc_rpc_core/trait.StarknetTraceRpcApiServer.js +++ b/implementors/mc_rpc_core/trait.StarknetTraceRpcApiServer.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mc_rpc":[["impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for Starknet<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n BE: Backend<B> + 'static,\n G: GenesisProvider + Send + Sync + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n P: TransactionPool<Block = B> + 'static,\n H: HasherT + Send + Sync + 'static,"],["impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n P: TransactionPool<Block = B> + 'static,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n H: HasherT + Send + Sync + 'static,"]] +"mc_rpc":[["impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for Starknet<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n BE: Backend<B> + 'static,\n G: GenesisProvider + Send + Sync + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n P: TransactionPool<Block = B> + 'static,\n H: HasherT + Send + Sync + 'static,"],["impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n P: TransactionPool<Block = B> + 'static,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n H: HasherT + Send + Sync + 'static,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/mc_rpc_core/trait.StarknetWriteRpcApiServer.js b/implementors/mc_rpc_core/trait.StarknetWriteRpcApiServer.js index f0f3ab652e..1479dacf32 100644 --- a/implementors/mc_rpc_core/trait.StarknetWriteRpcApiServer.js +++ b/implementors/mc_rpc_core/trait.StarknetWriteRpcApiServer.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mc_rpc":[["impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer for Starknet<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n P: TransactionPool<Block = B> + 'static,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n H: HasherT + Send + Sync + 'static,"],["impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n P: TransactionPool<Block = B> + 'static,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n H: HasherT + Send + Sync + 'static,"]] +"mc_rpc":[["impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer for Starknet<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n P: TransactionPool<Block = B> + 'static,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n H: HasherT + Send + Sync + 'static,"],["impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where\n A: ChainApi<Block = B> + 'static,\n B: BlockT,\n P: TransactionPool<Block = B> + 'static,\n BE: Backend<B> + 'static,\n C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>,\n C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>,\n G: GenesisProvider + Send + Sync + 'static,\n H: HasherT + Send + Sync + 'static,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/mp_transactions/execution/trait.SetArbitraryNonce.js b/implementors/mp_transactions/execution/trait.SetArbitraryNonce.js index 8110156fad..a20aba9a13 100644 --- a/implementors/mp_transactions/execution/trait.SetArbitraryNonce.js +++ b/implementors/mp_transactions/execution/trait.SetArbitraryNonce.js @@ -1,4 +1,4 @@ (function() {var implementors = { "mp_transactions":[], -"pallet_starknet":[["impl<T: Config> SetArbitraryNonce for BlockifierStateAdapter<T>"]] +"pallet_starknet":[["impl<T: Config> SetArbitraryNonce for BlockifierStateAdapter<T>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/pallet_starknet/pallet/trait.Config.js b/implementors/pallet_starknet/pallet/trait.Config.js index 6201d947de..9a821bdaef 100644 --- a/implementors/pallet_starknet/pallet/trait.Config.js +++ b/implementors/pallet_starknet/pallet/trait.Config.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"madara_runtime":[["impl Config for Runtime"]] +"madara_runtime":[["impl Config for Runtime"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/pallet_starknet_runtime_api/trait.ConvertTransactionRuntimeApi.js b/implementors/pallet_starknet_runtime_api/trait.ConvertTransactionRuntimeApi.js index a0435edda6..4546b51146 100644 --- a/implementors/pallet_starknet_runtime_api/trait.ConvertTransactionRuntimeApi.js +++ b/implementors/pallet_starknet_runtime_api/trait.ConvertTransactionRuntimeApi.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"madara_runtime":[["impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> ConvertTransactionRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where\n RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,\n &'static RuntimeApiImplCall: Send,\n AccountTransaction: UnwindSafe + RefUnwindSafe,\n UncheckedExtrinsic: UnwindSafe + RefUnwindSafe,\n L1HandlerTransaction: UnwindSafe + RefUnwindSafe,\n __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,"]] +"madara_runtime":[["impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> ConvertTransactionRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where\n RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,\n &'static RuntimeApiImplCall: Send,\n AccountTransaction: UnwindSafe + RefUnwindSafe,\n UncheckedExtrinsic: UnwindSafe + RefUnwindSafe,\n L1HandlerTransaction: UnwindSafe + RefUnwindSafe,\n __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/pallet_starknet_runtime_api/trait.StarknetRuntimeApi.js b/implementors/pallet_starknet_runtime_api/trait.StarknetRuntimeApi.js index aceb2be0e4..be0b865912 100644 --- a/implementors/pallet_starknet_runtime_api/trait.StarknetRuntimeApi.js +++ b/implementors/pallet_starknet_runtime_api/trait.StarknetRuntimeApi.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"madara_runtime":[["impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> StarknetRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where\n RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,\n &'static RuntimeApiImplCall: Send,\n ContractAddress: UnwindSafe + RefUnwindSafe,\n StorageKey: UnwindSafe + RefUnwindSafe,\n Result<StarkFelt, SimulationError>: UnwindSafe + RefUnwindSafe,\n EntryPointSelector: UnwindSafe + RefUnwindSafe,\n Calldata: UnwindSafe + RefUnwindSafe,\n Result<Vec<Felt252Wrapper>, SimulationError>: UnwindSafe + RefUnwindSafe,\n Nonce: UnwindSafe + RefUnwindSafe,\n ClassHash: UnwindSafe + RefUnwindSafe,\n Option<ContractClass>: UnwindSafe + RefUnwindSafe,\n Felt252Wrapper: UnwindSafe + RefUnwindSafe,\n FeeTokenAddresses: UnwindSafe + RefUnwindSafe,\n bool: UnwindSafe + RefUnwindSafe,\n Vec<AccountTransaction>: UnwindSafe + RefUnwindSafe,\n SimulationFlags: UnwindSafe + RefUnwindSafe,\n Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Vec<Transaction>: UnwindSafe + RefUnwindSafe,\n Result<ReExecutionResult, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n L1HandlerTransaction: UnwindSafe + RefUnwindSafe,\n Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Result<Vec<TransactionSimulationResult>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,\n TransactionHash: UnwindSafe + RefUnwindSafe,\n Option<(u32, Transaction)>: UnwindSafe + RefUnwindSafe,\n Vec<MessageToL1>: UnwindSafe + RefUnwindSafe,\n Vec<Event>: UnwindSafe + RefUnwindSafe,\n Option<Vec<u8>>: UnwindSafe + RefUnwindSafe,\n BlockContext: UnwindSafe + RefUnwindSafe,\n L1GasPrices: UnwindSafe + RefUnwindSafe,\n __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,"]] +"madara_runtime":[["impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> StarknetRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where\n RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>,\n &'static RuntimeApiImplCall: Send,\n ContractAddress: UnwindSafe + RefUnwindSafe,\n StorageKey: UnwindSafe + RefUnwindSafe,\n Result<StarkFelt, SimulationError>: UnwindSafe + RefUnwindSafe,\n EntryPointSelector: UnwindSafe + RefUnwindSafe,\n Calldata: UnwindSafe + RefUnwindSafe,\n Result<Vec<Felt252Wrapper>, SimulationError>: UnwindSafe + RefUnwindSafe,\n Nonce: UnwindSafe + RefUnwindSafe,\n ClassHash: UnwindSafe + RefUnwindSafe,\n Option<ContractClass>: UnwindSafe + RefUnwindSafe,\n Felt252Wrapper: UnwindSafe + RefUnwindSafe,\n FeeTokenAddresses: UnwindSafe + RefUnwindSafe,\n bool: UnwindSafe + RefUnwindSafe,\n Vec<AccountTransaction>: UnwindSafe + RefUnwindSafe,\n SimulationFlags: UnwindSafe + RefUnwindSafe,\n Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Vec<Transaction>: UnwindSafe + RefUnwindSafe,\n Result<ReExecutionResult, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n L1HandlerTransaction: UnwindSafe + RefUnwindSafe,\n Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Result<Vec<TransactionSimulationResult>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,\n TransactionHash: UnwindSafe + RefUnwindSafe,\n Option<(u32, Transaction)>: UnwindSafe + RefUnwindSafe,\n Vec<MessageToL1>: UnwindSafe + RefUnwindSafe,\n Vec<Event>: UnwindSafe + RefUnwindSafe,\n Option<Vec<u8>>: UnwindSafe + RefUnwindSafe,\n BlockContext: UnwindSafe + RefUnwindSafe,\n L1GasPrices: UnwindSafe + RefUnwindSafe,\n __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/sc_consensus/block_import/trait.BlockImport.js b/implementors/sc_consensus/block_import/trait.BlockImport.js index b280813202..17200c3d1a 100644 --- a/implementors/sc_consensus/block_import/trait.BlockImport.js +++ b/implementors/sc_consensus/block_import/trait.BlockImport.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mc_starknet_block_import":[["impl<I, C> BlockImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>> for StarknetBlockImport<I, C>where\n I: BlockImport<Block, Error = Error> + Send + Clone,\n C: ProvideRuntimeApi<Block> + Send + Sync,\n C::Api: StarknetRuntimeApi<Block>,"]] +"mc_starknet_block_import":[["impl<I, C> BlockImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>> for StarknetBlockImport<I, C>where\n I: BlockImport<Block, Error = Error> + Send + Clone,\n C: ProvideRuntimeApi<Block> + Send + Sync,\n C::Api: StarknetRuntimeApi<Block>,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/madara/chain_spec/fn.load_genesis.html b/madara/chain_spec/fn.load_genesis.html index b11bef93b9..e5504a84be 100644 --- a/madara/chain_spec/fn.load_genesis.html +++ b/madara/chain_spec/fn.load_genesis.html @@ -1 +1 @@ -load_genesis in madara::chain_spec - Rust
fn load_genesis(data_path: PathBuf) -> GenesisLoader
\ No newline at end of file +load_genesis in madara::chain_spec - Rust
fn load_genesis(data_path: PathBuf) -> GenesisLoader
\ No newline at end of file diff --git a/madara/chain_spec/fn.print_development_accounts.html b/madara/chain_spec/fn.print_development_accounts.html index 00c97dfd3b..bc07c961ae 100644 --- a/madara/chain_spec/fn.print_development_accounts.html +++ b/madara/chain_spec/fn.print_development_accounts.html @@ -1 +1 @@ -print_development_accounts in madara::chain_spec - Rust
pub fn print_development_accounts(genesis_loader: &GenesisLoader)
\ No newline at end of file +print_development_accounts in madara::chain_spec - Rust
pub fn print_development_accounts(genesis_loader: &GenesisLoader)
\ No newline at end of file diff --git a/madara/chain_spec/fn.testnet_genesis.html b/madara/chain_spec/fn.testnet_genesis.html index 1b8d03bc5d..d2d30b4095 100644 --- a/madara/chain_spec/fn.testnet_genesis.html +++ b/madara/chain_spec/fn.testnet_genesis.html @@ -1,5 +1,5 @@ testnet_genesis in madara::chain_spec - Rust
fn testnet_genesis(
-    genesis_loader: GenesisLoader,
+    genesis_loader: GenesisLoader,
     wasm_binary: &[u8],
     initial_authorities: Vec<(AuthorityId, AuthorityId)>,
     _enable_println: bool
diff --git a/madara/import_queue/fn.build_aura_queue_grandpa_pipeline.html b/madara/import_queue/fn.build_aura_queue_grandpa_pipeline.html
index a33719a4de..1353151347 100644
--- a/madara/import_queue/fn.build_aura_queue_grandpa_pipeline.html
+++ b/madara/import_queue/fn.build_aura_queue_grandpa_pipeline.html
@@ -4,7 +4,7 @@
     task_manager: &TaskManager,
     telemetry: &Option<Telemetry>,
     select_chain: LongestChain<TFullBackend<Block>, Block>,
-    madara_backend: Arc<Backend<Block>>
+    madara_backend: Arc<Backend<Block>>
 ) -> Result<(DefaultImportQueue<Block>, BlockImportPipeline), Error>
Expand description

Build a block import queue & pipeline for default sealing.

If Starknet block import (Sierra class verification) is enabled for prod: Queue (external blocks): AuraVerifier -> StarknetBlockImport -> GrandpaBlockImport -> Client diff --git a/madara/import_queue/fn.build_manual_seal_queue_pipeline.html b/madara/import_queue/fn.build_manual_seal_queue_pipeline.html index 32c598fc89..ca3b7c9b66 100644 --- a/madara/import_queue/fn.build_manual_seal_queue_pipeline.html +++ b/madara/import_queue/fn.build_manual_seal_queue_pipeline.html @@ -2,7 +2,7 @@ client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, config: &Configuration, task_manager: &TaskManager, - madara_backend: Arc<Backend<Block>> + madara_backend: Arc<Backend<Block>> ) -> (DefaultImportQueue<Block>, BlockImportPipeline)

Expand description

Build a block import queue & pipeline for manual/instant sealing.

If Starknet block import (Sierra class verification) is enabled for testing: Queue (external blocks): StarknetBlockImport -> Client diff --git a/madara/rpc/fn.create_full.html b/madara/rpc/fn.create_full.html index 05c32dbfc5..2be8d0cfca 100644 --- a/madara/rpc/fn.create_full.html +++ b/madara/rpc/fn.create_full.html @@ -3,8 +3,8 @@ ) -> Result<RpcModule<()>, Box<dyn Error + Send + Sync>>where A: ChainApi<Block = Block> + 'static, C: ProvideRuntimeApi<Block> + HeaderBackend<Block> + BlockBackend<Block> + HeaderMetadata<Block, Error = Error> + StorageProvider<Block, BE> + 'static + Send + Sync, - C::Api: AccountNonceApi<Block, AccountId, Index> + BlockBuilder<Block> + StarknetRuntimeApi<Block> + ConvertTransactionRuntimeApi<Block>, - G: GenesisProvider + Send + Sync + 'static, + C::Api: AccountNonceApi<Block, AccountId, Index> + BlockBuilder<Block> + StarknetRuntimeApi<Block> + ConvertTransactionRuntimeApi<Block>, + G: GenesisProvider + Send + Sync + 'static, P: TransactionPool<Block = Block> + 'static, BE: Backend<Block> + 'static,

Expand description

Instantiate all full RPC extensions.

\ No newline at end of file diff --git a/madara/rpc/starknet/struct.StarknetDeps.html b/madara/rpc/starknet/struct.StarknetDeps.html index a55ad6cb82..410475ed3c 100644 --- a/madara/rpc/starknet/struct.StarknetDeps.html +++ b/madara/rpc/starknet/struct.StarknetDeps.html @@ -1,18 +1,18 @@ -StarknetDeps in madara::rpc::starknet - Rust
pub struct StarknetDeps<C, G: GenesisProvider, B: BlockT> {
+StarknetDeps in madara::rpc::starknet - Rust
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>

source§

fn clone(&self) -> Self

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

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

Performs copy-assignment from source. Read more

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§

source§

impl<C, G: GenesisProvider, B: BlockT> Clone for StarknetDeps<C, G, B>

source§

fn clone(&self) -> Self

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

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

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<C, G, B> !RefUnwindSafe for StarknetDeps<C, G, B>

§

impl<C, G, B> Send for StarknetDeps<C, G, B>where C: Send + Sync, G: Send + Sync,

§

impl<C, G, B> Sync for StarknetDeps<C, G, B>where C: Send + Sync, diff --git a/madara/rpc/struct.FullDeps.html b/madara/rpc/struct.FullDeps.html index 371980a32b..d1853fe9d9 100644 --- a/madara/rpc/struct.FullDeps.html +++ b/madara/rpc/struct.FullDeps.html @@ -1,4 +1,4 @@ -FullDeps in madara::rpc - Rust

Struct madara::rpc::FullDeps

source ·
pub struct FullDeps<A: ChainApi, C, G: GenesisProvider, P> {
+FullDeps in madara::rpc - Rust

Struct madara::rpc::FullDeps

source ·
pub struct FullDeps<A: ChainApi, C, G: GenesisProvider, P> {
     pub client: Arc<C>,
     pub pool: Arc<P>,
     pub graph: Arc<Pool<A>>,
diff --git a/madara/service/fn.new_chain_ops.html b/madara/service/fn.new_chain_ops.html
index 94880da386..37bd787d0e 100644
--- a/madara/service/fn.new_chain_ops.html
+++ b/madara/service/fn.new_chain_ops.html
@@ -1,3 +1,3 @@
 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_partial.html b/madara/service/fn.new_partial.html index 389a03818e..5e4c8a0230 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
+) -> 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/type.ChainOpsResult.html b/madara/service/type.ChainOpsResult.html index d59968b66e..cbd9ab3296 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/starknet/type.MadaraBackend.html b/madara/starknet/type.MadaraBackend.html index 0a7ba6d152..889c75cdc9 100644 --- a/madara/starknet/type.MadaraBackend.html +++ b/madara/starknet/type.MadaraBackend.html @@ -1 +1 @@ -MadaraBackend in madara::starknet - Rust

Type Definition madara::starknet::MadaraBackend

source ·
pub type MadaraBackend = Backend<Block>;
\ 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.RuntimeCall.html b/madara_runtime/enum.RuntimeCall.html index a720d24f5b..de1fabbba8 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 encode(&self) -> Vec<u8, Global>

Convert self to an owned vector.
§

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

impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn from(call: CallableCallFor<Starknet, Runtime>) -> Self

Converts to this type from the input type.
source§

impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn from(call: CallableCallFor<System, Runtime>) -> Self

Converts to this type from the input type.
source§

impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn from(call: CallableCallFor<Grandpa, Runtime>) -> Self

Converts to this type from the input type.
source§

impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn from(call: CallableCallFor<Timestamp, Runtime>) -> Self

Converts to this type from the input type.
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 more
source§

impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn is_sub_type(&self) -> Option<&CallableCallFor<Grandpa, Runtime>>

Returns Some(_) if self is an instance of sub type T.
source§

impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn is_sub_type(&self) -> Option<&CallableCallFor<System, Runtime>>

Returns Some(_) if self is an instance of sub type T.
source§

impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn is_sub_type(&self) -> Option<&CallableCallFor<Starknet, Runtime>>

Returns Some(_) if self is an instance of sub type T.
source§

impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn is_sub_type(&self) -> Option<&CallableCallFor<Timestamp, Runtime>>

Returns Some(_) if self is an instance of sub type T.
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 + 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 more
source§

impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn from(call: CallableCallFor<Starknet, Runtime>) -> Self

Converts to this type from the input type.
source§

impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn from(call: CallableCallFor<System, Runtime>) -> Self

Converts to this type from the input type.
source§

impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn from(call: CallableCallFor<Grandpa, Runtime>) -> Self

Converts to this type from the input type.
source§

impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn from(call: CallableCallFor<Timestamp, Runtime>) -> Self

Converts to this type from the input type.
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 more
source§

impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn is_sub_type(&self) -> Option<&CallableCallFor<Grandpa, Runtime>>

Returns Some(_) if self is an instance of sub type T.
source§

impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn is_sub_type(&self) -> Option<&CallableCallFor<System, Runtime>>

Returns Some(_) if self is an instance of sub type T.
source§

impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn is_sub_type(&self) -> Option<&CallableCallFor<Starknet, Runtime>>

Returns Some(_) if self is an instance of sub type T.
source§

impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall

source§

fn is_sub_type(&self) -> Option<&CallableCallFor<Timestamp, Runtime>>

Returns Some(_) if self is an instance of sub type T.
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 ==.
1.0.0 · source§

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

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

impl TypeInfo for RuntimeCall

§

type Identity = RuntimeCall

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

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl 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 71f071f1dc..79b79a5104 100644 --- a/madara_runtime/enum.RuntimeError.html +++ b/madara_runtime/enum.RuntimeError.html @@ -1,8 +1,8 @@ RuntimeError in madara_runtime - Rust
pub enum RuntimeError {
     System(Error<Runtime>),
     Grandpa(Error<Runtime>),
-    Starknet(Error<Runtime>),
-}

Variants§

§

System(Error<Runtime>)

§

Grandpa(Error<Runtime>)

§

Starknet(Error<Runtime>)

Implementations§

source§

impl RuntimeError

source

pub fn from_dispatch_error(err: DispatchError) -> Option<Self>

Optionally convert the DispatchError into the RuntimeError.

+ Starknet(Error<Runtime>), +}

Variants§

§

System(Error<Runtime>)

§

Grandpa(Error<Runtime>)

§

Starknet(Error<Runtime>)

Implementations§

source§

impl RuntimeError

source

pub fn from_dispatch_error(err: DispatchError) -> Option<Self>

Optionally convert the DispatchError into the RuntimeError.

Returns Some if the error matches the DispatchError::Module variant, otherwise None.

Trait Implementations§

source§

impl Debug for RuntimeError

source§

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

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

impl Decode for RuntimeError

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy @@ -15,7 +15,7 @@ &self, __codec_dest_edqy: &mut __CodecOutputEdqy )

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8, Global>

Convert self to an owned vector.
§

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

impl From<Error<Runtime>> for RuntimeError

source§

fn from(x: Error<Runtime>) -> Self

Converts to this type from the input type.
source§

impl From<Error<Runtime>> for RuntimeError

source§

fn from(x: Error<Runtime>) -> Self

Converts to this type from the input type.
source§

impl From<Error<Runtime>> for RuntimeError

source§

fn from(x: Error<Runtime>) -> Self

Converts to this type from the input type.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

fn try_into(self) -> Result<Error<Runtime>, Self::Error>

Performs the conversion.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

fn try_into(self) -> Result<Error<Runtime>, Self::Error>

Performs the conversion.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

fn try_into(self) -> Result<Error<Runtime>, Self::Error>

Performs the conversion.
source§

impl TypeInfo for RuntimeError

§

type Identity = RuntimeError

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

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl EncodeLike<RuntimeError> for RuntimeError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + F: FnOnce(&[u8]) -> R,

Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl From<Error<Runtime>> for RuntimeError

source§

fn from(x: Error<Runtime>) -> Self

Converts to this type from the input type.
source§

impl From<Error<Runtime>> for RuntimeError

source§

fn from(x: Error<Runtime>) -> Self

Converts to this type from the input type.
source§

impl From<Error<Runtime>> for RuntimeError

source§

fn from(x: Error<Runtime>) -> Self

Converts to this type from the input type.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

fn try_into(self) -> Result<Error<Runtime>, Self::Error>

Performs the conversion.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

fn try_into(self) -> Result<Error<Runtime>, Self::Error>

Performs the conversion.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

fn try_into(self) -> Result<Error<Runtime>, Self::Error>

Performs the conversion.
source§

impl TypeInfo for RuntimeError

§

type Identity = RuntimeError

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

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl EncodeLike<RuntimeError> for RuntimeError

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
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/index.html b/madara_runtime/index.html index d7c4d4b0c5..646669502a 100644 --- a/madara_runtime/index.html +++ b/madara_runtime/index.html @@ -2,7 +2,7 @@ public Starknet L2. For now this is the same because we don’t support yet validity proofs and state updates to another layer.

-

Re-exports

Modules

Macros

Structs

\ No newline at end of file diff --git a/madara_runtime/type.Starknet.html b/madara_runtime/type.Starknet.html index ef2ad8bf58..381cbb004d 100644 --- a/madara_runtime/type.Starknet.html +++ b/madara_runtime/type.Starknet.html @@ -1 +1 @@ -Starknet in madara_runtime - Rust

Type Definition madara_runtime::Starknet

source ·
pub type Starknet = Pallet<Runtime>;
\ No newline at end of file +Starknet in madara_runtime - Rust

Type Definition madara_runtime::Starknet

source ·
pub type Starknet = Pallet<Runtime>;
\ No newline at end of file diff --git a/madara_runtime/type.StarknetConfig.html b/madara_runtime/type.StarknetConfig.html index 3b349fe5bf..889a1e057e 100644 --- a/madara_runtime/type.StarknetConfig.html +++ b/madara_runtime/type.StarknetConfig.html @@ -1 +1 @@ -StarknetConfig in madara_runtime - Rust

Type Definition madara_runtime::StarknetConfig

source ·
pub type StarknetConfig = GenesisConfig<Runtime>;
\ No newline at end of file +StarknetConfig in madara_runtime - Rust

Type Definition madara_runtime::StarknetConfig

source ·
pub type StarknetConfig = GenesisConfig<Runtime>;
\ No newline at end of file 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 216623af17..7b918d2d60 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>,

source

pub fn new( client: Arc<C>, - backend: Arc<Backend<B>>, + backend: Arc<Backend<B>>, tx: Sender<BlockDAData> ) -> Self

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,

§

type Item = ()

Values yielded by the stream.
source§

fn poll_next( + C::Api: StarknetRuntimeApi<B>, + H: HasherT + Unpin,

§

type Item = ()

Values yielded by the stream.
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_gas_price/worker/fn.run_worker.html b/mc_l1_gas_price/worker/fn.run_worker.html index 3cecb00cfb..2c53378aca 100644 --- a/mc_l1_gas_price/worker/fn.run_worker.html +++ b/mc_l1_gas_price/worker/fn.run_worker.html @@ -1,5 +1,5 @@ run_worker in mc_l1_gas_price::worker - Rust
pub async fn run_worker(
-    config: Arc<EthereumClientConfig>,
+    config: Arc<EthereumClientConfig>,
     gas_price: Arc<Mutex<L1GasPrices>>,
     infinite_loop: bool
 )
\ No newline at end of file diff --git a/mc_l1_messages/error/enum.L1MessagesWorkerError.html b/mc_l1_messages/error/enum.L1MessagesWorkerError.html index 36fac07490..c01490dd33 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§

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

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

impl<PE> Display for L1MessagesWorkerError<PE>

source§

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

Formats the value using the given formatter. Read more
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§

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

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

impl<PE> Display for L1MessagesWorkerError<PE>

source§

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

Formats the value using the given formatter. Read more
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 more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl<PE> From<DbError> for L1MessagesWorkerError<PE>

source§

fn from(source: DbError) -> Self

Converts to this type from the input type.
source§

impl<PE> From<Error> for L1MessagesWorkerError<PE>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
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 more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl<PE> From<DbError> for L1MessagesWorkerError<PE>

source§

fn from(source: DbError) -> Self

Converts to this type from the input type.
source§

impl<PE> From<Error> for L1MessagesWorkerError<PE>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
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 9b74e1e472..750117176a 100644 --- a/mc_l1_messages/worker/fn.run_worker.html +++ b/mc_l1_messages/worker/fn.run_worker.html @@ -2,9 +2,9 @@ config: Arc<EthereumClientConfig>, client: Arc<C>, pool: Arc<P>, - backend: Arc<Backend<B>> + backend: Arc<Backend<B>> )where B: BlockT, C: ProvideRuntimeApi<B> + HeaderBackend<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static,

\ No newline at end of file diff --git a/mc_l1_messages/worker/struct.EthereumClientConfig.html b/mc_l1_messages/worker/struct.EthereumClientConfig.html index 326346b07e..994b94c6a3 100644 --- a/mc_l1_messages/worker/struct.EthereumClientConfig.html +++ b/mc_l1_messages/worker/struct.EthereumClientConfig.html @@ -1,11 +1,11 @@ -EthereumClientConfig in mc_l1_messages::worker - Rust
pub struct EthereumClientConfig {
-    pub provider: EthereumProviderConfig,
-    pub wallet: Option<EthereumWalletConfig>,
-    pub contracts: StarknetContracts,
-}

Fields§

§provider: EthereumProviderConfig§wallet: Option<EthereumWalletConfig>§contracts: StarknetContracts

Implementations§

Trait Implementations§

source§

impl Clone for EthereumClientConfig

source§

fn clone(&self) -> EthereumClientConfig

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for EthereumClientConfig

source§

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

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

impl Default for EthereumClientConfig

source§

fn default() -> EthereumClientConfig

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for EthereumClientConfig

source§

fn deserialize<__D>( +EthereumClientConfig in mc_l1_messages::worker - Rust
pub struct EthereumClientConfig {
+    pub provider: EthereumProviderConfig,
+    pub wallet: Option<EthereumWalletConfig>,
+    pub contracts: StarknetContracts,
+}

Fields§

§provider: EthereumProviderConfig§wallet: Option<EthereumWalletConfig>§contracts: StarknetContracts

Implementations§

Trait Implementations§

§

impl Clone for EthereumClientConfig

§

fn clone(&self) -> EthereumClientConfig

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

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

Performs copy-assignment from source. Read more
§

impl Debug for EthereumClientConfig

§

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

Formats the value using the given formatter. Read more
§

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

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,

§

type Item = ()

Values yielded by the stream.
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,

§

type Item = ()

Values yielded by the stream.
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 current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more
§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the stream. Read more
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.get_block_by_block_hash.html b/mc_rpc/fn.get_block_by_block_hash.html index 54ce42172f..e5edd8ef8a 100644 --- a/mc_rpc/fn.get_block_by_block_hash.html +++ b/mc_rpc/fn.get_block_by_block_hash.html @@ -1,7 +1,7 @@ get_block_by_block_hash in mc_rpc - Rust
pub fn get_block_by_block_hash<B, C>(
     client: &C,
     block_hash: <B as Block>::Hash
-) -> Result<Block, Error>where
+) -> Result<Block, Error>where
     B: Block,
     C: HeaderBackend<B>,
Expand description

Returns the current Starknet block from the block header’s digest

\ No newline at end of file diff --git a/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html b/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html index e098c20437..93ada0885e 100644 --- a/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html +++ b/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html @@ -1,7 +1,7 @@ PredeployedAccountWithBalance in mc_rpc::starknetrpcwrapper - 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>( +}

Fields§

§account: PredeployedAccount§balance: FieldElement

Trait Implementations§

source§

impl<'de> Deserialize<'de> for PredeployedAccountWithBalance

source§

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

impl Serialize for PredeployedAccountWithBalance

source§

fn serialize<__S>( diff --git a/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html b/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html index b686d41855..02dfda6209 100644 --- a/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html +++ b/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html @@ -3,18 +3,18 @@ B: BlockT, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - G: GenesisProvider + Send + Sync + 'static, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static, - H: HasherT + Send + Sync + 'static,

source§

fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>

source§

fn into_rpc(self) -> RpcModule<Self>

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.
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§

fn into_rpc(self) -> RpcModule<Self>

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.
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
@@ -55,7 +55,7 @@
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 @@ -413,9 +413,9 @@

Errors
P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, - G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,
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>, @@ -441,9 +441,9 @@

Errors
P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, - G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,
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 diff --git a/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html index 68fc58a770..ff95b28085 100644 --- a/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html @@ -15,15 +15,15 @@ B: BlockT, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - G: GenesisProvider + Send + Sync + 'static, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static, - H: HasherT + Send + Sync + 'static,

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 cef21551c6..47926d5b94 100644 --- a/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html @@ -10,7 +10,7 @@ fn get_transaction_status( &self, transaction_hash: FieldElement - ) -> Result<TransactionStatus, Error>; + ) -> Result<TransactionStatus, Error>; fn get_storage_at( &self, contract_address: FieldElement, @@ -107,7 +107,7 @@
source

fn get_transaction_status( &self, transaction_hash: FieldElement -) -> Result<TransactionStatus, Error>

Gets the Transaction Status, Including Mempool Status and Execution Details

+) -> Result<TransactionStatus, Error>

Gets the Transaction Status, Including Mempool Status and Execution Details

source

fn get_storage_at( &self, contract_address: FieldElement, @@ -201,14 +201,14 @@ P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, - G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,

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 fd1d52d157..e797f00747 100644 --- a/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html @@ -49,16 +49,16 @@ A: ChainApi<Block = B> + 'static, B: BlockT, BE: Backend<B> + 'static, - G: GenesisProvider + Send + Sync + 'static, + G: GenesisProvider + Send + Sync + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static, - H: HasherT + Send + Sync + 'static,
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 c50451aff0..d736c0c82d 100644 --- a/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html @@ -47,14 +47,14 @@ P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, - G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,
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.PredeployedAccountWithBalance.html b/mc_rpc/struct.PredeployedAccountWithBalance.html index 82d16a6bac..a391d32c71 100644 --- a/mc_rpc/struct.PredeployedAccountWithBalance.html +++ b/mc_rpc/struct.PredeployedAccountWithBalance.html @@ -1,7 +1,7 @@ PredeployedAccountWithBalance in mc_rpc - 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>( +}

Fields§

§account: PredeployedAccount§balance: FieldElement

Trait Implementations§

source§

impl<'de> Deserialize<'de> for PredeployedAccountWithBalance

source§

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

impl Serialize for PredeployedAccountWithBalance

source§

fn serialize<__S>( diff --git a/mc_rpc/struct.Starknet.html b/mc_rpc/struct.Starknet.html index 59d583e7e0..693edf028c 100644 --- a/mc_rpc/struct.Starknet.html +++ b/mc_rpc/struct.Starknet.html @@ -3,9 +3,9 @@ A: ChainApi<Block = B> + 'static, B: BlockT, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, BE: Backend<B>, - H: HasherT + Send + Sync + 'static,

source

pub fn get_block_events( + H: HasherT + Send + Sync + 'static,

source

pub 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,
source

pub fn do_call( + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + H: HasherT + Send + Sync + 'static,

source

pub fn do_call( &self, best_block_hash: B::Hash, contract_address: ContractAddress, entry_point_selector: EntryPointSelector, calldata: Calldata -) -> Result<Vec<Felt252Wrapper>, StarknetRpcApiError>

source

pub fn do_estimate_message_fee( +) -> Result<Vec<Felt252Wrapper>, StarknetRpcApiError>

source

pub fn do_estimate_message_fee( &self, block_hash: B::Hash, message: L1HandlerTransaction @@ -59,11 +59,11 @@

Returns
&self, block_hash: B::Hash, transactions: Vec<AccountTransaction>, - simulation_flags: SimulationFlags + simulation_flags: SimulationFlags ) -> Result<Vec<FeeEstimate>, StarknetRpcApiError>
source

pub fn get_best_block_hash(&self) -> B::Hash

source

pub fn get_chain_id( &self, block_hash: B::Hash -) -> Result<Felt252Wrapper, StarknetRpcApiError>

source

pub fn filter_extrinsics( +) -> Result<Felt252Wrapper, StarknetRpcApiError>

source

pub fn filter_extrinsics( &self, block_hash: B::Hash, extrinsics: Vec<B::Extrinsic> @@ -84,11 +84,11 @@

Returns
A: ChainApi<Block = B> + 'static, B: BlockT, BE: Backend<B> + 'static, - G: GenesisProvider + Send + Sync + 'static, + G: GenesisProvider + Send + Sync + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static, - H: HasherT + Send + Sync + 'static,
source

pub fn re_execute_transactions( + H: HasherT + Send + Sync + 'static,

source

pub fn re_execute_transactions( &self, previous_block_substrate_hash: B::Hash, transactions_before: Vec<Transaction>, @@ -102,8 +102,8 @@

Returns
) -> RpcResult<StateDiff>
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

source

pub fn new( client: Arc<C>, - backend: Arc<Backend<B>>, - overrides: Arc<OverrideHandle<B>>, + backend: Arc<Backend<B>>, + overrides: Arc<OverrideHandle<B>>, pool: Arc<P>, graph: Arc<Pool<A>>, sync_service: Arc<SyncingService<B>>, @@ -116,24 +116,24 @@

Arguments

source

pub 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,

source

pub 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,

source

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

fn into_rpc(self) -> RpcModule<Self>

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.
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§

fn into_rpc(self) -> RpcModule<Self>

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.
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>

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
@@ -174,7 +174,7 @@
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 @@ -530,11 +530,11 @@

Errors
A: ChainApi<Block = B> + 'static, B: BlockT, BE: Backend<B> + 'static, - G: GenesisProvider + Send + Sync + 'static, + G: GenesisProvider + Send + Sync + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static, - H: HasherT + Send + Sync + 'static,
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>, @@ -557,9 +557,9 @@

Errors
P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, - G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,
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 diff --git a/mc_rpc/trait.MadaraRpcApiServer.html b/mc_rpc/trait.MadaraRpcApiServer.html index 9cd0d73b91..5678c96cfa 100644 --- a/mc_rpc/trait.MadaraRpcApiServer.html +++ b/mc_rpc/trait.MadaraRpcApiServer.html @@ -15,15 +15,15 @@ B: BlockT, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - G: GenesisProvider + Send + Sync + 'static, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static, - H: HasherT + Send + Sync + 'static,

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 7df14ab766..3b0dd3113e 100644 --- a/mc_rpc/trait.StarknetReadRpcApiServer.html +++ b/mc_rpc/trait.StarknetReadRpcApiServer.html @@ -10,7 +10,7 @@ fn get_transaction_status( &self, transaction_hash: FieldElement - ) -> Result<TransactionStatus, Error>; + ) -> Result<TransactionStatus, Error>; fn get_storage_at( &self, contract_address: FieldElement, @@ -107,7 +107,7 @@
source

fn get_transaction_status( &self, transaction_hash: FieldElement -) -> Result<TransactionStatus, Error>

Gets the Transaction Status, Including Mempool Status and Execution Details

+) -> Result<TransactionStatus, Error>

Gets the Transaction Status, Including Mempool Status and Execution Details

source

fn get_storage_at( &self, contract_address: FieldElement, @@ -201,14 +201,14 @@ P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, - G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,

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 17fc3deda4..569fdcad73 100644 --- a/mc_rpc/trait.StarknetTraceRpcApiServer.html +++ b/mc_rpc/trait.StarknetTraceRpcApiServer.html @@ -51,14 +51,14 @@ P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, - G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,
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 fc4850e0c7..53c7daa24a 100644 --- a/mc_rpc/trait.StarknetWriteRpcApiServer.html +++ b/mc_rpc/trait.StarknetWriteRpcApiServer.html @@ -47,14 +47,14 @@ P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, - G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,
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 more
source§

impl Serialize for PredeployedAccountWithBalance

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
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 @@

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

source

fn 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
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 f309a9e732..40fbc80a1c 100644 --- a/mc_starknet_block_import/struct.StarknetBlockImport.html +++ b/mc_starknet_block_import/struct.StarknetBlockImport.html @@ -3,11 +3,11 @@ C: ProvideRuntimeApi<Block> + Send,

source

pub fn new( inner: I, client: Arc<C>, - madara_backend: Arc<Backend<Block>> + madara_backend: Arc<Backend<Block>> ) -> Self

source

pub fn unwrap(self) -> I

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>,

§

type Error = Error

The error type.
source§

fn check_block<'life0, 'async_trait>( + C::Api: StarknetRuntimeApi<Block>,

§

type Error = Error

The error type.
source§

fn check_block<'life0, 'async_trait>( &'life0 mut self, block: BlockCheckParams<Block> ) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait>>where 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
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
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
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>

source

pub fn for_schema_version( &self, - schema_version: &StarknetStorageSchemaVersion + schema_version: &StarknetStorageSchemaVersion ) -> &Box<dyn StorageOverride<B>>

source§

impl<B: BlockT> OverrideHandle<B>

source

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

source§

impl<B: BlockT, C> RuntimeApiStorageOverride<B, C>

source

pub fn new(client: Arc<C>) -> Self

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

§

Block(Block)

Trait Implementations§

source§

impl Clone for Log

source§

fn clone(&self) -> Log

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for Log

source§

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

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

impl Decode for Log

source§

fn decode<__CodecInputEdqy: Input>( +

Variants§

§

Block(Block)

Trait Implementations§

source§

impl Clone for Log

source§

fn clone(&self) -> Log

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for Log

source§

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

Formats the value using the given formatter. Read more
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
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
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 b84ad8eb68..0f04a02d19 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

\ 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/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§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T: Config> SetArbitraryNonce for BlockifierStateAdapter<T>

Trait Implementations§

source§

impl<T: Config> Default for BlockifierStateAdapter<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
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
pub struct GenesisData {
-    pub contract_classes: Vec<(HexFelt, ContractClass), Global>,
+GenesisData in pallet_starknet::genesis_loader - Rust
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 more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for GenesisData

source§

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

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

impl<'de> Deserialize<'de> for GenesisData

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 more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
§

impl Debug for GenesisData

§

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

Formats the value using the given formatter. Read more
§

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

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 ==.
1.0.0 · source§

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

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

impl Serialize for GenesisData

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

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

impl Eq for GenesisData

source§

impl StructuralEq for GenesisData

source§

impl StructuralPartialEq for GenesisData

Auto Trait Implementations§

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§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
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
pub struct GenesisLoader { /* private fields */ }

Implementations§

source§

impl GenesisLoader

source

pub fn new(base_path: PathBuf, data: GenesisData) -> GenesisLoader

source

pub fn data(&self) -> &GenesisData

source

pub fn base_path(&self) -> PathBuf

Trait Implementations§

source§

impl Debug for GenesisLoader

source§

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

Formats the value using the given formatter. Read more
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
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

§

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

Formats the value using the given formatter. Read more
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 ==.
1.0.0 · source§

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

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

impl Eq for GenesisLoader

source§

impl StructuralEq for GenesisLoader

source§

impl StructuralPartialEq for GenesisLoader

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

§

impl Eq for GenesisLoader

§

impl StructuralEq for GenesisLoader

§

impl StructuralPartialEq for GenesisLoader

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
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
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 Clone for HexFelt

source§

fn clone(&self) -> HexFelt

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for HexFelt

source§

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

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

impl<'de> Deserialize<'de> for HexFelt

source§

fn deserialize<__D>( +HexFelt in pallet_starknet::genesis_loader - Rust
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 Clone for HexFelt

§

fn clone(&self) -> HexFelt

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

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

Performs copy-assignment from source. Read more
§

impl Debug for HexFelt

§

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

Formats the value using the given formatter. Read more
§

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

impl From<Felt252Wrapper> for HexFelt

source§

fn from(felt: Felt252Wrapper) -> HexFelt

Converts to this type from the input type.
source§

impl From<FieldElement> for HexFelt

source§

fn from(felt: FieldElement) -> HexFelt

Converts to this type from the input type.
source§

impl LowerHex for HexFelt

source§

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

Formats the value using the given formatter.
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 From<Felt252Wrapper> for HexFelt

§

fn from(felt: Felt252Wrapper) -> HexFelt

Converts to this type from the input type.
§

impl From<FieldElement> for HexFelt

§

fn from(felt: FieldElement) -> HexFelt

Converts to this type from the input type.
§

impl LowerHex for HexFelt

§

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

Formats the value using the given formatter.
§

impl PartialEq<HexFelt> for HexFelt

§

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

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

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

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

impl Serialize for HexFelt

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

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

impl Copy for HexFelt

source§

impl Eq for HexFelt

source§

impl StructuralEq for HexFelt

source§

impl StructuralPartialEq for HexFelt

Auto Trait Implementations§

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§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
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 more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for PredeployedAccount

source§

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

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

impl<'de> Deserialize<'de> for PredeployedAccount

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 more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
§

impl Debug for PredeployedAccount

§

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

Formats the value using the given formatter. Read more
§

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

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 ==.
1.0.0 · source§

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

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

impl Serialize for PredeployedAccount

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

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

impl Eq for PredeployedAccount

source§

impl StructuralEq for PredeployedAccount

source§

impl StructuralPartialEq for PredeployedAccount

Auto Trait Implementations§

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§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
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 47a878d56d..08c78b003c 100644 --- a/pallet_starknet/index.html +++ b/pallet_starknet/index.html @@ -1,4 +1,4 @@ -pallet_starknet - Rust

Crate pallet_starknet

source ·
Expand description

A Substrate pallet implementation for Starknet, a decentralized, permissionless, and scalable +pallet_starknet - Rust

Crate pallet_starknet

source ·
Expand description

A Substrate pallet implementation for Starknet, a decentralized, permissionless, and scalable zk-rollup for general-purpose smart contracts. See the Starknet documentation for more information. The code consists of the following sections:

diff --git a/pallet_starknet/pallet/dispatchables/fn.set_starknet_inherent_data.html b/pallet_starknet/pallet/dispatchables/fn.set_starknet_inherent_data.html index 4395468fe0..4a8d79b251 100644 --- a/pallet_starknet/pallet/dispatchables/fn.set_starknet_inherent_data.html +++ b/pallet_starknet/pallet/dispatchables/fn.set_starknet_inherent_data.html @@ -1,4 +1,4 @@ -set_starknet_inherent_data in pallet_starknet::pallet::dispatchables - Rust
pub fn set_starknet_inherent_data<T: Config>(data: InherentType)
Expand description

Set the current block author’s sequencer address.

+set_starknet_inherent_data in pallet_starknet::pallet::dispatchables - Rust
pub fn set_starknet_inherent_data<T: Config>(data: InherentType)
Expand description

Set the current block author’s sequencer address.

This call should be invoked exactly once per block. It will set a default value at the finalization phase, if this call hasn’t been invoked by that time.

The dispatch origin for this call must be Inherent.

diff --git a/pallet_starknet/pallet/enum.Call.html b/pallet_starknet/pallet/enum.Call.html index 5de15aa4af..77051d40ae 100644 --- a/pallet_starknet/pallet/enum.Call.html +++ b/pallet_starknet/pallet/enum.Call.html @@ -1,6 +1,6 @@ Call in pallet_starknet::pallet - Rust
pub enum Call<T: Config> {
     set_starknet_inherent_data {
-        data: InherentType,
+        data: InherentType,
     },
     invoke {
         transaction: InvokeTransaction,
@@ -19,12 +19,12 @@
 Dispatchable functions allows users to interact with the pallet and invoke state changes.
 These functions materialize as “extrinsics”, which are often compared to transactions.
 Dispatchable functions must be annotated with a weight and must return a DispatchResult.

-

Variants§

§

set_starknet_inherent_data

Fields

Variants§

§

set_starknet_inherent_data

Fields

§data: InherentType
§

invoke

Fields

§transaction: InvokeTransaction
§

declare

Fields

§transaction: DeclareTransaction
§

deploy_account

Fields

§transaction: DeployAccountTransaction
§

consume_l1_message

Fields

§transaction: L1HandlerTransaction

Implementations§

source§

impl<T: Config> Call<T>

source

pub fn new_call_variant_set_starknet_inherent_data(data: InherentType) -> Self

Create a call with the variant set_starknet_inherent_data.

+

Implementations§

source§

impl<T: Config> Call<T>

source

pub fn new_call_variant_set_starknet_inherent_data(data: InherentType) -> Self

Create a call with the variant set_starknet_inherent_data.

source

pub fn new_call_variant_invoke(transaction: InvokeTransaction) -> Self

Create a call with the variant invoke.

source

pub fn new_call_variant_declare(transaction: DeclareTransaction) -> Self

Create a call with the variant declare.

source

pub fn new_call_variant_deploy_account( diff --git a/pallet_starknet/pallet/struct.DefaultChainId.html b/pallet_starknet/pallet/struct.DefaultChainId.html index 96af1f3d72..91fc8cbaad 100644 --- a/pallet_starknet/pallet/struct.DefaultChainId.html +++ b/pallet_starknet/pallet/struct.DefaultChainId.html @@ -1,5 +1,5 @@ DefaultChainId in pallet_starknet::pallet - Rust
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§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Trait Implementations§

source§

impl Get<Felt252Wrapper> for DefaultChainId

source§

fn get() -> Felt252Wrapper

Return the current value.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
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/pallet/struct.GenesisConfig.html b/pallet_starknet/pallet/struct.GenesisConfig.html index fe40f62fba..5b1fc905d8 100644 --- a/pallet_starknet/pallet/struct.GenesisConfig.html +++ b/pallet_starknet/pallet/struct.GenesisConfig.html @@ -3,7 +3,7 @@ pub sierra_to_casm_class_hash: Vec<(ClassHash, CompiledClassHash)>, pub contract_classes: Vec<(ClassHash, ContractClass)>, pub storage: Vec<(ContractStorageKey, StarkFelt)>, - pub chain_id: Felt252Wrapper, + pub chain_id: Felt252Wrapper, pub strk_fee_token_address: ContractAddress, pub eth_fee_token_address: ContractAddress, pub _phantom: PhantomData<T>, @@ -18,7 +18,7 @@ second element is the contract class definition. Same as contracts, this can be used to start the chain with a set of pre-deployed contracts classes.

-

§storage: Vec<(ContractStorageKey, StarkFelt)>§chain_id: Felt252Wrapper

The address of the fee token. +

§storage: Vec<(ContractStorageKey, StarkFelt)>§chain_id: Felt252Wrapper

The address of the fee token. Chain Id, this must be set in the genesis file The default value will be MADARA custom chain id

§strk_fee_token_address: ContractAddress

Must be set to the address of a fee token ERC20 contract.

diff --git a/pallet_starknet/pallet/struct.Pallet.html b/pallet_starknet/pallet/struct.Pallet.html index 64676cf7c2..4f1667d7e7 100644 --- a/pallet_starknet/pallet/struct.Pallet.html +++ b/pallet_starknet/pallet/struct.Pallet.html @@ -2,35 +2,35 @@ functions within the pallet.

Implementations§

source§

impl<T: Config> Pallet<T>

source

pub fn estimate_fee( transactions: Vec<AccountTransaction>, - simulation_flags: &SimulationFlags -) -> Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>

source

pub fn simulate_transactions( + simulation_flags: &SimulationFlags +) -> Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>

source

pub fn simulate_transactions( transactions: Vec<AccountTransaction>, - simulation_flags: &SimulationFlags -) -> Result<Vec<TransactionSimulationResult>, InternalSubstrateError>

source

pub fn simulate_message( + simulation_flags: &SimulationFlags +) -> Result<Vec<TransactionSimulationResult>, InternalSubstrateError>

source

pub fn simulate_message( message: L1HandlerTransaction, - simulation_flags: &SimulationFlags -) -> Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>

source

pub fn estimate_message_fee( + simulation_flags: &SimulationFlags +) -> Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>

source

pub fn estimate_message_fee( message: L1HandlerTransaction -) -> Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>

source

pub fn re_execute_transactions( +) -> Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>

source

pub fn re_execute_transactions( transactions_before: Vec<Transaction>, transactions_to_trace: Vec<Transaction>, with_state_diff: bool -) -> Result<ReExecutionResult, InternalSubstrateError>

source

pub fn get_transaction_re_execution_state_diff( +) -> Result<ReExecutionResult, InternalSubstrateError>

source

pub fn get_transaction_re_execution_state_diff( transactions_before: Vec<Transaction>, transactions_to_trace: Vec<Transaction> -) -> Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>

source§

impl<T: Config> Pallet<T>

source

pub fn pre_validate_unsigned_tx( +) -> Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>

source§

impl<T: Config> Pallet<T>

source

pub fn pre_validate_unsigned_tx( transaction: &Transaction ) -> Result<(), InvalidTransaction>

source

pub fn validate_unsigned_tx( transaction: &Transaction ) -> Result<(), InvalidTransaction>

source

pub fn ensure_l1_message_not_executed( nonce: &Nonce -) -> Result<(), InvalidTransaction>

source§

impl<T: Config> Pallet<T>

The Starknet pallet external functions. +) -> Result<(), InvalidTransaction>

source§

impl<T: Config> Pallet<T>

The Starknet pallet external functions. Dispatchable functions allows users to interact with the pallet and invoke state changes. These functions materialize as “extrinsics”, which are often compared to transactions. Dispatchable functions must be annotated with a weight and must return a DispatchResult.

source

pub fn set_starknet_inherent_data( origin: OriginFor<T>, - data: InherentType + data: InherentType ) -> DispatchResult

Set the current block author’s sequencer address.

This call should be invoked exactly once per block. It will set a default value at the finalization phase, if this call hasn’t been invoked by that time.

@@ -106,11 +106,11 @@
TODO
KArg: EncodeLike<TransactionHash>,

An auto-generated getter for TxMessages.

source§

impl<T: Config> Pallet<T>

source

pub fn tx_revert_error<KArg>(k: KArg) -> Option<String>where KArg: EncodeLike<TransactionHash>,

An auto-generated getter for TxRevertError.

-
source§

impl<T: Config> Pallet<T>

source§

impl<T: Config> Pallet<T>

source

pub fn contract_state_root_by_address<KArg>(k: KArg) -> Option<Felt252Wrapper>where KArg: EncodeLike<ContractAddress>,

An auto-generated getter for ContractsStateRoots.

source§

impl<T: Config> Pallet<T>

source

pub fn pending_storage_changes<KArg>(k: KArg) -> Vec<StorageSlot>where KArg: EncodeLike<ContractAddress>,

An auto-generated getter for PendingStorageChanges.

-
source§

impl<T: Config> Pallet<T>

source

pub fn block_hash<KArg>(k: KArg) -> Felt252Wrapperwhere +

source§

impl<T: Config> Pallet<T>

source

pub fn block_hash<KArg>(k: KArg) -> Felt252Wrapperwhere KArg: EncodeLike<u64>,

An auto-generated getter for BlockHash.

source§

impl<T: Config> Pallet<T>

source

pub fn contract_class_hash_by_address<KArg>(k: KArg) -> CasmClassHashwhere KArg: EncodeLike<ContractAddress>,

An auto-generated getter for ContractClassHashes.

@@ -127,41 +127,41 @@
TODO
source§

impl<T: Config> Pallet<T>

source

pub fn last_known_eth_block() -> Option<u64>

An auto-generated getter for LastKnownEthBlock.

source§

impl<T: Config> Pallet<T>

source

pub fn fee_token_addresses() -> FeeTokenAddresses

An auto-generated getter for FeeTokens.

source§

impl<T: Config> Pallet<T>

source

pub fn sequencer_address() -> ContractAddress

An auto-generated getter for SequencerAddress.

-
source§

impl<T: Config> Pallet<T>

source

pub fn current_l1_gas_prices() -> L1GasPrices

An auto-generated getter for CurrentL1GasPrice.

+
source§

impl<T: Config> Pallet<T>

source

pub fn current_l1_gas_prices() -> L1GasPrices

An auto-generated getter for CurrentL1GasPrice.

source§

impl<T: Config> Pallet<T>

source

pub fn inherent_update() -> bool

An auto-generated getter for InherentUpdate.

source§

impl<T: Config> Pallet<T>

source

pub fn l1_messages() -> BTreeSet<Nonce>

An auto-generated getter for L1Messages.

-
source§

impl<T: Config> Pallet<T>

source

pub fn chain_id() -> Felt252Wrapper

An auto-generated getter for ChainIdStorage.

-
source§

impl<T: Config> Pallet<T>

The Starknet pallet internal functions.

-
source

pub fn get_block_context() -> BlockContext

Creates a [BlockContext] object. The [BlockContext] is needed by the blockifier to execute +

source§

impl<T: Config> Pallet<T>

source

pub fn chain_id() -> Felt252Wrapper

An auto-generated getter for ChainIdStorage.

+
source§

impl<T: Config> Pallet<T>

The Starknet pallet internal functions.

+
source

pub fn get_block_context() -> BlockContext

Creates a [BlockContext] object. The [BlockContext] is needed by the blockifier to execute properly the transaction. Substrate caches data so it’s fine to call multiple times this function, only the first transaction/block will be “slow” to load these data.

-
source

pub fn chain_id_str() -> String

convert chain_id

-
source

pub fn parent_block_hash(current_block_number: &u64) -> Felt252Wrapper

Get the block hash of the previous block.

+
source

pub fn chain_id_str() -> String

convert chain_id

+
source

pub fn parent_block_hash(current_block_number: &u64) -> Felt252Wrapper

Get the block hash of the previous block.

Arguments
  • current_block_number - The number of the current block.
Returns

The block hash of the parent (previous) block or 0 if the current block is 0.

-
source

pub fn block_timestamp() -> u64

Get the current block timestamp in seconds.

+
source

pub fn block_timestamp() -> u64

Get the current block timestamp in seconds.

Returns

The current block timestamp in seconds.

-
source

pub fn transaction_count() -> u128

Get the number of transactions in the block.

-
source

pub fn event_count() -> u128

Get the number of events in the block.

-
source

pub fn call_contract( +

source

pub fn transaction_count() -> u128

Get the number of transactions in the block.

+
source

pub fn event_count() -> u128

Get the number of events in the block.

+
source

pub fn call_contract( address: ContractAddress, function_selector: EntryPointSelector, calldata: Calldata -) -> Result<Vec<Felt252Wrapper>, SimulationError>

Call a smart contract function.

-
source

pub fn get_storage_at( +) -> Result<Vec<Felt252Wrapper>, SimulationError>

Call a smart contract function.

+
source

pub fn get_storage_at( contract_address: ContractAddress, key: StorageKey -) -> Result<StarkFelt, SimulationError>

Get storage value at

-
source

pub fn emit_and_store_tx_and_fees_events( +) -> Result<StarkFelt, SimulationError>

Get storage value at

+
source

pub fn emit_and_store_tx_and_fees_events( tx_hash: TransactionHash, execute_call_info: &Option<CallInfo>, fee_transfer_call_info: &Option<CallInfo> -)

source

pub fn program_hash() -> Felt252Wrapper

source

pub fn is_transaction_fee_disabled() -> bool

Trait Implementations§

source§

impl<T: Config> Callable<T> for Pallet<T>

source§

impl<T> Clone for Pallet<T>

source§

fn clone(&self) -> Self

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

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

Performs copy-assignment from source. Read more
source§

impl<T> Debug for Pallet<T>

source§

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

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

impl<T: Config> GetStorageVersion for Pallet<T>

§

type CurrentStorageVersion = NoStorageVersionSet

This will be filled out by the pallet macro. Read more
source§

fn current_storage_version() -> Self::CurrentStorageVersion

Returns the current storage version as supported by the pallet.
source§

fn on_chain_storage_version() -> StorageVersion

Returns the on-chain storage version of the pallet as stored in the storage.
source§

impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

The Starknet pallet hooks. +)

source

pub fn program_hash() -> Felt252Wrapper

source

pub fn is_transaction_fee_disabled() -> bool

Trait Implementations§

source§

impl<T: Config> Callable<T> for Pallet<T>

source§

impl<T> Clone for Pallet<T>

source§

fn clone(&self) -> Self

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

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

Performs copy-assignment from source. Read more
source§

impl<T> Debug for Pallet<T>

source§

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

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

impl<T: Config> GetStorageVersion for Pallet<T>

§

type CurrentStorageVersion = NoStorageVersionSet

This will be filled out by the pallet macro. Read more
source§

fn current_storage_version() -> Self::CurrentStorageVersion

Returns the current storage version as supported by the pallet.
source§

fn on_chain_storage_version() -> StorageVersion

Returns the on-chain storage version of the pallet as stored in the storage.
source§

impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

The Starknet pallet hooks. HOOKS

TODO

§

fn offchain_worker(_n: BlockNumber)

Implementing this function on a pallet allows you to perform long-running tasks that are dispatched as separate threads, and entirely independent of the main wasm runtime. Read more
§

fn integrity_test()

Check the integrity of this pallet’s configuration. Read more
source§

impl<T: Config> IntegrityTest for Pallet<T>

source§

fn integrity_test()

See [Hooks::integrity_test].
source§

impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn offchain_worker(n: BlockNumberFor<T>)

This function is being called after every block import (when fully synced). Read more
source§

impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_finalize(n: BlockNumberFor<T>)

See [Hooks::on_finalize].
source§

impl<T: Config> OnGenesis for Pallet<T>

source§

fn on_genesis()

Something that should happen at genesis.
source§

impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

See [Hooks::on_idle].
source§

impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

source§

fn on_initialize(n: BlockNumberFor<T>) -> Weight

See [Hooks::on_initialize].
source§

impl<T: Config> OnRuntimeUpgrade for Pallet<T>

source§

fn on_runtime_upgrade() -> Weight

See [Hooks::on_runtime_upgrade].
source§

impl<T: Config> PalletInfoAccess for Pallet<T>

source§

fn index() -> usize

Index of the pallet as configured in the runtime.
source§

fn name() -> &'static str

Name of the pallet as configured in the runtime.
source§

fn name_hash() -> [u8; 16]

Two128 hash of name.
source§

fn module_name() -> &'static str

Name of the Rust module containing the pallet.
source§

fn crate_version() -> CrateVersion

Version of the crate containing the pallet.
source§

impl<T: Config> PalletsInfoAccess for Pallet<T>

source§

fn count() -> usize

The number of pallets’ information that this type represents. Read more
source§

fn infos() -> Vec<PalletInfoData>

All of the pallets’ information that this type represents.
source§

impl<T> PartialEq<Pallet<T>> for Pallet<T>

source§

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

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

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

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

impl<T: Config> ProvideInherent for Pallet<T>

§

type Call = Call<T>

The call type of the pallet.
§

type Error = InherentError

The error returned by check_inherent.
source§

const INHERENT_IDENTIFIER: InherentIdentifier = STARKNET_INHERENT_IDENTIFIER

The inherent identifier used by this inherent.
source§

fn create_inherent(data: &InherentData) -> Option<Self::Call>

Create an inherent out of the given InherentData. Read more
source§

fn is_inherent(call: &Self::Call) -> bool

Return whether the call is an inherent call. Read more
§

fn is_inherent_required( +sufficient, and should not be overridden without very good reason.

source§

impl<T: Config> ProvideInherent for Pallet<T>

§

type Call = Call<T>

The call type of the pallet.
§

type Error = InherentError

The error returned by check_inherent.
source§

const INHERENT_IDENTIFIER: InherentIdentifier = STARKNET_INHERENT_IDENTIFIER

The inherent identifier used by this inherent.
source§

fn create_inherent(data: &InherentData) -> Option<Self::Call>

Create an inherent out of the given InherentData. Read more
source§

fn is_inherent(call: &Self::Call) -> bool

Return whether the call is an inherent call. Read more
§

fn is_inherent_required( _: &InherentData ) -> Result<Option<Self::Error>, Self::Error>

Determines whether this inherent is required in this block. Read more
§

fn check_inherent(_: &Self::Call, _: &InherentData) -> Result<(), Self::Error>

Check whether the given inherent is valid. Checking the inherent is optional and can be -omitted by using the default implementation. Read more
source§

impl<T: Config> StorageInfoTrait for Pallet<T>

source§

fn storage_info() -> Vec<StorageInfo>

source§

impl<T: Config> ValidateUnsigned for Pallet<T>

source§

fn validate_unsigned( +omitted by using the default implementation. Read more

source§

impl<T: Config> StorageInfoTrait for Pallet<T>

source§

fn storage_info() -> Vec<StorageInfo>

source§

impl<T: Config> ValidateUnsigned for Pallet<T>

source§

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

Validate unsigned call to this module.

By default unsigned transactions are disallowed, but implementing the validator here we make sure that some particular calls (in this case all calls) are being whitelisted and marked as valid.

-
source§

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

From substrate documentation: +

source§

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

From substrate documentation: Validate the call right before dispatch. This method should be used to prevent transactions already in the pool (i.e. passing validate_unsigned) from being included in blocks in case diff --git a/pallet_starknet/pallet/trait.Config.html b/pallet_starknet/pallet/trait.Config.html index 124c73e035..aecc970b8e 100644 --- a/pallet_starknet/pallet/trait.Config.html +++ b/pallet_starknet/pallet/trait.Config.html @@ -1,14 +1,14 @@ Config in pallet_starknet::pallet - Rust

pub trait Config: Config {
     type TimestampProvider: Time;
-    type InvokeTransactionFilter: TransactionFilter<InvokeTransaction>;
-    type DeclareTransactionFilter: TransactionFilter<DeclareTransaction>;
-    type DeployAccountTransactionFilter: TransactionFilter<DeployAccountTransaction>;
+    type InvokeTransactionFilter: TransactionFilter<InvokeTransaction>;
+    type DeclareTransactionFilter: TransactionFilter<DeclareTransaction>;
+    type DeployAccountTransactionFilter: TransactionFilter<DeployAccountTransaction>;
     type UnsignedPriority: Get<TransactionPriority>;
     type TransactionLongevity: Get<TransactionLongevity>;
     type DisableTransactionFee: Get<bool>;
     type DisableNonceValidation: Get<bool>;
     type ProtocolVersion: Get<u8>;
-    type ProgramHash: Get<Felt252Wrapper>;
+    type ProgramHash: Get<Felt252Wrapper>;
     type ExecutionConstants: Get<Arc<VersionedConstants>>;
 }
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in @@ -19,9 +19,9 @@ We’re coupling the starknet pallet to the tx payment pallet to be able to override the fee mechanism and comply with starknet which uses an ER20 as fee token

Required Associated Types§

source

type TimestampProvider: Time

The block time

-
source

type InvokeTransactionFilter: TransactionFilter<InvokeTransaction>

Custom transaction filter for Invoke txs

-
source

type DeclareTransactionFilter: TransactionFilter<DeclareTransaction>

Custom transaction filter for Declare txs

-
source

type DeployAccountTransactionFilter: TransactionFilter<DeployAccountTransaction>

Custom transaction filter for DeployAccount txs

+
source

type InvokeTransactionFilter: TransactionFilter<InvokeTransaction>

Custom transaction filter for Invoke txs

+
source

type DeclareTransactionFilter: TransactionFilter<DeclareTransaction>

Custom transaction filter for Declare txs

+
source

type DeployAccountTransactionFilter: TransactionFilter<DeployAccountTransaction>

Custom transaction filter for DeployAccount txs

source

type UnsignedPriority: Get<TransactionPriority>

A configuration for base priority of unsigned transactions.

This is exposed so that it can be tuned for particular runtime, when multiple pallets send unsigned transactions.

@@ -30,4 +30,4 @@ set how long transactions are kept in the mempool.

source

type DisableTransactionFee: Get<bool>

A bool to disable transaction fees and make all transactions free

source

type DisableNonceValidation: Get<bool>

A bool to disable Nonce validation

-
source

type ProtocolVersion: Get<u8>

source

type ProgramHash: Get<Felt252Wrapper>

source

type ExecutionConstants: Get<Arc<VersionedConstants>>

Implementors§

\ No newline at end of file +
source

type ProtocolVersion: Get<u8>

source

type ProgramHash: Get<Felt252Wrapper>

source

type ExecutionConstants: Get<Arc<VersionedConstants>>

Implementors§

\ No newline at end of file diff --git a/pallet_starknet/pallet/type.ChainIdStorage.html b/pallet_starknet/pallet/type.ChainIdStorage.html index df9a06792e..83e222db98 100644 --- a/pallet_starknet/pallet/type.ChainIdStorage.html +++ b/pallet_starknet/pallet/type.ChainIdStorage.html @@ -1,3 +1,3 @@ -ChainIdStorage in pallet_starknet::pallet - Rust

Type Definition pallet_starknet::pallet::ChainIdStorage

source ·
pub type ChainIdStorage<T> = StorageValue<_GeneratedPrefixForStorageChainIdStorage<T>, Felt252Wrapper, ValueQuery, DefaultChainId>;
Expand description

ChainID for the palle’a, ’a, t startknet

+ChainIdStorage in pallet_starknet::pallet - Rust

Type Definition pallet_starknet::pallet::ChainIdStorage

source ·
pub type ChainIdStorage<T> = StorageValue<_GeneratedPrefixForStorageChainIdStorage<T>, Felt252Wrapper, ValueQuery, DefaultChainId>;
Expand description

ChainID for the palle’a, ’a, t startknet

Storage type is [StorageValue] with value type Felt252Wrapper.

\ No newline at end of file diff --git a/pallet_starknet/pallet/type.CurrentL1GasPrice.html b/pallet_starknet/pallet/type.CurrentL1GasPrice.html index d4238d46e2..d5e9430209 100644 --- a/pallet_starknet/pallet/type.CurrentL1GasPrice.html +++ b/pallet_starknet/pallet/type.CurrentL1GasPrice.html @@ -1,3 +1,3 @@ -CurrentL1GasPrice in pallet_starknet::pallet - Rust
pub type CurrentL1GasPrice<T: Config> = StorageValue<_GeneratedPrefixForStorageCurrentL1GasPrice<T>, L1GasPrices, ValueQuery>;
Expand description

Current sequencer address.

+CurrentL1GasPrice in pallet_starknet::pallet - Rust
pub type CurrentL1GasPrice<T: Config> = StorageValue<_GeneratedPrefixForStorageCurrentL1GasPrice<T>, L1GasPrices, ValueQuery>;
Expand description

Current sequencer address.

Storage type is [StorageValue] with value type L1GasPrices.

\ No newline at end of file diff --git a/pallet_starknet/types/struct.DeployAccountTransactionOutput.html b/pallet_starknet/types/struct.DeployAccountTransactionOutput.html index 1c8785655f..f229fa602c 100644 --- a/pallet_starknet/types/struct.DeployAccountTransactionOutput.html +++ b/pallet_starknet/types/struct.DeployAccountTransactionOutput.html @@ -1,8 +1,8 @@ DeployAccountTransactionOutput in pallet_starknet::types - Rust
pub struct DeployAccountTransactionOutput {
-    pub transaction_hash: Felt252Wrapper,
+    pub transaction_hash: Felt252Wrapper,
     pub contract_address: ContractAddress,
 }
Expand description

Declare Transaction Output

-

Fields§

§transaction_hash: Felt252Wrapper

Transaction hash

+

Fields§

§transaction_hash: Felt252Wrapper

Transaction hash

§contract_address: ContractAddress

Contract Address

Trait Implementations§

source§

impl Clone for DeployAccountTransactionOutput

source§

fn clone(&self) -> DeployAccountTransactionOutput

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for DeployAccountTransactionOutput

source§

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

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

impl Decode for DeployAccountTransactionOutput

source§

fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy diff --git a/pallet_starknet/types/type.StorageSlot.html b/pallet_starknet/types/type.StorageSlot.html index ccda04c99d..ce173c4a55 100644 --- a/pallet_starknet/types/type.StorageSlot.html +++ b/pallet_starknet/types/type.StorageSlot.html @@ -1,2 +1,2 @@ -StorageSlot in pallet_starknet::types - Rust

Type Definition pallet_starknet::types::StorageSlot

source ·
pub type StorageSlot = (StorageKey, Felt252Wrapper);
Expand description

Type wrapper for a storage slot.

+StorageSlot in pallet_starknet::types - Rust

Type Definition pallet_starknet::types::StorageSlot

source ·
pub type StorageSlot = (StorageKey, Felt252Wrapper);
Expand description

Type wrapper for a storage slot.

\ No newline at end of file diff --git a/pallet_starknet_runtime_api/trait.StarknetRuntimeApi.html b/pallet_starknet_runtime_api/trait.StarknetRuntimeApi.html index fc280a4f98..adff57289f 100644 --- a/pallet_starknet_runtime_api/trait.StarknetRuntimeApi.html +++ b/pallet_starknet_runtime_api/trait.StarknetRuntimeApi.html @@ -10,14 +10,14 @@ __runtime_api_at_param__: <Block as BlockT>::Hash, address: ContractAddress, key: StorageKey - ) -> Result<Result<StarkFelt, SimulationError>, ApiError> { ... } + ) -> Result<Result<StarkFelt, SimulationError>, ApiError> { ... } fn call( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, address: ContractAddress, function_selector: EntryPointSelector, calldata: Calldata - ) -> Result<Result<Vec<Felt252Wrapper>, SimulationError>, ApiError> { ... } + ) -> Result<Result<Vec<Felt252Wrapper>, SimulationError>, ApiError> { ... } fn contract_class_hash_by_address( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -31,11 +31,11 @@ fn chain_id( &self, __runtime_api_at_param__: <Block as BlockT>::Hash - ) -> Result<Felt252Wrapper, ApiError> { ... } + ) -> Result<Felt252Wrapper, ApiError> { ... } fn program_hash( &self, __runtime_api_at_param__: <Block as BlockT>::Hash - ) -> Result<Felt252Wrapper, ApiError> { ... } + ) -> Result<Felt252Wrapper, ApiError> { ... } fn fee_token_addresses( &self, __runtime_api_at_param__: <Block as BlockT>::Hash @@ -44,25 +44,25 @@ &self, __runtime_api_at_param__: <Block as BlockT>::Hash, transactions: Vec<AccountTransaction>, - simulation_flags: SimulationFlags - ) -> Result<Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>, ApiError> { ... } + simulation_flags: SimulationFlags + ) -> Result<Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>, ApiError> { ... } fn estimate_message_fee( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, message: L1HandlerTransaction - ) -> Result<Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>, ApiError> { ... } + ) -> Result<Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>, ApiError> { ... } fn simulate_message( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, message: L1HandlerTransaction, - simulation_flags: SimulationFlags - ) -> Result<Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>, ApiError> { ... } + simulation_flags: SimulationFlags + ) -> Result<Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>, ApiError> { ... } fn simulate_transactions( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, transactions: Vec<AccountTransaction>, - simulation_flags: SimulationFlags - ) -> Result<Result<Vec<TransactionSimulationResult>, InternalSubstrateError>, ApiError> { ... } + simulation_flags: SimulationFlags + ) -> Result<Result<Vec<TransactionSimulationResult>, InternalSubstrateError>, ApiError> { ... } fn extrinsic_filter( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -74,13 +74,13 @@ transactions_before: Vec<Transaction>, transactions_to_trace: Vec<Transaction>, with_state_diff: bool - ) -> Result<Result<ReExecutionResult, InternalSubstrateError>, ApiError> { ... } + ) -> Result<Result<ReExecutionResult, InternalSubstrateError>, ApiError> { ... } fn get_transaction_re_execution_state_diff( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, transactions_before: Vec<Transaction>, transactions: Vec<Transaction> - ) -> Result<Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>, ApiError> { ... } + ) -> Result<Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>, ApiError> { ... } fn get_index_and_tx_for_tx_hash( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -129,14 +129,14 @@ __runtime_api_at_param__: <Block as BlockT>::Hash, address: ContractAddress, key: StorageKey -) -> Result<Result<StarkFelt, SimulationError>, ApiError>

Returns a storage slot value

+) -> Result<Result<StarkFelt, SimulationError>, ApiError>

Returns a storage slot value

source

fn call( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, address: ContractAddress, function_selector: EntryPointSelector, calldata: Calldata -) -> Result<Result<Vec<Felt252Wrapper>, SimulationError>, ApiError>

Returns a Call response.

+) -> Result<Result<Vec<Felt252Wrapper>, SimulationError>, ApiError>

Returns a Call response.

source

fn contract_class_hash_by_address( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -150,11 +150,11 @@

source

fn chain_id( &self, __runtime_api_at_param__: <Block as BlockT>::Hash -) -> Result<Felt252Wrapper, ApiError>

Returns the chain id.

+) -> Result<Felt252Wrapper, ApiError>

Returns the chain id.

source

fn program_hash( &self, __runtime_api_at_param__: <Block as BlockT>::Hash -) -> Result<Felt252Wrapper, ApiError>

Returns the Starknet OS Cairo program hash.

+) -> Result<Felt252Wrapper, ApiError>

Returns the Starknet OS Cairo program hash.

source

fn fee_token_addresses( &self, __runtime_api_at_param__: <Block as BlockT>::Hash @@ -163,25 +163,25 @@ &self, __runtime_api_at_param__: <Block as BlockT>::Hash, transactions: Vec<AccountTransaction>, - simulation_flags: SimulationFlags -) -> Result<Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>, ApiError>

Returns fee estimate

+ simulation_flags: SimulationFlags +) -> Result<Result<Result<Vec<FeeEstimate>, SimulationError>, InternalSubstrateError>, ApiError>

Returns fee estimate

source

fn estimate_message_fee( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, message: L1HandlerTransaction -) -> Result<Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>, ApiError>

Returns message fee estimate

+) -> Result<Result<Result<FeeEstimate, SimulationError>, InternalSubstrateError>, ApiError>

Returns message fee estimate

source

fn simulate_message( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, message: L1HandlerTransaction, - simulation_flags: SimulationFlags -) -> Result<Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>, ApiError>

Simulates single L1 Message and returns its trace

+ simulation_flags: SimulationFlags +) -> Result<Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>, ApiError>

Simulates single L1 Message and returns its trace

source

fn simulate_transactions( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, transactions: Vec<AccountTransaction>, - simulation_flags: SimulationFlags -) -> Result<Result<Vec<TransactionSimulationResult>, InternalSubstrateError>, ApiError>

Simulates transactions and returns their trace

+ simulation_flags: SimulationFlags +) -> Result<Result<Vec<TransactionSimulationResult>, InternalSubstrateError>, ApiError>

Simulates transactions and returns their trace

source

fn extrinsic_filter( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -199,7 +199,7 @@ transactions_before: Vec<Transaction>, transactions_to_trace: Vec<Transaction>, with_state_diff: bool -) -> Result<Result<ReExecutionResult, InternalSubstrateError>, ApiError>

Used to re-execute transactions from a past block and return their trace

+) -> Result<Result<ReExecutionResult, InternalSubstrateError>, ApiError>

Used to re-execute transactions from a past block and return their trace

Arguments
  • transactions_before - The first txs of the block. We don’t want to trace those, but we need to execute them to rebuild the exact same state
  • @@ -213,7 +213,7 @@
    Return
    __runtime_api_at_param__: <Block as BlockT>::Hash, transactions_before: Vec<Transaction>, transactions: Vec<Transaction> -) -> Result<Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>, ApiError>
    source

    fn get_index_and_tx_for_tx_hash( +) -> Result<Result<Result<CommitmentStateDiff, SimulationError>, InternalSubstrateError>, ApiError>

    source

    fn get_index_and_tx_for_tx_hash( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, xts: Vec<<Block as BlockT>::Extrinsic>, diff --git a/settings.html b/settings.html index 1a4e65f46c..619b3c8e04 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file +Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file diff --git a/src/pallet_starknet/lib.rs.html b/src/pallet_starknet/lib.rs.html index 10d81b515a..2cb2d8cade 100644 --- a/src/pallet_starknet/lib.rs.html +++ b/src/pallet_starknet/lib.rs.html @@ -1159,31 +1159,6 @@ 1159 1160 1161 -1162 -1163 -1164 -1165 -1166 -1167 -1168 -1169 -1170 -1171 -1172 -1173 -1174 -1175 -1176 -1177 -1178 -1179 -1180 -1181 -1182 -1183 -1184 -1185 -1186

//! A Substrate pallet implementation for Starknet, a decentralized, permissionless, and scalable
 //! zk-rollup for general-purpose smart contracts.
 //! See the [Starknet documentation](https://docs.starknet.io/) for more information.
@@ -1695,14 +1670,6 @@
             // This ensures that the function can only be called via unsigned transaction.
             ensure_none(origin)?;
 
-            let sender_address = match &transaction.tx {
-                starknet_api::transaction::InvokeTransaction::V0(tx) => tx.contract_address,
-                starknet_api::transaction::InvokeTransaction::V1(tx) => tx.sender_address,
-                starknet_api::transaction::InvokeTransaction::V3(tx) => tx.sender_address,
-            };
-            // Check if contract is deployed
-            ensure!(ContractClassHashes::<T>::contains_key(sender_address), Error::<T>::AccountNotDeployed);
-
             // Init caches
             let mut state = BlockifierStateAdapter::<T>::default();
             let block_context = Self::get_block_context();
@@ -1762,17 +1729,6 @@
             // This ensures that the function can only be called via unsigned transaction.
             ensure_none(origin)?;
 
-            // Check class hash is not already declared
-            ensure!(
-                !ContractClasses::<T>::contains_key(transaction.tx().class_hash().0),
-                Error::<T>::ClassHashAlreadyDeclared
-            );
-            // Check if contract is deployed
-            ensure!(
-                ContractClassHashes::<T>::contains_key(transaction.tx().sender_address()),
-                Error::<T>::AccountNotDeployed
-            );
-
             let mut state = BlockifierStateAdapter::<T>::default();
             let charge_fee = !<T as Config>::DisableTransactionFee::get();
 
@@ -1819,12 +1775,6 @@
             // This ensures that the function can only be called via unsigned transaction.
             ensure_none(origin)?;
 
-            // Check if contract is deployed
-            ensure!(
-                !ContractClassHashes::<T>::contains_key(transaction.contract_address),
-                Error::<T>::AccountAlreadyDeployed
-            );
-
             let mut state = BlockifierStateAdapter::<T>::default();
             let charge_fee = !<T as Config>::DisableTransactionFee::get();