Skip to content

Commit

Permalink
remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercurial committed Nov 6, 2024
1 parent 3c90146 commit 554e961
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
8 changes: 3 additions & 5 deletions src/serve/grpc/submit.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use any_chain_eval::Chain;
use futures_core::Stream;
use futures_util::{StreamExt as _, TryStreamExt as _};
use pallas::codec::minicbor::{self, Decode};
use pallas::codec::minicbor::{self};
use pallas::crypto::hash::Hash;
use pallas::interop::utxorpc as interop;
use pallas::interop::utxorpc::spec::cardano::{ExUnits, TxEval};
Expand All @@ -11,12 +11,10 @@ use pallas::interop::utxorpc::spec::query::ReadParamsRequest;
use pallas::interop::utxorpc::spec::submit::{WaitForTxResponse, *};
use pallas::ledger::configs::{alonzo, byron, conway, shelley};
use pallas::ledger::primitives::conway::{
DatumHash, MintedTx, NativeScript, PlutusData, PlutusV1Script, PlutusV2Script, PlutusV3Script,
PseudoScript, ScriptHash, TransactionInput, TransactionOutput,
MintedTx, TransactionInput,
};
use pallas::ledger::traverse::wellknown::GenesisValues;
use pallas::ledger::traverse::{ComputeHash, MultiEraTx, OriginalHash};
use std::collections::{HashMap, HashSet};
use std::collections::HashSet;
use std::convert::TryInto;
use std::pin::Pin;
use tokio_stream::wrappers::BroadcastStream;
Expand Down
8 changes: 4 additions & 4 deletions src/uplc/script_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use pallas::ledger::primitives::{
conway::{
AddrKeyhash, Certificate, Coin, DatumHash, DatumOption, GovAction, GovActionId, Mint,
MintedTransactionBody, MintedTransactionOutput, MintedTx, MintedWitnessSet, NativeScript,
PlutusData, PlutusV1Script, PlutusV2Script, PlutusV3Script, PolicyId,
PlutusData, PlutusScript, PolicyId,
PostAlonzoTransactionOutput, ProposalProcedure, PseudoDatumOption, PseudoScript, Redeemer,
RedeemerTag, RedeemersKey, RequiredSigners, RewardAccount, ScriptHash, StakeCredential,
TransactionInput, TransactionOutput, Value, Voter, VotingProcedure,
Expand Down Expand Up @@ -78,9 +78,9 @@ impl ScriptPurpose {
#[derive(Debug, PartialEq, Clone)]
pub enum ScriptVersion {
Native(NativeScript),
V1(PlutusV1Script),
V2(PlutusV2Script),
V3(PlutusV3Script),
V1(PlutusScript<1>),
V2(PlutusScript<2>),
V3(PlutusScript<3>),
}

pub struct DataLookupTable {
Expand Down
15 changes: 6 additions & 9 deletions src/uplc/tx.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::ops::Deref;

use crate::uplc::{
script_context::{self, ScriptContext, TxInfo, TxInfoV1},
script_context::{ScriptContext, TxInfo, TxInfoV1},
to_plutus_data::ToPlutusData,
};

Expand All @@ -13,17 +13,14 @@ use super::{
};
use miette::IntoDiagnostic;
use pallas::{
codec::minicbor::{self, to_vec},
codec::minicbor::to_vec,
interop::utxorpc::spec::query::any_chain_params::Params,
ledger::{
primitives::{
conway::{MintedTx, Redeemer, Redeemers, RedeemersKey, RedeemersValue},
PlutusData,
},
traverse::tx,
ledger::primitives::{
conway::{MintedTx, Redeemer, Redeemers, RedeemersKey, RedeemersValue},
PlutusData,
},
};
use uplc::{bumpalo::Bump, data::PlutusData as PragmaPlutusData, machine::EvalResult, term::Term};
use uplc::{bumpalo::Bump, data::PlutusData as PragmaPlutusData, term::Term};

pub struct TxEvalResult {
pub cpu: i64,
Expand Down

0 comments on commit 554e961

Please sign in to comment.