Checking solana_rust_bot v0.1.0 (C:\solana_rust_bot)
error: cannot find macro json in this scope
--> src/lib.rs:288:22
|
288 | let trades = json!({
| ^^^^
|
help: consider importing this macro
|
1 + use serde_json::json;
|
error[E0603]: struct Transaction is private
--> src/lib.rs:259:33
|
259 | system_transaction::Transaction::new(&[&self.keypair], message, blockhash);
| ^^^^^^^^^^^ private struct
|
note: the struct Transaction is defined here
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\solana-sdk-1.18.26\src\system_transaction.rs:10:5
|
10 | transaction::Transaction,
| ^^^^^^^^^^^^^^^^^^^^^^^^
help: consider importing this struct instead
|
259 | solana_sdk::transaction::Transaction::new(&[&self.keypair], message, blockhash);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: import Transaction directly
|
259 | solana_sdk::transaction::Transaction(&[&self.keypair], message, blockhash);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: unused imports: error, info, and warn
--> src/lib.rs:1:11
|
1 | use log::{error, info, warn};
| ^^^^^ ^^^^ ^^^^
|
= note: #[warn(unused_imports)] on by default
error[E0728]: await is only allowed inside async functions and blocks
--> src/lib.rs:252:14
|
252 | .await
| ^^^^^ only allowed inside async functions and blocks
error[E0728]: await is only allowed inside async functions and blocks
--> src/lib.rs:272:14
|
272 | .await
| ^^^^^ only allowed inside async functions and blocks
error[E0728]: await is only allowed inside async functions and blocks
--> src/lib.rs:306:14
|
306 | .await
| ^^^^^ only allowed inside async functions and blocks
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:136:33
|
136 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| ^^^ ------------------------------ supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
136 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyValueError, A>(e))?;
| +++
error[E0277]: the trait bound bs58::decode::Error: pyo3::PyErrArguments is not satisfied
--> src/lib.rs:136:71
|
136 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| -------------------------------------------- ^ the trait pyo3::IntoPy<pyo3::Py<pyo3::PyAny>> is not implemented for bs58::decode::Error, which is required by bs58::decode::Error: pyo3::PyErrArguments
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait pyo3::IntoPy<T>:
&'a [u8] implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a pyo3::PyErr implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::ffi::OsString implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::Path implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::PathBuf implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::string::String implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::types::PyString>>
and 188 others
= note: required for bs58::decode::Error to implement pyo3::PyErrArguments
note: required by a bound in pyo3::PyErr::new
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:121:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| --- required by a bound in this associated function
...
121 | A: PyErrArguments + Send + Sync + 'static,
| ^^^^^^^^^^^^^^ required by this bound in PyErr::new
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:139:33
|
139 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| ^^^ ------------------------------ supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
139 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyValueError, A>(e))?;
| +++
error[E0277]: the trait bound signature::error::Error: pyo3::PyErrArguments is not satisfied
--> src/lib.rs:139:71
|
139 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| -------------------------------------------- ^ the trait pyo3::IntoPy<pyo3::Py<pyo3::PyAny>> is not implemented for signature::error::Error, which is required by signature::error::Error: pyo3::PyErrArguments
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait pyo3::IntoPy<T>:
&'a [u8] implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a pyo3::PyErr implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::ffi::OsString implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::Path implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::PathBuf implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::string::String implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::types::PyString>>
and 188 others
= note: required for signature::error::Error to implement pyo3::PyErrArguments
note: required by a bound in pyo3::PyErr::new
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:121:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| --- required by a bound in this associated function
...
121 | A: PyErrArguments + Send + Sync + 'static,
| ^^^^^^^^^^^^^^ required by this bound in PyErr::new
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:158:47
|
158 | Runtime::new().map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?;
| ^^^ -------------------------------- supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
158 | Runtime::new().map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, A>(e))?;
| +++
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:181:37
|
181 | .map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?
| ^^^ -------------------------------- supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
181 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, A>(e))?
| +++
error[E0277]: the trait bound reqwest::Error: pyo3::PyErrArguments is not satisfied
--> src/lib.rs:181:77
|
181 | .map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?
| ---------------------------------------------- ^ the trait pyo3::IntoPy<pyo3::Py<pyo3::PyAny>> is not implemented for reqwest::Error, which is required by reqwest::Error: pyo3::PyErrArguments
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait pyo3::IntoPy<T>:
&'a [u8] implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a pyo3::PyErr implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::ffi::OsString implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::Path implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::PathBuf implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::string::String implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::types::PyString>>
and 188 others
= note: required for reqwest::Error to implement pyo3::PyErrArguments
note: required by a bound in pyo3::PyErr::new
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:121:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| --- required by a bound in this associated function
...
121 | A: PyErrArguments + Send + Sync + 'static,
| ^^^^^^^^^^^^^^ required by this bound in PyErr::new
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:184:37
|
184 | .map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?
| ^^^ -------------------------------- supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
184 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, A>(e))?
| +++
error[E0277]: the trait bound reqwest::Error: pyo3::PyErrArguments is not satisfied
--> src/lib.rs:184:77
|
184 | .map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?
| ---------------------------------------------- ^ the trait pyo3::IntoPy<pyo3::Py<pyo3::PyAny>> is not implemented for reqwest::Error, which is required by reqwest::Error: pyo3::PyErrArguments
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait pyo3::IntoPy<T>:
&'a [u8] implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a pyo3::PyErr implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::ffi::OsString implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::Path implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::PathBuf implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::string::String implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::types::PyString>>
and 188 others
= note: required for reqwest::Error to implement pyo3::PyErrArguments
note: required by a bound in pyo3::PyErr::new
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:121:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| --- required by a bound in this associated function
...
121 | A: PyErrArguments + Send + Sync + 'static,
| ^^^^^^^^^^^^^^ required by this bound in PyErr::new
error[E0277]: the ? operator can only be used in an async block that returns Result or Option (or another type that implements std::ops::FromResidual)
--> src/lib.rs:181:80
|
175 | let response = runtime.block_on(async {
| ----- this function should return Result or Option to accept ?
...
181 | .map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?
| ^ cannot use the ? operator in an async block that returns u64
|
= help: the trait std::ops::FromResidual<std::result::Result<std::convert::Infallible, pyo3::PyErr>> is not implemented for u64
error[E0277]: the ? operator can only be used in an async block that returns Result or Option (or another type that implements std::ops::FromResidual)
--> src/lib.rs:184:80
|
175 | let response = runtime.block_on(async {
| ----- this function should return Result or Option to accept ?
...
184 | .map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?
| ^ cannot use the ? operator in an async block that returns u64
|
= help: the trait std::ops::FromResidual<std::result::Result<std::convert::Infallible, pyo3::PyErr>> is not implemented for u64
error[E0277]: the ? operator can only be applied to values that implement std::ops::Try
--> src/lib.rs:175:24
|
175 | let response = runtime.block_on(async {
| ____________________^
176 | | client
177 | | .post(MARGA_RPC_URL)
178 | | .json(&request)
... |
186 | | .priority_fee_estimate as u64
187 | | })?;
| |_______^ the ? operator cannot be applied to type u64
|
= help: the trait std::ops::Try is not implemented for u64
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:223:33
|
223 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| ^^^ ------------------------------ supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
223 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyValueError, A>(e))?;
| +++
error[E0277]: the trait bound serde_json::Error: pyo3::PyErrArguments is not satisfied
--> src/lib.rs:223:71
|
223 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| -------------------------------------------- ^ the trait pyo3::IntoPy<pyo3::Py<pyo3::PyAny>> is not implemented for serde_json::Error, which is required by serde_json::Error: pyo3::PyErrArguments
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait pyo3::IntoPy<T>:
&'a [u8] implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a pyo3::PyErr implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::ffi::OsString implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::Path implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::PathBuf implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::string::String implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::types::PyString>>
and 188 others
= note: required for serde_json::Error to implement pyo3::PyErrArguments
note: required by a bound in pyo3::PyErr::new
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:121:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| --- required by a bound in this associated function
...
121 | A: PyErrArguments + Send + Sync + 'static,
| ^^^^^^^^^^^^^^ required by this bound in PyErr::new
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:237:33
|
237 | .map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?;
| ^^^ -------------------------------- supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
237 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, A>(e))?;
| +++
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:241:33
|
241 | .map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?;
| ^^^ -------------------------------- supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
241 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, A>(e))?;
| +++
error[E0308]: mismatched types
--> src/lib.rs:246:13
|
246 | swap_ix,
| ^^^^^^^ expected Instruction, found Vec<u8>
|
= note: expected struct solana_sdk::instruction::Instruction
found struct std::vec::Vec<u8>
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:253:33
|
253 | .map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?;
| ^^^ -------------------------------- supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
253 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, A>(e))?;
| +++
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:273:33
|
273 | .map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?;
| ^^^ -------------------------------- supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
273 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, A>(e))?;
| +++
error[E0599]: no method named map_err found for opaque type impl std::future::Future<Output = std::result::Result<u64, solana_client::client_error::ClientError>> in the current scope
--> src/lib.rs:282:14
|
279 | let balance = self
| _______________________-
280 | | .rpc_client
281 | | .get_balance(&self.keypair.pubkey())
282 | | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| | -^^^^^^^ method not found in impl Future<Output = Result<u64, ClientError>>
| |_____________|
|
|
::: C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\futures-util-0.3.31\src\future\try_future\mod.rs:308:8
|
308 | fn map_err<E, F>(self, f: F) -> MapErr<Self, F>
| ------- the method is available for impl std::future::Future<Output = std::result::Result<u64, solana_client::client_error::ClientError>> here
|
= help: items from traits can only be used if the trait is in scope
help: consider awaiting on the Future and calling the method on its Output
|
282 | .await.map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| ++++++
help: trait TryFutureExt which provides map_err is implemented but not in scope; perhaps you want to import it
|
1 + use futures_util::future::try_future::TryFutureExt;
|
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:282:33
|
282 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| ^^^ ------------------------------ supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
282 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyValueError, A>(e))?;
| +++
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:301:33
|
301 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| ^^^ ------------------------------ supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
301 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyValueError, A>(e))?;
| +++
error[E0277]: the trait bound solana_sdk::pubkey::ParsePubkeyError: pyo3::PyErrArguments is not satisfied
--> src/lib.rs:301:71
|
301 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| -------------------------------------------- ^ the trait pyo3::IntoPy<pyo3::Py<pyo3::PyAny>> is not implemented for solana_sdk::pubkey::ParsePubkeyError, which is required by solana_sdk::pubkey::ParsePubkeyError: pyo3::PyErrArguments
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait pyo3::IntoPy<T>:
&'a [u8] implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a pyo3::PyErr implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::ffi::OsString implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::Path implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::PathBuf implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::string::String implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::types::PyString>>
and 188 others
= note: required for solana_sdk::pubkey::ParsePubkeyError to implement pyo3::PyErrArguments
note: required by a bound in pyo3::PyErr::new
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:121:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| --- required by a bound in this associated function
...
121 | A: PyErrArguments + Send + Sync + 'static,
| ^^^^^^^^^^^^^^ required by this bound in PyErr::new
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:307:33
|
307 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?;
| ^^^ ------------------------------ supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
307 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyValueError, A>(e))?;
| +++
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:319:33
|
319 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?)
| ^^^ ------------------------------ supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
319 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyValueError, A>(e))?)
| +++
error[E0277]: the trait bound serde_json::Error: pyo3::PyErrArguments is not satisfied
--> src/lib.rs:319:71
|
319 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?)
| -------------------------------------------- ^ the trait pyo3::IntoPy<pyo3::Py<pyo3::PyAny>> is not implemented for serde_json::Error, which is required by serde_json::Error: pyo3::PyErrArguments
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait pyo3::IntoPy<T>:
&'a [u8] implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a pyo3::PyErr implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::ffi::OsString implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::Path implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::PathBuf implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::string::String implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::types::PyString>>
and 188 others
= note: required for serde_json::Error to implement pyo3::PyErrArguments
note: required by a bound in pyo3::PyErr::new
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:121:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| --- required by a bound in this associated function
...
121 | A: PyErrArguments + Send + Sync + 'static,
| ^^^^^^^^^^^^^^ required by this bound in PyErr::new
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:329:37
|
329 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?)
| ^^^ ------------------------------ supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
329 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyValueError, A>(e))?)
| +++
error[E0277]: the trait bound serde_json::Error: pyo3::PyErrArguments is not satisfied
--> src/lib.rs:329:75
|
329 | .map_err(|e| PyErr::new::pyo3::exceptions::PyValueError(e))?)
| -------------------------------------------- ^ the trait pyo3::IntoPy<pyo3::Py<pyo3::PyAny>> is not implemented for serde_json::Error, which is required by serde_json::Error: pyo3::PyErrArguments
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait pyo3::IntoPy<T>:
&'a [u8] implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a pyo3::PyErr implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::ffi::OsString implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::Path implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::path::PathBuf implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a std::string::String implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::PyAny>>
&'a str implements pyo3::IntoPy<pyo3::Py<pyo3::types::PyString>>
and 188 others
= note: required for serde_json::Error to implement pyo3::PyErrArguments
note: required by a bound in pyo3::PyErr::new
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:121:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| --- required by a bound in this associated function
...
121 | A: PyErrArguments + Send + Sync + 'static,
| ^^^^^^^^^^^^^^ required by this bound in PyErr::new
error[E0107]: associated function takes 2 generic arguments but 1 generic argument was supplied
--> src/lib.rs:377:33
|
377 | .map_err(|e| PyErr::new::pyo3::exceptions::PyRuntimeError(e))?;
| ^^^ -------------------------------- supplied 1 generic argument
| |
| expected 2 generic arguments
|
note: associated function defined here, with 2 generic parameters: T, A
--> C:\Users\Orsen.cargo\registry\src\index.crates.io-6f17d22bba15001f\pyo3-0.18.3\src\err\mod.rs:118:12
|
118 | pub fn new<T, A>(args: A) -> PyErr
| ^^^ - -
help: add missing generic argument
|
377 | .map_err(|e| PyErr::new::<pyo3::exceptions::PyRuntimeError, A>(e))?;
| +++
error[E0277]: the trait bound pyo3::PyErr: std::convert::From<std::string::String> is not satisfied
--> src/lib.rs:130:1
|
130 | #[pymethods]
| ^^^^^^^^^^^^ the trait std::convert::From<std::string::String> is not implemented for pyo3::PyErr, which is required by std::string::String: std::convert::Into<pyo3::PyErr>
|
= help: the following other types implement trait std::convert::From<T>:
pyo3::PyErr implements std::convert::From<&pyo3::exceptions::PyArithmeticError>
pyo3::PyErr implements std::convert::From<&pyo3::exceptions::PyAssertionError>
pyo3::PyErr implements std::convert::From<&pyo3::exceptions::PyAttributeError>
pyo3::PyErr implements std::convert::From<&pyo3::exceptions::PyBaseException>
pyo3::PyErr implements std::convert::From<&pyo3::exceptions::PyBlockingIOError>
pyo3::PyErr implements std::convert::From<&pyo3::exceptions::PyBrokenPipeError>
pyo3::PyErr implements std::convert::From<&pyo3::exceptions::PyBufferError>
pyo3::PyErr implements std::convert::From<&pyo3::exceptions::PyBytesWarning>
and 88 others
= note: required for std::string::String to implement std::convert::Into<pyo3::PyErr>
= note: this error originates in the attribute macro pymethods (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unused variable: raydium_program_id
--> src/lib.rs:204:13
|
204 | let raydium_program_id = Pubkey::from_str(RAYDIUM_PROGRAM_ID)
| ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _raydium_program_id
|
= note: #[warn(unused_variables)] on by default
warning: unused variable: accounts
--> src/lib.rs:207:13
|
207 | let accounts = vec![
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: _accounts
Some errors have detailed explanations: E0107, E0277, E0308, E0599, E0603, E0728.
For more information about an error, try rustc --explain E0107.
warning: solana_rust_bot (lib) generated 3 warnings
error: could not compile solana_rust_bot (lib) due to 35 previous errors; 3 warnings emitted