Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[E0433]: failed to resolve: could not find console in snarkvm #18

Open
peterwillcn opened this issue Jul 23, 2024 · 0 comments
Open

[E0433]: failed to resolve: could not find console in snarkvm #18

peterwillcn opened this issue Jul 23, 2024 · 0 comments

Comments

@peterwillcn
Copy link

error[E0433]: failed to resolve: could not find console in snarkvm
--> src/api.rs:4:15
|
4 | use snarkvm::{console::account::address::Address, prelude::Testnet3};
| ^^^^^^^ could not find console in snarkvm

error[E0432]: unresolved imports snarkvm::prelude::PuzzleCommitment, snarkvm::prelude::Testnet3
--> src/accounting.rs:17:24
|
17 | use snarkvm::prelude::{PuzzleCommitment, Testnet3};
| ^^^^^^^^^^^^^^^^ ^^^^^^^^ no Testnet3 in prelude
| |
| no PuzzleCommitment in prelude

error[E0433]: failed to resolve: could not find console in snarkvm
--> src/connection.rs:15:5
|
15 | console::account::address::Address,
| ^^^^^^^ could not find console in snarkvm

error[E0432]: unresolved import snarkvm::prelude::Testnet3
--> src/api.rs:4:51
|
4 | use snarkvm::{console::account::address::Address, prelude::Testnet3};
| ^^^^^^^^^^^^^^^^^ no Testnet3 in prelude

error[E0433]: failed to resolve: could not find polycommit in snarkvm_algorithms
--> src/connection.rs:18:25
|
18 | use snarkvm_algorithms::polycommit::kzg10::{KZGCommitment, KZGProof};
| ^^^^^^^^^^ could not find polycommit in snarkvm_algorithms

error[E0432]: unresolved imports snarkvm::prelude::Environment, snarkvm::prelude::Testnet3
--> src/connection.rs:16:15
|
16 | prelude::{Environment, FromBytes, Testnet3},
| ^^^^^^^^^^^ ^^^^^^^^ no Testnet3 in prelude
| |
| no Environment in prelude

error[E0433]: failed to resolve: could not find console in snarkvm
--> src/server.rs:20:5
|
20 | console::account::address::Address,
| ^^^^^^^ could not find console in snarkvm

error[E0432]: unresolved imports snarkvm::circuit, snarkvm::prelude::Environment, snarkvm::prelude::PartialSolution, snarkvm::prelude::ProverSolution, snarkvm::prelude::Testnet3, snarkvm::synthesizer
--> src/server.rs:19:5
|
19 | circuit::PrimeField,
| ^^^^^^^ could not find circuit in snarkvm
20 | console::account::address::Address,
21 | prelude::{Environment, PartialSolution, ProverSolution, Testnet3, ToBytes},
| ^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^ no Testnet3 in prelude
| | | |
| | | no ProverSolution in prelude
| | no PartialSolution in prelude
| no Environment in prelude
22 | synthesizer::{CoinbasePuzzle, EpochChallenge, PuzzleCommitment, PuzzleConfig, UniversalSRS},
| ^^^^^^^^^^^ could not find synthesizer in snarkvm

error[E0433]: failed to resolve: could not find polycommit in snarkvm_algorithms
--> src/server.rs:28:5
|
28 | polycommit::kzg10::{KZGCommitment, KZGProof, KZG10},
| ^^^^^^^^^^ could not find polycommit in snarkvm_algorithms

error[E0432]: unresolved import snarkvm_algorithms::crypto_hash::sha256d_to_u64
--> src/server.rs:26:5
|
26 | crypto_hash::sha256d_to_u64,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ no sha256d_to_u64 in crypto_hash

error[E0433]: failed to resolve: could not find console in snarkvm
--> src/main.rs:17:15
|
17 | use snarkvm::{console::account::address::Address, prelude::Testnet3};
| ^^^^^^^ could not find console in snarkvm

error[E0432]: unresolved imports snarkvm::prelude::Testnet3, snarkvm::synthesizer
--> src/validator_peer.rs:24:35
|
24 | prelude::{FromBytes, Network, Testnet3},
| ^^^^^^^^ no Testnet3 in prelude
25 | synthesizer::Block,
| ^^^^^^^^^^^ could not find synthesizer in snarkvm

error[E0432]: unresolved import snarkvm::prelude::Testnet3
--> src/main.rs:17:51
|
17 | use snarkvm::{console::account::address::Address, prelude::Testnet3};
| ^^^^^^^^^^^^^^^^^ no Testnet3 in prelude

error[E0432]: unresolved import snarkos_node_messages
--> src/server.rs:17:5
|
17 | use snarkos_node_messages::{Data, UnconfirmedSolution};
| ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module snarkos_node_messages

error[E0432]: unresolved import snarkos_node_messages
--> src/validator_peer.rs:12:5
|
12 | use snarkos_node_messages::{
| ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module snarkos_node_messages

warning: unused import: info
--> src/accounting.rs:26:29
|
26 | use tracing::{debug, error, info};
| ^^^^
|
= note: #[warn(unused_imports)] on by default

warning: unused import: str::FromStr
--> src/connection.rs:3:5
|
3 | str::FromStr,
| ^^^^^^^^^^^^

warning: unused import: FromBytes
--> src/connection.rs:16:28
|
16 | prelude::{Environment, FromBytes, Testnet3},
| ^^^^^^^^^

warning: unused imports: FromBytes, Network
--> src/validator_peer.rs:24:15
|
24 | prelude::{FromBytes, Network, Testnet3},
| ^^^^^^^^^ ^^^^^^^

error[E0282]: type annotations needed
--> src/api.rs:109:9
|
109 | Ok(reply::with_status(json(&pplns), warp::http::StatusCode::OK))
| ^^ cannot infer type of the type parameter E declared on the enum Result
|
help: consider specifying the generic arguments
|
109 | Ok::<WithStatus, E>(reply::with_status(json(&pplns), warp::http::StatusCode::OK))
| +++++++++++++++++++++++

error[E0433]: failed to resolve: use of undeclared crate or module snarkos_node_messages
--> src/validator_peer.rs:49:34
|
49 | pub(crate) type SnarkOSMessage = snarkos_node_messages::Message;
| ^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module snarkos_node_messages

Some errors have detailed explanations: E0282, E0432, E0433.
For more information about an error, try rustc --explain E0282.
warning: aleo-pool-server (bin "aleo-pool-server") generated 4 warnings
error: could not compile aleo-pool-server (bin "aleo-pool-server") due to 17 previous errors; 4 warnings emitted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant