feat: validator fns no longer need to be public

If the function doesn't match a script purpose
and is unused then it will till present as a
warning.
This commit is contained in:
rvcas
2023-01-15 12:11:16 -05:00
committed by Lucas
parent 63bfb4e05d
commit c66d07a54c
6 changed files with 59 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ use aiken_lang::{
builtins::{self, generic_var},
tipo::TypeInfo,
uplc::CodeGenerator,
IdGenerator,
IdGenerator, CERT, MINT, SPEND, VALIDATOR_NAMES, WITHDRAW,
};
use deps::UseManifest;
use miette::NamedSource;
@@ -44,10 +44,7 @@ use uplc::{
use crate::{
config::Config,
error::{Error, Warning},
module::{
CheckedModule, CheckedModules, ParsedModule, ParsedModules, CERT, MINT, SPEND,
VALIDATOR_NAMES, WITHDRAW,
},
module::{CheckedModule, CheckedModules, ParsedModule, ParsedModules},
telemetry::Event,
};

View File

@@ -207,12 +207,6 @@ fn find_cycle(
false
}
pub const SPEND: &str = "spend";
pub const CERT: &str = "cert";
pub const MINT: &str = "mint";
pub const WITHDRAW: &str = "withdraw";
pub const VALIDATOR_NAMES: [&str; 4] = [SPEND, CERT, MINT, WITHDRAW];
#[derive(Debug, Clone)]
pub struct CheckedModule {
pub name: String,