Skip to content

Commit

Permalink
Fix updating
Browse files Browse the repository at this point in the history
  • Loading branch information
gostkin committed Mar 21, 2023
1 parent b210bb2 commit c0ee98d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
9 changes: 4 additions & 5 deletions Cargo.toml
Expand Up @@ -6,10 +6,9 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
entity = { git = "https://github.com/dcSpark/carp.git" }
dcspark-core = { git = "https://github.com/dcSpark/dcspark-core.git", rev = "08feb5a8b8b5a7b566fd41c0f7b1006a4ebb47a0" }
utxo-selection = { git = "https://github.com/dcSpark/dcspark-core.git", rev = "08feb5a8b8b5a7b566fd41c0f7b1006a4ebb47a0" }
cardano-utils = { git = "https://github.com/dcSpark/dcspark-core.git", rev = "08feb5a8b8b5a7b566fd41c0f7b1006a4ebb47a0" }
entity = { git = "https://github.com/dcSpark/carp.git", rev = "75bf44f6aad4fb53afdaab39956e66c2b3a09922" }
dcspark-core = { git = "https://github.com/dcSpark/dcspark-core.git", rev = "558abc118fd9ba58ea85cb4bf0ec267b1c0f6e6b" }
utxo-selection = { git = "https://github.com/dcSpark/dcspark-core.git", rev = "558abc118fd9ba58ea85cb4bf0ec267b1c0f6e6b" }

anyhow = "1.0.53"
itertools = "0.10.5"
Expand All @@ -21,6 +20,6 @@ tracing = "0.1.31"
serde_json = "1.0.79"
serde_yaml = "0.9.13"
clap = { version = "3.1", features = ["derive"] }
cardano-multiplatform-lib = "3.1.1"
cardano-multiplatform-lib = "3.1.3"
pallas-addresses = "0.16.0"
reqwest = { version = "0.11", features = ["json"] }
1 change: 0 additions & 1 deletion configs/carp_fetcher.yml
Expand Up @@ -12,7 +12,6 @@ payment_creds_mapping: payment_credentials.mapping
staking_creds_mapping: staking_credentials.mapping
policy_mapping: policy_id.mapping
asset_name_mapping: asset_name.mapping
address_to_mapping: address_to_mappings.mapping

banned_addresses: banned_addresses.txt
unparsed_transactions: unparsed_transactions.txt
Expand Down
6 changes: 4 additions & 2 deletions examples/run_benchmark.rs
Expand Up @@ -5,10 +5,12 @@ use anyhow::Context;
use clap::Parser;
use serde::Deserialize;

use dcspark_core::network_id::NetworkInfo;
use std::fs::File;

use tracing_subscriber::prelude::*;
use utxo_selection::algorithms::{ThermostatAlgoConfig, ThermostatFeeEstimator};
use utxo_selection::algorithms::ThermostatAlgoConfig;
use utxo_selection::estimators::ThermostatFeeEstimator;
use utxo_selection_benchmark::bench::run_algorithm_benchmark;

#[derive(Debug, Clone, Deserialize)]
Expand Down Expand Up @@ -70,7 +72,7 @@ async fn _main() -> anyhow::Result<()> {
change_balance_algo,
|| {
Ok(ThermostatFeeEstimator::new(
cardano_utils::network_id::NetworkInfo::Mainnet,
NetworkInfo::Mainnet,
&serde_json::from_str(
"
{
Expand Down
2 changes: 2 additions & 0 deletions src/bench.rs
Expand Up @@ -657,6 +657,7 @@ fn add_new_selected_outputs_to_stake_keys(
value: output.value.clone(),
assets: output.assets.clone(),
metadata: Arc::new(Default::default()),
extra: None,
});
let current_token_balance = staking_key_balance_computed.entry(staking).or_default();

Expand Down Expand Up @@ -712,6 +713,7 @@ fn add_untouched_outputs_to_stake_keys(
value: output.value.clone(),
assets: assets.clone(),
metadata: Arc::new(Default::default()),
extra: None,
});
let current_token_balance = staking_key_balance_computed.entry(staking).or_default();

Expand Down
1 change: 0 additions & 1 deletion src/tx_event.rs
Expand Up @@ -38,7 +38,6 @@ pub fn pair_from_address(address: Address) -> Option<(u64, Option<u64>)> {
}
let split = address
.split('_')
.into_iter()
.map(|s| s.to_string())
.collect::<Vec<_>>();
let payment = match split
Expand Down

0 comments on commit c0ee98d

Please sign in to comment.