Complete migration to leo_typed

This commit is contained in:
howardwu 2020-08-01 16:03:56 -07:00
parent 74b3647411
commit f6dcd7f9c2
95 changed files with 95 additions and 95 deletions

View File

@ -9,7 +9,7 @@ use crate::{
};
use leo_ast::LeoAst;
use leo_inputs::LeoInputsParser;
use leo_types::{InputValue, Inputs, LeoTypedAst, Program};
use leo_typed::{InputValue, Inputs, LeoTypedAst, Program};
use snarkos_errors::gadgets::SynthesisError;
use snarkos_models::{

View File

@ -1,7 +1,7 @@
//! Generates R1CS constraints for a compiled Leo program.
use crate::{errors::CompilerError, new_scope, ConstrainedProgram, ConstrainedValue, GroupType, ImportParser};
use leo_types::{InputValue, Program};
use leo_typed::{InputValue, Program};
use snarkos_models::{
curves::{Field, PrimeField},

View File

@ -5,7 +5,7 @@ use crate::{
value::ConstrainedValue,
GroupType,
};
use leo_types::Variable;
use leo_typed::Variable;
use snarkos_models::curves::{Field, PrimeField};

View File

@ -7,7 +7,7 @@ use crate::{
GroupType,
ImportParser,
};
use leo_types::Program;
use leo_typed::Program;
use snarkos_models::curves::{Field, PrimeField};

View File

@ -1,5 +1,5 @@
use crate::errors::{AddressError, BooleanError, FieldError, FunctionError, GroupError, IntegerError, ValueError};
use leo_types::{Error as FormattedError, Identifier, Span};
use leo_typed::{Error as FormattedError, Identifier, Span};
use snarkos_errors::gadgets::SynthesisError;
use std::path::PathBuf;

View File

@ -8,7 +8,7 @@ use crate::errors::{
StatementError,
ValueError,
};
use leo_types::{Error as FormattedError, Span};
use leo_typed::{Error as FormattedError, Span};
use std::path::PathBuf;

View File

@ -1,5 +1,5 @@
use leo_ast::ParserError;
use leo_types::{Error as FormattedError, Identifier, ImportSymbol, Span};
use leo_typed::{Error as FormattedError, Identifier, ImportSymbol, Span};
use std::{io, path::PathBuf};

View File

@ -1,5 +1,5 @@
use crate::errors::ExpressionError;
use leo_types::{Error as FormattedError, Span};
use leo_typed::{Error as FormattedError, Span};
use std::path::PathBuf;

View File

@ -1,5 +1,5 @@
use crate::errors::{AddressError, BooleanError, ExpressionError, IntegerError, MacroError, ValueError};
use leo_types::{Error as FormattedError, Span, Type};
use leo_typed::{Error as FormattedError, Span, Type};
use std::path::PathBuf;

View File

@ -1,4 +1,4 @@
use leo_types::{Error as FormattedError, Span};
use leo_typed::{Error as FormattedError, Span};
use snarkos_errors::{gadgets::SynthesisError, objects::account::AccountError};
use std::path::PathBuf;

View File

@ -1,4 +1,4 @@
use leo_types::{Error as FormattedError, Span};
use leo_typed::{Error as FormattedError, Span};
use snarkos_errors::gadgets::SynthesisError;
use std::path::PathBuf;

View File

@ -1,4 +1,4 @@
use leo_types::{Error as FormattedError, Span};
use leo_typed::{Error as FormattedError, Span};
use snarkos_errors::gadgets::SynthesisError;
use std::path::PathBuf;

View File

@ -1,4 +1,4 @@
use leo_types::{Error as FormattedError, Span};
use leo_typed::{Error as FormattedError, Span};
use snarkos_errors::gadgets::SynthesisError;
use std::path::PathBuf;

View File

@ -1,5 +1,5 @@
use leo_gadgets::errors::SignedIntegerError;
use leo_types::{error::Error as FormattedError, Span};
use leo_typed::{error::Error as FormattedError, Span};
use snarkos_errors::gadgets::SynthesisError;
use std::path::PathBuf;

View File

@ -1,5 +1,5 @@
use crate::errors::{AddressError, BooleanError, FieldError, GroupError, IntegerError};
use leo_types::{Error as FormattedError, Span};
use leo_typed::{Error as FormattedError, Span};
use std::path::PathBuf;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@ use crate::{
value::{ConstrainedCircuitMember, ConstrainedValue},
GroupType,
};
use leo_types::{CircuitFieldDefinition, CircuitMember, Identifier, Span};
use leo_typed::{CircuitFieldDefinition, CircuitMember, Identifier, Span};
use snarkos_models::{
curves::{Field, PrimeField},

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_gadgets::bits::ComparatorGadget;
use leo_types::Span;
use leo_typed::Span;
use snarkos_models::{
curves::{Field, PrimeField},

View File

@ -2,7 +2,7 @@
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_gadgets::bits::ComparatorGadget;
use leo_types::Span;
use leo_typed::Span;
use snarkos_models::{
curves::{Field, PrimeField},

View File

@ -2,7 +2,7 @@
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_gadgets::bits::ComparatorGadget;
use leo_types::Span;
use leo_typed::Span;
use snarkos_models::{
curves::{Field, PrimeField},

View File

@ -2,7 +2,7 @@
use crate::{errors::ExpressionError, value::ConstrainedValue, GroupType};
use leo_gadgets::bits::comparator::EvaluateLtGadget;
use leo_types::Span;
use leo_typed::Span;
use snarkos_models::{
curves::{Field, PrimeField},

View File

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

View File

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

View File

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

View File

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

View File

@ -8,7 +8,7 @@ use crate::{
GroupType,
};
use leo_types::{Expression, Function, InputValue};
use leo_typed::{Expression, Function, InputValue};
use snarkos_models::{
curves::{Field, PrimeField},

View File

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

View File

@ -1,5 +1,5 @@
use crate::errors::ImportError;
use leo_types::Program;
use leo_typed::Program;
use std::{collections::HashMap, env::current_dir};

View File

@ -1,5 +1,5 @@
use crate::{errors::ImportError, ImportParser};
use leo_types::{Package, PackageAccess};
use leo_typed::{Package, PackageAccess};
use std::{fs, fs::DirEntry, path::PathBuf};

View File

@ -1,6 +1,6 @@
use crate::{errors::ImportError, ImportParser};
use leo_ast::LeoAst;
use leo_types::{ImportSymbol, Program, Span};
use leo_typed::{ImportSymbol, Program, Span};
use std::{ffi::OsString, fs::DirEntry, path::PathBuf};

View File

@ -1,5 +1,5 @@
use crate::{errors::ImportError, imported_symbols::ImportedSymbols, ConstrainedProgram, GroupType, ImportParser};
use leo_types::Import;
use leo_typed::Import;
use snarkos_models::curves::{Field, PrimeField};

View File

@ -1,4 +1,4 @@
use leo_types::{Import, ImportSymbol, Package, PackageAccess};
use leo_typed::{Import, ImportSymbol, Package, PackageAccess};
/// Stores the the package file name and imported symbol from an import statement
#[derive(Debug)]

View File

@ -1,5 +1,5 @@
use crate::{errors::ImportError, new_scope, ConstrainedProgram, ConstrainedValue, GroupType};
use leo_types::{ImportSymbol, Program};
use leo_typed::{ImportSymbol, Program};
use snarkos_models::curves::{Field, PrimeField};

View File

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

View File

@ -1,7 +1,7 @@
//! Evaluates a macro in a compiled Leo program.
use crate::{errors::MacroError, program::ConstrainedProgram, GroupType};
use leo_types::{FormattedMacro, MacroName};
use leo_typed::{FormattedMacro, MacroName};
use snarkos_models::{
curves::{Field, PrimeField},

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,7 +1,7 @@
//! Enforces a branch of a conditional or iteration statement in a compiled Leo program.
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_types::{Statement, Type};
use leo_typed::{Statement, Type};
use snarkos_models::{
curves::{Field, PrimeField},

View File

@ -1,7 +1,7 @@
//! Methods to enforce constraints on statements in a compiled Leo program.
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_types::{ConditionalNestedOrEndStatement, ConditionalStatement, Span, Type};
use leo_typed::{ConditionalNestedOrEndStatement, ConditionalStatement, Span, Type};
use snarkos_models::{
curves::{Field, PrimeField},

View File

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

View File

@ -1,7 +1,7 @@
//! Enforces a multiple definition statement in a compiled Leo program.
use crate::{errors::StatementError, program::ConstrainedProgram, value::ConstrainedValue, GroupType};
use leo_types::{Expression, Span, Variable};
use leo_typed::{Expression, Span, Variable};
use snarkos_models::{
curves::{Field, PrimeField},

View File

@ -8,7 +8,7 @@ use crate::{
GroupType,
Integer,
};
use leo_types::{Expression, Identifier, Span, Statement, Type};
use leo_typed::{Expression, Identifier, Span, Statement, Type};
use snarkos_models::{
curves::{Field, PrimeField},

View File

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

View File

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

View File

@ -1,5 +1,5 @@
use crate::{errors::AddressError, ConstrainedValue, GroupType};
use leo_types::{InputValue, Span};
use leo_typed::{InputValue, Span};
use snarkos_dpc::base_dpc::instantiated::Components;
use snarkos_errors::gadgets::SynthesisError;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
use crate::{errors::GroupError, GroupType};
use leo_types::Span;
use leo_typed::Span;
use snarkos_curves::{
edwards_bls12::{EdwardsAffine, EdwardsParameters, Fq},

View File

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

View File

@ -5,7 +5,7 @@ use leo_gadgets::{
bits::comparator::{ComparatorGadget, EvaluateLtGadget},
signed_integer::*,
};
use leo_types::{InputValue, IntegerType, Span};
use leo_typed::{InputValue, IntegerType, Span};
use snarkos_errors::gadgets::SynthesisError;
use snarkos_models::{

View File

@ -10,7 +10,7 @@ use crate::{
GroupType,
Integer,
};
use leo_types::{Circuit, Function, Identifier, Span, Type};
use leo_typed::{Circuit, Function, Identifier, Span, Type};
use snarkos_errors::gadgets::SynthesisError;
use snarkos_models::{

View File

@ -7,7 +7,7 @@ use crate::{
EdwardsTestCompiler,
};
use leo_compiler::{Address, ConstrainedValue};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_dpc::base_dpc::instantiated::Components;
use snarkos_objects::AccountAddress;

View File

@ -12,7 +12,7 @@ use leo_compiler::{
Integer,
};
use leo_inputs::types::{IntegerType, U32Type};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_models::gadgets::utilities::uint::UInt32;

View File

@ -3,7 +3,7 @@ use leo_compiler::{
errors::{BooleanError, CompilerError, ExpressionError, FunctionError, StatementError},
ConstrainedValue,
};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_models::gadgets::utilities::boolean::Boolean;

View File

@ -12,7 +12,7 @@ use leo_compiler::{
ConstrainedValue,
Integer,
};
use leo_types::{Expression, Function, Identifier, Span, Statement, Type};
use leo_typed::{Expression, Function, Identifier, Span, Statement, Type};
use snarkos_models::gadgets::utilities::uint::UInt32;

View File

@ -11,7 +11,7 @@ use leo_compiler::{
ConstrainedValue,
FieldType,
};
use leo_types::InputValue;
use leo_typed::InputValue;
use num_bigint::BigUint;
use rand::{Rng, SeedableRng};

View File

@ -7,7 +7,7 @@ use crate::{
EdwardsTestCompiler,
};
use leo_compiler::{group::targets::edwards_bls12::EdwardsGroupType, ConstrainedValue};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::{EdwardsAffine, EdwardsParameters, Fq};
use snarkos_gadgets::curves::edwards_bls12::EdwardsBlsGadget;

View File

@ -10,7 +10,7 @@ use crate::{
use leo_compiler::{ConstrainedValue, Integer};
use leo_gadgets::*;
use leo_inputs::types::{I128Type, IntegerType};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};

View File

@ -10,7 +10,7 @@ use crate::{
use leo_compiler::{ConstrainedValue, Integer};
use leo_gadgets::*;
use leo_inputs::types::{I16Type, IntegerType};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};

View File

@ -10,7 +10,7 @@ use crate::{
use leo_compiler::{ConstrainedValue, Integer};
use leo_gadgets::*;
use leo_inputs::types::{I32Type, IntegerType};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};

View File

@ -10,7 +10,7 @@ use crate::{
use leo_compiler::{ConstrainedValue, Integer};
use leo_gadgets::*;
use leo_inputs::types::{I64Type, IntegerType};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};

View File

@ -10,7 +10,7 @@ use crate::{
use leo_compiler::{ConstrainedValue, Integer};
use leo_gadgets::*;
use leo_inputs::types::{I8Type, IntegerType};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::{r1cs::TestConstraintSystem, utilities::alloc::AllocGadget};

View File

@ -9,7 +9,7 @@ use crate::{
};
use leo_compiler::{ConstrainedValue, Integer};
use leo_inputs::types::{IntegerType, U128Type};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::{

View File

@ -9,7 +9,7 @@ use crate::{
};
use leo_compiler::{ConstrainedValue, Integer};
use leo_inputs::types::{IntegerType, U16Type};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::{

View File

@ -9,7 +9,7 @@ use crate::{
};
use leo_compiler::{ConstrainedValue, Integer};
use leo_inputs::types::{IntegerType, U32Type};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::{

View File

@ -9,7 +9,7 @@ use crate::{
};
use leo_compiler::{ConstrainedValue, Integer};
use leo_inputs::types::{IntegerType, U64Type};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::{

View File

@ -9,7 +9,7 @@ use crate::{
};
use leo_compiler::{ConstrainedValue, Integer};
use leo_inputs::types::{IntegerType, U8Type};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::{

View File

@ -1,5 +1,5 @@
use crate::{get_error, get_output, parse_program};
use leo_types::InputValue;
use leo_typed::InputValue;
#[test]
fn test_print() {

View File

@ -6,7 +6,7 @@ use crate::{
EdwardsTestCompiler,
};
use leo_inputs::types::{IntegerType, U32Type};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::r1cs::TestConstraintSystem;

View File

@ -3,7 +3,7 @@ use crate::{
integers::u32::{output_one, output_zero},
parse_program,
};
use leo_types::InputValue;
use leo_typed::InputValue;
use snarkos_curves::edwards_bls12::Fq;
use snarkos_models::gadgets::r1cs::TestConstraintSystem;