From fbf823b356bb384e0273f17387b581c62d188eaf Mon Sep 17 00:00:00 2001 From: apoorvsadana Date: Fri, 12 Apr 2024 12:29:06 +0000 Subject: [PATCH] deploy: bcc3f068c1fb9851802164bcd173fe342d799bbb --- help.html | 2 +- implementors/bounded_collections/trait.Get.js | 2 +- implementors/core/convert/trait.From.js | 8 +- implementors/core/convert/trait.TryInto.js | 2 +- .../traits/misc/trait.IsSubType.js | 2 +- .../futures_core/stream/trait.Stream.js | 4 +- .../mc_rpc_core/trait.MadaraRpcApiServer.js | 2 +- .../trait.StarknetReadRpcApiServer.js | 2 +- .../trait.StarknetTraceRpcApiServer.js | 2 +- .../trait.StarknetWriteRpcApiServer.js | 2 +- implementors/mp_state/trait.StateChanges.js | 2 +- .../pallet_starknet/pallet/trait.Config.js | 2 +- .../trait.ConvertTransactionRuntimeApi.js | 2 +- .../trait.StarknetRuntimeApi.js | 2 +- madara/chain_spec/fn.load_genesis.html | 2 +- .../fn.print_development_accounts.html | 2 +- madara/chain_spec/fn.testnet_genesis.html | 2 +- madara/commands/run/fn.init_da_client.html | 4 +- .../commands/run/struct.ExtendedRunCmd.html | 4 +- madara/rpc/fn.create_full.html | 2 +- madara/rpc/starknet/struct.StarknetDeps.html | 8 +- .../fn.build_aura_grandpa_import_queue.html | 2 +- .../fn.build_manual_seal_import_queue.html | 2 +- madara/service/fn.new_chain_ops.html | 2 +- madara/service/fn.new_full.html | 2 +- madara/service/fn.new_partial.html | 4 +- madara/service/type.ChainOpsResult.html | 2 +- madara/starknet/type.MadaraBackend.html | 2 +- madara_runtime/enum.RuntimeCall.html | 2 +- madara_runtime/enum.RuntimeError.html | 6 +- madara_runtime/index.html | 2 +- madara_runtime/opaque/index.html | 2 +- madara_runtime/opaque/trait.BuildStorage.html | 4 +- madara_runtime/struct.DefaultChainId.html | 4 +- madara_runtime/struct.Runtime.html | 24 +++--- madara_runtime/struct.RuntimeApiImpl.html | 80 +++++++++---------- madara_runtime/trait.BuildStorage.html | 4 +- madara_runtime/type.Starknet.html | 2 +- madara_runtime/type.StarknetConfig.html | 2 +- madara_runtime/type.StarknetHasher.html | 2 +- .../client/struct.MadaraClient.html | 22 ++--- madara_test_runner/struct.MadaraRunner.html | 20 ++--- .../struct.CommitmentStateDiffWorker.html | 6 +- .../config/struct.EthereumDaConfig.html | 8 +- mc_data_availability/fn.prove.html | 2 +- mc_data_availability/fn.update_state.html | 4 +- .../struct.DataAvailabilityWorker.html | 4 +- .../struct.OnDiskGenesisConfig.html | 2 +- .../trait.GenesisProvider.html | 4 +- .../error/enum.L1MessagesWorkerError.html | 8 +- mc_l1_messages/worker/fn.run_worker.html | 4 +- .../worker/struct.EthereumClientConfig.html | 12 +-- mc_mapping_sync/struct.MappingSyncWorker.html | 6 +- mc_rpc/fn.get_block_by_block_hash.html | 2 +- .../struct.PredeployedAccountWithBalance.html | 4 +- .../struct.StarknetRpcWrapper.html | 16 ++-- .../trait.MadaraRpcApiServer.html | 8 +- .../trait.StarknetReadRpcApiServer.html | 8 +- .../trait.StarknetTraceRpcApiServer.html | 8 +- .../trait.StarknetWriteRpcApiServer.html | 8 +- .../struct.PredeployedAccountWithBalance.html | 4 +- mc_rpc/struct.Starknet.html | 36 ++++----- mc_rpc/trait.MadaraRpcApiServer.html | 8 +- mc_rpc/trait.StarknetReadRpcApiServer.html | 8 +- mc_rpc/trait.StarknetTraceRpcApiServer.html | 8 +- mc_rpc/trait.StarknetWriteRpcApiServer.html | 8 +- .../struct.PredeployedAccountWithBalance.html | 4 +- .../utils/fn.get_block_by_block_hash.html | 2 +- .../client/struct.EthereumClientConfig.html | 12 +-- .../client/struct.StarknetContractClient.html | 2 +- mc_settlement/ethereum/errors/enum.Error.html | 4 +- mc_settlement/struct.SettlementWorker.html | 6 +- mc_settlement/trait.SettlementProvider.html | 4 +- mc_storage/fn.onchain_storage_schema.html | 2 +- mc_storage/fn.overrides_handle.html | 2 +- mc_storage/struct.OverrideHandle.html | 6 +- .../struct.RuntimeApiStorageOverride.html | 2 +- mc_storage/trait.StorageOverride.html | 2 +- mp_block/struct.Header.html | 6 +- mp_block/type.BlockTransactions.html | 2 +- mp_digest_log/enum.Log.html | 4 +- mp_digest_log/fn.find_starknet_block.html | 2 +- mp_digest_log/index.html | 2 +- mp_messages/struct.MessageL1ToL2.html | 2 +- .../struct.BlockifierStateAdapter.html | 4 +- .../struct.CachedBlockifierStateAdapter.html | 4 +- .../struct.RuntimeExecutionConfigBuilder.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 | 24 +++--- pallet_starknet/pallet/trait.Config.html | 8 +- .../pallet/type.ChainIdStorage.html | 2 +- .../enum.TxPriorityInfo.html | 10 +-- ...struct.BuildTransferInvokeTransaction.html | 14 ++-- ...struct.DeployAccountTransactionOutput.html | 4 +- pallet_starknet/types/type.StorageSlot.html | 2 +- .../trait.StarknetRuntimeApi.html | 40 +++++----- settings.html | 2 +- .../struct.StarknetSovereign.html | 2 +- 103 files changed, 332 insertions(+), 332 deletions(-) diff --git a/help.html b/help.html index 69ffcfaa10..aa23319e54 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 5ce078dbb7..c457be8641 100644 --- a/implementors/bounded_collections/trait.Get.js +++ b/implementors/bounded_collections/trait.Get.js @@ -1,4 +1,4 @@ (function() {var implementors = { "madara_runtime":[["impl<_I: From<RuntimeVersion>> Get<_I> for Version"],["impl<_I: From<BlockWeights>> Get<_I> for BlockWeights"],["impl<_I: From<BlockNumber>> Get<_I> for BlockHashCount"],["impl<_I: From<BlockLength>> Get<_I> for BlockLength"],["impl<_I: From<u8>> Get<_I> for SS58Prefix"],["impl<_I: From<SealingMode>> Get<_I> for Sealing"]], -"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/convert/trait.From.js b/implementors/core/convert/trait.From.js index 939ce4dd0d..2117a3d23b 100644 --- a/implementors/core/convert/trait.From.js +++ b/implementors/core/convert/trait.From.js @@ -1,14 +1,14 @@ (function() {var implementors = { "madara":[["impl From<Sealing> for SealingMode"]], -"madara_runtime":[["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<RawOrigin<<Runtime as Config>::AccountId>> for RuntimeOrigin"],["impl From<Event> for RuntimeEvent"],["impl From<OriginCaller> for RuntimeOrigin"],["impl From<Option<<Runtime as Config>::AccountId>> for RuntimeOrigin"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<Event<Runtime>> for RuntimeEvent"],["impl From<RuntimeOrigin> for Result<Origin<Runtime>, RuntimeOrigin>"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<RawOrigin<<Runtime as Config>::AccountId>> for OriginCaller"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"]], +"madara_runtime":[["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<RawOrigin<<Runtime as Config>::AccountId>> for RuntimeOrigin"],["impl From<Event> for RuntimeEvent"],["impl From<OriginCaller> for RuntimeOrigin"],["impl From<Option<<Runtime as Config>::AccountId>> for RuntimeOrigin"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<Event<Runtime>> for RuntimeEvent"],["impl From<RuntimeOrigin> for Result<Origin<Runtime>, RuntimeOrigin>"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl From<Error<Runtime>> for RuntimeError"],["impl From<RawOrigin<<Runtime as Config>::AccountId>> for OriginCaller"],["impl From<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"]], "mc_db":[["impl From<Error> for DbError"],["impl From<DatabaseError> for DbError"],["impl From<Error> for DbError"]], "mc_genesis_data_provider":[["impl From<LoadGenesisDataError> for Error"]], -"mc_l1_messages":[["impl<PE> From<ParseError> for L1MessagesWorkerError<PE>"],["impl<PE> From<DbError> for L1MessagesWorkerError<PE>"],["impl<PE> From<Error> for L1MessagesWorkerError<PE>"]], -"mc_settlement":[["impl From<ProviderError> for Error"],["impl<B: Block> From<Error> for Error<B>"],["impl<B: Block> From<Error> for Error<B>"],["impl From<FromHexError> for Error"],["impl<B: Block> From<StarknetApiError> for Error<B>"],["impl From<Error> for Error"],["impl From<WalletError> for Error"],["impl<B: Block> From<FindLogError> for Error<B>"],["impl<B: Block> From<ApiError> for Error<B>"],["impl From<ContractError<SignerMiddleware<Provider<Provider>, Wallet<SigningKey<Secp256k1>>>>> for Error"],["impl From<ParseError> for Error"]], +"mc_l1_messages":[["impl<PE> From<ParseError> for L1MessagesWorkerError<PE>"],["impl<PE> From<DbError> for L1MessagesWorkerError<PE>"],["impl<PE> From<Error> for L1MessagesWorkerError<PE>"]], +"mc_settlement":[["impl From<ProviderError> for Error"],["impl<B: Block> From<Error> for Error<B>"],["impl<B: Block> From<Error> for Error<B>"],["impl From<FromHexError> for Error"],["impl<B: Block> From<StarknetApiError> for Error<B>"],["impl From<Error> for Error"],["impl From<WalletError> for Error"],["impl<B: Block> From<FindLogError> for Error<B>"],["impl<B: Block> From<ApiError> for Error<B>"],["impl From<ContractError<SignerMiddleware<Provider<Provider>, Wallet<SigningKey<Secp256k1>>>>> for Error"],["impl From<ParseError> for Error"]], "mp_fee":[["impl From<ResourcePrice> for ResourcePrice"]], "mp_felt":[["impl From<Felt252Wrapper> for Nonce"],["impl From<Felt252Wrapper> for EventKey"],["impl From<u32> for Felt252Wrapper"],["impl From<u8> for Felt252Wrapper"],["impl From<FromStrError> for Felt252WrapperError"],["impl From<Felt252Wrapper> for TransactionHash"],["impl From<Felt252Wrapper> for ClassHash"],["impl From<StorageKey> for Felt252Wrapper"],["impl From<Felt252Wrapper> for Felt252"],["impl From<ContractAddress> for Felt252Wrapper"],["impl From<Felt252Wrapper> for EntryPointSelector"],["impl From<Felt252Wrapper> for StarkFelt"],["impl From<TransactionHash> for Felt252Wrapper"],["impl From<Felt252Wrapper> for FieldElement"],["impl From<Felt252Wrapper> for TransactionVersion"],["impl From<Felt252Wrapper> for CompiledClassHash"],["impl From<StarkFelt> for Felt252Wrapper"],["impl From<PatriciaKey> for Felt252Wrapper"],["impl From<Felt252WrapperError> for Cow<'static, str>"],["impl From<ContractAddressSalt> for Felt252Wrapper"],["impl From<u128> for Felt252Wrapper"],["impl From<FieldElement> for Felt252Wrapper"],["impl From<Nonce> for Felt252Wrapper"],["impl From<EntryPointSelector> for Felt252Wrapper"],["impl From<Felt252Wrapper> for [u8; 32]"],["impl From<Felt252Wrapper> for H256"],["impl From<Felt252Wrapper> for ContractAddress"],["impl From<Felt252Wrapper> for StorageKey"],["impl From<TransactionVersion> for Felt252Wrapper"],["impl From<Felt252Wrapper> for BlockHash"],["impl From<Felt252> for Felt252Wrapper"],["impl From<Felt252Wrapper> for PatriciaKey"],["impl From<BlockHash> for Felt252Wrapper"],["impl From<Felt252WrapperError> for String"],["impl From<ClassHash> for Felt252Wrapper"],["impl From<EventKey> for Felt252Wrapper"],["impl From<EthAddress> for Felt252Wrapper"],["impl From<CompiledClassHash> for Felt252Wrapper"],["impl From<u64> for Felt252Wrapper"],["impl From<Felt252Wrapper> for ContractAddressSalt"],["impl From<Felt252Wrapper> for U256"]], "mp_genesis_config":[["impl From<FieldElement> for HexFelt"],["impl From<Felt252Wrapper> for HexFelt"],["impl From<HexFelt> for FieldElement"]], -"mp_messages":[["impl From<HandleL1MessageTransaction> for MessageL1ToL2"],["impl From<MessageToL1> for MessageL2ToL1"]], +"mp_messages":[["impl From<HandleL1MessageTransaction> for MessageL1ToL2"],["impl From<MessageToL1> for MessageL2ToL1"]], "mp_simulations":[["impl From<Vec<SimulationFlag, Global>> for SimulationFlags"]], "mp_transactions":[["impl From<DeclareTransactionV1> for DeclareTransaction"],["impl From<UserTransaction> for UserOrL1HandlerTransaction"],["impl From<DeclareTransactionV2> for DeclareTransaction"],["impl From<(DeclareTransaction, ContractClass)> for UserTransaction"],["impl From<MsgFromL1> for HandleL1MessageTransaction"],["impl From<InvokeTransactionV1> for InvokeTransaction"],["impl From<(HandleL1MessageTransaction, Fee)> for UserOrL1HandlerTransaction"],["impl From<InvokeTransaction> for UserTransaction"],["impl From<InvokeTransactionV0> for InvokeTransaction"],["impl From<HandleL1MessageTransaction> for Transaction"],["impl From<&UserOrL1HandlerTransaction> for TxType"],["impl From<TxType> for TransactionType"],["impl From<DeployAccountTransaction> for Transaction"],["impl From<DeployAccountTransaction> for UserTransaction"],["impl From<(DeclareTransaction, ContractClass)> for Transaction"],["impl From<&UserTransaction> for TxType"],["impl From<InvokeTransaction> for Transaction"],["impl From<DeclareTransactionV0> for DeclareTransaction"]], "pallet_starknet":[["impl<T: Config> From<GenesisLoader> for GenesisConfig<T>"],["impl<T: Config> From<Error<T>> for &'static str"],["impl<T: Config> From<Error<T>> for DispatchError"]], diff --git a/implementors/core/convert/trait.TryInto.js b/implementors/core/convert/trait.TryInto.js index aa87b97bb7..07b8e2bbe8 100644 --- a/implementors/core/convert/trait.TryInto.js +++ b/implementors/core/convert/trait.TryInto.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"madara_runtime":[["impl TryInto<Event> for RuntimeEvent"],["impl TryInto<Event<Runtime>> for RuntimeEvent"],["impl TryInto<Error<Runtime>> for RuntimeError"],["impl TryInto<Error<Runtime>> for RuntimeError"],["impl TryInto<Error<Runtime>> for RuntimeError"]] +"madara_runtime":[["impl TryInto<Event> for RuntimeEvent"],["impl TryInto<Event<Runtime>> for RuntimeEvent"],["impl TryInto<Error<Runtime>> for RuntimeError"],["impl TryInto<Error<Runtime>> for RuntimeError"],["impl TryInto<Error<Runtime>> for RuntimeError"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/frame_support/traits/misc/trait.IsSubType.js b/implementors/frame_support/traits/misc/trait.IsSubType.js index 5668d77426..1aeb016f15 100644 --- a/implementors/frame_support/traits/misc/trait.IsSubType.js +++ b/implementors/frame_support/traits/misc/trait.IsSubType.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"madara_runtime":[["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"]] +"madara_runtime":[["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"],["impl IsSubType<<Pallet<Runtime> as Callable<Runtime>>::RuntimeCall> for RuntimeCall"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/futures_core/stream/trait.Stream.js b/implementors/futures_core/stream/trait.Stream.js index 879c44488c..45ff9470c4 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 9118466b7c..0bc824d58b 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 4a5d76900a..8151824ce9 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 bc63d98705..e5ce27c04e 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 bb4b8e7eeb..e5d78c1215 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 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> 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,"]] +"mc_rpc":[["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,"],["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,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/mp_state/trait.StateChanges.js b/implementors/mp_state/trait.StateChanges.js index 1588563f1e..2e59b85f7c 100644 --- a/implementors/mp_state/trait.StateChanges.js +++ b/implementors/mp_state/trait.StateChanges.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"pallet_starknet":[["impl<T> StateChanges for BlockifierStateAdapter<T>where\n T: Config,"],["impl<T> StateChanges for CachedBlockifierStateAdapter<T>where\n T: Config,"]] +"pallet_starknet":[["impl<T> StateChanges for BlockifierStateAdapter<T>where\n T: Config,"],["impl<T> StateChanges for CachedBlockifierStateAdapter<T>where\n T: Config,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/pallet_starknet/pallet/trait.Config.js b/implementors/pallet_starknet/pallet/trait.Config.js index 9a821bdaef..6201d947de 100644 --- a/implementors/pallet_starknet/pallet/trait.Config.js +++ b/implementors/pallet_starknet/pallet/trait.Config.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"madara_runtime":[["impl Config for Runtime"]] +"madara_runtime":[["impl Config for Runtime"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/implementors/pallet_starknet_runtime_api/trait.ConvertTransactionRuntimeApi.js b/implementors/pallet_starknet_runtime_api/trait.ConvertTransactionRuntimeApi.js index aa188902fc..db3c315a7e 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 UserTransaction: UnwindSafe + RefUnwindSafe,\n UncheckedExtrinsic: UnwindSafe + RefUnwindSafe,\n HandleL1MessageTransaction: UnwindSafe + RefUnwindSafe,\n Fee: UnwindSafe + RefUnwindSafe,\n DispatchError: UnwindSafe + RefUnwindSafe,\n StarknetTransactionExecutionError: 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 UserTransaction: UnwindSafe + RefUnwindSafe,\n UncheckedExtrinsic: UnwindSafe + RefUnwindSafe,\n HandleL1MessageTransaction: UnwindSafe + RefUnwindSafe,\n Fee: UnwindSafe + RefUnwindSafe,\n DispatchError: UnwindSafe + RefUnwindSafe,\n StarknetTransactionExecutionError: 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 044c8bd242..2cc6b23ee1 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, DispatchError>: UnwindSafe + RefUnwindSafe,\n EntryPointSelector: UnwindSafe + RefUnwindSafe,\n Calldata: UnwindSafe + RefUnwindSafe,\n Result<Vec<Felt252Wrapper>, DispatchError>: UnwindSafe + RefUnwindSafe,\n Nonce: UnwindSafe + RefUnwindSafe,\n ClassHash: UnwindSafe + RefUnwindSafe,\n Option<ContractClass>: UnwindSafe + RefUnwindSafe,\n Felt252Wrapper: UnwindSafe + RefUnwindSafe,\n StarkHash: UnwindSafe + RefUnwindSafe,\n bool: UnwindSafe + RefUnwindSafe,\n Vec<UserTransaction>: UnwindSafe + RefUnwindSafe,\n Result<Vec<(u64, u64)>, DispatchError>: UnwindSafe + RefUnwindSafe,\n Vec<UserOrL1HandlerTransaction>: UnwindSafe + RefUnwindSafe,\n Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe,\n HandleL1MessageTransaction: UnwindSafe + RefUnwindSafe,\n Result<(u128, u64, u64), DispatchError>: UnwindSafe + RefUnwindSafe,\n SimulationFlags: UnwindSafe + RefUnwindSafe,\n Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>: UnwindSafe + RefUnwindSafe,\n Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe,\n Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,\n Vec<Transaction>: UnwindSafe + RefUnwindSafe,\n Option<(u32, Transaction)>: UnwindSafe + RefUnwindSafe,\n TransactionHash: 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, DispatchError>: UnwindSafe + RefUnwindSafe,\n EntryPointSelector: UnwindSafe + RefUnwindSafe,\n Calldata: UnwindSafe + RefUnwindSafe,\n Result<Vec<Felt252Wrapper>, DispatchError>: UnwindSafe + RefUnwindSafe,\n Nonce: UnwindSafe + RefUnwindSafe,\n ClassHash: UnwindSafe + RefUnwindSafe,\n Option<ContractClass>: UnwindSafe + RefUnwindSafe,\n Felt252Wrapper: UnwindSafe + RefUnwindSafe,\n StarkHash: UnwindSafe + RefUnwindSafe,\n bool: UnwindSafe + RefUnwindSafe,\n Vec<UserTransaction>: UnwindSafe + RefUnwindSafe,\n Result<Vec<(u64, u64)>, DispatchError>: UnwindSafe + RefUnwindSafe,\n Vec<UserOrL1HandlerTransaction>: UnwindSafe + RefUnwindSafe,\n Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe,\n HandleL1MessageTransaction: UnwindSafe + RefUnwindSafe,\n Result<(u128, u64, u64), DispatchError>: UnwindSafe + RefUnwindSafe,\n SimulationFlags: UnwindSafe + RefUnwindSafe,\n Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>: UnwindSafe + RefUnwindSafe,\n Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe,\n Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe,\n Vec<Transaction>: UnwindSafe + RefUnwindSafe,\n Option<(u32, Transaction)>: UnwindSafe + RefUnwindSafe,\n TransactionHash: 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/madara/chain_spec/fn.load_genesis.html b/madara/chain_spec/fn.load_genesis.html index e5504a84be..b11bef93b9 100644 --- a/madara/chain_spec/fn.load_genesis.html +++ b/madara/chain_spec/fn.load_genesis.html @@ -1 +1 @@ -load_genesis in madara::chain_spec - Rust
fn load_genesis(data_path: PathBuf) -> GenesisLoader
\ No newline at end of file +load_genesis in madara::chain_spec - Rust
fn load_genesis(data_path: PathBuf) -> GenesisLoader
\ No newline at end of file diff --git a/madara/chain_spec/fn.print_development_accounts.html b/madara/chain_spec/fn.print_development_accounts.html index bc07c961ae..00c97dfd3b 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 4e3cb46e0b..20264e9230 100644 --- a/madara/chain_spec/fn.testnet_genesis.html +++ b/madara/chain_spec/fn.testnet_genesis.html @@ -1,5 +1,5 @@ testnet_genesis in madara::chain_spec - Rust
fn testnet_genesis(
-    genesis_loader: GenesisLoader,
+    genesis_loader: GenesisLoader,
     wasm_binary: &[u8],
     initial_authorities: Vec<(AuthorityId, AuthorityId)>,
     _enable_println: bool
diff --git a/madara/commands/run/fn.init_da_client.html b/madara/commands/run/fn.init_da_client.html
index ee70d6dc6b..a6b0bfdc77 100644
--- a/madara/commands/run/fn.init_da_client.html
+++ b/madara/commands/run/fn.init_da_client.html
@@ -1,4 +1,4 @@
 init_da_client in madara::commands::run - Rust
fn init_da_client(
-    da_layer: DaLayer,
+    da_layer: DaLayer,
     da_path: &Path
-) -> Result<Box<dyn DaClient + Send + Sync>>
\ No newline at end of file +) -> Result<Box<dyn DaClient + Send + Sync>>
\ No newline at end of file diff --git a/madara/commands/run/struct.ExtendedRunCmd.html b/madara/commands/run/struct.ExtendedRunCmd.html index 6878b480ea..7a6a312cdc 100644 --- a/madara/commands/run/struct.ExtendedRunCmd.html +++ b/madara/commands/run/struct.ExtendedRunCmd.html @@ -1,13 +1,13 @@ ExtendedRunCmd in madara::commands::run - Rust
pub struct ExtendedRunCmd {
     pub base: RunCmd,
     pub sealing: Option<Sealing>,
-    pub da_layer: Option<DaLayer>,
+    pub da_layer: Option<DaLayer>,
     pub da_conf: Option<PathBuf>,
     pub settlement: Option<SettlementLayer>,
     pub settlement_conf: Option<PathBuf>,
     pub cache: bool,
 }

Fields§

§base: RunCmd§sealing: Option<Sealing>

Choose sealing method.

-
§da_layer: Option<DaLayer>

Choose a supported DA Layer

+
§da_layer: Option<DaLayer>

Choose a supported DA Layer

§da_conf: Option<PathBuf>

Path to a file containing the DA configuration

If da_layer is Some and da_conf is None we will try to read one at <chain_config_directory>/<da_layer_name>.json. If it’s not there, an error will be diff --git a/madara/rpc/fn.create_full.html b/madara/rpc/fn.create_full.html index 106ac96667..99ccce8ee2 100644 --- a/madara/rpc/fn.create_full.html +++ b/madara/rpc/fn.create_full.html @@ -3,7 +3,7 @@ ) -> 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>, + 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.

diff --git a/madara/rpc/starknet/struct.StarknetDeps.html b/madara/rpc/starknet/struct.StarknetDeps.html index 2885543c58..62724d50e4 100644 --- a/madara/rpc/starknet/struct.StarknetDeps.html +++ b/madara/rpc/starknet/struct.StarknetDeps.html @@ -1,14 +1,14 @@ 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

diff --git a/madara/service/fn.build_aura_grandpa_import_queue.html b/madara/service/fn.build_aura_grandpa_import_queue.html index 06c2d5503a..1c442cbf44 100644 --- a/madara/service/fn.build_aura_grandpa_import_queue.html +++ b/madara/service/fn.build_aura_grandpa_import_queue.html @@ -4,7 +4,7 @@ task_manager: &TaskManager, telemetry: Option<TelemetryHandle>, grandpa_block_import: GrandpaBlockImport<TFullBackend<Block>, Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>, - _madara_backend: Arc<Backend<Block>> + _madara_backend: Arc<Backend<Block>> ) -> Result<(DefaultImportQueue<Block>, BoxBlockImport<Block>), Error>where RuntimeApi: ConstructRuntimeApi<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>> + Send + Sync + 'static,
Expand description

Build the import queue for the template runtime (aura + grandpa).

\ No newline at end of file diff --git a/madara/service/fn.build_manual_seal_import_queue.html b/madara/service/fn.build_manual_seal_import_queue.html index e8444c2acb..46c54b04a8 100644 --- a/madara/service/fn.build_manual_seal_import_queue.html +++ b/madara/service/fn.build_manual_seal_import_queue.html @@ -4,7 +4,7 @@ task_manager: &TaskManager, _telemetry: Option<TelemetryHandle>, _grandpa_block_import: GrandpaBlockImport<TFullBackend<Block>, Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>, - _madara_backend: Arc<Backend<Block>> + _madara_backend: Arc<Backend<Block>> ) -> Result<(DefaultImportQueue<Block>, BoxBlockImport<Block>), Error>where RuntimeApi: ConstructRuntimeApi<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>> + Send + Sync + 'static,
Expand description

Build the import queue for the template runtime (manual seal).

\ No newline at end of file diff --git a/madara/service/fn.new_chain_ops.html b/madara/service/fn.new_chain_ops.html index 3016b31024..d5493bee34 100644 --- a/madara/service/fn.new_chain_ops.html +++ b/madara/service/fn.new_chain_ops.html @@ -1,4 +1,4 @@ new_chain_ops in madara::service - Rust

Function madara::service::new_chain_ops

source ·
pub fn new_chain_ops(
     config: &mut Configuration,
     cache_more_things: bool
-) -> 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 cc6b312864..1391dd21f9 100644 --- a/madara/service/fn.new_full.html +++ b/madara/service/fn.new_full.html @@ -1,7 +1,7 @@ new_full in madara::service - Rust

Function madara::service::new_full

source ·
pub fn new_full(
     config: Configuration,
     sealing: SealingMode,
-    da_client: Option<Box<dyn DaClient + Send + Sync>>,
+    da_client: Option<Box<dyn DaClient + Send + Sync>>,
     cache_more_things: bool,
     settlement_config: Option<(SettlementLayer, PathBuf)>
 ) -> Result<TaskManager, Error>
Expand description

Builds a new service for a full client.

diff --git a/madara/service/fn.new_partial.html b/madara/service/fn.new_partial.html index 222e2dfc2b..dd2ca9d2e6 100644 --- a/madara/service/fn.new_partial.html +++ b/madara/service/fn.new_partial.html @@ -2,6 +2,6 @@ config: &Configuration, build_import_queue: BIQ, cache_more_things: bool -) -> Result<PartialComponents<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, TFullBackend<Block>, LongestChain<TFullBackend<Block>, Block>, DefaultImportQueue<Block>, FullPool<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, (BoxBlockImport<Block>, LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>, Option<Telemetry>, Arc<Backend<Block>>)>, Error>where +) -> Result<PartialComponents<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, TFullBackend<Block>, LongestChain<TFullBackend<Block>, Block>, DefaultImportQueue<Block>, FullPool<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, (BoxBlockImport<Block>, LinkHalf<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>, Option<Telemetry>, Arc<Backend<Block>>)>, Error>where RuntimeApi: ConstructRuntimeApi<Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>> + Send + Sync + 'static, - BIQ: FnOnce(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, &Configuration, &TaskManager, Option<TelemetryHandle>, GrandpaBlockImport<TFullBackend<Block>, Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>, Arc<Backend<Block>>) -> Result<(DefaultImportQueue<Block>, BoxBlockImport<Block>), Error>,
\ No newline at end of file + BIQ: FnOnce(Arc<TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>>, &Configuration, &TaskManager, Option<TelemetryHandle>, GrandpaBlockImport<TFullBackend<Block>, Block, TFullClient<Block, RuntimeApi, NativeElseWasmExecutor<ExecutorDispatch>>, LongestChain<TFullBackend<Block>, Block>>, Arc<Backend<Block>>) -> Result<(DefaultImportQueue<Block>, BoxBlockImport<Block>), Error>, \ No newline at end of file diff --git a/madara/service/type.ChainOpsResult.html b/madara/service/type.ChainOpsResult.html index 29a38fcbf5..4807c2df23 100644 --- a/madara/service/type.ChainOpsResult.html +++ b/madara/service/type.ChainOpsResult.html @@ -1 +1 @@ -ChainOpsResult in madara::service - Rust

Type Definition madara::service::ChainOpsResult

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

Type Definition madara::service::ChainOpsResult

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

Type Definition madara::starknet::MadaraBackend

source ·
pub type MadaraBackend = Backend<Block>;
\ No newline at end of file +MadaraBackend in madara::starknet - Rust

Type Definition madara::starknet::MadaraBackend

source ·
pub type MadaraBackend = Backend<Block>;
\ No newline at end of file diff --git a/madara_runtime/enum.RuntimeCall.html b/madara_runtime/enum.RuntimeCall.html index 9fa1c3e5df..c5b6b35473 100644 --- a/madara_runtime/enum.RuntimeCall.html +++ b/madara_runtime/enum.RuntimeCall.html @@ -19,7 +19,7 @@ &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
§

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

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> Rwhere - F: FnOnce(&[u8]) -> R,

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

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl GetCallMetadata for RuntimeCall

source§

fn get_call_metadata(&self) -> CallMetadata

Return a [CallMetadata], containing function and pallet name of the Call.
source§

fn get_module_names() -> &'static [&'static str]

Return all module names.
source§

fn get_call_names(module: &str) -> &'static [&'static str]

Return all function names for the given module.
source§

impl GetDispatchInfo for RuntimeCall

source§

fn get_dispatch_info(&self) -> DispatchInfo

Return a DispatchInfo, containing relevant information of this dispatch. Read more
source§

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

source§

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

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

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

source§

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

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

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

source§

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

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

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

source§

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

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

impl PartialEq<RuntimeCall> for RuntimeCall

source§

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

This method tests for self and other values to be equal, and is used + F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl GetCallMetadata for RuntimeCall

source§

fn get_call_metadata(&self) -> CallMetadata

Return a [CallMetadata], containing function and pallet name of the Call.
source§

fn get_module_names() -> &'static [&'static str]

Return all module names.
source§

fn get_call_names(module: &str) -> &'static [&'static str]

Return all function names for the given module.
source§

impl GetDispatchInfo for RuntimeCall

source§

fn get_dispatch_info(&self) -> DispatchInfo

Return a DispatchInfo, containing relevant information of this dispatch. Read more
source§

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

source§

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

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

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

source§

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

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

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

source§

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

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

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

source§

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

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

impl PartialEq<RuntimeCall> for RuntimeCall

source§

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

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

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

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

impl TypeInfo for RuntimeCall

§

type Identity = RuntimeCall

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

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl UnfilteredDispatchable for RuntimeCall

§

type RuntimeOrigin = RuntimeOrigin

The origin type of the runtime, (i.e. frame_system::Config::RuntimeOrigin).
source§

fn dispatch_bypass_filter( self, diff --git a/madara_runtime/enum.RuntimeError.html b/madara_runtime/enum.RuntimeError.html index 7a82b07f1a..5992d02468 100644 --- a/madara_runtime/enum.RuntimeError.html +++ b/madara_runtime/enum.RuntimeError.html @@ -1,8 +1,8 @@ RuntimeError in madara_runtime - Rust
pub enum RuntimeError {
     System(Error<Runtime>),
     Grandpa(Error<Runtime>),
-    Starknet(Error<Runtime>),
-}

Variants§

§

System(Error<Runtime>)

§

Grandpa(Error<Runtime>)

§

Starknet(Error<Runtime>)

Implementations§

source§

impl RuntimeError

source

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

Optionally convert the DispatchError into the RuntimeError.

+ Starknet(Error<Runtime>), +}

Variants§

§

System(Error<Runtime>)

§

Grandpa(Error<Runtime>)

§

Starknet(Error<Runtime>)

Implementations§

source§

impl RuntimeError

source

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

Optionally convert the DispatchError into the RuntimeError.

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

Trait Implementations§

source§

impl Debug for RuntimeError

source§

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

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

impl Decode for RuntimeError

source§

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

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

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

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> Rwhere - F: FnOnce(&[u8]) -> R,

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

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl From<Error<Runtime>> for RuntimeError

source§

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

Converts to this type from the input type.
source§

impl From<Error<Runtime>> for RuntimeError

source§

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

Converts to this type from the input type.
source§

impl From<Error<Runtime>> for RuntimeError

source§

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

Converts to this type from the input type.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

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

Performs the conversion.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

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

Performs the conversion.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

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

Performs the conversion.
source§

impl TypeInfo for RuntimeError

§

type Identity = RuntimeError

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

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl EncodeLike<RuntimeError> for RuntimeError

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl From<Error<Runtime>> for RuntimeError

source§

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

Converts to this type from the input type.
source§

impl From<Error<Runtime>> for RuntimeError

source§

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

Converts to this type from the input type.
source§

impl From<Error<Runtime>> for RuntimeError

source§

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

Converts to this type from the input type.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

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

Performs the conversion.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

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

Performs the conversion.
source§

impl TryInto<Error<Runtime>> for RuntimeError

§

type Error = ()

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

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

Performs the conversion.
source§

impl TypeInfo for RuntimeError

§

type Identity = RuntimeError

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

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl EncodeLike<RuntimeError> for RuntimeError

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>where diff --git a/madara_runtime/index.html b/madara_runtime/index.html index 215fd821c4..99e669fb04 100644 --- a/madara_runtime/index.html +++ b/madara_runtime/index.html @@ -2,7 +2,7 @@ public Starknet L2. For now this is the same because we don’t support yet validity proofs and state updates to another layer.

-

Re-exports

  • pub use pallet_starknet;

Modules

Macros

Structs

Re-exports

Modules

Macros

Structs

Required Methods§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

Assimilate the storage for this module into pre-existing overlays.

Provided Methods§

fn build_storage(&self) -> Result<Storage, String>

Build the storage out of this builder.

Implementations on Foreign Types§

§

impl BuildStorage for ()

§

fn assimilate_storage(&self, _: &mut Storage) -> Result<(), String>

§

impl BuildStorage for Storage

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where - T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where - T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where + T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

source§

impl<T> BuildStorage for GenesisConfig<T>where + T: Config,

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

Implementors§

\ No newline at end of file diff --git a/madara_runtime/struct.DefaultChainId.html b/madara_runtime/struct.DefaultChainId.html index 0845b87d46..eede48ce4a 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§

§

impl Get<Felt252Wrapper> for DefaultChainId

§

fn get() -> Felt252Wrapper

Return the current value.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +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 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 8f2c84efae..eaf490428b 100644 --- a/madara_runtime/struct.Runtime.html +++ b/madara_runtime/struct.Runtime.html @@ -15,8 +15,8 @@

Timestamp manipulation. For instance, we need it to set the timestamp of the Starknet block.

§

type Moment = u64

A timestamp: milliseconds since the unix epoch.

-
§

type OnTimestampSet = ConsensusOnTimestampSet<Runtime>

Something which can be notified (e.g. another pallet) when the timestamp is set. Read more
§

type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>

The minimum period between blocks. Read more
§

type WeightInfo = ()

Weight information for extrinsics in this pallet.
source§

impl Config for Runtime

Configure the Starknet pallet in pallets/starknet.

-
§

type SystemHash = PedersenHasher

The hashing function to use.
§

type TimestampProvider = Pallet<Runtime>

The block time
§

type UnsignedPriority = UnsignedPriority

A configuration for base priority of unsigned transactions. Read more
§

type TransactionLongevity = TransactionLongevity

A configuration for longevity of transactions. Read more
§

type DisableTransactionFee = ConstBool<false>

A bool to disable transaction fees and make all transactions free
§

type DisableNonceValidation = ConstBool<false>

A bool to disable Nonce validation
§

type InvokeTxMaxNSteps = InvokeTxMaxNSteps

§

type ValidateMaxNSteps = ValidateMaxNSteps

§

type ProtocolVersion = ProtocolVersion

§

type MaxRecursionDepth = MaxRecursionDepth

§

type ProgramHash = ProgramHash

§

type L1GasPrice = L1GasPrice

The gas price
source§

impl Config for Runtime


+
§

type OnTimestampSet = ConsensusOnTimestampSet<Runtime>

Something which can be notified (e.g. another pallet) when the timestamp is set. Read more
§

type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>

The minimum period between blocks. Read more
§

type WeightInfo = ()

Weight information for extrinsics in this pallet.

source§

impl Config for Runtime

Configure the Starknet pallet in pallets/starknet.

+
§

type SystemHash = PedersenHasher

The hashing function to use.
§

type TimestampProvider = Pallet<Runtime>

The block time
§

type UnsignedPriority = UnsignedPriority

A configuration for base priority of unsigned transactions. Read more
§

type TransactionLongevity = TransactionLongevity

A configuration for longevity of transactions. Read more
§

type DisableTransactionFee = ConstBool<false>

A bool to disable transaction fees and make all transactions free
§

type DisableNonceValidation = ConstBool<false>

A bool to disable Nonce validation
§

type InvokeTxMaxNSteps = InvokeTxMaxNSteps

§

type ValidateMaxNSteps = ValidateMaxNSteps

§

type ProtocolVersion = ProtocolVersion

§

type MaxRecursionDepth = MaxRecursionDepth

§

type ProgramHash = ProgramHash

§

type L1GasPrice = L1GasPrice

The gas price
source§

impl Config for Runtime


FRAME SYSTEM PALLET

Configuration of frame_system pallet.

§

type BaseCallFilter = Everything

The basic call filter to use in dispatchable.

@@ -45,7 +45,7 @@
FRAME SYSTEM PALLET<
§

type MaxConsumers = ConstU32<16>

The maximum number of consumers allowed on a single account.
source§

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

source§

fn convert_transaction(transaction: UserTransaction) -> UncheckedExtrinsic

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

fn convert_l1_transaction( transaction: HandleL1MessageTransaction, fee: Fee -) -> UncheckedExtrinsic

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

fn convert_error(error: DispatchError) -> StarknetTransactionExecutionError

Converts the DispatchError to an understandable error for the client
source§

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

source§

fn version() -> RuntimeVersion

Returns the version of the runtime.
source§

fn execute_block(block: Block)

Execute the given block.
source§

fn initialize_block(header: &<Block as BlockT>::Header)

Initialize a block with the given header.
source§

impl Debug for Runtime

source§

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

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

impl EnsureInherentsAreFirst<<Runtime as Config>::Block> for Runtime

source§

fn ensure_inherents_are_first( +) -> UncheckedExtrinsic

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

fn convert_error(error: DispatchError) -> StarknetTransactionExecutionError

Converts the DispatchError to an understandable error for the client
source§

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

source§

fn version() -> RuntimeVersion

Returns the version of the runtime.
source§

fn execute_block(block: Block)

Execute the given block.
source§

fn initialize_block(header: &<Block as BlockT>::Header)

Initialize a block with the given header.
source§

impl Debug for Runtime

source§

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

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

impl EnsureInherentsAreFirst<<Runtime as Config>::Block> for Runtime

source§

fn ensure_inherents_are_first( block: &<Runtime as Config>::Block ) -> Result<(), u32>

Ensure the position of inherent is correct, i.e. they are before non-inherents. Read more
source§

impl GetRuntimeBlockType for Runtime

§

type RuntimeBlock = <Runtime as Config>::Block

The RuntimeBlock type.
source§

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

source§

fn grandpa_authorities() -> GrandpaAuthorityList

Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed. Read more
source§

fn current_set_id() -> SetId

Get current GRANDPA authority set id.
source§

fn submit_report_equivocation_unsigned_extrinsic( @@ -82,24 +82,24 @@

FRAME SYSTEM PALLET< address: ContractAddress, function_selector: EntryPointSelector, calldata: Calldata -) -> Result<Vec<Felt252Wrapper>, DispatchError>
Returns a Call response.
source§

fn nonce(address: ContractAddress) -> Nonce

Returns the nonce associated with the given address in the given 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 config_hash() -> StarkHash

Returns the Starknet config hash.
source§

fn fee_token_address() -> ContractAddress

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

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 config_hash() -> StarkHash

Returns the Starknet config hash.
source§

fn fee_token_address() -> ContractAddress

Returns the fee token address.
source§

fn is_transaction_fee_disabled() -> bool

Return is fee disabled in state
source§

fn estimate_fee( transactions: Vec<UserTransaction> ) -> Result<Vec<(u64, u64)>, DispatchError>

Returns fee estimate
source§

fn re_execute_transactions( transactions_before: Vec<UserOrL1HandlerTransaction>, transactions_to_trace: Vec<UserOrL1HandlerTransaction> -) -> Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>

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

fn estimate_message_fee( +) -> Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>

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

fn estimate_message_fee( message: HandleL1MessageTransaction ) -> Result<(u128, u64, u64), DispatchError>

Returns message fee estimate
source§

fn simulate_transactions( transactions: Vec<UserTransaction>, - simulation_flags: SimulationFlags -) -> Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>

Simulates transactions and returns their trace
source§

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

Simulates transactions and returns their trace
source§

fn simulate_message( message: HandleL1MessageTransaction, - simulation_flags: SimulationFlags -) -> Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>

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

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>, - chain_id: Felt252Wrapper, - tx_hash: Felt252Wrapper -) -> 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( + chain_id: Felt252Wrapper, + tx_hash: Felt252Wrapper +) -> 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( source: TransactionSource, tx: <Block as BlockT>::Extrinsic, block_hash: <Block as BlockT>::Hash diff --git a/madara_runtime/struct.RuntimeApiImpl.html b/madara_runtime/struct.RuntimeApiImpl.html index e2026fb9e1..b1fe17eced 100644 --- a/madara_runtime/struct.RuntimeApiImpl.html +++ b/madara_runtime/struct.RuntimeApiImpl.html @@ -72,7 +72,7 @@ __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, UserTransaction: UnwindSafe + RefUnwindSafe, @@ -80,21 +80,21 @@ HandleL1MessageTransaction: UnwindSafe + RefUnwindSafe, Fee: UnwindSafe + RefUnwindSafe, DispatchError: UnwindSafe + RefUnwindSafe, - StarknetTransactionExecutionError: UnwindSafe + RefUnwindSafe, - __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,

§

fn convert_transaction( + StarknetTransactionExecutionError: UnwindSafe + RefUnwindSafe, + __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,

source§

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

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

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

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

fn convert_l1_transaction( &self, __runtime_api_at_param__: <Block as Block>::Hash, transaction: HandleL1MessageTransaction, fee: Fee -) -> Result<<Block as Block>::Extrinsic, ApiError>

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

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

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

fn convert_error( &self, __runtime_api_at_param__: <Block as Block>::Hash, error: DispatchError -) -> Result<StarknetTransactionExecutionError, ApiError>

Converts the DispatchError to an understandable error for the client
source§

impl<__SrApiBlock__, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> Core<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where +) -> Result<StarknetTransactionExecutionError, ApiError>

Converts the DispatchError to an understandable error for the client
source§

impl<__SrApiBlock__, RuntimeApiImplCall: CallApiAt<__SrApiBlock__> + 'static> Core<__SrApiBlock__> for RuntimeApiImpl<__SrApiBlock__, RuntimeApiImplCall>where RuntimeApiImplCall::StateBackend: StateBackend<HashingFor<__SrApiBlock__>>, &'static RuntimeApiImplCall: Send, RuntimeVersion: UnwindSafe + RefUnwindSafe, @@ -200,7 +200,7 @@ &self, __runtime_api_at_param__: <Block as Block>::Hash, encoded: Vec<u8, Global> -) -> Result<Option<Vec<(Vec<u8, Global>, KeyTypeId), Global>>, ApiError>

Decode the given public session keys. Read 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, @@ -208,22 +208,22 @@ Result<StarkFelt, DispatchError>: UnwindSafe + RefUnwindSafe, EntryPointSelector: UnwindSafe + RefUnwindSafe, Calldata: UnwindSafe + RefUnwindSafe, - Result<Vec<Felt252Wrapper>, DispatchError>: UnwindSafe + RefUnwindSafe, + Result<Vec<Felt252Wrapper>, DispatchError>: UnwindSafe + RefUnwindSafe, Nonce: UnwindSafe + RefUnwindSafe, ClassHash: UnwindSafe + RefUnwindSafe, Option<ContractClass>: UnwindSafe + RefUnwindSafe, - Felt252Wrapper: UnwindSafe + RefUnwindSafe, + Felt252Wrapper: UnwindSafe + RefUnwindSafe, StarkHash: UnwindSafe + RefUnwindSafe, bool: UnwindSafe + RefUnwindSafe, Vec<UserTransaction>: UnwindSafe + RefUnwindSafe, Result<Vec<(u64, u64)>, DispatchError>: UnwindSafe + RefUnwindSafe, Vec<UserOrL1HandlerTransaction>: UnwindSafe + RefUnwindSafe, - Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe, + Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe, HandleL1MessageTransaction: UnwindSafe + RefUnwindSafe, Result<(u128, u64, u64), DispatchError>: UnwindSafe + RefUnwindSafe, - SimulationFlags: UnwindSafe + RefUnwindSafe, - Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>: UnwindSafe + RefUnwindSafe, - Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe, + SimulationFlags: UnwindSafe + RefUnwindSafe, + Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>: UnwindSafe + RefUnwindSafe, + Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>: UnwindSafe + RefUnwindSafe, Vec<<__SrApiBlock__ as BlockT>::Extrinsic>: UnwindSafe + RefUnwindSafe, Vec<Transaction>: UnwindSafe + RefUnwindSafe, Option<(u32, Transaction)>: UnwindSafe + RefUnwindSafe, @@ -231,94 +231,94 @@ Vec<MessageToL1>: UnwindSafe + RefUnwindSafe, Vec<Event>: UnwindSafe + RefUnwindSafe, Option<Vec<u8>>: UnwindSafe + RefUnwindSafe, - BlockContext: UnwindSafe + RefUnwindSafe, - __SrApiBlock__::Header: UnwindSafe + RefUnwindSafe,

§

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

source§

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
§

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

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

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

Returns a storage slot value
§

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

Returns a storage slot value
source§

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

Returns a Call response.
§

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

Returns a Call response.
source§

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

Returns the contract class hash at the given address.
§

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

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

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

Returns the contract class for the given class hash.
§

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

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

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

Returns the chain id.
§

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

Returns the chain id.
source§

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

Returns the Starknet OS Cairo program hash.
§

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

Returns the Starknet OS Cairo program hash.
source§

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

Returns the Starknet config hash.
§

fn fee_token_address( +) -> Result<StarkFelt, ApiError>

Returns the Starknet config hash.
source§

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

Returns the fee token address.
§

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

Returns the fee token address.
source§

fn estimate_fee( &self, __runtime_api_at_param__: <Block as Block>::Hash, transactions: Vec<UserTransaction, Global> -) -> Result<Result<Vec<(u64, u64), Global>, DispatchError>, ApiError>

Returns fee estimate
§

fn estimate_message_fee( +) -> Result<Result<Vec<(u64, u64), Global>, DispatchError>, ApiError>

Returns fee estimate
source§

fn estimate_message_fee( &self, __runtime_api_at_param__: <Block as Block>::Hash, message: HandleL1MessageTransaction -) -> Result<Result<(u128, u64, u64), DispatchError>, ApiError>

Returns message fee estimate
§

fn simulate_message( +) -> Result<Result<(u128, u64, u64), DispatchError>, ApiError>

Returns message fee estimate
source§

fn simulate_message( &self, __runtime_api_at_param__: <Block as Block>::Hash, message: HandleL1MessageTransaction, - simulation_flags: SimulationFlags -) -> Result<Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError>

Simulates single L1 Message and returns its trace
§

fn simulate_transactions( + simulation_flags: SimulationFlags +) -> Result<Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError>

Simulates single L1 Message and returns its trace
source§

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

Simulates transactions and returns their trace
§

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

Simulates transactions and returns their trace
source§

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
§

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

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

fn re_execute_transactions( &self, __runtime_api_at_param__: <Block as Block>::Hash, transactions_before: Vec<UserOrL1HandlerTransaction, Global>, transactions_to_trace: Vec<UserOrL1HandlerTransaction, Global> -) -> Result<Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff), Global>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError>

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

fn get_index_and_tx_for_tx_hash( +) -> Result<Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff), Global>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, 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( &self, __runtime_api_at_param__: <Block as Block>::Hash, xts: Vec<<Block as Block>::Extrinsic, Global>, - chain_id: Felt252Wrapper, - tx_hash: Felt252Wrapper -) -> Result<Option<(u32, Transaction)>, ApiError>

§

fn get_events_for_tx_by_hash( + chain_id: Felt252Wrapper, + tx_hash: Felt252Wrapper +) -> Result<Option<(u32, Transaction)>, ApiError>

source§

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

§

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

source§

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
§

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

Return the outcome of the tx execution
source§

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

Return the block context
§

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

Return the block context
source§

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

Return is fee disabled in state
§

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

Return is fee disabled in state
source§

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
§

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

Return messages sent to L1 during tx execution
source§

fn l1_nonce_unused( &self, __runtime_api_at_param__: <Block as Block>::Hash, nonce: Nonce diff --git a/madara_runtime/trait.BuildStorage.html b/madara_runtime/trait.BuildStorage.html index 9de83b1fc4..ed0bcb6ed0 100644 --- a/madara_runtime/trait.BuildStorage.html +++ b/madara_runtime/trait.BuildStorage.html @@ -8,8 +8,8 @@

Required Methods§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

Assimilate the storage for this module into pre-existing overlays.

Provided Methods§

fn build_storage(&self) -> Result<Storage, String>

Build the storage out of this builder.

Implementations on Foreign Types§

§

impl BuildStorage for ()

§

fn assimilate_storage(&self, _: &mut Storage) -> Result<(), String>

§

impl BuildStorage for Storage

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where - T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where - T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where + T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

source§

impl<T> BuildStorage for GenesisConfig<T>where + T: Config,

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

§

impl<T> BuildStorage for GenesisConfig<T>where T: Config,

§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

Implementors§

source§

impl BuildStorage for RuntimeGenesisConfig

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

Type Definition madara_runtime::Starknet

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

Type Definition madara_runtime::Starknet

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

Type Definition madara_runtime::StarknetConfig

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

Type Definition madara_runtime::StarknetConfig

source ·
pub type StarknetConfig = GenesisConfig<Runtime>;
\ No newline at end of file diff --git a/madara_runtime/type.StarknetHasher.html b/madara_runtime/type.StarknetHasher.html index ff77b5c81f..58130e2645 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/madara_test_runner/client/struct.MadaraClient.html b/madara_test_runner/client/struct.MadaraClient.html index f9abd227f6..0c912a76fe 100644 --- a/madara_test_runner/client/struct.MadaraClient.html +++ b/madara_test_runner/client/struct.MadaraClient.html @@ -1,24 +1,24 @@ -MadaraClient in madara_test_runner::client - Rust
pub struct MadaraClient { /* private fields */ }
Expand description

A wrapper over the Madara process handle, reqwest client and request counter

-

Implementations§

§

impl MadaraClient

pub fn new(url: Url) -> MadaraClient

pub async fn run_to_block( +MadaraClient in madara_test_runner::client - Rust
pub struct MadaraClient { /* private fields */ }
Expand description

A wrapper over the Madara process handle, reqwest client and request counter

+

Implementations§

source§

impl MadaraClient

source

pub fn new(url: Url) -> MadaraClient

source

pub async fn run_to_block( &mut self, target_block: u64 -) -> impl Future<Output = Result<(), Error>>

pub async fn create_n_blocks( +) -> impl Future<Output = Result<(), Error>>

source

pub async fn create_n_blocks( &mut self, n: u64 -) -> impl Future<Output = Result<(), Error>>

pub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>

pub async fn create_empty_block( +) -> impl Future<Output = Result<(), Error>>

source

pub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>

source

pub async fn create_empty_block( &mut self -) -> impl Future<Output = Result<(), Error>>

pub async fn create_block_with_pending_txs( +) -> impl Future<Output = Result<(), Error>>

source

pub async fn create_block_with_pending_txs( &mut self -) -> impl Future<Output = Result<(), Error>>

pub async fn create_block_with_txs( +) -> impl Future<Output = Result<(), Error>>

source

pub async fn create_block_with_txs( &mut self, - transactions: Vec<Transaction<'_>, Global> -) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>

pub async fn submit_txs( + transactions: Vec<Transaction<'_>, Global> +) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>

source

pub async fn submit_txs( &mut self, - transactions: Vec<Transaction<'_>, Global> -) -> impl Future<Output = Vec<Result<TransactionResult, SendTransactionError>, Global>>

pub async fn create_block_with_parent( + transactions: Vec<Transaction<'_>, Global> +) -> impl Future<Output = Vec<Result<TransactionResult, SendTransactionError>, Global>>

source

pub async fn create_block_with_parent( &mut self, parent_hash: &str -) -> impl Future<Output = Result<(), Error>>

pub async fn health(&self) -> impl Future<Output = Result<bool, Error>>

Trait Implementations§

§

impl Debug for MadaraClient

§

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

Formats the value using the given formatter. Read more
§

impl Default for MadaraClient

§

fn default() -> MadaraClient

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> impl Future<Output = Result<(), Error>>

source

pub async fn health(&self) -> impl Future<Output = Result<bool, Error>>

Trait Implementations§

source§

impl Debug for MadaraClient

source§

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

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

impl Default for MadaraClient

source§

fn default() -> MadaraClient

Returns the “default value” for a type. 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 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
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/madara_test_runner/struct.MadaraRunner.html b/madara_test_runner/struct.MadaraRunner.html index 5a8a07ee52..80b3a2f44e 100644 --- a/madara_test_runner/struct.MadaraRunner.html +++ b/madara_test_runner/struct.MadaraRunner.html @@ -1,23 +1,23 @@ -MadaraRunner in madara_test_runner - Rust
pub struct MadaraRunner { /* private fields */ }

Implementations§

source§

impl MadaraRunner

source

pub async fn new(args: MadaraArgs) -> Self

Methods from Deref<Target = MadaraClient>§

pub async fn run_to_block( +MadaraRunner in madara_test_runner - Rust
pub struct MadaraRunner { /* private fields */ }

Implementations§

source§

impl MadaraRunner

source

pub async fn new(args: MadaraArgs) -> Self

Methods from Deref<Target = MadaraClient>§

source

pub async fn run_to_block( &mut self, target_block: u64 -) -> impl Future<Output = Result<(), Error>>

pub async fn create_n_blocks( +) -> impl Future<Output = Result<(), Error>>

source

pub async fn create_n_blocks( &mut self, n: u64 -) -> impl Future<Output = Result<(), Error>>

pub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>

pub async fn create_empty_block( +) -> impl Future<Output = Result<(), Error>>

source

pub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>

source

pub async fn create_empty_block( &mut self -) -> impl Future<Output = Result<(), Error>>

pub async fn create_block_with_pending_txs( +) -> impl Future<Output = Result<(), Error>>

source

pub async fn create_block_with_pending_txs( &mut self -) -> impl Future<Output = Result<(), Error>>

pub async fn create_block_with_txs( +) -> impl Future<Output = Result<(), Error>>

source

pub async fn create_block_with_txs( &mut self, - transactions: Vec<Transaction<'_>, Global> -) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>

pub async fn submit_txs( + transactions: Vec<Transaction<'_>, Global> +) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>

source

pub async fn submit_txs( &mut self, - transactions: Vec<Transaction<'_>, Global> -) -> impl Future<Output = Vec<Result<TransactionResult, SendTransactionError>, Global>>

pub async fn create_block_with_parent( + transactions: Vec<Transaction<'_>, Global> +) -> impl Future<Output = Vec<Result<TransactionResult, SendTransactionError>, Global>>

source

pub async fn create_block_with_parent( &mut self, parent_hash: &str -) -> impl Future<Output = Result<(), Error>>

pub async fn health(&self) -> impl Future<Output = Result<bool, Error>>

Trait Implementations§

source§

impl Debug for MadaraRunner

source§

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

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

impl Deref for MadaraRunner

§

type Target = MadaraClient

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for MadaraRunner

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +) -> impl Future<Output = Result<(), Error>>

source

pub async fn health(&self) -> impl Future<Output = Result<bool, Error>>

Trait Implementations§

source§

impl Debug for MadaraRunner

source§

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

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

impl Deref for MadaraRunner

§

type Target = MadaraClient

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for MadaraRunner

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the 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
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html b/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html index 0dce1a2142..32cc4797ca 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_data_availability/ethereum/config/struct.EthereumDaConfig.html b/mc_data_availability/ethereum/config/struct.EthereumDaConfig.html index e109d948d7..08e8032638 100644 --- a/mc_data_availability/ethereum/config/struct.EthereumDaConfig.html +++ b/mc_data_availability/ethereum/config/struct.EthereumDaConfig.html @@ -1,9 +1,9 @@ EthereumDaConfig in mc_data_availability::ethereum::config - Rust
pub struct EthereumDaConfig {
-    pub provider: EthereumProviderConfig,
-    pub wallet: Option<EthereumWalletConfig>,
-    pub contracts: StarknetContracts,
+    pub provider: EthereumProviderConfig,
+    pub wallet: Option<EthereumWalletConfig>,
+    pub contracts: StarknetContracts,
     pub mode: DaMode,
-}

Fields§

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

Trait Implementations§

source§

impl Clone for EthereumDaConfig

source§

fn clone(&self) -> EthereumDaConfig

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 EthereumDaConfig

source§

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

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

impl<'de> Deserialize<'de> for EthereumDaConfig

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where +}

Fields§

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

Trait Implementations§

source§

impl Clone for EthereumDaConfig

source§

fn clone(&self) -> EthereumDaConfig

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 EthereumDaConfig

source§

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

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

impl<'de> Deserialize<'de> for EthereumDaConfig

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 EthereumDaConfig

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 TryFrom<EthereumDaConfig> for EthereumDaClient

§

type Error = DaError

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

fn try_from(conf: EthereumDaConfig) -> Result<Self, Self::Error>

Performs the conversion.

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_data_availability/fn.prove.html b/mc_data_availability/fn.prove.html index 7c15075cbb..88c749bbcc 100644 --- a/mc_data_availability/fn.prove.html +++ b/mc_data_availability/fn.prove.html @@ -3,5 +3,5 @@ block_hash: BlockHash, _state_diff: &ThinStateDiff, _num_addr_accessed: usize, - madara_backend: Arc<Backend<B>> + madara_backend: Arc<Backend<B>> ) -> Result<(), Error>

\ No newline at end of file diff --git a/mc_data_availability/fn.update_state.html b/mc_data_availability/fn.update_state.html index 026390502b..b3e717a3c3 100644 --- a/mc_data_availability/fn.update_state.html +++ b/mc_data_availability/fn.update_state.html @@ -1,5 +1,5 @@ -update_state in mc_data_availability - Rust
pub async fn update_state<B: BlockT, H: HasherT>(
-    madara_backend: Arc<Backend<B>>,
+update_state in mc_data_availability - Rust
pub async fn update_state<B: BlockT, H: HasherT>(
+    madara_backend: Arc<Backend<B>>,
     da_client: Arc<dyn DaClient + Send + Sync>,
     block_da_data: BlockDAData
 ) -> Result<(), Error>
\ No newline at end of file diff --git a/mc_data_availability/struct.DataAvailabilityWorker.html b/mc_data_availability/struct.DataAvailabilityWorker.html index 74d9fa7e18..ee71ff3496 100644 --- a/mc_data_availability/struct.DataAvailabilityWorker.html +++ b/mc_data_availability/struct.DataAvailabilityWorker.html @@ -1,6 +1,6 @@ DataAvailabilityWorker in mc_data_availability - Rust
pub struct DataAvailabilityWorker<B, H>(_);

Implementations§

source§

impl<B, H> DataAvailabilityWorker<B, H>where B: BlockT, - H: HasherT,

The client worker for DA related tasks

+ H: HasherT,

The client worker for DA related tasks

Listen to new block state diff and spawn new threads to execute each block flow concurently. The flow goes as follow:

    @@ -11,7 +11,7 @@ da_client: Arc<dyn DaClient + Send + Sync>, prometheus: Option<PrometheusRegistry>, state_diffs_rx: Receiver<BlockDAData>, - madara_backend: Arc<Backend<B>> + madara_backend: Arc<Backend<B>> )

Auto Trait Implementations§

§

impl<B, H> RefUnwindSafe for DataAvailabilityWorker<B, H>where B: RefUnwindSafe, H: RefUnwindSafe,

§

impl<B, H> Send for DataAvailabilityWorker<B, H>where diff --git a/mc_genesis_data_provider/struct.OnDiskGenesisConfig.html b/mc_genesis_data_provider/struct.OnDiskGenesisConfig.html index f98a29ef4c..d9dc9b8599 100644 --- a/mc_genesis_data_provider/struct.OnDiskGenesisConfig.html +++ b/mc_genesis_data_provider/struct.OnDiskGenesisConfig.html @@ -1,4 +1,4 @@ -OnDiskGenesisConfig in mc_genesis_data_provider - Rust
pub struct OnDiskGenesisConfig(pub PathBuf);

Tuple Fields§

§0: PathBuf

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +OnDiskGenesisConfig in mc_genesis_data_provider - Rust
pub struct OnDiskGenesisConfig(pub PathBuf);

Tuple Fields§

§0: PathBuf

Trait Implementations§

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> Conv for T

§

fn conv<T>(self) -> Twhere diff --git a/mc_genesis_data_provider/trait.GenesisProvider.html b/mc_genesis_data_provider/trait.GenesisProvider.html index f3066fb407..69e681cf6f 100644 --- a/mc_genesis_data_provider/trait.GenesisProvider.html +++ b/mc_genesis_data_provider/trait.GenesisProvider.html @@ -2,5 +2,5 @@ type LoadGenesisDataError: Error; // Required method - fn load_genesis_data(&self) -> Result<GenesisData, LoadGenesisDataError>; -}

Required Associated Types§

Required Methods§

Implementors§

\ No newline at end of file + fn load_genesis_data(&self) -> Result<GenesisData, LoadGenesisDataError>; +}

Required Associated Types§

Required Methods§

Implementors§

\ No newline at end of file diff --git a/mc_l1_messages/error/enum.L1MessagesWorkerError.html b/mc_l1_messages/error/enum.L1MessagesWorkerError.html index b62dc473de..cc9a556e48 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 dbb16e2f2b..24dd784f95 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 17fe4f0768..6e2628d436 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§

§

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>( +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>( __deserializer: __D ) -> Result<EthereumClientConfig, <__D as Deserializer<'de>>::Error>where - __D: Deserializer<'de>,

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

impl Serialize for EthereumClientConfig

§

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

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

impl Serialize for EthereumClientConfig

source§

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 2106080b6b..3c40d95021 100644 --- a/mc_mapping_sync/struct.MappingSyncWorker.html +++ b/mc_mapping_sync/struct.MappingSyncWorker.html @@ -4,15 +4,15 @@ timeout: Duration, client: Arc<C>, substrate_backend: Arc<BE>, - frontier_backend: Arc<Backend<B>>, + frontier_backend: Arc<Backend<B>>, retry_times: usize, sync_from: <B::Header as HeaderT>::Number, prometheus_registry: Option<Registry> ) -> Self

Trait Implementations§

source§

impl<B: BlockT, C, BE, H> Stream for MappingSyncWorker<B, C, BE, H>where C: ProvideRuntimeApi<B> + HeaderBackend<B> + StorageProvider<B, BE>, - C::Api: StarknetRuntimeApi<B>, + C::Api: StarknetRuntimeApi<B>, BE: Backend<B>, - H: HasherT,

§

type Item = ()

Values yielded by the stream.
source§

fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<()>>

Attempt to pull out the next value of this stream, registering the + H: HasherT,

§

type Item = ()

Values yielded by the stream.
source§

fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<()>>

Attempt to pull out the next value of this stream, registering the current task for wakeup if the value is not yet available, and returning None if the stream is exhausted. Read more
§

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

Returns the bounds on the remaining length of the stream. Read more
source§

impl<B: BlockT, C, BE, H> Unpin for MappingSyncWorker<B, C, BE, H>

Auto Trait Implementations§

§

impl<B, C, BE, H> !RefUnwindSafe for MappingSyncWorker<B, C, BE, H>

§

impl<B, C, BE, H> Send for MappingSyncWorker<B, C, BE, H>where BE: Send + Sync, diff --git a/mc_rpc/fn.get_block_by_block_hash.html b/mc_rpc/fn.get_block_by_block_hash.html index f8b9b2805f..ee14b80402 100644 --- a/mc_rpc/fn.get_block_by_block_hash.html +++ b/mc_rpc/fn.get_block_by_block_hash.html @@ -1,7 +1,7 @@ get_block_by_block_hash in mc_rpc - Rust
pub fn get_block_by_block_hash<B, C>(
     client: &C,
     block_hash: <B as Block>::Hash
-) -> Result<Block, Error>where
+) -> Result<Block, Error>where
     B: Block,
     C: HeaderBackend<B>,
Expand description

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

\ No newline at end of file diff --git a/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html b/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html index cd9fa2c533..4a0d1fd949 100644 --- a/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html +++ b/mc_rpc/starknetrpcwrapper/struct.PredeployedAccountWithBalance.html @@ -1,7 +1,7 @@ PredeployedAccountWithBalance in mc_rpc::starknetrpcwrapper - Rust
pub struct PredeployedAccountWithBalance {
-    pub account: PredeployedAccount,
+    pub account: PredeployedAccount,
     pub balance: FieldElement,
-}

Fields§

§account: PredeployedAccount§balance: FieldElement

Trait Implementations§

§

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

§

fn deserialize<__D>( +}

Fields§

§account: PredeployedAccount§balance: FieldElement

Trait Implementations§

§

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

§

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

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

impl Serialize for PredeployedAccountWithBalance

§

fn serialize<__S>( diff --git a/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html b/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html index f84169dc26..cadd46c73f 100644 --- a/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html +++ b/mc_rpc/starknetrpcwrapper/struct.StarknetRpcWrapper.html @@ -4,17 +4,17 @@ 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>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static, - 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 + 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>, + 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

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

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

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

source§

fn add_declare_transaction<'life0, 'async_trait>( &'life0 self, declare_transaction: BroadcastedDeclareTransaction ) -> Pin<Box<dyn Future<Output = RpcResult<DeclareTransactionResult>> + Send + 'async_trait>>where diff --git a/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html index 5b5b675729..e49ba93708 100644 --- a/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.MadaraRpcApiServer.html @@ -16,14 +16,14 @@ 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>, + 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>, + 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 21475eb24b..0407d0bb00 100644 --- a/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.StarknetReadRpcApiServer.html @@ -199,14 +199,14 @@ P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + 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 + 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>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,

\ No newline at end of file + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html index 3d0600487d..6587ed8988 100644 --- a/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.StarknetTraceRpcApiServer.html @@ -51,14 +51,14 @@ BE: Backend<B> + '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>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,

\ No newline at end of file + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html b/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html index 771ad1b567..3e6593953b 100644 --- a/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html +++ b/mc_rpc/starknetrpcwrapper/trait.StarknetWriteRpcApiServer.html @@ -47,14 +47,14 @@ P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + 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 + 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>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,

\ No newline at end of file + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc/struct.PredeployedAccountWithBalance.html b/mc_rpc/struct.PredeployedAccountWithBalance.html index 785bb6def5..10d204d2a6 100644 --- a/mc_rpc/struct.PredeployedAccountWithBalance.html +++ b/mc_rpc/struct.PredeployedAccountWithBalance.html @@ -1,7 +1,7 @@ PredeployedAccountWithBalance in mc_rpc - Rust
pub struct PredeployedAccountWithBalance {
-    pub account: PredeployedAccount,
+    pub account: PredeployedAccount,
     pub balance: FieldElement,
-}

Fields§

§account: PredeployedAccount§balance: FieldElement

Trait Implementations§

§

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

§

fn deserialize<__D>( +}

Fields§

§account: PredeployedAccount§balance: FieldElement

Trait Implementations§

§

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

§

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

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

impl Serialize for PredeployedAccountWithBalance

§

fn serialize<__S>( diff --git a/mc_rpc/struct.Starknet.html b/mc_rpc/struct.Starknet.html index a76c72f271..223aed6d6a 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<Result<Vec<Felt252Wrapper>, DispatchError>, StarknetRpcApiError>

source

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

source

pub fn do_estimate_message_fee( &self, block_hash: B::Hash, message: HandleL1MessageTransaction @@ -55,7 +55,7 @@

Returns
&self, best_block_hash: B::Hash, error: DispatchError -) -> Result<StarknetTransactionExecutionError, StarknetRpcApiError>
source

pub fn convert_tx_to_extrinsic( +) -> Result<StarknetTransactionExecutionError, StarknetRpcApiError>

source

pub fn convert_tx_to_extrinsic( &self, best_block_hash: <B as BlockT>::Hash, transaction: UserTransaction @@ -66,7 +66,7 @@

Returns
) -> Result<Vec<(u64, u64)>, 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> @@ -86,7 +86,7 @@

Returns
) -> Result<TransactionExecutionInfo, StarknetRpcApiError>
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>>, + backend: Arc<Backend<B>>, overrides: Arc<OverrideHandle<B>>, pool: Arc<P>, graph: Arc<Pool<A>>, @@ -100,24 +100,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>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static, - 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 + 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>, + 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

+ 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
@@ -515,9 +515,9 @@
Errors
BE: Backend<B> + '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>, @@ -540,9 +540,9 @@

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

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

source§

fn add_declare_transaction<'life0, 'async_trait>( &'life0 self, declare_transaction: BroadcastedDeclareTransaction ) -> Pin<Box<dyn Future<Output = RpcResult<DeclareTransactionResult>> + Send + 'async_trait>>where diff --git a/mc_rpc/trait.MadaraRpcApiServer.html b/mc_rpc/trait.MadaraRpcApiServer.html index 25d3c73e05..ee4d699d60 100644 --- a/mc_rpc/trait.MadaraRpcApiServer.html +++ b/mc_rpc/trait.MadaraRpcApiServer.html @@ -16,14 +16,14 @@ 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>, + 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>, + 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 60be20cd26..ad0182387b 100644 --- a/mc_rpc/trait.StarknetReadRpcApiServer.html +++ b/mc_rpc/trait.StarknetReadRpcApiServer.html @@ -199,14 +199,14 @@ P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + 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 + 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>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,

\ No newline at end of file + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc/trait.StarknetTraceRpcApiServer.html b/mc_rpc/trait.StarknetTraceRpcApiServer.html index e662a9f191..2425ed2321 100644 --- a/mc_rpc/trait.StarknetTraceRpcApiServer.html +++ b/mc_rpc/trait.StarknetTraceRpcApiServer.html @@ -51,14 +51,14 @@ P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + 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 + 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, 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 39565418ab..ca7cdb46eb 100644 --- a/mc_rpc/trait.StarknetWriteRpcApiServer.html +++ b/mc_rpc/trait.StarknetWriteRpcApiServer.html @@ -47,14 +47,14 @@ P: TransactionPool<Block = B> + 'static, BE: Backend<B> + 'static, C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, - C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, + 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 + 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>, + C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, G: GenesisProvider + Send + Sync + 'static, - H: HasherT + Send + Sync + 'static,

\ No newline at end of file + H: HasherT + Send + Sync + 'static, \ No newline at end of file diff --git a/mc_rpc_core/struct.PredeployedAccountWithBalance.html b/mc_rpc_core/struct.PredeployedAccountWithBalance.html index 1a2591058f..8ff026449b 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/utils/fn.get_block_by_block_hash.html b/mc_rpc_core/utils/fn.get_block_by_block_hash.html index 8c7691ddec..21c1e3f7bb 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_settlement/ethereum/client/struct.EthereumClientConfig.html b/mc_settlement/ethereum/client/struct.EthereumClientConfig.html index 653b26e80d..81bc0512e1 100644 --- a/mc_settlement/ethereum/client/struct.EthereumClientConfig.html +++ b/mc_settlement/ethereum/client/struct.EthereumClientConfig.html @@ -1,11 +1,11 @@ -EthereumClientConfig in mc_settlement::ethereum::client - 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>( +EthereumClientConfig in mc_settlement::ethereum::client - 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>( __deserializer: __D ) -> Result<EthereumClientConfig, <__D as Deserializer<'de>>::Error>where - __D: Deserializer<'de>,

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

impl Serialize for EthereumClientConfig

§

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

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

impl Serialize for EthereumClientConfig

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where diff --git a/mc_settlement/ethereum/client/struct.StarknetContractClient.html b/mc_settlement/ethereum/client/struct.StarknetContractClient.html index cae83fcfcc..402f739d2a 100644 --- a/mc_settlement/ethereum/client/struct.StarknetContractClient.html +++ b/mc_settlement/ethereum/client/struct.StarknetContractClient.html @@ -15,7 +15,7 @@ Self: 'async_trait, 'life0: 'async_trait,

source§

fn update_state<'life0, 'async_trait>( &'life0 self, - program_output: StarknetOsOutput + program_output: StarknetOsOutput ) -> Pin<Box<dyn Future<Output = Result<(), B>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source§

impl TryFrom<EthereumClientConfig> for StarknetContractClient

§

type Error = Error

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

fn try_from(config: EthereumClientConfig) -> Result<Self>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/mc_settlement/ethereum/errors/enum.Error.html b/mc_settlement/ethereum/errors/enum.Error.html index 7d2564d9a6..36d7cbea2d 100644 --- a/mc_settlement/ethereum/errors/enum.Error.html +++ b/mc_settlement/ethereum/errors/enum.Error.html @@ -4,10 +4,10 @@ HexParser(FromHexError), Contract(ContractError<LocalWalletSignerMiddleware>), Provider(ProviderError), - EthereumClient(Error), + EthereumClient(Error), MissingTransactionRecepit, }
Expand description

Ethereum client error type.

-

Variants§

§

UrlParser(ParseError)

§

LocalWallet(WalletError)

§

HexParser(FromHexError)

§

Contract(ContractError<LocalWalletSignerMiddleware>)

§

Provider(ProviderError)

§

EthereumClient(Error)

§

MissingTransactionRecepit

Trait Implementations§

source§

impl Debug for Error

source§

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

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

impl Display for Error

source§

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

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

impl Error for Error

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 From<ContractError<SignerMiddleware<Provider<Provider>, Wallet<SigningKey<Secp256k1>>>>> for Error

source§

fn from(source: ContractError<LocalWalletSignerMiddleware>) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl<B: Block> From<Error> for Error<B>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<FromHexError> for Error

source§

fn from(source: FromHexError) -> Self

Converts to this type from the input type.
source§

impl From<ParseError> for Error

source§

fn from(source: ParseError) -> Self

Converts to this type from the input type.
source§

impl From<ProviderError> for Error

source§

fn from(source: ProviderError) -> Self

Converts to this type from the input type.
source§

impl From<WalletError> for Error

source§

fn from(source: WalletError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for Twhere +

Variants§

§

UrlParser(ParseError)

§

LocalWallet(WalletError)

§

HexParser(FromHexError)

§

Contract(ContractError<LocalWalletSignerMiddleware>)

§

Provider(ProviderError)

§

EthereumClient(Error)

§

MissingTransactionRecepit

Trait Implementations§

source§

impl Debug for Error

source§

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

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

impl Display for Error

source§

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

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

impl Error for Error

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 From<ContractError<SignerMiddleware<Provider<Provider>, Wallet<SigningKey<Secp256k1>>>>> for Error

source§

fn from(source: ContractError<LocalWalletSignerMiddleware>) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl<B: Block> From<Error> for Error<B>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<FromHexError> for Error

source§

fn from(source: FromHexError) -> Self

Converts to this type from the input type.
source§

impl From<ParseError> for Error

source§

fn from(source: ParseError) -> Self

Converts to this type from the input type.
source§

impl From<ProviderError> for Error

source§

fn from(source: ProviderError) -> Self

Converts to this type from the input type.
source§

impl From<WalletError> for Error

source§

fn from(source: WalletError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

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/mc_settlement/struct.SettlementWorker.html b/mc_settlement/struct.SettlementWorker.html index f1dc7d17c0..d21572865d 100644 --- a/mc_settlement/struct.SettlementWorker.html +++ b/mc_settlement/struct.SettlementWorker.html @@ -1,11 +1,11 @@ SettlementWorker in mc_settlement - Rust
pub struct SettlementWorker<B, H, SC>(_);

Implementations§

source§

impl<B, H, SC> SettlementWorker<B, H, SC>where B: BlockT, - H: HasherT, + H: HasherT, SC: ProvideRuntimeApi<B> + HeaderBackend<B> + BlockchainEvents<B>, - SC::Api: StarknetRuntimeApi<B>,

source

pub async fn sync_state( + SC::Api: StarknetRuntimeApi<B>,

source

pub async fn sync_state( substrate_client: Arc<SC>, settlement_provider: Box<dyn SettlementProvider<B>>, - madara_backend: Arc<Backend<B>>, + madara_backend: Arc<Backend<B>>, retry_strategy: Box<dyn RetryStrategy<B>> )

A thread responsible for updating (progressing) Starknet state on the settlement layer. For now we use a simplified setup without validity proofs & DA, but in the future diff --git a/mc_settlement/trait.SettlementProvider.html b/mc_settlement/trait.SettlementProvider.html index e07ad5c591..cba6a6cffd 100644 --- a/mc_settlement/trait.SettlementProvider.html +++ b/mc_settlement/trait.SettlementProvider.html @@ -17,7 +17,7 @@ 'life0: 'async_trait; fn update_state<'life0, 'async_trait>( &'life0 self, - program_output: StarknetOsOutput + program_output: StarknetOsOutput ) -> Pin<Box<dyn Future<Output = Result<(), B>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; @@ -35,7 +35,7 @@ Self: 'async_trait, 'life0: 'async_trait,

source

fn update_state<'life0, 'async_trait>( &'life0 self, - program_output: StarknetOsOutput + program_output: StarknetOsOutput ) -> Pin<Box<dyn Future<Output = Result<(), B>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

\ No newline at end of file diff --git a/mc_storage/fn.onchain_storage_schema.html b/mc_storage/fn.onchain_storage_schema.html index 4106c98ba5..256c40b940 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 258b9465f5..d7a4fde96b 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 5ad862b4e2..e1a9b8827a 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 6b71b60d44..e99b5d9d46 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 899b8872a4..8f3269db71 100644 --- a/mc_storage/trait.StorageOverride.html +++ b/mc_storage/trait.StorageOverride.html @@ -65,7 +65,7 @@ ) -> Option<Vec<StarknetEvent>>

Implementors§

source§

impl<B, C> StorageOverride<B> for RuntimeApiStorageOverride<B, C>where B: BlockT, C: ProvideRuntimeApi<B> + Send + Sync, - C::Api: StarknetRuntimeApi<B>,

source§

impl<B, C, BE> StorageOverride<B> for SchemaV1Override<B, C, BE>where + C::Api: StarknetRuntimeApi<B>,

source§

impl<B, C, BE> StorageOverride<B> for SchemaV1Override<B, C, BE>where B: BlockT, C: HeaderBackend<B> + StorageProvider<B, BE> + 'static, BE: Backend<B> + 'static,

\ No newline at end of file diff --git a/mp_block/struct.Header.html b/mp_block/struct.Header.html index 42986936d6..e07edfdcef 100644 --- a/mp_block/struct.Header.html +++ b/mp_block/struct.Header.html @@ -6,7 +6,7 @@ pub transaction_count: u128, pub event_count: u128, pub protocol_version: u8, - pub l1_gas_price: ResourcePrice, + pub l1_gas_price: ResourcePrice, pub extra_data: Option<U256>, }
Expand description

Starknet header definition.

Fields§

§parent_block_hash: StarkHash

The hash of this block’s parent.

@@ -16,7 +16,7 @@
§transaction_count: u128

The number of transactions in a block

§event_count: u128

The number of events

§protocol_version: u8

The version of the Starknet protocol used when creating this block

-
§l1_gas_price: ResourcePrice

l1 gas price for this block

+
§l1_gas_price: ResourcePrice

l1 gas price for this block

§extra_data: Option<U256>

Extraneous data that might be useful for running transactions

Implementations§

source§

impl Header

source

pub fn new( parent_block_hash: StarkHash, @@ -26,7 +26,7 @@ transaction_count: u128, event_count: u128, protocol_version: u8, - l1_gas_price: ResourcePrice, + l1_gas_price: ResourcePrice, extra_data: Option<U256> ) -> Self

Creates a new header.

source

pub fn into_block_context( diff --git a/mp_block/type.BlockTransactions.html b/mp_block/type.BlockTransactions.html index d3a5f54cb9..48c7ad9fa3 100644 --- a/mp_block/type.BlockTransactions.html +++ b/mp_block/type.BlockTransactions.html @@ -1,2 +1,2 @@ -BlockTransactions in mp_block - Rust

Type Definition mp_block::BlockTransactions

source ·
pub type BlockTransactions = Vec<Transaction>;
Expand description

Block Transactions

+BlockTransactions in mp_block - Rust

Type Definition mp_block::BlockTransactions

source ·
pub type BlockTransactions = Vec<Transaction>;
Expand description

Block Transactions

\ No newline at end of file diff --git a/mp_digest_log/enum.Log.html b/mp_digest_log/enum.Log.html index 609640e8b9..ffd8579309 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 bc1898e196..540dce803d 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 49dfc490f2..36085d3e8f 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_messages/struct.MessageL1ToL2.html b/mp_messages/struct.MessageL1ToL2.html index 999706ea25..c74eb0b30b 100644 --- a/mp_messages/struct.MessageL1ToL2.html +++ b/mp_messages/struct.MessageL1ToL2.html @@ -16,7 +16,7 @@ &self, __codec_dest_edqy: &mut __CodecOutputEdqy )

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

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

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> Rwhere - F: FnOnce(&[u8]) -> R,

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

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
source§

impl From<HandleL1MessageTransaction> for MessageL1ToL2

source§

fn from(tx: HandleL1MessageTransaction) -> Self

Converts to this type from the input type.
source§

impl PartialEq<MessageL1ToL2> for MessageL1ToL2

source§

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

This method tests for self and other values to be equal, and is used + F: FnOnce(&[u8]) -> R,

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

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more

source§

impl From<HandleL1MessageTransaction> for MessageL1ToL2

source§

fn from(tx: HandleL1MessageTransaction) -> Self

Converts to this type from the input type.
source§

impl PartialEq<MessageL1ToL2> for MessageL1ToL2

source§

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

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

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

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

impl TypeInfo for MessageL1ToL2

§

type Identity = MessageL1ToL2

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

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl EncodeLike<MessageL1ToL2> for MessageL1ToL2

source§

impl Eq for MessageL1ToL2

source§

impl StructuralEq for MessageL1ToL2

source§

impl StructuralPartialEq for MessageL1ToL2

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/pallet_starknet/blockifier_state_adapter/struct.BlockifierStateAdapter.html b/pallet_starknet/blockifier_state_adapter/struct.BlockifierStateAdapter.html index c1c68a322e..d114a5b9e5 100644 --- a/pallet_starknet/blockifier_state_adapter/struct.BlockifierStateAdapter.html +++ b/pallet_starknet/blockifier_state_adapter/struct.BlockifierStateAdapter.html @@ -26,8 +26,8 @@ &mut self, class_hash: ClassHash, compiled_class_hash: CompiledClassHash -) -> StateResult<()>

Sets the given compiled class hash under the given class hash.
source§

impl<T> StateChanges for BlockifierStateAdapter<T>where - T: Config,

source§

fn count_state_changes(&self) -> StateChangesCount

This function counts the storage var updates implied by a transaction and the newly declared +) -> StateResult<()>
Sets the given compiled class hash under the given class hash.
source§

impl<T> StateChanges for BlockifierStateAdapter<T>where + T: Config,

source§

fn count_state_changes(&self) -> StateChangesCount

This function counts the storage var updates implied by a transaction and the newly declared class hashes.
source§

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

source§

fn get_storage_at( &mut self, contract_address: ContractAddress, diff --git a/pallet_starknet/blockifier_state_adapter/struct.CachedBlockifierStateAdapter.html b/pallet_starknet/blockifier_state_adapter/struct.CachedBlockifierStateAdapter.html index 1148f58e21..5eb4562494 100644 --- a/pallet_starknet/blockifier_state_adapter/struct.CachedBlockifierStateAdapter.html +++ b/pallet_starknet/blockifier_state_adapter/struct.CachedBlockifierStateAdapter.html @@ -21,8 +21,8 @@ &mut self, class_hash: ClassHash, compiled_class_hash: CompiledClassHash -) -> StateResult<()>

Sets the given compiled class hash under the given class hash.
source§

fn to_state_diff(&self) -> CommitmentStateDiff

source§

impl<T> StateChanges for CachedBlockifierStateAdapter<T>where - T: Config,

source§

fn count_state_changes(&self) -> StateChangesCount

This function counts the storage var updates implied by a transaction and the newly declared +) -> StateResult<()>
Sets the given compiled class hash under the given class hash.
source§

fn to_state_diff(&self) -> CommitmentStateDiff

source§

impl<T> StateChanges for CachedBlockifierStateAdapter<T>where + T: Config,

source§

fn count_state_changes(&self) -> StateChangesCount

This function counts the storage var updates implied by a transaction and the newly declared class hashes.
source§

impl<T> StateReader for CachedBlockifierStateAdapter<T>where T: Config,

source§

fn get_storage_at( &mut self, diff --git a/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html b/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html index daf8a0b623..bde988c38b 100644 --- a/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html +++ b/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html @@ -1,7 +1,7 @@ RuntimeExecutionConfigBuilder in pallet_starknet::execution_config - Rust
pub struct RuntimeExecutionConfigBuilder(_);
Expand description

Builder pattern for ExecutionConfig. Combines the execution configuration from the runtime with the possible flags for each transaction mode (e.g. normal, estimate fee, simulate, …).

-

Implementations§

source§

impl RuntimeExecutionConfigBuilder

source

pub fn new<T: Config>() -> Self

source

pub fn with_query_mode(self) -> Self

source

pub fn with_simulation_mode(self, simulation_flags: &SimulationFlags) -> Self

source

pub fn with_disable_nonce_validation(self) -> Self

source

pub fn with_offset_version(self) -> Self

source

pub fn build(self) -> ExecutionConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Implementations§

source§

impl RuntimeExecutionConfigBuilder

source

pub fn new<T: Config>() -> Self

source

pub fn with_query_mode(self) -> Self

source

pub fn with_simulation_mode(self, simulation_flags: &SimulationFlags) -> Self

source

pub fn with_disable_nonce_validation(self) -> Self

source

pub fn with_offset_version(self) -> Self

source

pub fn build(self) -> ExecutionConfig

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.GenesisData.html b/pallet_starknet/genesis_loader/struct.GenesisData.html index 3d8f5a1a2d..f146f751e9 100644 --- a/pallet_starknet/genesis_loader/struct.GenesisData.html +++ b/pallet_starknet/genesis_loader/struct.GenesisData.html @@ -1,21 +1,21 @@ -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>,
     pub storage: Vec<((HexFelt, HexFelt), HexFelt), Global>,
     pub fee_token_address: HexFelt,
     pub chain_id: String,
-}

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>§fee_token_address: HexFelt§chain_id: String

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>( +}

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>§fee_token_address: HexFelt§chain_id: String

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

source§

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
§

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 + __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 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.
§

impl Serialize for GenesisData

§

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

source§

impl Serialize for GenesisData

source§

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
§

impl Eq for GenesisData

§

impl StructuralEq for GenesisData

§

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
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 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 5a477af3d9..9151cd1ba1 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§

§

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 +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 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.
§

impl Eq for GenesisLoader

§

impl StructuralEq for GenesisLoader

§

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.

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 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 2a6e6f9b60..f010923282 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§

§

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>( +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>( __deserializer: __D ) -> Result<HexFelt, <__D as Deserializer<'de>>::Error>where - __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 + __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 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.
§

impl Serialize for HexFelt

§

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

source§

impl Serialize for HexFelt

source§

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
§

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 + __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 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 d83d3c7d6e..206bebbff7 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§

§

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

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

source§

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
§

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 + __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 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.
§

impl Serialize for PredeployedAccount

§

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

source§

impl Serialize for PredeployedAccount

source§

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
§

impl Eq for PredeployedAccount

§

impl StructuralEq for PredeployedAccount

§

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
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 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 3a6a2b6c39..f38112f9ee 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 27f99ddae5..e9017401c6 100644 --- a/pallet_starknet/pallet/struct.GenesisConfig.html +++ b/pallet_starknet/pallet/struct.GenesisConfig.html @@ -4,7 +4,7 @@ pub contract_classes: Vec<(SierraClassHash, ContractClass)>, pub storage: Vec<(ContractStorageKey, StarkFelt)>, pub fee_token_address: ContractAddress, - pub chain_id: Felt252Wrapper, + pub chain_id: Felt252Wrapper, pub _phantom: PhantomData<T>, }
Expand description

Starknet genesis configuration.

Fields§

§contracts: Vec<(ContractAddress, SierraClassHash)>

The contracts to be deployed at genesis. @@ -19,7 +19,7 @@ contracts classes.

§storage: Vec<(ContractStorageKey, StarkFelt)>§fee_token_address: ContractAddress

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

-
§chain_id: Felt252Wrapper

Chain Id, this must be set in the genesis file +

§chain_id: Felt252Wrapper

Chain Id, this must be set in the genesis file The default value will be MADARA custom chain id

§_phantom: PhantomData<T>

Trait Implementations§

source§

impl<T: Config> BuildGenesisConfig for GenesisConfig<T>

source§

fn build(&self)

The build function puts initial GenesisConfig keys/values pairs into the storage.
source§

impl<T: Config> BuildStorage for GenesisConfig<T>

source§

fn assimilate_storage(&self, storage: &mut Storage) -> Result<(), String>

Assimilate the storage for this module into pre-existing overlays.
§

fn build_storage(&self) -> Result<Storage, String>

Build the storage out of this builder.
source§

impl<T: Debug + Config> Debug for GenesisConfig<T>

source§

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

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

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

Default impl required by pallet::GenesisBuild.

source§

fn default() -> Self

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

impl<'de, T: Config> Deserialize<'de> for GenesisConfig<T>

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where diff --git a/pallet_starknet/pallet/struct.Pallet.html b/pallet_starknet/pallet/struct.Pallet.html index 9951253b4e..2b5def57ad 100644 --- a/pallet_starknet/pallet/struct.Pallet.html +++ b/pallet_starknet/pallet/struct.Pallet.html @@ -4,16 +4,16 @@ transactions: Vec<UserTransaction> ) -> Result<Vec<(u64, u64)>, DispatchError>

source

pub fn simulate_transactions( transactions: Vec<UserTransaction>, - simulation_flags: &SimulationFlags -) -> Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>

source

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

source

pub fn simulate_message( message: HandleL1MessageTransaction, - simulation_flags: &SimulationFlags -) -> Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>

source

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

source

pub fn estimate_message_fee( message: HandleL1MessageTransaction ) -> Result<(u128, u64, u64), DispatchError>

source

pub fn re_execute_transactions( transactions_before: Vec<UserOrL1HandlerTransaction>, transactions_to_trace: Vec<UserOrL1HandlerTransaction> -) -> Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>

source§

impl<T: Config> Pallet<T>

source

pub fn validate_unsigned_tx_nonce( +) -> Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>

source§

impl<T: Config> Pallet<T>

source

pub fn validate_unsigned_tx_nonce( transaction: &UserOrL1HandlerTransaction ) -> Result<TxPriorityInfo, InvalidTransaction>

source

pub fn validate_unsigned_tx( transaction: &UserOrL1HandlerTransaction @@ -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

pub fn contract_state_root_by_address<KArg>(k: KArg) -> Option<Felt252Wrapper>where +

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

    Call a smart contract function.

    +) -> Result<Vec<Felt252Wrapper>, DispatchError>

    Call a smart contract function.

source

pub fn get_storage_at( contract_address: ContractAddress, key: StorageKey @@ -157,7 +157,7 @@

Returns
tx_hash: TransactionHash, execute_call_info: &Option<CallInfo>, fee_transfer_call_info: &Option<CallInfo> -)
source

pub fn program_hash() -> Felt252Wrapper

source

pub fn config_hash() -> StarkHash

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 config_hash() -> StarkHash

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 24104892ff..d36a2ab773 100644 --- a/pallet_starknet/pallet/trait.Config.html +++ b/pallet_starknet/pallet/trait.Config.html @@ -1,5 +1,5 @@ Config in pallet_starknet::pallet - Rust
pub trait Config: Config {
-    type SystemHash: HasherT;
+    type SystemHash: HasherT;
     type TimestampProvider: Time;
     type L1GasPrice: Get<ResourcePrice>;
     type UnsignedPriority: Get<TransactionPriority>;
@@ -10,7 +10,7 @@
     type ValidateMaxNSteps: Get<u32>;
     type ProtocolVersion: Get<u8>;
     type MaxRecursionDepth: Get<u32>;
-    type ProgramHash: Get<Felt252Wrapper>;
+    type ProgramHash: Get<Felt252Wrapper>;
 }
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 which it is embedded in. A type, function, or constant in this trait is essentially left to be @@ -19,7 +19,7 @@ Configure the pallet by specifying the parameters and types on which it depends. We’re coupling the starknet pallet to the tx payment pallet to be able to override the fee mechanism and comply with starknet which uses an ER20 as fee token

-

Required Associated Types§

source

type SystemHash: HasherT

The hashing function to use.

+

Required Associated Types§

source

type SystemHash: HasherT

The hashing function to use.

source

type TimestampProvider: Time

The block time

source

type L1GasPrice: Get<ResourcePrice>

The gas price

source

type UnsignedPriority: Get<TransactionPriority>

A configuration for base priority of unsigned transactions.

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

source

type DisableTransactionFee: Get<bool>

A bool to disable transaction fees and make all transactions free

source

type DisableNonceValidation: Get<bool>

A bool to disable Nonce validation

-
source

type InvokeTxMaxNSteps: Get<u32>

source

type ValidateMaxNSteps: Get<u32>

source

type ProtocolVersion: Get<u8>

source

type MaxRecursionDepth: Get<u32>

source

type ProgramHash: Get<Felt252Wrapper>

Implementors§

\ No newline at end of file +

source

type InvokeTxMaxNSteps: Get<u32>

source

type ValidateMaxNSteps: Get<u32>

source

type ProtocolVersion: Get<u8>

source

type MaxRecursionDepth: Get<u32>

source

type ProgramHash: Get<Felt252Wrapper>

Implementors§

\ No newline at end of file diff --git a/pallet_starknet/pallet/type.ChainIdStorage.html b/pallet_starknet/pallet/type.ChainIdStorage.html index 0ca9e4dc80..f7c4b9bdd0 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/transaction_validation/enum.TxPriorityInfo.html b/pallet_starknet/transaction_validation/enum.TxPriorityInfo.html index 9348b2bfda..b967c5394f 100644 --- a/pallet_starknet/transaction_validation/enum.TxPriorityInfo.html +++ b/pallet_starknet/transaction_validation/enum.TxPriorityInfo.html @@ -1,14 +1,14 @@ TxPriorityInfo in pallet_starknet::transaction_validation - Rust
pub enum TxPriorityInfo {
     InvokeV0,
     L1Handler {
-        nonce: Felt252Wrapper,
+        nonce: Felt252Wrapper,
     },
     RegularTxs {
-        sender_address: Felt252Wrapper,
-        transaction_nonce: Felt252Wrapper,
-        sender_nonce: Felt252Wrapper,
+        sender_address: Felt252Wrapper,
+        transaction_nonce: Felt252Wrapper,
+        sender_nonce: Felt252Wrapper,
     },
-}

Variants§

§

InvokeV0

§

L1Handler

Fields

§nonce: Felt252Wrapper
§

RegularTxs

Fields

§sender_address: Felt252Wrapper
§transaction_nonce: Felt252Wrapper
§sender_nonce: Felt252Wrapper

Trait Implementations§

source§

impl Debug for TxPriorityInfo

source§

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

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

impl PartialEq<TxPriorityInfo> for TxPriorityInfo

source§

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

This method tests for self and other values to be equal, and is used +}

Variants§

§

InvokeV0

§

L1Handler

Fields

§

RegularTxs

Fields

§sender_address: Felt252Wrapper
§transaction_nonce: Felt252Wrapper
§sender_nonce: Felt252Wrapper

Trait Implementations§

source§

impl Debug for TxPriorityInfo

source§

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

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

impl PartialEq<TxPriorityInfo> for TxPriorityInfo

source§

fn eq(&self, other: &TxPriorityInfo) -> 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 TxPriorityInfo

source§

impl StructuralEq for TxPriorityInfo

source§

impl StructuralPartialEq for TxPriorityInfo

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/pallet_starknet/types/struct.BuildTransferInvokeTransaction.html b/pallet_starknet/types/struct.BuildTransferInvokeTransaction.html index bcad5b16e0..e135062081 100644 --- a/pallet_starknet/types/struct.BuildTransferInvokeTransaction.html +++ b/pallet_starknet/types/struct.BuildTransferInvokeTransaction.html @@ -1,12 +1,12 @@ BuildTransferInvokeTransaction in pallet_starknet::types - Rust
pub struct BuildTransferInvokeTransaction {
-    pub sender_address: Felt252Wrapper,
-    pub token_address: Felt252Wrapper,
-    pub recipient: Felt252Wrapper,
-    pub amount_low: Felt252Wrapper,
-    pub amount_high: Felt252Wrapper,
-    pub nonce: Felt252Wrapper,
+    pub sender_address: Felt252Wrapper,
+    pub token_address: Felt252Wrapper,
+    pub recipient: Felt252Wrapper,
+    pub amount_low: Felt252Wrapper,
+    pub amount_high: Felt252Wrapper,
+    pub nonce: Felt252Wrapper,
 }
Expand description

Build invoke transaction for transfer utils

-

Fields§

§sender_address: Felt252Wrapper§token_address: Felt252Wrapper§recipient: Felt252Wrapper§amount_low: Felt252Wrapper§amount_high: Felt252Wrapper§nonce: Felt252Wrapper

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

Fields§

§sender_address: Felt252Wrapper§token_address: Felt252Wrapper§recipient: Felt252Wrapper§amount_low: Felt252Wrapper§amount_high: Felt252Wrapper§nonce: Felt252Wrapper

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/types/struct.DeployAccountTransactionOutput.html b/pallet_starknet/types/struct.DeployAccountTransactionOutput.html index 0c58bb779c..f1ef1823ba 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 e58a9f4d1d..4e0691af6c 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 6f62314649..528aae7660 100644 --- a/pallet_starknet_runtime_api/trait.StarknetRuntimeApi.html +++ b/pallet_starknet_runtime_api/trait.StarknetRuntimeApi.html @@ -17,7 +17,7 @@ address: ContractAddress, function_selector: EntryPointSelector, calldata: Calldata - ) -> Result<Result<Vec<Felt252Wrapper>, DispatchError>, ApiError> { ... } + ) -> Result<Result<Vec<Felt252Wrapper>, DispatchError>, 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 config_hash( &self, __runtime_api_at_param__: <Block as BlockT>::Hash @@ -58,14 +58,14 @@ &self, __runtime_api_at_param__: <Block as BlockT>::Hash, message: HandleL1MessageTransaction, - simulation_flags: SimulationFlags - ) -> Result<Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError> { ... } + simulation_flags: SimulationFlags + ) -> Result<Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError> { ... } fn simulate_transactions( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, transactions: Vec<UserTransaction>, - simulation_flags: SimulationFlags - ) -> Result<Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>, ApiError> { ... } + simulation_flags: SimulationFlags + ) -> Result<Result<Vec<(CommitmentStateDiff, TransactionSimulationResult)>, DispatchError>, ApiError> { ... } fn extrinsic_filter( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -76,13 +76,13 @@ __runtime_api_at_param__: <Block as BlockT>::Hash, transactions_before: Vec<UserOrL1HandlerTransaction>, transactions_to_trace: Vec<UserOrL1HandlerTransaction> - ) -> Result<Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError> { ... } + ) -> Result<Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError> { ... } fn get_index_and_tx_for_tx_hash( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, xts: Vec<<Block as BlockT>::Extrinsic>, - chain_id: Felt252Wrapper, - tx_hash: Felt252Wrapper + chain_id: Felt252Wrapper, + tx_hash: Felt252Wrapper ) -> Result<Option<(u32, Transaction)>, ApiError> { ... } fn get_events_for_tx_by_hash( &self, @@ -129,7 +129,7 @@ address: ContractAddress, function_selector: EntryPointSelector, calldata: Calldata -) -> Result<Result<Vec<Felt252Wrapper>, DispatchError>, ApiError>

Returns a Call response.

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

Returns a Call response.

source

fn contract_class_hash_by_address( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -143,11 +143,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 config_hash( &self, __runtime_api_at_param__: <Block as BlockT>::Hash @@ -170,14 +170,14 @@ &self, __runtime_api_at_param__: <Block as BlockT>::Hash, message: HandleL1MessageTransaction, - simulation_flags: SimulationFlags -) -> Result<Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError>

Simulates single L1 Message and returns its trace

+ simulation_flags: SimulationFlags +) -> Result<Result<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError>

Simulates single L1 Message and returns its trace

source

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

Simulates transactions and returns their trace

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

Simulates transactions and returns their trace

source

fn extrinsic_filter( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -194,7 +194,7 @@ __runtime_api_at_param__: <Block as BlockT>::Hash, transactions_before: Vec<UserOrL1HandlerTransaction>, transactions_to_trace: Vec<UserOrL1HandlerTransaction> -) -> Result<Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, ApiError>

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

+) -> Result<Result<Result<Vec<(TransactionExecutionInfo, CommitmentStateDiff)>, PlaceHolderErrorTypeForFailedStarknetExecution>, DispatchError>, 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
  • @@ -207,8 +207,8 @@
    Return
    &self, __runtime_api_at_param__: <Block as BlockT>::Hash, xts: Vec<<Block as BlockT>::Extrinsic>, - chain_id: Felt252Wrapper, - tx_hash: Felt252Wrapper + chain_id: Felt252Wrapper, + tx_hash: Felt252Wrapper ) -> Result<Option<(u32, Transaction)>, ApiError>
    source

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

    Rustdoc settings

    Back
    \ No newline at end of file +Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file diff --git a/starknet_e2e_test/starknet_sovereign/struct.StarknetSovereign.html b/starknet_e2e_test/starknet_sovereign/struct.StarknetSovereign.html index e57f380c68..da69021c48 100644 --- a/starknet_e2e_test/starknet_sovereign/struct.StarknetSovereign.html +++ b/starknet_e2e_test/starknet_sovereign/struct.StarknetSovereign.html @@ -22,7 +22,7 @@ )

    Initialize Starknet core contract with the specified block number and state root hash. The program and config hashes will be set according to the Madara Goerli configuration.

    Also register Anvil default account as an operator.

    -
source

pub async fn send_message_to_l2(&self, message: &MessageL1ToL2)

source

pub async fn message_to_l1_exists(&self, message: &MessageL2ToL1) -> bool

source

pub async fn message_to_l2_exists(&self, message: &MessageL1ToL2) -> bool

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +

source

pub async fn send_message_to_l2(&self, message: &MessageL1ToL2)

source

pub async fn message_to_l1_exists(&self, message: &MessageL2ToL1) -> bool

source

pub async fn message_to_l2_exists(&self, message: &MessageL1ToL2) -> bool

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