From 39f0b1b78c87b1ff694bbf580ea6a7452a4c2b0e Mon Sep 17 00:00:00 2001 From: tdelabro Date: Thu, 16 May 2024 13:28:32 +0000 Subject: [PATCH] deploy: e530baede3022762be2c966558dabc4fb7215b00 --- help.html | 2 +- implementors/bounded_collections/trait.Get.js | 2 +- implementors/core/clone/trait.Clone.js | 4 +- implementors/core/convert/trait.From.js | 4 +- .../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 +- .../trait.ConvertTransactionRuntimeApi.js | 2 +- .../trait.StarknetRuntimeApi.js | 2 +- .../block_import/trait.BlockImport.js | 2 +- .../block_import/trait.JustificationImport.js | 2 +- .../fn.create_benchmark_extrinsic.html | 6 +- madara/benchmarking/struct.RemarkBuilder.html | 6 +- madara/chain_spec/fn.development_config.html | 2 +- madara/chain_spec/fn.load_genesis.html | 2 +- .../chain_spec/fn.local_testnet_config.html | 2 +- .../fn.print_development_accounts.html | 2 +- madara/chain_spec/fn.testnet_genesis.html | 4 +- madara/chain_spec/struct.DevGenesisExt.html | 8 +- madara/chain_spec/type.ChainSpec.html | 2 +- madara/commands/run/enum.Sealing.html | 2 +- .../fn.build_aura_import_queue.html | 8 +- .../fn.build_aura_queue_grandpa_pipeline.html | 8 +- .../fn.build_manual_seal_queue_pipeline.html | 6 +- .../struct.BlockImportPipeline.html | 6 +- madara/import_queue/type.GrandpaLinkT.html | 2 +- madara/rpc/fn.create_full.html | 12 +-- madara/rpc/starknet/struct.StarknetDeps.html | 12 +-- madara/rpc/struct.FullDeps.html | 10 +-- madara/service/fn.new_chain_ops.html | 2 +- madara/service/fn.new_full.html | 2 +- madara/service/fn.new_partial.html | 4 +- .../fn.run_manual_seal_authorship.html | 14 ++-- madara/service/type.BasicImportQueue.html | 2 +- madara/service/type.BoxBlockImport.html | 2 +- madara/service/type.ChainOpsResult.html | 2 +- madara/service/type.FullBackend.html | 2 +- madara/service/type.FullClient.html | 2 +- madara/service/type.FullSelectChain.html | 2 +- madara/starknet/type.MadaraBackend.html | 2 +- madara_runtime/struct.DefaultChainId.html | 2 +- madara_runtime/struct.Runtime.html | 20 ++--- madara_runtime/struct.RuntimeApiImpl.html | 74 +++++++++---------- madara_runtime/type.StarknetHasher.html | 2 +- .../struct.CommitmentStateDiffWorker.html | 6 +- .../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 +- ...lockifier_to_rpc_contract_class_types.html | 2 +- ...fn.blockifier_to_rpc_state_diff_types.html | 2 +- ...attened_sierra_to_casm_contract_class.html | 2 +- ...tened_sierra_to_sierra_contract_class.html | 2 +- mc_rpc/fn.get_block_by_block_hash.html | 4 +- mc_rpc/fn.get_casm_cotract_class_hash.html | 2 +- mc_rpc/fn.to_rpc_state_diff.html | 2 +- mc_rpc/starknetrpcwrapper/struct.Felt.html | 4 +- .../struct.PredeployedAccountWithBalance.html | 8 +- .../struct.StarknetRpcWrapper.html | 32 ++++---- .../trait.MadaraRpcApiServer.html | 18 ++--- .../trait.StarknetReadRpcApiServer.html | 64 ++++++++-------- .../trait.StarknetTraceRpcApiServer.html | 22 +++--- .../trait.StarknetWriteRpcApiServer.html | 22 +++--- mc_rpc/struct.Felt.html | 4 +- .../struct.PredeployedAccountWithBalance.html | 8 +- mc_rpc/struct.Starknet.html | 60 +++++++-------- mc_rpc/trait.MadaraRpcApiServer.html | 18 ++--- mc_rpc/trait.StarknetReadRpcApiServer.html | 64 ++++++++-------- mc_rpc/trait.StarknetTraceRpcApiServer.html | 22 +++--- mc_rpc/trait.StarknetWriteRpcApiServer.html | 22 +++--- .../struct.PredeployedAccountWithBalance.html | 4 +- .../trait.StarknetReadRpcApiServer.html | 4 +- .../utils/fn.get_block_by_block_hash.html | 2 +- .../struct.StarknetBlockImport.html | 32 ++++---- 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 +- .../constant.SN_OS_PROGRAM_HASH.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/struct.DefaultChainId.html | 2 +- .../pallet/struct.GenesisConfig.html | 4 +- pallet_starknet/pallet/struct.Pallet.html | 32 ++++---- pallet_starknet/pallet/trait.Config.html | 4 +- .../pallet/type.ChainIdStorage.html | 2 +- ...struct.DeployAccountTransactionOutput.html | 4 +- pallet_starknet/types/type.StorageSlot.html | 2 +- .../trait.StarknetRuntimeApi.html | 48 ++++++------ settings.html | 2 +- 100 files changed, 446 insertions(+), 446 deletions(-) diff --git a/help.html b/help.html index 437e5b1c2..69ffcfaa1 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 037e080b0..156ecf42c 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<BlockWeights>> Get<_I> for BlockWeights"],["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"]], -"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 bf07f6789..85fef8a89 100644 --- a/implementors/core/clone/trait.Clone.js +++ b/implementors/core/clone/trait.Clone.js @@ -1,11 +1,11 @@ (function() {var implementors = { -"madara":[["impl<C, G: GenesisProvider, B: BlockT> Clone for StarknetDeps<C, G, B>"],["impl Clone for Sealing"],["impl Clone for ExtendedRunCmd"]], +"madara":[["impl<C, G: GenesisProvider, B: BlockT> Clone for StarknetDeps<C, G, B>"],["impl Clone for Sealing"],["impl Clone for ExtendedRunCmd"]], "madara_runtime":[["impl Clone for RuntimeCall"],["impl Clone for SessionKeys"],["impl Clone for OriginCaller"],["impl Clone for RuntimeOrigin"],["impl Clone for SealingMode"],["impl Clone for RuntimeEvent"],["impl Clone for RuntimeHoldReason"],["impl Clone for RuntimeSlashReason"],["impl Clone for Runtime"],["impl Clone for RuntimeFreezeReason"],["impl Clone for RuntimeLockId"]], "madara_test_runner":[["impl Clone for MadaraArgs"],["impl Clone for Settlement"]], "mc_commitment_state_diff":[["impl Clone for BlockDAData"]], "mc_eth_client":[["impl Clone for EthereumProviderConfig"],["impl Clone for EthereumWalletConfig"],["impl Clone for EthereumClientConfig"],["impl Clone for StarknetContracts"],["impl Clone for LocalWalletConfig"],["impl Clone for HttpProviderConfig"]], "mc_rpc":[["impl<A: ChainApi, B: BlockT, BE, G, C, P, H> Clone for StarknetRpcWrapper<A, B, BE, G, C, P, H>"]], -"mc_starknet_block_import":[["impl<I, C> Clone for StarknetBlockImport<I, C>where\n I: BlockImport<Block> + Send + Clone,\n C: ProvideRuntimeApi<Block> + Send,"]], +"mc_starknet_block_import":[["impl<I, C> Clone for StarknetBlockImport<I, C>where\n I: BlockImport<Block> + Send + Clone,\n C: ProvideRuntimeApi<Block> + Send,"]], "mp_block":[["impl Clone for BlockTag"],["impl Clone for Header"],["impl Clone for BlockId"],["impl Clone for Block"]], "mp_digest_log":[["impl Clone for FindLogError"],["impl Clone for Log"]], "mp_felt":[["impl Clone for Felt252Wrapper"]], diff --git a/implementors/core/convert/trait.From.js b/implementors/core/convert/trait.From.js index 0f26fd5ee..35847d377 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":[["impl From<Sealing> for SealingMode"]], "madara_runtime":[["impl From<Event<Runtime>> for RuntimeEvent"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<Event> for RuntimeEvent"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<RuntimeOrigin> for Result<Origin<Runtime>, RuntimeOrigin>"],["impl From<RawOrigin<<Runtime as Config>::AccountId>> for OriginCaller"],["impl From<RawOrigin<<Runtime as Config>::AccountId>> for RuntimeOrigin"],["impl From<Option<<Runtime as Config>::AccountId>> for RuntimeOrigin"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<OriginCaller> for RuntimeOrigin"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<Error<Runtime>> for RuntimeError"]], "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<Error> for L1MessagesWorkerError<PE>"],["impl<PE> From<DbError> for L1MessagesWorkerError<PE>"],["impl<PE> From<ParseError> for L1MessagesWorkerError<PE>"]], +"mc_l1_messages":[["impl<PE> From<Error> for L1MessagesWorkerError<PE>"],["impl<PE> From<DbError> for L1MessagesWorkerError<PE>"],["impl<PE> From<ParseError> for L1MessagesWorkerError<PE>"]], "mp_felt":[["impl From<Felt252Wrapper> for TransactionHash"],["impl From<BlockHash> for Felt252Wrapper"],["impl From<EthAddress> for Felt252Wrapper"],["impl From<StarkFelt> for Felt252Wrapper"],["impl From<Felt252Wrapper> for PatriciaKey"],["impl From<Felt252WrapperError> for Cow<'static, str>"],["impl From<ClassHash> for Felt252Wrapper"],["impl From<Felt252Wrapper> for ContractAddressSalt"],["impl From<FromStrError> for Felt252WrapperError"],["impl From<Felt252Wrapper> for EventKey"],["impl From<Felt252Wrapper> for CompiledClassHash"],["impl From<EventKey> for Felt252Wrapper"],["impl From<u64> for Felt252Wrapper"],["impl From<Felt252Wrapper> for Felt252"],["impl From<TransactionVersion> for Felt252Wrapper"],["impl From<Felt252> for Felt252Wrapper"],["impl From<u32> for Felt252Wrapper"],["impl From<Felt252Wrapper> for [u8; 32]"],["impl From<CompiledClassHash> for Felt252Wrapper"],["impl From<u128> for Felt252Wrapper"],["impl From<Felt252Wrapper> for BlockHash"],["impl From<Felt252Wrapper> for StarkFelt"],["impl From<Felt252Wrapper> for U256"],["impl From<Felt252Wrapper> for Nonce"],["impl From<PatriciaKey> for Felt252Wrapper"],["impl From<Felt252Wrapper> for ClassHash"],["impl From<Nonce> for Felt252Wrapper"],["impl From<EntryPointSelector> for Felt252Wrapper"],["impl From<FieldElement> for Felt252Wrapper"],["impl From<ContractAddress> for Felt252Wrapper"],["impl From<Felt252Wrapper> for ContractAddress"],["impl From<Felt252Wrapper> for FieldElement"],["impl From<StorageKey> for Felt252Wrapper"],["impl From<Felt252Wrapper> for H256"],["impl From<Felt252Wrapper> for StorageKey"],["impl From<Felt252WrapperError> for String"],["impl From<ContractAddressSalt> for Felt252Wrapper"],["impl From<Felt252Wrapper> for TransactionVersion"],["impl From<TransactionHash> for Felt252Wrapper"],["impl From<Felt252Wrapper> for EntryPointSelector"],["impl From<u8> for Felt252Wrapper"]], "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/futures_core/stream/trait.Stream.js b/implementors/futures_core/stream/trait.Stream.js index 45ff9470c..879c44488 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 b68e915a7..9118466b7 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 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,"],["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,"]] +"mc_rpc":[["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,"],["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,"]] };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 6c2345fc9..4a5d76900 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 4639dc63f..bc63d9870 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 f0f3ab652..1479dacf3 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 8110156fa..a20aba9a1 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_runtime_api/trait.ConvertTransactionRuntimeApi.js b/implementors/pallet_starknet_runtime_api/trait.ConvertTransactionRuntimeApi.js index a0435edda..4546b5114 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 fa427524a..10f0d63ac 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<(u128, u128)>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Vec<Transaction>: UnwindSafe + RefUnwindSafe,\n Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n L1HandlerTransaction: UnwindSafe + RefUnwindSafe,\n Result<Result<(u128, u128, u128), SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Result<Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, SimulationError>, 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 __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<(u128, u128)>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Vec<Transaction>: UnwindSafe + RefUnwindSafe,\n Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n L1HandlerTransaction: UnwindSafe + RefUnwindSafe,\n Result<Result<(u128, u128, u128), SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe,\n Result<Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, SimulationError>, 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 __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 b28081320..5959b7354 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/implementors/sc_consensus/block_import/trait.JustificationImport.js b/implementors/sc_consensus/block_import/trait.JustificationImport.js index e29a8f628..82c71f3e8 100644 --- a/implementors/sc_consensus/block_import/trait.JustificationImport.js +++ b/implementors/sc_consensus/block_import/trait.JustificationImport.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"mc_starknet_block_import":[["impl<I, C> JustificationImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>> for StarknetBlockImport<I, C>where\n I: JustificationImport<Block> + Send + Clone,\n C: ProvideRuntimeApi<Block> + Send + Sync,"]] +"mc_starknet_block_import":[["impl<I, C> JustificationImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>> for StarknetBlockImport<I, C>where\n I: JustificationImport<Block> + Send + Clone,\n C: ProvideRuntimeApi<Block> + Send + Sync,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/madara/benchmarking/fn.create_benchmark_extrinsic.html b/madara/benchmarking/fn.create_benchmark_extrinsic.html index 0f86fda4e..87791305a 100644 --- a/madara/benchmarking/fn.create_benchmark_extrinsic.html +++ b/madara/benchmarking/fn.create_benchmark_extrinsic.html @@ -1,8 +1,8 @@ create_benchmark_extrinsic in madara::benchmarking - Rust
pub fn create_benchmark_extrinsic(
-    client: &TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>,
+    client: &TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>,
     sender: Pair,
-    call: RuntimeCall,
+    call: RuntimeCall,
     nonce: u32
-) -> UncheckedExtrinsic
Expand description

Create a transaction using the given call.

+) -> UncheckedExtrinsic
Expand description

Create a transaction using the given call.

Note: Should only be used for benchmarking.

\ No newline at end of file diff --git a/madara/benchmarking/struct.RemarkBuilder.html b/madara/benchmarking/struct.RemarkBuilder.html index 690ded3d3..4b6554004 100644 --- a/madara/benchmarking/struct.RemarkBuilder.html +++ b/madara/benchmarking/struct.RemarkBuilder.html @@ -1,9 +1,9 @@ RemarkBuilder in madara::benchmarking - Rust
pub struct RemarkBuilder {
-    client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
+    client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
 }
Expand description

Generates extrinsics for the benchmark overhead command.

Note: Should only be used for benchmarking.

-

Fields§

§client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>

Implementations§

source§

impl RemarkBuilder

Fields§

§client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>

Implementations§

source§

impl RemarkBuilder

source

pub fn new( + client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>> ) -> Self

Creates a new Self from the given client.

Trait Implementations§

source§

impl ExtrinsicBuilder for RemarkBuilder

source§

fn pallet(&self) -> &str

Name of the pallet this builder is for. Read more
source§

fn extrinsic(&self) -> &str

Name of the extrinsic this builder is for. Read more
source§

fn build(&self, nonce: u32) -> Result<OpaqueExtrinsic, &'static str>

Builds an extrinsic. 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
§

impl<T> Any for Twhere diff --git a/madara/chain_spec/fn.development_config.html b/madara/chain_spec/fn.development_config.html index 929ea7f10..6cf926900 100644 --- a/madara/chain_spec/fn.development_config.html +++ b/madara/chain_spec/fn.development_config.html @@ -1,4 +1,4 @@ development_config in madara::chain_spec - Rust
pub fn development_config(
-    sealing: SealingMode,
+    sealing: SealingMode,
     base_path: BasePath
 ) -> Result<GenericChainSpec<DevGenesisExt>, String>
\ 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 b11bef93b..e5504a84b 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.local_testnet_config.html b/madara/chain_spec/fn.local_testnet_config.html index a24ee4fdd..427200961 100644 --- a/madara/chain_spec/fn.local_testnet_config.html +++ b/madara/chain_spec/fn.local_testnet_config.html @@ -1,4 +1,4 @@ local_testnet_config in madara::chain_spec - Rust
pub fn local_testnet_config(
     base_path: BasePath,
     chain_id: &str
-) -> Result<GenericChainSpec<RuntimeGenesisConfig>, String>
\ No newline at end of file +) -> Result<GenericChainSpec<RuntimeGenesisConfig>, String>

\ 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 00c97dfd3..bc07c961a 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 1b8d03bc5..4e3cb46e0 100644 --- a/madara/chain_spec/fn.testnet_genesis.html +++ b/madara/chain_spec/fn.testnet_genesis.html @@ -1,7 +1,7 @@ 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
-) -> RuntimeGenesisConfig
Expand description

Configure initial storage state for FRAME modules.

+) -> RuntimeGenesisConfig
Expand description

Configure initial storage state for FRAME modules.

\ No newline at end of file diff --git a/madara/chain_spec/struct.DevGenesisExt.html b/madara/chain_spec/struct.DevGenesisExt.html index 341b3ba37..26c0ad8a3 100644 --- a/madara/chain_spec/struct.DevGenesisExt.html +++ b/madara/chain_spec/struct.DevGenesisExt.html @@ -1,9 +1,9 @@ DevGenesisExt in madara::chain_spec - Rust
pub struct DevGenesisExt {
-    genesis_config: RuntimeGenesisConfig,
-    sealing: SealingMode,
+    genesis_config: RuntimeGenesisConfig,
+    sealing: SealingMode,
 }
Expand description

Extension for the dev genesis config to support a custom changes to the genesis state.

-

Fields§

§genesis_config: RuntimeGenesisConfig

Genesis config.

-
§sealing: SealingMode

The sealing mode being used.

+

Fields§

§genesis_config: RuntimeGenesisConfig

Genesis config.

+
§sealing: SealingMode

The sealing mode being used.

Trait Implementations§

source§

impl BuildStorage for DevGenesisExt

The sealing from the DevGenesisExt is passed to the runtime via the storage. The runtime can then use this information to adjust accordingly. This is just a common way to pass information from the chain spec to the runtime.

diff --git a/madara/chain_spec/type.ChainSpec.html b/madara/chain_spec/type.ChainSpec.html index 79a8ce6ad..cc56feced 100644 --- a/madara/chain_spec/type.ChainSpec.html +++ b/madara/chain_spec/type.ChainSpec.html @@ -1,2 +1,2 @@ -ChainSpec in madara::chain_spec - Rust

Type Definition madara::chain_spec::ChainSpec

source ·
pub type ChainSpec = GenericChainSpec<RuntimeGenesisConfig>;
Expand description

Specialized ChainSpec. This is a specialization of the general Substrate ChainSpec type.

+ChainSpec in madara::chain_spec - Rust

Type Definition madara::chain_spec::ChainSpec

source ·
pub type ChainSpec = GenericChainSpec<RuntimeGenesisConfig>;
Expand description

Specialized ChainSpec. This is a specialization of the general Substrate ChainSpec type.

\ No newline at end of file diff --git a/madara/commands/run/enum.Sealing.html b/madara/commands/run/enum.Sealing.html index e3050731d..e21680454 100644 --- a/madara/commands/run/enum.Sealing.html +++ b/madara/commands/run/enum.Sealing.html @@ -8,7 +8,7 @@ finalize blocks use --sealing=instant-finality.

§

InstantFinality

Seal when transaction is executed with finalization.

Trait Implementations§

source§

impl Clone for Sealing

source§

fn clone(&self) -> Sealing

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 Sealing

source§

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

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

impl Default for Sealing

source§

fn default() -> Sealing

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

impl<'de> Deserialize<'de> for Sealing

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 From<Sealing> for SealingMode

source§

fn from(value: Sealing) -> Self

Converts to this type from the input type.
source§

impl Serialize for Sealing

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Sealing> for SealingMode

source§

fn from(value: Sealing) -> Self

Converts to this type from the input type.
source§

impl Serialize for Sealing

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

impl ValueEnum for Sealing

source§

fn value_variants<'a>() -> &'a [Self]

All possible argument values, in display order.
source§

fn to_possible_value<'a>(&self) -> Option<PossibleValue>

The canonical argument value. Read more
§

fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

Parse an argument into Self.
source§

impl Copy for Sealing

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
§

impl<T> Any for Twhere T: Any,

§

fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>

§

fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for Twhere diff --git a/madara/import_queue/fn.build_aura_import_queue.html b/madara/import_queue/fn.build_aura_import_queue.html index 4fc350dd9..3bf234580 100644 --- a/madara/import_queue/fn.build_aura_import_queue.html +++ b/madara/import_queue/fn.build_aura_import_queue.html @@ -1,9 +1,9 @@ build_aura_import_queue in madara::import_queue - Rust
fn build_aura_import_queue(
-    client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
+    client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
     config: &Configuration,
     task_manager: &TaskManager,
     telemetry: &Option<Telemetry>,
-    block_import: BoxBlockImport<Block>,
-    justification_import: Option<BoxJustificationImport<Block>>
-) -> Result<DefaultImportQueue<Block>, Error>
Expand description

Build the import queue for default sealing given the block import.

+ block_import: BoxBlockImport<Block>, + justification_import: Option<BoxJustificationImport<Block>> +) -> Result<DefaultImportQueue<Block>, Error>
Expand description

Build the import queue for default sealing given the block import.

\ No newline at end of file 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 a33719a4d..a286e3421 100644 --- a/madara/import_queue/fn.build_aura_queue_grandpa_pipeline.html +++ b/madara/import_queue/fn.build_aura_queue_grandpa_pipeline.html @@ -1,11 +1,11 @@ build_aura_queue_grandpa_pipeline in madara::import_queue - Rust
pub fn build_aura_queue_grandpa_pipeline(
-    client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
+    client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
     config: &Configuration,
     task_manager: &TaskManager,
     telemetry: &Option<Telemetry>,
-    select_chain: LongestChain<TFullBackend<Block>, Block>,
-    madara_backend: Arc<Backend<Block>>
-) -> Result<(DefaultImportQueue<Block>, BlockImportPipeline), Error>
Expand description

Build a block import queue & pipeline for default sealing.

+ select_chain: LongestChain<TFullBackend<Block>, Block>, + madara_backend: Arc<Backend<Block>> +) -> Result<(DefaultImportQueue<Block>, BlockImportPipeline), Error>
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 Pipeline (authored blocks): GrandpaBlockImport -> Client

diff --git a/madara/import_queue/fn.build_manual_seal_queue_pipeline.html b/madara/import_queue/fn.build_manual_seal_queue_pipeline.html index 32c598fc8..b570a7e81 100644 --- a/madara/import_queue/fn.build_manual_seal_queue_pipeline.html +++ b/madara/import_queue/fn.build_manual_seal_queue_pipeline.html @@ -1,9 +1,9 @@ build_manual_seal_queue_pipeline in madara::import_queue - Rust
pub fn build_manual_seal_queue_pipeline(
-    client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
+    client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
     config: &Configuration,
     task_manager: &TaskManager,
-    madara_backend: Arc<Backend<Block>>
-) -> (DefaultImportQueue<Block>, BlockImportPipeline)
Expand description

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

+ 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 Pipeline: StarknetBlockImport -> Client

diff --git a/madara/import_queue/struct.BlockImportPipeline.html b/madara/import_queue/struct.BlockImportPipeline.html index f67a19c5e..ccfc0705f 100644 --- a/madara/import_queue/struct.BlockImportPipeline.html +++ b/madara/import_queue/struct.BlockImportPipeline.html @@ -1,9 +1,9 @@ BlockImportPipeline in madara::import_queue - Rust
pub struct BlockImportPipeline {
-    pub block_import: BoxBlockImport<Block>,
-    pub grandpa_link: Option<LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>>,
+    pub block_import: BoxBlockImport<Block>,
+    pub grandpa_link: Option<LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>>,
 }
Expand description

Block import pipeline is a helper struct encapsulating the authored (own) block import and optionally a link (hook) to the Grandpa block import.

-

Fields§

§block_import: BoxBlockImport<Block>§grandpa_link: Option<LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Fields§

§block_import: BoxBlockImport<Block>§grandpa_link: Option<LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>>

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
§

impl<T> Any for Twhere T: Any,

§

fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>

§

fn into_any_rc(self: Rc<T, Global>) -> Rc<dyn Any, Global>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for Twhere T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T, Global>) -> Arc<dyn Any + Sync + Send, Global>

source§

impl<T> Borrow<T> for Twhere diff --git a/madara/import_queue/type.GrandpaLinkT.html b/madara/import_queue/type.GrandpaLinkT.html index d0a082d35..15dbd8379 100644 --- a/madara/import_queue/type.GrandpaLinkT.html +++ b/madara/import_queue/type.GrandpaLinkT.html @@ -1,3 +1,3 @@ -GrandpaLinkT in madara::import_queue - Rust

Type Definition madara::import_queue::GrandpaLinkT

source ·
type GrandpaLinkT = LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>;
Expand description

Grandpa link (hook) type.

+GrandpaLinkT in madara::import_queue - Rust

Type Definition madara::import_queue::GrandpaLinkT

source ·
type GrandpaLinkT = LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>;
Expand description

Grandpa link (hook) type.

Import queue provides hooks via the Link trait that can be used to follow its progress.

\ No newline at end of file diff --git a/madara/rpc/fn.create_full.html b/madara/rpc/fn.create_full.html index 05c32dbfc..106ac9666 100644 --- a/madara/rpc/fn.create_full.html +++ b/madara/rpc/fn.create_full.html @@ -1,10 +1,10 @@ create_full in madara::rpc - Rust

Function madara::rpc::create_full

source ·
pub fn create_full<A, C, G, P, BE>(
     deps: FullDeps<A, C, G, P>
 ) -> Result<RpcModule<()>, Box<dyn Error + Send + Sync>>where
-    A: ChainApi<Block = Block> + 'static,
-    C: ProvideRuntimeApi<Block> + HeaderBackend<Block> + BlockBackend<Block> + HeaderMetadata<Block, Error = Error> + StorageProvider<Block, BE> + 'static + Send + Sync,
-    C::Api: AccountNonceApi<Block, AccountId, Index> + BlockBuilder<Block> + StarknetRuntimeApi<Block> + ConvertTransactionRuntimeApi<Block>,
-    G: GenesisProvider + Send + Sync + 'static,
-    P: TransactionPool<Block = Block> + 'static,
-    BE: Backend<Block> + 'static,
Expand description

Instantiate all full RPC extensions.

+ A: ChainApi<Block = Block> + 'static, + C: ProvideRuntimeApi<Block> + HeaderBackend<Block> + BlockBackend<Block> + HeaderMetadata<Block, Error = Error> + StorageProvider<Block, BE> + 'static + Send + Sync, + C::Api: AccountNonceApi<Block, AccountId, Index> + BlockBuilder<Block> + StarknetRuntimeApi<Block> + ConvertTransactionRuntimeApi<Block>, + G: GenesisProvider + Send + Sync + 'static, + P: TransactionPool<Block = Block> + 'static, + BE: Backend<Block> + 'static,
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 a55ad6cb8..410475ed3 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 371980a32..fb0c2cf3d 100644 --- a/madara/rpc/struct.FullDeps.html +++ b/madara/rpc/struct.FullDeps.html @@ -1,17 +1,17 @@ -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>>,
     pub deny_unsafe: DenyUnsafe,
-    pub command_sink: Option<Sender<EngineCommand<Hash>>>,
-    pub starknet: StarknetDeps<C, G, Block>,
+    pub command_sink: Option<Sender<EngineCommand<Hash>>>,
+    pub starknet: StarknetDeps<C, G, Block>,
 }
Expand description

Full client dependencies.

Fields§

§client: Arc<C>

The client instance to use.

§pool: Arc<P>

Transaction pool instance.

§graph: Arc<Pool<A>>

Extrinsic pool graph instance.

§deny_unsafe: DenyUnsafe

Whether to deny unsafe calls

-
§command_sink: Option<Sender<EngineCommand<Hash>>>

Manual seal command sink

-
§starknet: StarknetDeps<C, G, Block>

Starknet dependencies

+
§command_sink: Option<Sender<EngineCommand<Hash>>>

Manual seal command sink

+
§starknet: StarknetDeps<C, G, Block>

Starknet dependencies

Auto Trait Implementations§

§

impl<A, C, G, P> !RefUnwindSafe for FullDeps<A, C, G, P>

§

impl<A, C, G, P> Send for FullDeps<A, C, G, P>where C: Send + Sync, G: Send + Sync, diff --git a/madara/service/fn.new_chain_ops.html b/madara/service/fn.new_chain_ops.html index bd9ccb1b2..a904b3f41 100644 --- a/madara/service/fn.new_chain_ops.html +++ b/madara/service/fn.new_chain_ops.html @@ -1,3 +1,3 @@ new_chain_ops in madara::service - Rust

Function madara::service::new_chain_ops

source ·
pub fn new_chain_ops(
     config: &mut Configuration
-) -> Result<(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, Arc<TFullBackend<Block>>, BasicQueue<Block>, TaskManager, Arc<Backend<Block>>), Error>
\ No newline at end of file +) -> Result<(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, Arc<TFullBackend<Block>>, BasicQueue<Block>, TaskManager, Arc<Backend<Block>>), Error>

\ No newline at end of file diff --git a/madara/service/fn.new_full.html b/madara/service/fn.new_full.html index 57317f1d0..3fa1ab20d 100644 --- a/madara/service/fn.new_full.html +++ b/madara/service/fn.new_full.html @@ -1,6 +1,6 @@ new_full in madara::service - Rust

Function madara::service::new_full

source ·
pub fn new_full(
     config: Configuration,
-    sealing: SealingMode
+    sealing: SealingMode
 ) -> Result<TaskManager, Error>
Expand description

Builds a new service for a full client.

Arguments

\ No newline at end of file diff --git a/madara/service/fn.run_manual_seal_authorship.html b/madara/service/fn.run_manual_seal_authorship.html index d3f13b950..a6e6781ad 100644 --- a/madara/service/fn.run_manual_seal_authorship.html +++ b/madara/service/fn.run_manual_seal_authorship.html @@ -1,12 +1,12 @@ run_manual_seal_authorship in madara::service - Rust
fn run_manual_seal_authorship(
-    sealing: SealingMode,
-    client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
-    transaction_pool: Arc<FullPool<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>>,
-    select_chain: LongestChain<TFullBackend<Block>, Block>,
-    block_import: BoxBlockImport<Block>,
+    sealing: SealingMode,
+    client: Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>,
+    transaction_pool: Arc<FullPool<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>>,
+    select_chain: LongestChain<TFullBackend<Block>, Block>,
+    block_import: BoxBlockImport<Block>,
     task_manager: &TaskManager,
     prometheus_registry: Option<&Registry>,
-    commands_stream: Option<Receiver<EngineCommand<Hash>>>,
+    commands_stream: Option<Receiver<EngineCommand<Hash>>>,
     telemetry: Option<Telemetry>
 ) -> Result<(), Error>where
-    RuntimeApi: ConstructRuntimeApi<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>> + Send + Sync + 'static,
\ No newline at end of file + RuntimeApi: ConstructRuntimeApi<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>> + Send + Sync + 'static,
\ No newline at end of file diff --git a/madara/service/type.BasicImportQueue.html b/madara/service/type.BasicImportQueue.html index 1bcceccfb..ce01110c5 100644 --- a/madara/service/type.BasicImportQueue.html +++ b/madara/service/type.BasicImportQueue.html @@ -1 +1 @@ -BasicImportQueue in madara::service - Rust

Type Definition madara::service::BasicImportQueue

source ·
pub(crate) type BasicImportQueue = DefaultImportQueue<Block>;
\ No newline at end of file +BasicImportQueue in madara::service - Rust

Type Definition madara::service::BasicImportQueue

source ·
pub(crate) type BasicImportQueue = DefaultImportQueue<Block>;
\ No newline at end of file diff --git a/madara/service/type.BoxBlockImport.html b/madara/service/type.BoxBlockImport.html index fa065e399..22ad02862 100644 --- a/madara/service/type.BoxBlockImport.html +++ b/madara/service/type.BoxBlockImport.html @@ -1 +1 @@ -BoxBlockImport in madara::service - Rust

Type Definition madara::service::BoxBlockImport

source ·
type BoxBlockImport = BoxBlockImport<Block>;
\ No newline at end of file +BoxBlockImport in madara::service - Rust

Type Definition madara::service::BoxBlockImport

source ·
type BoxBlockImport = BoxBlockImport<Block>;
\ No newline at end of file diff --git a/madara/service/type.ChainOpsResult.html b/madara/service/type.ChainOpsResult.html index 6b974ee24..55e82c085 100644 --- a/madara/service/type.ChainOpsResult.html +++ b/madara/service/type.ChainOpsResult.html @@ -1 +1 @@ -ChainOpsResult in madara::service - Rust

Type Definition madara::service::ChainOpsResult

source ·
type ChainOpsResult = Result<(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, Arc<TFullBackend<Block>>, BasicQueue<Block>, TaskManager, Arc<Backend<Block>>), Error>;
\ No newline at end of file +ChainOpsResult in madara::service - Rust

Type Definition madara::service::ChainOpsResult

source ·
type ChainOpsResult = Result<(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, Arc<TFullBackend<Block>>, BasicQueue<Block>, TaskManager, Arc<Backend<Block>>), Error>;
\ No newline at end of file diff --git a/madara/service/type.FullBackend.html b/madara/service/type.FullBackend.html index d8510d2e6..a54a486b4 100644 --- a/madara/service/type.FullBackend.html +++ b/madara/service/type.FullBackend.html @@ -1 +1 @@ -FullBackend in madara::service - Rust

Type Definition madara::service::FullBackend

source ·
pub(crate) type FullBackend = TFullBackend<Block>;
\ No newline at end of file +FullBackend in madara::service - Rust

Type Definition madara::service::FullBackend

source ·
pub(crate) type FullBackend = TFullBackend<Block>;
\ No newline at end of file diff --git a/madara/service/type.FullClient.html b/madara/service/type.FullClient.html index 46b67f106..aeb8a5be0 100644 --- a/madara/service/type.FullClient.html +++ b/madara/service/type.FullClient.html @@ -1 +1 @@ -FullClient in madara::service - Rust

Type Definition madara::service::FullClient

source ·
pub(crate) type FullClient = TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>;
\ No newline at end of file +FullClient in madara::service - Rust

Type Definition madara::service::FullClient

source ·
pub(crate) type FullClient = TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>;
\ No newline at end of file diff --git a/madara/service/type.FullSelectChain.html b/madara/service/type.FullSelectChain.html index d811c5c9d..387ef4fd6 100644 --- a/madara/service/type.FullSelectChain.html +++ b/madara/service/type.FullSelectChain.html @@ -1 +1 @@ -FullSelectChain in madara::service - Rust

Type Definition madara::service::FullSelectChain

source ·
pub(crate) type FullSelectChain = LongestChain<TFullBackend<Block>, Block>;
\ No newline at end of file +FullSelectChain in madara::service - Rust

Type Definition madara::service::FullSelectChain

source ·
pub(crate) type FullSelectChain = LongestChain<TFullBackend<Block>, Block>;
\ No newline at end of file diff --git a/madara/starknet/type.MadaraBackend.html b/madara/starknet/type.MadaraBackend.html index 0a7ba6d15..1e937b67c 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/struct.DefaultChainId.html b/madara_runtime/struct.DefaultChainId.html index aa9c2fb00..eb0b4b756 100644 --- a/madara_runtime/struct.DefaultChainId.html +++ b/madara_runtime/struct.DefaultChainId.html @@ -1,5 +1,5 @@ DefaultChainId in madara_runtime - 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/madara_runtime/struct.Runtime.html b/madara_runtime/struct.Runtime.html index 8b5bf5ce6..3c033b2e2 100644 --- a/madara_runtime/struct.Runtime.html +++ b/madara_runtime/struct.Runtime.html @@ -79,26 +79,26 @@
FRAME SYSTEM PALLET< externalities. Read more

source§

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

Decode the given public session keys. Read more
source§

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

source§

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

Returns a storage slot value
source§

fn call( +) -> Result<StarkFelt, SimulationError>

Returns a storage slot value
source§

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

Returns a Call response.
source§

fn nonce(address: ContractAddress) -> Nonce

Returns the nonce associated with the given address in the given block
source§

fn contract_class_hash_by_address(address: ContractAddress) -> ClassHash

Returns the contract class hash at the given address.
source§

fn contract_class_by_class_hash(class_hash: ClassHash) -> Option<ContractClass>

Returns the contract class for the given class hash.
source§

fn chain_id() -> Felt252Wrapper

Returns the chain id.
source§

fn program_hash() -> Felt252Wrapper

Returns the Starknet OS Cairo program hash.
source§

fn fee_token_addresses() -> FeeTokenAddresses

Returns the fee token address.
source§

fn is_transaction_fee_disabled() -> bool

Return is fee disabled in state
source§

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

Returns a Call response.
source§

fn nonce(address: ContractAddress) -> Nonce

Returns the nonce associated with the given address in the given block
source§

fn contract_class_hash_by_address(address: ContractAddress) -> ClassHash

Returns the contract class hash at the given address.
source§

fn contract_class_by_class_hash(class_hash: ClassHash) -> Option<ContractClass>

Returns the contract class for the given class hash.
source§

fn chain_id() -> Felt252Wrapper

Returns the chain id.
source§

fn program_hash() -> Felt252Wrapper

Returns the Starknet OS Cairo program hash.
source§

fn fee_token_addresses() -> FeeTokenAddresses

Returns the fee token address.
source§

fn is_transaction_fee_disabled() -> bool

Return is fee disabled in state
source§

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

Returns fee estimate
source§

fn re_execute_transactions( + simulation_flags: SimulationFlags +) -> Result<Result<Vec<(u128, u128)>, SimulationError>, InternalSubstrateError>

Returns fee estimate
source§

fn re_execute_transactions( transactions_before: Vec<Transaction>, transactions_to_trace: Vec<Transaction>, with_state_diff: bool -) -> Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, SimulationError>, InternalSubstrateError>

Used to re-execute transactions from a past block and return their trace Read more
source§

fn estimate_message_fee( +) -> Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, SimulationError>, InternalSubstrateError>

Used to re-execute transactions from a past block and return their trace Read more
source§

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

Returns message fee estimate
source§

fn simulate_transactions( +) -> Result<Result<(u128, u128, u128), SimulationError>, InternalSubstrateError>

Returns message fee estimate
source§

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

Simulates transactions and returns their trace
source§

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

Simulates transactions and returns their trace
source§

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

Simulates single L1 Message and returns its trace
source§

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

Filters extrinsic transactions to return only Starknet transactions Read more
source§

fn get_index_and_tx_for_tx_hash( + simulation_flags: SimulationFlags +) -> Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>

Simulates single L1 Message and returns its trace
source§

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

Filters extrinsic transactions to return only Starknet transactions Read more
source§

fn get_index_and_tx_for_tx_hash( extrinsics: Vec<<Block as BlockT>::Extrinsic>, tx_hash: TransactionHash ) -> Option<(u32, Transaction)>

source§

fn get_tx_messages_to_l1(tx_hash: TransactionHash) -> Vec<MessageToL1>

Return messages sent to L1 during tx execution
source§

fn get_events_for_tx_by_hash(tx_hash: TransactionHash) -> Vec<StarknetEvent>

source§

fn get_tx_execution_outcome(tx_hash: TransactionHash) -> Option<Vec<u8>>

Return the outcome of the tx execution
source§

fn get_block_context() -> BlockContext

Return the block context
source§

fn l1_nonce_unused(nonce: Nonce) -> bool

Check if L1 Message Nonce has not been used
source§

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

source§

fn validate_transaction( diff --git a/madara_runtime/struct.RuntimeApiImpl.html b/madara_runtime/struct.RuntimeApiImpl.html index ad1d8422e..011d6ebb9 100644 --- a/madara_runtime/struct.RuntimeApiImpl.html +++ b/madara_runtime/struct.RuntimeApiImpl.html @@ -72,17 +72,17 @@ __runtime_api_at_param__: <Block as Block>::Hash, block: Block, data: InherentData -) -> Result<CheckInherentsResult, ApiError>

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

impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> ConvertTransactionRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where +) -> Result<CheckInherentsResult, ApiError>

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

impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> ConvertTransactionRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send, AccountTransaction: UnwindSafe + RefUnwindSafe, UncheckedExtrinsic: UnwindSafe + RefUnwindSafe, L1HandlerTransaction: UnwindSafe + RefUnwindSafe, - __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,

source§

fn convert_account_transaction( + __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,

§

fn convert_account_transaction( &self, __runtime_api_at_param__: <Block as Block>::Hash, transaction: AccountTransaction -) -> Result<<Block as Block>::Extrinsic, ApiError>

Converts the transaction to an UncheckedExtrinsic for submission to the pool.
source§

fn convert_l1_transaction( +) -> Result<<Block as Block>::Extrinsic, ApiError>

Converts the transaction to an UncheckedExtrinsic for submission to the pool.
§

fn convert_l1_transaction( &self, __runtime_api_at_param__: <Block as Block>::Hash, transaction: L1HandlerTransaction @@ -192,30 +192,30 @@ &self, __runtime_api_at_param__: <Block as Block>::Hash, encoded: Vec<u8, Global> -) -> Result<Option<Vec<(Vec<u8, Global>, KeyTypeId), Global>>, ApiError>

Decode the given public session keys. Read more
source§

impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> StarknetRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where +) -> Result<Option<Vec<(Vec<u8, Global>, KeyTypeId), Global>>, ApiError>

Decode the given public session keys. Read more
source§

impl<__SrApiBlock__: BlockT + UnwindSafe + RefUnwindSafe, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> StarknetRuntimeApi<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send, ContractAddress: UnwindSafe + RefUnwindSafe, StorageKey: UnwindSafe + RefUnwindSafe, - Result<StarkFelt, SimulationError>: UnwindSafe + RefUnwindSafe, + Result<StarkFelt, SimulationError>: UnwindSafe + RefUnwindSafe, EntryPointSelector: UnwindSafe + RefUnwindSafe, Calldata: UnwindSafe + RefUnwindSafe, - Result<Vec<Felt252Wrapper>, SimulationError>: UnwindSafe + RefUnwindSafe, + Result<Vec<Felt252Wrapper>, SimulationError>: UnwindSafe + RefUnwindSafe, Nonce: UnwindSafe + RefUnwindSafe, ClassHash: UnwindSafe + RefUnwindSafe, Option<ContractClass>: UnwindSafe + RefUnwindSafe, - Felt252Wrapper: UnwindSafe + RefUnwindSafe, + Felt252Wrapper: UnwindSafe + RefUnwindSafe, FeeTokenAddresses: UnwindSafe + RefUnwindSafe, bool: UnwindSafe + RefUnwindSafe, Vec<AccountTransaction>: UnwindSafe + RefUnwindSafe, - SimulationFlags: UnwindSafe + RefUnwindSafe, - Result<Result<Vec<(u128, u128)>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe, + SimulationFlags: UnwindSafe + RefUnwindSafe, + Result<Result<Vec<(u128, u128)>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe, Vec<Transaction>: UnwindSafe + RefUnwindSafe, - Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe, + Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe, L1HandlerTransaction: UnwindSafe + RefUnwindSafe, - Result<Result<(u128, u128, u128), SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe, - Result<Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe, - Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe, + Result<Result<(u128, u128, u128), SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe, + Result<Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe, + Result<Result<TransactionExecutionInfo, SimulationError>, InternalSubstrateError>: UnwindSafe + RefUnwindSafe, Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe, TransactionHash: UnwindSafe + RefUnwindSafe, Option<(u32, Transaction)>: UnwindSafe + RefUnwindSafe, @@ -223,91 +223,91 @@ Vec<Event>: UnwindSafe + RefUnwindSafe, Option<Vec<u8>>: UnwindSafe + RefUnwindSafe, BlockContext: UnwindSafe + RefUnwindSafe, - __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,

source§

fn nonce( + __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,

§

fn nonce( &self, __runtime_api_at_param__: <Block as Block>::Hash, contract_address: ContractAddress -) -> Result<Nonce, ApiError>

Returns the nonce associated with the given address in the given block
source§

fn get_storage_at( +) -> Result<Nonce, ApiError>

Returns the nonce associated with the given address in the given block
§

fn get_storage_at( &self, __runtime_api_at_param__: <Block as Block>::Hash, address: ContractAddress, key: StorageKey -) -> Result<Result<StarkFelt, SimulationError>, ApiError>

Returns a storage slot value
source§

fn call( +) -> Result<Result<StarkFelt, SimulationError>, ApiError>

Returns a storage slot value
§

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

Returns a Call response.
source§

fn contract_class_hash_by_address( +) -> Result<Result<Vec<Felt252Wrapper, Global>, SimulationError>, ApiError>

Returns a Call response.
§

fn contract_class_hash_by_address( &self, __runtime_api_at_param__: <Block as Block>::Hash, address: ContractAddress -) -> Result<ClassHash, ApiError>

Returns the contract class hash at the given address.
source§

fn contract_class_by_class_hash( +) -> Result<ClassHash, ApiError>

Returns the contract class hash at the given address.
§

fn contract_class_by_class_hash( &self, __runtime_api_at_param__: <Block as Block>::Hash, class_hash: ClassHash -) -> Result<Option<ContractClass>, ApiError>

Returns the contract class for the given class hash.
source§

fn chain_id( +) -> Result<Option<ContractClass>, ApiError>

Returns the contract class for the given class hash.
§

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

Returns the chain id.
source§

fn program_hash( +) -> Result<Felt252Wrapper, ApiError>

Returns the chain id.
§

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

Returns the Starknet OS Cairo program hash.
source§

fn fee_token_addresses( +) -> Result<Felt252Wrapper, ApiError>

Returns the Starknet OS Cairo program hash.
§

fn fee_token_addresses( &self, __runtime_api_at_param__: <Block as Block>::Hash -) -> Result<FeeTokenAddresses, ApiError>

Returns the fee token address.
source§

fn estimate_fee( +) -> Result<FeeTokenAddresses, ApiError>

Returns the fee token address.
§

fn estimate_fee( &self, __runtime_api_at_param__: <Block as Block>::Hash, transactions: Vec<AccountTransaction, Global>, - simulation_flags: SimulationFlags -) -> Result<Result<Result<Vec<(u128, u128), Global>, SimulationError>, InternalSubstrateError>, ApiError>

Returns fee estimate
source§

fn estimate_message_fee( + simulation_flags: SimulationFlags +) -> Result<Result<Result<Vec<(u128, u128), Global>, SimulationError>, InternalSubstrateError>, ApiError>

Returns fee estimate
§

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

Returns message fee estimate
source§

fn simulate_message( +) -> Result<Result<Result<(u128, u128, u128), SimulationError>, InternalSubstrateError>, ApiError>

Returns message fee estimate
§

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

Simulates single L1 Message and returns its trace
source§

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

Simulates single L1 Message and returns its trace
§

fn simulate_transactions( &self, __runtime_api_at_param__: <Block as Block>::Hash, transactions: Vec<AccountTransaction, Global>, - simulation_flags: SimulationFlags -) -> Result<Result<Result<Vec<(CommitmentStateDiff, Result<TransactionExecutionInfo, SimulationError>), Global>, SimulationError>, InternalSubstrateError>, ApiError>

Simulates transactions and returns their trace
source§

fn extrinsic_filter( + simulation_flags: SimulationFlags +) -> Result<Result<Result<Vec<(CommitmentStateDiff, Result<TransactionExecutionInfo, SimulationError>), Global>, SimulationError>, InternalSubstrateError>, ApiError>

Simulates transactions and returns their trace
§

fn extrinsic_filter( &self, __runtime_api_at_param__: <Block as Block>::Hash, xts: Vec<<Block as Block>::Extrinsic, Global> -) -> Result<Vec<Transaction, Global>, ApiError>

Filters extrinsic transactions to return only Starknet transactions Read more
source§

fn re_execute_transactions( +) -> Result<Vec<Transaction, Global>, ApiError>

Filters extrinsic transactions to return only Starknet transactions Read more
§

fn re_execute_transactions( &self, __runtime_api_at_param__: <Block as Block>::Hash, transactions_before: Vec<Transaction, Global>, transactions_to_trace: Vec<Transaction, Global>, with_state_diff: bool -) -> Result<Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>), Global>, SimulationError>, InternalSubstrateError>, ApiError>

Used to re-execute transactions from a past block and return their trace Read more
source§

fn get_index_and_tx_for_tx_hash( +) -> Result<Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>), Global>, SimulationError>, InternalSubstrateError>, ApiError>

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

fn get_index_and_tx_for_tx_hash( &self, __runtime_api_at_param__: <Block as Block>::Hash, xts: Vec<<Block as Block>::Extrinsic, Global>, tx_hash: TransactionHash -) -> Result<Option<(u32, Transaction)>, ApiError>

source§

fn get_events_for_tx_by_hash( +) -> Result<Option<(u32, Transaction)>, ApiError>

§

fn get_events_for_tx_by_hash( &self, __runtime_api_at_param__: <Block as Block>::Hash, tx_hash: TransactionHash -) -> Result<Vec<Event, Global>, ApiError>

source§

fn get_tx_execution_outcome( +) -> Result<Vec<Event, Global>, ApiError>

§

fn get_tx_execution_outcome( &self, __runtime_api_at_param__: <Block as Block>::Hash, tx_hash: TransactionHash -) -> Result<Option<Vec<u8, Global>>, ApiError>

Return the outcome of the tx execution
source§

fn get_block_context( +) -> Result<Option<Vec<u8, Global>>, ApiError>

Return the outcome of the tx execution
§

fn get_block_context( &self, __runtime_api_at_param__: <Block as Block>::Hash -) -> Result<BlockContext, ApiError>

Return the block context
source§

fn is_transaction_fee_disabled( +) -> Result<BlockContext, ApiError>

Return the block context
§

fn is_transaction_fee_disabled( &self, __runtime_api_at_param__: <Block as Block>::Hash -) -> Result<bool, ApiError>

Return is fee disabled in state
source§

fn get_tx_messages_to_l1( +) -> Result<bool, ApiError>

Return is fee disabled in state
§

fn get_tx_messages_to_l1( &self, __runtime_api_at_param__: <Block as Block>::Hash, tx_hash: TransactionHash -) -> Result<Vec<MessageToL1, Global>, ApiError>

Return messages sent to L1 during tx execution
source§

fn l1_nonce_unused( +) -> Result<Vec<MessageToL1, Global>, ApiError>

Return messages sent to L1 during tx execution
§

fn l1_nonce_unused( &self, __runtime_api_at_param__: <Block as Block>::Hash, nonce: Nonce diff --git a/madara_runtime/type.StarknetHasher.html b/madara_runtime/type.StarknetHasher.html index 58130e264..ff77b5c81 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 216623af1..7b918d2d6 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_messages/error/enum.L1MessagesWorkerError.html b/mc_l1_messages/error/enum.L1MessagesWorkerError.html index 0984dc858..2e5745b87 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 955503df6..4116468b3 100644 --- a/mc_l1_messages/worker/fn.run_worker.html +++ b/mc_l1_messages/worker/fn.run_worker.html @@ -2,9 +2,9 @@ config: EthereumClientConfig, client: Arc<C>, pool: Arc<P>, - backend: Arc<Backend<B>> + backend: Arc<Backend<B>> )where B: BlockT, C: ProvideRuntimeApi<B> + HeaderBackend<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static,

\ No newline at end of file diff --git a/mc_l1_messages/worker/struct.EthereumClientConfig.html b/mc_l1_messages/worker/struct.EthereumClientConfig.html index deda2ce78..994b94c6a 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 6e9b95d4c..2e06bed8d 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.blockifier_to_rpc_contract_class_types.html b/mc_rpc/fn.blockifier_to_rpc_contract_class_types.html index 1fb5ef48f..5f7eb8af2 100644 --- a/mc_rpc/fn.blockifier_to_rpc_contract_class_types.html +++ b/mc_rpc/fn.blockifier_to_rpc_contract_class_types.html @@ -1,4 +1,4 @@ -blockifier_to_rpc_contract_class_types in mc_rpc - Rust
pub fn blockifier_to_rpc_contract_class_types(
+blockifier_to_rpc_contract_class_types in mc_rpc - Rust
pub fn blockifier_to_rpc_contract_class_types(
     contract_class: ContractClass
 ) -> Result<ContractClass, Error>
Expand description

Returns a [ContractClass] from a [BlockifierContractClass]

\ No newline at end of file diff --git a/mc_rpc/fn.blockifier_to_rpc_state_diff_types.html b/mc_rpc/fn.blockifier_to_rpc_state_diff_types.html index fd0326d36..3d11d711e 100644 --- a/mc_rpc/fn.blockifier_to_rpc_state_diff_types.html +++ b/mc_rpc/fn.blockifier_to_rpc_state_diff_types.html @@ -1,4 +1,4 @@ -blockifier_to_rpc_state_diff_types in mc_rpc - Rust
pub fn blockifier_to_rpc_state_diff_types(
+blockifier_to_rpc_state_diff_types in mc_rpc - Rust
pub fn blockifier_to_rpc_state_diff_types(
     commitment_state_diff: CommitmentStateDiff
 ) -> Result<StateDiff, Error>
Expand description

Returns a [StateDiff] from a [CommitmentStateDiff]

\ No newline at end of file diff --git a/mc_rpc/fn.flattened_sierra_to_casm_contract_class.html b/mc_rpc/fn.flattened_sierra_to_casm_contract_class.html index 4edb351a5..28a7d2eeb 100644 --- a/mc_rpc/fn.flattened_sierra_to_casm_contract_class.html +++ b/mc_rpc/fn.flattened_sierra_to_casm_contract_class.html @@ -1,4 +1,4 @@ -flattened_sierra_to_casm_contract_class in mc_rpc - Rust
pub fn flattened_sierra_to_casm_contract_class(
+flattened_sierra_to_casm_contract_class in mc_rpc - Rust
pub fn flattened_sierra_to_casm_contract_class(
     flattened_sierra: Arc<FlattenedSierraClass, Global>
 ) -> Result<CasmContractClass, StarknetSierraCompilationError>
Expand description

Converts a [FlattenedSierraClass] to a [CasmContractClass]

\ No newline at end of file diff --git a/mc_rpc/fn.flattened_sierra_to_sierra_contract_class.html b/mc_rpc/fn.flattened_sierra_to_sierra_contract_class.html index de3deb326..389c5da3d 100644 --- a/mc_rpc/fn.flattened_sierra_to_sierra_contract_class.html +++ b/mc_rpc/fn.flattened_sierra_to_sierra_contract_class.html @@ -1,3 +1,3 @@ -flattened_sierra_to_sierra_contract_class in mc_rpc - Rust
pub fn flattened_sierra_to_sierra_contract_class(
+flattened_sierra_to_sierra_contract_class in mc_rpc - Rust
pub fn flattened_sierra_to_sierra_contract_class(
     flattened_sierra: Arc<FlattenedSierraClass, Global>
 ) -> ContractClass
\ No newline at end of file diff --git a/mc_rpc/fn.get_block_by_block_hash.html b/mc_rpc/fn.get_block_by_block_hash.html index 54ce42172..add93de81 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>(
+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/fn.get_casm_cotract_class_hash.html b/mc_rpc/fn.get_casm_cotract_class_hash.html index 349fab6e8..e2cf74e54 100644 --- a/mc_rpc/fn.get_casm_cotract_class_hash.html +++ b/mc_rpc/fn.get_casm_cotract_class_hash.html @@ -1,3 +1,3 @@ -get_casm_cotract_class_hash in mc_rpc - Rust
pub fn get_casm_cotract_class_hash(
+get_casm_cotract_class_hash in mc_rpc - Rust
pub fn get_casm_cotract_class_hash(
     casm_contract_class: &CasmContractClass
 ) -> FieldElement
\ No newline at end of file diff --git a/mc_rpc/fn.to_rpc_state_diff.html b/mc_rpc/fn.to_rpc_state_diff.html index 43d60057c..e58bf5c5d 100644 --- a/mc_rpc/fn.to_rpc_state_diff.html +++ b/mc_rpc/fn.to_rpc_state_diff.html @@ -1,2 +1,2 @@ -to_rpc_state_diff in mc_rpc - Rust

Function mc_rpc::to_rpc_state_diff

source ·
pub fn to_rpc_state_diff(thin_state_diff: ThinStateDiff) -> StateDiff
Expand description

Returns a [StateDiff] from a [ThinStateDiff]

+to_rpc_state_diff in mc_rpc - Rust

Function mc_rpc::to_rpc_state_diff

pub fn to_rpc_state_diff(thin_state_diff: ThinStateDiff) -> StateDiff
Expand description

Returns a [StateDiff] from a [ThinStateDiff]

\ No newline at end of file diff --git a/mc_rpc/starknetrpcwrapper/struct.Felt.html b/mc_rpc/starknetrpcwrapper/struct.Felt.html index 8e8b059bf..9ead5c282 100644 --- a/mc_rpc/starknetrpcwrapper/struct.Felt.html +++ b/mc_rpc/starknetrpcwrapper/struct.Felt.html @@ -1,7 +1,7 @@ -Felt in mc_rpc::starknetrpcwrapper - Rust
pub struct Felt(pub FieldElement);

Tuple Fields§

§0: FieldElement

Trait Implementations§

source§

impl<'de> Deserialize<'de> for Felt

source§

fn deserialize<__D>( +Felt in mc_rpc::starknetrpcwrapper - Rust
pub struct Felt(pub FieldElement);

Tuple Fields§

§0: FieldElement

Trait Implementations§

§

impl<'de> Deserialize<'de> for Felt

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Felt, <__D as Deserializer<'de>>::Error>where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Felt

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for Felt

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where diff --git a/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html b/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html index e098c2043..fced5a0ee 100644 --- a/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html +++ b/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html @@ -1,10 +1,10 @@ -PredeployedAccountWithBalance in mc_rpc::starknetrpcwrapper - Rust
pub struct PredeployedAccountWithBalance {
-    pub account: PredeployedAccount,
+PredeployedAccountWithBalance in mc_rpc::starknetrpcwrapper - Rust
pub struct PredeployedAccountWithBalance {
+    pub account: PredeployedAccount,
     pub balance: FieldElement,
-}

Fields§

§account: PredeployedAccount§balance: FieldElement

Trait Implementations§

Fields§

§account: PredeployedAccount§balance: FieldElement

Trait Implementations§

§

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

§

fn deserialize<__D>( __deserializer: __D ) -> Result<PredeployedAccountWithBalance, <__D as Deserializer<'de>>::Error>where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for PredeployedAccountWithBalance

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for PredeployedAccountWithBalance

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where diff --git a/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html b/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html index 647b46a87..73a44e94b 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>>

§

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 @@ -407,15 +407,15 @@

Returns
Errors

The function may return a TXN_HASH_NOT_FOUND error if the specified transaction hash is not found.

-
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> StarknetTraceRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where +

§

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

source§

fn simulate_transactions<'life0, 'async_trait>( + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static,

source§

fn simulate_transactions<'life0, 'async_trait>( &'life0 self, block_id: BlockId, transactions: Vec<BroadcastedTransaction>, @@ -435,15 +435,15 @@

Errors
) -> Pin<Box<dyn Future<Output = RpcResult<TransactionTrace>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Returns the executions traces of a specified transaction in the given block

-
source§

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> StarknetWriteRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where +

§

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

source§

fn add_declare_transaction<'life0, 'async_trait>( + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static,

source§

fn add_declare_transaction<'life0, 'async_trait>( &'life0 self, declare_transaction: BroadcastedDeclareTransaction ) -> Pin<Box<dyn Future<Output = RpcResult<DeclareTransactionResult>> + Send + 'async_trait>>where @@ -486,7 +486,7 @@
Returns
  • transaction_hash - transaction hash corresponding to the invocation
  • contract_address - address of the deployed contract account
  • -

    source§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Auto Trait Implementations§

    §

    impl<A, B, BE, G, C, P, H> !RefUnwindSafe for StarknetRpcWrapper<A, B, BE, G, C, P, H>

    §

    impl<A, B, BE, G, C, P, H> Send for StarknetRpcWrapper<A, B, BE, G, C, P, H>where +

    §

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Auto Trait Implementations§

    §

    impl<A, B, BE, G, C, P, H> !RefUnwindSafe for StarknetRpcWrapper<A, B, BE, G, C, P, H>

    §

    impl<A, B, BE, G, C, P, H> Send for StarknetRpcWrapper<A, B, BE, G, C, P, H>where BE: Send + Sync, C: Send + Sync, G: Send + Sync, diff --git a/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html index 727dd1bd2..3a3289463 100644 --- a/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html @@ -1,4 +1,4 @@ -MadaraRpcApiServer in mc_rpc::starknetrpcwrapper - Rust
    pub trait MadaraRpcApiServer: Sized + Send + Sync + 'static {
    +MadaraRpcApiServer in mc_rpc::starknetrpcwrapper - Rust
    pub trait MadaraRpcApiServer: Sized + Send + Sync + 'static {
         // Required method
         fn predeployed_accounts(
             &self
    @@ -7,23 +7,23 @@
         // Provided method
         fn into_rpc(self) -> RpcModule<Self> { ... }
     }
    Expand description

    Server trait implementation for the MadaraRpcApi RPC API.

    -

    Required Methods§

    Required Methods§

    Provided Methods§

    source

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    +) -> Result<Vec<PredeployedAccountWithBalance, Global>, Error>

    Provided Methods§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Implementors§

    source§

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

    source§

    impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where + H: HasherT + Send + Sync + 'static,

    source§

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

    \ No newline at end of file + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html index 9eb89355d..b04b2c73e 100644 --- a/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html @@ -1,4 +1,4 @@ -StarknetReadRpcApiServer in mc_rpc::starknetrpcwrapper - Rust
    pub trait StarknetReadRpcApiServer: Sized + Send + Sync + 'static {
    +StarknetReadRpcApiServer in mc_rpc::starknetrpcwrapper - Rust
    pub trait StarknetReadRpcApiServer: Sized + Send + Sync + 'static {
     
    Show 23 methods // Required methods fn spec_version(&self) -> Result<String, Error>; fn block_number(&self) -> Result<u64, Error>; @@ -10,7 +10,7 @@ fn get_transaction_status( &self, transaction_hash: FieldElement - ) -> Result<TransactionStatus, Error>; + ) -> Result<TransactionStatus, Error>; fn get_storage_at( &self, contract_address: FieldElement, @@ -100,61 +100,61 @@ // Provided method fn into_rpc(self) -> RpcModule<Self> { ... }
    }
    Expand description

    Server trait implementation for the StarknetReadRpcApi RPC API.

    -

    Required Methods§

    source

    fn spec_version(&self) -> Result<String, Error>

    Get the Version of the StarkNet JSON-RPC Specification Being Used

    -
    source

    fn block_number(&self) -> Result<u64, Error>

    Get the most recent accepted block number

    -
    source

    fn block_hash_and_number(&self) -> Result<BlockHashAndNumber, Error>

    Get the most recent accepted block hash and number

    -
    source

    fn get_block_transaction_count(&self, block_id: BlockId) -> Result<u128, Error>

    Get the number of transactions in a block given a block id

    -
    source

    fn get_transaction_status( +

    Required Methods§

    fn spec_version(&self) -> Result<String, Error>

    Get the Version of the StarkNet JSON-RPC Specification Being Used

    +

    fn block_number(&self) -> Result<u64, Error>

    Get the most recent accepted block number

    +

    fn block_hash_and_number(&self) -> Result<BlockHashAndNumber, Error>

    Get the most recent accepted block hash and number

    +

    fn get_block_transaction_count(&self, block_id: BlockId) -> Result<u128, Error>

    Get the number of transactions in a block given a block id

    +

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

    Gets the Transaction Status, Including Mempool Status and Execution Details

    -
    source

    fn get_storage_at( +) -> Result<TransactionStatus, Error>

    Gets the Transaction Status, Including Mempool Status and Execution Details

    +

    fn get_storage_at( &self, contract_address: FieldElement, key: FieldElement, block_id: BlockId ) -> Result<Felt, Error>

    Get the value of the storage at the given address and key, at the given block id

    -
    source

    fn call( +

    fn call( &self, request: FunctionCall, block_id: BlockId ) -> Result<Vec<String, Global>, Error>

    Call a contract function at a given block id

    -
    source

    fn get_class_at( +

    fn get_class_at( &self, block_id: BlockId, contract_address: FieldElement ) -> Result<ContractClass, Error>

    Get the contract class at a given contract address for a given block id

    -
    source

    fn get_class_hash_at( +

    fn get_class_hash_at( &self, block_id: BlockId, contract_address: FieldElement ) -> Result<Felt, Error>

    Get the contract class hash in the given block for the contract deployed at the given address

    -
    source

    fn syncing<'life0, 'async_trait>( +

    fn syncing<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<SyncStatusType, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Get an object about the sync status, or false if the node is not syncing

    -
    source

    fn get_class( +

    fn get_class( &self, block_id: BlockId, class_hash: FieldElement ) -> Result<ContractClass, Error>

    Get the contract class definition in the given block associated with the given hash

    -
    source

    fn get_block_with_tx_hashes( +

    fn get_block_with_tx_hashes( &self, block_id: BlockId ) -> Result<MaybePendingBlockWithTxHashes, Error>

    Get block information with transaction hashes given the block id

    -
    source

    fn get_nonce( +

    fn get_nonce( &self, block_id: BlockId, contract_address: FieldElement ) -> Result<Felt, Error>

    Get the nonce associated with the given address at the given block

    -
    source

    fn get_block_with_txs( +

    fn get_block_with_txs( &self, block_id: BlockId ) -> Result<MaybePendingBlockWithTxs, Error>

    Get block information with full transactions given the block id

    -
    source

    fn chain_id(&self) -> Result<Felt, Error>

    Get the chain id

    -
    source

    fn estimate_fee<'life0, 'async_trait>( +

    fn chain_id(&self) -> Result<Felt, Error>

    Get the chain id

    +

    fn estimate_fee<'life0, 'async_trait>( &'life0 self, request: Vec<BroadcastedTransaction, Global>, simulation_flags: Vec<SimulationFlagForEstimateFee, Global>, @@ -162,53 +162,53 @@ ) -> Pin<Box<dyn Future<Output = Result<Vec<FeeEstimate, Global>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Estimate the fee associated with transaction

    -
    source

    fn estimate_message_fee<'life0, 'async_trait>( +

    fn estimate_message_fee<'life0, 'async_trait>( &'life0 self, message: MsgFromL1, block_id: BlockId ) -> Pin<Box<dyn Future<Output = Result<FeeEstimate, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Estimate the L2 fee of a message sent on L1

    -
    source

    fn get_transaction_by_block_id_and_index( +

    fn get_transaction_by_block_id_and_index( &self, block_id: BlockId, index: u64 ) -> Result<Transaction, Error>

    Get the details of a transaction by a given block id and index

    -
    source

    fn get_state_update( +

    fn get_state_update( &self, block_id: BlockId ) -> Result<MaybePendingStateUpdate, Error>

    Get the information about the result of executing the requested block

    -
    source

    fn get_events<'life0, 'async_trait>( +

    fn get_events<'life0, 'async_trait>( &'life0 self, filter: EventFilterWithPage ) -> Pin<Box<dyn Future<Output = Result<EventsPage, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Returns all events matching the given filter

    -
    source

    fn get_transaction_by_hash( +

    fn get_transaction_by_hash( &self, transaction_hash: FieldElement ) -> Result<Transaction, Error>

    Returns the information about a transaction by transaction hash.

    -
    source

    fn get_transaction_receipt<'life0, 'async_trait>( +

    fn get_transaction_receipt<'life0, 'async_trait>( &'life0 self, transaction_hash: FieldElement ) -> Pin<Box<dyn Future<Output = Result<MaybePendingTransactionReceipt, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Returns the receipt of a transaction by transaction hash.

    -

    Provided Methods§

    source

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    +

    Provided Methods§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Implementors§

    source§

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

    source§

    impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static,

    source§

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

    \ No newline at end of file + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html index 0033fc6aa..48cf17431 100644 --- a/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html @@ -1,4 +1,4 @@ -StarknetTraceRpcApiServer in mc_rpc::starknetrpcwrapper - Rust
    pub trait StarknetTraceRpcApiServer: Sized + Send + Sync + 'static {
    +StarknetTraceRpcApiServer in mc_rpc::starknetrpcwrapper - Rust
    pub trait StarknetTraceRpcApiServer: Sized + Send + Sync + 'static {
         // Required methods
         fn simulate_transactions<'life0, 'async_trait>(
             &'life0 self,
    @@ -24,7 +24,7 @@
         // Provided method
         fn into_rpc(self) -> RpcModule<Self> { ... }
     }
    Expand description

    Server trait implementation for the StarknetTraceRpcApi RPC API.

    -

    Required Methods§

    source

    fn simulate_transactions<'life0, 'async_trait>( +

    Required Methods§

    fn simulate_transactions<'life0, 'async_trait>( &'life0 self, block_id: BlockId, transactions: Vec<BroadcastedTransaction, Global>, @@ -32,33 +32,33 @@ ) -> Pin<Box<dyn Future<Output = Result<Vec<SimulatedTransaction, Global>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Returns the execution trace of a transaction by simulating it in the runtime.

    -
    source

    fn trace_block_transactions<'life0, 'async_trait>( +

    fn trace_block_transactions<'life0, 'async_trait>( &'life0 self, block_id: BlockId ) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionTraceWithHash, Global>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Returns the execution traces of all transactions included in the given block

    -
    source

    fn trace_transaction<'life0, 'async_trait>( +

    fn trace_transaction<'life0, 'async_trait>( &'life0 self, transaction_hash: FieldElement ) -> Pin<Box<dyn Future<Output = Result<TransactionTrace, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Returns the execution trace of a transaction

    -

    Provided Methods§

    source

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    +

    Provided Methods§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Implementors§

    source§

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

    source§

    impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where + H: HasherT + Send + Sync + 'static,

    source§

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

    \ No newline at end of file + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html index c21c53aca..32cedd0d0 100644 --- a/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html @@ -1,4 +1,4 @@ -StarknetWriteRpcApiServer in mc_rpc::starknetrpcwrapper - Rust
    pub trait StarknetWriteRpcApiServer: Sized + Send + Sync + 'static {
    +StarknetWriteRpcApiServer in mc_rpc::starknetrpcwrapper - Rust
    pub trait StarknetWriteRpcApiServer: Sized + Send + Sync + 'static {
         // Required methods
         fn add_invoke_transaction<'life0, 'async_trait>(
             &'life0 self,
    @@ -22,39 +22,39 @@
         // Provided method
         fn into_rpc(self) -> RpcModule<Self> { ... }
     }
    Expand description

    Server trait implementation for the StarknetWriteRpcApi RPC API.

    -

    Required Methods§

    source

    fn add_invoke_transaction<'life0, 'async_trait>( +

    Required Methods§

    fn add_invoke_transaction<'life0, 'async_trait>( &'life0 self, invoke_transaction: BroadcastedInvokeTransaction ) -> Pin<Box<dyn Future<Output = Result<InvokeTransactionResult, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Submit a new transaction to be added to the chain

    -
    source

    fn add_deploy_account_transaction<'life0, 'async_trait>( +

    fn add_deploy_account_transaction<'life0, 'async_trait>( &'life0 self, deploy_account_transaction: BroadcastedDeployAccountTransaction ) -> Pin<Box<dyn Future<Output = Result<DeployAccountTransactionResult, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Submit a new class declaration transaction

    -
    source

    fn add_declare_transaction<'life0, 'async_trait>( +

    fn add_declare_transaction<'life0, 'async_trait>( &'life0 self, declare_transaction: BroadcastedDeclareTransaction ) -> Pin<Box<dyn Future<Output = Result<DeclareTransactionResult, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Submit a new deploy account transaction

    -

    Provided Methods§

    source

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    +

    Provided Methods§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Implementors§

    source§

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

    source§

    impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer for StarknetRpcWrapper<A, B, BE, G, C, P, H>where + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static,

    source§

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

    \ No newline at end of file + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc/struct.Felt.html b/mc_rpc/struct.Felt.html index 507d9b0d5..8ef4e3de5 100644 --- a/mc_rpc/struct.Felt.html +++ b/mc_rpc/struct.Felt.html @@ -1,7 +1,7 @@ -Felt in mc_rpc - Rust

    Struct mc_rpc::Felt

    source ·
    pub struct Felt(pub FieldElement);

    Tuple Fields§

    §0: FieldElement

    Trait Implementations§

    source§

    impl<'de> Deserialize<'de> for Felt

    source§

    fn deserialize<__D>( +Felt in mc_rpc - Rust

    Struct mc_rpc::Felt

    pub struct Felt(pub FieldElement);

    Tuple Fields§

    §0: FieldElement

    Trait Implementations§

    §

    impl<'de> Deserialize<'de> for Felt

    §

    fn deserialize<__D>( __deserializer: __D ) -> Result<Felt, <__D as Deserializer<'de>>::Error>where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for Felt

    source§

    fn serialize<__S>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl Serialize for Felt

    §

    fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where diff --git a/mc_rpc/struct.PredeployedAccountWithBalance.html b/mc_rpc/struct.PredeployedAccountWithBalance.html index 82d16a6ba..6e7b61f5c 100644 --- a/mc_rpc/struct.PredeployedAccountWithBalance.html +++ b/mc_rpc/struct.PredeployedAccountWithBalance.html @@ -1,10 +1,10 @@ -PredeployedAccountWithBalance in mc_rpc - Rust
    pub struct PredeployedAccountWithBalance {
    -    pub account: PredeployedAccount,
    +PredeployedAccountWithBalance in mc_rpc - Rust
    pub struct PredeployedAccountWithBalance {
    +    pub account: PredeployedAccount,
         pub balance: FieldElement,
    -}

    Fields§

    §account: PredeployedAccount§balance: FieldElement

    Trait Implementations§

    Fields§

    §account: PredeployedAccount§balance: FieldElement

    Trait Implementations§

    §

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

    §

    fn deserialize<__D>( __deserializer: __D ) -> Result<PredeployedAccountWithBalance, <__D as Deserializer<'de>>::Error>where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Serialize for PredeployedAccountWithBalance

    source§

    fn serialize<__S>( + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl Serialize for PredeployedAccountWithBalance

    §

    fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where diff --git a/mc_rpc/struct.Starknet.html b/mc_rpc/struct.Starknet.html index 356fcbf18..7871365ff 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<(u128, u128)>, 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>, @@ -97,8 +97,8 @@

    Returns
    ) -> RpcResult<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>>
    source§

    impl<A: ChainApi, B: BlockT, BE, G, C, P, H> Starknet<A, B, BE, G, C, P, H>

    Constructor for A Starknet RPC server for Madara

    Arguments

    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>>, @@ -111,24 +111,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>>

    §

    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
    @@ -169,7 +169,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 @@ -521,15 +521,15 @@

    Returns
    Errors

    The function may return a TXN_HASH_NOT_FOUND error if the specified transaction hash is not found.

    -
    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> StarknetTraceRpcApiServer for Starknet<A, B, BE, G, C, P, H>where +

    §

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

    source§

    fn simulate_transactions<'life0, 'async_trait>( + H: HasherT + Send + Sync + 'static,

    source§

    fn simulate_transactions<'life0, 'async_trait>( &'life0 self, block_id: BlockId, transactions: Vec<BroadcastedTransaction>, @@ -546,15 +546,15 @@

    Errors
    transaction_hash: FieldElement ) -> Pin<Box<dyn Future<Output = RpcResult<TransactionTrace>> + Send + 'async_trait>>where Self: 'async_trait, - 'life0: 'async_trait,
    Returns the execution trace of a transaction
    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> StarknetWriteRpcApiServer for Starknet<A, B, BE, G, C, P, H>where + 'life0: 'async_trait,

    Returns the execution trace of a transaction
    §

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

    source§

    fn add_declare_transaction<'life0, 'async_trait>( + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static,

    source§

    fn add_declare_transaction<'life0, 'async_trait>( &'life0 self, declare_transaction: BroadcastedDeclareTransaction ) -> Pin<Box<dyn Future<Output = RpcResult<DeclareTransactionResult>> + Send + 'async_trait>>where @@ -597,7 +597,7 @@
    Returns
  • transaction_hash - transaction hash corresponding to the invocation
  • contract_address - address of the deployed contract account
  • -

    source§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Auto Trait Implementations§

    §

    impl<A, B, BE, G, C, P, H> !RefUnwindSafe for Starknet<A, B, BE, G, C, P, H>

    §

    impl<A, B, BE, G, C, P, H> Send for Starknet<A, B, BE, G, C, P, H>where +

    §

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Auto Trait Implementations§

    §

    impl<A, B, BE, G, C, P, H> !RefUnwindSafe for Starknet<A, B, BE, G, C, P, H>

    §

    impl<A, B, BE, G, C, P, H> Send for Starknet<A, B, BE, G, C, P, H>where BE: Send, C: Send + Sync, G: Send + Sync, diff --git a/mc_rpc/trait.MadaraRpcApiServer.html b/mc_rpc/trait.MadaraRpcApiServer.html index 02dd838de..abb6f330c 100644 --- a/mc_rpc/trait.MadaraRpcApiServer.html +++ b/mc_rpc/trait.MadaraRpcApiServer.html @@ -1,4 +1,4 @@ -MadaraRpcApiServer in mc_rpc - Rust
    pub trait MadaraRpcApiServer: Sized + Send + Sync + 'static {
    +MadaraRpcApiServer in mc_rpc - Rust
    pub trait MadaraRpcApiServer: Sized + Send + Sync + 'static {
         // Required method
         fn predeployed_accounts(
             &self
    @@ -7,23 +7,23 @@
         // Provided method
         fn into_rpc(self) -> RpcModule<Self> { ... }
     }
    Expand description

    Server trait implementation for the MadaraRpcApi RPC API.

    -

    Required Methods§

    Required Methods§

    Provided Methods§

    source

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    +) -> Result<Vec<PredeployedAccountWithBalance, Global>, Error>

    Provided Methods§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Implementors§

    source§

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

    source§

    impl<A, B, BE, G, C, P, H> MadaraRpcApiServer for Starknet<A, B, BE, G, C, P, H>where + H: HasherT + Send + Sync + 'static,

    source§

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

    \ No newline at end of file + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc/trait.StarknetReadRpcApiServer.html b/mc_rpc/trait.StarknetReadRpcApiServer.html index 78e891581..bcc50965e 100644 --- a/mc_rpc/trait.StarknetReadRpcApiServer.html +++ b/mc_rpc/trait.StarknetReadRpcApiServer.html @@ -1,4 +1,4 @@ -StarknetReadRpcApiServer in mc_rpc - Rust
    pub trait StarknetReadRpcApiServer: Sized + Send + Sync + 'static {
    +StarknetReadRpcApiServer in mc_rpc - Rust
    pub trait StarknetReadRpcApiServer: Sized + Send + Sync + 'static {
     
    Show 23 methods // Required methods fn spec_version(&self) -> Result<String, Error>; fn block_number(&self) -> Result<u64, Error>; @@ -10,7 +10,7 @@ fn get_transaction_status( &self, transaction_hash: FieldElement - ) -> Result<TransactionStatus, Error>; + ) -> Result<TransactionStatus, Error>; fn get_storage_at( &self, contract_address: FieldElement, @@ -100,61 +100,61 @@ // Provided method fn into_rpc(self) -> RpcModule<Self> { ... }
    }
    Expand description

    Server trait implementation for the StarknetReadRpcApi RPC API.

    -

    Required Methods§

    source

    fn spec_version(&self) -> Result<String, Error>

    Get the Version of the StarkNet JSON-RPC Specification Being Used

    -
    source

    fn block_number(&self) -> Result<u64, Error>

    Get the most recent accepted block number

    -
    source

    fn block_hash_and_number(&self) -> Result<BlockHashAndNumber, Error>

    Get the most recent accepted block hash and number

    -
    source

    fn get_block_transaction_count(&self, block_id: BlockId) -> Result<u128, Error>

    Get the number of transactions in a block given a block id

    -
    source

    fn get_transaction_status( +

    Required Methods§

    fn spec_version(&self) -> Result<String, Error>

    Get the Version of the StarkNet JSON-RPC Specification Being Used

    +

    fn block_number(&self) -> Result<u64, Error>

    Get the most recent accepted block number

    +

    fn block_hash_and_number(&self) -> Result<BlockHashAndNumber, Error>

    Get the most recent accepted block hash and number

    +

    fn get_block_transaction_count(&self, block_id: BlockId) -> Result<u128, Error>

    Get the number of transactions in a block given a block id

    +

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

    Gets the Transaction Status, Including Mempool Status and Execution Details

    -
    source

    fn get_storage_at( +) -> Result<TransactionStatus, Error>

    Gets the Transaction Status, Including Mempool Status and Execution Details

    +

    fn get_storage_at( &self, contract_address: FieldElement, key: FieldElement, block_id: BlockId ) -> Result<Felt, Error>

    Get the value of the storage at the given address and key, at the given block id

    -
    source

    fn call( +

    fn call( &self, request: FunctionCall, block_id: BlockId ) -> Result<Vec<String, Global>, Error>

    Call a contract function at a given block id

    -
    source

    fn get_class_at( +

    fn get_class_at( &self, block_id: BlockId, contract_address: FieldElement ) -> Result<ContractClass, Error>

    Get the contract class at a given contract address for a given block id

    -
    source

    fn get_class_hash_at( +

    fn get_class_hash_at( &self, block_id: BlockId, contract_address: FieldElement ) -> Result<Felt, Error>

    Get the contract class hash in the given block for the contract deployed at the given address

    -
    source

    fn syncing<'life0, 'async_trait>( +

    fn syncing<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<SyncStatusType, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Get an object about the sync status, or false if the node is not syncing

    -
    source

    fn get_class( +

    fn get_class( &self, block_id: BlockId, class_hash: FieldElement ) -> Result<ContractClass, Error>

    Get the contract class definition in the given block associated with the given hash

    -
    source

    fn get_block_with_tx_hashes( +

    fn get_block_with_tx_hashes( &self, block_id: BlockId ) -> Result<MaybePendingBlockWithTxHashes, Error>

    Get block information with transaction hashes given the block id

    -
    source

    fn get_nonce( +

    fn get_nonce( &self, block_id: BlockId, contract_address: FieldElement ) -> Result<Felt, Error>

    Get the nonce associated with the given address at the given block

    -
    source

    fn get_block_with_txs( +

    fn get_block_with_txs( &self, block_id: BlockId ) -> Result<MaybePendingBlockWithTxs, Error>

    Get block information with full transactions given the block id

    -
    source

    fn chain_id(&self) -> Result<Felt, Error>

    Get the chain id

    -
    source

    fn estimate_fee<'life0, 'async_trait>( +

    fn chain_id(&self) -> Result<Felt, Error>

    Get the chain id

    +

    fn estimate_fee<'life0, 'async_trait>( &'life0 self, request: Vec<BroadcastedTransaction, Global>, simulation_flags: Vec<SimulationFlagForEstimateFee, Global>, @@ -162,53 +162,53 @@ ) -> Pin<Box<dyn Future<Output = Result<Vec<FeeEstimate, Global>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Estimate the fee associated with transaction

    -
    source

    fn estimate_message_fee<'life0, 'async_trait>( +

    fn estimate_message_fee<'life0, 'async_trait>( &'life0 self, message: MsgFromL1, block_id: BlockId ) -> Pin<Box<dyn Future<Output = Result<FeeEstimate, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Estimate the L2 fee of a message sent on L1

    -
    source

    fn get_transaction_by_block_id_and_index( +

    fn get_transaction_by_block_id_and_index( &self, block_id: BlockId, index: u64 ) -> Result<Transaction, Error>

    Get the details of a transaction by a given block id and index

    -
    source

    fn get_state_update( +

    fn get_state_update( &self, block_id: BlockId ) -> Result<MaybePendingStateUpdate, Error>

    Get the information about the result of executing the requested block

    -
    source

    fn get_events<'life0, 'async_trait>( +

    fn get_events<'life0, 'async_trait>( &'life0 self, filter: EventFilterWithPage ) -> Pin<Box<dyn Future<Output = Result<EventsPage, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Returns all events matching the given filter

    -
    source

    fn get_transaction_by_hash( +

    fn get_transaction_by_hash( &self, transaction_hash: FieldElement ) -> Result<Transaction, Error>

    Returns the information about a transaction by transaction hash.

    -
    source

    fn get_transaction_receipt<'life0, 'async_trait>( +

    fn get_transaction_receipt<'life0, 'async_trait>( &'life0 self, transaction_hash: FieldElement ) -> Pin<Box<dyn Future<Output = Result<MaybePendingTransactionReceipt, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Returns the receipt of a transaction by transaction hash.

    -

    Provided Methods§

    source

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    +

    Provided Methods§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Implementors§

    source§

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

    source§

    impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static,

    source§

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

    \ No newline at end of file + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc/trait.StarknetTraceRpcApiServer.html b/mc_rpc/trait.StarknetTraceRpcApiServer.html index 84e00be89..52b2a3d2b 100644 --- a/mc_rpc/trait.StarknetTraceRpcApiServer.html +++ b/mc_rpc/trait.StarknetTraceRpcApiServer.html @@ -1,4 +1,4 @@ -StarknetTraceRpcApiServer in mc_rpc - Rust
    pub trait StarknetTraceRpcApiServer: Sized + Send + Sync + 'static {
    +StarknetTraceRpcApiServer in mc_rpc - Rust
    pub trait StarknetTraceRpcApiServer: Sized + Send + Sync + 'static {
         // Required methods
         fn simulate_transactions<'life0, 'async_trait>(
             &'life0 self,
    @@ -24,7 +24,7 @@
         // Provided method
         fn into_rpc(self) -> RpcModule<Self> { ... }
     }
    Expand description

    Server trait implementation for the StarknetTraceRpcApi RPC API.

    -

    Required Methods§

    source

    fn simulate_transactions<'life0, 'async_trait>( +

    Required Methods§

    fn simulate_transactions<'life0, 'async_trait>( &'life0 self, block_id: BlockId, transactions: Vec<BroadcastedTransaction, Global>, @@ -32,33 +32,33 @@ ) -> Pin<Box<dyn Future<Output = Result<Vec<SimulatedTransaction, Global>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Returns the execution trace of a transaction by simulating it in the runtime.

    -
    source

    fn trace_block_transactions<'life0, 'async_trait>( +

    fn trace_block_transactions<'life0, 'async_trait>( &'life0 self, block_id: BlockId ) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionTraceWithHash, Global>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Returns the execution traces of all transactions included in the given block

    -
    source

    fn trace_transaction<'life0, 'async_trait>( +

    fn trace_transaction<'life0, 'async_trait>( &'life0 self, transaction_hash: FieldElement ) -> Pin<Box<dyn Future<Output = Result<TransactionTrace, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Returns the execution trace of a transaction

    -

    Provided Methods§

    source

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    +

    Provided Methods§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Implementors§

    source§

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

    source§

    impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for Starknet<A, B, BE, G, C, P, H>where + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static,

    source§

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

    \ No newline at end of file + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc/trait.StarknetWriteRpcApiServer.html b/mc_rpc/trait.StarknetWriteRpcApiServer.html index 1a55cca0f..d8adcadda 100644 --- a/mc_rpc/trait.StarknetWriteRpcApiServer.html +++ b/mc_rpc/trait.StarknetWriteRpcApiServer.html @@ -1,4 +1,4 @@ -StarknetWriteRpcApiServer in mc_rpc - Rust
    pub trait StarknetWriteRpcApiServer: Sized + Send + Sync + 'static {
    +StarknetWriteRpcApiServer in mc_rpc - Rust
    pub trait StarknetWriteRpcApiServer: Sized + Send + Sync + 'static {
         // Required methods
         fn add_invoke_transaction<'life0, 'async_trait>(
             &'life0 self,
    @@ -22,39 +22,39 @@
         // Provided method
         fn into_rpc(self) -> RpcModule<Self> { ... }
     }
    Expand description

    Server trait implementation for the StarknetWriteRpcApi RPC API.

    -

    Required Methods§

    source

    fn add_invoke_transaction<'life0, 'async_trait>( +

    Required Methods§

    fn add_invoke_transaction<'life0, 'async_trait>( &'life0 self, invoke_transaction: BroadcastedInvokeTransaction ) -> Pin<Box<dyn Future<Output = Result<InvokeTransactionResult, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Submit a new transaction to be added to the chain

    -
    source

    fn add_deploy_account_transaction<'life0, 'async_trait>( +

    fn add_deploy_account_transaction<'life0, 'async_trait>( &'life0 self, deploy_account_transaction: BroadcastedDeployAccountTransaction ) -> Pin<Box<dyn Future<Output = Result<DeployAccountTransactionResult, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Submit a new class declaration transaction

    -
    source

    fn add_declare_transaction<'life0, 'async_trait>( +

    fn add_declare_transaction<'life0, 'async_trait>( &'life0 self, declare_transaction: BroadcastedDeclareTransaction ) -> Pin<Box<dyn Future<Output = Result<DeclareTransactionResult, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Self: 'async_trait,

    Submit a new deploy account transaction

    -

    Provided Methods§

    source

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    +

    Provided Methods§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    Implementors§

    source§

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

    source§

    impl<A, B, BE, G, C, P, H> StarknetWriteRpcApiServer for Starknet<A, B, BE, G, C, P, H>where + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static,

    source§

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

    \ No newline at end of file + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + G: GenesisProvider + Send + Sync + 'static, + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc_core/struct.PredeployedAccountWithBalance.html b/mc_rpc_core/struct.PredeployedAccountWithBalance.html index bae07b055..a2860158c 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 133d948a9..1c91e706d 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 c7e80cb8a..9fe27f59a 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 4803a874b..2e1644119 100644 --- a/mc_starknet_block_import/struct.StarknetBlockImport.html +++ b/mc_starknet_block_import/struct.StarknetBlockImport.html @@ -1,35 +1,35 @@ -StarknetBlockImport in mc_starknet_block_import - Rust
    pub struct StarknetBlockImport<I: Clone, C: ProvideRuntimeApi<Block>> { /* private fields */ }

    Implementations§

    source§

    impl<I, C> StarknetBlockImport<I, C>where - I: BlockImport<Block> + Send + Sync + Clone, - C: ProvideRuntimeApi<Block> + Send,

    source

    pub fn new( +StarknetBlockImport in mc_starknet_block_import - Rust
    pub struct StarknetBlockImport<I: Clone, C: ProvideRuntimeApi<Block>> { /* private fields */ }

    Implementations§

    source§

    impl<I, C> StarknetBlockImport<I, C>where + I: BlockImport<Block> + Send + Sync + Clone, + C: ProvideRuntimeApi<Block> + Send,

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

    Check block preconditions.
    source§

    fn import_block<'life0, 'async_trait>( &'life0 mut self, - block: BlockImportParams<Block> + block: BlockImportParams<Block> ) -> Pin<Box<dyn Future<Output = Result<ImportResult, Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

    Import a block.
    source§

    impl<I, C> Clone for StarknetBlockImport<I, C>where - I: BlockImport<Block> + Send + Clone, - C: ProvideRuntimeApi<Block> + Send,

    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<I, C> JustificationImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>> for StarknetBlockImport<I, C>where - I: JustificationImport<Block> + Send + Clone, - C: ProvideRuntimeApi<Block> + Send + Sync,

    §

    type Error = <I as JustificationImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>>::Error

    source§

    fn on_start<'life0, 'async_trait>( + I: BlockImport<Block> + Send + Clone, + C: ProvideRuntimeApi<Block> + Send,

    source§

    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<I, C> JustificationImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>> for StarknetBlockImport<I, C>where + I: JustificationImport<Block> + Send + Clone, + C: ProvideRuntimeApi<Block> + Send + Sync,

    §

    type Error = <I as JustificationImport<Block<Header<u32, BlakeTwo256>, OpaqueExtrinsic>>>::Error

    source§

    fn on_start<'life0, 'async_trait>( &'life0 mut self -) -> Pin<Box<dyn Future<Output = Vec<(Hash, NumberFor<Block>)>> + Send + 'async_trait>>where +) -> Pin<Box<dyn Future<Output = Vec<(Hash, NumberFor<Block>)>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

    Called by the import queue when it is started. Returns a list of justifications to request from the network.
    source§

    fn import_justification<'life0, 'async_trait>( &'life0 mut self, - hash: Hash, - number: NumberFor<Block>, + hash: Hash, + number: NumberFor<Block>, justification: Justification ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where Self: 'async_trait, diff --git a/mc_storage/fn.onchain_storage_schema.html b/mc_storage/fn.onchain_storage_schema.html index 256c40b94..4106c98ba 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 d7a4fde96..258b9465f 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 4adf39fc8..bea4ef231 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 3d98cc810..d57deff8a 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 8f3269db7..899b8872a 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 d24331ef0..c74caa856 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 63b7a6c56..b08a7b66b 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 67d1f70d5..2a2576738 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/mp_program_hash/constant.SN_OS_PROGRAM_HASH.html b/mp_program_hash/constant.SN_OS_PROGRAM_HASH.html index bbcb68a1b..e7d276768 100644 --- a/mp_program_hash/constant.SN_OS_PROGRAM_HASH.html +++ b/mp_program_hash/constant.SN_OS_PROGRAM_HASH.html @@ -1,4 +1,4 @@ -SN_OS_PROGRAM_HASH in mp_program_hash - Rust
    pub const SN_OS_PROGRAM_HASH: Felt252Wrapper;
    Expand description

    ProgramHash for Starknet OS Cairo program

    +SN_OS_PROGRAM_HASH in mp_program_hash - Rust
    pub const SN_OS_PROGRAM_HASH: Felt252Wrapper;
    Expand description

    ProgramHash for Starknet OS Cairo program

    How to calculate: 1. Get Starknet OS program sources (e.g. check keep-starknet-strange/snos) 2. Install Cairo-lang and run cairo-hash-program --program <cairo-output>.json diff --git a/pallet_starknet/blockifier_state_adapter/struct.BlockifierStateAdapter.html b/pallet_starknet/blockifier_state_adapter/struct.BlockifierStateAdapter.html index 882d877e4..59b5e2f6e 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 9a6f29b6e..aaa220b22 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 8bf19002e..226452b8b 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 6715b6c94..e27cf4dea 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 a81eef241..5a091441c 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/pallet/struct.DefaultChainId.html b/pallet_starknet/pallet/struct.DefaultChainId.html index 6477c9c66..90e76c8f8 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 5e7d0eb67..81805a7ad 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 58c70e8b3..bebe4fba9 100644 --- a/pallet_starknet/pallet/struct.Pallet.html +++ b/pallet_starknet/pallet/struct.Pallet.html @@ -2,20 +2,20 @@ 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<(u128, u128)>, SimulationError>, InternalSubstrateError>

    source

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

    source

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

    source

    pub fn simulate_message( + simulation_flags: &SimulationFlags +) -> Result<Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, SimulationError>, 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<(u128, u128, u128), SimulationError>, InternalSubstrateError>

    source

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

    source

    pub fn re_execute_transactions( transactions_before: Vec<Transaction>, transactions_to_trace: Vec<Transaction>, with_state_diff: bool -) -> Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, SimulationError>, InternalSubstrateError>

    source§

    impl<T: Config> Pallet<T>

    source

    pub fn pre_validate_unsigned_tx( +) -> Result<Result<Vec<(TransactionExecutionInfo, Option<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 @@ -103,11 +103,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.

    @@ -126,13 +126,13 @@
    TODO
    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 seq_addr_update() -> bool

    An auto-generated getter for SeqAddrUpdate.

    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>

    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 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.
    • @@ -148,16 +148,16 @@
      Returns
      address: ContractAddress, function_selector: EntryPointSelector, calldata: Calldata -) -> Result<Vec<Felt252Wrapper>, SimulationError>

      Call a smart contract function.

      +) -> 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

    +) -> 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 = 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 = 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( diff --git a/pallet_starknet/pallet/trait.Config.html b/pallet_starknet/pallet/trait.Config.html index 2e2e4c491..8b36cb4a9 100644 --- a/pallet_starknet/pallet/trait.Config.html +++ b/pallet_starknet/pallet/trait.Config.html @@ -6,7 +6,7 @@ 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 @@ -26,4 +26,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 199a98b47..825c08747 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/types/struct.DeployAccountTransactionOutput.html b/pallet_starknet/types/struct.DeployAccountTransactionOutput.html index 1c8785655..f229fa602 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 ccda04c99..ce173c4a5 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 44d8b8747..a84e87158 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<(u128, u128)>, SimulationError>, InternalSubstrateError>, ApiError> { ... } + simulation_flags: SimulationFlags + ) -> Result<Result<Result<Vec<(u128, u128)>, SimulationError>, InternalSubstrateError>, ApiError> { ... } fn estimate_message_fee( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, message: L1HandlerTransaction - ) -> Result<Result<Result<(u128, u128, u128), SimulationError>, InternalSubstrateError>, ApiError> { ... } + ) -> Result<Result<Result<(u128, u128, u128), 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<Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, SimulationError>, InternalSubstrateError>, ApiError> { ... } + simulation_flags: SimulationFlags + ) -> Result<Result<Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, SimulationError>, InternalSubstrateError>, ApiError> { ... } fn extrinsic_filter( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -74,7 +74,7 @@ transactions_before: Vec<Transaction>, transactions_to_trace: Vec<Transaction>, with_state_diff: bool - ) -> Result<Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, SimulationError>, InternalSubstrateError>, ApiError> { ... } + ) -> Result<Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, SimulationError>, InternalSubstrateError>, ApiError> { ... } fn get_index_and_tx_for_tx_hash( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -119,14 +119,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, @@ -140,11 +140,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 @@ -153,25 +153,25 @@ &self, __runtime_api_at_param__: <Block as BlockT>::Hash, transactions: Vec<AccountTransaction>, - simulation_flags: SimulationFlags -) -> Result<Result<Result<Vec<(u128, u128)>, SimulationError>, InternalSubstrateError>, ApiError>

    Returns fee estimate

    + simulation_flags: SimulationFlags +) -> Result<Result<Result<Vec<(u128, u128)>, 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<(u128, u128, u128), SimulationError>, InternalSubstrateError>, ApiError>

    Returns message fee estimate

    +) -> Result<Result<Result<(u128, u128, u128), 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<Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, SimulationError>, InternalSubstrateError>, ApiError>

    Simulates transactions and returns their trace

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

    Simulates transactions and returns their trace

    source

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

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

    +) -> Result<Result<Result<Vec<(TransactionExecutionInfo, Option<CommitmentStateDiff>)>, SimulationError>, 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
    • diff --git a/settings.html b/settings.html index 1a4e65f46..619b3c8e0 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