rename typed -> core-ast 2

This commit is contained in:
collin 2020-10-30 11:48:40 -07:00
parent be2a805d49
commit 7e7d1e58a0
239 changed files with 206 additions and 206 deletions

41
Cargo.lock generated
View File

@ -1253,6 +1253,7 @@ dependencies = [
"hex", "hex",
"leo-ast", "leo-ast",
"leo-core", "leo-core",
"leo-core-ast",
"leo-dynamic-check", "leo-dynamic-check",
"leo-gadgets", "leo-gadgets",
"leo-imports", "leo-imports",
@ -1260,7 +1261,6 @@ dependencies = [
"leo-package", "leo-package",
"leo-state", "leo-state",
"leo-symbol-table", "leo-symbol-table",
"leo-typed",
"num-bigint", "num-bigint",
"pest", "pest",
"rand", "rand",
@ -1284,8 +1284,8 @@ dependencies = [
name = "leo-core" name = "leo-core"
version = "1.0.3" version = "1.0.3"
dependencies = [ dependencies = [
"leo-core-ast",
"leo-gadgets", "leo-gadgets",
"leo-typed",
"rand", "rand",
"rand_xorshift", "rand_xorshift",
"snarkos-curves", "snarkos-curves",
@ -1296,14 +1296,28 @@ dependencies = [
"thiserror", "thiserror",
] ]
[[package]]
name = "leo-core-ast"
version = "1.0.3"
dependencies = [
"criterion",
"leo-ast",
"leo-input",
"pest",
"serde",
"serde_json",
"snarkos-errors",
"snarkos-models",
]
[[package]] [[package]]
name = "leo-dynamic-check" name = "leo-dynamic-check"
version = "1.0.3" version = "1.0.3"
dependencies = [ dependencies = [
"leo-ast", "leo-ast",
"leo-core-ast",
"leo-imports", "leo-imports",
"leo-symbol-table", "leo-symbol-table",
"leo-typed",
"serde", "serde",
"serde_json", "serde_json",
"thiserror", "thiserror",
@ -1327,7 +1341,7 @@ name = "leo-imports"
version = "1.0.3" version = "1.0.3"
dependencies = [ dependencies = [
"leo-ast", "leo-ast",
"leo-typed", "leo-core-ast",
"thiserror", "thiserror",
"tracing", "tracing",
] ]
@ -1363,6 +1377,7 @@ dependencies = [
"lazy_static", "lazy_static",
"leo-compiler", "leo-compiler",
"leo-core", "leo-core",
"leo-core-ast",
"leo-dynamic-check", "leo-dynamic-check",
"leo-gadgets", "leo-gadgets",
"leo-imports", "leo-imports",
@ -1414,8 +1429,8 @@ dependencies = [
name = "leo-state" name = "leo-state"
version = "1.0.3" version = "1.0.3"
dependencies = [ dependencies = [
"leo-core-ast",
"leo-input", "leo-input",
"leo-typed",
"rand", "rand",
"rand_xorshift", "rand_xorshift",
"snarkos-algorithms", "snarkos-algorithms",
@ -1435,26 +1450,12 @@ version = "1.0.3"
dependencies = [ dependencies = [
"leo-ast", "leo-ast",
"leo-core", "leo-core",
"leo-core-ast",
"leo-imports", "leo-imports",
"leo-typed",
"serde", "serde",
"thiserror", "thiserror",
] ]
[[package]]
name = "leo-typed"
version = "1.0.3"
dependencies = [
"criterion",
"leo-ast",
"leo-input",
"pest",
"serde",
"serde_json",
"snarkos-errors",
"snarkos-models",
]
[[package]] [[package]]
name = "libc" name = "libc"
version = "0.2.76" version = "0.2.76"

View File

@ -28,6 +28,7 @@ path = "leo/main.rs"
members = [ members = [
"ast", "ast",
"compiler", "compiler",
"core-ast",
"core", "core",
"dynamic-check", "dynamic-check",
"gadgets", "gadgets",
@ -35,7 +36,6 @@ members = [
"input", "input",
"linter", "linter",
"package", "package",
"typed",
"state", "state",
"symbol-table", "symbol-table",
] ]
@ -48,6 +48,10 @@ version = "1.0.3"
path = "./core" path = "./core"
version = "1.0.1" version = "1.0.1"
[dependencies.leo-core-ast]
path = "./core-ast"
version = "1.0.3"
[dependencies.leo-dynamic-check] [dependencies.leo-dynamic-check]
path = "./dynamic-check" path = "./dynamic-check"
version = "1.0.3" version = "1.0.3"

View File

@ -45,8 +45,8 @@ version = "1.0.3"
path = "../package" path = "../package"
version = "1.0.3" version = "1.0.3"
[dependencies.leo-typed] [dependencies.leo-core-ast]
path = "../typed" path = "../core-ast"
version = "1.0.3" version = "1.0.3"
[dependencies.leo-state] [dependencies.leo-state]
@ -124,4 +124,4 @@ default-features = false
[features] [features]
default = [ ] default = [ ]
ci_skip = [ "leo-ast/ci_skip", "leo-typed/ci_skip" ] ci_skip = [ "leo-ast/ci_skip", "leo-core-ast/ci_skip" ]

View File

@ -24,13 +24,13 @@ use crate::{
OutputFile, OutputFile,
}; };
use leo_ast::LeoAst; use leo_ast::LeoAst;
use leo_core_ast::{Input, LeoCoreAst, MainInput, Program};
use leo_dynamic_check::DynamicCheck; use leo_dynamic_check::DynamicCheck;
use leo_imports::ImportParser; use leo_imports::ImportParser;
use leo_input::LeoInputParser; use leo_input::LeoInputParser;
use leo_package::inputs::InputPairs; use leo_package::inputs::InputPairs;
use leo_state::verify_local_data_commitment; use leo_state::verify_local_data_commitment;
use leo_symbol_table::SymbolTable; use leo_symbol_table::SymbolTable;
use leo_typed::{Input, LeoCoreAst, MainInput, Program};
use snarkos_dpc::{base_dpc::instantiated::Components, SystemParameters}; use snarkos_dpc::{base_dpc::instantiated::Components, SystemParameters};
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;

View File

@ -17,7 +17,7 @@
//! Enforces an assert equals statement in a compiled Leo program. //! Enforces an assert equals statement in a compiled Leo program.
use crate::{errors::ConsoleError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::ConsoleError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Expression, Span, Type}; use leo_core_ast::{Expression, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Evaluates a macro in a compiled Leo program. //! Evaluates a macro in a compiled Leo program.
use crate::{errors::ConsoleError, program::ConstrainedProgram, GroupType}; use crate::{errors::ConsoleError, program::ConstrainedProgram, GroupType};
use leo_typed::{ConsoleFunction, ConsoleFunctionCall}; use leo_core_ast::{ConsoleFunction, ConsoleFunctionCall};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Evaluates a formatted string in a compiled Leo program. //! Evaluates a formatted string in a compiled Leo program.
use crate::{errors::ConsoleError, program::ConstrainedProgram, GroupType}; use crate::{errors::ConsoleError, program::ConstrainedProgram, GroupType};
use leo_typed::FormattedString; use leo_core_ast::FormattedString;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -25,10 +25,10 @@ use crate::{
OutputBytes, OutputBytes,
OutputFile, OutputFile,
}; };
use leo_core_ast::{Input, Program};
use leo_imports::ImportParser; use leo_imports::ImportParser;
use leo_input::LeoInputParser; use leo_input::LeoInputParser;
use leo_package::inputs::InputPairs; use leo_package::inputs::InputPairs;
use leo_typed::{Input, Program};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -21,7 +21,7 @@ use crate::{
value::ConstrainedValue, value::ConstrainedValue,
GroupType, GroupType,
}; };
use leo_typed::Identifier; use leo_core_ast::Identifier;
use snarkos_models::curves::{Field, PrimeField}; use snarkos_models::curves::{Field, PrimeField};

View File

@ -22,8 +22,8 @@ use crate::{
value::ConstrainedValue, value::ConstrainedValue,
GroupType, GroupType,
}; };
use leo_core_ast::Program;
use leo_imports::ImportParser; use leo_imports::ImportParser;
use leo_typed::Program;
use snarkos_models::curves::{Field, PrimeField}; use snarkos_models::curves::{Field, PrimeField};

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::errors::ExpressionError; use crate::errors::ExpressionError;
use leo_typed::{Error as FormattedError, Span}; use leo_core_ast::{Error as FormattedError, Span};
use std::path::Path; use std::path::Path;

View File

@ -16,7 +16,7 @@
use crate::errors::{AddressError, BooleanError, FieldError, FunctionError, GroupError, IntegerError, ValueError}; use crate::errors::{AddressError, BooleanError, FieldError, FunctionError, GroupError, IntegerError, ValueError};
use leo_core::LeoCoreError; use leo_core::LeoCoreError;
use leo_typed::{Error as FormattedError, Identifier, Span}; use leo_core_ast::{Error as FormattedError, Identifier, Span};
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;
use std::path::Path; use std::path::Path;

View File

@ -25,7 +25,7 @@ use crate::errors::{
StatementError, StatementError,
ValueError, ValueError,
}; };
use leo_typed::{Error as FormattedError, Span}; use leo_core_ast::{Error as FormattedError, Span};
use std::path::Path; use std::path::Path;

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use leo_core::LeoCoreError; use leo_core::LeoCoreError;
use leo_typed::{Error as FormattedError, Identifier, ImportSymbol, Span}; use leo_core_ast::{Error as FormattedError, Identifier, ImportSymbol, Span};
#[derive(Debug, Error)] #[derive(Debug, Error)]
pub enum ImportError { pub enum ImportError {

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use leo_typed::{Error as FormattedError, Span}; use leo_core_ast::{Error as FormattedError, Span};
use std::path::Path; use std::path::Path;

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::errors::{AddressError, BooleanError, ConsoleError, ExpressionError, IntegerError, ValueError}; use crate::errors::{AddressError, BooleanError, ConsoleError, ExpressionError, IntegerError, ValueError};
use leo_typed::{Error as FormattedError, Span, Type}; use leo_core_ast::{Error as FormattedError, Span, Type};
use std::path::Path; use std::path::Path;

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use leo_typed::{Error as FormattedError, Span}; use leo_core_ast::{Error as FormattedError, Span};
use snarkos_errors::{gadgets::SynthesisError, objects::account::AccountError}; use snarkos_errors::{gadgets::SynthesisError, objects::account::AccountError};
use std::path::Path; use std::path::Path;

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use leo_typed::{Error as FormattedError, Span}; use leo_core_ast::{Error as FormattedError, Span};
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;
use std::path::Path; use std::path::Path;

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use leo_typed::{Error as FormattedError, Span}; use leo_core_ast::{Error as FormattedError, Span};
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;
use std::path::Path; use std::path::Path;

View File

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use leo_typed::{Error as FormattedError, Span}; use leo_core_ast::{Error as FormattedError, Span};
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;
use std::path::Path; use std::path::Path;

View File

@ -14,8 +14,8 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use leo_core_ast::{error::Error as FormattedError, Span};
use leo_gadgets::errors::SignedIntegerError; use leo_gadgets::errors::SignedIntegerError;
use leo_typed::{error::Error as FormattedError, Span};
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;
use std::path::Path; use std::path::Path;

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::errors::{AddressError, BooleanError, FieldError, GroupError, IntegerError}; use crate::errors::{AddressError, BooleanError, FieldError, GroupError, IntegerError};
use leo_typed::{Error as FormattedError, Span}; use leo_core_ast::{Error as FormattedError, Span};
use std::path::Path; use std::path::Path;

View File

@ -17,7 +17,7 @@
//! Enforces an arithmetic `+` operator in a resolved Leo program. //! Enforces an arithmetic `+` operator in a resolved Leo program.
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces an arithmetic `/` operator in a resolved Leo program. //! Enforces an arithmetic `/` operator in a resolved Leo program.
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces an arithmetic `*` operator in a resolved Leo program. //! Enforces an arithmetic `*` operator in a resolved Leo program.
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces a unary negate `-` operator in a resolved Leo program. //! Enforces a unary negate `-` operator in a resolved Leo program.
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces an arithmetic `**` operator in a resolved Leo program. //! Enforces an arithmetic `**` operator in a resolved Leo program.
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces an arithmetic `-` operator in a resolved Leo program. //! Enforces an arithmetic `-` operator in a resolved Leo program.
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces array access in a compiled Leo program. //! Enforces array access in a compiled Leo program.
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Expression, RangeOrExpression, Span, Type}; use leo_core_ast::{Expression, RangeOrExpression, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -22,7 +22,7 @@ use crate::{
value::ConstrainedValue, value::ConstrainedValue,
GroupType, GroupType,
}; };
use leo_typed::{Expression, Span, SpreadOrExpression, Type}; use leo_core_ast::{Expression, Span, SpreadOrExpression, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces an array index expression in a compiled Leo program. //! Enforces an array index expression in a compiled Leo program.
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Expression, IntegerType, Span, Type}; use leo_core_ast::{Expression, IntegerType, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces a binary expression in a compiled Leo program. //! Enforces a binary expression in a compiled Leo program.
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Expression, Span, Type}; use leo_core_ast::{Expression, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces one operand in a binary expression in a compiled Leo program. //! Enforces one operand in a binary expression in a compiled Leo program.
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Expression, Span, Type}; use leo_core_ast::{Expression, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -22,7 +22,7 @@ use crate::{
value::ConstrainedValue, value::ConstrainedValue,
GroupType, GroupType,
}; };
use leo_typed::{Expression, Identifier, Span, Type}; use leo_core_ast::{Expression, Identifier, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -22,7 +22,7 @@ use crate::{
value::{ConstrainedCircuitMember, ConstrainedValue}, value::{ConstrainedCircuitMember, ConstrainedValue},
GroupType, GroupType,
}; };
use leo_typed::{CircuitMember, CircuitVariableDefinition, Identifier, Span}; use leo_core_ast::{CircuitMember, CircuitVariableDefinition, Identifier, Span};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces a circuit static access expression in a compiled Leo program. //! Enforces a circuit static access expression in a compiled Leo program.
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{CircuitMember, Expression, Identifier, Span, Type}; use leo_core_ast::{CircuitMember, Expression, Identifier, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces a conditional expression in a compiled Leo program. //! Enforces a conditional expression in a compiled Leo program.
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Expression, Span, Type}; use leo_core_ast::{Expression, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -28,7 +28,7 @@ use crate::{
GroupType, GroupType,
Integer, Integer,
}; };
use leo_typed::{Expression, Type}; use leo_core_ast::{Expression, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@ use crate::{program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use crate::errors::{ExpressionError, FunctionError}; use crate::errors::{ExpressionError, FunctionError};
use leo_core::call_core_circuit; use leo_core::call_core_circuit;
use leo_typed::{Expression, Span, Type}; use leo_core_ast::{Expression, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},
gadgets::r1cs::ConstraintSystem, gadgets::r1cs::ConstraintSystem,

View File

@ -17,7 +17,7 @@
//! Enforce a function call expression in a compiled Leo program. //! Enforce a function call expression in a compiled Leo program.
use crate::{errors::ExpressionError, new_scope, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, new_scope, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Expression, Span, Type}; use leo_core_ast::{Expression, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -23,7 +23,7 @@ use crate::{
Address, Address,
GroupType, GroupType,
}; };
use leo_typed::{Identifier, Type}; use leo_core_ast::{Identifier, Type};
use snarkos_models::curves::{Field, PrimeField}; use snarkos_models::curves::{Field, PrimeField};

View File

@ -17,7 +17,7 @@
//! Enforces a logical `&&` operator in a resolved Leo program. //! Enforces a logical `&&` operator in a resolved Leo program.
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType}; use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces a logical `!` operator in a resolved Leo program. //! Enforces a logical `!` operator in a resolved Leo program.
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType}; use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::curves::{Field, PrimeField}; use snarkos_models::curves::{Field, PrimeField};

View File

@ -17,7 +17,7 @@
//! Enforces a logical `||` operator in a resolved Leo program. //! Enforces a logical `||` operator in a resolved Leo program.
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType}; use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces a relational `==` operator in a resolved Leo program. //! Enforces a relational `==` operator in a resolved Leo program.
use crate::{enforce_and, errors::ExpressionError, value::ConstrainedValue, GroupType}; use crate::{enforce_and, errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,8 +17,8 @@
//! Enforces a relational `>=` operator in a resolved Leo program. //! Enforces a relational `>=` operator in a resolved Leo program.
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_core_ast::Span;
use leo_gadgets::bits::ComparatorGadget; use leo_gadgets::bits::ComparatorGadget;
use leo_typed::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,8 +17,8 @@
//! Enforces a relational `>` operator in a resolved Leo program. //! Enforces a relational `>` operator in a resolved Leo program.
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_core_ast::Span;
use leo_gadgets::bits::ComparatorGadget; use leo_gadgets::bits::ComparatorGadget;
use leo_typed::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,8 +17,8 @@
//! Enforces a relational `<=` operator in a resolved Leo program. //! Enforces a relational `<=` operator in a resolved Leo program.
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_core_ast::Span;
use leo_gadgets::bits::ComparatorGadget; use leo_gadgets::bits::ComparatorGadget;
use leo_typed::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,8 +17,8 @@
//! Enforces a relational `<` operator in a resolved Leo program. //! Enforces a relational `<` operator in a resolved Leo program.
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_core_ast::Span;
use leo_gadgets::bits::comparator::EvaluateLtGadget; use leo_gadgets::bits::comparator::EvaluateLtGadget;
use leo_typed::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces array access in a compiled Leo program. //! Enforces array access in a compiled Leo program.
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Expression, Span, Type}; use leo_core_ast::{Expression, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces an tuple expression in a compiled Leo program. //! Enforces an tuple expression in a compiled Leo program.
use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::ExpressionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Expression, Span, Type}; use leo_core_ast::{Expression, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -23,7 +23,7 @@ use crate::{
GroupType, GroupType,
}; };
use leo_typed::{Expression, Function, FunctionInput, Span, Type}; use leo_core_ast::{Expression, Function, FunctionInput, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -23,7 +23,7 @@ use crate::{
GroupType, GroupType,
}; };
use leo_typed::{InputValue, Span, Type}; use leo_core_ast::{InputValue, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -18,7 +18,7 @@
use crate::{errors::FunctionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::FunctionError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Expression, Type}; use leo_core_ast::{Expression, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{errors::FunctionError, ConstrainedCircuitMember, ConstrainedProgram, ConstrainedValue, GroupType}; use crate::{errors::FunctionError, ConstrainedCircuitMember, ConstrainedProgram, ConstrainedValue, GroupType};
use leo_typed::{Identifier, Input}; use leo_core_ast::{Identifier, Input};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -16,7 +16,7 @@
use crate::{errors::FunctionError, ConstrainedCircuitMember, ConstrainedProgram, ConstrainedValue, GroupType}; use crate::{errors::FunctionError, ConstrainedCircuitMember, ConstrainedProgram, ConstrainedValue, GroupType};
use leo_typed::{Identifier, InputValue, Parameter}; use leo_core_ast::{Identifier, InputValue, Parameter};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},
gadgets::r1cs::ConstraintSystem, gadgets::r1cs::ConstraintSystem,

View File

@ -30,7 +30,7 @@ use crate::{
Integer, Integer,
}; };
use leo_typed::{InputValue, Span, Type}; use leo_core_ast::{InputValue, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -23,7 +23,7 @@ use crate::{
GroupType, GroupType,
}; };
use leo_typed::{InputValue, Span, Type}; use leo_core_ast::{InputValue, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -23,7 +23,7 @@ use crate::{
OutputBytes, OutputBytes,
}; };
use leo_typed::{Expression, Function, FunctionInput, Input}; use leo_core_ast::{Expression, Function, FunctionInput, Input};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -18,7 +18,7 @@
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::errors::ImportError; use crate::errors::ImportError;
use leo_typed::{Package, Program}; use leo_core_ast::{Package, Program};
use std::{collections::HashMap, env::current_dir}; use std::{collections::HashMap, env::current_dir};

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{new_scope, ConstrainedProgram, ConstrainedValue, GroupType}; use crate::{new_scope, ConstrainedProgram, ConstrainedValue, GroupType};
use leo_typed::Package; use leo_core_ast::Package;
use leo_core::{CorePackageList, LeoCoreError}; use leo_core::{CorePackageList, LeoCoreError};
use snarkos_models::curves::{Field, PrimeField}; use snarkos_models::curves::{Field, PrimeField};

View File

@ -15,9 +15,9 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{errors::ImportError, ConstrainedProgram, GroupType}; use crate::{errors::ImportError, ConstrainedProgram, GroupType};
use leo_core_ast::ImportStatement;
use leo_imports::ImportParser; use leo_imports::ImportParser;
use leo_symbol_table::imported_symbols::ImportedSymbols; use leo_symbol_table::imported_symbols::ImportedSymbols;
use leo_typed::ImportStatement;
use snarkos_models::curves::{Field, PrimeField}; use snarkos_models::curves::{Field, PrimeField};

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{errors::ImportError, new_scope, ConstrainedProgram, ConstrainedValue, GroupType}; use crate::{errors::ImportError, new_scope, ConstrainedProgram, ConstrainedValue, GroupType};
use leo_typed::{ImportSymbol, Program}; use leo_core_ast::{ImportSymbol, Program};
use snarkos_models::curves::{Field, PrimeField}; use snarkos_models::curves::{Field, PrimeField};

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{errors::OutputBytesError, ConstrainedValue, GroupType, REGISTERS_VARIABLE_NAME}; use crate::{errors::OutputBytesError, ConstrainedValue, GroupType, REGISTERS_VARIABLE_NAME};
use leo_typed::{Parameter, Registers, Span}; use leo_core_ast::{Parameter, Registers, Span};
use snarkos_models::curves::{Field, PrimeField}; use snarkos_models::curves::{Field, PrimeField};

View File

@ -17,7 +17,7 @@
//! Enforces an array assignment statement in a compiled Leo program. //! Enforces an array assignment statement in a compiled Leo program.
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{RangeOrExpression, Span}; use leo_core_ast::{RangeOrExpression, Span};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -24,7 +24,7 @@ use crate::{
value::ConstrainedValue, value::ConstrainedValue,
GroupType, GroupType,
}; };
use leo_typed::{Assignee, AssigneeAccess, Expression, Span}; use leo_core_ast::{Assignee, AssigneeAccess, Expression, Span};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Resolves assignees in a compiled Leo program. //! Resolves assignees in a compiled Leo program.
use crate::{errors::StatementError, new_scope, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::StatementError, new_scope, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Assignee, Span}; use leo_core_ast::{Assignee, Span};
use snarkos_models::curves::{Field, PrimeField}; use snarkos_models::curves::{Field, PrimeField};

View File

@ -17,7 +17,7 @@
//! Enforces a circuit variable assignment statement in a compiled Leo program. //! Enforces a circuit variable assignment statement in a compiled Leo program.
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Identifier, Span}; use leo_core_ast::{Identifier, Span};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces a tuple assignment statement in a compiled Leo program. //! Enforces a tuple assignment statement in a compiled Leo program.
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces a branch of a conditional or iteration statement in a compiled Leo program. //! Enforces a branch of a conditional or iteration statement in a compiled Leo program.
use crate::{program::ConstrainedProgram, GroupType, IndicatorAndConstrainedValue, StatementResult}; use crate::{program::ConstrainedProgram, GroupType, IndicatorAndConstrainedValue, StatementResult};
use leo_typed::{Statement, Type}; use leo_core_ast::{Statement, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -24,7 +24,7 @@ use crate::{
IndicatorAndConstrainedValue, IndicatorAndConstrainedValue,
StatementResult, StatementResult,
}; };
use leo_typed::{ConditionalNestedOrEndStatement, ConditionalStatement, Span, Type}; use leo_core_ast::{ConditionalNestedOrEndStatement, ConditionalStatement, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces a definition statement in a compiled Leo program. //! Enforces a definition statement in a compiled Leo program.
use crate::{errors::StatementError, program::ConstrainedProgram, ConstrainedValue, GroupType}; use crate::{errors::StatementError, program::ConstrainedProgram, ConstrainedValue, GroupType};
use leo_typed::{Declare, Expression, Span, VariableName, Variables}; use leo_core_ast::{Declare, Expression, Span, VariableName, Variables};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -25,7 +25,7 @@ use crate::{
Integer, Integer,
StatementResult, StatementResult,
}; };
use leo_typed::{Expression, Identifier, Span, Statement, Type}; use leo_core_ast::{Expression, Identifier, Span, Statement, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces a return statement in a compiled Leo program. //! Enforces a return statement in a compiled Leo program.
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Expression, Span, Type}; use leo_core_ast::{Expression, Span, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -17,7 +17,7 @@
//! Enforces a statement in a compiled Leo program. //! Enforces a statement in a compiled Leo program.
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType}; use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_typed::{Statement, Type}; use leo_core_ast::{Statement, Type};
use snarkos_models::{ use snarkos_models::{
curves::{Field, PrimeField}, curves::{Field, PrimeField},

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{errors::AddressError, ConstrainedValue, GroupType}; use crate::{errors::AddressError, ConstrainedValue, GroupType};
use leo_typed::{InputValue, Span}; use leo_core_ast::{InputValue, Span};
use snarkos_dpc::base_dpc::instantiated::Components; use snarkos_dpc::base_dpc::instantiated::Components;
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;

View File

@ -17,7 +17,7 @@
//! Methods to enforce constraints on input boolean values in a resolved Leo program. //! Methods to enforce constraints on input boolean values in a resolved Leo program.
use crate::{errors::BooleanError, value::ConstrainedValue, GroupType}; use crate::{errors::BooleanError, value::ConstrainedValue, GroupType};
use leo_typed::{InputValue, Span}; use leo_core_ast::{InputValue, Span};
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;
use snarkos_models::{ use snarkos_models::{

View File

@ -17,7 +17,7 @@
//! A data type that represents a field value //! A data type that represents a field value
use crate::errors::FieldError; use crate::errors::FieldError;
use leo_typed::Span; use leo_core_ast::Span;
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;
use snarkos_models::{ use snarkos_models::{

View File

@ -17,7 +17,7 @@
//! Methods to enforce constraints on input field values in a compiled Leo program. //! Methods to enforce constraints on input field values in a compiled Leo program.
use crate::{errors::FieldError, value::ConstrainedValue, FieldType, GroupType}; use crate::{errors::FieldError, value::ConstrainedValue, FieldType, GroupType};
use leo_typed::{InputValue, Span}; use leo_core_ast::{InputValue, Span};
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;
use snarkos_models::{ use snarkos_models::{

View File

@ -17,7 +17,7 @@
//! A data type that represents members in the group formed by the set of affine points on a curve. //! A data type that represents members in the group formed by the set of affine points on a curve.
use crate::errors::GroupError; use crate::errors::GroupError;
use leo_typed::{GroupValue, Span}; use leo_core_ast::{GroupValue, Span};
use snarkos_models::{ use snarkos_models::{
curves::{Field, One}, curves::{Field, One},

View File

@ -17,7 +17,7 @@
//! Methods to enforce constraints on input group values in a Leo program. //! Methods to enforce constraints on input group values in a Leo program.
use crate::{errors::GroupError, ConstrainedValue, GroupType}; use crate::{errors::GroupError, ConstrainedValue, GroupType};
use leo_typed::{GroupValue, InputValue, Span}; use leo_core_ast::{GroupValue, InputValue, Span};
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;
use snarkos_models::{ use snarkos_models::{

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{errors::GroupError, GroupType}; use crate::{errors::GroupError, GroupType};
use leo_typed::{GroupCoordinate, GroupTuple, GroupValue, Span}; use leo_core_ast::{GroupCoordinate, GroupTuple, GroupValue, Span};
use snarkos_curves::{ use snarkos_curves::{
edwards_bls12::{EdwardsAffine, EdwardsParameters, Fq}, edwards_bls12::{EdwardsAffine, EdwardsParameters, Fq},

View File

@ -17,7 +17,7 @@
//! Enforces constraints on an implicit number in a compiled Leo program. //! Enforces constraints on an implicit number in a compiled Leo program.
use crate::{errors::ValueError, value::ConstrainedValue, GroupType}; use crate::{errors::ValueError, value::ConstrainedValue, GroupType};
use leo_typed::{Span, Type}; use leo_core_ast::{Span, Type};
use snarkos_models::curves::{Field, PrimeField}; use snarkos_models::curves::{Field, PrimeField};

View File

@ -16,12 +16,12 @@
//! Conversion of integer declarations to constraints in Leo. //! Conversion of integer declarations to constraints in Leo.
use crate::{errors::IntegerError, IntegerTrait}; use crate::{errors::IntegerError, IntegerTrait};
use leo_core_ast::{InputValue, IntegerType, Span};
use leo_gadgets::{ use leo_gadgets::{
arithmetic::*, arithmetic::*,
bits::comparator::{ComparatorGadget, EvaluateLtGadget}, bits::comparator::{ComparatorGadget, EvaluateLtGadget},
signed_integer::*, signed_integer::*,
}; };
use leo_typed::{InputValue, IntegerType, Span};
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;
use snarkos_models::{ use snarkos_models::{

View File

@ -27,7 +27,7 @@ use crate::{
Integer, Integer,
}; };
use leo_core::Value; use leo_core::Value;
use leo_typed::{Circuit, Function, GroupValue, Identifier, Span, Type}; use leo_core_ast::{Circuit, Function, GroupValue, Identifier, Span, Type};
use snarkos_errors::gadgets::SynthesisError; use snarkos_errors::gadgets::SynthesisError;
use snarkos_models::{ use snarkos_models::{

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{assert_satisfied, expect_compiler_error, generate_main_input, parse_program}; use crate::{assert_satisfied, expect_compiler_error, generate_main_input, parse_program};
use leo_typed::InputValue; use leo_core_ast::InputValue;
static TEST_ADDRESS_1: &str = "aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8"; static TEST_ADDRESS_1: &str = "aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8";
static TEST_ADDRESS_2: &str = "aleo18qgam03qe483tdrcc3fkqwpp38ehff4a2xma6lu7hams6lfpgcpq3dq05r"; static TEST_ADDRESS_2: &str = "aleo18qgam03qe483tdrcc3fkqwpp38ehff4a2xma6lu7hams6lfpgcpq3dq05r";

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{assert_satisfied, expect_compiler_error, generate_main_input, parse_program}; use crate::{assert_satisfied, expect_compiler_error, generate_main_input, parse_program};
use leo_typed::InputValue; use leo_core_ast::InputValue;
#[test] #[test]
fn test_log() { fn test_log() {

View File

@ -23,8 +23,8 @@ use crate::{
parse_program_with_input, parse_program_with_input,
}; };
use leo_core_ast::InputValue;
use leo_input::types::{IntegerType, U8Type, UnsignedIntegerType}; use leo_input::types::{IntegerType, U8Type, UnsignedIntegerType};
use leo_typed::InputValue;
use rand::{Rng, SeedableRng}; use rand::{Rng, SeedableRng};
use rand_xorshift::XorShiftRng; use rand_xorshift::XorShiftRng;
use snarkos_algorithms::prf::blake2s::Blake2s as B2SPRF; use snarkos_algorithms::prf::blake2s::Blake2s as B2SPRF;

View File

@ -15,7 +15,7 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{assert_satisfied, expect_compiler_error, generate_main_input, parse_program}; use crate::{assert_satisfied, expect_compiler_error, generate_main_input, parse_program};
use leo_typed::InputValue; use leo_core_ast::InputValue;
use snarkos_curves::edwards_bls12::Fq; use snarkos_curves::edwards_bls12::Fq;
use snarkos_utilities::bytes::ToBytes; use snarkos_utilities::bytes::ToBytes;

View File

@ -15,15 +15,10 @@
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>. // along with the Leo library. If not, see <https://www.gnu.org/licenses/>.
use crate::{ use crate::{
assert_satisfied, assert_satisfied, expect_compiler_error, expect_synthesis_error, field::field_to_decimal_string,
expect_compiler_error, generate_main_input, parse_program, parse_program_with_input,
expect_synthesis_error,
field::field_to_decimal_string,
generate_main_input,
parse_program,
parse_program_with_input,
}; };
use leo_typed::{GroupCoordinate, GroupTuple, GroupValue, InputValue, Span}; use leo_core_ast::{GroupCoordinate, GroupTuple, GroupValue, InputValue, Span};
use snarkos_curves::edwards_bls12::EdwardsAffine; use snarkos_curves::edwards_bls12::EdwardsAffine;

View File

@ -21,8 +21,8 @@ use crate::{
integers::{expect_computation_error, expect_parsing_error, IntegerTester}, integers::{expect_computation_error, expect_parsing_error, IntegerTester},
parse_program, parse_program,
}; };
use leo_core_ast::InputValue;
use leo_input::types::{I128Type, IntegerType, SignedIntegerType}; use leo_input::types::{I128Type, IntegerType, SignedIntegerType};
use leo_typed::InputValue;
test_int!( test_int!(
TestI128, TestI128,

View File

@ -21,8 +21,8 @@ use crate::{
integers::{expect_computation_error, expect_parsing_error, IntegerTester}, integers::{expect_computation_error, expect_parsing_error, IntegerTester},
parse_program, parse_program,
}; };
use leo_core_ast::InputValue;
use leo_input::types::{I16Type, IntegerType, SignedIntegerType}; use leo_input::types::{I16Type, IntegerType, SignedIntegerType};
use leo_typed::InputValue;
test_int!( test_int!(
TestI16, TestI16,

View File

@ -21,8 +21,8 @@ use crate::{
integers::{expect_computation_error, expect_parsing_error, IntegerTester}, integers::{expect_computation_error, expect_parsing_error, IntegerTester},
parse_program, parse_program,
}; };
use leo_core_ast::InputValue;
use leo_input::types::{I32Type, IntegerType, SignedIntegerType}; use leo_input::types::{I32Type, IntegerType, SignedIntegerType};
use leo_typed::InputValue;
test_int!( test_int!(
TestI32, TestI32,

View File

@ -21,8 +21,8 @@ use crate::{
integers::{expect_computation_error, expect_parsing_error, IntegerTester}, integers::{expect_computation_error, expect_parsing_error, IntegerTester},
parse_program, parse_program,
}; };
use leo_core_ast::InputValue;
use leo_input::types::{I64Type, IntegerType, SignedIntegerType}; use leo_input::types::{I64Type, IntegerType, SignedIntegerType};
use leo_typed::InputValue;
test_int!( test_int!(
TestI64, TestI64,

View File

@ -21,8 +21,8 @@ use crate::{
integers::{expect_computation_error, expect_parsing_error, IntegerTester}, integers::{expect_computation_error, expect_parsing_error, IntegerTester},
parse_program, parse_program,
}; };
use leo_core_ast::InputValue;
use leo_input::types::{I8Type, IntegerType, SignedIntegerType}; use leo_input::types::{I8Type, IntegerType, SignedIntegerType};
use leo_typed::InputValue;
test_int!( test_int!(
TestI8, TestI8,

View File

@ -21,8 +21,8 @@ use crate::{
integers::{expect_parsing_error, IntegerTester}, integers::{expect_parsing_error, IntegerTester},
parse_program, parse_program,
}; };
use leo_core_ast::InputValue;
use leo_input::types::{IntegerType, U128Type, UnsignedIntegerType}; use leo_input::types::{IntegerType, U128Type, UnsignedIntegerType};
use leo_typed::InputValue;
test_uint!( test_uint!(
TestU128, TestU128,

View File

@ -21,8 +21,8 @@ use crate::{
integers::{expect_parsing_error, IntegerTester}, integers::{expect_parsing_error, IntegerTester},
parse_program, parse_program,
}; };
use leo_core_ast::InputValue;
use leo_input::types::{IntegerType, U16Type, UnsignedIntegerType}; use leo_input::types::{IntegerType, U16Type, UnsignedIntegerType};
use leo_typed::InputValue;
test_uint!( test_uint!(
TestU16, TestU16,

View File

@ -21,8 +21,8 @@ use crate::{
integers::{expect_parsing_error, IntegerTester}, integers::{expect_parsing_error, IntegerTester},
parse_program, parse_program,
}; };
use leo_core_ast::InputValue;
use leo_input::types::{IntegerType, U32Type, UnsignedIntegerType}; use leo_input::types::{IntegerType, U32Type, UnsignedIntegerType};
use leo_typed::InputValue;
test_uint!( test_uint!(
TestU32, TestU32,

View File

@ -21,8 +21,8 @@ use crate::{
integers::{expect_parsing_error, IntegerTester}, integers::{expect_parsing_error, IntegerTester},
parse_program, parse_program,
}; };
use leo_core_ast::InputValue;
use leo_input::types::{IntegerType, U64Type, UnsignedIntegerType}; use leo_input::types::{IntegerType, U64Type, UnsignedIntegerType};
use leo_typed::InputValue;
test_uint!( test_uint!(
TestU64, TestU64,

Some files were not shown because too many files have changed in this diff Show More