Struct madara_test_runner::client::MadaraClient
source · pub struct MadaraClient { /* private fields */ }
Expand description
A wrapper over the Madara process handle, reqwest client and request counter
-Implementations§
source§impl MadaraClient
impl MadaraClient
pub fn new(url: Url) -> MadaraClient
pub async fn run_to_block(
+MadaraClient in madara_test_runner::client - Rust Struct madara_test_runner::client::MadaraClient
pub struct MadaraClient { /* private fields */ }
Expand description
A wrapper over the Madara process handle, reqwest client and request counter
+Implementations§
§impl MadaraClient
pub fn new(url: Url) -> MadaraClient
pub async fn run_to_block(
&mut self,
target_block: u64
-) -> impl Future<Output = Result<(), Error>>
sourcepub async fn create_n_blocks(
+) -> impl Future<Output = Result<(), Error>>
pub async fn create_n_blocks(
&mut self,
n: u64
-) -> impl Future<Output = Result<(), Error>>
sourcepub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>
sourcepub async fn create_empty_block(
+) -> impl Future<Output = Result<(), Error>>
pub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>
pub async fn create_empty_block(
&mut self
-) -> impl Future<Output = Result<(), Error>>
sourcepub async fn create_block_with_txs(
+) -> impl Future<Output = Result<(), Error>>
pub async fn create_block_with_txs(
&mut self,
- transactions: Vec<Transaction<'_>, Global>
-) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>
sourcepub async fn create_block_with_parent(
+ transactions: Vec<Transaction<'_>, Global>
+) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>
pub async fn create_block_with_parent(
&mut self,
parent_hash: &str
-) -> impl Future<Output = Result<(), Error>>
sourcepub async fn health(&self) -> impl Future<Output = Result<bool, Error>>
Trait Implementations§
source§impl Debug for MadaraClient
source§impl Default for MadaraClient
source§fn default() -> MadaraClient
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for MadaraClient
§impl Send for MadaraClient
§impl !Sync for MadaraClient
§impl Unpin for MadaraClient
§impl UnwindSafe for MadaraClient
Blanket Implementations§
Trait Implementations§
§impl Debug for MadaraClient
§impl Default for MadaraClient
§fn default() -> MadaraClient
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for MadaraClient
§impl Send for MadaraClient
§impl !Sync for MadaraClient
§impl Unpin for MadaraClient
§impl UnwindSafe for MadaraClient
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 moresource§impl<T> From<T> for T
source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/madara_test_runner/struct.MadaraRunner.html b/madara_test_runner/struct.MadaraRunner.html
index 9d4b32c6ce..3bcae46009 100644
--- a/madara_test_runner/struct.MadaraRunner.html
+++ b/madara_test_runner/struct.MadaraRunner.html
@@ -1,18 +1,18 @@
-MadaraRunner in madara_test_runner - Rust Struct madara_test_runner::MadaraRunner
source · pub struct MadaraRunner { /* private fields */ }
Implementations§
source§impl MadaraRunner
sourcepub async fn new(args: MadaraArgs) -> Self
Methods from Deref<Target = MadaraClient>§
sourcepub async fn run_to_block(
+MadaraRunner in madara_test_runner - Rust Struct madara_test_runner::MadaraRunner
source · pub struct MadaraRunner { /* private fields */ }
Implementations§
source§impl MadaraRunner
sourcepub async fn new(args: MadaraArgs) -> Self
Methods from Deref<Target = MadaraClient>§
pub async fn run_to_block(
&mut self,
target_block: u64
-) -> impl Future<Output = Result<(), Error>>
sourcepub async fn create_n_blocks(
+) -> impl Future<Output = Result<(), Error>>
pub async fn create_n_blocks(
&mut self,
n: u64
-) -> impl Future<Output = Result<(), Error>>
sourcepub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>
sourcepub async fn create_empty_block(
+) -> impl Future<Output = Result<(), Error>>
pub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>
pub async fn create_empty_block(
&mut self
-) -> impl Future<Output = Result<(), Error>>
sourcepub async fn create_block_with_txs(
+) -> impl Future<Output = Result<(), Error>>
pub async fn create_block_with_txs(
&mut self,
- transactions: Vec<Transaction<'_>, Global>
-) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>
sourcepub async fn create_block_with_parent(
+ transactions: Vec<Transaction<'_>, Global>
+) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>
pub async fn create_block_with_parent(
&mut self,
parent_hash: &str
-) -> impl Future<Output = Result<(), Error>>
sourcepub async fn health(&self) -> impl Future<Output = Result<bool, Error>>
Trait Implementations§
source§impl Debug for MadaraRunner
source§impl Deref for MadaraRunner
Auto Trait Implementations§
§impl !RefUnwindSafe for MadaraRunner
§impl Send for MadaraRunner
§impl !Sync for MadaraRunner
§impl Unpin for MadaraRunner
§impl UnwindSafe for MadaraRunner
Blanket Implementations§
Trait Implementations§
source§impl Debug for MadaraRunner
source§impl Deref for MadaraRunner
Auto Trait Implementations§
§impl !RefUnwindSafe for MadaraRunner
§impl Send for MadaraRunner
§impl !Sync for MadaraRunner
§impl Unpin for MadaraRunner
§impl UnwindSafe for MadaraRunner
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 moresource§impl<T> From<T> for T
source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html b/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html
index 705fe50a4d..b705fc7baf 100644
--- a/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html
+++ b/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html
@@ -1,11 +1,11 @@
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>,
Trait Implementations§
source§impl<B: BlockT, C, H> Stream for CommitmentStateDiffWorker<B, C, H>where
C: ProvideRuntimeApi<B> + HeaderBackend<B>,
- C::Api: StarknetRuntimeApi<B>,
+ C::Api: StarknetRuntimeApi<B>,
H: HasherT + Unpin,
source§fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>
diff --git a/mc_data_availability/fn.prove.html b/mc_data_availability/fn.prove.html
index e0f5b34bbd..f8eb9d191b 100644
--- a/mc_data_availability/fn.prove.html
+++ b/mc_data_availability/fn.prove.html
@@ -3,5 +3,5 @@
block_hash: BlockHash,
_state_diff: &ThinStateDiff,
_num_addr_accessed: usize,
- madara_backend: Arc<Backend<B>>
+ madara_backend: Arc<Backend<B>>
) -> Result<(), Error>
\ No newline at end of file
diff --git a/mc_data_availability/fn.update_state.html b/mc_data_availability/fn.update_state.html
index 996e316f1f..394537ec90 100644
--- a/mc_data_availability/fn.update_state.html
+++ b/mc_data_availability/fn.update_state.html
@@ -1,5 +1,5 @@
update_state in mc_data_availability - Rust
\ No newline at end of file
diff --git a/mc_data_availability/struct.DataAvailabilityWorker.html b/mc_data_availability/struct.DataAvailabilityWorker.html
index 992a1ee4b1..b7363fed17 100644
--- a/mc_data_availability/struct.DataAvailabilityWorker.html
+++ b/mc_data_availability/struct.DataAvailabilityWorker.html
@@ -11,7 +11,7 @@
da_client: Arc<dyn DaClient + Send + Sync>,
prometheus: Option<PrometheusRegistry>,
state_diffs_rx: Receiver<BlockDAData>,
- madara_backend: Arc<Backend<B>>
+ madara_backend: Arc<Backend<B>>
)Auto Trait Implementations§
§impl<B, H> RefUnwindSafe for DataAvailabilityWorker<B, H>where
B: RefUnwindSafe,
H: RefUnwindSafe,
§impl<B, H> Send for DataAvailabilityWorker<B, H>where
diff --git a/mc_l1_messages/worker/fn.run_worker.html b/mc_l1_messages/worker/fn.run_worker.html
index b2863b325f..207dbc71c3 100644
--- a/mc_l1_messages/worker/fn.run_worker.html
+++ b/mc_l1_messages/worker/fn.run_worker.html
@@ -1,4 +1,4 @@
-run_worker in mc_l1_messages::worker - Rust Function mc_l1_messages::worker::run_worker
source · pub async fn run_worker<C, P, B>(
+run_worker in mc_l1_messages::worker - Rust Function mc_l1_messages::worker::run_worker
source · pub async fn run_worker<C, P, B>(
config: L1MessagesWorkerConfig,
client: Arc<C>,
pool: Arc<P>,
@@ -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_l1_messages/worker/index.html b/mc_l1_messages/worker/index.html
index c5a35bd931..b82dd1b3ca 100644
--- a/mc_l1_messages/worker/index.html
+++ b/mc_l1_messages/worker/index.html
@@ -1 +1 @@
-mc_l1_messages::worker - Rust Module mc_l1_messages::worker
source · Functions
\ No newline at end of file
+mc_l1_messages::worker - Rust Module mc_l1_messages::worker
source · Functions
\ No newline at end of file
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 62357865e1..1fa19f9f08 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 983684e655..a058aaa823 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.EthereumConfig.html b/mc_settlement/ethereum/client/struct.EthereumConfig.html
index 1bc777a969..8f62fb003c 100644
--- a/mc_settlement/ethereum/client/struct.EthereumConfig.html
+++ b/mc_settlement/ethereum/client/struct.EthereumConfig.html
@@ -1,22 +1,22 @@
-EthereumConfig in mc_settlement::ethereum::client - Rust Struct mc_settlement::ethereum::client::EthereumConfig
pub struct EthereumConfig {
+EthereumConfig in mc_settlement::ethereum::client - Rust Struct mc_settlement::ethereum::client::EthereumConfig
source · pub struct EthereumConfig {
pub http_provider: String,
pub core_contracts: String,
pub sequencer_key: String,
pub chain_id: u64,
- pub mode: DaMode,
+ pub mode: DaMode,
pub poll_interval_ms: Option<u64>,
-}
Fields§
§http_provider: String
§core_contracts: String
§sequencer_key: String
§chain_id: u64
§mode: DaMode
§poll_interval_ms: Option<u64>
Trait Implementations§
§impl Clone for EthereumConfig
§fn clone(&self) -> EthereumConfig
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for EthereumConfig
§impl Default for EthereumConfig
§fn default() -> EthereumConfig
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for EthereumConfig
§fn deserialize<__D>(
+}Fields§
§http_provider: String
§core_contracts: String
§sequencer_key: String
§chain_id: u64
§mode: DaMode
§poll_interval_ms: Option<u64>
Trait Implementations§
source§impl Clone for EthereumConfig
source§fn clone(&self) -> EthereumConfig
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 Debug for EthereumConfig
source§impl Default for EthereumConfig
source§fn default() -> EthereumConfig
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for EthereumConfig
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EthereumConfig, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq<EthereumConfig> for EthereumConfig
§fn eq(&self, other: &EthereumConfig) -> bool
This method tests for self
and other
values to be equal, and is used
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<EthereumConfig> for EthereumConfig
source§fn eq(&self, other: &EthereumConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.§impl Serialize for EthereumConfig
source§impl Serialize for EthereumConfig
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 TryFrom<&PathBuf> for EthereumConfig
source§impl TryFrom<&PathBuf> for EthereumConfig
§impl StructuralPartialEq for EthereumConfig
Auto Trait Implementations§
§impl RefUnwindSafe for EthereumConfig
§impl Send for EthereumConfig
§impl Sync for EthereumConfig
§impl Unpin for EthereumConfig
§impl UnwindSafe for EthereumConfig
Blanket Implementations§
source§impl<T> Any for Twhere
+) -> Result<EthereumConfig, <EthereumConfig as TryFrom<&PathBuf>>::Error>
Performs the conversion.
source§impl StructuralPartialEq for EthereumConfig
Auto Trait Implementations§
§impl RefUnwindSafe for EthereumConfig
§impl Send for EthereumConfig
§impl Sync for EthereumConfig
§impl Unpin for EthereumConfig
§impl UnwindSafe for EthereumConfig
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/mc_settlement/ethereum/client/struct.StarknetContractClient.html b/mc_settlement/ethereum/client/struct.StarknetContractClient.html
index 36b5fed2f1..3bc7ad9366 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 3416ee3649..d21572865d 100644
--- a/mc_settlement/struct.SettlementWorker.html
+++ b/mc_settlement/struct.SettlementWorker.html
@@ -2,10 +2,10 @@
B: BlockT,
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>>,
+ madara_backend: Arc<Backend<B>>,
retry_strategy: Box<dyn RetryStrategy<B>>
)
A thread responsible for updating (progressing) Starknet state on the settlement layer.
For now we use a simplified setup without validity proofs & DA, but in the future
diff --git a/mc_settlement/trait.SettlementProvider.html b/mc_settlement/trait.SettlementProvider.html
index e07ad5c591..cba6a6cffd 100644
--- a/mc_settlement/trait.SettlementProvider.html
+++ b/mc_settlement/trait.SettlementProvider.html
@@ -17,7 +17,7 @@
'life0: 'async_trait;
fn update_state<'life0, 'async_trait>(
&'life0 self,
- program_output: StarknetOsOutput
+ program_output: StarknetOsOutput
) -> Pin<Box<dyn Future<Output = Result<(), B>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
@@ -35,7 +35,7 @@
Self: 'async_trait,
'life0: 'async_trait,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/enum.BlockId.html b/mp_block/enum.BlockId.html
index ef3ef6de30..aeb563cf42 100644
--- a/mp_block/enum.BlockId.html
+++ b/mp_block/enum.BlockId.html
@@ -1,10 +1,10 @@
BlockId in mp_block - Rust pub enum BlockId {
- Hash(Felt252Wrapper),
+ Hash(Felt252Wrapper),
Number(u64),
Tag(BlockTag),
}
Expand description
Block Id
Block hash, number or tag
-Variants§
Trait Implementations§
Variants§
Trait Implementations§
source§impl Decode for BlockId
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_block/struct.Block.html b/mp_block/struct.Block.html
index 9c40db05cd..21acd261fc 100644
--- a/mp_block/struct.Block.html
+++ b/mp_block/struct.Block.html
@@ -7,10 +7,10 @@ Arguments
sourcepub fn transactions(&self) -> &BlockTransactions
Return a reference to all transactions
-sourcepub fn transactions_hashes<H: HasherT>(
+
sourcepub fn transactions_hashes<H: HasherT>(
&self,
- chain_id: Felt252Wrapper
-) -> impl '_ + Iterator<Item = Felt252Wrapper>
Returns an iterator that iterates over all transaction hashes.
+ chain_id: Felt252Wrapper
+) -> impl '_ + Iterator<Item = Felt252Wrapper>Returns an iterator that iterates over all transaction hashes.
Those transactions are computed using the given chain_id
.
Trait Implementations§
source§impl Decode for Block
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
diff --git a/mp_block/struct.Header.html b/mp_block/struct.Header.html
index 5e81782e69..e07edfdcef 100644
--- a/mp_block/struct.Header.html
+++ b/mp_block/struct.Header.html
@@ -6,7 +6,7 @@
pub transaction_count: u128,
pub event_count: u128,
pub protocol_version: u8,
- pub l1_gas_price: ResourcePrice,
+ pub l1_gas_price: ResourcePrice,
pub extra_data: Option<U256>,
}Expand description
Starknet header definition.
Fields§
§parent_block_hash: StarkHash
The hash of this block’s parent.
@@ -16,7 +16,7 @@
§transaction_count: u128
The number of transactions in a block
§event_count: u128
The number of events
§protocol_version: u8
The version of the Starknet protocol used when creating this block
-§l1_gas_price: ResourcePrice
l1 gas price for this block
+§l1_gas_price: ResourcePrice
l1 gas price for this block
§extra_data: Option<U256>
Extraneous data that might be useful for running transactions
Implementations§
source§impl Header
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(
@@ -34,7 +34,7 @@
fee_token_address: ContractAddress,
chain_id: ChainId
) -> BlockContext
Converts to a blockifier BlockContext
-sourcepub fn hash<H: HasherT>(&self) -> Felt252Wrapper
Compute the hash of the header.
+Trait Implementations§
source§impl Decode for Header
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/mp_block/type.BlockTransactions.html b/mp_block/type.BlockTransactions.html
index d3a5f54cb9..48c7ad9fa3 100644
--- a/mp_block/type.BlockTransactions.html
+++ b/mp_block/type.BlockTransactions.html
@@ -1,2 +1,2 @@
-BlockTransactions in mp_block - Rust Type Definition mp_block::BlockTransactions
source · pub type BlockTransactions = Vec<Transaction>;
Expand description
Block Transactions
+BlockTransactions in mp_block - Rust Type Definition mp_block::BlockTransactions
source · pub type BlockTransactions = Vec<Transaction>;
Expand description
Block Transactions
\ No newline at end of file
diff --git a/mp_digest_log/enum.Log.html b/mp_digest_log/enum.Log.html
index 609640e8b9..ffd8579309 100644
--- a/mp_digest_log/enum.Log.html
+++ b/mp_digest_log/enum.Log.html
@@ -1,9 +1,9 @@
Log in mp_digest_log - Rust Enum mp_digest_log::Log
source · pub enum Log {
- Block(Block),
+ Block(Block),
}
Expand description
A Madara log
Right now we only expect Madara to log the Starknet block,
but other usecases may appears later on.
-Variants§
§Block(Block)
Trait Implementations§
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 999706ea25..c74eb0b30b 100644
--- a/mp_messages/struct.MessageL1ToL2.html
+++ b/mp_messages/struct.MessageL1ToL2.html
@@ -16,7 +16,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)Convert self to a slice and append it to the destination.§fn 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/mp_transactions/compute_hash/trait.ComputeTransactionHash.html b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
index 5b49df9a9a..cbbcbcd751 100644
--- a/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
+++ b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
@@ -1,12 +1,12 @@
ComputeTransactionHash in mp_transactions::compute_hash - Rust pub trait ComputeTransactionHash {
// Required method
- fn compute_hash<H: HasherT>(
+ fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
- ) -> Felt252Wrapper;
-}
Required Methods§
sourcefn compute_hash<H: HasherT>(
+ ) -> Felt252Wrapper;
+}Required Methods§
sourcefn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
Implementors§
source§impl ComputeTransactionHash for DeclareTransaction
source§impl ComputeTransactionHash for InvokeTransaction
source§impl ComputeTransactionHash for Transaction
source§impl ComputeTransactionHash for UserTransaction
source§impl ComputeTransactionHash for DeclareTransactionV0
source§impl ComputeTransactionHash for DeclareTransactionV1
source§impl ComputeTransactionHash for DeclareTransactionV2
source§impl ComputeTransactionHash for DeployAccountTransaction
source§impl ComputeTransactionHash for HandleL1MessageTransaction
source§impl ComputeTransactionHash for InvokeTransactionV0
source§impl ComputeTransactionHash for InvokeTransactionV1
\ No newline at end of file
+) -> Felt252WrapperImplementors§
source§impl ComputeTransactionHash for DeclareTransaction
source§impl ComputeTransactionHash for InvokeTransaction
source§impl ComputeTransactionHash for Transaction
source§impl ComputeTransactionHash for UserTransaction
source§impl ComputeTransactionHash for DeclareTransactionV0
source§impl ComputeTransactionHash for DeclareTransactionV1
source§impl ComputeTransactionHash for DeclareTransactionV2
source§impl ComputeTransactionHash for DeployAccountTransaction
source§impl ComputeTransactionHash for HandleL1MessageTransaction
source§impl ComputeTransactionHash for InvokeTransactionV0
source§impl ComputeTransactionHash for InvokeTransactionV1
\ No newline at end of file
diff --git a/mp_transactions/enum.DeclareTransaction.html b/mp_transactions/enum.DeclareTransaction.html
index 0250169d7f..d38a9bdbdb 100644
--- a/mp_transactions/enum.DeclareTransaction.html
+++ b/mp_transactions/enum.DeclareTransaction.html
@@ -2,16 +2,16 @@
V0(DeclareTransactionV0),
V1(DeclareTransactionV1),
V2(DeclareTransactionV2),
-}Variants§
Implementations§
source§impl DeclareTransaction
sourcepub fn try_into_executable<H: HasherT>(
+}Variants§
Implementations§
source§impl DeclareTransaction
sourcepub fn try_into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
contract_class: ContractClass,
offset_version: bool
-) -> TransactionExecutionResult<DeclareTransaction>
source§impl DeclareTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn compiled_class_hash(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeclareTransaction
source§fn clone(&self) -> DeclareTransaction
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 ComputeTransactionHash for DeclareTransaction
source§fn compute_hash<H: HasherT>(
+) -> TransactionExecutionResult<DeclareTransaction>
source§impl DeclareTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn compiled_class_hash(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeclareTransaction
source§fn clone(&self) -> DeclareTransaction
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 ComputeTransactionHash for DeclareTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransaction
source§impl Decode for DeclareTransaction
source§impl Debug for DeclareTransaction
source§impl Decode for DeclareTransaction
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_transactions/enum.InvokeTransaction.html b/mp_transactions/enum.InvokeTransaction.html
index 03851cb664..38fa9009de 100644
--- a/mp_transactions/enum.InvokeTransaction.html
+++ b/mp_transactions/enum.InvokeTransaction.html
@@ -1,15 +1,15 @@
InvokeTransaction in mp_transactions - Rust pub enum InvokeTransaction {
V0(InvokeTransactionV0),
V1(InvokeTransactionV1),
-}
Variants§
Implementations§
source§impl InvokeTransaction
sourcepub fn into_executable<H: HasherT>(
+}Variants§
Implementations§
source§impl InvokeTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
source§impl InvokeTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for InvokeTransaction
source§fn clone(&self) -> InvokeTransaction
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 ComputeTransactionHash for InvokeTransaction
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransaction
source§fn clone(&self) -> InvokeTransaction
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 ComputeTransactionHash for InvokeTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransaction
source§impl Decode for InvokeTransaction
source§impl Debug for InvokeTransaction
source§impl Decode for InvokeTransaction
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_transactions/enum.Transaction.html b/mp_transactions/enum.Transaction.html
index 01ca48ea47..bbc3088d79 100644
--- a/mp_transactions/enum.Transaction.html
+++ b/mp_transactions/enum.Transaction.html
@@ -3,11 +3,11 @@
DeployAccount(DeployAccountTransaction),
Invoke(InvokeTransaction),
L1Handler(HandleL1MessageTransaction),
-}Variants§
§Declare(DeclareTransaction)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
§L1Handler(HandleL1MessageTransaction)
Implementations§
source§impl Transaction
sourcepub fn signature(&self) -> Vec<Felt252Wrapper>
Trait Implementations§
source§impl Clone for Transaction
source§fn clone(&self) -> Transaction
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 ComputeTransactionHash for Transaction
source§fn compute_hash<H: HasherT>(
+}Variants§
§Declare(DeclareTransaction)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
§L1Handler(HandleL1MessageTransaction)
Implementations§
Trait Implementations§
source§impl Clone for Transaction
source§fn clone(&self) -> Transaction
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 ComputeTransactionHash for Transaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for Transaction
source§impl Debug for Transaction
source§impl Decode for Transaction
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_transactions/enum.UserTransaction.html b/mp_transactions/enum.UserTransaction.html
index bf82c0cb98..e86f0ba54b 100644
--- a/mp_transactions/enum.UserTransaction.html
+++ b/mp_transactions/enum.UserTransaction.html
@@ -2,11 +2,11 @@
Declare(DeclareTransaction, ContractClass),
DeployAccount(DeployAccountTransaction),
Invoke(InvokeTransaction),
-}Variants§
§Declare(DeclareTransaction, ContractClass)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
Implementations§
source§impl UserTransaction
sourcepub fn sender_address(&self) -> Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> Option<&Vec<Felt252Wrapper>>
sourcepub fn nonce(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for UserTransaction
source§fn clone(&self) -> UserTransaction
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 ComputeTransactionHash for UserTransaction
source§fn compute_hash<H: HasherT>(
+}Variants§
§Declare(DeclareTransaction, ContractClass)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
Implementations§
Trait Implementations§
source§impl Clone for UserTransaction
source§fn clone(&self) -> UserTransaction
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 ComputeTransactionHash for UserTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for UserTransaction
source§impl Decode for UserTransaction
source§impl Debug for UserTransaction
source§impl Decode for UserTransaction
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_transactions/execution/trait.Execute.html b/mp_transactions/execution/trait.Execute.html
index 85007f0a3a..e6242eb5bc 100644
--- a/mp_transactions/execution/trait.Execute.html
+++ b/mp_transactions/execution/trait.Execute.html
@@ -1,6 +1,6 @@
Execute in mp_transactions::execution - Rust Trait mp_transactions::execution::Execute
source · pub trait Execute: Sized + GetAccountTransactionContext + GetTransactionCalldata + GetTxType {
// Required method
- fn execute_inner<S: State + StateChanges>(
+ fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -15,19 +15,19 @@
account_tx_context: &AccountTransactionContext,
state: &mut dyn State
) -> TransactionExecutionResult<()> { ... }
- fn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
+ fn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
state: &mut S,
block_context: &BlockContext,
account_tx_context: &AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<()> { ... }
- fn execute<S: State + StateChanges>(
+ fn execute<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<TransactionExecutionInfo> { ... }
- fn handle_fee<S: State + StateChanges>(
+ fn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -37,7 +37,7 @@
account_tx_context: AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)> { ... }
-}
Required Methods§
sourcefn execute_inner<S: State + StateChanges>(
+}Required Methods§
sourcefn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -48,18 +48,18 @@
) -> TransactionExecutionResult<ValidateExecuteCallInfo>
Provided Methods§
sourcefn handle_nonce(
account_tx_context: &AccountTransactionContext,
state: &mut dyn State
-) -> TransactionExecutionResult<()>
sourcefn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
+) -> TransactionExecutionResult<()>
sourcefn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
state: &mut S,
block_context: &BlockContext,
account_tx_context: &AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<()>
Handles nonce and checks that the account’s balance covers max fee.
-sourcefn execute<S: State + StateChanges>(
+
sourcefn execute<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<TransactionExecutionInfo>
sourcefn handle_fee<S: State + StateChanges>(
+) -> TransactionExecutionResult<TransactionExecutionInfo>
sourcefn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -68,7 +68,7 @@
block_context: &BlockContext,
account_tx_context: AccountTransactionContext,
execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
Implementations on Foreign Types§
source§impl Execute for DeclareTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
Implementations on Foreign Types§
source§impl Execute for DeclareTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -76,7 +76,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for InvokeTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for InvokeTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -84,7 +84,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for L1HandlerTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for L1HandlerTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -92,7 +92,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
_disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§fn handle_fee<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§fn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -101,7 +101,7 @@
block_context: &BlockContext,
_account_tx_context: AccountTransactionContext,
_execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
source§impl Execute for DeployAccountTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
source§impl Execute for DeployAccountTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
diff --git a/mp_transactions/struct.DeclareTransactionV0.html b/mp_transactions/struct.DeclareTransactionV0.html
index 0c35723e9a..a58bf574cc 100644
--- a/mp_transactions/struct.DeclareTransactionV0.html
+++ b/mp_transactions/struct.DeclareTransactionV0.html
@@ -1,14 +1,14 @@
DeclareTransactionV0 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV0
source · pub struct DeclareTransactionV0 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
Trait Implementations§
source§impl Clone for DeclareTransactionV0
source§fn clone(&self) -> DeclareTransactionV0
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 ComputeTransactionHash for DeclareTransactionV0
source§fn compute_hash<H: HasherT>(
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
Trait Implementations§
source§impl Clone for DeclareTransactionV0
source§fn clone(&self) -> DeclareTransactionV0
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 ComputeTransactionHash for DeclareTransactionV0
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV0
source§impl Decode for DeclareTransactionV0
source§impl Debug for DeclareTransactionV0
source§impl Decode for DeclareTransactionV0
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_transactions/struct.DeclareTransactionV1.html b/mp_transactions/struct.DeclareTransactionV1.html
index a204957849..4fa8a863a7 100644
--- a/mp_transactions/struct.DeclareTransactionV1.html
+++ b/mp_transactions/struct.DeclareTransactionV1.html
@@ -1,15 +1,15 @@
DeclareTransactionV1 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV1
source · pub struct DeclareTransactionV1 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV1
source§fn clone(&self) -> DeclareTransactionV1
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 ComputeTransactionHash for DeclareTransactionV1
source§fn compute_hash<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV1
source§fn clone(&self) -> DeclareTransactionV1
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 ComputeTransactionHash for DeclareTransactionV1
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV1
source§impl Decode for DeclareTransactionV1
source§impl Debug for DeclareTransactionV1
source§impl Decode for DeclareTransactionV1
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_transactions/struct.DeclareTransactionV2.html b/mp_transactions/struct.DeclareTransactionV2.html
index 10c1a5113e..1217155fc2 100644
--- a/mp_transactions/struct.DeclareTransactionV2.html
+++ b/mp_transactions/struct.DeclareTransactionV2.html
@@ -1,16 +1,16 @@
DeclareTransactionV2 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV2
source · pub struct DeclareTransactionV2 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
- pub compiled_class_hash: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+ pub compiled_class_hash: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§compiled_class_hash: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV2
source§fn clone(&self) -> DeclareTransactionV2
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 ComputeTransactionHash for DeclareTransactionV2
source§fn compute_hash<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§compiled_class_hash: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV2
source§fn clone(&self) -> DeclareTransactionV2
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 ComputeTransactionHash for DeclareTransactionV2
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV2
source§impl Decode for DeclareTransactionV2
source§impl Debug for DeclareTransactionV2
source§impl Decode for DeclareTransactionV2
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_transactions/struct.DeployAccountTransaction.html b/mp_transactions/struct.DeployAccountTransaction.html
index 5dcb447c27..568ead7093 100644
--- a/mp_transactions/struct.DeployAccountTransaction.html
+++ b/mp_transactions/struct.DeployAccountTransaction.html
@@ -1,24 +1,24 @@
DeployAccountTransaction in mp_transactions - Rust pub struct DeployAccountTransaction {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub contract_address_salt: Felt252Wrapper,
- pub constructor_calldata: Vec<Felt252Wrapper>,
- pub class_hash: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub contract_address_salt: Felt252Wrapper,
+ pub constructor_calldata: Vec<Felt252Wrapper>,
+ pub class_hash: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§contract_address_salt: Felt252Wrapper
§constructor_calldata: Vec<Felt252Wrapper>
§class_hash: Felt252Wrapper
§offset_version: bool
Implementations§
source§impl DeployAccountTransaction
sourcepub fn get_account_address(&self) -> FieldElement
sourcepub fn calculate_contract_address(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§contract_address_salt: Felt252Wrapper
§constructor_calldata: Vec<Felt252Wrapper>
§class_hash: Felt252Wrapper
§offset_version: bool
Implementations§
source§impl DeployAccountTransaction
sourcepub fn get_account_address(&self) -> FieldElement
sourcepub fn calculate_contract_address(
contract_address_salt: FieldElement,
class_hash: FieldElement,
constructor_calldata: &[FieldElement]
-) -> FieldElement
source§impl DeployAccountTransaction
sourcepub fn into_executable<H: HasherT>(
+) -> FieldElement
source§impl DeployAccountTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> DeployAccountTransaction
source§impl DeployAccountTransaction
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn account_address(&self) -> Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeployAccountTransaction
source§fn clone(&self) -> DeployAccountTransaction
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 ComputeTransactionHash for DeployAccountTransaction
source§fn compute_hash<H: HasherT>(
+) -> DeployAccountTransaction
source§impl DeployAccountTransaction
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn account_address(&self) -> Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeployAccountTransaction
source§fn clone(&self) -> DeployAccountTransaction
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 ComputeTransactionHash for DeployAccountTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeployAccountTransaction
source§impl Decode for DeployAccountTransaction
source§impl Debug for DeployAccountTransaction
source§impl Decode for DeployAccountTransaction
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_transactions/struct.HandleL1MessageTransaction.html b/mp_transactions/struct.HandleL1MessageTransaction.html
index d40b407ee6..e6d3c15cff 100644
--- a/mp_transactions/struct.HandleL1MessageTransaction.html
+++ b/mp_transactions/struct.HandleL1MessageTransaction.html
@@ -1,18 +1,18 @@
HandleL1MessageTransaction in mp_transactions - Rust pub struct HandleL1MessageTransaction {
pub nonce: u64,
- pub contract_address: Felt252Wrapper,
- pub entry_point_selector: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
-}
Fields§
§nonce: u64
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl HandleL1MessageTransaction
sourcepub fn into_executable<H: HasherT>(
+ pub contract_address: Felt252Wrapper,
+ pub entry_point_selector: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
+}Fields§
§nonce: u64
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl HandleL1MessageTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
paid_fee_on_l1: Fee,
offset_version: bool
-) -> L1HandlerTransaction
Trait Implementations§
source§impl Clone for HandleL1MessageTransaction
source§fn clone(&self) -> HandleL1MessageTransaction
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 ComputeTransactionHash for HandleL1MessageTransaction
source§fn compute_hash<H: HasherT>(
+) -> L1HandlerTransaction
Trait Implementations§
source§impl Clone for HandleL1MessageTransaction
source§fn clone(&self) -> HandleL1MessageTransaction
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 ComputeTransactionHash for HandleL1MessageTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for HandleL1MessageTransaction
source§impl Decode for HandleL1MessageTransaction
source§impl Debug for HandleL1MessageTransaction
source§impl Decode for HandleL1MessageTransaction
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_transactions/struct.InvokeTransactionV0.html b/mp_transactions/struct.InvokeTransactionV0.html
index 1687d63a29..efecdffeba 100644
--- a/mp_transactions/struct.InvokeTransactionV0.html
+++ b/mp_transactions/struct.InvokeTransactionV0.html
@@ -1,18 +1,18 @@
InvokeTransactionV0 in mp_transactions - Rust Struct mp_transactions::InvokeTransactionV0
source · pub struct InvokeTransactionV0 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub contract_address: Felt252Wrapper,
- pub entry_point_selector: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl InvokeTransactionV0
sourcepub fn into_executable<H: HasherT>(
+ pub signature: Vec<Felt252Wrapper>,
+ pub contract_address: Felt252Wrapper,
+ pub entry_point_selector: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl InvokeTransactionV0
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV0
source§fn clone(&self) -> InvokeTransactionV0
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 ComputeTransactionHash for InvokeTransactionV0
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV0
source§fn clone(&self) -> InvokeTransactionV0
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 ComputeTransactionHash for InvokeTransactionV0
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransactionV0
source§impl Decode for InvokeTransactionV0
source§impl Debug for InvokeTransactionV0
source§impl Decode for InvokeTransactionV0
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_transactions/struct.InvokeTransactionV1.html b/mp_transactions/struct.InvokeTransactionV1.html
index 4d6c4d7dd2..11ba8f383d 100644
--- a/mp_transactions/struct.InvokeTransactionV1.html
+++ b/mp_transactions/struct.InvokeTransactionV1.html
@@ -1,19 +1,19 @@
InvokeTransactionV1 in mp_transactions - Rust Struct mp_transactions::InvokeTransactionV1
source · pub struct InvokeTransactionV1 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§sender_address: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
§offset_version: bool
Implementations§
source§impl InvokeTransactionV1
sourcepub fn into_executable<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§sender_address: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
§offset_version: bool
Implementations§
source§impl InvokeTransactionV1
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV1
source§fn clone(&self) -> InvokeTransactionV1
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 ComputeTransactionHash for InvokeTransactionV1
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV1
source§fn clone(&self) -> InvokeTransactionV1
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 ComputeTransactionHash for InvokeTransactionV1
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransactionV1
source§impl Decode for InvokeTransactionV1
source§impl Debug for InvokeTransactionV1
source§impl Decode for InvokeTransactionV1
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/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html b/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
index daf8a0b623..bde988c38b 100644
--- a/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
+++ b/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
@@ -1,7 +1,7 @@
RuntimeExecutionConfigBuilder in pallet_starknet::execution_config - Rust
Struct madara_test_runner::client::MadaraClient
pub struct MadaraClient { /* private fields */ }
Expand description
A wrapper over the Madara process handle, reqwest client and request counter
+Implementations§
§impl MadaraClient
impl MadaraClient
pub fn new(url: Url) -> MadaraClient
pub async fn run_to_block( &mut self, target_block: u64 -) -> impl Future<Output = Result<(), Error>>
pub async fn create_n_blocks( +) -> impl Future<Output = Result<(), Error>>
pub async fn create_n_blocks( &mut self, n: u64 -) -> impl Future<Output = Result<(), Error>>
pub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>
pub async fn create_empty_block( +) -> impl Future<Output = Result<(), Error>>
pub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>
pub async fn create_empty_block( &mut self -) -> impl Future<Output = Result<(), Error>>
pub async fn create_block_with_txs( +) -> impl Future<Output = Result<(), Error>>
pub async fn create_block_with_txs( &mut self, - transactions: Vec<Transaction<'_>, Global> -) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>
pub async fn create_block_with_parent( + transactions: Vec<Transaction<'_>, Global> +) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>
pub async fn create_block_with_parent( &mut self, parent_hash: &str -) -> impl Future<Output = Result<(), Error>>
pub async fn health(&self) -> impl Future<Output = Result<bool, Error>>
Trait Implementations§
source§impl Debug for MadaraClient
impl Debug for MadaraClient
source§impl Default for MadaraClient
impl Default for MadaraClient
source§fn default() -> MadaraClient
fn default() -> MadaraClient
Auto Trait Implementations§
impl !RefUnwindSafe for MadaraClient
impl Send for MadaraClient
impl !Sync for MadaraClient
impl Unpin for MadaraClient
impl UnwindSafe for MadaraClient
Blanket Implementations§
Trait Implementations§
§impl Debug for MadaraClient
impl Debug for MadaraClient
§impl Default for MadaraClient
impl Default for MadaraClient
§fn default() -> MadaraClient
fn default() -> MadaraClient
Auto Trait Implementations§
impl !RefUnwindSafe for MadaraClient
impl Send for MadaraClient
impl !Sync for MadaraClient
impl Unpin for MadaraClient
impl UnwindSafe for MadaraClient
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> From<T> for T
impl<T> From<T> for T
source§fn from(t: T) -> T
fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/madara_test_runner/struct.MadaraRunner.html b/madara_test_runner/struct.MadaraRunner.html index 9d4b32c6ce..3bcae46009 100644 --- a/madara_test_runner/struct.MadaraRunner.html +++ b/madara_test_runner/struct.MadaraRunner.html @@ -1,18 +1,18 @@ -Struct madara_test_runner::MadaraRunner
source · pub struct MadaraRunner { /* private fields */ }
Implementations§
source§impl MadaraRunner
impl MadaraRunner
pub async fn new(args: MadaraArgs) -> Self
Methods from Deref<Target = MadaraClient>§
pub async fn run_to_block(
+MadaraRunner in madara_test_runner - Rust Struct madara_test_runner::MadaraRunner
source · pub struct MadaraRunner { /* private fields */ }
Implementations§
source§impl MadaraRunner
sourcepub async fn new(args: MadaraArgs) -> Self
Methods from Deref<Target = MadaraClient>§
pub async fn run_to_block(
&mut self,
target_block: u64
-) -> impl Future<Output = Result<(), Error>>
sourcepub async fn create_n_blocks(
+) -> impl Future<Output = Result<(), Error>>
pub async fn create_n_blocks(
&mut self,
n: u64
-) -> impl Future<Output = Result<(), Error>>
sourcepub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>
sourcepub async fn create_empty_block(
+) -> impl Future<Output = Result<(), Error>>
pub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>
pub async fn create_empty_block(
&mut self
-) -> impl Future<Output = Result<(), Error>>
sourcepub async fn create_block_with_txs(
+) -> impl Future<Output = Result<(), Error>>
pub async fn create_block_with_txs(
&mut self,
- transactions: Vec<Transaction<'_>, Global>
-) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>
sourcepub async fn create_block_with_parent(
+ transactions: Vec<Transaction<'_>, Global>
+) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>
pub async fn create_block_with_parent(
&mut self,
parent_hash: &str
-) -> impl Future<Output = Result<(), Error>>
sourcepub async fn health(&self) -> impl Future<Output = Result<bool, Error>>
Trait Implementations§
source§impl Debug for MadaraRunner
source§impl Deref for MadaraRunner
Auto Trait Implementations§
§impl !RefUnwindSafe for MadaraRunner
§impl Send for MadaraRunner
§impl !Sync for MadaraRunner
§impl Unpin for MadaraRunner
§impl UnwindSafe for MadaraRunner
Blanket Implementations§
Trait Implementations§
source§impl Debug for MadaraRunner
source§impl Deref for MadaraRunner
Auto Trait Implementations§
§impl !RefUnwindSafe for MadaraRunner
§impl Send for MadaraRunner
§impl !Sync for MadaraRunner
§impl Unpin for MadaraRunner
§impl UnwindSafe for MadaraRunner
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 moresource§impl<T> From<T> for T
source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html b/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html
index 705fe50a4d..b705fc7baf 100644
--- a/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html
+++ b/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html
@@ -1,11 +1,11 @@
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>,
Trait Implementations§
source§impl<B: BlockT, C, H> Stream for CommitmentStateDiffWorker<B, C, H>where
C: ProvideRuntimeApi<B> + HeaderBackend<B>,
- C::Api: StarknetRuntimeApi<B>,
+ C::Api: StarknetRuntimeApi<B>,
H: HasherT + Unpin,
source§fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>
diff --git a/mc_data_availability/fn.prove.html b/mc_data_availability/fn.prove.html
index e0f5b34bbd..f8eb9d191b 100644
--- a/mc_data_availability/fn.prove.html
+++ b/mc_data_availability/fn.prove.html
@@ -3,5 +3,5 @@
block_hash: BlockHash,
_state_diff: &ThinStateDiff,
_num_addr_accessed: usize,
- madara_backend: Arc<Backend<B>>
+ madara_backend: Arc<Backend<B>>
) -> Result<(), Error>
\ No newline at end of file
diff --git a/mc_data_availability/fn.update_state.html b/mc_data_availability/fn.update_state.html
index 996e316f1f..394537ec90 100644
--- a/mc_data_availability/fn.update_state.html
+++ b/mc_data_availability/fn.update_state.html
@@ -1,5 +1,5 @@
update_state in mc_data_availability - Rust
\ No newline at end of file
diff --git a/mc_data_availability/struct.DataAvailabilityWorker.html b/mc_data_availability/struct.DataAvailabilityWorker.html
index 992a1ee4b1..b7363fed17 100644
--- a/mc_data_availability/struct.DataAvailabilityWorker.html
+++ b/mc_data_availability/struct.DataAvailabilityWorker.html
@@ -11,7 +11,7 @@
da_client: Arc<dyn DaClient + Send + Sync>,
prometheus: Option<PrometheusRegistry>,
state_diffs_rx: Receiver<BlockDAData>,
- madara_backend: Arc<Backend<B>>
+ madara_backend: Arc<Backend<B>>
)Auto Trait Implementations§
§impl<B, H> RefUnwindSafe for DataAvailabilityWorker<B, H>where
B: RefUnwindSafe,
H: RefUnwindSafe,
§impl<B, H> Send for DataAvailabilityWorker<B, H>where
diff --git a/mc_l1_messages/worker/fn.run_worker.html b/mc_l1_messages/worker/fn.run_worker.html
index b2863b325f..207dbc71c3 100644
--- a/mc_l1_messages/worker/fn.run_worker.html
+++ b/mc_l1_messages/worker/fn.run_worker.html
@@ -1,4 +1,4 @@
-run_worker in mc_l1_messages::worker - Rust Function mc_l1_messages::worker::run_worker
source · pub async fn run_worker<C, P, B>(
+run_worker in mc_l1_messages::worker - Rust Function mc_l1_messages::worker::run_worker
source · pub async fn run_worker<C, P, B>(
config: L1MessagesWorkerConfig,
client: Arc<C>,
pool: Arc<P>,
@@ -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_l1_messages/worker/index.html b/mc_l1_messages/worker/index.html
index c5a35bd931..b82dd1b3ca 100644
--- a/mc_l1_messages/worker/index.html
+++ b/mc_l1_messages/worker/index.html
@@ -1 +1 @@
-mc_l1_messages::worker - Rust Module mc_l1_messages::worker
source · Functions
\ No newline at end of file
+mc_l1_messages::worker - Rust Module mc_l1_messages::worker
source · Functions
\ No newline at end of file
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 62357865e1..1fa19f9f08 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 983684e655..a058aaa823 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.EthereumConfig.html b/mc_settlement/ethereum/client/struct.EthereumConfig.html
index 1bc777a969..8f62fb003c 100644
--- a/mc_settlement/ethereum/client/struct.EthereumConfig.html
+++ b/mc_settlement/ethereum/client/struct.EthereumConfig.html
@@ -1,22 +1,22 @@
-EthereumConfig in mc_settlement::ethereum::client - Rust Struct mc_settlement::ethereum::client::EthereumConfig
pub struct EthereumConfig {
+EthereumConfig in mc_settlement::ethereum::client - Rust Struct mc_settlement::ethereum::client::EthereumConfig
source · pub struct EthereumConfig {
pub http_provider: String,
pub core_contracts: String,
pub sequencer_key: String,
pub chain_id: u64,
- pub mode: DaMode,
+ pub mode: DaMode,
pub poll_interval_ms: Option<u64>,
-}
Fields§
§http_provider: String
§core_contracts: String
§sequencer_key: String
§chain_id: u64
§mode: DaMode
§poll_interval_ms: Option<u64>
Trait Implementations§
§impl Clone for EthereumConfig
§fn clone(&self) -> EthereumConfig
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for EthereumConfig
§impl Default for EthereumConfig
§fn default() -> EthereumConfig
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for EthereumConfig
§fn deserialize<__D>(
+}Fields§
§http_provider: String
§core_contracts: String
§sequencer_key: String
§chain_id: u64
§mode: DaMode
§poll_interval_ms: Option<u64>
Trait Implementations§
source§impl Clone for EthereumConfig
source§fn clone(&self) -> EthereumConfig
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 Debug for EthereumConfig
source§impl Default for EthereumConfig
source§fn default() -> EthereumConfig
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for EthereumConfig
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EthereumConfig, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq<EthereumConfig> for EthereumConfig
§fn eq(&self, other: &EthereumConfig) -> bool
This method tests for self
and other
values to be equal, and is used
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<EthereumConfig> for EthereumConfig
source§fn eq(&self, other: &EthereumConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.§impl Serialize for EthereumConfig
source§impl Serialize for EthereumConfig
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 TryFrom<&PathBuf> for EthereumConfig
source§impl TryFrom<&PathBuf> for EthereumConfig
§impl StructuralPartialEq for EthereumConfig
Auto Trait Implementations§
§impl RefUnwindSafe for EthereumConfig
§impl Send for EthereumConfig
§impl Sync for EthereumConfig
§impl Unpin for EthereumConfig
§impl UnwindSafe for EthereumConfig
Blanket Implementations§
source§impl<T> Any for Twhere
+) -> Result<EthereumConfig, <EthereumConfig as TryFrom<&PathBuf>>::Error>
Performs the conversion.
source§impl StructuralPartialEq for EthereumConfig
Auto Trait Implementations§
§impl RefUnwindSafe for EthereumConfig
§impl Send for EthereumConfig
§impl Sync for EthereumConfig
§impl Unpin for EthereumConfig
§impl UnwindSafe for EthereumConfig
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/mc_settlement/ethereum/client/struct.StarknetContractClient.html b/mc_settlement/ethereum/client/struct.StarknetContractClient.html
index 36b5fed2f1..3bc7ad9366 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 3416ee3649..d21572865d 100644
--- a/mc_settlement/struct.SettlementWorker.html
+++ b/mc_settlement/struct.SettlementWorker.html
@@ -2,10 +2,10 @@
B: BlockT,
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>>,
+ madara_backend: Arc<Backend<B>>,
retry_strategy: Box<dyn RetryStrategy<B>>
)
A thread responsible for updating (progressing) Starknet state on the settlement layer.
For now we use a simplified setup without validity proofs & DA, but in the future
diff --git a/mc_settlement/trait.SettlementProvider.html b/mc_settlement/trait.SettlementProvider.html
index e07ad5c591..cba6a6cffd 100644
--- a/mc_settlement/trait.SettlementProvider.html
+++ b/mc_settlement/trait.SettlementProvider.html
@@ -17,7 +17,7 @@
'life0: 'async_trait;
fn update_state<'life0, 'async_trait>(
&'life0 self,
- program_output: StarknetOsOutput
+ program_output: StarknetOsOutput
) -> Pin<Box<dyn Future<Output = Result<(), B>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
@@ -35,7 +35,7 @@
Self: 'async_trait,
'life0: 'async_trait,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/enum.BlockId.html b/mp_block/enum.BlockId.html
index ef3ef6de30..aeb563cf42 100644
--- a/mp_block/enum.BlockId.html
+++ b/mp_block/enum.BlockId.html
@@ -1,10 +1,10 @@
BlockId in mp_block - Rust pub enum BlockId {
- Hash(Felt252Wrapper),
+ Hash(Felt252Wrapper),
Number(u64),
Tag(BlockTag),
}
Expand description
Block Id
Block hash, number or tag
-Variants§
Trait Implementations§
Variants§
Trait Implementations§
source§impl Decode for BlockId
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_block/struct.Block.html b/mp_block/struct.Block.html
index 9c40db05cd..21acd261fc 100644
--- a/mp_block/struct.Block.html
+++ b/mp_block/struct.Block.html
@@ -7,10 +7,10 @@ Arguments
sourcepub fn transactions(&self) -> &BlockTransactions
Return a reference to all transactions
-sourcepub fn transactions_hashes<H: HasherT>(
+
sourcepub fn transactions_hashes<H: HasherT>(
&self,
- chain_id: Felt252Wrapper
-) -> impl '_ + Iterator<Item = Felt252Wrapper>
Returns an iterator that iterates over all transaction hashes.
+ chain_id: Felt252Wrapper
+) -> impl '_ + Iterator<Item = Felt252Wrapper>Returns an iterator that iterates over all transaction hashes.
Those transactions are computed using the given chain_id
.
Trait Implementations§
source§impl Decode for Block
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
diff --git a/mp_block/struct.Header.html b/mp_block/struct.Header.html
index 5e81782e69..e07edfdcef 100644
--- a/mp_block/struct.Header.html
+++ b/mp_block/struct.Header.html
@@ -6,7 +6,7 @@
pub transaction_count: u128,
pub event_count: u128,
pub protocol_version: u8,
- pub l1_gas_price: ResourcePrice,
+ pub l1_gas_price: ResourcePrice,
pub extra_data: Option<U256>,
}Expand description
Starknet header definition.
Fields§
§parent_block_hash: StarkHash
The hash of this block’s parent.
@@ -16,7 +16,7 @@
§transaction_count: u128
The number of transactions in a block
§event_count: u128
The number of events
§protocol_version: u8
The version of the Starknet protocol used when creating this block
-§l1_gas_price: ResourcePrice
l1 gas price for this block
+§l1_gas_price: ResourcePrice
l1 gas price for this block
§extra_data: Option<U256>
Extraneous data that might be useful for running transactions
Implementations§
source§impl Header
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(
@@ -34,7 +34,7 @@
fee_token_address: ContractAddress,
chain_id: ChainId
) -> BlockContext
Converts to a blockifier BlockContext
-sourcepub fn hash<H: HasherT>(&self) -> Felt252Wrapper
Compute the hash of the header.
+Trait Implementations§
source§impl Decode for Header
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/mp_block/type.BlockTransactions.html b/mp_block/type.BlockTransactions.html
index d3a5f54cb9..48c7ad9fa3 100644
--- a/mp_block/type.BlockTransactions.html
+++ b/mp_block/type.BlockTransactions.html
@@ -1,2 +1,2 @@
-BlockTransactions in mp_block - Rust Type Definition mp_block::BlockTransactions
source · pub type BlockTransactions = Vec<Transaction>;
Expand description
Block Transactions
+BlockTransactions in mp_block - Rust Type Definition mp_block::BlockTransactions
source · pub type BlockTransactions = Vec<Transaction>;
Expand description
Block Transactions
\ No newline at end of file
diff --git a/mp_digest_log/enum.Log.html b/mp_digest_log/enum.Log.html
index 609640e8b9..ffd8579309 100644
--- a/mp_digest_log/enum.Log.html
+++ b/mp_digest_log/enum.Log.html
@@ -1,9 +1,9 @@
Log in mp_digest_log - Rust Enum mp_digest_log::Log
source · pub enum Log {
- Block(Block),
+ Block(Block),
}
Expand description
A Madara log
Right now we only expect Madara to log the Starknet block,
but other usecases may appears later on.
-Variants§
§Block(Block)
Trait Implementations§
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 999706ea25..c74eb0b30b 100644
--- a/mp_messages/struct.MessageL1ToL2.html
+++ b/mp_messages/struct.MessageL1ToL2.html
@@ -16,7 +16,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)Convert self to a slice and append it to the destination.§fn 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/mp_transactions/compute_hash/trait.ComputeTransactionHash.html b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
index 5b49df9a9a..cbbcbcd751 100644
--- a/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
+++ b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
@@ -1,12 +1,12 @@
ComputeTransactionHash in mp_transactions::compute_hash - Rust pub trait ComputeTransactionHash {
// Required method
- fn compute_hash<H: HasherT>(
+ fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
- ) -> Felt252Wrapper;
-}
Required Methods§
sourcefn compute_hash<H: HasherT>(
+ ) -> Felt252Wrapper;
+}Required Methods§
sourcefn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
Implementors§
source§impl ComputeTransactionHash for DeclareTransaction
source§impl ComputeTransactionHash for InvokeTransaction
source§impl ComputeTransactionHash for Transaction
source§impl ComputeTransactionHash for UserTransaction
source§impl ComputeTransactionHash for DeclareTransactionV0
source§impl ComputeTransactionHash for DeclareTransactionV1
source§impl ComputeTransactionHash for DeclareTransactionV2
source§impl ComputeTransactionHash for DeployAccountTransaction
source§impl ComputeTransactionHash for HandleL1MessageTransaction
source§impl ComputeTransactionHash for InvokeTransactionV0
source§impl ComputeTransactionHash for InvokeTransactionV1
\ No newline at end of file
+) -> Felt252WrapperImplementors§
source§impl ComputeTransactionHash for DeclareTransaction
source§impl ComputeTransactionHash for InvokeTransaction
source§impl ComputeTransactionHash for Transaction
source§impl ComputeTransactionHash for UserTransaction
source§impl ComputeTransactionHash for DeclareTransactionV0
source§impl ComputeTransactionHash for DeclareTransactionV1
source§impl ComputeTransactionHash for DeclareTransactionV2
source§impl ComputeTransactionHash for DeployAccountTransaction
source§impl ComputeTransactionHash for HandleL1MessageTransaction
source§impl ComputeTransactionHash for InvokeTransactionV0
source§impl ComputeTransactionHash for InvokeTransactionV1
\ No newline at end of file
diff --git a/mp_transactions/enum.DeclareTransaction.html b/mp_transactions/enum.DeclareTransaction.html
index 0250169d7f..d38a9bdbdb 100644
--- a/mp_transactions/enum.DeclareTransaction.html
+++ b/mp_transactions/enum.DeclareTransaction.html
@@ -2,16 +2,16 @@
V0(DeclareTransactionV0),
V1(DeclareTransactionV1),
V2(DeclareTransactionV2),
-}Variants§
Implementations§
source§impl DeclareTransaction
sourcepub fn try_into_executable<H: HasherT>(
+}Variants§
Implementations§
source§impl DeclareTransaction
sourcepub fn try_into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
contract_class: ContractClass,
offset_version: bool
-) -> TransactionExecutionResult<DeclareTransaction>
source§impl DeclareTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn compiled_class_hash(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeclareTransaction
source§fn clone(&self) -> DeclareTransaction
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 ComputeTransactionHash for DeclareTransaction
source§fn compute_hash<H: HasherT>(
+) -> TransactionExecutionResult<DeclareTransaction>
source§impl DeclareTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn compiled_class_hash(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeclareTransaction
source§fn clone(&self) -> DeclareTransaction
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 ComputeTransactionHash for DeclareTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransaction
source§impl Decode for DeclareTransaction
source§impl Debug for DeclareTransaction
source§impl Decode for DeclareTransaction
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_transactions/enum.InvokeTransaction.html b/mp_transactions/enum.InvokeTransaction.html
index 03851cb664..38fa9009de 100644
--- a/mp_transactions/enum.InvokeTransaction.html
+++ b/mp_transactions/enum.InvokeTransaction.html
@@ -1,15 +1,15 @@
InvokeTransaction in mp_transactions - Rust pub enum InvokeTransaction {
V0(InvokeTransactionV0),
V1(InvokeTransactionV1),
-}
Variants§
Implementations§
source§impl InvokeTransaction
sourcepub fn into_executable<H: HasherT>(
+}Variants§
Implementations§
source§impl InvokeTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
source§impl InvokeTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for InvokeTransaction
source§fn clone(&self) -> InvokeTransaction
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 ComputeTransactionHash for InvokeTransaction
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransaction
source§fn clone(&self) -> InvokeTransaction
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 ComputeTransactionHash for InvokeTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransaction
source§impl Decode for InvokeTransaction
source§impl Debug for InvokeTransaction
source§impl Decode for InvokeTransaction
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_transactions/enum.Transaction.html b/mp_transactions/enum.Transaction.html
index 01ca48ea47..bbc3088d79 100644
--- a/mp_transactions/enum.Transaction.html
+++ b/mp_transactions/enum.Transaction.html
@@ -3,11 +3,11 @@
DeployAccount(DeployAccountTransaction),
Invoke(InvokeTransaction),
L1Handler(HandleL1MessageTransaction),
-}Variants§
§Declare(DeclareTransaction)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
§L1Handler(HandleL1MessageTransaction)
Implementations§
source§impl Transaction
sourcepub fn signature(&self) -> Vec<Felt252Wrapper>
Trait Implementations§
source§impl Clone for Transaction
source§fn clone(&self) -> Transaction
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 ComputeTransactionHash for Transaction
source§fn compute_hash<H: HasherT>(
+}Variants§
§Declare(DeclareTransaction)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
§L1Handler(HandleL1MessageTransaction)
Implementations§
Trait Implementations§
source§impl Clone for Transaction
source§fn clone(&self) -> Transaction
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 ComputeTransactionHash for Transaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for Transaction
source§impl Debug for Transaction
source§impl Decode for Transaction
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_transactions/enum.UserTransaction.html b/mp_transactions/enum.UserTransaction.html
index bf82c0cb98..e86f0ba54b 100644
--- a/mp_transactions/enum.UserTransaction.html
+++ b/mp_transactions/enum.UserTransaction.html
@@ -2,11 +2,11 @@
Declare(DeclareTransaction, ContractClass),
DeployAccount(DeployAccountTransaction),
Invoke(InvokeTransaction),
-}Variants§
§Declare(DeclareTransaction, ContractClass)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
Implementations§
source§impl UserTransaction
sourcepub fn sender_address(&self) -> Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> Option<&Vec<Felt252Wrapper>>
sourcepub fn nonce(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for UserTransaction
source§fn clone(&self) -> UserTransaction
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 ComputeTransactionHash for UserTransaction
source§fn compute_hash<H: HasherT>(
+}Variants§
§Declare(DeclareTransaction, ContractClass)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
Implementations§
Trait Implementations§
source§impl Clone for UserTransaction
source§fn clone(&self) -> UserTransaction
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 ComputeTransactionHash for UserTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for UserTransaction
source§impl Decode for UserTransaction
source§impl Debug for UserTransaction
source§impl Decode for UserTransaction
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_transactions/execution/trait.Execute.html b/mp_transactions/execution/trait.Execute.html
index 85007f0a3a..e6242eb5bc 100644
--- a/mp_transactions/execution/trait.Execute.html
+++ b/mp_transactions/execution/trait.Execute.html
@@ -1,6 +1,6 @@
Execute in mp_transactions::execution - Rust Trait mp_transactions::execution::Execute
source · pub trait Execute: Sized + GetAccountTransactionContext + GetTransactionCalldata + GetTxType {
// Required method
- fn execute_inner<S: State + StateChanges>(
+ fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -15,19 +15,19 @@
account_tx_context: &AccountTransactionContext,
state: &mut dyn State
) -> TransactionExecutionResult<()> { ... }
- fn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
+ fn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
state: &mut S,
block_context: &BlockContext,
account_tx_context: &AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<()> { ... }
- fn execute<S: State + StateChanges>(
+ fn execute<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<TransactionExecutionInfo> { ... }
- fn handle_fee<S: State + StateChanges>(
+ fn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -37,7 +37,7 @@
account_tx_context: AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)> { ... }
-}
Required Methods§
sourcefn execute_inner<S: State + StateChanges>(
+}Required Methods§
sourcefn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -48,18 +48,18 @@
) -> TransactionExecutionResult<ValidateExecuteCallInfo>
Provided Methods§
sourcefn handle_nonce(
account_tx_context: &AccountTransactionContext,
state: &mut dyn State
-) -> TransactionExecutionResult<()>
sourcefn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
+) -> TransactionExecutionResult<()>
sourcefn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
state: &mut S,
block_context: &BlockContext,
account_tx_context: &AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<()>
Handles nonce and checks that the account’s balance covers max fee.
-sourcefn execute<S: State + StateChanges>(
+
sourcefn execute<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<TransactionExecutionInfo>
sourcefn handle_fee<S: State + StateChanges>(
+) -> TransactionExecutionResult<TransactionExecutionInfo>
sourcefn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -68,7 +68,7 @@
block_context: &BlockContext,
account_tx_context: AccountTransactionContext,
execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
Implementations on Foreign Types§
source§impl Execute for DeclareTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
Implementations on Foreign Types§
source§impl Execute for DeclareTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -76,7 +76,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for InvokeTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for InvokeTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -84,7 +84,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for L1HandlerTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for L1HandlerTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -92,7 +92,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
_disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§fn handle_fee<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§fn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -101,7 +101,7 @@
block_context: &BlockContext,
_account_tx_context: AccountTransactionContext,
_execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
source§impl Execute for DeployAccountTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
source§impl Execute for DeployAccountTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
diff --git a/mp_transactions/struct.DeclareTransactionV0.html b/mp_transactions/struct.DeclareTransactionV0.html
index 0c35723e9a..a58bf574cc 100644
--- a/mp_transactions/struct.DeclareTransactionV0.html
+++ b/mp_transactions/struct.DeclareTransactionV0.html
@@ -1,14 +1,14 @@
DeclareTransactionV0 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV0
source · pub struct DeclareTransactionV0 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
Trait Implementations§
source§impl Clone for DeclareTransactionV0
source§fn clone(&self) -> DeclareTransactionV0
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 ComputeTransactionHash for DeclareTransactionV0
source§fn compute_hash<H: HasherT>(
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
Trait Implementations§
source§impl Clone for DeclareTransactionV0
source§fn clone(&self) -> DeclareTransactionV0
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 ComputeTransactionHash for DeclareTransactionV0
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV0
source§impl Decode for DeclareTransactionV0
source§impl Debug for DeclareTransactionV0
source§impl Decode for DeclareTransactionV0
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_transactions/struct.DeclareTransactionV1.html b/mp_transactions/struct.DeclareTransactionV1.html
index a204957849..4fa8a863a7 100644
--- a/mp_transactions/struct.DeclareTransactionV1.html
+++ b/mp_transactions/struct.DeclareTransactionV1.html
@@ -1,15 +1,15 @@
DeclareTransactionV1 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV1
source · pub struct DeclareTransactionV1 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV1
source§fn clone(&self) -> DeclareTransactionV1
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 ComputeTransactionHash for DeclareTransactionV1
source§fn compute_hash<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV1
source§fn clone(&self) -> DeclareTransactionV1
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 ComputeTransactionHash for DeclareTransactionV1
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV1
source§impl Decode for DeclareTransactionV1
source§impl Debug for DeclareTransactionV1
source§impl Decode for DeclareTransactionV1
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_transactions/struct.DeclareTransactionV2.html b/mp_transactions/struct.DeclareTransactionV2.html
index 10c1a5113e..1217155fc2 100644
--- a/mp_transactions/struct.DeclareTransactionV2.html
+++ b/mp_transactions/struct.DeclareTransactionV2.html
@@ -1,16 +1,16 @@
DeclareTransactionV2 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV2
source · pub struct DeclareTransactionV2 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
- pub compiled_class_hash: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+ pub compiled_class_hash: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§compiled_class_hash: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV2
source§fn clone(&self) -> DeclareTransactionV2
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 ComputeTransactionHash for DeclareTransactionV2
source§fn compute_hash<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§compiled_class_hash: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV2
source§fn clone(&self) -> DeclareTransactionV2
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 ComputeTransactionHash for DeclareTransactionV2
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV2
source§impl Decode for DeclareTransactionV2
source§impl Debug for DeclareTransactionV2
source§impl Decode for DeclareTransactionV2
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_transactions/struct.DeployAccountTransaction.html b/mp_transactions/struct.DeployAccountTransaction.html
index 5dcb447c27..568ead7093 100644
--- a/mp_transactions/struct.DeployAccountTransaction.html
+++ b/mp_transactions/struct.DeployAccountTransaction.html
@@ -1,24 +1,24 @@
DeployAccountTransaction in mp_transactions - Rust pub struct DeployAccountTransaction {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub contract_address_salt: Felt252Wrapper,
- pub constructor_calldata: Vec<Felt252Wrapper>,
- pub class_hash: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub contract_address_salt: Felt252Wrapper,
+ pub constructor_calldata: Vec<Felt252Wrapper>,
+ pub class_hash: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§contract_address_salt: Felt252Wrapper
§constructor_calldata: Vec<Felt252Wrapper>
§class_hash: Felt252Wrapper
§offset_version: bool
Implementations§
source§impl DeployAccountTransaction
sourcepub fn get_account_address(&self) -> FieldElement
sourcepub fn calculate_contract_address(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§contract_address_salt: Felt252Wrapper
§constructor_calldata: Vec<Felt252Wrapper>
§class_hash: Felt252Wrapper
§offset_version: bool
Implementations§
source§impl DeployAccountTransaction
sourcepub fn get_account_address(&self) -> FieldElement
sourcepub fn calculate_contract_address(
contract_address_salt: FieldElement,
class_hash: FieldElement,
constructor_calldata: &[FieldElement]
-) -> FieldElement
source§impl DeployAccountTransaction
sourcepub fn into_executable<H: HasherT>(
+) -> FieldElement
source§impl DeployAccountTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> DeployAccountTransaction
source§impl DeployAccountTransaction
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn account_address(&self) -> Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeployAccountTransaction
source§fn clone(&self) -> DeployAccountTransaction
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 ComputeTransactionHash for DeployAccountTransaction
source§fn compute_hash<H: HasherT>(
+) -> DeployAccountTransaction
source§impl DeployAccountTransaction
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn account_address(&self) -> Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeployAccountTransaction
source§fn clone(&self) -> DeployAccountTransaction
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 ComputeTransactionHash for DeployAccountTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeployAccountTransaction
source§impl Decode for DeployAccountTransaction
source§impl Debug for DeployAccountTransaction
source§impl Decode for DeployAccountTransaction
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_transactions/struct.HandleL1MessageTransaction.html b/mp_transactions/struct.HandleL1MessageTransaction.html
index d40b407ee6..e6d3c15cff 100644
--- a/mp_transactions/struct.HandleL1MessageTransaction.html
+++ b/mp_transactions/struct.HandleL1MessageTransaction.html
@@ -1,18 +1,18 @@
HandleL1MessageTransaction in mp_transactions - Rust pub struct HandleL1MessageTransaction {
pub nonce: u64,
- pub contract_address: Felt252Wrapper,
- pub entry_point_selector: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
-}
Fields§
§nonce: u64
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl HandleL1MessageTransaction
sourcepub fn into_executable<H: HasherT>(
+ pub contract_address: Felt252Wrapper,
+ pub entry_point_selector: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
+}Fields§
§nonce: u64
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl HandleL1MessageTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
paid_fee_on_l1: Fee,
offset_version: bool
-) -> L1HandlerTransaction
Trait Implementations§
source§impl Clone for HandleL1MessageTransaction
source§fn clone(&self) -> HandleL1MessageTransaction
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 ComputeTransactionHash for HandleL1MessageTransaction
source§fn compute_hash<H: HasherT>(
+) -> L1HandlerTransaction
Trait Implementations§
source§impl Clone for HandleL1MessageTransaction
source§fn clone(&self) -> HandleL1MessageTransaction
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 ComputeTransactionHash for HandleL1MessageTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for HandleL1MessageTransaction
source§impl Decode for HandleL1MessageTransaction
source§impl Debug for HandleL1MessageTransaction
source§impl Decode for HandleL1MessageTransaction
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_transactions/struct.InvokeTransactionV0.html b/mp_transactions/struct.InvokeTransactionV0.html
index 1687d63a29..efecdffeba 100644
--- a/mp_transactions/struct.InvokeTransactionV0.html
+++ b/mp_transactions/struct.InvokeTransactionV0.html
@@ -1,18 +1,18 @@
InvokeTransactionV0 in mp_transactions - Rust Struct mp_transactions::InvokeTransactionV0
source · pub struct InvokeTransactionV0 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub contract_address: Felt252Wrapper,
- pub entry_point_selector: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl InvokeTransactionV0
sourcepub fn into_executable<H: HasherT>(
+ pub signature: Vec<Felt252Wrapper>,
+ pub contract_address: Felt252Wrapper,
+ pub entry_point_selector: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl InvokeTransactionV0
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV0
source§fn clone(&self) -> InvokeTransactionV0
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 ComputeTransactionHash for InvokeTransactionV0
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV0
source§fn clone(&self) -> InvokeTransactionV0
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 ComputeTransactionHash for InvokeTransactionV0
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransactionV0
source§impl Decode for InvokeTransactionV0
source§impl Debug for InvokeTransactionV0
source§impl Decode for InvokeTransactionV0
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_transactions/struct.InvokeTransactionV1.html b/mp_transactions/struct.InvokeTransactionV1.html
index 4d6c4d7dd2..11ba8f383d 100644
--- a/mp_transactions/struct.InvokeTransactionV1.html
+++ b/mp_transactions/struct.InvokeTransactionV1.html
@@ -1,19 +1,19 @@
InvokeTransactionV1 in mp_transactions - Rust Struct mp_transactions::InvokeTransactionV1
source · pub struct InvokeTransactionV1 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§sender_address: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
§offset_version: bool
Implementations§
source§impl InvokeTransactionV1
sourcepub fn into_executable<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§sender_address: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
§offset_version: bool
Implementations§
source§impl InvokeTransactionV1
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV1
source§fn clone(&self) -> InvokeTransactionV1
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 ComputeTransactionHash for InvokeTransactionV1
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV1
source§fn clone(&self) -> InvokeTransactionV1
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 ComputeTransactionHash for InvokeTransactionV1
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransactionV1
source§impl Decode for InvokeTransactionV1
source§impl Debug for InvokeTransactionV1
source§impl Decode for InvokeTransactionV1
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/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html b/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
index daf8a0b623..bde988c38b 100644
--- a/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
+++ b/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
@@ -1,7 +1,7 @@
RuntimeExecutionConfigBuilder in pallet_starknet::execution_config - Rust
Struct madara_test_runner::MadaraRunner
source · pub struct MadaraRunner { /* private fields */ }
Implementations§
source§impl MadaraRunner
impl MadaraRunner
pub async fn new(args: MadaraArgs) -> Self
Methods from Deref<Target = MadaraClient>§
pub async fn run_to_block( &mut self, target_block: u64 -) -> impl Future<Output = Result<(), Error>>
pub async fn create_n_blocks( +) -> impl Future<Output = Result<(), Error>>
pub async fn create_n_blocks( &mut self, n: u64 -) -> impl Future<Output = Result<(), Error>>
pub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>
pub async fn create_empty_block( +) -> impl Future<Output = Result<(), Error>>
pub fn get_starknet_client(&self) -> JsonRpcClient<HttpTransport>
pub async fn create_empty_block( &mut self -) -> impl Future<Output = Result<(), Error>>
pub async fn create_block_with_txs( +) -> impl Future<Output = Result<(), Error>>
pub async fn create_block_with_txs( &mut self, - transactions: Vec<Transaction<'_>, Global> -) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>
pub async fn create_block_with_parent( + transactions: Vec<Transaction<'_>, Global> +) -> impl Future<Output = Result<Vec<Result<TransactionResult, SendTransactionError>, Global>, Error>>
pub async fn create_block_with_parent( &mut self, parent_hash: &str -) -> impl Future<Output = Result<(), Error>>
pub async fn health(&self) -> impl Future<Output = Result<bool, Error>>
Trait Implementations§
source§impl Debug for MadaraRunner
impl Debug for MadaraRunner
source§impl Deref for MadaraRunner
impl Deref for MadaraRunner
Auto Trait Implementations§
impl !RefUnwindSafe for MadaraRunner
impl Send for MadaraRunner
impl !Sync for MadaraRunner
impl Unpin for MadaraRunner
impl UnwindSafe for MadaraRunner
Blanket Implementations§
Trait Implementations§
source§impl Debug for MadaraRunner
impl Debug for MadaraRunner
source§impl Deref for MadaraRunner
impl Deref for MadaraRunner
Auto Trait Implementations§
impl !RefUnwindSafe for MadaraRunner
impl Send for MadaraRunner
impl !Sync for MadaraRunner
impl Unpin for MadaraRunner
impl UnwindSafe for MadaraRunner
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> From<T> for T
impl<T> From<T> for T
source§fn from(t: T) -> T
fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html b/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html index 705fe50a4d..b705fc7baf 100644 --- a/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html +++ b/mc_commitment_state_diff/struct.CommitmentStateDiffWorker.html @@ -1,11 +1,11 @@pub struct CommitmentStateDiffWorker<B: BlockT, C, H> { /* private fields */ }
Implementations§
source§impl<B: BlockT, C, H> CommitmentStateDiffWorker<B, C, H>where
C: BlockchainEvents<B>,
impl<B: BlockT, C, H> CommitmentStateDiffWorker<B, C, H>where C: BlockchainEvents<B>,
Trait Implementations§
source§impl<B: BlockT, C, H> Stream for CommitmentStateDiffWorker<B, C, H>where
C: ProvideRuntimeApi<B> + HeaderBackend<B>,
- C::Api: StarknetRuntimeApi<B>,
+ C::Api: StarknetRuntimeApi<B>,
H: HasherT + Unpin,
impl<B: BlockT, C, H> Stream for CommitmentStateDiffWorker<B, C, H>where C: ProvideRuntimeApi<B> + HeaderBackend<B>, - C::Api: StarknetRuntimeApi<B>, + C::Api: StarknetRuntimeApi<B>, H: HasherT + Unpin,
source§fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>
diff --git a/mc_data_availability/fn.prove.html b/mc_data_availability/fn.prove.html
index e0f5b34bbd..f8eb9d191b 100644
--- a/mc_data_availability/fn.prove.html
+++ b/mc_data_availability/fn.prove.html
@@ -3,5 +3,5 @@
block_hash: BlockHash,
_state_diff: &ThinStateDiff,
_num_addr_accessed: usize,
- madara_backend: Arc<Backend<B>>
+ madara_backend: Arc<Backend<B>>
) -> Result<(), Error>
fn poll_next( self: Pin<&mut Self>, cx: &mut Context<'_> diff --git a/mc_data_availability/fn.prove.html b/mc_data_availability/fn.prove.html index e0f5b34bbd..f8eb9d191b 100644 --- a/mc_data_availability/fn.prove.html +++ b/mc_data_availability/fn.prove.html @@ -3,5 +3,5 @@ block_hash: BlockHash, _state_diff: &ThinStateDiff, _num_addr_accessed: usize, - madara_backend: Arc<Backend<B>> + madara_backend: Arc<Backend<B>> ) -> Result<(), Error>
Auto Trait Implementations§
impl<B, H> RefUnwindSafe for DataAvailabilityWorker<B, H>where B: RefUnwindSafe, H: RefUnwindSafe,
impl<B, H> Send for DataAvailabilityWorker<B, H>where
diff --git a/mc_l1_messages/worker/fn.run_worker.html b/mc_l1_messages/worker/fn.run_worker.html
index b2863b325f..207dbc71c3 100644
--- a/mc_l1_messages/worker/fn.run_worker.html
+++ b/mc_l1_messages/worker/fn.run_worker.html
@@ -1,4 +1,4 @@
-run_worker in mc_l1_messages::worker - Rust Function mc_l1_messages::worker::run_worker
source · pub async fn run_worker<C, P, B>(
+run_worker in mc_l1_messages::worker - Rust Function mc_l1_messages::worker::run_worker
source · pub async fn run_worker<C, P, B>(
config: L1MessagesWorkerConfig,
client: Arc<C>,
pool: Arc<P>,
@@ -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_l1_messages/worker/index.html b/mc_l1_messages/worker/index.html
index c5a35bd931..b82dd1b3ca 100644
--- a/mc_l1_messages/worker/index.html
+++ b/mc_l1_messages/worker/index.html
@@ -1 +1 @@
-mc_l1_messages::worker - Rust Module mc_l1_messages::worker
source · Functions
\ No newline at end of file
+mc_l1_messages::worker - Rust Module mc_l1_messages::worker
source · Functions
\ No newline at end of file
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 62357865e1..1fa19f9f08 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 983684e655..a058aaa823 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.EthereumConfig.html b/mc_settlement/ethereum/client/struct.EthereumConfig.html
index 1bc777a969..8f62fb003c 100644
--- a/mc_settlement/ethereum/client/struct.EthereumConfig.html
+++ b/mc_settlement/ethereum/client/struct.EthereumConfig.html
@@ -1,22 +1,22 @@
-EthereumConfig in mc_settlement::ethereum::client - Rust Struct mc_settlement::ethereum::client::EthereumConfig
pub struct EthereumConfig {
+EthereumConfig in mc_settlement::ethereum::client - Rust Struct mc_settlement::ethereum::client::EthereumConfig
source · pub struct EthereumConfig {
pub http_provider: String,
pub core_contracts: String,
pub sequencer_key: String,
pub chain_id: u64,
- pub mode: DaMode,
+ pub mode: DaMode,
pub poll_interval_ms: Option<u64>,
-}
Fields§
§http_provider: String
§core_contracts: String
§sequencer_key: String
§chain_id: u64
§mode: DaMode
§poll_interval_ms: Option<u64>
Trait Implementations§
§impl Clone for EthereumConfig
§fn clone(&self) -> EthereumConfig
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for EthereumConfig
§impl Default for EthereumConfig
§fn default() -> EthereumConfig
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for EthereumConfig
§fn deserialize<__D>(
+}Fields§
§http_provider: String
§core_contracts: String
§sequencer_key: String
§chain_id: u64
§mode: DaMode
§poll_interval_ms: Option<u64>
Trait Implementations§
source§impl Clone for EthereumConfig
source§fn clone(&self) -> EthereumConfig
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 Debug for EthereumConfig
source§impl Default for EthereumConfig
source§fn default() -> EthereumConfig
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for EthereumConfig
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EthereumConfig, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq<EthereumConfig> for EthereumConfig
§fn eq(&self, other: &EthereumConfig) -> bool
This method tests for self
and other
values to be equal, and is used
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<EthereumConfig> for EthereumConfig
source§fn eq(&self, other: &EthereumConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.§impl Serialize for EthereumConfig
source§impl Serialize for EthereumConfig
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 TryFrom<&PathBuf> for EthereumConfig
source§impl TryFrom<&PathBuf> for EthereumConfig
§impl StructuralPartialEq for EthereumConfig
Auto Trait Implementations§
§impl RefUnwindSafe for EthereumConfig
§impl Send for EthereumConfig
§impl Sync for EthereumConfig
§impl Unpin for EthereumConfig
§impl UnwindSafe for EthereumConfig
Blanket Implementations§
source§impl<T> Any for Twhere
+) -> Result<EthereumConfig, <EthereumConfig as TryFrom<&PathBuf>>::Error>
Performs the conversion.
source§impl StructuralPartialEq for EthereumConfig
Auto Trait Implementations§
§impl RefUnwindSafe for EthereumConfig
§impl Send for EthereumConfig
§impl Sync for EthereumConfig
§impl Unpin for EthereumConfig
§impl UnwindSafe for EthereumConfig
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/mc_settlement/ethereum/client/struct.StarknetContractClient.html b/mc_settlement/ethereum/client/struct.StarknetContractClient.html
index 36b5fed2f1..3bc7ad9366 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 3416ee3649..d21572865d 100644
--- a/mc_settlement/struct.SettlementWorker.html
+++ b/mc_settlement/struct.SettlementWorker.html
@@ -2,10 +2,10 @@
B: BlockT,
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>>,
+ madara_backend: Arc<Backend<B>>,
retry_strategy: Box<dyn RetryStrategy<B>>
)
A thread responsible for updating (progressing) Starknet state on the settlement layer.
For now we use a simplified setup without validity proofs & DA, but in the future
diff --git a/mc_settlement/trait.SettlementProvider.html b/mc_settlement/trait.SettlementProvider.html
index e07ad5c591..cba6a6cffd 100644
--- a/mc_settlement/trait.SettlementProvider.html
+++ b/mc_settlement/trait.SettlementProvider.html
@@ -17,7 +17,7 @@
'life0: 'async_trait;
fn update_state<'life0, 'async_trait>(
&'life0 self,
- program_output: StarknetOsOutput
+ program_output: StarknetOsOutput
) -> Pin<Box<dyn Future<Output = Result<(), B>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
@@ -35,7 +35,7 @@
Self: 'async_trait,
'life0: 'async_trait,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/enum.BlockId.html b/mp_block/enum.BlockId.html
index ef3ef6de30..aeb563cf42 100644
--- a/mp_block/enum.BlockId.html
+++ b/mp_block/enum.BlockId.html
@@ -1,10 +1,10 @@
BlockId in mp_block - Rust pub enum BlockId {
- Hash(Felt252Wrapper),
+ Hash(Felt252Wrapper),
Number(u64),
Tag(BlockTag),
}
Expand description
Block Id
Block hash, number or tag
-Variants§
Trait Implementations§
Variants§
Trait Implementations§
source§impl Decode for BlockId
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_block/struct.Block.html b/mp_block/struct.Block.html
index 9c40db05cd..21acd261fc 100644
--- a/mp_block/struct.Block.html
+++ b/mp_block/struct.Block.html
@@ -7,10 +7,10 @@ Arguments
sourcepub fn transactions(&self) -> &BlockTransactions
Return a reference to all transactions
-sourcepub fn transactions_hashes<H: HasherT>(
+
sourcepub fn transactions_hashes<H: HasherT>(
&self,
- chain_id: Felt252Wrapper
-) -> impl '_ + Iterator<Item = Felt252Wrapper>
Returns an iterator that iterates over all transaction hashes.
+ chain_id: Felt252Wrapper
+) -> impl '_ + Iterator<Item = Felt252Wrapper>Returns an iterator that iterates over all transaction hashes.
Those transactions are computed using the given chain_id
.
Trait Implementations§
source§impl Decode for Block
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
diff --git a/mp_block/struct.Header.html b/mp_block/struct.Header.html
index 5e81782e69..e07edfdcef 100644
--- a/mp_block/struct.Header.html
+++ b/mp_block/struct.Header.html
@@ -6,7 +6,7 @@
pub transaction_count: u128,
pub event_count: u128,
pub protocol_version: u8,
- pub l1_gas_price: ResourcePrice,
+ pub l1_gas_price: ResourcePrice,
pub extra_data: Option<U256>,
}Expand description
Starknet header definition.
Fields§
§parent_block_hash: StarkHash
The hash of this block’s parent.
@@ -16,7 +16,7 @@
§transaction_count: u128
The number of transactions in a block
§event_count: u128
The number of events
§protocol_version: u8
The version of the Starknet protocol used when creating this block
-§l1_gas_price: ResourcePrice
l1 gas price for this block
+§l1_gas_price: ResourcePrice
l1 gas price for this block
§extra_data: Option<U256>
Extraneous data that might be useful for running transactions
Implementations§
source§impl Header
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(
@@ -34,7 +34,7 @@
fee_token_address: ContractAddress,
chain_id: ChainId
) -> BlockContext
Converts to a blockifier BlockContext
-sourcepub fn hash<H: HasherT>(&self) -> Felt252Wrapper
Compute the hash of the header.
+Trait Implementations§
source§impl Decode for Header
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/mp_block/type.BlockTransactions.html b/mp_block/type.BlockTransactions.html
index d3a5f54cb9..48c7ad9fa3 100644
--- a/mp_block/type.BlockTransactions.html
+++ b/mp_block/type.BlockTransactions.html
@@ -1,2 +1,2 @@
-BlockTransactions in mp_block - Rust Type Definition mp_block::BlockTransactions
source · pub type BlockTransactions = Vec<Transaction>;
Expand description
Block Transactions
+BlockTransactions in mp_block - Rust Type Definition mp_block::BlockTransactions
source · pub type BlockTransactions = Vec<Transaction>;
Expand description
Block Transactions
\ No newline at end of file
diff --git a/mp_digest_log/enum.Log.html b/mp_digest_log/enum.Log.html
index 609640e8b9..ffd8579309 100644
--- a/mp_digest_log/enum.Log.html
+++ b/mp_digest_log/enum.Log.html
@@ -1,9 +1,9 @@
Log in mp_digest_log - Rust Enum mp_digest_log::Log
source · pub enum Log {
- Block(Block),
+ Block(Block),
}
Expand description
A Madara log
Right now we only expect Madara to log the Starknet block,
but other usecases may appears later on.
-Variants§
§Block(Block)
Trait Implementations§
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 999706ea25..c74eb0b30b 100644
--- a/mp_messages/struct.MessageL1ToL2.html
+++ b/mp_messages/struct.MessageL1ToL2.html
@@ -16,7 +16,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)Convert self to a slice and append it to the destination.§fn 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/mp_transactions/compute_hash/trait.ComputeTransactionHash.html b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
index 5b49df9a9a..cbbcbcd751 100644
--- a/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
+++ b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
@@ -1,12 +1,12 @@
ComputeTransactionHash in mp_transactions::compute_hash - Rust pub trait ComputeTransactionHash {
// Required method
- fn compute_hash<H: HasherT>(
+ fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
- ) -> Felt252Wrapper;
-}
Required Methods§
sourcefn compute_hash<H: HasherT>(
+ ) -> Felt252Wrapper;
+}Required Methods§
sourcefn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
Implementors§
source§impl ComputeTransactionHash for DeclareTransaction
source§impl ComputeTransactionHash for InvokeTransaction
source§impl ComputeTransactionHash for Transaction
source§impl ComputeTransactionHash for UserTransaction
source§impl ComputeTransactionHash for DeclareTransactionV0
source§impl ComputeTransactionHash for DeclareTransactionV1
source§impl ComputeTransactionHash for DeclareTransactionV2
source§impl ComputeTransactionHash for DeployAccountTransaction
source§impl ComputeTransactionHash for HandleL1MessageTransaction
source§impl ComputeTransactionHash for InvokeTransactionV0
source§impl ComputeTransactionHash for InvokeTransactionV1
\ No newline at end of file
+) -> Felt252WrapperImplementors§
source§impl ComputeTransactionHash for DeclareTransaction
source§impl ComputeTransactionHash for InvokeTransaction
source§impl ComputeTransactionHash for Transaction
source§impl ComputeTransactionHash for UserTransaction
source§impl ComputeTransactionHash for DeclareTransactionV0
source§impl ComputeTransactionHash for DeclareTransactionV1
source§impl ComputeTransactionHash for DeclareTransactionV2
source§impl ComputeTransactionHash for DeployAccountTransaction
source§impl ComputeTransactionHash for HandleL1MessageTransaction
source§impl ComputeTransactionHash for InvokeTransactionV0
source§impl ComputeTransactionHash for InvokeTransactionV1
\ No newline at end of file
diff --git a/mp_transactions/enum.DeclareTransaction.html b/mp_transactions/enum.DeclareTransaction.html
index 0250169d7f..d38a9bdbdb 100644
--- a/mp_transactions/enum.DeclareTransaction.html
+++ b/mp_transactions/enum.DeclareTransaction.html
@@ -2,16 +2,16 @@
V0(DeclareTransactionV0),
V1(DeclareTransactionV1),
V2(DeclareTransactionV2),
-}Variants§
Implementations§
source§impl DeclareTransaction
sourcepub fn try_into_executable<H: HasherT>(
+}Variants§
Implementations§
source§impl DeclareTransaction
sourcepub fn try_into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
contract_class: ContractClass,
offset_version: bool
-) -> TransactionExecutionResult<DeclareTransaction>
source§impl DeclareTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn compiled_class_hash(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeclareTransaction
source§fn clone(&self) -> DeclareTransaction
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 ComputeTransactionHash for DeclareTransaction
source§fn compute_hash<H: HasherT>(
+) -> TransactionExecutionResult<DeclareTransaction>
source§impl DeclareTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn compiled_class_hash(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeclareTransaction
source§fn clone(&self) -> DeclareTransaction
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 ComputeTransactionHash for DeclareTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransaction
source§impl Decode for DeclareTransaction
source§impl Debug for DeclareTransaction
source§impl Decode for DeclareTransaction
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_transactions/enum.InvokeTransaction.html b/mp_transactions/enum.InvokeTransaction.html
index 03851cb664..38fa9009de 100644
--- a/mp_transactions/enum.InvokeTransaction.html
+++ b/mp_transactions/enum.InvokeTransaction.html
@@ -1,15 +1,15 @@
InvokeTransaction in mp_transactions - Rust pub enum InvokeTransaction {
V0(InvokeTransactionV0),
V1(InvokeTransactionV1),
-}
Variants§
Implementations§
source§impl InvokeTransaction
sourcepub fn into_executable<H: HasherT>(
+}Variants§
Implementations§
source§impl InvokeTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
source§impl InvokeTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for InvokeTransaction
source§fn clone(&self) -> InvokeTransaction
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 ComputeTransactionHash for InvokeTransaction
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransaction
source§fn clone(&self) -> InvokeTransaction
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 ComputeTransactionHash for InvokeTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransaction
source§impl Decode for InvokeTransaction
source§impl Debug for InvokeTransaction
source§impl Decode for InvokeTransaction
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_transactions/enum.Transaction.html b/mp_transactions/enum.Transaction.html
index 01ca48ea47..bbc3088d79 100644
--- a/mp_transactions/enum.Transaction.html
+++ b/mp_transactions/enum.Transaction.html
@@ -3,11 +3,11 @@
DeployAccount(DeployAccountTransaction),
Invoke(InvokeTransaction),
L1Handler(HandleL1MessageTransaction),
-}Variants§
§Declare(DeclareTransaction)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
§L1Handler(HandleL1MessageTransaction)
Implementations§
source§impl Transaction
sourcepub fn signature(&self) -> Vec<Felt252Wrapper>
Trait Implementations§
source§impl Clone for Transaction
source§fn clone(&self) -> Transaction
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 ComputeTransactionHash for Transaction
source§fn compute_hash<H: HasherT>(
+}Variants§
§Declare(DeclareTransaction)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
§L1Handler(HandleL1MessageTransaction)
Implementations§
Trait Implementations§
source§impl Clone for Transaction
source§fn clone(&self) -> Transaction
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 ComputeTransactionHash for Transaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for Transaction
source§impl Debug for Transaction
source§impl Decode for Transaction
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_transactions/enum.UserTransaction.html b/mp_transactions/enum.UserTransaction.html
index bf82c0cb98..e86f0ba54b 100644
--- a/mp_transactions/enum.UserTransaction.html
+++ b/mp_transactions/enum.UserTransaction.html
@@ -2,11 +2,11 @@
Declare(DeclareTransaction, ContractClass),
DeployAccount(DeployAccountTransaction),
Invoke(InvokeTransaction),
-}Variants§
§Declare(DeclareTransaction, ContractClass)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
Implementations§
source§impl UserTransaction
sourcepub fn sender_address(&self) -> Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> Option<&Vec<Felt252Wrapper>>
sourcepub fn nonce(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for UserTransaction
source§fn clone(&self) -> UserTransaction
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 ComputeTransactionHash for UserTransaction
source§fn compute_hash<H: HasherT>(
+}Variants§
§Declare(DeclareTransaction, ContractClass)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
Implementations§
Trait Implementations§
source§impl Clone for UserTransaction
source§fn clone(&self) -> UserTransaction
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 ComputeTransactionHash for UserTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for UserTransaction
source§impl Decode for UserTransaction
source§impl Debug for UserTransaction
source§impl Decode for UserTransaction
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_transactions/execution/trait.Execute.html b/mp_transactions/execution/trait.Execute.html
index 85007f0a3a..e6242eb5bc 100644
--- a/mp_transactions/execution/trait.Execute.html
+++ b/mp_transactions/execution/trait.Execute.html
@@ -1,6 +1,6 @@
Execute in mp_transactions::execution - Rust Trait mp_transactions::execution::Execute
source · pub trait Execute: Sized + GetAccountTransactionContext + GetTransactionCalldata + GetTxType {
// Required method
- fn execute_inner<S: State + StateChanges>(
+ fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -15,19 +15,19 @@
account_tx_context: &AccountTransactionContext,
state: &mut dyn State
) -> TransactionExecutionResult<()> { ... }
- fn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
+ fn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
state: &mut S,
block_context: &BlockContext,
account_tx_context: &AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<()> { ... }
- fn execute<S: State + StateChanges>(
+ fn execute<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<TransactionExecutionInfo> { ... }
- fn handle_fee<S: State + StateChanges>(
+ fn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -37,7 +37,7 @@
account_tx_context: AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)> { ... }
-}
Required Methods§
sourcefn execute_inner<S: State + StateChanges>(
+}Required Methods§
sourcefn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -48,18 +48,18 @@
) -> TransactionExecutionResult<ValidateExecuteCallInfo>
Provided Methods§
sourcefn handle_nonce(
account_tx_context: &AccountTransactionContext,
state: &mut dyn State
-) -> TransactionExecutionResult<()>
sourcefn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
+) -> TransactionExecutionResult<()>
sourcefn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
state: &mut S,
block_context: &BlockContext,
account_tx_context: &AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<()>
Handles nonce and checks that the account’s balance covers max fee.
-sourcefn execute<S: State + StateChanges>(
+
sourcefn execute<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<TransactionExecutionInfo>
sourcefn handle_fee<S: State + StateChanges>(
+) -> TransactionExecutionResult<TransactionExecutionInfo>
sourcefn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -68,7 +68,7 @@
block_context: &BlockContext,
account_tx_context: AccountTransactionContext,
execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
Implementations on Foreign Types§
source§impl Execute for DeclareTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
Implementations on Foreign Types§
source§impl Execute for DeclareTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -76,7 +76,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for InvokeTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for InvokeTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -84,7 +84,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for L1HandlerTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for L1HandlerTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -92,7 +92,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
_disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§fn handle_fee<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§fn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -101,7 +101,7 @@
block_context: &BlockContext,
_account_tx_context: AccountTransactionContext,
_execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
source§impl Execute for DeployAccountTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
source§impl Execute for DeployAccountTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
diff --git a/mp_transactions/struct.DeclareTransactionV0.html b/mp_transactions/struct.DeclareTransactionV0.html
index 0c35723e9a..a58bf574cc 100644
--- a/mp_transactions/struct.DeclareTransactionV0.html
+++ b/mp_transactions/struct.DeclareTransactionV0.html
@@ -1,14 +1,14 @@
DeclareTransactionV0 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV0
source · pub struct DeclareTransactionV0 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
Trait Implementations§
source§impl Clone for DeclareTransactionV0
source§fn clone(&self) -> DeclareTransactionV0
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 ComputeTransactionHash for DeclareTransactionV0
source§fn compute_hash<H: HasherT>(
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
Trait Implementations§
source§impl Clone for DeclareTransactionV0
source§fn clone(&self) -> DeclareTransactionV0
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 ComputeTransactionHash for DeclareTransactionV0
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV0
source§impl Decode for DeclareTransactionV0
source§impl Debug for DeclareTransactionV0
source§impl Decode for DeclareTransactionV0
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_transactions/struct.DeclareTransactionV1.html b/mp_transactions/struct.DeclareTransactionV1.html
index a204957849..4fa8a863a7 100644
--- a/mp_transactions/struct.DeclareTransactionV1.html
+++ b/mp_transactions/struct.DeclareTransactionV1.html
@@ -1,15 +1,15 @@
DeclareTransactionV1 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV1
source · pub struct DeclareTransactionV1 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV1
source§fn clone(&self) -> DeclareTransactionV1
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 ComputeTransactionHash for DeclareTransactionV1
source§fn compute_hash<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV1
source§fn clone(&self) -> DeclareTransactionV1
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 ComputeTransactionHash for DeclareTransactionV1
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV1
source§impl Decode for DeclareTransactionV1
source§impl Debug for DeclareTransactionV1
source§impl Decode for DeclareTransactionV1
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_transactions/struct.DeclareTransactionV2.html b/mp_transactions/struct.DeclareTransactionV2.html
index 10c1a5113e..1217155fc2 100644
--- a/mp_transactions/struct.DeclareTransactionV2.html
+++ b/mp_transactions/struct.DeclareTransactionV2.html
@@ -1,16 +1,16 @@
DeclareTransactionV2 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV2
source · pub struct DeclareTransactionV2 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
- pub compiled_class_hash: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+ pub compiled_class_hash: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§compiled_class_hash: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV2
source§fn clone(&self) -> DeclareTransactionV2
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 ComputeTransactionHash for DeclareTransactionV2
source§fn compute_hash<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§compiled_class_hash: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV2
source§fn clone(&self) -> DeclareTransactionV2
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 ComputeTransactionHash for DeclareTransactionV2
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV2
source§impl Decode for DeclareTransactionV2
source§impl Debug for DeclareTransactionV2
source§impl Decode for DeclareTransactionV2
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_transactions/struct.DeployAccountTransaction.html b/mp_transactions/struct.DeployAccountTransaction.html
index 5dcb447c27..568ead7093 100644
--- a/mp_transactions/struct.DeployAccountTransaction.html
+++ b/mp_transactions/struct.DeployAccountTransaction.html
@@ -1,24 +1,24 @@
DeployAccountTransaction in mp_transactions - Rust pub struct DeployAccountTransaction {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub contract_address_salt: Felt252Wrapper,
- pub constructor_calldata: Vec<Felt252Wrapper>,
- pub class_hash: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub contract_address_salt: Felt252Wrapper,
+ pub constructor_calldata: Vec<Felt252Wrapper>,
+ pub class_hash: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§contract_address_salt: Felt252Wrapper
§constructor_calldata: Vec<Felt252Wrapper>
§class_hash: Felt252Wrapper
§offset_version: bool
Implementations§
source§impl DeployAccountTransaction
sourcepub fn get_account_address(&self) -> FieldElement
sourcepub fn calculate_contract_address(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§contract_address_salt: Felt252Wrapper
§constructor_calldata: Vec<Felt252Wrapper>
§class_hash: Felt252Wrapper
§offset_version: bool
Implementations§
source§impl DeployAccountTransaction
sourcepub fn get_account_address(&self) -> FieldElement
sourcepub fn calculate_contract_address(
contract_address_salt: FieldElement,
class_hash: FieldElement,
constructor_calldata: &[FieldElement]
-) -> FieldElement
source§impl DeployAccountTransaction
sourcepub fn into_executable<H: HasherT>(
+) -> FieldElement
source§impl DeployAccountTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> DeployAccountTransaction
source§impl DeployAccountTransaction
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn account_address(&self) -> Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeployAccountTransaction
source§fn clone(&self) -> DeployAccountTransaction
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 ComputeTransactionHash for DeployAccountTransaction
source§fn compute_hash<H: HasherT>(
+) -> DeployAccountTransaction
source§impl DeployAccountTransaction
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn account_address(&self) -> Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeployAccountTransaction
source§fn clone(&self) -> DeployAccountTransaction
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 ComputeTransactionHash for DeployAccountTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeployAccountTransaction
source§impl Decode for DeployAccountTransaction
source§impl Debug for DeployAccountTransaction
source§impl Decode for DeployAccountTransaction
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_transactions/struct.HandleL1MessageTransaction.html b/mp_transactions/struct.HandleL1MessageTransaction.html
index d40b407ee6..e6d3c15cff 100644
--- a/mp_transactions/struct.HandleL1MessageTransaction.html
+++ b/mp_transactions/struct.HandleL1MessageTransaction.html
@@ -1,18 +1,18 @@
HandleL1MessageTransaction in mp_transactions - Rust pub struct HandleL1MessageTransaction {
pub nonce: u64,
- pub contract_address: Felt252Wrapper,
- pub entry_point_selector: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
-}
Fields§
§nonce: u64
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl HandleL1MessageTransaction
sourcepub fn into_executable<H: HasherT>(
+ pub contract_address: Felt252Wrapper,
+ pub entry_point_selector: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
+}Fields§
§nonce: u64
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl HandleL1MessageTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
paid_fee_on_l1: Fee,
offset_version: bool
-) -> L1HandlerTransaction
Trait Implementations§
source§impl Clone for HandleL1MessageTransaction
source§fn clone(&self) -> HandleL1MessageTransaction
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 ComputeTransactionHash for HandleL1MessageTransaction
source§fn compute_hash<H: HasherT>(
+) -> L1HandlerTransaction
Trait Implementations§
source§impl Clone for HandleL1MessageTransaction
source§fn clone(&self) -> HandleL1MessageTransaction
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 ComputeTransactionHash for HandleL1MessageTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for HandleL1MessageTransaction
source§impl Decode for HandleL1MessageTransaction
source§impl Debug for HandleL1MessageTransaction
source§impl Decode for HandleL1MessageTransaction
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_transactions/struct.InvokeTransactionV0.html b/mp_transactions/struct.InvokeTransactionV0.html
index 1687d63a29..efecdffeba 100644
--- a/mp_transactions/struct.InvokeTransactionV0.html
+++ b/mp_transactions/struct.InvokeTransactionV0.html
@@ -1,18 +1,18 @@
InvokeTransactionV0 in mp_transactions - Rust Struct mp_transactions::InvokeTransactionV0
source · pub struct InvokeTransactionV0 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub contract_address: Felt252Wrapper,
- pub entry_point_selector: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl InvokeTransactionV0
sourcepub fn into_executable<H: HasherT>(
+ pub signature: Vec<Felt252Wrapper>,
+ pub contract_address: Felt252Wrapper,
+ pub entry_point_selector: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl InvokeTransactionV0
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV0
source§fn clone(&self) -> InvokeTransactionV0
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 ComputeTransactionHash for InvokeTransactionV0
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV0
source§fn clone(&self) -> InvokeTransactionV0
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 ComputeTransactionHash for InvokeTransactionV0
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransactionV0
source§impl Decode for InvokeTransactionV0
source§impl Debug for InvokeTransactionV0
source§impl Decode for InvokeTransactionV0
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_transactions/struct.InvokeTransactionV1.html b/mp_transactions/struct.InvokeTransactionV1.html
index 4d6c4d7dd2..11ba8f383d 100644
--- a/mp_transactions/struct.InvokeTransactionV1.html
+++ b/mp_transactions/struct.InvokeTransactionV1.html
@@ -1,19 +1,19 @@
InvokeTransactionV1 in mp_transactions - Rust Struct mp_transactions::InvokeTransactionV1
source · pub struct InvokeTransactionV1 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§sender_address: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
§offset_version: bool
Implementations§
source§impl InvokeTransactionV1
sourcepub fn into_executable<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§sender_address: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
§offset_version: bool
Implementations§
source§impl InvokeTransactionV1
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV1
source§fn clone(&self) -> InvokeTransactionV1
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 ComputeTransactionHash for InvokeTransactionV1
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV1
source§fn clone(&self) -> InvokeTransactionV1
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 ComputeTransactionHash for InvokeTransactionV1
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransactionV1
source§impl Decode for InvokeTransactionV1
source§impl Debug for InvokeTransactionV1
source§impl Decode for InvokeTransactionV1
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/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html b/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
index daf8a0b623..bde988c38b 100644
--- a/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
+++ b/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
@@ -1,7 +1,7 @@
RuntimeExecutionConfigBuilder in pallet_starknet::execution_config - Rust
Function mc_l1_messages::worker::run_worker
source · pub async fn run_worker<C, P, B>(
+run_worker in mc_l1_messages::worker - Rust Function mc_l1_messages::worker::run_worker
source · pub async fn run_worker<C, P, B>(
config: L1MessagesWorkerConfig,
client: Arc<C>,
pool: Arc<P>,
@@ -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_l1_messages/worker/index.html b/mc_l1_messages/worker/index.html
index c5a35bd931..b82dd1b3ca 100644
--- a/mc_l1_messages/worker/index.html
+++ b/mc_l1_messages/worker/index.html
@@ -1 +1 @@
-mc_l1_messages::worker - Rust Module mc_l1_messages::worker
source · Functions
\ No newline at end of file
+mc_l1_messages::worker - Rust Module mc_l1_messages::worker
source · Functions
\ No newline at end of file
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 62357865e1..1fa19f9f08 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 983684e655..a058aaa823 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.EthereumConfig.html b/mc_settlement/ethereum/client/struct.EthereumConfig.html
index 1bc777a969..8f62fb003c 100644
--- a/mc_settlement/ethereum/client/struct.EthereumConfig.html
+++ b/mc_settlement/ethereum/client/struct.EthereumConfig.html
@@ -1,22 +1,22 @@
-EthereumConfig in mc_settlement::ethereum::client - Rust Struct mc_settlement::ethereum::client::EthereumConfig
pub struct EthereumConfig {
+EthereumConfig in mc_settlement::ethereum::client - Rust Struct mc_settlement::ethereum::client::EthereumConfig
source · pub struct EthereumConfig {
pub http_provider: String,
pub core_contracts: String,
pub sequencer_key: String,
pub chain_id: u64,
- pub mode: DaMode,
+ pub mode: DaMode,
pub poll_interval_ms: Option<u64>,
-}
Fields§
§http_provider: String
§core_contracts: String
§sequencer_key: String
§chain_id: u64
§mode: DaMode
§poll_interval_ms: Option<u64>
Trait Implementations§
§impl Clone for EthereumConfig
§fn clone(&self) -> EthereumConfig
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for EthereumConfig
§impl Default for EthereumConfig
§fn default() -> EthereumConfig
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for EthereumConfig
§fn deserialize<__D>(
+}Fields§
§http_provider: String
§core_contracts: String
§sequencer_key: String
§chain_id: u64
§mode: DaMode
§poll_interval_ms: Option<u64>
Trait Implementations§
source§impl Clone for EthereumConfig
source§fn clone(&self) -> EthereumConfig
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 Debug for EthereumConfig
source§impl Default for EthereumConfig
source§fn default() -> EthereumConfig
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for EthereumConfig
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EthereumConfig, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl PartialEq<EthereumConfig> for EthereumConfig
§fn eq(&self, other: &EthereumConfig) -> bool
This method tests for self
and other
values to be equal, and is used
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq<EthereumConfig> for EthereumConfig
source§fn eq(&self, other: &EthereumConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.§impl Serialize for EthereumConfig
source§impl Serialize for EthereumConfig
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 TryFrom<&PathBuf> for EthereumConfig
source§impl TryFrom<&PathBuf> for EthereumConfig
§impl StructuralPartialEq for EthereumConfig
Auto Trait Implementations§
§impl RefUnwindSafe for EthereumConfig
§impl Send for EthereumConfig
§impl Sync for EthereumConfig
§impl Unpin for EthereumConfig
§impl UnwindSafe for EthereumConfig
Blanket Implementations§
source§impl<T> Any for Twhere
+) -> Result<EthereumConfig, <EthereumConfig as TryFrom<&PathBuf>>::Error>
Performs the conversion.
source§impl StructuralPartialEq for EthereumConfig
Auto Trait Implementations§
§impl RefUnwindSafe for EthereumConfig
§impl Send for EthereumConfig
§impl Sync for EthereumConfig
§impl Unpin for EthereumConfig
§impl UnwindSafe for EthereumConfig
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/mc_settlement/ethereum/client/struct.StarknetContractClient.html b/mc_settlement/ethereum/client/struct.StarknetContractClient.html
index 36b5fed2f1..3bc7ad9366 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 3416ee3649..d21572865d 100644
--- a/mc_settlement/struct.SettlementWorker.html
+++ b/mc_settlement/struct.SettlementWorker.html
@@ -2,10 +2,10 @@
B: BlockT,
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>>,
+ madara_backend: Arc<Backend<B>>,
retry_strategy: Box<dyn RetryStrategy<B>>
)
A thread responsible for updating (progressing) Starknet state on the settlement layer.
For now we use a simplified setup without validity proofs & DA, but in the future
diff --git a/mc_settlement/trait.SettlementProvider.html b/mc_settlement/trait.SettlementProvider.html
index e07ad5c591..cba6a6cffd 100644
--- a/mc_settlement/trait.SettlementProvider.html
+++ b/mc_settlement/trait.SettlementProvider.html
@@ -17,7 +17,7 @@
'life0: 'async_trait;
fn update_state<'life0, 'async_trait>(
&'life0 self,
- program_output: StarknetOsOutput
+ program_output: StarknetOsOutput
) -> Pin<Box<dyn Future<Output = Result<(), B>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
@@ -35,7 +35,7 @@
Self: 'async_trait,
'life0: 'async_trait,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/enum.BlockId.html b/mp_block/enum.BlockId.html
index ef3ef6de30..aeb563cf42 100644
--- a/mp_block/enum.BlockId.html
+++ b/mp_block/enum.BlockId.html
@@ -1,10 +1,10 @@
BlockId in mp_block - Rust pub enum BlockId {
- Hash(Felt252Wrapper),
+ Hash(Felt252Wrapper),
Number(u64),
Tag(BlockTag),
}
Expand description
Block Id
Block hash, number or tag
-Variants§
Trait Implementations§
Variants§
Trait Implementations§
source§impl Decode for BlockId
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_block/struct.Block.html b/mp_block/struct.Block.html
index 9c40db05cd..21acd261fc 100644
--- a/mp_block/struct.Block.html
+++ b/mp_block/struct.Block.html
@@ -7,10 +7,10 @@ Arguments
sourcepub fn transactions(&self) -> &BlockTransactions
Return a reference to all transactions
-sourcepub fn transactions_hashes<H: HasherT>(
+
sourcepub fn transactions_hashes<H: HasherT>(
&self,
- chain_id: Felt252Wrapper
-) -> impl '_ + Iterator<Item = Felt252Wrapper>
Returns an iterator that iterates over all transaction hashes.
+ chain_id: Felt252Wrapper
+) -> impl '_ + Iterator<Item = Felt252Wrapper>Returns an iterator that iterates over all transaction hashes.
Those transactions are computed using the given chain_id
.
Trait Implementations§
source§impl Decode for Block
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
diff --git a/mp_block/struct.Header.html b/mp_block/struct.Header.html
index 5e81782e69..e07edfdcef 100644
--- a/mp_block/struct.Header.html
+++ b/mp_block/struct.Header.html
@@ -6,7 +6,7 @@
pub transaction_count: u128,
pub event_count: u128,
pub protocol_version: u8,
- pub l1_gas_price: ResourcePrice,
+ pub l1_gas_price: ResourcePrice,
pub extra_data: Option<U256>,
}Expand description
Starknet header definition.
Fields§
§parent_block_hash: StarkHash
The hash of this block’s parent.
@@ -16,7 +16,7 @@
§transaction_count: u128
The number of transactions in a block
§event_count: u128
The number of events
§protocol_version: u8
The version of the Starknet protocol used when creating this block
-§l1_gas_price: ResourcePrice
l1 gas price for this block
+§l1_gas_price: ResourcePrice
l1 gas price for this block
§extra_data: Option<U256>
Extraneous data that might be useful for running transactions
Implementations§
source§impl Header
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(
@@ -34,7 +34,7 @@
fee_token_address: ContractAddress,
chain_id: ChainId
) -> BlockContext
Converts to a blockifier BlockContext
-sourcepub fn hash<H: HasherT>(&self) -> Felt252Wrapper
Compute the hash of the header.
+Trait Implementations§
source§impl Decode for Header
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
Attempt to deserialise the value from input.§fn decode_into<I>(
diff --git a/mp_block/type.BlockTransactions.html b/mp_block/type.BlockTransactions.html
index d3a5f54cb9..48c7ad9fa3 100644
--- a/mp_block/type.BlockTransactions.html
+++ b/mp_block/type.BlockTransactions.html
@@ -1,2 +1,2 @@
-BlockTransactions in mp_block - Rust Type Definition mp_block::BlockTransactions
source · pub type BlockTransactions = Vec<Transaction>;
Expand description
Block Transactions
+BlockTransactions in mp_block - Rust Type Definition mp_block::BlockTransactions
source · pub type BlockTransactions = Vec<Transaction>;
Expand description
Block Transactions
\ No newline at end of file
diff --git a/mp_digest_log/enum.Log.html b/mp_digest_log/enum.Log.html
index 609640e8b9..ffd8579309 100644
--- a/mp_digest_log/enum.Log.html
+++ b/mp_digest_log/enum.Log.html
@@ -1,9 +1,9 @@
Log in mp_digest_log - Rust Enum mp_digest_log::Log
source · pub enum Log {
- Block(Block),
+ Block(Block),
}
Expand description
A Madara log
Right now we only expect Madara to log the Starknet block,
but other usecases may appears later on.
-Variants§
§Block(Block)
Trait Implementations§
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 999706ea25..c74eb0b30b 100644
--- a/mp_messages/struct.MessageL1ToL2.html
+++ b/mp_messages/struct.MessageL1ToL2.html
@@ -16,7 +16,7 @@
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)Convert self to a slice and append it to the destination.§fn 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/mp_transactions/compute_hash/trait.ComputeTransactionHash.html b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
index 5b49df9a9a..cbbcbcd751 100644
--- a/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
+++ b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html
@@ -1,12 +1,12 @@
ComputeTransactionHash in mp_transactions::compute_hash - Rust pub trait ComputeTransactionHash {
// Required method
- fn compute_hash<H: HasherT>(
+ fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
- ) -> Felt252Wrapper;
-}
Required Methods§
sourcefn compute_hash<H: HasherT>(
+ ) -> Felt252Wrapper;
+}Required Methods§
sourcefn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
Implementors§
source§impl ComputeTransactionHash for DeclareTransaction
source§impl ComputeTransactionHash for InvokeTransaction
source§impl ComputeTransactionHash for Transaction
source§impl ComputeTransactionHash for UserTransaction
source§impl ComputeTransactionHash for DeclareTransactionV0
source§impl ComputeTransactionHash for DeclareTransactionV1
source§impl ComputeTransactionHash for DeclareTransactionV2
source§impl ComputeTransactionHash for DeployAccountTransaction
source§impl ComputeTransactionHash for HandleL1MessageTransaction
source§impl ComputeTransactionHash for InvokeTransactionV0
source§impl ComputeTransactionHash for InvokeTransactionV1
\ No newline at end of file
+) -> Felt252WrapperImplementors§
source§impl ComputeTransactionHash for DeclareTransaction
source§impl ComputeTransactionHash for InvokeTransaction
source§impl ComputeTransactionHash for Transaction
source§impl ComputeTransactionHash for UserTransaction
source§impl ComputeTransactionHash for DeclareTransactionV0
source§impl ComputeTransactionHash for DeclareTransactionV1
source§impl ComputeTransactionHash for DeclareTransactionV2
source§impl ComputeTransactionHash for DeployAccountTransaction
source§impl ComputeTransactionHash for HandleL1MessageTransaction
source§impl ComputeTransactionHash for InvokeTransactionV0
source§impl ComputeTransactionHash for InvokeTransactionV1
\ No newline at end of file
diff --git a/mp_transactions/enum.DeclareTransaction.html b/mp_transactions/enum.DeclareTransaction.html
index 0250169d7f..d38a9bdbdb 100644
--- a/mp_transactions/enum.DeclareTransaction.html
+++ b/mp_transactions/enum.DeclareTransaction.html
@@ -2,16 +2,16 @@
V0(DeclareTransactionV0),
V1(DeclareTransactionV1),
V2(DeclareTransactionV2),
-}Variants§
Implementations§
source§impl DeclareTransaction
sourcepub fn try_into_executable<H: HasherT>(
+}Variants§
Implementations§
source§impl DeclareTransaction
sourcepub fn try_into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
contract_class: ContractClass,
offset_version: bool
-) -> TransactionExecutionResult<DeclareTransaction>
source§impl DeclareTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn compiled_class_hash(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeclareTransaction
source§fn clone(&self) -> DeclareTransaction
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 ComputeTransactionHash for DeclareTransaction
source§fn compute_hash<H: HasherT>(
+) -> TransactionExecutionResult<DeclareTransaction>
source§impl DeclareTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn compiled_class_hash(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeclareTransaction
source§fn clone(&self) -> DeclareTransaction
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 ComputeTransactionHash for DeclareTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransaction
source§impl Decode for DeclareTransaction
source§impl Debug for DeclareTransaction
source§impl Decode for DeclareTransaction
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_transactions/enum.InvokeTransaction.html b/mp_transactions/enum.InvokeTransaction.html
index 03851cb664..38fa9009de 100644
--- a/mp_transactions/enum.InvokeTransaction.html
+++ b/mp_transactions/enum.InvokeTransaction.html
@@ -1,15 +1,15 @@
InvokeTransaction in mp_transactions - Rust pub enum InvokeTransaction {
V0(InvokeTransactionV0),
V1(InvokeTransactionV1),
-}
Variants§
Implementations§
source§impl InvokeTransaction
sourcepub fn into_executable<H: HasherT>(
+}Variants§
Implementations§
source§impl InvokeTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
source§impl InvokeTransaction
sourcepub fn sender_address(&self) -> &Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for InvokeTransaction
source§fn clone(&self) -> InvokeTransaction
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 ComputeTransactionHash for InvokeTransaction
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransaction
source§fn clone(&self) -> InvokeTransaction
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 ComputeTransactionHash for InvokeTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransaction
source§impl Decode for InvokeTransaction
source§impl Debug for InvokeTransaction
source§impl Decode for InvokeTransaction
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_transactions/enum.Transaction.html b/mp_transactions/enum.Transaction.html
index 01ca48ea47..bbc3088d79 100644
--- a/mp_transactions/enum.Transaction.html
+++ b/mp_transactions/enum.Transaction.html
@@ -3,11 +3,11 @@
DeployAccount(DeployAccountTransaction),
Invoke(InvokeTransaction),
L1Handler(HandleL1MessageTransaction),
-}Variants§
§Declare(DeclareTransaction)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
§L1Handler(HandleL1MessageTransaction)
Implementations§
source§impl Transaction
sourcepub fn signature(&self) -> Vec<Felt252Wrapper>
Trait Implementations§
source§impl Clone for Transaction
source§fn clone(&self) -> Transaction
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 ComputeTransactionHash for Transaction
source§fn compute_hash<H: HasherT>(
+}Variants§
§Declare(DeclareTransaction)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
§L1Handler(HandleL1MessageTransaction)
Implementations§
Trait Implementations§
source§impl Clone for Transaction
source§fn clone(&self) -> Transaction
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 ComputeTransactionHash for Transaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for Transaction
source§impl Debug for Transaction
source§impl Decode for Transaction
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_transactions/enum.UserTransaction.html b/mp_transactions/enum.UserTransaction.html
index bf82c0cb98..e86f0ba54b 100644
--- a/mp_transactions/enum.UserTransaction.html
+++ b/mp_transactions/enum.UserTransaction.html
@@ -2,11 +2,11 @@
Declare(DeclareTransaction, ContractClass),
DeployAccount(DeployAccountTransaction),
Invoke(InvokeTransaction),
-}Variants§
§Declare(DeclareTransaction, ContractClass)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
Implementations§
source§impl UserTransaction
sourcepub fn sender_address(&self) -> Felt252Wrapper
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> Option<&Vec<Felt252Wrapper>>
sourcepub fn nonce(&self) -> Option<&Felt252Wrapper>
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for UserTransaction
source§fn clone(&self) -> UserTransaction
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 ComputeTransactionHash for UserTransaction
source§fn compute_hash<H: HasherT>(
+}Variants§
§Declare(DeclareTransaction, ContractClass)
§DeployAccount(DeployAccountTransaction)
§Invoke(InvokeTransaction)
Implementations§
Trait Implementations§
source§impl Clone for UserTransaction
source§fn clone(&self) -> UserTransaction
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 ComputeTransactionHash for UserTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for UserTransaction
source§impl Decode for UserTransaction
source§impl Debug for UserTransaction
source§impl Decode for UserTransaction
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_transactions/execution/trait.Execute.html b/mp_transactions/execution/trait.Execute.html
index 85007f0a3a..e6242eb5bc 100644
--- a/mp_transactions/execution/trait.Execute.html
+++ b/mp_transactions/execution/trait.Execute.html
@@ -1,6 +1,6 @@
Execute in mp_transactions::execution - Rust Trait mp_transactions::execution::Execute
source · pub trait Execute: Sized + GetAccountTransactionContext + GetTransactionCalldata + GetTxType {
// Required method
- fn execute_inner<S: State + StateChanges>(
+ fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -15,19 +15,19 @@
account_tx_context: &AccountTransactionContext,
state: &mut dyn State
) -> TransactionExecutionResult<()> { ... }
- fn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
+ fn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
state: &mut S,
block_context: &BlockContext,
account_tx_context: &AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<()> { ... }
- fn execute<S: State + StateChanges>(
+ fn execute<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<TransactionExecutionInfo> { ... }
- fn handle_fee<S: State + StateChanges>(
+ fn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -37,7 +37,7 @@
account_tx_context: AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)> { ... }
-}
Required Methods§
sourcefn execute_inner<S: State + StateChanges>(
+}Required Methods§
sourcefn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -48,18 +48,18 @@
) -> TransactionExecutionResult<ValidateExecuteCallInfo>
Provided Methods§
sourcefn handle_nonce(
account_tx_context: &AccountTransactionContext,
state: &mut dyn State
-) -> TransactionExecutionResult<()>
sourcefn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
+) -> TransactionExecutionResult<()>
sourcefn handle_nonce_and_check_fee_balance<S: State + StateChanges>(
state: &mut S,
block_context: &BlockContext,
account_tx_context: &AccountTransactionContext,
execution_config: &ExecutionConfig
) -> TransactionExecutionResult<()>
Handles nonce and checks that the account’s balance covers max fee.
-sourcefn execute<S: State + StateChanges>(
+
sourcefn execute<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<TransactionExecutionInfo>
sourcefn handle_fee<S: State + StateChanges>(
+) -> TransactionExecutionResult<TransactionExecutionInfo>
sourcefn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -68,7 +68,7 @@
block_context: &BlockContext,
account_tx_context: AccountTransactionContext,
execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
Implementations on Foreign Types§
source§impl Execute for DeclareTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
Implementations on Foreign Types§
source§impl Execute for DeclareTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -76,7 +76,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for InvokeTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for InvokeTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -84,7 +84,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for L1HandlerTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§impl Execute for L1HandlerTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
@@ -92,7 +92,7 @@
remaining_gas: &mut u64,
account_tx_context: &AccountTransactionContext,
_disable_validation: bool
-) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§fn handle_fee<S: State + StateChanges>(
+) -> TransactionExecutionResult<ValidateExecuteCallInfo>
source§fn handle_fee<S: State + StateChanges>(
&self,
state: &mut S,
execute_call_info: &Option<CallInfo>,
@@ -101,7 +101,7 @@
block_context: &BlockContext,
_account_tx_context: AccountTransactionContext,
_execution_config: &ExecutionConfig
-) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
source§impl Execute for DeployAccountTransaction
source§fn execute_inner<S: State + StateChanges>(
+) -> TransactionExecutionResult<(Fee, Option<CallInfo>, ResourcesMapping)>
source§impl Execute for DeployAccountTransaction
source§fn execute_inner<S: State + StateChanges>(
&self,
state: &mut S,
block_context: &BlockContext,
diff --git a/mp_transactions/struct.DeclareTransactionV0.html b/mp_transactions/struct.DeclareTransactionV0.html
index 0c35723e9a..a58bf574cc 100644
--- a/mp_transactions/struct.DeclareTransactionV0.html
+++ b/mp_transactions/struct.DeclareTransactionV0.html
@@ -1,14 +1,14 @@
DeclareTransactionV0 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV0
source · pub struct DeclareTransactionV0 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
Trait Implementations§
source§impl Clone for DeclareTransactionV0
source§fn clone(&self) -> DeclareTransactionV0
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 ComputeTransactionHash for DeclareTransactionV0
source§fn compute_hash<H: HasherT>(
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
Trait Implementations§
source§impl Clone for DeclareTransactionV0
source§fn clone(&self) -> DeclareTransactionV0
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 ComputeTransactionHash for DeclareTransactionV0
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV0
source§impl Decode for DeclareTransactionV0
source§impl Debug for DeclareTransactionV0
source§impl Decode for DeclareTransactionV0
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_transactions/struct.DeclareTransactionV1.html b/mp_transactions/struct.DeclareTransactionV1.html
index a204957849..4fa8a863a7 100644
--- a/mp_transactions/struct.DeclareTransactionV1.html
+++ b/mp_transactions/struct.DeclareTransactionV1.html
@@ -1,15 +1,15 @@
DeclareTransactionV1 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV1
source · pub struct DeclareTransactionV1 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV1
source§fn clone(&self) -> DeclareTransactionV1
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 ComputeTransactionHash for DeclareTransactionV1
source§fn compute_hash<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV1
source§fn clone(&self) -> DeclareTransactionV1
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 ComputeTransactionHash for DeclareTransactionV1
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV1
source§impl Decode for DeclareTransactionV1
source§impl Debug for DeclareTransactionV1
source§impl Decode for DeclareTransactionV1
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_transactions/struct.DeclareTransactionV2.html b/mp_transactions/struct.DeclareTransactionV2.html
index 10c1a5113e..1217155fc2 100644
--- a/mp_transactions/struct.DeclareTransactionV2.html
+++ b/mp_transactions/struct.DeclareTransactionV2.html
@@ -1,16 +1,16 @@
DeclareTransactionV2 in mp_transactions - Rust Struct mp_transactions::DeclareTransactionV2
source · pub struct DeclareTransactionV2 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub class_hash: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
- pub compiled_class_hash: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub class_hash: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+ pub compiled_class_hash: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§compiled_class_hash: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV2
source§fn clone(&self) -> DeclareTransactionV2
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 ComputeTransactionHash for DeclareTransactionV2
source§fn compute_hash<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§class_hash: Felt252Wrapper
§sender_address: Felt252Wrapper
§compiled_class_hash: Felt252Wrapper
§offset_version: bool
Trait Implementations§
source§impl Clone for DeclareTransactionV2
source§fn clone(&self) -> DeclareTransactionV2
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 ComputeTransactionHash for DeclareTransactionV2
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeclareTransactionV2
source§impl Decode for DeclareTransactionV2
source§impl Debug for DeclareTransactionV2
source§impl Decode for DeclareTransactionV2
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_transactions/struct.DeployAccountTransaction.html b/mp_transactions/struct.DeployAccountTransaction.html
index 5dcb447c27..568ead7093 100644
--- a/mp_transactions/struct.DeployAccountTransaction.html
+++ b/mp_transactions/struct.DeployAccountTransaction.html
@@ -1,24 +1,24 @@
DeployAccountTransaction in mp_transactions - Rust pub struct DeployAccountTransaction {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub contract_address_salt: Felt252Wrapper,
- pub constructor_calldata: Vec<Felt252Wrapper>,
- pub class_hash: Felt252Wrapper,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub contract_address_salt: Felt252Wrapper,
+ pub constructor_calldata: Vec<Felt252Wrapper>,
+ pub class_hash: Felt252Wrapper,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§contract_address_salt: Felt252Wrapper
§constructor_calldata: Vec<Felt252Wrapper>
§class_hash: Felt252Wrapper
§offset_version: bool
Implementations§
source§impl DeployAccountTransaction
sourcepub fn get_account_address(&self) -> FieldElement
sourcepub fn calculate_contract_address(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§contract_address_salt: Felt252Wrapper
§constructor_calldata: Vec<Felt252Wrapper>
§class_hash: Felt252Wrapper
§offset_version: bool
Implementations§
source§impl DeployAccountTransaction
sourcepub fn get_account_address(&self) -> FieldElement
sourcepub fn calculate_contract_address(
contract_address_salt: FieldElement,
class_hash: FieldElement,
constructor_calldata: &[FieldElement]
-) -> FieldElement
source§impl DeployAccountTransaction
sourcepub fn into_executable<H: HasherT>(
+) -> FieldElement
source§impl DeployAccountTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> DeployAccountTransaction
source§impl DeployAccountTransaction
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn account_address(&self) -> Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeployAccountTransaction
source§fn clone(&self) -> DeployAccountTransaction
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 ComputeTransactionHash for DeployAccountTransaction
source§fn compute_hash<H: HasherT>(
+) -> DeployAccountTransaction
source§impl DeployAccountTransaction
sourcepub fn signature(&self) -> &Vec<Felt252Wrapper>
sourcepub fn max_fee(&self) -> &u128
sourcepub fn calldata(&self) -> &Vec<Felt252Wrapper>
sourcepub fn nonce(&self) -> &Felt252Wrapper
sourcepub fn account_address(&self) -> Felt252Wrapper
sourcepub fn class_hash(&self) -> &Felt252Wrapper
sourcepub fn offset_version(&self) -> bool
Trait Implementations§
source§impl Clone for DeployAccountTransaction
source§fn clone(&self) -> DeployAccountTransaction
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 ComputeTransactionHash for DeployAccountTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for DeployAccountTransaction
source§impl Decode for DeployAccountTransaction
source§impl Debug for DeployAccountTransaction
source§impl Decode for DeployAccountTransaction
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_transactions/struct.HandleL1MessageTransaction.html b/mp_transactions/struct.HandleL1MessageTransaction.html
index d40b407ee6..e6d3c15cff 100644
--- a/mp_transactions/struct.HandleL1MessageTransaction.html
+++ b/mp_transactions/struct.HandleL1MessageTransaction.html
@@ -1,18 +1,18 @@
HandleL1MessageTransaction in mp_transactions - Rust pub struct HandleL1MessageTransaction {
pub nonce: u64,
- pub contract_address: Felt252Wrapper,
- pub entry_point_selector: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
-}
Fields§
§nonce: u64
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl HandleL1MessageTransaction
sourcepub fn into_executable<H: HasherT>(
+ pub contract_address: Felt252Wrapper,
+ pub entry_point_selector: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
+}Fields§
§nonce: u64
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl HandleL1MessageTransaction
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
paid_fee_on_l1: Fee,
offset_version: bool
-) -> L1HandlerTransaction
Trait Implementations§
source§impl Clone for HandleL1MessageTransaction
source§fn clone(&self) -> HandleL1MessageTransaction
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 ComputeTransactionHash for HandleL1MessageTransaction
source§fn compute_hash<H: HasherT>(
+) -> L1HandlerTransaction
Trait Implementations§
source§impl Clone for HandleL1MessageTransaction
source§fn clone(&self) -> HandleL1MessageTransaction
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 ComputeTransactionHash for HandleL1MessageTransaction
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for HandleL1MessageTransaction
source§impl Decode for HandleL1MessageTransaction
source§impl Debug for HandleL1MessageTransaction
source§impl Decode for HandleL1MessageTransaction
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_transactions/struct.InvokeTransactionV0.html b/mp_transactions/struct.InvokeTransactionV0.html
index 1687d63a29..efecdffeba 100644
--- a/mp_transactions/struct.InvokeTransactionV0.html
+++ b/mp_transactions/struct.InvokeTransactionV0.html
@@ -1,18 +1,18 @@
InvokeTransactionV0 in mp_transactions - Rust Struct mp_transactions::InvokeTransactionV0
source · pub struct InvokeTransactionV0 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub contract_address: Felt252Wrapper,
- pub entry_point_selector: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl InvokeTransactionV0
sourcepub fn into_executable<H: HasherT>(
+ pub signature: Vec<Felt252Wrapper>,
+ pub contract_address: Felt252Wrapper,
+ pub entry_point_selector: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§contract_address: Felt252Wrapper
§entry_point_selector: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
Implementations§
source§impl InvokeTransactionV0
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV0
source§fn clone(&self) -> InvokeTransactionV0
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 ComputeTransactionHash for InvokeTransactionV0
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV0
source§fn clone(&self) -> InvokeTransactionV0
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 ComputeTransactionHash for InvokeTransactionV0
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransactionV0
source§impl Decode for InvokeTransactionV0
source§impl Debug for InvokeTransactionV0
source§impl Decode for InvokeTransactionV0
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_transactions/struct.InvokeTransactionV1.html b/mp_transactions/struct.InvokeTransactionV1.html
index 4d6c4d7dd2..11ba8f383d 100644
--- a/mp_transactions/struct.InvokeTransactionV1.html
+++ b/mp_transactions/struct.InvokeTransactionV1.html
@@ -1,19 +1,19 @@
InvokeTransactionV1 in mp_transactions - Rust Struct mp_transactions::InvokeTransactionV1
source · pub struct InvokeTransactionV1 {
pub max_fee: u128,
- pub signature: Vec<Felt252Wrapper>,
- pub nonce: Felt252Wrapper,
- pub sender_address: Felt252Wrapper,
- pub calldata: Vec<Felt252Wrapper>,
+ pub signature: Vec<Felt252Wrapper>,
+ pub nonce: Felt252Wrapper,
+ pub sender_address: Felt252Wrapper,
+ pub calldata: Vec<Felt252Wrapper>,
pub offset_version: bool,
-}
Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§sender_address: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
§offset_version: bool
Implementations§
source§impl InvokeTransactionV1
sourcepub fn into_executable<H: HasherT>(
+}Fields§
§max_fee: u128
§signature: Vec<Felt252Wrapper>
§nonce: Felt252Wrapper
§sender_address: Felt252Wrapper
§calldata: Vec<Felt252Wrapper>
§offset_version: bool
Implementations§
source§impl InvokeTransactionV1
sourcepub fn into_executable<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV1
source§fn clone(&self) -> InvokeTransactionV1
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 ComputeTransactionHash for InvokeTransactionV1
source§fn compute_hash<H: HasherT>(
+) -> InvokeTransaction
Trait Implementations§
source§impl Clone for InvokeTransactionV1
source§fn clone(&self) -> InvokeTransactionV1
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 ComputeTransactionHash for InvokeTransactionV1
source§fn compute_hash<H: HasherT>(
&self,
- chain_id: Felt252Wrapper,
+ chain_id: Felt252Wrapper,
offset_version: bool
-) -> Felt252Wrapper
source§impl Debug for InvokeTransactionV1
source§impl Decode for InvokeTransactionV1
source§impl Debug for InvokeTransactionV1
source§impl Decode for InvokeTransactionV1
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/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html b/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
index daf8a0b623..bde988c38b 100644
--- a/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
+++ b/pallet_starknet/execution_config/struct.RuntimeExecutionConfigBuilder.html
@@ -1,7 +1,7 @@
RuntimeExecutionConfigBuilder in pallet_starknet::execution_config - Rust