Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
feat : refactor and removed unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun Jangra authored and Arun Jangra committed Jun 20, 2024
1 parent ea34185 commit 54033cf
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 83 deletions.
61 changes: 0 additions & 61 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/client/rpc-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pub trait MadaraRpcApi: StarknetReadRpcApi {
#[method(name = "predeployedAccounts")]
fn predeployed_accounts(&self) -> RpcResult<Vec<PredeployedAccountWithBalance>>;

/// Submit a declare transaction for cairo 0 contract to be initialised with given address.
#[method(name = "addDeclareTransactionV0")]
async fn add_declare_transaction_v0(
&self,
Expand Down
2 changes: 0 additions & 2 deletions crates/client/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ sc-network-sync = { workspace = true }
# Starknet
blockifier = { workspace = true }
cairo-vm = { workspace = true }
indexmap = { workspace = true }
jsonrpsee = { workspace = true, features = ["server", "macros"] }
log = { workspace = true }
mp-block = { workspace = true }
Expand All @@ -46,7 +45,6 @@ mp-hashers = { workspace = true }
mp-simulations = { workspace = true }
mp-transactions = { workspace = true, features = ["client"] }
serde = { workspace = true }
serde_json = { workspace = true }
starknet-core = { workspace = true }
starknet-ff = { workspace = true }
starknet_api = { workspace = true }
Expand Down
4 changes: 0 additions & 4 deletions crates/client/starknet-block-import/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,15 @@ sp-runtime = { workspace = true }

# Substrate client dependencies
sc-consensus = { workspace = true }
sc-rpc-api = { workspace = true }

# Starknet
blockifier = { workspace = true }
cairo-lang-starknet = { workspace = true }
cairo-lang-starknet-classes = { workspace = true }
cairo-lang-utils = { workspace = true }
cairo-vm = { workspace = true }
hex = { workspace = true }
madara-runtime = { workspace = true }
mc-db = { workspace = true }
mc-rpc = { workspace = true }
pallet-starknet = { workspace = true }
pallet-starknet-runtime-api = { workspace = true }
starknet-core = { workspace = true }
starknet_api = { workspace = true, features = [
Expand Down
4 changes: 0 additions & 4 deletions crates/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ async-trait = "0.1"
clap = { workspace = true, features = ["derive"] }
futures = { workspace = true, features = ["thread-pool"] }
log = { workspace = true }
num-bigint = { workspace = true }
serde = { workspace = true }
sha3 = { workspace = true }
thiserror = { workspace = true }

frame-system = { workspace = true }
sc-basic-authorship = { workspace = true }
Expand All @@ -46,7 +44,6 @@ sc-service = { workspace = true }
sc-telemetry = { workspace = true }
sc-transaction-pool = { workspace = true }
sc-transaction-pool-api = { workspace = true }
sp-consensus = { workspace = true }
sp-consensus-aura = { workspace = true }
sp-consensus-grandpa = { workspace = true }
sp-core = { workspace = true }
Expand Down Expand Up @@ -77,7 +74,6 @@ substrate-frame-rpc-system = { workspace = true }
frame-benchmarking = { workspace = true }
frame-benchmarking-cli = { workspace = true }
madara-runtime = { workspace = true, features = ["std"] }
mc-commitment-state-diff = { workspace = true }
mc-db = { workspace = true }
mc-eth-client = { workspace = true }
mc-l1-gas-price = { workspace = true }
Expand Down
3 changes: 0 additions & 3 deletions crates/pallets/starknet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,8 @@ cairo-lang-starknet-classes = { workspace = true, optional = true }
[dev-dependencies]
pallet-timestamp = { workspace = true }
pretty_assertions = { workspace = true }
test-case = "3.1.0"
lazy_static = "1.4.0"
hexlit = "0.5.5"
assert_matches = "1.5.0"
starknet-ff = { workspace = true }
project-root = "0.2.2"

[features]
Expand Down
3 changes: 0 additions & 3 deletions crates/pallets/starknet/runtime_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,4 @@ blockifier = { workspace = true }
starknet_api = { workspace = true }

# Substrate
parity-scale-codec = { workspace = true, features = ["derive"] }
scale-info = { workspace = true, features = ["derive"] }
sp-api = { workspace = true }
sp-runtime = { workspace = true }
1 change: 1 addition & 0 deletions crates/pallets/starknet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ pub mod pallet {
let transaction = Self::convert_runtime_calls_to_starknet_transaction(call.clone())
.map_err(|_| InvalidTransaction::Call)?;

// Version 0 transaction does not have any nonce or validation rules.
match transaction {
Transaction::AccountTransaction(AccountTransaction::Declare(DeclareTransaction { tx, .. }))
if tx.version() == TransactionVersion::ZERO =>
Expand Down
1 change: 0 additions & 1 deletion crates/primitives/simulations/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
blockifier = { workspace = true }
starknet-core = { workspace = true }
starknet_api = { workspace = true }

# Optional dependencies
parity-scale-codec = { workspace = true, optional = true }
Expand Down
1 change: 0 additions & 1 deletion crates/primitives/snos-output/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ starknet_api = { workspace = true }

[dev-dependencies]
pretty_assertions = { workspace = true }
assert_matches = "1.5.0"
hex = "*"

[features]
Expand Down
4 changes: 0 additions & 4 deletions starknet-rpc-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ anyhow = "1.0.80"
assert_matches = "1.5.0"
async-lock = "3.1.0"
async-trait = { workspace = true }
blockifier = { workspace = true }
env_logger = "0.9"
flate2 = { workspace = true }
indexmap = { workspace = true }
mp-transactions = { workspace = true, features = ["serde"] }
parity-scale-codec = { workspace = true }
reqwest = { version = "0.11.22", features = ["json"] }
rstest = "0.18.1"
serde = "1.0.192"
Expand All @@ -27,7 +24,6 @@ starknet-ff = { workspace = true }
starknet-providers = { workspace = true }
starknet-signers = { workspace = true }
starknet-test-utils = { workspace = true }
starknet_api = { workspace = true }
thiserror = { workspace = true }
tokio = { version = "1.36.0", features = ["rt", "macros", "parking_lot"] }
url = "2.4.1"
Expand Down

0 comments on commit 54033cf

Please sign in to comment.