chore: change how we depend on pallas

This commit is contained in:
rvcas
2024-01-24 21:26:48 -05:00
parent 9d563612f3
commit 589bb9a4b3
30 changed files with 163 additions and 152 deletions

View File

@@ -26,11 +26,7 @@ ignore = "0.4.20"
indoc = "2.0"
miette = { version = "5.5.0", features = ["fancy"] }
owo-colors = { version = "3.5.0", features = ["supports-colors"] }
pallas-addresses = { git = "https://github.com/txpipe/pallas.git", rev = "7cb1ffe100befaa6236f14c14081961c44d6ad21" } # 0.21.0 patched
pallas-codec = { git = "https://github.com/txpipe/pallas.git", rev = "7cb1ffe100befaa6236f14c14081961c44d6ad21", features = ["num-bigint"] } # 0.21.0 patched
pallas-crypto = { git = "https://github.com/txpipe/pallas.git", rev = "7cb1ffe100befaa6236f14c14081961c44d6ad21" } # 0.21.0 patched
pallas-primitives = { git = "https://github.com/txpipe/pallas.git", rev = "7cb1ffe100befaa6236f14c14081961c44d6ad21" } # 0.21.0 patched
pallas-traverse = { git = "https://github.com/txpipe/pallas.git", rev = "7cb1ffe100befaa6236f14c14081961c44d6ad21" } # 0.21.0 patched
pallas.workspace = true
regex = "1.7.1"
serde_json = "1.0.94"
thiserror = "1.0.39"

View File

@@ -12,7 +12,7 @@ use inquire;
use num_bigint::BigInt;
use ordinal::Ordinal;
use owo_colors::{OwoColorize, Stream::Stderr};
use pallas_primitives::alonzo::PlutusData;
use pallas::ledger::primitives::alonzo::PlutusData;
use std::str::FromStr;
use std::{fs, path::PathBuf, process, rc::Rc};
use uplc::ast::{Constant, Data as UplcData, DeBruijn, Term};

View File

@@ -80,7 +80,8 @@ pub fn exec(
let mut double_cbor_bytes = Vec::new();
let mut cbor_encoder = pallas_codec::minicbor::Encoder::new(&mut double_cbor_bytes);
let mut cbor_encoder =
pallas::codec::minicbor::Encoder::new(&mut double_cbor_bytes);
cbor_encoder.bytes(&cbor_bytes).unwrap();

View File

@@ -1,10 +1,13 @@
use miette::IntoDiagnostic;
use owo_colors::{OwoColorize, Stream::Stderr};
use pallas_primitives::{
babbage::{Redeemer, TransactionInput, TransactionOutput},
Fragment,
use pallas::ledger::{
primitives::{
babbage::{Redeemer, TransactionInput, TransactionOutput},
Fragment,
},
traverse::{Era, MultiEraTx},
};
use pallas_traverse::{Era, MultiEraTx};
use std::{fmt, fs, path::PathBuf, process};
use uplc::{
machine::cost_model::ExBudget,