Prune pallas dependencies.

Using 'pallas' as a dependency brings utxo-rpc other annoying dependencies such as _tokyo_. This not only makes the overall build longer, but it also prevents it to even work when targetting wasm.
This commit is contained in:
KtorZ
2024-08-03 14:14:49 +02:00
parent 09c065d332
commit 4645257e62
15 changed files with 73 additions and 499 deletions

View File

@@ -5,7 +5,7 @@ use super::{
use aiken_lang::ast::Span;
use miette::{Diagnostic, NamedSource};
use owo_colors::{OwoColorize, Stream::Stdout};
use pallas::codec::minicbor as cbor;
use pallas_codec::minicbor as cbor;
use std::fmt::Debug;
use uplc::ast::Constant;
@@ -50,7 +50,7 @@ pub enum Error {
ParameterizedValidator { n: usize },
#[error(
"I couldn't compute the address of the given validator because it's actually a minting policy!",
"I couldn't compute the address of the given validator because it's actually a minting policy!"
)]
#[diagnostic(code("aiken::blueprint::address::minting_validator"))]
#[diagnostic(help(
@@ -60,7 +60,7 @@ pub enum Error {
UnexpectedMintingValidator,
#[error(
"I couldn't compute the policyId of the given validator because it's actually a spending policy!",
"I couldn't compute the policyId of the given validator because it's actually a spending policy!"
)]
#[diagnostic(code("aiken::blueprint::address::spending_validator"))]
#[diagnostic(help(

View File

@@ -116,7 +116,7 @@ pub enum Error {
#[error("I couldn't parse the provided stake address.")]
MalformedStakeAddress {
error: Option<pallas::ledger::addresses::Error>,
error: Option<pallas_addresses::Error>,
},
#[error("I didn't find any validator matching your criteria.")]

View File

@@ -48,11 +48,9 @@ use indexmap::IndexMap;
use miette::NamedSource;
use options::{CodeGenMode, Options};
use package_name::PackageName;
use pallas::ledger::{
addresses::{Address, Network, ShelleyAddress, ShelleyDelegationPart, StakePayload},
primitives::conway::{self as cardano, PolicyId},
traverse::ComputeHash,
};
use pallas_addresses::{Address, Network, ShelleyAddress, ShelleyDelegationPart, StakePayload};
use pallas_primitives::conway::{self as cardano, PolicyId};
use pallas_traverse::ComputeHash;
use std::{
collections::{BTreeSet, HashMap},
fs::{self, File},

View File

@@ -12,7 +12,7 @@ use cryptoxide::{blake2b::Blake2b, digest::Digest};
use indexmap::IndexMap;
use itertools::Itertools;
use owo_colors::{OwoColorize, Stream};
use pallas::ledger::primitives::alonzo::{Constr, PlutusData};
use pallas_primitives::alonzo::{Constr, PlutusData};
use patricia_tree::PatriciaMap;
use std::{
borrow::Borrow, collections::BTreeMap, convert::TryFrom, ops::Deref, path::PathBuf, rc::Rc,