diff --git a/help.html b/help.html index 437e5b1c2b..aa4bc4c607 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -Rustdoc help

Rustdoc help

Back
\ No newline at end of file +Rustdoc help

Rustdoc help

Back
\ No newline at end of file diff --git a/madara_runtime/opaque/trait.BuildStorage.html b/madara_runtime/opaque/trait.BuildStorage.html index 1125420ffe..c558805c8a 100644 --- a/madara_runtime/opaque/trait.BuildStorage.html +++ b/madara_runtime/opaque/trait.BuildStorage.html @@ -8,8 +8,8 @@

Required Methods§

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

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

Provided Methods§

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

Build the storage out of this builder.

Implementations on Foreign Types§

§

impl BuildStorage for ()

§

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

§

impl BuildStorage for Storage

§

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

§

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

§

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

source§

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

source§

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

§

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

§

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

source§

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

source§

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

§

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

§

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

§

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

§

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

§

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

§

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

Implementors§

source§

impl BuildStorage for RuntimeGenesisConfig

\ No newline at end of file diff --git a/madara_runtime/trait.BuildStorage.html b/madara_runtime/trait.BuildStorage.html index 6e53c7072e..fb0ceb9754 100644 --- a/madara_runtime/trait.BuildStorage.html +++ b/madara_runtime/trait.BuildStorage.html @@ -8,8 +8,8 @@

Required Methods§

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

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

Provided Methods§

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

Build the storage out of this builder.

Implementations on Foreign Types§

§

impl BuildStorage for ()

§

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

§

impl BuildStorage for Storage

§

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

§

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

§

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

source§

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

source§

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

§

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

§

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

source§

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

source§

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

§

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

§

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

§

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

§

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

§

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

§

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

Implementors§

source§

impl BuildStorage for RuntimeGenesisConfig

\ No newline at end of file diff --git a/mc_data_availability/struct.DataAvailabilityWorker.html b/mc_data_availability/struct.DataAvailabilityWorker.html index 1b7b461adb..86c2c48985 100644 --- a/mc_data_availability/struct.DataAvailabilityWorker.html +++ b/mc_data_availability/struct.DataAvailabilityWorker.html @@ -3,13 +3,13 @@ C: ProvideRuntimeApi<B> + BlockchainEvents<B> + 'static,
source

pub async fn prove_current_block( da_mode: DaMode, client: Arc<C>, - madara_backend: Arc<Backend<B>> + madara_backend: Arc<Backend<B>> )

source§

impl<B, C> DataAvailabilityWorker<B, C>where B: BlockT, C: ProvideRuntimeApi<B> + BlockchainEvents<B> + 'static,

source

pub async fn update_state( da_client: Box<dyn DaClient + Send + Sync>, client: Arc<C>, - madara_backend: Arc<Backend<B>> + madara_backend: Arc<Backend<B>> )

Auto Trait Implementations§

§

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

§

impl<B, C> Send for DataAvailabilityWorker<B, C>where diff --git a/mc_rpc/index.html b/mc_rpc/index.html index 4fb23616e0..812ff20f51 100644 --- a/mc_rpc/index.html +++ b/mc_rpc/index.html @@ -1,3 +1,3 @@ -mc_rpc - Rust

Crate mc_rpc

source ·
Expand description

Starknet RPC server API implementation

+mc_rpc - Rust

Crate mc_rpc

source ·
Expand description

Starknet RPC server API implementation

It uses the madara client and backend in order to answer queries.

Structs

Traits

Functions

\ No newline at end of file diff --git a/mc_rpc/struct.Starknet.html b/mc_rpc/struct.Starknet.html index db6788c273..ef1e627018 100644 --- a/mc_rpc/struct.Starknet.html +++ b/mc_rpc/struct.Starknet.html @@ -51,7 +51,7 @@

Arguments

GenesisProvider + Send + Sync + 'static, C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static, - H: HasherT + Send + Sync + 'static,

source§

fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>

source§

fn into_rpc(self) -> RpcModule<Self>

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.
source§

impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where + H: HasherT + Send + Sync + 'static,

source§

fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>

source§

fn into_rpc(self) -> RpcModule<Self>

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.
source§

impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where A: ChainApi<Block = B> + 'static, B: BlockT, P: TransactionPool<Block = B> + 'static, @@ -284,7 +284,7 @@
Arguments
Returns

Returns the chain id this node is connected to. The chain id is returned as a specific type, defined by the Starknet protocol, indicating the particular network.

-

source§

fn estimate_fee<'life0, 'async_trait>( +

source§

fn estimate_fee<'life0, 'async_trait>( &'life0 self, request: Vec<BroadcastedTransaction>, block_id: BlockId @@ -300,7 +300,7 @@

Returns
  • fee_estimate - fee estimate in gwei
-
source§

fn get_transaction_by_block_id_and_index( +

source§

fn get_transaction_by_block_id_and_index( &self, block_id: BlockId, index: u64 @@ -322,7 +322,7 @@

Returns
transaction details are returned as a type conforming to the StarkNet protocol. In case of errors like BLOCK_NOT_FOUND or INVALID_TXN_INDEX, returns a StarknetRpcApiError indicating the specific issue.

-
source§

fn get_block_with_txs( +

source§

fn get_block_with_txs( &self, block_id: BlockId ) -> RpcResult<MaybePendingBlockWithTxs>

Get block information with full transactions given the block id.

@@ -340,7 +340,7 @@
Returns
the block, this can include either a confirmed block or a pending block with its transactions. In case the specified block is not found, returns a StarknetRpcApiError with BlockNotFound.

-
source§

fn get_state_update(&self, block_id: BlockId) -> RpcResult<StateUpdate>

Get the information about the result of executing the requested block.

+
source§

fn get_state_update(&self, block_id: BlockId) -> RpcResult<StateUpdate>

Get the information about the result of executing the requested block.

This function fetches details about the state update resulting from executing a specific block in the StarkNet network. The block is identified using its unique block id, which can be the block’s hash, its number (height), or a block tag.

@@ -355,7 +355,7 @@
Returns
the state of the network as a result of the block’s execution. This can include a confirmed state update or a pending state update. If the block is not found, returns a StarknetRpcApiError with BlockNotFound.

-
source§

fn get_events<'life0, 'async_trait>( +

source§

fn get_events<'life0, 'async_trait>( &'life0 self, filter: EventFilterWithPage ) -> Pin<Box<dyn Future<Output = RpcResult<EventsPage>> + Send + 'async_trait>>where @@ -377,7 +377,7 @@
Returns
block in which they occurred, and the transaction that triggered them. In case of errors, such as PAGE_SIZE_TOO_BIG, INVALID_CONTINUATION_TOKEN, BLOCK_NOT_FOUND, or TOO_MANY_KEYS_IN_FILTER, returns a StarknetRpcApiError indicating the specific issue.

-

source§

fn get_transaction_by_hash( +

source§

fn get_transaction_by_hash( &self, transaction_hash: FieldElement ) -> RpcResult<Transaction>

Get the details and status of a submitted transaction.

@@ -404,7 +404,7 @@
Errors
  • TOO_MANY_KEYS_IN_FILTER if there are too many keys in the filter, which may exceed the system’s capacity.
  • -
    source§

    fn get_transaction_receipt<'life0, 'async_trait>( +

    source§

    fn get_transaction_receipt<'life0, 'async_trait>( &'life0 self, transaction_hash: FieldElement ) -> Pin<Box<dyn Future<Output = RpcResult<MaybePendingTransactionReceipt>> + Send + 'async_trait>>where @@ -428,7 +428,7 @@
    Returns
    Errors

    The function may return a TXN_HASH_NOT_FOUND error if the specified transaction hash is not found.

    -

    source§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.
    source§

    impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for Starknet<A, B, BE, G, C, P, H>where +

    source§

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.
    source§

    impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for Starknet<A, B, BE, G, C, P, H>where A: ChainApi<Block = B> + 'static, B: BlockT, BE: Backend<B> + 'static, @@ -436,7 +436,7 @@
    Errors
    C: HeaderBackend<B> + BlockBackend<B> + StorageProvider<B, BE> + 'static + ProvideRuntimeApi<B>, C::Api: StarknetRuntimeApi<B> + ConvertTransactionRuntimeApi<B>, P: TransactionPool<Block = B> + 'static, - H: HasherT + Send + Sync + 'static,

    source§

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

    source§

    fn simulate_transactions<'life0, 'async_trait>( &'life0 self, block_id: BlockId, transactions: Vec<BroadcastedTransaction>, diff --git a/mc_rpc/trait.StarknetReadRpcApiServer.html b/mc_rpc/trait.StarknetReadRpcApiServer.html index 76b0d7d751..ed624e3196 100644 --- a/mc_rpc/trait.StarknetReadRpcApiServer.html +++ b/mc_rpc/trait.StarknetReadRpcApiServer.html @@ -173,7 +173,7 @@ 'life0: 'async_trait, Self: 'async_trait,

    Returns the receipt of a transaction by transaction hash.

    Provided Methods§

    source

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    -

    Implementors§

    source§

    impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where +

    Implementors§

    source§

    impl<A, B, BE, G, C, P, H> StarknetReadRpcApiServer for Starknet<A, B, BE, G, C, P, H>where A: ChainApi<Block = B> + 'static, B: BlockT, P: TransactionPool<Block = B> + 'static, diff --git a/mc_rpc/trait.StarknetTraceRpcApiServer.html b/mc_rpc/trait.StarknetTraceRpcApiServer.html index 694d409d0b..2a204710cc 100644 --- a/mc_rpc/trait.StarknetTraceRpcApiServer.html +++ b/mc_rpc/trait.StarknetTraceRpcApiServer.html @@ -21,7 +21,7 @@ 'life0: 'async_trait, Self: 'async_trait,

    Returns the execution trace of a transaction by simulating it in the runtime.

    Provided Methods§

    source

    fn into_rpc(self) -> RpcModule<Self>

    Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

    -

    Implementors§

    source§

    impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for Starknet<A, B, BE, G, C, P, H>where +

    Implementors§

    source§

    impl<A, B, BE, G, C, P, H> StarknetTraceRpcApiServer for Starknet<A, B, BE, G, C, P, H>where A: ChainApi<Block = B> + 'static, B: BlockT, BE: Backend<B> + 'static, diff --git a/mp_chain_id/all.html b/mp_chain_id/all.html index c67e40d96a..60e3a8d10d 100644 --- a/mp_chain_id/all.html +++ b/mp_chain_id/all.html @@ -1 +1 @@ -List of all items in this crate

    List of all items

    Constants

    \ No newline at end of file +List of all items in this crate
    \ No newline at end of file diff --git a/mp_chain_id/constant.MADARA_CHAIN_ID.html b/mp_chain_id/constant.MADARA_CHAIN_ID.html new file mode 100644 index 0000000000..74feaa7f54 --- /dev/null +++ b/mp_chain_id/constant.MADARA_CHAIN_ID.html @@ -0,0 +1,2 @@ +MADARA_CHAIN_ID in mp_chain_id - Rust
    pub const MADARA_CHAIN_ID: Felt252Wrapper;
    Expand description

    ChainId for a custom Madara chain

    +
    \ No newline at end of file diff --git a/mp_chain_id/index.html b/mp_chain_id/index.html index 79747bdef6..0e6d4d95d0 100644 --- a/mp_chain_id/index.html +++ b/mp_chain_id/index.html @@ -1,2 +1,2 @@ -mp_chain_id - Rust

    Crate mp_chain_id

    source ·
    Expand description

    Traits for chain ids.

    -

    Constants

    \ No newline at end of file +mp_chain_id - Rust

    Crate mp_chain_id

    source ·
    Expand description

    Traits for chain ids.

    +

    Constants

    \ No newline at end of file diff --git a/mp_chain_id/sidebar-items.js b/mp_chain_id/sidebar-items.js index 9ba30eb9cd..235f6f97a4 100644 --- a/mp_chain_id/sidebar-items.js +++ b/mp_chain_id/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":["SN_GOERLI_CHAIN_ID","SN_MAIN_CHAIN_ID"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["MADARA_CHAIN_ID","SN_GOERLI_CHAIN_ID","SN_MAIN_CHAIN_ID"]}; \ No newline at end of file diff --git a/mp_transactions/compute_hash/trait.ComputeTransactionHash.html b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html index e4616ec624..a8384354fd 100644 --- a/mp_transactions/compute_hash/trait.ComputeTransactionHash.html +++ b/mp_transactions/compute_hash/trait.ComputeTransactionHash.html @@ -1,11 +1,11 @@ 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,
             is_query: bool
         ) -> Felt252Wrapper;
    -}

    Required Methods§

    source

    fn compute_hash<H: HasherT>( +}

    Required Methods§

    source

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/mp_transactions/enum.DeclareTransaction.html b/mp_transactions/enum.DeclareTransaction.html index b5f338a53c..f8b0e7a09c 100644 --- a/mp_transactions/enum.DeclareTransaction.html +++ b/mp_transactions/enum.DeclareTransaction.html @@ -2,12 +2,12 @@ V0(DeclareTransactionV0), V1(DeclareTransactionV1), V2(DeclareTransactionV2), -}

    Variants§

    Implementations§

    source§

    impl DeclareTransaction

    source

    pub fn try_into_executable<H: HasherT>( +}

    Variants§

    Implementations§

    source§

    impl DeclareTransaction

    source

    pub fn try_into_executable<H: HasherT>( &self, chain_id: Felt252Wrapper, contract_class: ContractClass, is_query: bool -) -> TransactionExecutionResult<DeclareTransaction>

    source§

    impl DeclareTransaction

    source

    pub fn sender_address(&self) -> &Felt252Wrapper

    source

    pub fn signature(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn max_fee(&self) -> &u128

    source

    pub fn nonce(&self) -> &Felt252Wrapper

    source

    pub fn version(&self) -> u8

    source

    pub fn class_hash(&self) -> &Felt252Wrapper

    source

    pub fn compiled_class_hash(&self) -> Option<&Felt252Wrapper>

    Trait Implementations§

    source§

    impl Clone for DeclareTransaction

    source§

    fn clone(&self) -> DeclareTransaction

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for DeclareTransaction

    source§

    fn compute_hash<H: HasherT>( +) -> TransactionExecutionResult<DeclareTransaction>

    source§

    impl DeclareTransaction

    source

    pub fn sender_address(&self) -> &Felt252Wrapper

    source

    pub fn signature(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn max_fee(&self) -> &u128

    source

    pub fn nonce(&self) -> &Felt252Wrapper

    source

    pub fn version(&self) -> u8

    source

    pub fn class_hash(&self) -> &Felt252Wrapper

    source

    pub fn compiled_class_hash(&self) -> Option<&Felt252Wrapper>

    Trait Implementations§

    source§

    impl Clone for DeclareTransaction

    source§

    fn clone(&self) -> DeclareTransaction

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for DeclareTransaction

    source§

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/mp_transactions/enum.InvokeTransaction.html b/mp_transactions/enum.InvokeTransaction.html index 6d6fa8669b..00a19e1b3c 100644 --- a/mp_transactions/enum.InvokeTransaction.html +++ b/mp_transactions/enum.InvokeTransaction.html @@ -1,11 +1,11 @@ InvokeTransaction in mp_transactions - Rust
    pub enum InvokeTransaction {
         V0(InvokeTransactionV0),
         V1(InvokeTransactionV1),
    -}

    Variants§

    Implementations§

    source§

    impl InvokeTransaction

    source

    pub fn into_executable<H: HasherT>( +}

    Variants§

    Implementations§

    source§

    impl InvokeTransaction

    source

    pub fn into_executable<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool -) -> InvokeTransaction

    source§

    impl InvokeTransaction

    source

    pub fn sender_address(&self) -> &Felt252Wrapper

    source

    pub fn signature(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn max_fee(&self) -> &u128

    source

    pub fn calldata(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn nonce(&self) -> Option<&Felt252Wrapper>

    source

    pub fn version(&self) -> u8

    Trait Implementations§

    source§

    impl Clone for InvokeTransaction

    source§

    fn clone(&self) -> InvokeTransaction

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for InvokeTransaction

    source§

    fn compute_hash<H: HasherT>( +) -> InvokeTransaction

    source§

    impl InvokeTransaction

    source

    pub fn sender_address(&self) -> &Felt252Wrapper

    source

    pub fn signature(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn max_fee(&self) -> &u128

    source

    pub fn calldata(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn nonce(&self) -> Option<&Felt252Wrapper>

    source

    pub fn version(&self) -> u8

    Trait Implementations§

    source§

    impl Clone for InvokeTransaction

    source§

    fn clone(&self) -> InvokeTransaction

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for InvokeTransaction

    source§

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/mp_transactions/enum.Transaction.html b/mp_transactions/enum.Transaction.html index e030033c3b..a53530835b 100644 --- a/mp_transactions/enum.Transaction.html +++ b/mp_transactions/enum.Transaction.html @@ -3,7 +3,7 @@ DeployAccount(DeployAccountTransaction), Invoke(InvokeTransaction), L1Handler(HandleL1MessageTransaction), -}

    Variants§

    Implementations§

    source§

    impl Transaction

    source

    pub fn signature(&self) -> Vec<Felt252Wrapper>

    Trait Implementations§

    source§

    impl Clone for Transaction

    source§

    fn clone(&self) -> Transaction

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for Transaction

    source§

    fn compute_hash<H: HasherT>( +}

    Variants§

    Implementations§

    source§

    impl Transaction

    source

    pub fn signature(&self) -> Vec<Felt252Wrapper>

    Trait Implementations§

    source§

    impl Clone for Transaction

    source§

    fn clone(&self) -> Transaction

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for Transaction

    source§

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/mp_transactions/enum.UserTransaction.html b/mp_transactions/enum.UserTransaction.html index 809d802209..b1bfa89986 100644 --- a/mp_transactions/enum.UserTransaction.html +++ b/mp_transactions/enum.UserTransaction.html @@ -2,7 +2,7 @@ Declare(DeclareTransaction, ContractClass), DeployAccount(DeployAccountTransaction), Invoke(InvokeTransaction), -}

    Variants§

    §

    Declare(DeclareTransaction, ContractClass)

    §

    DeployAccount(DeployAccountTransaction)

    §

    Invoke(InvokeTransaction)

    Implementations§

    source§

    impl UserTransaction

    source

    pub fn sender_address(&self) -> Felt252Wrapper

    source

    pub fn signature(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn max_fee(&self) -> &u128

    source

    pub fn calldata(&self) -> Option<&Vec<Felt252Wrapper>>

    source

    pub fn nonce(&self) -> Option<&Felt252Wrapper>

    source

    pub fn version(&self) -> u8

    Trait Implementations§

    source§

    impl Clone for UserTransaction

    source§

    fn clone(&self) -> UserTransaction

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for UserTransaction

    source§

    fn compute_hash<H: HasherT>( +}

    Variants§

    §

    Declare(DeclareTransaction, ContractClass)

    §

    DeployAccount(DeployAccountTransaction)

    §

    Invoke(InvokeTransaction)

    Implementations§

    source§

    impl UserTransaction

    source

    pub fn sender_address(&self) -> Felt252Wrapper

    source

    pub fn signature(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn max_fee(&self) -> &u128

    source

    pub fn calldata(&self) -> Option<&Vec<Felt252Wrapper>>

    source

    pub fn nonce(&self) -> Option<&Felt252Wrapper>

    source

    pub fn version(&self) -> u8

    Trait Implementations§

    source§

    impl Clone for UserTransaction

    source§

    fn clone(&self) -> UserTransaction

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for UserTransaction

    source§

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/mp_transactions/struct.DeclareTransactionV0.html b/mp_transactions/struct.DeclareTransactionV0.html index 273005905b..2ac17d6812 100644 --- a/mp_transactions/struct.DeclareTransactionV0.html +++ b/mp_transactions/struct.DeclareTransactionV0.html @@ -4,7 +4,7 @@ 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 more
    1.0.0 · source§

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for DeclareTransactionV0

    source§

    fn compute_hash<H: HasherT>( +}

    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 more
    1.0.0 · source§

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for DeclareTransactionV0

    source§

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/mp_transactions/struct.DeclareTransactionV1.html b/mp_transactions/struct.DeclareTransactionV1.html index 3716d9d9a3..65333cf187 100644 --- a/mp_transactions/struct.DeclareTransactionV1.html +++ b/mp_transactions/struct.DeclareTransactionV1.html @@ -4,7 +4,7 @@ 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 DeclareTransactionV1

    source§

    fn clone(&self) -> DeclareTransactionV1

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for DeclareTransactionV1

    source§

    fn compute_hash<H: HasherT>( +}

    Fields§

    §max_fee: u128§signature: Vec<Felt252Wrapper>§nonce: Felt252Wrapper§class_hash: Felt252Wrapper§sender_address: Felt252Wrapper

    Trait Implementations§

    source§

    impl Clone for DeclareTransactionV1

    source§

    fn clone(&self) -> DeclareTransactionV1

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for DeclareTransactionV1

    source§

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/mp_transactions/struct.DeclareTransactionV2.html b/mp_transactions/struct.DeclareTransactionV2.html index bd0512b5d0..a6cbb84f49 100644 --- a/mp_transactions/struct.DeclareTransactionV2.html +++ b/mp_transactions/struct.DeclareTransactionV2.html @@ -5,7 +5,7 @@ pub class_hash: Felt252Wrapper, pub sender_address: Felt252Wrapper, pub compiled_class_hash: Felt252Wrapper, -}

    Fields§

    §max_fee: u128§signature: Vec<Felt252Wrapper>§nonce: Felt252Wrapper§class_hash: Felt252Wrapper§sender_address: Felt252Wrapper§compiled_class_hash: Felt252Wrapper

    Trait Implementations§

    source§

    impl Clone for DeclareTransactionV2

    source§

    fn clone(&self) -> DeclareTransactionV2

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

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

    Performs copy-assignment from source. Read more
    source§

    impl 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

    Trait Implementations§

    source§

    impl Clone for DeclareTransactionV2

    source§

    fn clone(&self) -> DeclareTransactionV2

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for DeclareTransactionV2

    source§

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/mp_transactions/struct.DeployAccountTransaction.html b/mp_transactions/struct.DeployAccountTransaction.html index dd42fb4113..f279a92be8 100644 --- a/mp_transactions/struct.DeployAccountTransaction.html +++ b/mp_transactions/struct.DeployAccountTransaction.html @@ -9,11 +9,11 @@ contract_address_salt: FieldElement, class_hash: FieldElement, constructor_calldata: &[FieldElement] -) -> FieldElement

    source§

    impl DeployAccountTransaction

    source

    pub fn into_executable<H: HasherT>( +) -> FieldElement

    source§

    impl DeployAccountTransaction

    source

    pub fn into_executable<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool -) -> DeployAccountTransaction

    source§

    impl DeployAccountTransaction

    source

    pub fn signature(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn max_fee(&self) -> &u128

    source

    pub fn calldata(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn nonce(&self) -> &Felt252Wrapper

    source

    pub fn version(&self) -> u8

    source

    pub fn account_address(&self) -> Felt252Wrapper

    source

    pub fn class_hash(&self) -> &Felt252Wrapper

    Trait Implementations§

    source§

    impl Clone for DeployAccountTransaction

    source§

    fn clone(&self) -> DeployAccountTransaction

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for DeployAccountTransaction

    source§

    fn compute_hash<H: HasherT>( +) -> DeployAccountTransaction

    source§

    impl DeployAccountTransaction

    source

    pub fn signature(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn max_fee(&self) -> &u128

    source

    pub fn calldata(&self) -> &Vec<Felt252Wrapper>

    source

    pub fn nonce(&self) -> &Felt252Wrapper

    source

    pub fn version(&self) -> u8

    source

    pub fn account_address(&self) -> Felt252Wrapper

    source

    pub fn class_hash(&self) -> &Felt252Wrapper

    Trait Implementations§

    source§

    impl Clone for DeployAccountTransaction

    source§

    fn clone(&self) -> DeployAccountTransaction

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

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for DeployAccountTransaction

    source§

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/mp_transactions/struct.HandleL1MessageTransaction.html b/mp_transactions/struct.HandleL1MessageTransaction.html index c798716288..8c27a21a9e 100644 --- a/mp_transactions/struct.HandleL1MessageTransaction.html +++ b/mp_transactions/struct.HandleL1MessageTransaction.html @@ -3,12 +3,12 @@ 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

    source

    pub fn into_executable<H: HasherT>( +}

    Fields§

    §nonce: u64§contract_address: Felt252Wrapper§entry_point_selector: Felt252Wrapper§calldata: Vec<Felt252Wrapper>

    Implementations§

    source§

    impl HandleL1MessageTransaction

    source

    pub fn into_executable<H: HasherT>( &self, chain_id: Felt252Wrapper, paid_fee_on_l1: Fee, is_query: bool -) -> L1HandlerTransaction

    Trait Implementations§

    source§

    impl Clone for HandleL1MessageTransaction

    source§

    fn clone(&self) -> HandleL1MessageTransaction

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

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

    Performs copy-assignment from source. Read more
    source§

    impl 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 more
    1.0.0 · source§

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for HandleL1MessageTransaction

    source§

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/mp_transactions/struct.InvokeTransactionV0.html b/mp_transactions/struct.InvokeTransactionV0.html index b74c3bf5b3..972bdb98d2 100644 --- a/mp_transactions/struct.InvokeTransactionV0.html +++ b/mp_transactions/struct.InvokeTransactionV0.html @@ -4,11 +4,11 @@ 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

    source

    pub fn into_executable<H: HasherT>( +}

    Fields§

    §max_fee: u128§signature: Vec<Felt252Wrapper>§contract_address: Felt252Wrapper§entry_point_selector: Felt252Wrapper§calldata: Vec<Felt252Wrapper>

    Implementations§

    source§

    impl InvokeTransactionV0

    source

    pub fn into_executable<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool -) -> InvokeTransaction

    Trait Implementations§

    source§

    impl Clone for InvokeTransactionV0

    source§

    fn clone(&self) -> InvokeTransactionV0

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

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

    Performs copy-assignment from source. Read more
    source§

    impl 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 more
    1.0.0 · source§

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for InvokeTransactionV0

    source§

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/mp_transactions/struct.InvokeTransactionV1.html b/mp_transactions/struct.InvokeTransactionV1.html index 6a36ccd3e1..97ab0d3f75 100644 --- a/mp_transactions/struct.InvokeTransactionV1.html +++ b/mp_transactions/struct.InvokeTransactionV1.html @@ -4,11 +4,11 @@ pub nonce: Felt252Wrapper, pub sender_address: Felt252Wrapper, pub calldata: Vec<Felt252Wrapper>, -}

    Fields§

    §max_fee: u128§signature: Vec<Felt252Wrapper>§nonce: Felt252Wrapper§sender_address: Felt252Wrapper§calldata: Vec<Felt252Wrapper>

    Implementations§

    source§

    impl InvokeTransactionV1

    source

    pub fn into_executable<H: HasherT>( +}

    Fields§

    §max_fee: u128§signature: Vec<Felt252Wrapper>§nonce: Felt252Wrapper§sender_address: Felt252Wrapper§calldata: Vec<Felt252Wrapper>

    Implementations§

    source§

    impl InvokeTransactionV1

    source

    pub fn into_executable<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool -) -> InvokeTransaction

    Trait Implementations§

    source§

    impl Clone for InvokeTransactionV1

    source§

    fn clone(&self) -> InvokeTransactionV1

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

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

    Performs copy-assignment from source. Read more
    source§

    impl 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 more
    1.0.0 · source§

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

    Performs copy-assignment from source. Read more
    source§

    impl ComputeTransactionHash for InvokeTransactionV1

    source§

    fn compute_hash<H: HasherT>( &self, chain_id: Felt252Wrapper, is_query: bool diff --git a/pallet_starknet/constant.ETHEREUM_CONSENSUS_RPC.html b/pallet_starknet/constant.ETHEREUM_CONSENSUS_RPC.html index d011a4b714..9574c256ca 100644 --- a/pallet_starknet/constant.ETHEREUM_CONSENSUS_RPC.html +++ b/pallet_starknet/constant.ETHEREUM_CONSENSUS_RPC.html @@ -1 +1 @@ -ETHEREUM_CONSENSUS_RPC in pallet_starknet - Rust
    pub const ETHEREUM_CONSENSUS_RPC: &[u8] = b"starknet::ETHEREUM_CONSENSUS_RPC";
    \ No newline at end of file +ETHEREUM_CONSENSUS_RPC in pallet_starknet - Rust
    pub const ETHEREUM_CONSENSUS_RPC: &[u8] = b"starknet::ETHEREUM_CONSENSUS_RPC";
    \ No newline at end of file diff --git a/pallet_starknet/constant.ETHEREUM_EXECUTION_RPC.html b/pallet_starknet/constant.ETHEREUM_EXECUTION_RPC.html index 2c5af43054..1a4acfd4e3 100644 --- a/pallet_starknet/constant.ETHEREUM_EXECUTION_RPC.html +++ b/pallet_starknet/constant.ETHEREUM_EXECUTION_RPC.html @@ -1 +1 @@ -ETHEREUM_EXECUTION_RPC in pallet_starknet - Rust
    pub const ETHEREUM_EXECUTION_RPC: &[u8] = b"starknet::ETHEREUM_EXECUTION_RPC";
    \ No newline at end of file +ETHEREUM_EXECUTION_RPC in pallet_starknet - Rust
    pub const ETHEREUM_EXECUTION_RPC: &[u8] = b"starknet::ETHEREUM_EXECUTION_RPC";
    \ No newline at end of file diff --git a/pallet_starknet/index.html b/pallet_starknet/index.html index 157a6c1277..4f0c2738a7 100644 --- a/pallet_starknet/index.html +++ b/pallet_starknet/index.html @@ -1,4 +1,4 @@ -pallet_starknet - Rust

    Crate pallet_starknet

    source ·
    Expand description

    A Substrate pallet implementation for Starknet, a decentralized, permissionless, and scalable +pallet_starknet - Rust

    Crate pallet_starknet

    source ·
    Expand description

    A Substrate pallet implementation for Starknet, a decentralized, permissionless, and scalable zk-rollup for general-purpose smart contracts. See the Starknet documentation for more information. The code consists of the following sections:

    diff --git a/pallet_starknet/macro.log.html b/pallet_starknet/macro.log.html index 70617b77e3..2dfce59bd1 100644 --- a/pallet_starknet/macro.log.html +++ b/pallet_starknet/macro.log.html @@ -1,3 +1,3 @@ -log in pallet_starknet - Rust

    Macro pallet_starknet::log

    source ·
    macro_rules! log {
    +log in pallet_starknet - Rust

    Macro pallet_starknet::log

    source ·
    macro_rules! log {
         ($level:tt, $pattern:expr $(, $values:expr)* $(,)?) => { ... };
     }
    \ No newline at end of file diff --git a/pallet_starknet/pallet/dispatchables/fn.consume_l1_message.html b/pallet_starknet/pallet/dispatchables/fn.consume_l1_message.html index fd5fd11bec..6dd400b39d 100644 --- a/pallet_starknet/pallet/dispatchables/fn.consume_l1_message.html +++ b/pallet_starknet/pallet/dispatchables/fn.consume_l1_message.html @@ -1,4 +1,4 @@ -consume_l1_message in pallet_starknet::pallet::dispatchables - Rust
    pub fn consume_l1_message<T: Config>(
    +consume_l1_message in pallet_starknet::pallet::dispatchables - Rust
    pub fn consume_l1_message<T: Config>(
         transaction: HandleL1MessageTransaction,
         paid_fee_on_l1: Fee
     )
    Expand description

    Consume a message from L1.

    diff --git a/pallet_starknet/pallet/dispatchables/fn.declare.html b/pallet_starknet/pallet/dispatchables/fn.declare.html index 733dab0f48..4a2440bf87 100644 --- a/pallet_starknet/pallet/dispatchables/fn.declare.html +++ b/pallet_starknet/pallet/dispatchables/fn.declare.html @@ -1,4 +1,4 @@ -declare in pallet_starknet::pallet::dispatchables - Rust
    pub fn declare<T: Config>(
    +declare in pallet_starknet::pallet::dispatchables - Rust
    pub fn declare<T: Config>(
         transaction: DeclareTransaction,
         contract_class: ContractClass
     )
    Expand description

    The declare transaction is used to introduce new classes into the state of Starknet, diff --git a/pallet_starknet/pallet/dispatchables/fn.deploy_account.html b/pallet_starknet/pallet/dispatchables/fn.deploy_account.html index da795851d8..04dc432b74 100644 --- a/pallet_starknet/pallet/dispatchables/fn.deploy_account.html +++ b/pallet_starknet/pallet/dispatchables/fn.deploy_account.html @@ -1,4 +1,4 @@ -deploy_account in pallet_starknet::pallet::dispatchables - Rust

    pub fn deploy_account<T: Config>(transaction: DeployAccountTransaction)
    Expand description

    Since Starknet v0.10.1 the deploy_account transaction replaces the deploy transaction +deploy_account in pallet_starknet::pallet::dispatchables - Rust

    pub fn deploy_account<T: Config>(transaction: DeployAccountTransaction)
    Expand description

    Since Starknet v0.10.1 the deploy_account transaction replaces the deploy transaction for deploying account contracts. To use it, you should first pre-fund your would-be account address so that you could pay the transaction fee (see here for more details) . You can then send the deploy_account transaction. See https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#deploy_account_transaction.

    diff --git a/pallet_starknet/pallet/dispatchables/fn.invoke.html b/pallet_starknet/pallet/dispatchables/fn.invoke.html index c65a5b6952..49e06cf898 100644 --- a/pallet_starknet/pallet/dispatchables/fn.invoke.html +++ b/pallet_starknet/pallet/dispatchables/fn.invoke.html @@ -1,4 +1,4 @@ -invoke in pallet_starknet::pallet::dispatchables - Rust
    pub fn invoke<T: Config>(transaction: InvokeTransaction)
    Expand description

    The invoke transaction is the main transaction type used to invoke contract functions in +invoke in pallet_starknet::pallet::dispatchables - Rust

    pub fn invoke<T: Config>(transaction: InvokeTransaction)
    Expand description

    The invoke transaction is the main transaction type used to invoke contract functions in Starknet. See https://docs.starknet.io/documentation/architecture_and_concepts/Blocks/transactions/#invoke_transaction.

    Arguments

    diff --git a/pallet_starknet/pallet/dispatchables/fn.set_sequencer_address.html b/pallet_starknet/pallet/dispatchables/fn.set_sequencer_address.html index 3e03c66b3d..f534a4c461 100644 --- a/pallet_starknet/pallet/dispatchables/fn.set_sequencer_address.html +++ b/pallet_starknet/pallet/dispatchables/fn.set_sequencer_address.html @@ -1,4 +1,4 @@ -set_sequencer_address in pallet_starknet::pallet::dispatchables - Rust
    pub fn set_sequencer_address<T: Config>(addr: [u8; 32])
    Expand description

    Set the current block author’s sequencer address.

    +set_sequencer_address in pallet_starknet::pallet::dispatchables - Rust
    pub fn set_sequencer_address<T: Config>(addr: [u8; 32])
    Expand description

    Set the current block author’s sequencer address.

    This call should be invoked exactly once per block. It will set a default value at the finalization phase, if this call hasn’t been invoked by that time.

    The dispatch origin for this call must be Inherent.

    diff --git a/pallet_starknet/pallet/dispatchables/index.html b/pallet_starknet/pallet/dispatchables/index.html index 8c77f2a9cd..2d2bbdaf73 100644 --- a/pallet_starknet/pallet/dispatchables/index.html +++ b/pallet_starknet/pallet/dispatchables/index.html @@ -1,4 +1,4 @@ -pallet_starknet::pallet::dispatchables - Rust
    Expand description

    Auto-generated docs-only module listing all defined dispatchables for this pallet.

    +pallet_starknet::pallet::dispatchables - Rust
    Expand description

    Auto-generated docs-only module listing all defined dispatchables for this pallet.

    Warning: Doc-Only

    Members of this module cannot be used directly and are only provided for documentation purposes. To see the real version of each dispatchable, look for them in Pallet or diff --git a/pallet_starknet/pallet/enum.Call.html b/pallet_starknet/pallet/enum.Call.html index 4fdf1fbe11..46ebfec1d0 100644 --- a/pallet_starknet/pallet/enum.Call.html +++ b/pallet_starknet/pallet/enum.Call.html @@ -1,4 +1,4 @@ -Call in pallet_starknet::pallet - Rust

    pub enum Call<T: Config> {
    +Call in pallet_starknet::pallet - Rust
    pub enum Call<T: Config> {
         set_sequencer_address {
             addr: [u8; 32],
         },
    @@ -26,38 +26,38 @@
     
    §

    declare

    Fields

    §contract_class: ContractClass
    §

    deploy_account

    Fields

    §

    consume_l1_message

    Fields

    §paid_fee_on_l1: Fee

    Implementations§

    source§

    impl<T: Config> Call<T>

    source

    pub fn new_call_variant_set_sequencer_address(addr: [u8; 32]) -> Self

    Create a call with the variant set_sequencer_address.

    -
    source

    pub fn new_call_variant_invoke(transaction: InvokeTransaction) -> Self

    Create a call with the variant invoke.

    -
    source

    pub fn new_call_variant_declare( +

    Implementations§

    source§

    impl<T: Config> Call<T>

    source

    pub fn new_call_variant_set_sequencer_address(addr: [u8; 32]) -> Self

    Create a call with the variant set_sequencer_address.

    +
    source

    pub fn new_call_variant_invoke(transaction: InvokeTransaction) -> Self

    Create a call with the variant invoke.

    +
    source

    pub fn new_call_variant_declare( transaction: DeclareTransaction, contract_class: ContractClass ) -> Self

    Create a call with the variant declare.

    -
    source

    pub fn new_call_variant_deploy_account( +

    source

    pub fn new_call_variant_deploy_account( transaction: DeployAccountTransaction ) -> Self

    Create a call with the variant deploy_account.

    -
    source

    pub fn new_call_variant_consume_l1_message( +

    source

    pub fn new_call_variant_consume_l1_message( transaction: HandleL1MessageTransaction, paid_fee_on_l1: Fee ) -> Self

    Create a call with the variant consume_l1_message.

    -

    Trait Implementations§

    source§

    impl<T: Config> Clone for Call<T>

    source§

    fn clone(&self) -> Self

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

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

    Performs copy-assignment from source. Read more
    source§

    impl<T: Config> Debug for Call<T>

    source§

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

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

    impl<T: Config> Decode for Call<T>

    source§

    fn decode<__CodecInputEdqy: Input>( +

    Trait Implementations§

    source§

    impl<T: Config> Clone for Call<T>

    source§

    fn clone(&self) -> Self

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

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

    Performs copy-assignment from source. Read more
    source§

    impl<T: Config> Debug for Call<T>

    source§

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

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

    impl<T: Config> Decode for Call<T>

    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, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,

    Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
    §

    fn skip<I>(input: &mut I) -> Result<(), Error>where - I: Input,

    Attempt to skip the encoded value from input. Read more
    §

    fn encoded_fixed_size() -> Option<usize>

    Returns the fixed encoded size of the type. Read more
    source§

    impl<T: Config> Encode for Call<T>

    source§

    fn size_hint(&self) -> usize

    If possible give a hint of expected size of the encoding. Read more
    source§

    fn encode_to<__CodecOutputEdqy: Output + ?Sized>( + I: Input,

    Attempt to skip the encoded value from input. Read more
    §

    fn encoded_fixed_size() -> Option<usize>

    Returns the fixed encoded size of the type. Read more
    source§

    impl<T: Config> Encode for Call<T>

    source§

    fn size_hint(&self) -> usize

    If possible give a hint of expected size of the encoding. Read more
    source§

    fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )

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

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

    Convert self to an owned vector.
    §

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

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

    fn encoded_size(&self) -> usize

    Calculates the encoded size. Read more
    source§

    impl<T: Config> GetCallIndex for Call<T>

    source§

    fn get_call_index(&self) -> u8

    Return the index of this Call.
    source§

    fn get_call_indices() -> &'static [u8]

    Return all call indices in the same order as [GetCallName].
    source§

    impl<T: Config> GetCallName for Call<T>

    source§

    fn get_call_name(&self) -> &'static str

    Return the function name of the Call.
    source§

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

    Return all function names in the same order as [GetCallIndex].
    source§

    impl<T: Config> GetDispatchInfo for Call<T>

    source§

    fn get_dispatch_info(&self) -> DispatchInfo

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

    impl<T: Config> PartialEq<Call<T>> for Call<T>

    source§

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

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

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

    fn encoded_size(&self) -> usize

    Calculates the encoded size. Read more
    source§

    impl<T: Config> GetCallIndex for Call<T>

    source§

    fn get_call_index(&self) -> u8

    Return the index of this Call.
    source§

    fn get_call_indices() -> &'static [u8]

    Return all call indices in the same order as [GetCallName].
    source§

    impl<T: Config> GetCallName for Call<T>

    source§

    fn get_call_name(&self) -> &'static str

    Return the function name of the Call.
    source§

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

    Return all function names in the same order as [GetCallIndex].
    source§

    impl<T: Config> GetDispatchInfo for Call<T>

    source§

    fn get_dispatch_info(&self) -> DispatchInfo

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

    impl<T: Config> PartialEq<Call<T>> for Call<T>

    source§

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

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

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

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

    impl<T> TypeInfo for Call<T>where +sufficient, and should not be overridden without very good reason.

    source§

    impl<T> TypeInfo for Call<T>where PhantomData<(T,)>: TypeInfo + 'static, - T: Config + 'static,

    §

    type Identity = Call<T>

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

    fn type_info() -> Type

    Returns the static type identifier for Self.
    source§

    impl<T: Config> UnfilteredDispatchable for Call<T>

    §

    type RuntimeOrigin = <T as Config>::RuntimeOrigin

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

    fn dispatch_bypass_filter( + T: Config + 'static,

    §

    type Identity = Call<T>

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

    fn type_info() -> Type

    Returns the static type identifier for Self.
    source§

    impl<T: Config> UnfilteredDispatchable for Call<T>

    §

    type RuntimeOrigin = <T as Config>::RuntimeOrigin

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

    fn dispatch_bypass_filter( self, origin: Self::RuntimeOrigin -) -> DispatchResultWithPostInfo

    Dispatch this call but do not check the filter in origin.
    source§

    impl<T: Config> EncodeLike<Call<T>> for Call<T>

    source§

    impl<T: Config> Eq for Call<T>

    Auto Trait Implementations§

    §

    impl<T> RefUnwindSafe for Call<T>where +) -> DispatchResultWithPostInfo

    Dispatch this call but do not check the filter in origin.
    source§

    impl<T: Config> EncodeLike<Call<T>> for Call<T>

    source§

    impl<T: Config> Eq for Call<T>

    Auto Trait Implementations§

    §

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

    §

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

    §

    impl<T> Sync for Call<T>where T: Sync,

    §

    impl<T> Unpin for Call<T>where diff --git a/pallet_starknet/pallet/enum.Error.html b/pallet_starknet/pallet/enum.Error.html index cec561896c..2a30d5f39e 100644 --- a/pallet_starknet/pallet/enum.Error.html +++ b/pallet_starknet/pallet/enum.Error.html @@ -1,4 +1,4 @@ -Error in pallet_starknet::pallet - Rust
    pub enum Error<T> {
    +Error in pallet_starknet::pallet - Rust
    pub enum Error<T> {
     
    Show 21 variants AccountNotDeployed, TransactionExecutionFailed, ClassHashAlreadyDeclared, @@ -23,20 +23,20 @@ // some variants omitted
    }
    Expand description

    The Starknet pallet custom errors. ERRORS

    -

    Variants§

    §

    AccountNotDeployed

    §

    TransactionExecutionFailed

    §

    ClassHashAlreadyDeclared

    §

    ContractClassHashUnknown

    §

    ContractClassAlreadyAssociated

    §

    ContractClassMustBeSpecified

    §

    AccountAlreadyDeployed

    §

    ContractAddressAlreadyAssociated

    §

    InvalidContractClass

    §

    TooManyEmittedStarknetEvents

    §

    StateReaderError

    §

    EmitEventError

    §

    StateDiffError

    §

    ContractNotFound

    §

    TransactionConversionError

    §

    SequencerAddressNotValid

    §

    InvalidContractClassForThisDeclareVersion

    §

    Unimplemented

    §

    MissingRevertReason

    §

    MissingCallInfo

    §

    TransactionalExecutionFailed

    Trait Implementations§

    source§

    impl<T: Config> Debug for Error<T>

    source§

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

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

    impl<T> Decode for Error<T>

    source§

    fn decode<__CodecInputEdqy: Input>( +

    Variants§

    §

    AccountNotDeployed

    §

    TransactionExecutionFailed

    §

    ClassHashAlreadyDeclared

    §

    ContractClassHashUnknown

    §

    ContractClassAlreadyAssociated

    §

    ContractClassMustBeSpecified

    §

    AccountAlreadyDeployed

    §

    ContractAddressAlreadyAssociated

    §

    InvalidContractClass

    §

    TooManyEmittedStarknetEvents

    §

    StateReaderError

    §

    EmitEventError

    §

    StateDiffError

    §

    ContractNotFound

    §

    TransactionConversionError

    §

    SequencerAddressNotValid

    §

    InvalidContractClassForThisDeclareVersion

    §

    Unimplemented

    §

    MissingRevertReason

    §

    MissingCallInfo

    §

    TransactionalExecutionFailed

    Trait Implementations§

    source§

    impl<T: Config> Debug for Error<T>

    source§

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

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

    impl<T> Decode for Error<T>

    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, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,

    Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
    §

    fn skip<I>(input: &mut I) -> Result<(), Error>where - I: Input,

    Attempt to skip the encoded value from input. Read more
    §

    fn encoded_fixed_size() -> Option<usize>

    Returns the fixed encoded size of the type. Read more
    source§

    impl<T> Encode for Error<T>

    source§

    fn size_hint(&self) -> usize

    If possible give a hint of expected size of the encoding. Read more
    source§

    fn encode_to<__CodecOutputEdqy: Output + ?Sized>( + I: Input,

    Attempt to skip the encoded value from input. Read more
    §

    fn encoded_fixed_size() -> Option<usize>

    Returns the fixed encoded size of the type. Read more
    source§

    impl<T> Encode for Error<T>

    source§

    fn size_hint(&self) -> usize

    If possible give a hint of expected size of the encoding. Read more
    source§

    fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )

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

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

    Convert self to an owned vector.
    §

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

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

    fn encoded_size(&self) -> usize

    Calculates the encoded size. Read more
    source§

    impl<T: Config> From<Error<T>> for &'static str

    source§

    fn from(err: Error<T>) -> &'static str

    Converts to this type from the input type.
    source§

    impl<T: Config> From<Error<T>> for DispatchError

    source§

    fn from(err: Error<T>) -> Self

    Converts to this type from the input type.
    source§

    impl<T> PalletError for Error<T>

    source§

    const MAX_ENCODED_SIZE: usize = 1usize

    The maximum encoded size for the implementing type. Read more
    source§

    impl<T> TypeInfo for Error<T>where + F: FnOnce(&[u8]) -> R,

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

    fn encoded_size(&self) -> usize

    Calculates the encoded size. Read more

    source§

    impl<T: Config> From<Error<T>> for &'static str

    source§

    fn from(err: Error<T>) -> &'static str

    Converts to this type from the input type.
    source§

    impl<T: Config> From<Error<T>> for DispatchError

    source§

    fn from(err: Error<T>) -> Self

    Converts to this type from the input type.
    source§

    impl<T> PalletError for Error<T>

    source§

    const MAX_ENCODED_SIZE: usize = 1usize

    The maximum encoded size for the implementing type. Read more
    source§

    impl<T> TypeInfo for Error<T>where PhantomData<T>: TypeInfo + 'static, - T: 'static,

    §

    type Identity = Error<T>

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

    fn type_info() -> Type

    Returns the static type identifier for Self.
    source§

    impl<T> EncodeLike<Error<T>> for Error<T>

    Auto Trait Implementations§

    §

    impl<T> RefUnwindSafe for Error<T>where + T: 'static,

    §

    type Identity = Error<T>

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

    fn type_info() -> Type

    Returns the static type identifier for Self.
    source§

    impl<T> EncodeLike<Error<T>> for Error<T>

    Auto Trait Implementations§

    §

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

    §

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

    §

    impl<T> Sync for Error<T>where T: Sync,

    §

    impl<T> Unpin for Error<T>where diff --git a/pallet_starknet/pallet/enum.Event.html b/pallet_starknet/pallet/enum.Event.html index 440aacdb51..4e55d7356d 100644 --- a/pallet_starknet/pallet/enum.Event.html +++ b/pallet_starknet/pallet/enum.Event.html @@ -1,4 +1,4 @@ -Event in pallet_starknet::pallet - Rust
    pub enum Event<T: Config> {
    +Event in pallet_starknet::pallet - Rust
    pub enum Event<T: Config> {
         KeepStarknetStrange,
         StarknetEvent(Event),
         FeeTokenAddressChanged {
    @@ -13,22 +13,22 @@
     
    §

    FeeTokenAddressChanged

    Fields

    §old_fee_token_address: ContractAddress
    §new_fee_token_address: ContractAddress

    Emitted when fee token address is changed. This is emitted by the set_fee_token_address extrinsic. [old_fee_token_address, new_fee_token_address]

    -

    Trait Implementations§

    source§

    impl<T: Config> Clone for Event<T>

    source§

    fn clone(&self) -> Self

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

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

    Performs copy-assignment from source. Read more
    source§

    impl<T: Config> Debug for Event<T>

    source§

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

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

    impl<T: Config> Decode for Event<T>

    source§

    fn decode<__CodecInputEdqy: Input>( +

    Trait Implementations§

    source§

    impl<T: Config> Clone for Event<T>

    source§

    fn clone(&self) -> Self

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

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

    Performs copy-assignment from source. Read more
    source§

    impl<T: Config> Debug for Event<T>

    source§

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

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

    impl<T: Config> Decode for Event<T>

    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, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,

    Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
    §

    fn skip<I>(input: &mut I) -> Result<(), Error>where - I: Input,

    Attempt to skip the encoded value from input. Read more
    §

    fn encoded_fixed_size() -> Option<usize>

    Returns the fixed encoded size of the type. Read more
    source§

    impl<T: Config> Encode for Event<T>

    source§

    fn size_hint(&self) -> usize

    If possible give a hint of expected size of the encoding. Read more
    source§

    fn encode_to<__CodecOutputEdqy: Output + ?Sized>( + I: Input,

    Attempt to skip the encoded value from input. Read more
    §

    fn encoded_fixed_size() -> Option<usize>

    Returns the fixed encoded size of the type. Read more
    source§

    impl<T: Config> Encode for Event<T>

    source§

    fn size_hint(&self) -> usize

    If possible give a hint of expected size of the encoding. Read more
    source§

    fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )

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

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

    Convert self to an owned vector.
    §

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

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

    fn encoded_size(&self) -> usize

    Calculates the encoded size. Read more
    source§

    impl<T: Config> From<Event<T>> for ()

    source§

    fn from(_: Event<T>)

    Converts to this type from the input type.
    source§

    impl<T: Config> PartialEq<Event<T>> for Event<T>

    source§

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

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

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

    fn encoded_size(&self) -> usize

    Calculates the encoded size. Read more
    source§

    impl<T: Config> From<Event<T>> for ()

    source§

    fn from(_: Event<T>)

    Converts to this type from the input type.
    source§

    impl<T: Config> PartialEq<Event<T>> for Event<T>

    source§

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

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

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

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

    impl<T> TypeInfo for Event<T>where +sufficient, and should not be overridden without very good reason.

    source§

    impl<T> TypeInfo for Event<T>where PhantomData<T>: TypeInfo + 'static, - T: Config + 'static,

    §

    type Identity = Event<T>

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

    fn type_info() -> Type

    Returns the static type identifier for Self.
    source§

    impl<T: Config> EncodeLike<Event<T>> for Event<T>

    source§

    impl<T: Config> Eq for Event<T>

    Auto Trait Implementations§

    §

    impl<T> RefUnwindSafe for Event<T>where + T: Config + 'static,

    §

    type Identity = Event<T>

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

    fn type_info() -> Type

    Returns the static type identifier for Self.
    source§

    impl<T: Config> EncodeLike<Event<T>> for Event<T>

    source§

    impl<T: Config> Eq for Event<T>

    Auto Trait Implementations§

    §

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

    §

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

    §

    impl<T> Sync for Event<T>where T: Sync,

    §

    impl<T> Unpin for Event<T>where diff --git a/pallet_starknet/pallet/index.html b/pallet_starknet/pallet/index.html index 00e168e85f..b00c3a1e57 100644 --- a/pallet_starknet/pallet/index.html +++ b/pallet_starknet/pallet/index.html @@ -1,4 +1,4 @@ -pallet_starknet::pallet - Rust

    Module pallet_starknet::pallet

    source ·
    Expand description

    The pallet module in each FRAME pallet hosts the most important items needed +pallet_starknet::pallet - Rust

    Module pallet_starknet::pallet

    source ·
    Expand description

    The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.

    The main components of this pallet are:

    source

    pub fn chain_id() -> Felt252Wrapper

    source

    pub fn is_transaction_fee_disabled() -> bool

    Trait Implementations§

    source§

    impl<T: Config> Callable<T> for Pallet<T>

    source§

    impl<T> Clone for Pallet<T>

    source§

    fn clone(&self) -> Self

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

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

    Performs copy-assignment from source. Read more
    source§

    impl<T> Debug for Pallet<T>

    source§

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

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

    impl<T: Config> GetStorageVersion for Pallet<T>

    §

    type CurrentStorageVersion = NoStorageVersionSet

    This will be filled out by the pallet macro. Read more
    source§

    fn current_storage_version() -> Self::CurrentStorageVersion

    Returns the current storage version as supported by the pallet.
    source§

    fn on_chain_storage_version() -> StorageVersion

    Returns the on-chain storage version of the pallet as stored in the storage.
    source§

    impl<T: Config> Hooks<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

    The Starknet pallet hooks. HOOKS

    TODO

    • Implement the hooks.
    -
    source§

    fn on_finalize(_n: BlockNumberFor<T>)

    The block is being finalized.

    -
    source§

    fn on_initialize(_: BlockNumberFor<T>) -> Weight

    The block is being initialized. Implement to have something happen.

    -
    source§

    fn on_runtime_upgrade() -> Weight

    Perform a module upgrade.

    -
    source§

    fn offchain_worker(n: BlockNumberFor<T>)

    Run offchain tasks. +

    source§

    fn on_finalize(_n: BlockNumberFor<T>)

    The block is being finalized.

    +
    source§

    fn on_initialize(_: BlockNumberFor<T>) -> Weight

    The block is being initialized. Implement to have something happen.

    +
    source§

    fn on_runtime_upgrade() -> Weight

    Perform a module upgrade.

    +
    source§

    fn offchain_worker(n: BlockNumberFor<T>)

    Run offchain tasks. See: <https://docs.substrate.io/reference/how-to-guides/offchain-workers/>

    Arguments
    • n - The block number.
    §

    fn on_idle(_n: BlockNumber, _remaining_weight: Weight) -> Weight

    Hook to consume a block’s idle time. This will run when the block is being finalized (before -[Hooks::on_finalize]). Read more
    §

    fn integrity_test()

    Check the integrity of this pallet’s configuration. Read more
    source§

    impl<T: Config> IntegrityTest for Pallet<T>

    source§

    fn integrity_test()

    See [Hooks::integrity_test].
    source§

    impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

    source§

    fn offchain_worker(n: BlockNumberFor<T>)

    This function is being called after every block import (when fully synced). Read more
    source§

    impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

    source§

    fn on_finalize(n: BlockNumberFor<T>)

    See [Hooks::on_finalize].
    source§

    impl<T: Config> OnGenesis for Pallet<T>

    source§

    fn on_genesis()

    Something that should happen at genesis.
    source§

    impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

    source§

    fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

    See [Hooks::on_idle].
    source§

    impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

    source§

    fn on_initialize(n: BlockNumberFor<T>) -> Weight

    See [Hooks::on_initialize].
    source§

    impl<T: Config> OnRuntimeUpgrade for Pallet<T>

    source§

    fn on_runtime_upgrade() -> Weight

    See [Hooks::on_runtime_upgrade].
    source§

    impl<T: Config> PalletInfoAccess for Pallet<T>

    source§

    fn index() -> usize

    Index of the pallet as configured in the runtime.
    source§

    fn name() -> &'static str

    Name of the pallet as configured in the runtime.
    source§

    fn name_hash() -> [u8; 16]

    Two128 hash of name.
    source§

    fn module_name() -> &'static str

    Name of the Rust module containing the pallet.
    source§

    fn crate_version() -> CrateVersion

    Version of the crate containing the pallet.
    source§

    impl<T: Config> PalletsInfoAccess for Pallet<T>

    source§

    fn count() -> usize

    The number of pallets’ information that this type represents. Read more
    source§

    fn infos() -> Vec<PalletInfoData>

    All of the pallets’ information that this type represents.
    source§

    impl<T> PartialEq<Pallet<T>> for Pallet<T>

    source§

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

    This method tests for self and other values to be equal, and is used +[Hooks::on_finalize]). Read more
    §

    fn integrity_test()

    Check the integrity of this pallet’s configuration. Read more
    source§

    impl<T: Config> IntegrityTest for Pallet<T>

    source§

    fn integrity_test()

    See [Hooks::integrity_test].
    source§

    impl<T: Config> OffchainWorker<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

    source§

    fn offchain_worker(n: BlockNumberFor<T>)

    This function is being called after every block import (when fully synced). Read more
    source§

    impl<T: Config> OnFinalize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

    source§

    fn on_finalize(n: BlockNumberFor<T>)

    See [Hooks::on_finalize].
    source§

    impl<T: Config> OnGenesis for Pallet<T>

    source§

    fn on_genesis()

    Something that should happen at genesis.
    source§

    impl<T: Config> OnIdle<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

    source§

    fn on_idle(n: BlockNumberFor<T>, remaining_weight: Weight) -> Weight

    See [Hooks::on_idle].
    source§

    impl<T: Config> OnInitialize<<<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number> for Pallet<T>

    source§

    fn on_initialize(n: BlockNumberFor<T>) -> Weight

    See [Hooks::on_initialize].
    source§

    impl<T: Config> OnRuntimeUpgrade for Pallet<T>

    source§

    fn on_runtime_upgrade() -> Weight

    See [Hooks::on_runtime_upgrade].
    source§

    impl<T: Config> PalletInfoAccess for Pallet<T>

    source§

    fn index() -> usize

    Index of the pallet as configured in the runtime.
    source§

    fn name() -> &'static str

    Name of the pallet as configured in the runtime.
    source§

    fn name_hash() -> [u8; 16]

    Two128 hash of name.
    source§

    fn module_name() -> &'static str

    Name of the Rust module containing the pallet.
    source§

    fn crate_version() -> CrateVersion

    Version of the crate containing the pallet.
    source§

    impl<T: Config> PalletsInfoAccess for Pallet<T>

    source§

    fn count() -> usize

    The number of pallets’ information that this type represents. Read more
    source§

    fn infos() -> Vec<PalletInfoData>

    All of the pallets’ information that this type represents.
    source§

    impl<T> PartialEq<Pallet<T>> for Pallet<T>

    source§

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

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

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

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

    impl<T: Config> ProvideInherent for Pallet<T>

    §

    type Call = Call<T>

    The call type of the pallet.
    §

    type Error = InherentError

    The error returned by check_inherent.
    source§

    const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER

    The inherent identifier used by this inherent.
    source§

    fn create_inherent(data: &InherentData) -> Option<Self::Call>

    Create an inherent out of the given InherentData. Read more
    source§

    fn is_inherent(call: &Self::Call) -> bool

    Return whether the call is an inherent call. Read more
    §

    fn is_inherent_required( +sufficient, and should not be overridden without very good reason.

    source§

    impl<T: Config> ProvideInherent for Pallet<T>

    §

    type Call = Call<T>

    The call type of the pallet.
    §

    type Error = InherentError

    The error returned by check_inherent.
    source§

    const INHERENT_IDENTIFIER: InherentIdentifier = INHERENT_IDENTIFIER

    The inherent identifier used by this inherent.
    source§

    fn create_inherent(data: &InherentData) -> Option<Self::Call>

    Create an inherent out of the given InherentData. Read more
    source§

    fn is_inherent(call: &Self::Call) -> bool

    Return whether the call is an inherent call. Read more
    §

    fn is_inherent_required( _: &InherentData ) -> Result<Option<Self::Error>, Self::Error>

    Determines whether this inherent is required in this block. Read more
    §

    fn check_inherent(_: &Self::Call, _: &InherentData) -> Result<(), Self::Error>

    Check whether the given inherent is valid. Checking the inherent is optional and can be -omitted by using the default implementation. Read more
    source§

    impl<T: Config> StorageInfoTrait for Pallet<T>

    source§

    fn storage_info() -> Vec<StorageInfo>

    source§

    impl<T: Config> ValidateUnsigned for Pallet<T>

    source§

    fn validate_unsigned( +omitted by using the default implementation. Read more

    source§

    impl<T: Config> StorageInfoTrait for Pallet<T>

    source§

    fn storage_info() -> Vec<StorageInfo>

    source§

    impl<T: Config> ValidateUnsigned for Pallet<T>

    source§

    fn validate_unsigned( _source: TransactionSource, call: &Self::Call ) -> TransactionValidity

    Validate unsigned call to this module.

    By default unsigned transactions are disallowed, but implementing the validator here we make sure that some particular calls (in this case all calls) are being whitelisted and marked as valid.

    -
    source§

    fn pre_dispatch(_call: &Self::Call) -> Result<(), TransactionValidityError>

    From substrate documentation: +

    source§

    fn pre_dispatch(_call: &Self::Call) -> Result<(), TransactionValidityError>

    From substrate documentation: Validate the call right before dispatch. This method should be used to prevent transactions already in the pool (i.e. passing validate_unsigned) from being included in blocks in case @@ -177,9 +177,9 @@

    Arguments
    this function calls the validate_unsigned function in order to verify validity before dispatch. In our case, since transaction was already validated in validate_unsigned we can just return Ok.

    -
    §

    type Call = Call<T>

    The call to validate
    source§

    impl<T: Config> WhitelistedStorageKeys for Pallet<T>

    source§

    fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>

    Returns a Vec<TrackedStorageKey> indicating the storage keys that +
    §

    type Call = Call<T>

    The call to validate
    source§

    impl<T: Config> WhitelistedStorageKeys for Pallet<T>

    source§

    fn whitelisted_storage_keys() -> Vec<TrackedStorageKey>

    Returns a Vec<TrackedStorageKey> indicating the storage keys that should be whitelisted during benchmarking. This means that those keys -will be excluded from the benchmarking performance calculation.
    source§

    impl<T> Eq for Pallet<T>

    Auto Trait Implementations§

    §

    impl<T> RefUnwindSafe for Pallet<T>where +will be excluded from the benchmarking performance calculation.

    source§

    impl<T> Eq for Pallet<T>

    Auto Trait Implementations§

    §

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

    §

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

    §

    impl<T> Sync for Pallet<T>where T: Sync,

    §

    impl<T> Unpin for Pallet<T>where diff --git a/pallet_starknet/pallet/trait.Config.html b/pallet_starknet/pallet/trait.Config.html index f4e0954ed0..dfb861c77b 100644 --- a/pallet_starknet/pallet/trait.Config.html +++ b/pallet_starknet/pallet/trait.Config.html @@ -1,4 +1,4 @@ -Config in pallet_starknet::pallet - Rust
    pub trait Config: Config {
    +Config in pallet_starknet::pallet - Rust
    pub trait Config: Config {
         type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>;
         type SystemHash: HasherT;
         type TimestampProvider: Time;
    @@ -19,15 +19,15 @@
     Configure the pallet by specifying the parameters and types on which it depends.
     We’re coupling the starknet pallet to the tx payment pallet to be able to override the fee
     mechanism and comply with starknet which uses an ER20 as fee token

    -

    Required Associated Types§

    source

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

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

    -
    source

    type SystemHash: HasherT

    The hashing function to use.

    -
    source

    type TimestampProvider: Time

    The time idk what.

    -
    source

    type UnsignedPriority: Get<TransactionPriority>

    A configuration for base priority of unsigned transactions.

    +

    Required Associated Types§

    source

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

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

    +
    source

    type SystemHash: HasherT

    The hashing function to use.

    +
    source

    type TimestampProvider: Time

    The time idk what.

    +
    source

    type UnsignedPriority: Get<TransactionPriority>

    A configuration for base priority of unsigned transactions.

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

    -
    source

    type TransactionLongevity: Get<TransactionLongevity>

    A configuration for longevity of transactions.

    +
    source

    type TransactionLongevity: Get<TransactionLongevity>

    A configuration for longevity of transactions.

    This is exposed so that it can be tuned for particular runtime to set how long transactions are kept in the mempool.

    -
    source

    type DisableTransactionFee: Get<bool>

    A bool to disable transaction fees and make all transactions free

    -
    source

    type DisableNonceValidation: Get<bool>

    A bool to disable Nonce validation

    -
    source

    type InvokeTxMaxNSteps: Get<u32>

    source

    type ValidateMaxNSteps: Get<u32>

    source

    type ProtocolVersion: Get<u8>

    source

    type ChainId: Get<Felt252Wrapper>

    source

    type MaxRecursionDepth: Get<u32>

    Implementors§

    \ No newline at end of file +

    source

    type DisableTransactionFee: Get<bool>

    A bool to disable transaction fees and make all transactions free

    +
    source

    type DisableNonceValidation: Get<bool>

    A bool to disable Nonce validation

    +
    source

    type InvokeTxMaxNSteps: Get<u32>

    source

    type ValidateMaxNSteps: Get<u32>

    source

    type ProtocolVersion: Get<u8>

    source

    type ChainId: Get<Felt252Wrapper>

    source

    type MaxRecursionDepth: Get<u32>

    Implementors§

    \ No newline at end of file diff --git a/pallet_starknet/pallet/type.Module.html b/pallet_starknet/pallet/type.Module.html index e879305dbb..a4cdf46452 100644 --- a/pallet_starknet/pallet/type.Module.html +++ b/pallet_starknet/pallet/type.Module.html @@ -1,3 +1,3 @@ -Module in pallet_starknet::pallet - Rust

    Type Definition pallet_starknet::pallet::Module

    source ·
    pub type Module<T> = Pallet<T>;
    👎Deprecated: use Pallet instead
    Expand description

    Type alias to Pallet, to be used by construct_runtime.

    +Module in pallet_starknet::pallet - Rust

    Type Definition pallet_starknet::pallet::Module

    source ·
    pub type Module<T> = Pallet<T>;
    👎Deprecated: use Pallet instead
    Expand description

    Type alias to Pallet, to be used by construct_runtime.

    Generated by pallet attribute macro.

    \ No newline at end of file diff --git a/pallet_starknet/pallet/type.SeqAddrUpdate.html b/pallet_starknet/pallet/type.SeqAddrUpdate.html index 87974b1f40..f9c94c8992 100644 --- a/pallet_starknet/pallet/type.SeqAddrUpdate.html +++ b/pallet_starknet/pallet/type.SeqAddrUpdate.html @@ -1,3 +1,3 @@ -SeqAddrUpdate in pallet_starknet::pallet - Rust

    Type Definition pallet_starknet::pallet::SeqAddrUpdate

    source ·
    pub type SeqAddrUpdate<T: Config> = StorageValue<_GeneratedPrefixForStorageSeqAddrUpdate<T>, bool, ValueQuery>;
    Expand description

    Ensure the sequencer address was updated for this block.

    +SeqAddrUpdate in pallet_starknet::pallet - Rust

    Type Definition pallet_starknet::pallet::SeqAddrUpdate

    source ·
    pub type SeqAddrUpdate<T: Config> = StorageValue<_GeneratedPrefixForStorageSeqAddrUpdate<T>, bool, ValueQuery>;
    Expand description

    Ensure the sequencer address was updated for this block.

    Storage type is [StorageValue] with value type bool.

    \ No newline at end of file diff --git a/pallet_starknet/pallet/type.SequencerAddress.html b/pallet_starknet/pallet/type.SequencerAddress.html index 7a6668e7a7..b49ac79dac 100644 --- a/pallet_starknet/pallet/type.SequencerAddress.html +++ b/pallet_starknet/pallet/type.SequencerAddress.html @@ -1,3 +1,3 @@ -SequencerAddress in pallet_starknet::pallet - Rust

    Type Definition pallet_starknet::pallet::SequencerAddress

    source ·
    pub type SequencerAddress<T: Config> = StorageValue<_GeneratedPrefixForStorageSequencerAddress<T>, ContractAddress, ValueQuery>;
    Expand description

    Current sequencer address.

    +SequencerAddress in pallet_starknet::pallet - Rust

    Type Definition pallet_starknet::pallet::SequencerAddress

    source ·
    pub type SequencerAddress<T: Config> = StorageValue<_GeneratedPrefixForStorageSequencerAddress<T>, ContractAddress, ValueQuery>;
    Expand description

    Current sequencer address.

    Storage type is [StorageValue] with value type ContractAddress.

    \ No newline at end of file diff --git a/search-index.js b/search-index.js index 881d809ad9..106e14f4ad 100644 --- a/search-index.js +++ b/search-index.js @@ -10,7 +10,7 @@ var searchIndex = JSON.parse('{\ "mc_rpc_core":{"doc":"Starknet RPC API trait and types","t":"DIDIIIMKKKMKKLLLLKKLLLLLLLLKLLLLLLLLLLKKKKKKKKKKKKKKLLLLLLLLLLLLKLLLLLLLLLLLLKKKLLLLLLLLLLLLLLALLFFFFF","n":["Felt","MadaraRpcApiServer","PredeployedAccountWithBalance","StarknetReadRpcApiServer","StarknetTraceRpcApiServer","StarknetWriteRpcApiServer","account","add_declare_transaction","add_deploy_account_transaction","add_invoke_transaction","balance","block_hash_and_number","block_number","borrow","borrow","borrow_mut","borrow_mut","call","chain_id","deref","deref","deref_mut","deref_mut","deserialize","deserialize","drop","drop","estimate_fee","from","from","from_mut","from_mut","from_mut","from_mut","from_ref","from_ref","from_ref","from_ref","get_block_transaction_count","get_block_with_tx_hashes","get_block_with_txs","get_class","get_class_at","get_class_hash_at","get_events","get_nonce","get_state_update","get_storage_at","get_transaction_by_block_id_and_index","get_transaction_by_hash","get_transaction_receipt","get_transaction_status","init","init","into","into","into_mut","into_mut","into_ref","into_ref","into_rpc","into_rpc","into_rpc","into_rpc","predeployed_accounts","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","serialize","serialize","simulate_transactions","spec_version","syncing","try_from","try_from","try_into","try_into","type_id","type_id","unchecked_into","unchecked_into","unique_saturated_into","unique_saturated_into","upcast","upcast","upcast_mut","upcast_mut","utils","vzip","vzip","casm_contract_class_to_compiled_class","flattened_sierra_to_casm_contract_class","get_block_by_block_hash","get_casm_cotract_class_hash","to_rpc_contract_class"],"q":[[0,"mc_rpc_core"],[97,"mc_rpc_core::utils"]],"d":["","Server trait implementation for the MadaraRpcApi RPC API.","","Server trait implementation for the StarknetReadRpcApi RPC …","Server trait implementation for the StarknetTraceRpcApi …","Server trait implementation for the StarknetWriteRpcApi …","","Submit a new deploy account transaction","Submit a new class declaration transaction","Submit a new transaction to be added to the chain","","Get the most recent accepted block hash and number","Get the most recent accepted block number","","","","","Call a contract function at a given block id","Get the chain id","","","","","","","","","Estimate the fee associated with transaction","Returns the argument unchanged.","Returns the argument unchanged.","Get a mutable reference to the inner from the outer.","","Get a mutable reference to the inner from the outer.","","Get a reference to the inner from the outer.","","","Get a reference to the inner from the outer.","Get the number of transactions in a block given a block id","Get block information with transaction hashes given the …","Get block information with full transactions given the …","Get the contract class definition in the given block …","Get the contract class at a given contract address for a …","Get the contract class hash in the given block for the …","Returns all events matching the given filter","Get the nonce associated with the given address at the …","Get the information about the result of executing the …","Get the value of the storage at the given address and key, …","Get the details of a transaction by a given block id and …","Returns the information about a transaction by transaction …","Returns the receipt of a transaction by transaction hash.","Gets the Transaction Status, Including Mempool Status and …","","","Calls U::from(self).","Calls U::from(self).","","","","","Collects all the methods and subscriptions defined in the …","Collects all the methods and subscriptions defined in the …","Collects all the methods and subscriptions defined in the …","Collects all the methods and subscriptions defined in the …","","","","","","","","","","","","","","Returns the execution trace of a transaction by simulating …","Get the Version of the StarkNet JSON-RPC Specification …","Get an object about the sync status, or false if the node …","","","","","","","","","","","","","","","","","","Converts a CasmContractClass to a CompiledClass","Converts a FlattenedSierraClass to a CasmContractClass","Returns the current Starknet block from the block header’…","","Returns a ContractClass from a BlockifierContractClass"],"i":[0,0,0,0,0,0,18,45,45,45,18,46,46,14,18,14,18,46,46,14,18,14,18,14,18,14,18,46,14,18,14,14,18,18,14,14,18,18,46,46,46,46,46,46,46,46,46,46,46,46,46,46,14,18,14,18,14,18,14,18,47,45,46,48,47,14,14,14,14,14,18,18,18,18,18,14,18,48,46,46,14,18,14,18,14,18,14,18,14,18,14,18,14,18,0,14,18,0,0,0,0,0],"f":[0,0,0,0,0,0,0,[1,[[4,[[3,[2]]]]]],[5,[[4,[[3,[2]]]]]],[6,[[4,[[3,[2]]]]]],0,[[],[[8,[7]]]],[[],[[8,[9]]]],[[]],[[]],[[]],[[]],[[10,11],[[8,[[13,[12]]]]]],[[],[[8,[14]]]],[15],[15],[15],[15],[16,[[17,[14]]]],[16,[[17,[18]]]],[15],[15],[[[13,[19]],11],[[4,[[3,[2]]]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[11,[[8,[20]]]],[11,[[8,[21]]]],[11,[[8,[22]]]],[[11,23],[[8,[24]]]],[[11,23],[[8,[24]]]],[[11,23],[[8,[14]]]],[25,[[4,[[3,[2]]]]]],[[11,23],[[8,[14]]]],[11,[[8,[26]]]],[[23,23,11],[[8,[14]]]],[[11,9],[[8,[27]]]],[23,[[8,[27]]]],[23,[[4,[[3,[2]]]]]],[23,[[8,[28]]]],[[],15],[[],15],[[]],[[]],[[]],[[]],[[]],[[]],[[],29],[[],29],[[],29],[[],29],[[],[[8,[[13,[18]]]]]],[30,[[17,[30]]]],[[],17],[[[3,[31]]],[[17,[[3,[31]]]]]],[17,[[17,[17]]]],[[[13,[31]]],[[17,[[13,[31]]]]]],[[[3,[31]]],[[17,[[3,[31]]]]]],[30,[[17,[30]]]],[[[13,[31]]],[[17,[[13,[31]]]]]],[[],17],[17,[[17,[17]]]],[[14,32],17],[[18,32],17],[[11,[13,[19]],[13,[33]]],[[4,[[3,[2]]]]]],[[],[[8,[12]]]],[[],[[4,[[3,[2]]]]]],[[],17],[[],17],[[],17],[[],17],[[],34],[[],34],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,[[]],[[]],[35,36],[[[38,[37]]],[[40,[35,39]]]],[[[42,[41]]],[[30,[43]]]],[35,23],[44,[[40,[24]]]]],"c":[],"p":[[4,"BroadcastedDeclareTransaction"],[8,"Future"],[3,"Box"],[3,"Pin"],[3,"BroadcastedDeployAccountTransaction"],[3,"BroadcastedInvokeTransaction"],[3,"BlockHashAndNumber"],[6,"RpcResult"],[15,"u64"],[3,"FunctionCall"],[4,"BlockId"],[3,"String"],[3,"Vec"],[3,"Felt"],[15,"usize"],[8,"Deserializer"],[4,"Result"],[3,"PredeployedAccountWithBalance"],[4,"BroadcastedTransaction"],[15,"u128"],[4,"MaybePendingBlockWithTxHashes"],[4,"MaybePendingBlockWithTxs"],[3,"FieldElement"],[4,"ContractClass"],[3,"EventFilterWithPage"],[3,"StateUpdate"],[4,"Transaction"],[3,"TransactionStatus"],[3,"RpcModule"],[4,"Option"],[3,"Global"],[8,"Serializer"],[4,"SimulationFlag"],[3,"TypeId"],[3,"CasmContractClass"],[3,"CompiledClass"],[3,"FlattenedSierraClass"],[3,"Arc"],[4,"StarknetSierraCompilationError"],[6,"Result"],[8,"Block"],[8,"HeaderBackend"],[3,"Block"],[4,"ContractClass"],[8,"StarknetWriteRpcApiServer"],[8,"StarknetReadRpcApiServer"],[8,"MadaraRpcApiServer"],[8,"StarknetTraceRpcApiServer"]]},\ "mc_storage":{"doc":"Storage overrides readers","t":"DDDILLLLLLKLLKLLKLLLLLLLLLLLMLLLLLLLLLLLLLLLLLKLLLLLLLLLLLLLLLLKLLFFLLLLLLLLLLLLLLLMLLLLLLLLLLLLLLLLLLLLLLLL","n":["OverrideHandle","RuntimeApiStorageOverride","SchemaV1Override","StorageOverride","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","contract_class_by_address","contract_class_by_address","contract_class_by_address","contract_class_by_class_hash","contract_class_by_class_hash","contract_class_by_class_hash","contract_class_hash_by_address","contract_class_hash_by_address","contract_class_hash_by_address","deref","deref","deref","deref_mut","deref_mut","deref_mut","drop","drop","drop","fallback","for_block_hash","for_schema_version","from","from","from","from_mut","from_mut","from_mut","from_mut","from_mut","from_mut","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","get_storage_by_storage_key","get_storage_by_storage_key","get_storage_by_storage_key","init","init","init","into","into","into","into_mut","into_mut","into_mut","into_ref","into_ref","into_ref","new","new","nonce","nonce","nonce","onchain_storage_schema","overrides_handle","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","schemas","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","unchecked_into","unchecked_into","unchecked_into","unique_saturated_into","unique_saturated_into","unique_saturated_into","upcast","upcast","upcast","upcast_mut","upcast_mut","upcast_mut","vzip","vzip","vzip"],"q":[[0,"mc_storage"]],"d":["A handle containing multiple entities implementing …","A wrapper type for the Runtime API.","An override for runtimes that use Schema V1","Something that can fetch Starknet-related data. This trait …","","","","","","","Return the contract class at the provided address for the …","","","Return the contract class for a provided class_hash and …","","Return the contract class for a provided class_hash and …","Return the class hash at the provided address for the …","","","","","","","","","","","","A non-failing way to retrieve the storage data","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Get a mutable reference to the inner from the outer.","","Get a mutable reference to the inner from the outer.","Get a mutable reference to the inner from the outer.","","Get a reference to the inner from the outer.","","Get a reference to the inner from the outer.","","Get a reference to the inner from the outer.","","get storage","","","","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","","","","Returns the nonce for a provided contract address and …","","Return the nonce for a provided contract address and block …","Retrieve the current pallet-starknet storage schema version","Create and return a handle of the starknet schema overrides","","","","","","","","","","","","","","","","Contains one implementation of StorageOverride by version …","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,8,15,12,8,15,12,16,8,12,16,8,12,16,8,12,8,15,12,8,15,12,8,15,12,15,15,15,8,15,12,8,8,15,15,12,12,8,8,15,15,12,12,16,8,12,8,15,12,8,15,12,8,15,12,8,15,12,8,12,16,8,12,0,0,8,8,8,8,8,15,15,15,15,15,12,12,12,12,12,15,8,15,12,8,15,12,8,15,12,8,15,12,8,15,12,8,15,12,8,15,12,8,15,12],"f":[0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[1,[[3,[2]]]],[[[8,[4,[0,[[5,[4]],[7,[4,[6,[4]]]]]],[6,[4]]]],1],[[3,[2]]]],[[[12,[4,[0,[[9,[4]],10,11]]]],1],[[3,[2]]]],[13,[[3,[2]]]],[[[8,[4,[0,[[5,[4]],[7,[4,[6,[4]]]]]],[6,[4]]]],13],[[3,[2]]]],[[[12,[4,[0,[[9,[4]],10,11]]]],13],[[3,[2]]]],[1,[[3,[13]]]],[[[8,[4,[0,[[5,[4]],[7,[4,[6,[4]]]]]],[6,[4]]]],1],[[3,[13]]]],[[[12,[4,[0,[[9,[4]],10,11]]]],1],[[3,[13]]]],[14],[14],[14],[14],[14],[14],[14],[14],[14],0,[[[15,[4]],[0,[[5,[4]],[7,[4,[6,[4]]]]]]],[[17,[16]]]],[[[15,[4]],18],[[17,[16]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[1,19],[[3,[20]]]],[[[8,[4,[0,[[5,[4]],[7,[4,[6,[4]]]]]],[6,[4]]]],1,19],[[3,[20]]]],[[[12,[4,[0,[[9,[4]],10,11]]]],1,19],[[3,[20]]]],[[],14],[[],14],[[],14],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[21,[[8,[4]]]],[21,[[12,[4]]]],[1,[[3,[22]]]],[[[8,[4,[0,[[5,[4]],[7,[4,[6,[4]]]]]],[6,[4]]]],1],[[3,[22]]]],[[[12,[4,[0,[[9,[4]],10,11]]]],1],[[3,[22]]]],[[[0,[[5,[4]],[7,[4,[6,[4]]]]]]],18],[[[21,[[0,[[9,[4]],[5,[4]],[7,[4,[6,[4]]]]]]]]],[[21,[[15,[4]]]]]],[[[17,[23]]],[[24,[[17,[23]]]]]],[[],24],[3,[[24,[3]]]],[[[25,[23]]],[[24,[[25,[23]]]]]],[24,[[24,[24]]]],[24,[[24,[24]]]],[[[17,[23]]],[[24,[[17,[23]]]]]],[[],24],[[[25,[23]]],[[24,[[25,[23]]]]]],[3,[[24,[3]]]],[24,[[24,[24]]]],[[[17,[23]]],[[24,[[17,[23]]]]]],[3,[[24,[3]]]],[[[25,[23]]],[[24,[[25,[23]]]]]],[[],24],0,[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],26],[[],26],[[],26],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]]],"c":[],"p":[[3,"ContractAddress"],[4,"ContractClass"],[4,"Option"],[8,"Block"],[8,"HeaderBackend"],[8,"Backend"],[8,"StorageProvider"],[3,"SchemaV1Override"],[8,"ProvideRuntimeApi"],[8,"Send"],[8,"Sync"],[3,"RuntimeApiStorageOverride"],[3,"ClassHash"],[15,"usize"],[3,"OverrideHandle"],[8,"StorageOverride"],[3,"Box"],[4,"StarknetStorageSchemaVersion"],[3,"StorageKey"],[3,"StarkFelt"],[3,"Arc"],[3,"Nonce"],[3,"Global"],[4,"Result"],[3,"Vec"],[3,"TypeId"]]},\ "mp_block":{"doc":"Starknet block primitives.","t":"DGDLLMMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMLLLLLLLLMLLLLLLLLLMMLLLLLLLLLLMLLLLLLMMLLLLLLLLLLLLLLLLLL","n":["Block","BlockTransactions","Header","__clone_box","__clone_box","block_number","block_timestamp","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","decode","decode","decode_all","decode_all","decode_all_with_depth_limit","decode_all_with_depth_limit","decode_with_depth_limit","decode_with_depth_limit","default","default","deref","deref","deref_mut","deref_mut","drop","drop","encode_to","encode_to","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","event_commitment","event_count","extra_data","fmt","fmt","from","from","from_mut","from_mut","from_ref","from_ref","global_state_root","hash","header","init","init","into","into","into_block_context","new","new","parent_block_hash","protocol_version","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","sequencer_address","size_hint","size_hint","to_keyed_vec","to_keyed_vec","to_owned","to_owned","transaction_commitment","transaction_count","transactions","transactions_hashes","try_from","try_from","try_into","try_into","type_id","type_id","unchecked_into","unchecked_into","unique_saturated_into","unique_saturated_into","upcast","upcast","upcast_mut","upcast_mut","vzip","vzip"],"q":[[0,"mp_block"]],"d":["Starknet block definition.","Block Transactions","Starknet header definition.","","","The number (height) of this block.","The time the sequencer created this block before executing …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A commitment to the events produced in this block","The number of events","Extraneous data that might be useful for running …","","","Returns the argument unchanged.","Returns the argument unchanged.","Get a mutable reference to the inner from the outer.","Get a mutable reference to the inner from the outer.","Get a reference to the inner from the outer.","Get a reference to the inner from the outer.","The state commitment after this block.","Compute the hash of the header.","Return a reference to the block header","","","Calls U::from(self).","Calls U::from(self).","Converts to a blockifier BlockContext","Creates a new header.","Creates a new block.","The hash of this block’s parent.","The version of the Starknet protocol used when creating …","","","","","","","","","","","The Starknet address of the sequencer who created this …","","","","","","","A commitment to the transactions included in the block","The number of transactions in a block","Return a reference to all transactions","Returns an iterator that iterates over all transaction …","","","","","","","","","","","","","","","",""],"i":[0,0,0,2,3,2,2,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,2,2,2,2,2,3,3,3,3,3,3,2,2,2,2,3,2,3,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,2,2,2,2,2,2,3,3,3,3,3,2,2,3,2,3,2,3,2,2,3,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3],"f":[0,0,0,[1],[1],0,0,[[]],[[]],[[]],[[]],[2,2],[3,3],[[]],[[]],[4,[[6,[2,5]]]],[4,[[6,[3,5]]]],[[[8,[7]]],[[6,[5]]]],[[[8,[7]]],[[6,[5]]]],[[9,[8,[7]]],[[6,[5]]]],[[9,[8,[7]]],[[6,[5]]]],[[9,4],[[6,[5]]]],[[9,4],[[6,[5]]]],[[],2],[[],3],[10],[10],[10],[10],[10],[10],[[2,[0,[11,12]]]],[[3,[0,[11,12]]]],[[2,2],13],[[3,3],13],[[],13],[[],13],[[],13],[[],13],[[],13],[[],13],[[],13],[[],13],[[],13],[[],13],[[],13],[[],13],0,0,0,[[2,14],15],[[3,14],15],[[]],[[]],[[]],[[]],[[]],[[]],0,[2,16],[3,2],[[],10],[[],10],[[]],[[]],[[2,17,18],19],[[20,21,20,17,21,22,20,22,20,7,[24,[23]]],2],[[2,25],3],0,0,[[[27,[26]]],[[6,[[27,[26]]]]]],[6,[[6,[6]]]],[[],6],[[[28,[26]]],[[6,[[28,[26]]]]]],[24,[[6,[24]]]],[[],6],[[[27,[26]]],[[6,[[27,[26]]]]]],[24,[[6,[24]]]],[[[28,[26]]],[[6,[[28,[26]]]]]],[6,[[6,[6]]]],0,[2,10],[3,10],[[[8,[7]]],[[28,[7,26]]]],[[[8,[7]]],[[28,[7,26]]]],[[]],[[]],0,0,[3,25],[[3,16],29],[[],6],[[],6],[[],6],[[],6],[[],30],[[],30],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]]],"c":[],"p":[[3,"Private"],[3,"Header"],[3,"Block"],[8,"Input"],[3,"Error"],[4,"Result"],[15,"u8"],[15,"slice"],[15,"u32"],[15,"usize"],[8,"Output"],[8,"Sized"],[15,"bool"],[3,"Formatter"],[6,"Result"],[3,"Felt252Wrapper"],[3,"ContractAddress"],[3,"ChainId"],[3,"BlockContext"],[6,"StarkHash"],[15,"u64"],[15,"u128"],[3,"U256"],[4,"Option"],[6,"BlockTransactions"],[3,"Global"],[3,"Box"],[3,"Vec"],[8,"Iterator"],[3,"TypeId"]]},\ -"mp_chain_id":{"doc":"Traits for chain ids.","t":"RR","n":["SN_GOERLI_CHAIN_ID","SN_MAIN_CHAIN_ID"],"q":[[0,"mp_chain_id"]],"d":["ChainId for Starknet Goerli testnet","ChainId for Starknet Mainnet"],"i":[0,0],"f":[0,0],"c":[],"p":[]},\ +"mp_chain_id":{"doc":"Traits for chain ids.","t":"RRR","n":["MADARA_CHAIN_ID","SN_GOERLI_CHAIN_ID","SN_MAIN_CHAIN_ID"],"q":[[0,"mp_chain_id"]],"d":["ChainId for a custom Madara chain","ChainId for Starknet Goerli testnet","ChainId for Starknet Mainnet"],"i":[0,0,0],"f":[0,0,0],"c":[],"p":[]},\ "mp_commitments":{"doc":"","t":"GDLLLFFFFFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL","n":["ClassCommitmentLeafHash","StateCommitmentTree","__clone_box","borrow","borrow_mut","calculate_class_commitment_leaf_hash","calculate_class_commitment_tree_root_hash","calculate_commitments","calculate_contract_state_hash","calculate_event_hash","clone","clone_into","commit","default","deref","deref_mut","drop","eq","fmt","from","from_mut","from_ref","get","get_proof","init","into","nodes","rewrite","rewrite","rewrite","rewrite","rewrite","set","to_owned","try_from","try_into","type_id","unchecked_into","unique_saturated_into","upcast","upcast_mut","vzip"],"q":[[0,"mp_commitments"]],"d":["Hash of the leaf of the ClassCommitment tree","A Patricia Merkle tree with height 251 used to compute …","","","","Calculate class commitment tree leaf hash value.","Calculate class commitment tree root hash value.","Calculate the transaction commitment, the event commitment …","Calculates the contract state hash from its preimage.","Calculate the hash of an event.","","","Get the merkle root of the tree.","","","","","","","Returns the argument unchanged.","Get a mutable reference to the inner from the outer.","Get a reference to the inner from the outer.","Returns a leaf of the tree stored at key key","Generates a proof for key. See MerkleTree::get_proof.","","Calls U::from(self).","Returns the tree’s nodes","","","","","","Sets the value of a key in the merkle tree.","","","","","","","","",""],"i":[0,0,10,10,10,0,0,0,0,0,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10],"f":[0,0,[1],[[]],[[]],[2,3],[[[4,[2]]],2],[[[4,[5]],[4,[6]],2]],[[2,2,2],2],[6,7],[[[10,[[0,[8,9]]]]],[[10,[[0,[8,9]]]]]],[[]],[[[10,[9]]],2],[[],[[10,[9]]]],[11],[11],[11],[[[10,[[0,[12,9]]]],[10,[[0,[12,9]]]]],13],[[[10,[[0,[14,9]]]],15],16],[[]],[[]],[[]],[[[10,[9]],2],[[17,[2]]]],[[[10,[9]],2],[[18,[0]]]],[[],11],[[]],0,[[],19],[[[21,[20]]],[[19,[[21,[20]]]]]],[17,[[19,[17]]]],[[[18,[20]]],[[19,[[18,[20]]]]]],[19,[[19,[19]]]],[[[10,[9]],2,2]],[[]],[[],19],[[],19],[[],22],[[]],[[]],[[]],[[]],[[]]],"c":[],"p":[[3,"Private"],[3,"Felt252Wrapper"],[6,"ClassCommitmentLeafHash"],[15,"slice"],[4,"Transaction"],[3,"Event"],[3,"FieldElement"],[8,"Clone"],[8,"HasherT"],[3,"StateCommitmentTree"],[15,"usize"],[8,"PartialEq"],[15,"bool"],[8,"Debug"],[3,"Formatter"],[6,"Result"],[4,"Option"],[3,"Vec"],[4,"Result"],[3,"Global"],[3,"Box"],[3,"TypeId"]]},\ "mp_digest_log":{"doc":"Utility to read the Starknet block form the Substrate …","t":"NEERNNLLLLLLLLLLLLLLLLLLLLLFLLLLLLLFFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL","n":["Block","FindLogError","Log","MADARA_ENGINE_ID","MultipleLogs","NotLog","__clone_box","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","decode","decode_all","decode_all_with_depth_limit","decode_with_depth_limit","deref","deref","deref_mut","deref_mut","drop","drop","encode_to","ensure_log","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","find_log","find_starknet_block","fmt","fmt","fmt","from","from","from_mut","from_mut","from_ref","from_ref","init","init","into","into","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","rewrite","size_hint","to_keyed_vec","to_owned","to_owned","to_string","try_from","try_from","try_into","try_into","type_id","type_id","unchecked_into","unchecked_into","unique_saturated_into","unique_saturated_into","upcast","upcast","upcast_mut","upcast_mut","vzip","vzip"],"q":[[0,"mp_digest_log"]],"d":["","Error that may occur while searching a Madara [Log] in the …","A Madara log","","There was multiple Madara [Log] in the [Digest]","There was no Madara [Log] in the [Digest]","","","","","","","","","","","","","","","","","","","","","","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 …","","","","Returns the argument unchanged.","Returns the argument unchanged.","Get a mutable reference to the inner from the outer.","Get a mutable reference to the inner from the outer.","Get a reference to the inner from the outer.","Get a reference to the inner from the outer.","","","Calls U::from(self).","Calls U::from(self).","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[3,0,0,0,2,2,2,3,2,3,2,3,2,3,2,3,3,3,3,3,2,3,2,3,2,3,3,0,3,3,3,3,3,3,3,0,0,2,2,3,2,3,2,3,2,3,2,3,2,3,2,2,2,2,2,3,3,3,3,3,3,3,2,3,2,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3],"f":[0,0,0,0,0,0,[1],[1],[[]],[[]],[[]],[[]],[2,2],[3,3],[[]],[[]],[4,[[6,[3,5]]]],[[[8,[7]]],[[6,[5]]]],[[9,[8,[7]]],[[6,[5]]]],[[9,4],[[6,[5]]]],[10],[10],[10],[10],[10],[10],[[3,[0,[11,12]]]],[13,[[6,[2]]]],[[3,3],14],[[],14],[[],14],[[],14],[[],14],[[],14],[[],14],[13,[[6,[3,2]]]],[13,[[6,[15,2]]]],[[2,16],17],[[2,16],17],[[3,16],17],[[]],[[]],[[]],[[]],[[]],[[]],[[],10],[[],10],[[]],[[]],[18,[[6,[18]]]],[6,[[6,[6]]]],[[],6],[[[20,[19]]],[[6,[[20,[19]]]]]],[[[21,[19]]],[[6,[[21,[19]]]]]],[[[21,[19]]],[[6,[[21,[19]]]]]],[18,[[6,[18]]]],[[[20,[19]]],[[6,[[20,[19]]]]]],[[],6],[6,[[6,[6]]]],[3,10],[[[8,[7]]],[[20,[7,19]]]],[[]],[[]],[[],22],[[],6],[[],6],[[],6],[[],6],[[],23],[[],23],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]]],"c":[],"p":[[3,"Private"],[4,"FindLogError"],[4,"Log"],[8,"Input"],[3,"Error"],[4,"Result"],[15,"u8"],[15,"slice"],[15,"u32"],[15,"usize"],[8,"Output"],[8,"Sized"],[3,"Digest"],[15,"bool"],[3,"Block"],[3,"Formatter"],[6,"Result"],[4,"Option"],[3,"Global"],[3,"Vec"],[3,"Box"],[3,"String"],[3,"TypeId"]]},\ "mp_fee":{"doc":"Starknet fee logic","t":"RRRRRHFFFFF","n":["FEE_TRANSFER_N_STORAGE_CHANGES","FEE_TRANSFER_N_STORAGE_CHANGES_TO_CHARGE","INITIAL_GAS","TRANSFER_SELECTOR_HASH","TRANSFER_SELECTOR_NAME","VM_RESOURCE_FEE_COSTS","calculate_l1_gas_by_vm_usage","calculate_tx_fee","charge_fee","compute_transaction_resources","extract_l1_gas_and_vm_usage"],"q":[[0,"mp_fee"]],"d":["Number of storage updates for the fee transfer tx.","Number of storage updates to actually charge for the fee …","Initial gas for a transaction","","","","Calculates the L1 gas consumed when submitting the …","Computes the fees from the execution resources.","Charges the fees for a specific execution resources.","Gets the transaction resources.","Computes the fees for l1 gas usage and the vm usage from …"],"i":[0,0,0,0,0,0,0,0,0,0,0],"f":[0,0,0,0,0,0,[[1,2],[[4,[3]]]],[[2,1],[[4,[5]]]],[[[0,[6,7]],1,8,2,9,9],4],[[[0,[6,7]],[11,[10]],[11,[10]],12,13,[11,[14]]],[[4,[2]]]],[2]],"c":[],"p":[[3,"BlockContext"],[3,"ResourcesMapping"],[3,"FixedU128"],[6,"TransactionExecutionResult"],[3,"Fee"],[8,"State"],[8,"StateChanges"],[3,"AccountTransactionContext"],[15,"bool"],[3,"CallInfo"],[4,"Option"],[3,"ExecutionResources"],[4,"TransactionType"],[15,"usize"]]},\ diff --git a/settings.html b/settings.html index 1a4e65f46c..dbc0883c12 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file +Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file diff --git a/src/mc_rpc/lib.rs.html b/src/mc_rpc/lib.rs.html index d67e02ca0e..77599a2e4f 100644 --- a/src/mc_rpc/lib.rs.html +++ b/src/mc_rpc/lib.rs.html @@ -1641,6 +1641,7 @@ 1641 1642 1643 +1644
    //! Starknet RPC server API implementation
     //!
     //! It uses the madara client and backend in order to answer queries.
    @@ -2623,7 +2624,8 @@
     
             let estimates = fee_estimates
                 .into_iter()
    -            .map(|x| FeeEstimate { gas_price: 0, gas_consumed: x.1, overall_fee: x.0 })
    +			// FIXME: https://github.com/keep-starknet-strange/madara/issues/329
    +            .map(|x| FeeEstimate { gas_price: 10, gas_consumed: x.1, overall_fee: x.0 })
                 .collect();
     
             Ok(estimates)
    diff --git a/src/mp_chain_id/lib.rs.html b/src/mp_chain_id/lib.rs.html
    index 8ae1e4dde4..1915ab3b7d 100644
    --- a/src/mp_chain_id/lib.rs.html
    +++ b/src/mp_chain_id/lib.rs.html
    @@ -21,6 +21,14 @@
     21
     22
     23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
     
    //! Traits for chain ids.
     #![cfg_attr(not(feature = "std"), no_std)]
     
    @@ -42,6 +50,14 @@
         502562008147966918,
     ]));
     
    +/// ChainId for a custom Madara chain
    +pub const MADARA_CHAIN_ID: Felt252Wrapper = Felt252Wrapper(starknet_ff::FieldElement::from_mont([
    +    18444025906882525153,
    +    18446744073709551615,
    +    18446744073709551615,
    +    530251916243973616,
    +]));
    +
     #[cfg(test)]
     mod tests;
     
    \ No newline at end of file diff --git a/src/pallet_starknet/lib.rs.html b/src/pallet_starknet/lib.rs.html index 34b7873c7b..59c949da56 100644 --- a/src/pallet_starknet/lib.rs.html +++ b/src/pallet_starknet/lib.rs.html @@ -1233,6 +1233,19 @@ 1233 1234 1235 +1236 +1237 +1238 +1239 +1240 +1241 +1242 +1243 +1244 +1245 +1246 +1247 +1248
    //! A Substrate pallet implementation for Starknet, a decentralized, permissionless, and scalable
     //! zk-rollup for general-purpose smart contracts.
     //! See the [Starknet documentation](https://docs.starknet.io/) for more information.
    @@ -1312,6 +1325,7 @@
     use blockifier::block_context::BlockContext;
     use blockifier::execution::contract_class::ContractClass;
     use blockifier::execution::entry_point::{CallInfo, ExecutionResources};
    +use blockifier::execution::errors::{EntryPointExecutionError, PreExecutionError};
     use blockifier_state_adapter::BlockifierStateAdapter;
     use frame_support::pallet_prelude::*;
     use frame_support::traits::Time;
    @@ -1365,6 +1379,7 @@
     
     #[frame_support::pallet]
     pub mod pallet {
    +    use blockifier::transaction::errors::TransactionExecutionError;
     
         use super::*;
     
    @@ -2010,25 +2025,36 @@
     
                 // Validate the user transactions
                 if let UserAndL1HandlerTransaction::User(transaction) = transaction {
    -                match transaction {
    -                    UserTransaction::Declare(tx, contract_class) => tx
    -                        .try_into_executable::<T::SystemHash>(chain_id, contract_class, false)
    -                        .map_err(|_| InvalidTransaction::BadProof)?
    -                        .validate_tx(&mut state, &block_context, &mut execution_resources, &mut initial_gas, false),
    -                    // There is no way to validate it before the account is actuallly deployed
    -                    UserTransaction::DeployAccount(_) => Ok(None),
    -                    UserTransaction::Invoke(tx) => tx.into_executable::<T::SystemHash>(chain_id, false).validate_tx(
    -                        &mut state,
    -                        &block_context,
    -                        &mut execution_resources,
    -                        &mut initial_gas,
    -                        false,
    -                    ),
    -                }
    -                .map_err(|e| {
    -                    log::error!("failed to validate tx: {}", e);
    -                    InvalidTransaction::BadProof
    -                })?;
    +                let validate_result =
    +                    match transaction {
    +                        UserTransaction::Declare(tx, contract_class) => tx
    +                            .try_into_executable::<T::SystemHash>(chain_id, contract_class, false)
    +                            .map_err(|_| InvalidTransaction::BadProof)?
    +                            .validate_tx(&mut state, &block_context, &mut execution_resources, &mut initial_gas, false),
    +                        // There is no way to validate it before the account is actually deployed
    +                        UserTransaction::DeployAccount(_) => Ok(None),
    +                        UserTransaction::Invoke(tx) => tx
    +                            .into_executable::<T::SystemHash>(chain_id, false)
    +                            .validate_tx(&mut state, &block_context, &mut execution_resources, &mut initial_gas, false),
    +                    };
    +                match validate_result {
    +                    Ok(_) => {}
    +                    Err(TransactionExecutionError::ValidateTransactionError(
    +                        EntryPointExecutionError::PreExecutionError(PreExecutionError::UninitializedStorageAddress(
    +                            contract_address,
    +                        )),
    +                    )) => {
    +                        // If the the txn is failing because the account isn't deployed yet
    +                        // then don't throw an error and add a `require` tag for transaction
    +                        // of nonce 0 to be executed first.
    +                        if contract_address.0.0 != sender_address.into()
    +                            || transaction_nonce != Some(Felt252Wrapper::ONE)
    +                        {
    +                            Err(InvalidTransaction::BadProof)?
    +                        }
    +                    }
    +                    Err(_) => Err(InvalidTransaction::BadProof)?,
    +                };
                 }
     
                 let nonce_for_priority: u64 = transaction_nonce