Skip to content

Commit

Permalink
individual parameters for simulate_transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
greged93 committed Mar 12, 2024
1 parent ab66e15 commit 7edf633
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions crates/katana/rpc/rpc-api/src/starknet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ use katana_rpc_types::block::{
use katana_rpc_types::event::{EventFilterWithPage, EventsPage};
use katana_rpc_types::message::MsgFromL1;
use katana_rpc_types::receipt::MaybePendingTxReceipt;
use katana_rpc_types::simulation::SimulateTransactionsRequest;
use katana_rpc_types::state_update::StateUpdate;
use katana_rpc_types::transaction::{
BroadcastedDeclareTx, BroadcastedDeployAccountTx, BroadcastedInvokeTx, BroadcastedTx,
DeclareTxResult, DeployAccountTxResult, InvokeTxResult, Tx,
};
use katana_rpc_types::{
ContractClass, FeeEstimate, FeltAsHex, FunctionCall, SimulationFlagForEstimateFee,
SyncingStatus,
ContractClass, FeeEstimate, FeltAsHex, FunctionCall, SimulationFlag,
SimulationFlagForEstimateFee, SyncingStatus,
};
use starknet::core::types::{SimulatedTransaction, TransactionStatus};

Expand Down Expand Up @@ -191,6 +190,8 @@ pub trait StarknetApi {
#[method(name = "simulateTransactions")]
async fn simulate_transactions(
&self,
request: SimulateTransactionsRequest,
block_id: BlockIdOrTag,
transactions: Vec<BroadcastedTx>,
simulation_flags: Vec<SimulationFlag>,
) -> RpcResult<Vec<SimulatedTransaction>>;
}

0 comments on commit 7edf633

Please sign in to comment.