pub fn da_client() -> Box<dyn DaClient + Send + Sync>
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 @@ -
pub struct da_client {}
pub struct da_client {}
pub struct CommitmentStateDiffWorker<B: BlockT, C, H> { /* private fields */ }
pub async fn update_state<B: BlockT, H: HasherT>(
+update_state in mc_data_availability - Rust Function mc_data_availability::update_state
source · 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§
source§impl GenesisProvider for OnDiskGenesisConfig
§type LoadGenesisDataError = LoadGenesisDataError
source§fn load_genesis_data(&self) -> Result<GenesisData, Self::LoadGenesisDataError>
Auto Trait Implementations§
§impl RefUnwindSafe for OnDiskGenesisConfig
§impl Send for OnDiskGenesisConfig
§impl Sync for OnDiskGenesisConfig
§impl Unpin for OnDiskGenesisConfig
§impl UnwindSafe for OnDiskGenesisConfig
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§
source§impl GenesisProvider for OnDiskGenesisConfig
§type LoadGenesisDataError = LoadGenesisDataError
source§fn load_genesis_data(&self) -> Result<GenesisData, Self::LoadGenesisDataError>
Auto Trait Implementations§
§impl RefUnwindSafe for OnDiskGenesisConfig
§impl Send for OnDiskGenesisConfig
§impl Sync for OnDiskGenesisConfig
§impl Unpin for OnDiskGenesisConfig
§impl UnwindSafe for OnDiskGenesisConfig
Blanket Implementations§
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§
sourcefn load_genesis_data(&self) -> Result<GenesisData, LoadGenesisDataError>
Implementors§
\ No newline at end of file
+ fn load_genesis_data(&self) -> Result<GenesisData, LoadGenesisDataError>;
+}Required Associated Types§
Required Methods§
sourcefn load_genesis_data(&self) -> Result<GenesisData, LoadGenesisDataError>
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 moreAuto Trait Implementations§
§impl RefUnwindSafe for PredeployedAccountWithBalance
§impl Send for PredeployedAccountWithBalance
§impl Sync for PredeployedAccountWithBalance
§impl Unpin for PredeployedAccountWithBalance
§impl UnwindSafe for PredeployedAccountWithBalance
Blanket Implementations§
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 Function mc_rpc_core::utils::get_block_by_block_hash
source · 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 Enum mc_settlement::errors::Error
source · 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
§ProgramHashMismatch
§ConfigHashMismatch
§StateNotInitialized
Trait Implementations§
Variants§
§Blockchain(Error)
§StarknetApi(StarknetApiError)
§DigestLog(FindLogError)
§RuntimeApi(ApiError)
§EthereumClient(Error)
§UnknownStarknetBlock(u64)
§UnknownSubstrateBlock(B::Hash)
§StateRootMismatch
§ProgramHashMismatch
§ConfigHashMismatch
§StateNotInitialized
Trait Implementations§
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 more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()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 more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl<B: Block> From<FindLogError> for Error<B>
source§fn from(source: FindLogError) -> 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> 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,
Auto Trait Implementations§
§impl !RefUnwindSafe for StarknetContractClient
§impl Send for StarknetContractClient
§impl Sync for StarknetContractClient
§impl Unpin for StarknetContractClient
§impl !UnwindSafe for StarknetContractClient
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 Struct mc_settlement::SettlementWorker
source · 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>,
sourcepub async fn sync_state(
+ SC::Api: StarknetRuntimeApi<B>,
sourcepub 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,
sourcefn 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§
source§impl<B: Block> SettlementProvider<B> for StarknetContractClient
\ 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
sourcepub 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.
sourcepub 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§
Variants§
Trait Implementations§
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 Function mp_digest_log::find_starknet_block
source · 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 Function mp_digest_log::find_starknet_block
source · 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
- Ensure there is a single valid Madara Log in a given [Digest]
- Return the Madara Log contained in a given [Digest]
- Return the wrapped StarknetBlock contained in a given [Digest]
\ 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 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 moresource§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
source§impl From<HandleL1MessageTransaction> for MessageL1ToL2
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 ==
.source§impl TypeInfo for MessageL1ToL2
source§impl EncodeLike<MessageL1ToL2> for MessageL1ToL2
source§impl Eq for MessageL1ToL2
source§impl StructuralEq for MessageL1ToL2
source§impl StructuralPartialEq for MessageL1ToL2
Auto Trait Implementations§
§impl RefUnwindSafe for MessageL1ToL2
§impl Send for MessageL1ToL2
§impl Sync for MessageL1ToL2
§impl Unpin for MessageL1ToL2
§impl UnwindSafe for MessageL1ToL2
Blanket Implementations§
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
sourcepub fn new<T: Config>() -> Self
sourcepub fn with_query_mode(self) -> Self
sourcepub fn with_simulation_mode(self, simulation_flags: &SimulationFlags) -> Self
sourcepub fn with_disable_nonce_validation(self) -> Self
sourcepub fn with_offset_version(self) -> Self
sourcepub fn build(self) -> ExecutionConfig
Auto Trait Implementations§
§impl RefUnwindSafe for RuntimeExecutionConfigBuilder
§impl Send for RuntimeExecutionConfigBuilder
§impl Sync for RuntimeExecutionConfigBuilder
§impl Unpin for RuntimeExecutionConfigBuilder
§impl UnwindSafe for RuntimeExecutionConfigBuilder
Blanket Implementations§
Implementations§
source§impl RuntimeExecutionConfigBuilder
sourcepub fn new<T: Config>() -> Self
sourcepub fn with_query_mode(self) -> Self
sourcepub fn with_simulation_mode(self, simulation_flags: &SimulationFlags) -> Self
sourcepub fn with_disable_nonce_validation(self) -> Self
sourcepub fn with_offset_version(self) -> Self
sourcepub fn build(self) -> ExecutionConfig
Auto Trait Implementations§
§impl RefUnwindSafe for RuntimeExecutionConfigBuilder
§impl Send for RuntimeExecutionConfigBuilder
§impl Sync for RuntimeExecutionConfigBuilder
§impl Unpin for RuntimeExecutionConfigBuilder
§impl UnwindSafe for RuntimeExecutionConfigBuilder
Blanket Implementations§
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 Module pallet_starknet::genesis_loader
source · Structs
- A wrapper for FieldElement that implements serde’s Serialize and Deserialize for hex strings.
- A struct containing predeployed accounts info.
\ No newline at end of file
+pallet_starknet::genesis_loader - Rust Module pallet_starknet::genesis_loader
source · Structs
- A wrapper for FieldElement that implements serde’s Serialize and Deserialize for hex strings.
- A struct containing predeployed accounts info.
\ 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 Struct pallet_starknet::genesis_loader::GenesisData
pub struct GenesisData {
- pub contract_classes: Vec<(HexFelt, ContractClass), Global>,
+GenesisData in pallet_starknet::genesis_loader - Rust Struct pallet_starknet::genesis_loader::GenesisData
source · 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 moresource§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 Struct pallet_starknet::genesis_loader::GenesisLoader
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§
§impl RefUnwindSafe for GenesisLoader
§impl Send for GenesisLoader
§impl Sync for GenesisLoader
§impl Unpin for GenesisLoader
§impl UnwindSafe for GenesisLoader
Blanket Implementations§
source§impl<T> Any for Twhere
+GenesisLoader in pallet_starknet::genesis_loader - Rust Struct pallet_starknet::genesis_loader::GenesisLoader
source · pub struct GenesisLoader { /* private fields */ }
Implementations§
source§impl GenesisLoader
sourcepub fn new(base_path: PathBuf, data: GenesisData) -> GenesisLoader
source§impl GenesisLoader
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§
§impl RefUnwindSafe for GenesisLoader
§impl Send for GenesisLoader
§impl Sync for GenesisLoader
§impl Unpin for GenesisLoader
§impl UnwindSafe for GenesisLoader
Blanket Implementations§
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 Struct pallet_starknet::genesis_loader::HexFelt
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<'de> Deserialize<'de> for HexFelt
§fn deserialize<__D>(
+HexFelt in pallet_starknet::genesis_loader - Rust Struct pallet_starknet::genesis_loader::HexFelt
source · 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<'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 Serialize for HexFelt
§fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<Felt252Wrapper> for HexFelt
source§fn from(felt: Felt252Wrapper) -> HexFelt
Converts to this type from the input type.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§
§impl RefUnwindSafe for HexFelt
§impl Send for HexFelt
§impl Sync for HexFelt
§impl Unpin for HexFelt
§impl UnwindSafe for HexFelt
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Copy for HexFelt
Auto Trait Implementations§
§impl RefUnwindSafe for HexFelt
§impl Send for HexFelt
§impl Sync for HexFelt
§impl Unpin for HexFelt
§impl UnwindSafe for HexFelt
Blanket Implementations§
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 moresource§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§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§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 moresource§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§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§
§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>
sourcepub fn simulate_transactions(
transactions: Vec<UserTransaction>,
- simulation_flags: &SimulationFlags
-) -> Result<Vec<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>>, DispatchError>
sourcepub fn estimate_message_fee(
+ simulation_flags: &SimulationFlags
+) -> Result<Vec<Result<TransactionExecutionInfo, PlaceHolderErrorTypeForFailedStarknetExecution>>, DispatchError>
sourcepub fn estimate_message_fee(
message: HandleL1MessageTransaction
) -> Result<(u128, u64, u64), DispatchError>
source§impl<T: Config> Pallet<T>
sourcepub 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>
sourcepub 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>
sourcepub 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>
sourcepub fn block_hash<KArg>(k: KArg) -> Felt252Wrapperwhere
KArg: EncodeLike<u64>,
An auto-generated getter for BlockHash
.
source§impl<T: Config> Pallet<T>
sourcepub 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.
sourcepub fn chain_id_str() -> String
convert chain_id
-sourcepub fn parent_block_hash(current_block_number: &u64) -> Felt252Wrapper
Get the block hash of the previous block.
+sourcepub 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.
sourcepub 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>
-)
sourcepub fn chain_id() -> Felt252Wrapper
sourcepub fn program_hash() -> Felt252Wrapper
sourcepub fn config_hash() -> StarkHash
sourcepub fn is_transaction_fee_disabled() -> bool
Trait Implementations§
source§impl<T: Config> GetStorageVersion for Pallet<T>
§type CurrentStorageVersion = NoStorageVersionSet
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.
+)sourcepub fn chain_id() -> Felt252Wrapper
sourcepub fn program_hash() -> Felt252Wrapper
sourcepub fn config_hash() -> StarkHash
sourcepub fn is_transaction_fee_disabled() -> bool
Trait Implementations§
source§impl<T: Config> GetStorageVersion for Pallet<T>
§type CurrentStorageVersion = NoStorageVersionSet
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>
§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 moresource§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 moresource§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§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 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> PartialEq<Pallet<T>> for Pallet<T>
source§impl<T: Config> ProvideInherent for Pallet<T>
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 moresource§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 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 moresource§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 moresource§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 Trait pallet_starknet::pallet::Config
source · 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§
sourcetype RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>
Because this pallet emits events, it depends on the runtime’s definition of an event.
-sourcetype SystemHash: HasherT
The hashing function to use.
+sourcetype SystemHash: HasherT
The hashing function to use.
sourcetype TimestampProvider: Time
The block time
-sourcetype L1GasPrice: Get<ResourcePrice>
The gas price
+sourcetype L1GasPrice: Get<ResourcePrice>
The gas price
sourcetype 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.
sourcetype DisableTransactionFee: Get<bool>
A bool to disable transaction fees and make all transactions free
sourcetype DisableNonceValidation: Get<bool>
A bool to disable Nonce validation
-sourcetype InvokeTxMaxNSteps: Get<u32>
sourcetype ValidateMaxNSteps: Get<u32>
sourcetype ProtocolVersion: Get<u8>
sourcetype ChainId: Get<Felt252Wrapper>
sourcetype MaxRecursionDepth: Get<u32>
sourcetype ProgramHash: Get<Felt252Wrapper>
Implementors§
\ No newline at end of file
+
sourcetype InvokeTxMaxNSteps: Get<u32>
sourcetype ValidateMaxNSteps: Get<u32>
sourcetype ProtocolVersion: Get<u8>
sourcetype ChainId: Get<Felt252Wrapper>
sourcetype MaxRecursionDepth: Get<u32>
sourcetype 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§
Trait Implementations§
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§
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> 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§
§impl RefUnwindSafe for BuildTransferInvokeTransaction
§impl Send for BuildTransferInvokeTransaction
§impl Sync for BuildTransferInvokeTransaction
§impl Unpin for BuildTransferInvokeTransaction
§impl UnwindSafe for BuildTransferInvokeTransaction
Blanket Implementations§
Fields§
§sender_address: Felt252Wrapper
§token_address: Felt252Wrapper
§recipient: Felt252Wrapper
§amount_low: Felt252Wrapper
§amount_high: Felt252Wrapper
§nonce: Felt252Wrapper
Auto Trait Implementations§
§impl RefUnwindSafe for BuildTransferInvokeTransaction
§impl Send for BuildTransferInvokeTransaction
§impl Sync for BuildTransferInvokeTransaction
§impl Unpin for BuildTransferInvokeTransaction
§impl UnwindSafe for BuildTransferInvokeTransaction
Blanket Implementations§
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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§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.
sourcefn contract_class_hash_by_address(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
@@ -137,11 +137,11 @@
sourcefn 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.
sourcefn 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.
sourcefn 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
sourcefn 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>
sourcefn 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
sourcefn 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()
+ }
}
}