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 e5d4133694..6d7a13b89c 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/implementors/core/convert/trait.From.js b/implementors/core/convert/trait.From.js index a231cde699..036227dbd3 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"]], "mc_genesis_data_provider":[["impl From<LoadGenesisDataError> for Error"]], "mc_l1_messages":[["impl<PE> From<DbError> for L1MessagesWorkerError<PE>"],["impl From<Error> for L1MessagesWorkerConfigError"],["impl From<Error> for L1MessagesWorkerConfigError"],["impl From<ParseError> for L1MessagesWorkerConfigError"],["impl<PE> From<ParseError> for L1MessagesWorkerError<PE>"],["impl From<FromHexError> for L1MessagesWorkerConfigError"]], -"mc_settlement":[["impl From<ProviderError> for Error"],["impl From<ParseError> for Error"],["impl From<FromHexError> for Error"],["impl<B: Block> From<Error> for Error<B>"],["impl<B: Block> From<StarknetApiError> for Error<B>"],["impl From<ProgramHashCall> for StarknetContractCalls"],["impl<B: Block> From<FindLogError> for Error<B>"],["impl From<UpdateStateCall> for StarknetContractCalls"],["impl<B: Block> From<ApiError> for Error<B>"],["impl From<StateRootCall> for StarknetContractCalls"],["impl From<WalletError> for Error"],["impl From<ConfigHashCall> for StarknetContractCalls"],["impl From<ContractError<SignerMiddleware<Provider<Provider>, Wallet<SigningKey<Secp256k1>>>>> for Error"],["impl From<StateBlockNumberCall> for StarknetContractCalls"],["impl<M: Middleware> From<ContractInstance<Arc<M, Global>, M>> for StarknetContract<M>"],["impl<B: Block> From<Error> for Error<B>"]], +"mc_settlement":[["impl From<ProviderError> for Error"],["impl From<ParseError> for Error"],["impl From<FromHexError> for Error"],["impl<B: Block> From<Error> for Error<B>"],["impl<B: Block> From<StarknetApiError> for Error<B>"],["impl From<ProgramHashCall> for StarknetContractCalls"],["impl<B: Block> From<FindLogError> for Error<B>"],["impl From<UpdateStateCall> for StarknetContractCalls"],["impl<B: Block> From<ApiError> for Error<B>"],["impl From<StateRootCall> for StarknetContractCalls"],["impl From<WalletError> for Error"],["impl From<ConfigHashCall> for StarknetContractCalls"],["impl From<ContractError<SignerMiddleware<Provider<Provider>, Wallet<SigningKey<Secp256k1>>>>> for Error"],["impl From<StateBlockNumberCall> for StarknetContractCalls"],["impl<M: Middleware> From<ContractInstance<Arc<M, Global>, M>> for StarknetContract<M>"],["impl<B: Block> From<Error> for Error<B>"]], "mp_fee":[["impl From<ResourcePrice> for ResourcePrice"]], "mp_felt":[["impl From<BlockHash> for Felt252Wrapper"],["impl From<EventKey> for Felt252Wrapper"],["impl From<Felt252Wrapper> for PatriciaKey"],["impl From<Felt252Wrapper> for U256"],["impl From<TransactionHash> for Felt252Wrapper"],["impl From<Felt252WrapperError> for String"],["impl From<Felt252Wrapper> for H256"],["impl From<u8> for Felt252Wrapper"],["impl From<ContractAddress> for Felt252Wrapper"],["impl From<Felt252Wrapper> for StorageKey"],["impl From<Felt252Wrapper> for BlockHash"],["impl From<FromStrError> for Felt252WrapperError"],["impl From<PatriciaKey> for Felt252Wrapper"],["impl From<Felt252Wrapper> for FieldElement"],["impl From<Felt252Wrapper> for StarkFelt"],["impl From<u32> for Felt252Wrapper"],["impl From<Felt252Wrapper> for CompiledClassHash"],["impl From<u64> for Felt252Wrapper"],["impl From<EntryPointSelector> for Felt252Wrapper"],["impl From<Felt252WrapperError> for Cow<'static, str>"],["impl From<FieldElement> for Felt252Wrapper"],["impl From<Felt252Wrapper> for ContractAddressSalt"],["impl From<Felt252Wrapper> for EventKey"],["impl From<TransactionVersion> for Felt252Wrapper"],["impl From<CompiledClassHash> for Felt252Wrapper"],["impl From<Felt252Wrapper> for ClassHash"],["impl From<Felt252Wrapper> for EntryPointSelector"],["impl From<Nonce> for Felt252Wrapper"],["impl From<StorageKey> for Felt252Wrapper"],["impl From<Felt252Wrapper> for TransactionHash"],["impl From<ClassHash> for Felt252Wrapper"],["impl From<StarkFelt> for Felt252Wrapper"],["impl From<Felt252Wrapper> for Nonce"],["impl From<Felt252Wrapper> for TransactionVersion"],["impl From<ContractAddressSalt> for Felt252Wrapper"],["impl From<Felt252> for Felt252Wrapper"],["impl From<Felt252Wrapper> for [u8; 32]"],["impl From<Felt252Wrapper> for ContractAddress"],["impl From<u128> for Felt252Wrapper"],["impl From<Felt252Wrapper> for Felt252"]], "mp_genesis_config":[["impl From<FieldElement> for HexFelt"],["impl From<Felt252Wrapper> for HexFelt"],["impl From<HexFelt> for FieldElement"]], -"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<UserTransaction> for UserAndL1HandlerTransaction"],["impl From<DeclareTransaction> for Transaction"],["impl From<DeployAccountTransaction> for UserTransaction"],["impl From<HandleL1MessageTransaction> for Transaction"],["impl From<MsgFromL1> for HandleL1MessageTransaction"],["impl From<InvokeTransaction> for Transaction"],["impl From<(DeclareTransaction, ContractClass)> for UserTransaction"],["impl From<DeclareTransactionV0> for DeclareTransaction"],["impl From<DeclareTransactionV2> for DeclareTransaction"],["impl From<DeclareTransactionV1> for DeclareTransaction"],["impl From<TxType> for TransactionType"],["impl From<InvokeTransaction> for UserTransaction"],["impl From<(HandleL1MessageTransaction, Fee)> for UserAndL1HandlerTransaction"],["impl From<InvokeTransactionV0> for InvokeTransaction"],["impl From<InvokeTransactionV1> for InvokeTransaction"],["impl From<DeployAccountTransaction> for Transaction"]], "pallet_starknet":[["impl<T: Config> From<GenesisLoader> for GenesisConfig<T>"],["impl<T: Config> From<Event<T>> for ()"],["impl<T: Config> From<Error<T>> for DispatchError"],["impl<T: Config> From<Error<T>> for &'static str"]], diff --git a/implementors/futures_core/stream/trait.Stream.js b/implementors/futures_core/stream/trait.Stream.js index 04e0d50f05..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_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 56ff532b50..afec58e42b 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/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html b/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html index c8c936926a..65a75576fa 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.update_state.html b/mc_data_availability/fn.update_state.html index 3074f8a57a..b6e555835f 100644 --- a/mc_data_availability/fn.update_state.html +++ b/mc_data_availability/fn.update_state.html @@ -1,4 +1,4 @@ -update_state in mc_data_availability - Rust
pub async fn update_state<B: BlockT, H: HasherT>(
+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
diff --git a/mc_data_availability/struct.DataAvailabilityWorker.html b/mc_data_availability/struct.DataAvailabilityWorker.html
index 529f2c46f9..119e139838 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:

    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/worker/fn.run_worker.html b/mc_l1_messages/worker/fn.run_worker.html index 6ebfa3ade1..041f9767da 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 24e998c5a9..6f678f5f8e 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 1685dc31b5..7d7a6c4249 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 0a7b2c286b..3bfaf14900 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 cdf52aa1cf..c793406ba3 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 611526236d..7a57aac0cc 100644 --- a/mc_settlement/struct.SettlementWorker.html +++ b/mc_settlement/struct.SettlementWorker.html @@ -1,8 +1,8 @@ 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>>, 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/mp_block/struct.Header.html b/mp_block/struct.Header.html index 308bbbbb49..f8139c18f1 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 ec4cbc996b..8e742075d8 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 3a2ec6b982..6dff8a4d8d 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 e7424218da..913b89e904 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 0c35ce61d7..f169bf999c 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 97de4f14d3..10ad83bc3e 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/index.html b/pallet_starknet/genesis_loader/index.html index 69f31acf32..3599c34121 100644 --- a/pallet_starknet/genesis_loader/index.html +++ b/pallet_starknet/genesis_loader/index.html @@ -1 +1 @@ -pallet_starknet::genesis_loader - Rust

Structs

\ No newline at end of file +pallet_starknet::genesis_loader - Rust

Structs

\ No newline at end of file diff --git a/pallet_starknet/genesis_loader/struct.GenesisData.html b/pallet_starknet/genesis_loader/struct.GenesisData.html index 34a105a4ae..5e12664fef 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§

§

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

Trait Implementations§

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 Serialize for GenesisData

§

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

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

impl Serialize for GenesisData

source§

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 e7dfe710ad..1197d6162c 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§

§

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

§

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

§

fn serialize<__S>( + __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>( &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

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

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 458946a9f6..c41b6c84ad 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§

§

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<'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 Serialize for PredeployedAccount

§

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

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

impl Serialize for PredeployedAccount

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where diff --git a/pallet_starknet/pallet/struct.GenesisConfig.html b/pallet_starknet/pallet/struct.GenesisConfig.html index 73e1ad0763..292f7da18d 100644 --- a/pallet_starknet/pallet/struct.GenesisConfig.html +++ b/pallet_starknet/pallet/struct.GenesisConfig.html @@ -20,7 +20,7 @@ Must be set to the address of the fee token ERC20 contract.

§_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: 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 - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. 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<T: Config> Serialize for GenesisConfig<T>

source§

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

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

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

source§

fn from(loader: GenesisLoader) -> Self

Converts to this type from the input type.
source§

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

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§

§

impl<T> RefUnwindSafe for GenesisConfig<T>where T: RefUnwindSafe,

§

impl<T> Send for GenesisConfig<T>where T: Send,

§

impl<T> Sync for GenesisConfig<T>where diff --git a/pallet_starknet/pallet/struct.Pallet.html b/pallet_starknet/pallet/struct.Pallet.html index 8cda372228..42806418bc 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

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.

@@ -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 01287da390..78b073f5a9 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 0f7b4e1d8d..a8f8d4b8ec 100644 --- a/pallet_starknet/transaction_validation/enum.TxPriorityInfo.html +++ b/pallet_starknet/transaction_validation/enum.TxPriorityInfo.html @@ -2,11 +2,11 @@ InvokeV0, L1Handler, RegularTxs { - sender_address: Felt252Wrapper, - transaction_nonce: Felt252Wrapper, - sender_nonce: Felt252Wrapper, + sender_address: Felt252Wrapper, + transaction_nonce: Felt252Wrapper, + sender_nonce: Felt252Wrapper, }, -}

Variants§

§

InvokeV0

§

L1Handler

§

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

Auto Trait Implementations§

§

impl RefUnwindSafe for TxPriorityInfo

§

impl Send for TxPriorityInfo

§

impl Sync for TxPriorityInfo

§

impl Unpin for TxPriorityInfo

§

impl UnwindSafe for TxPriorityInfo

Blanket Implementations§

source§

impl<T> Any for Twhere +}

Variants§

§

InvokeV0

§

L1Handler

§

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

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.BuildTransferInvokeTransaction.html b/pallet_starknet/types/struct.BuildTransferInvokeTransaction.html index 8548484421..9ecb2cef78 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 f1909b0455..6aa4d4f41f 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 0f2a76b0c8..0af48a3180 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/src/pallet_starknet/genesis_loader.rs.html b/src/pallet_starknet/genesis_loader.rs.html index 1862bcab4a..9464a7774b 100644 --- a/src/pallet_starknet/genesis_loader.rs.html +++ b/src/pallet_starknet/genesis_loader.rs.html @@ -129,6 +129,24 @@ 129 130 131 +132 +133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149
use std::vec::Vec;
 
 use blockifier::execution::contract_class::ContractClass as StarknetContractClass;
@@ -162,6 +180,17 @@
                 }
             })
             .collect::<Vec<_>>();
+        let sierra_to_casm_class_hash = loader
+            .data()
+            .sierra_class_hash_to_casm_class_hash
+            .clone()
+            .into_iter()
+            .map(|(sierra_hash, casm_hash)| {
+                let sierra_hash = Felt252Wrapper(sierra_hash.0).into();
+                let casm_hash = Felt252Wrapper(casm_hash.0).into();
+                (sierra_hash, casm_hash)
+            })
+            .collect::<Vec<_>>();
         let contracts = loader
             .data()
             .contracts
@@ -186,7 +215,14 @@
             .collect::<Vec<_>>();
         let fee_token_address = Felt252Wrapper(loader.data().fee_token_address.0).into();
 
-        GenesisConfig { contracts, contract_classes, storage, fee_token_address, ..Default::default() }
+        GenesisConfig {
+            contracts,
+            contract_classes,
+            sierra_to_casm_class_hash,
+            storage,
+            fee_token_address,
+            ..Default::default()
+        }
     }
 }