From 59f40b892c65b4f9fa256c60836d9e811ebb8a77 Mon Sep 17 00:00:00 2001 From: EvolveArt Date: Tue, 30 Jan 2024 15:48:12 +0000 Subject: [PATCH] deploy: 3022b0c43195ef94e34fe5a744852f467fcb395c --- da_test/fixtures/fn.da_client.html | 2 +- da_test/fixtures/struct.da_client.html | 2 +- da_test/utils/fn.get_da_client.html | 2 +- help.html | 2 +- implementors/core/convert/trait.From.js | 4 +- .../futures_core/stream/trait.Stream.js | 2 +- implementors/mp_state/trait.StateChanges.js | 2 +- .../fn.extract_l1_messages_worker_config.html | 2 +- .../run/fn.override_dev_environment.html | 2 +- madara/commands/run/fn.run_node.html | 2 +- madara/commands/run/index.html | 2 +- .../struct.CommitmentStateDiffWorker.html | 6 +- 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 +- mc_l1_messages/worker/fn.run_worker.html | 2 +- .../struct.PredeployedAccountWithBalance.html | 4 +- .../utils/fn.get_block_by_block_hash.html | 2 +- mc_settlement/errors/enum.Error.html | 6 +- .../client/struct.StarknetContractClient.html | 2 +- mc_settlement/struct.SettlementWorker.html | 6 +- mc_settlement/trait.SettlementProvider.html | 4 +- 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.RuntimeExecutionConfigBuilder.html | 2 +- .../genesis_loader/struct.GenesisData.html | 8 +-- .../genesis_loader/struct.GenesisLoader.html | 2 +- .../genesis_loader/struct.HexFelt.html | 8 +-- .../struct.PredeployedAccount.html | 6 +- pallet_starknet/pallet/struct.Pallet.html | 16 +++--- pallet_starknet/pallet/trait.Config.html | 14 ++--- .../enum.TxPriorityInfo.html | 10 ++-- ...struct.BuildTransferInvokeTransaction.html | 14 ++--- ...struct.DeployAccountTransactionOutput.html | 4 +- pallet_starknet/types/type.StorageSlot.html | 2 +- .../trait.StarknetRuntimeApi.html | 36 ++++++------ settings.html | 2 +- src/madara/commands/run.rs.html | 56 ++++++++++++++----- 44 files changed, 148 insertions(+), 120 deletions(-) diff --git a/da_test/fixtures/fn.da_client.html b/da_test/fixtures/fn.da_client.html index 78d434336a..6473f5c0d9 100644 --- a/da_test/fixtures/fn.da_client.html +++ b/da_test/fixtures/fn.da_client.html @@ -1 +1 @@ -da_client in da_test::fixtures - Rust

Function da_test::fixtures::da_client

source ·
pub fn da_client() -> Box<dyn DaClient + Send + Sync>
\ No newline at end of file +da_client in da_test::fixtures - Rust

Function da_test::fixtures::da_client

source ·
pub fn da_client() -> Box<dyn DaClient + Send + Sync>
\ No newline at end of file diff --git a/da_test/fixtures/struct.da_client.html b/da_test/fixtures/struct.da_client.html index bd275e01fc..23abeb8acf 100644 --- a/da_test/fixtures/struct.da_client.html +++ b/da_test/fixtures/struct.da_client.html @@ -1,4 +1,4 @@ -da_client in da_test::fixtures - Rust

Struct da_test::fixtures::da_client

source ·
pub struct da_client {}

Implementations§

source§

impl da_client

source

pub fn get() -> Box<dyn DaClient + Send + Sync>

source

pub fn default() -> Box<dyn DaClient + Send + Sync>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +da_client in da_test::fixtures - Rust

Struct da_test::fixtures::da_client

source ·
pub struct da_client {}

Implementations§

source§

impl da_client

source

pub fn get() -> Box<dyn DaClient + Send + Sync>

source

pub fn default() -> Box<dyn DaClient + Send + Sync>

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/da_test/utils/fn.get_da_client.html b/da_test/utils/fn.get_da_client.html index ebe4b303b5..98eb4599f7 100644 --- a/da_test/utils/fn.get_da_client.html +++ b/da_test/utils/fn.get_da_client.html @@ -1 +1 @@ -get_da_client in da_test::utils - Rust

Function da_test::utils::get_da_client

source ·
pub fn get_da_client(da_layer: DaLayer) -> Box<dyn DaClient + Send + Sync>
\ No newline at end of file +get_da_client in da_test::utils - Rust

Function da_test::utils::get_da_client

source ·
pub fn get_da_client(da_layer: DaLayer) -> Box<dyn DaClient + Send + Sync>
\ No newline at end of file diff --git a/help.html b/help.html index aa4bc4c607..07c354d5f1 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/core/convert/trait.From.js b/implementors/core/convert/trait.From.js index a331665f47..56b553a29f 100644 --- a/implementors/core/convert/trait.From.js +++ b/implementors/core/convert/trait.From.js @@ -4,11 +4,11 @@ "mc_db":[["impl From<DatabaseError> for DbError"],["impl From<Error> for DbError"],["impl From<Error> for DbError"]], "mc_genesis_data_provider":[["impl From<LoadGenesisDataError> for Error"]], "mc_l1_messages":[["impl From<Error> for L1MessagesWorkerConfigError"],["impl From<Error> for L1MessagesWorkerConfigError"],["impl<PE> From<ParseError> for L1MessagesWorkerError<PE>"],["impl From<ParseError> for L1MessagesWorkerConfigError"],["impl From<FromHexError> for L1MessagesWorkerConfigError"],["impl<PE> From<DbError> for L1MessagesWorkerError<PE>"]], -"mc_settlement":[["impl From<FromHexError> for Error"],["impl<B: Block> From<FindLogError> for Error<B>"],["impl<B: Block> From<Error> for Error<B>"],["impl From<ParseError> for Error"],["impl From<ProviderError> for Error"],["impl<B: Block> From<Error> for Error<B>"],["impl From<WalletError> for Error"],["impl<B: Block> From<StarknetApiError> for Error<B>"],["impl<B: Block> From<ApiError> for Error<B>"],["impl From<ContractError<SignerMiddleware<Provider<Provider>, Wallet<SigningKey<Secp256k1>>>>> for Error"]], +"mc_settlement":[["impl From<FromHexError> for Error"],["impl<B: Block> From<FindLogError> for Error<B>"],["impl<B: Block> From<Error> for Error<B>"],["impl From<ParseError> for Error"],["impl From<ProviderError> for Error"],["impl<B: Block> From<Error> for Error<B>"],["impl From<WalletError> for Error"],["impl<B: Block> From<StarknetApiError> for Error<B>"],["impl<B: Block> From<ApiError> for Error<B>"],["impl From<ContractError<SignerMiddleware<Provider<Provider>, Wallet<SigningKey<Secp256k1>>>>> for Error"]], "mp_fee":[["impl From<ResourcePrice> for ResourcePrice"]], "mp_felt":[["impl From<FromStrError> for Felt252WrapperError"],["impl From<PatriciaKey> for Felt252Wrapper"],["impl From<Felt252Wrapper> for U256"],["impl From<Felt252Wrapper> for BlockHash"],["impl From<Felt252Wrapper> for CompiledClassHash"],["impl From<Felt252WrapperError> for String"],["impl From<u128> for Felt252Wrapper"],["impl From<Felt252Wrapper> for ContractAddressSalt"],["impl From<ContractAddressSalt> for Felt252Wrapper"],["impl From<Felt252Wrapper> for EventKey"],["impl From<Felt252Wrapper> for StorageKey"],["impl From<TransactionVersion> for Felt252Wrapper"],["impl From<CompiledClassHash> for Felt252Wrapper"],["impl From<Felt252Wrapper> for ClassHash"],["impl From<u32> for Felt252Wrapper"],["impl From<Felt252Wrapper> for Felt252"],["impl From<Felt252> for Felt252Wrapper"],["impl From<EntryPointSelector> for Felt252Wrapper"],["impl From<Felt252Wrapper> for PatriciaKey"],["impl From<Felt252Wrapper> for FieldElement"],["impl From<StarkFelt> for Felt252Wrapper"],["impl From<Nonce> for Felt252Wrapper"],["impl From<u8> for Felt252Wrapper"],["impl From<ContractAddress> for Felt252Wrapper"],["impl From<Felt252Wrapper> for Nonce"],["impl From<BlockHash> for Felt252Wrapper"],["impl From<Felt252Wrapper> for StarkFelt"],["impl From<Felt252Wrapper> for TransactionHash"],["impl From<Felt252Wrapper> for [u8; 32]"],["impl From<EventKey> for Felt252Wrapper"],["impl From<Felt252Wrapper> for EntryPointSelector"],["impl From<Felt252Wrapper> for H256"],["impl From<Felt252WrapperError> for Cow<'static, str>"],["impl From<Felt252Wrapper> for TransactionVersion"],["impl From<ClassHash> for Felt252Wrapper"],["impl From<StorageKey> for Felt252Wrapper"],["impl From<u64> for Felt252Wrapper"],["impl From<TransactionHash> for Felt252Wrapper"],["impl From<FieldElement> for Felt252Wrapper"],["impl From<Felt252Wrapper> for ContractAddress"]], "mp_genesis_config":[["impl From<HexFelt> for FieldElement"],["impl From<Felt252Wrapper> for HexFelt"],["impl From<FieldElement> for HexFelt"]], -"mp_messages":[["impl From<MessageToL1> for MessageL2ToL1"],["impl From<HandleL1MessageTransaction> for MessageL1ToL2"]], +"mp_messages":[["impl From<MessageToL1> for MessageL2ToL1"],["impl From<HandleL1MessageTransaction> for MessageL1ToL2"]], "mp_simulations":[["impl From<Vec<SimulationFlag, Global>> for SimulationFlags"]], "mp_transactions":[["impl From<DeployAccountTransaction> for Transaction"],["impl From<InvokeTransaction> for Transaction"],["impl From<DeclareTransactionV1> for DeclareTransaction"],["impl From<HandleL1MessageTransaction> for Transaction"],["impl From<InvokeTransaction> for UserTransaction"],["impl From<TxType> for TransactionType"],["impl From<(DeclareTransaction, ContractClass)> for UserTransaction"],["impl From<DeployAccountTransaction> for UserTransaction"],["impl From<InvokeTransactionV0> for InvokeTransaction"],["impl From<DeclareTransaction> for Transaction"],["impl From<DeclareTransactionV2> for DeclareTransaction"],["impl From<InvokeTransactionV1> for InvokeTransaction"],["impl From<(HandleL1MessageTransaction, Fee)> for UserAndL1HandlerTransaction"],["impl From<MsgFromL1> for HandleL1MessageTransaction"],["impl From<DeclareTransactionV0> for DeclareTransaction"],["impl From<UserTransaction> for UserAndL1HandlerTransaction"]], "pallet_starknet":[["impl<T: Config> From<Error<T>> for &'static str"],["impl<T: Config> From<Error<T>> for DispatchError"],["impl<T: Config> From<Event<T>> for ()"],["impl<T: Config> From<GenesisLoader> for GenesisConfig<T>"]], diff --git a/implementors/futures_core/stream/trait.Stream.js b/implementors/futures_core/stream/trait.Stream.js index 45ff9470c4..04e0d50f05 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_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/mp_state/trait.StateChanges.js b/implementors/mp_state/trait.StateChanges.js index afec58e42b..56ff532b50 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,"]] +"pallet_starknet":[["impl<T> StateChanges for BlockifierStateAdapter<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/madara/commands/run/fn.extract_l1_messages_worker_config.html b/madara/commands/run/fn.extract_l1_messages_worker_config.html index f2639a1d69..f67ef3d74b 100644 --- a/madara/commands/run/fn.extract_l1_messages_worker_config.html +++ b/madara/commands/run/fn.extract_l1_messages_worker_config.html @@ -1,3 +1,3 @@ -extract_l1_messages_worker_config in madara::commands::run - Rust
fn extract_l1_messages_worker_config(
+extract_l1_messages_worker_config in madara::commands::run - Rust
\ No newline at end of file diff --git a/madara/commands/run/fn.override_dev_environment.html b/madara/commands/run/fn.override_dev_environment.html index 4e82b290c5..ecc11f2ee2 100644 --- a/madara/commands/run/fn.override_dev_environment.html +++ b/madara/commands/run/fn.override_dev_environment.html @@ -1 +1 @@ -override_dev_environment in madara::commands::run - Rust
fn override_dev_environment(cmd: &mut ExtendedRunCmd)
\ No newline at end of file +override_dev_environment in madara::commands::run - Rust
fn override_dev_environment(cmd: &mut ExtendedRunCmd)
\ No newline at end of file diff --git a/madara/commands/run/fn.run_node.html b/madara/commands/run/fn.run_node.html index 7889fa9964..150048d6c7 100644 --- a/madara/commands/run/fn.run_node.html +++ b/madara/commands/run/fn.run_node.html @@ -1 +1 @@ -run_node in madara::commands::run - Rust

Function madara::commands::run::run_node

source ·
pub fn run_node(cli: Cli) -> Result<()>
\ No newline at end of file +run_node in madara::commands::run - Rust

Function madara::commands::run::run_node

source ·
pub fn run_node(cli: Cli) -> Result<()>
\ No newline at end of file diff --git a/madara/commands/run/index.html b/madara/commands/run/index.html index 06e748010a..0fad2063bd 100644 --- a/madara/commands/run/index.html +++ b/madara/commands/run/index.html @@ -1 +1 @@ -madara::commands::run - Rust
\ No newline at end of file +madara::commands::run - Rust
\ No newline at end of file diff --git a/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html b/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html index b705fc7baf..6d5f62c8d0 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/fn.prove.html b/mc_data_availability/fn.prove.html index f8eb9d191b..e0f5b34bbd 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 394537ec90..cebebcbf69 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 b7363fed17..3469496b09 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 d9dc9b8599..f98a29ef4c 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 69e681cf6f..f3066fb407 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/worker/fn.run_worker.html b/mc_l1_messages/worker/fn.run_worker.html index 207dbc71c3..3590bdffd5 100644 --- a/mc_l1_messages/worker/fn.run_worker.html +++ b/mc_l1_messages/worker/fn.run_worker.html @@ -6,5 +6,5 @@ )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_rpc_core/struct.PredeployedAccountWithBalance.html b/mc_rpc_core/struct.PredeployedAccountWithBalance.html index c57dd49b50..1824dac9ff 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 1fa19f9f08..62357865e1 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
-) -> Option<Block>where
+) -> Option<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/errors/enum.Error.html b/mc_settlement/errors/enum.Error.html index a058aaa823..983684e655 100644 --- a/mc_settlement/errors/enum.Error.html +++ b/mc_settlement/errors/enum.Error.html @@ -1,7 +1,7 @@ Error in mc_settlement::errors - Rust
pub enum Error<B: Block> {
     Blockchain(Error),
     StarknetApi(StarknetApiError),
-    DigestLog(FindLogError),
+    DigestLog(FindLogError),
     RuntimeApi(ApiError),
     EthereumClient(Error),
     UnknownStarknetBlock(u64),
@@ -21,9 +21,9 @@
     },
     StateNotInitialized,
 }
Expand description

Settlement error type.

-

Variants§

§

Blockchain(Error)

§

StarknetApi(StarknetApiError)

§

DigestLog(FindLogError)

§

RuntimeApi(ApiError)

§

EthereumClient(Error)

§

UnknownStarknetBlock(u64)

§

UnknownSubstrateBlock(B::Hash)

§

StateRootMismatch

Fields

§height: u64
§expected: StarkHash
§actual: StarkHash
§

ProgramHashMismatch

Fields

§expected: StarkHash
§actual: StarkHash
§

ConfigHashMismatch

Fields

§expected: StarkHash
§actual: StarkHash
§

StateNotInitialized

Trait Implementations§

source§

impl<B: Debug + Block> Debug for Error<B>where +

Variants§

§

Blockchain(Error)

§

StarknetApi(StarknetApiError)

§

DigestLog(FindLogError)

§

RuntimeApi(ApiError)

§

EthereumClient(Error)

§

UnknownStarknetBlock(u64)

§

UnknownSubstrateBlock(B::Hash)

§

StateRootMismatch

Fields

§height: u64
§expected: StarkHash
§actual: StarkHash
§

ProgramHashMismatch

Fields

§expected: StarkHash
§actual: StarkHash
§

ConfigHashMismatch

Fields

§expected: StarkHash
§actual: StarkHash
§

StateNotInitialized

Trait Implementations§

source§

impl<B: Debug + Block> Debug for Error<B>where B::Hash: Debug,

source§

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

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

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

source§

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

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

impl<B: Block> Error for Error<B>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<B: Block> From<ApiError> for Error<B>

source§

fn from(source: ApiError) -> 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<B: Block> From<Error> for Error<B>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

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

source§

fn from(source: FindLogError) -> Self

Converts to this type from the input type.
source§

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

source§

fn from(source: StarknetApiError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<B> !RefUnwindSafe for Error<B>

§

impl<B> Send for Error<B>

§

impl<B> Sync for Error<B>

§

impl<B> Unpin for Error<B>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<B: Block> From<ApiError> for Error<B>

source§

fn from(source: ApiError) -> 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<B: Block> From<Error> for Error<B>

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

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

source§

fn from(source: FindLogError) -> Self

Converts to this type from the input type.
source§

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

source§

fn from(source: StarknetApiError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<B> !RefUnwindSafe for Error<B>

§

impl<B> Send for Error<B>

§

impl<B> Sync for Error<B>

§

impl<B> Unpin for Error<B>where <B as Block>::Hash: Unpin,

§

impl<B> !UnwindSafe for Error<B>

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 diff --git a/mc_settlement/ethereum/client/struct.StarknetContractClient.html b/mc_settlement/ethereum/client/struct.StarknetContractClient.html index 3bc7ad9366..36b5fed2f1 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<EthereumConfig> for StarknetContractClient

§

type Error = Error

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

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

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/mc_settlement/struct.SettlementWorker.html b/mc_settlement/struct.SettlementWorker.html index d21572865d..f1dc7d17c0 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 cba6a6cffd..e07ad5c591 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/mp_block/type.BlockTransactions.html b/mp_block/type.BlockTransactions.html index 48c7ad9fa3..d3a5f54cb9 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 ffd8579309..609640e8b9 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 540dce803d..bc1898e196 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 6dff8a4d8d..3a2ec6b982 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 c74eb0b30b..999706ea25 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 e1c49a0fb2..28cb8272a3 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/execution_config/struct.RuntimeExecutionConfigBuilder.html b/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html index bde988c38b..daf8a0b623 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 dcf9ffa8a3..e07b033236 100644 --- a/pallet_starknet/genesis_loader/struct.GenesisData.html +++ b/pallet_starknet/genesis_loader/struct.GenesisData.html @@ -1,14 +1,14 @@ -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,
-}

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

Trait Implementations§

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

Trait Implementations§

§

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

§

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

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

impl Serialize for GenesisData

source§

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

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

impl Serialize for GenesisData

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where diff --git a/pallet_starknet/genesis_loader/struct.GenesisLoader.html b/pallet_starknet/genesis_loader/struct.GenesisLoader.html index 58e494b698..8210c9cba7 100644 --- a/pallet_starknet/genesis_loader/struct.GenesisLoader.html +++ b/pallet_starknet/genesis_loader/struct.GenesisLoader.html @@ -1,4 +1,4 @@ -GenesisLoader in pallet_starknet::genesis_loader - Rust
pub struct GenesisLoader { /* private fields */ }

Implementations§

Trait Implementations§

source§

impl<T: Config> From<GenesisLoader> for GenesisConfig<T>

source§

fn from(loader: GenesisLoader) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere +GenesisLoader in pallet_starknet::genesis_loader - Rust
pub struct GenesisLoader { /* private fields */ }

Implementations§

§

impl GenesisLoader

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

§

impl GenesisLoader

pub fn data(&self) -> &GenesisData

pub fn base_path(&self) -> PathBuf

Trait Implementations§

source§

impl<T: Config> From<GenesisLoader> for GenesisConfig<T>

source§

fn from(loader: GenesisLoader) -> Self

Converts to this type from the input type.

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 958d047af2..4fbb88f1c7 100644 --- a/pallet_starknet/genesis_loader/struct.HexFelt.html +++ b/pallet_starknet/genesis_loader/struct.HexFelt.html @@ -1,12 +1,12 @@ -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<'de> Deserialize<'de> for HexFelt

source§

fn deserialize<__D>( +HexFelt in pallet_starknet::genesis_loader - Rust
pub struct HexFelt(pub FieldElement);
Expand description

A wrapper for FieldElement that implements serde’s Serialize and Deserialize for hex strings.

+

Tuple Fields§

§0: FieldElement

Trait Implementations§

§

impl Clone for HexFelt

§

fn clone(&self) -> HexFelt

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

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

Performs copy-assignment from source. Read more
§

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

§

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

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

impl From<Felt252Wrapper> for HexFelt

source§

fn from(felt: Felt252Wrapper) -> HexFelt

Converts to this type from the input type.
source§

impl From<FieldElement> for HexFelt

source§

fn from(felt: FieldElement) -> HexFelt

Converts to this type from the input type.
source§

impl LowerHex for HexFelt

source§

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

Formats the value using the given formatter.
source§

impl Serialize for HexFelt

source§

fn serialize<__S>( + __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 Serialize for HexFelt

§

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

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for HexFelt

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Copy for HexFelt

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 52cea1f999..cc7e4128ac 100644 --- a/pallet_starknet/genesis_loader/struct.PredeployedAccount.html +++ b/pallet_starknet/genesis_loader/struct.PredeployedAccount.html @@ -1,14 +1,14 @@ -PredeployedAccount in pallet_starknet::genesis_loader - Rust
pub struct PredeployedAccount {
+PredeployedAccount in pallet_starknet::genesis_loader - Rust
pub struct PredeployedAccount {
     pub contract_address: HexFelt,
     pub class_hash: HexFelt,
     pub name: String,
     pub private_key: Option<Vec<u8, Global>>,
     pub public_key: HexFelt,
 }
Expand description

A struct containing predeployed accounts info.

-

Fields§

§contract_address: HexFelt§class_hash: HexFelt§name: String§private_key: Option<Vec<u8, Global>>§public_key: HexFelt

Trait Implementations§

source§

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

Fields§

§contract_address: HexFelt§class_hash: HexFelt§name: String§private_key: Option<Vec<u8, Global>>§public_key: HexFelt

Trait Implementations§

§

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

§

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

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

impl Serialize for PredeployedAccount

source§

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

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

impl Serialize for PredeployedAccount

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where diff --git a/pallet_starknet/pallet/struct.Pallet.html b/pallet_starknet/pallet/struct.Pallet.html index b96566f50e..18dd653349 100644 --- a/pallet_starknet/pallet/struct.Pallet.html +++ b/pallet_starknet/pallet/struct.Pallet.html @@ -4,8 +4,8 @@ transactions: Vec<UserTransaction> ) -> Result<Vec<(u64, u64)>, DispatchError>

source

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

source

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

source

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

source§

impl<T: Config> Pallet<T>

source

pub fn validate_unsigned_tx_nonce( transaction: &UserAndL1HandlerTransaction @@ -97,11 +97,11 @@

TODO
KArg: EncodeLike<TransactionHash>,

An auto-generated getter for TxMessages.

source§

impl<T: Config> Pallet<T>

source

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

An auto-generated getter for TxRevertError.

-
source§

impl<T: Config> Pallet<T>

source§

impl<T: Config> Pallet<T>

source

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

An auto-generated getter for ContractsStateRoots.

source§

impl<T: Config> Pallet<T>

source

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

An auto-generated getter for PendingStorageChanges.

-
source§

impl<T: Config> Pallet<T>

source

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

source§

impl<T: Config> Pallet<T>

source

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

An auto-generated getter for BlockHash.

source§

impl<T: Config> Pallet<T>

source

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

An auto-generated getter for ContractClassHashes.

@@ -125,7 +125,7 @@
TODO
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.
  • @@ -141,7 +141,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 @@ -150,7 +150,7 @@

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

source

pub fn chain_id() -> Felt252Wrapper

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 chain_id() -> Felt252Wrapper

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 78b073f5a9..01287da390 100644 --- a/pallet_starknet/pallet/trait.Config.html +++ b/pallet_starknet/pallet/trait.Config.html @@ -1,8 +1,8 @@ Config in pallet_starknet::pallet - Rust
pub trait Config: Config {
 
Show 14 associated items type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; - type SystemHash: HasherT; + type SystemHash: HasherT; type TimestampProvider: Time; - type L1GasPrice: Get<ResourcePrice>; + type L1GasPrice: Get<ResourcePrice>; type UnsignedPriority: Get<TransactionPriority>; type TransactionLongevity: Get<TransactionLongevity>; type DisableTransactionFee: Get<bool>; @@ -10,9 +10,9 @@ type InvokeTxMaxNSteps: Get<u32>; type ValidateMaxNSteps: Get<u32>; type ProtocolVersion: Get<u8>; - type ChainId: Get<Felt252Wrapper>; + type ChainId: Get<Felt252Wrapper>; 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 @@ -22,9 +22,9 @@ We’re coupling the starknet pallet to the tx payment pallet to be able to override the fee mechanism and comply with starknet which uses an ER20 as fee token

Required Associated Types§

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

Because this pallet emits events, it depends on the runtime’s definition of an event.

-
source

type SystemHash: HasherT

The hashing function to use.

+
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 L1GasPrice: Get<ResourcePrice>

The gas price

source

type UnsignedPriority: Get<TransactionPriority>

A configuration for base priority of unsigned transactions.

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

@@ -33,4 +33,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 ChainId: Get<Felt252Wrapper>

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 ChainId: Get<Felt252Wrapper>

source

type MaxRecursionDepth: Get<u32>

source

type ProgramHash: Get<Felt252Wrapper>

Implementors§

\ 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 b967c5394f..9348b2bfda 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

§

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

§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 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 5b9134392f..d2fedd16dd 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 498b7cbf12..3154e7afbe 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 4e0691af6c..e58a9f4d1d 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 0af48a3180..0f2a76b0c8 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,8 +58,8 @@ &self, __runtime_api_at_param__: <Block as BlockT>::Hash, transactions: Vec<UserTransaction>, - simulation_flags: SimulationFlags - ) -> Result<Result<Vec<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>>, DispatchError>, ApiError> { ... } + simulation_flags: SimulationFlags + ) -> Result<Result<Vec<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>>, DispatchError>, ApiError> { ... } fn extrinsic_filter( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -69,8 +69,8 @@ &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_index( &self, @@ -81,8 +81,8 @@ &self, __runtime_api_at_param__: <Block as BlockT>::Hash, block_extrinsics: Vec<<Block as BlockT>::Extrinsic>, - chain_id: Felt252Wrapper - ) -> Result<Vec<(Felt252Wrapper, StarknetEvent)>, ApiError> { ... } + chain_id: Felt252Wrapper + ) -> Result<Vec<(Felt252Wrapper, StarknetEvent)>, ApiError> { ... } fn get_tx_execution_outcome( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -123,7 +123,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, @@ -137,11 +137,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 @@ -164,8 +164,8 @@ &self, __runtime_api_at_param__: <Block as BlockT>::Hash, transactions: Vec<UserTransaction>, - simulation_flags: SimulationFlags -) -> Result<Result<Vec<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>>, DispatchError>, ApiError>

Simulates transactions and returns their trace

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

Simulates transactions and returns their trace

source

fn extrinsic_filter( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -181,8 +181,8 @@ &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_index( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, @@ -192,8 +192,8 @@ &self, __runtime_api_at_param__: <Block as BlockT>::Hash, block_extrinsics: Vec<<Block as BlockT>::Extrinsic>, - chain_id: Felt252Wrapper -) -> Result<Vec<(Felt252Wrapper, StarknetEvent)>, ApiError>

Return the list of StarknetEvent evmitted during this block, along with the hash of the starknet transaction they bellong to

+ chain_id: Felt252Wrapper +) -> Result<Vec<(Felt252Wrapper, StarknetEvent)>, ApiError>

Return the list of StarknetEvent evmitted during this block, along with the hash of the starknet transaction they bellong to

block_extrinsics is the list of all the extrinsic executed during this block, it is used in order to match

source

fn get_tx_execution_outcome( &self, diff --git a/settings.html b/settings.html index dbc0883c12..cf18e8346f 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Rustdoc settings

Rustdoc settings

Back
\ No newline at end of file +Rustdoc settings

Rustdoc settings

Back
\ No newline at end of file diff --git a/src/madara/commands/run.rs.html b/src/madara/commands/run.rs.html index 3872fc42c8..d1c894825d 100644 --- a/src/madara/commands/run.rs.html +++ b/src/madara/commands/run.rs.html @@ -263,6 +263,20 @@ 263 264 265 +266 +267 +268 +269 +270 +271 +272 +273 +274 +275 +276 +277 +278 +279
use std::path::PathBuf;
 
 use clap::ValueHint::FilePath;
@@ -451,14 +465,21 @@
 
     let da_client = match cli.run.da_layer {
         Some(da_layer) => {
-            let da_conf = cli.run.clone().da_conf.unwrap_or({
-                let path_da_conf_json = chain_config_dir.join(format!("{da_layer}.json"));
-                if !path_da_conf_json.exists() {
-                    return Err(sc_cli::Error::Input(format!("no file {da_layer}.json in base_path")));
+            let da_conf = match cli.run.clone().da_conf {
+                Some(da_conf) => da_conf,
+                None => {
+                    let path_da_conf_json = chain_config_dir.join(format!("{}.json", da_layer));
+                    if !path_da_conf_json.exists() {
+                        return Err(sc_cli::Error::Input(format!(
+                            "no file {} in base_path",
+                            path_da_conf_json.to_string_lossy()
+                        )));
+                    }
+                    path_da_conf_json
                 }
-                path_da_conf_json
-            });
+            };
 
+            log::info!("Initializing DA client with layer: {:?}", da_layer);
             Some(init_da_client(da_layer, da_conf)?)
         }
         None => {
@@ -472,14 +493,21 @@
 
     let settlement_config: Option<(SettlementLayer, PathBuf)> = match cli.run.settlement {
         Some(SettlementLayer::Ethereum) => {
-            let settlement_conf =
-                cli.run.clone().settlement_conf.unwrap_or_else(|| chain_config_dir.join("settlement_conf.json"));
-            if !settlement_conf.exists() {
-                return Err(sc_cli::Error::Input(format!(
-                    "Settlement config does not exist: {}",
-                    settlement_conf.display()
-                )));
-            }
+            let settlement_conf = match cli.run.clone().settlement_conf {
+                Some(settlement_conf) => settlement_conf,
+                None => {
+                    let path_settlement_conf_json = chain_config_dir.join("settlement_conf.json");
+                    if !path_settlement_conf_json.exists() {
+                        return Err(sc_cli::Error::Input(format!(
+                            "no file {} in base_path",
+                            path_settlement_conf_json.to_string_lossy()
+                        )));
+                    }
+                    path_settlement_conf_json
+                }
+            };
+
+            log::info!("Initializing settlement client with layer: {:?}", SettlementLayer::Ethereum);
             Some((SettlementLayer::Ethereum, settlement_conf))
         }