From 559c77d7e6f647a15578bffbab80148cac7e97d6 Mon Sep 17 00:00:00 2001 From: Eugene Gostkin Date: Mon, 29 Jan 2024 20:19:09 +0100 Subject: [PATCH] Small improvements --- Cargo.lock | 3 --- indexer/Cargo.toml | 1 - indexer/tasks/Cargo.toml | 3 --- indexer/tasks/src/multiera/multiera_used_outputs.rs | 10 +--------- 4 files changed, 1 insertion(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 68500ab9..a5705418 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -597,7 +597,6 @@ dependencies = [ "migration", "multiverse", "oura", - "pallas", "serde", "serde_json", "serde_yaml", @@ -3716,8 +3715,6 @@ dependencies = [ "cml-crypto 4.0.2", "cml-multi-era", "cryptoxide", - "dcspark-blockchain-source", - "dcspark-core", "entity", "hex", "inventory", diff --git a/indexer/Cargo.toml b/indexer/Cargo.toml index c88f99bd..2027e743 100644 --- a/indexer/Cargo.toml +++ b/indexer/Cargo.toml @@ -30,7 +30,6 @@ ctrlc = { version = "3.2.4", features = ["termination"] } dotenv = { version = "0.15.0" } hex = { version = "0.4.3" } oura = { git = "https://github.com/txpipe/oura.git", rev = "27fb7e876471b713841d96e292ede40101b151d7" } -pallas = { version = "0.18.2" } serde = { version = "1.0.152", features = ["derive", "rc"] } serde_json = { version = "1.0.92" } serde_yaml = { version = "0.9.17" } diff --git a/indexer/tasks/Cargo.toml b/indexer/tasks/Cargo.toml index 41362417..faffd76e 100644 --- a/indexer/tasks/Cargo.toml +++ b/indexer/tasks/Cargo.toml @@ -7,9 +7,6 @@ edition = "2021" name = "tasks" [dependencies] -dcspark-core = { git = "https://github.com/dcSpark/dcspark-core.git", rev = "572af17e3e22101dee64e0999049a571aea26e0f" } -dcspark-blockchain-source = { git = "https://github.com/dcSpark/dcspark-core.git", rev = "572af17e3e22101dee64e0999049a571aea26e0f" } - # [local] entity = { path = "../entity" } diff --git a/indexer/tasks/src/multiera/multiera_used_outputs.rs b/indexer/tasks/src/multiera/multiera_used_outputs.rs index fa16a6ce..0152a586 100644 --- a/indexer/tasks/src/multiera/multiera_used_outputs.rs +++ b/indexer/tasks/src/multiera/multiera_used_outputs.rs @@ -61,20 +61,13 @@ async fn handle_output( let outputs = tx_body.outputs(); if cardano_transaction.is_valid { for (idx, output) in outputs.iter().enumerate() { - queue_output( - &mut queued_output, - tx_body, - cardano_transaction.id, - output, - idx, - ); + queue_output(&mut queued_output, cardano_transaction.id, output, idx); } } if !cardano_transaction.is_valid { if let Some(output) = tx_body.collateral_return() { queue_output( &mut queued_output, - tx_body, cardano_transaction.id, &output, // only one collateral output is allowed @@ -102,7 +95,6 @@ async fn handle_output( fn queue_output( queued_output: &mut Vec, - _tx_body: &MultiEraTransactionBody, tx_id: i64, output: &MultiEraTransactionOutput, idx: usize,