lockup 1.1.2

Saber token lockup.
Documentation
Build #2227851 2025-06-15 03:22:48

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version rustc 1.89.0-nightly (49a8ba068 2025-06-14)

# docs.rs version docsrs 0.6.0 (d2911047 2025-05-28)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/lockup-1.1.2/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/lockup-1.1.2/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250614-1.89.0-nightly-49a8ba068\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu" "--config" "build.rustdocflags=[\"-Zmetrics-dir=/opt/rustwide/target/metrics\"]", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 6230757dbf9c659e92cfe349897a866bce26646939f9b7dae8fdfd607b0c319e [INFO] running `Command { std: "docker" "start" "-a" "6230757dbf9c659e92cfe349897a866bce26646939f9b7dae8fdfd607b0c319e", kill_on_drop: false }` [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Checking mint-proxy v1.1.2 [INFO] [stderr] error: cannot find attribute `state` in this scope [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:50:7 [INFO] [stderr] | [INFO] [stderr] 50 | #[state] [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `state` in `instruction` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:29:38 [INFO] [stderr] | [INFO] [stderr] 29 | let ix = crate::instruction::state::PerformMint { amount }; [INFO] [stderr] | ^^^^^ could not find `state` in `instruction` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `PerformMint` in module `crate::cpi::accounts` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:24:62 [INFO] [stderr] | [INFO] [stderr] 24 | ctx: CpiContext<'a, 'b, 'c, 'info, crate::cpi::accounts::PerformMint<'info>>, [INFO] [stderr] | ^^^^^^^^^^^ not found in `crate::cpi::accounts` [INFO] [stderr] | [INFO] [stderr] note: struct `crate::__private::__global::PerformMint` exists but is inaccessible [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:312:1 [INFO] [stderr] | [INFO] [stderr] 312 | pub struct PerformMint<'info> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible [INFO] [stderr] help: consider importing one of these structs [INFO] [stderr] | [INFO] [stderr] 4 + use crate::__client_accounts_perform_mint::PerformMint; [INFO] [stderr] | [INFO] [stderr] 4 + use crate::__cpi_client_accounts_perform_mint::PerformMint; [INFO] [stderr] | [INFO] [stderr] help: if you import `PerformMint`, refer to it directly [INFO] [stderr] | [INFO] [stderr] 24 - ctx: CpiContext<'a, 'b, 'c, 'info, crate::cpi::accounts::PerformMint<'info>>, [INFO] [stderr] 24 + ctx: CpiContext<'a, 'b, 'c, 'info, PerformMint<'info>>, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:70:13 [INFO] [stderr] | [INFO] [stderr] 70 | / require!( [INFO] [stderr] 71 | | ctx.accounts.token_mint.freeze_authority.is_none(), [INFO] [stderr] 72 | | InvalidFreezeAuthority [INFO] [stderr] 73 | | ); [INFO] [stderr] | |_____________^ could not find `ErrorCode` in `$crate` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: consider importing one of these enums [INFO] [stderr] | [INFO] [stderr] 48 + use crate::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use crate::error::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:76:13 [INFO] [stderr] | [INFO] [stderr] 76 | / require!( [INFO] [stderr] 77 | | vipers::validate_derived_address( [INFO] [stderr] 78 | | ctx.accounts.proxy_mint_authority.key, [INFO] [stderr] 79 | | ctx.program_id, [INFO] [stderr] ... | [INFO] [stderr] 82 | | InvalidProxyAuthority [INFO] [stderr] 83 | | ); [INFO] [stderr] | |_____________^ could not find `ErrorCode` in `$crate` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: consider importing one of these enums [INFO] [stderr] | [INFO] [stderr] 48 + use crate::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use crate::error::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:117:13 [INFO] [stderr] | [INFO] [stderr] 117 | require!(ctx.accounts.owner.is_signer, Unauthorized); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `ErrorCode` in `$crate` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: consider importing one of these enums [INFO] [stderr] | [INFO] [stderr] 48 + use crate::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use crate::error::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:118:13 [INFO] [stderr] | [INFO] [stderr] 118 | / require!( [INFO] [stderr] 119 | | self.pending_owner == *ctx.accounts.owner.key, [INFO] [stderr] 120 | | PendingOwnerMismatch [INFO] [stderr] 121 | | ); [INFO] [stderr] | |_____________^ could not find `ErrorCode` in `$crate` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: consider importing one of these enums [INFO] [stderr] | [INFO] [stderr] 48 + use crate::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use crate::error::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:156:13 [INFO] [stderr] | [INFO] [stderr] 156 | require!(minter_info.allowance >= amount, MinterAllowanceExceeded); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `ErrorCode` in `$crate` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: consider importing one of these enums [INFO] [stderr] | [INFO] [stderr] 48 + use crate::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use crate::error::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:159:13 [INFO] [stderr] | [INFO] [stderr] 159 | require!(new_supply <= self.hard_cap, HardcapExceeded); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `ErrorCode` in `$crate` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: consider importing one of these enums [INFO] [stderr] | [INFO] [stderr] 48 + use crate::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use crate::error::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 48 + use anchor_lang::prelude::ErrorCode; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:339:9 [INFO] [stderr] | [INFO] [stderr] 339 | require!(self.minter.is_signer, Unauthorized); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `ErrorCode` in `$crate` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: consider importing one of these enums [INFO] [stderr] | [INFO] [stderr] 4 + use crate::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 4 + use crate::error::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 4 + use anchor_lang::prelude::ErrorCode; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `ErrorCode` in `$crate` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:389:5 [INFO] [stderr] | [INFO] [stderr] 389 | / require!( [INFO] [stderr] 390 | | auth.owner.is_signer && state.owner == *auth.owner.key, [INFO] [stderr] 391 | | Unauthorized [INFO] [stderr] 392 | | ); [INFO] [stderr] | |_____^ could not find `ErrorCode` in `$crate` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `require` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] help: consider importing one of these enums [INFO] [stderr] | [INFO] [stderr] 4 + use crate::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 4 + use crate::error::ErrorCode; [INFO] [stderr] | [INFO] [stderr] 4 + use anchor_lang::prelude::ErrorCode; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:228:21 [INFO] [stderr] | [INFO] [stderr] 228 | pub token_mint: Account<'info, Mint>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stderr] | [INFO] [stderr] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stderr] | [INFO] [stderr] 246 | pub trait AccountSerialize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stderr] | [INFO] [stderr] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stderr] | --------------- this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:228:21 [INFO] [stderr] | [INFO] [stderr] 228 | pub token_mint: Account<'info, Mint>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stderr] | [INFO] [stderr] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stderr] | [INFO] [stderr] 257 | pub trait AccountDeserialize: Sized { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stderr] | [INFO] [stderr] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stderr] | --------------- this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:241:21 [INFO] [stderr] | [INFO] [stderr] 241 | pub token_mint: Account<'info, Mint>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stderr] | [INFO] [stderr] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stderr] | [INFO] [stderr] 246 | pub trait AccountSerialize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stderr] | [INFO] [stderr] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stderr] | --------------- this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:241:21 [INFO] [stderr] | [INFO] [stderr] 241 | pub token_mint: Account<'info, Mint>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stderr] | [INFO] [stderr] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stderr] | [INFO] [stderr] 257 | pub trait AccountDeserialize: Sized { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stderr] | [INFO] [stderr] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stderr] | --------------- this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:322:21 [INFO] [stderr] | [INFO] [stderr] 322 | pub token_mint: Account<'info, Mint>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stderr] | [INFO] [stderr] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stderr] | [INFO] [stderr] 246 | pub trait AccountSerialize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stderr] | [INFO] [stderr] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stderr] | --------------- this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:322:21 [INFO] [stderr] | [INFO] [stderr] 322 | pub token_mint: Account<'info, Mint>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:387:1 [INFO] [stderr] | [INFO] [stderr] 387 | impl anchor_lang::AccountDeserialize for Mint { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stderr] | [INFO] [stderr] 257 | pub trait AccountDeserialize: Sized { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stderr] | [INFO] [stderr] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stderr] | --------------- this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `TokenAccount: anchor_lang::AccountSerialize` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:326:22 [INFO] [stderr] | [INFO] [stderr] 326 | pub destination: Account<'info, TokenAccount>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `TokenAccount` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:364:1 [INFO] [stderr] | [INFO] [stderr] 364 | impl anchor_lang::AccountSerialize for TokenAccount {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stderr] | [INFO] [stderr] 246 | pub trait AccountSerialize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stderr] | [INFO] [stderr] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stderr] | ----------------------- this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `TokenAccount: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:326:22 [INFO] [stderr] | [INFO] [stderr] 326 | pub destination: Account<'info, TokenAccount>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `TokenAccount` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:356:1 [INFO] [stderr] | [INFO] [stderr] 356 | impl anchor_lang::AccountDeserialize for TokenAccount { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:257:1 [INFO] [stderr] | [INFO] [stderr] 257 | pub trait AccountDeserialize: Sized { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:350:1 [INFO] [stderr] | [INFO] [stderr] 350 | pub struct TokenAccount(spl_token::state::Account); [INFO] [stderr] | ----------------------- this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:49 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'info>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:401:6 [INFO] [stderr] | [INFO] [stderr] 401 | ) -> CpiContext<'a, 'b, 'c, 'info, SetAuthority<'info>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::SetAuthority<'info>` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stderr] | [INFO] [stderr] 338 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stderr] | [INFO] [stderr] 154 | pub trait ToAccountMetas { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stderr] | [INFO] [stderr] 339 | pub struct SetAuthority<'info> { [INFO] [stderr] | ------------------------------ this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:8 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ---------- required by a bound in this struct [INFO] [stderr] 172 | where [INFO] [stderr] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stderr] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'info>: anchor_lang::ToAccountInfos<'info>` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:401:6 [INFO] [stderr] | [INFO] [stderr] 401 | ) -> CpiContext<'a, 'b, 'c, 'info, SetAuthority<'info>> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::ToAccountInfos<'info>` is not implemented for `anchor_spl::token::SetAuthority<'info>` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stderr] | [INFO] [stderr] 338 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stderr] | [INFO] [stderr] 166 | pub trait ToAccountInfos<'info> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stderr] | [INFO] [stderr] 339 | pub struct SetAuthority<'info> { [INFO] [stderr] | ------------------------------ this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ---------- required by a bound in this struct [INFO] [stderr] 172 | where [INFO] [stderr] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `freeze_authority` on type `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:71:41 [INFO] [stderr] | [INFO] [stderr] 71 | ctx.accounts.token_mint.freeze_authority.is_none(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^ unknown field [INFO] [stderr] [INFO] [stderr] error[E0308]: arguments to this function are incorrect [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:77:17 [INFO] [stderr] | [INFO] [stderr] 77 | vipers::validate_derived_address( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 78 | ctx.accounts.proxy_mint_authority.key, [INFO] [stderr] | ------------------------------------- expected `Pubkey`, found `__Pubkey` [INFO] [stderr] 79 | ctx.program_id, [INFO] [stderr] | -------------- expected `Pubkey`, found `__Pubkey` [INFO] [stderr] | [INFO] [stderr] = note: `__Pubkey` and `Pubkey` have similar names, but are actually distinct types [INFO] [stderr] note: `__Pubkey` is defined in crate `solana_pubkey` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-pubkey-2.4.0/src/lib.rs:166:1 [INFO] [stderr] | [INFO] [stderr] 166 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] note: `Pubkey` is defined in crate `solana_program` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/pubkey.rs:71:1 [INFO] [stderr] | [INFO] [stderr] 71 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `__Pubkey` and `Pubkey` have similar names, but are actually distinct types [INFO] [stderr] note: `__Pubkey` is defined in crate `solana_pubkey` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-pubkey-2.4.0/src/lib.rs:166:1 [INFO] [stderr] | [INFO] [stderr] 166 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] note: `Pubkey` is defined in crate `solana_program` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/pubkey.rs:71:1 [INFO] [stderr] | [INFO] [stderr] 71 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] note: function defined here [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/vipers-2.0.6/src/lib.rs:38:8 [INFO] [stderr] | [INFO] [stderr] 38 | pub fn validate_derived_address( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: the method `to_account_info` exists for struct `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:88:42 [INFO] [stderr] | [INFO] [stderr] 88 | &ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] | ^^^^^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | --------------------------------------------------------------------------- doesn't satisfy `_: AsRef<AccountInfo<'_>>` or `_: ToAccountInfo<'_>` [INFO] [stderr] | [INFO] [stderr] = note: the following trait bounds were not satisfied: [INFO] [stderr] `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: AsRef<__AccountInfo<'_>>` [INFO] [stderr] which is required by `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: anchor_lang::ToAccountInfo<'_>` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:86:27 [INFO] [stderr] | [INFO] [stderr] 86 | let cpi_ctx = new_set_authority_cpi_context( [INFO] [stderr] | ___________________________^ [INFO] [stderr] 87 | | &ctx.accounts.mint_authority, [INFO] [stderr] 88 | | &ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] 89 | | &ctx.accounts.token_program, [INFO] [stderr] 90 | | ); [INFO] [stderr] | |_____________^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::SetAuthority<'_>` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stderr] | [INFO] [stderr] 338 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stderr] | [INFO] [stderr] 154 | pub trait ToAccountMetas { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stderr] | [INFO] [stderr] 339 | pub struct SetAuthority<'info> { [INFO] [stderr] | ------------------------------ this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:8 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ---------- required by a bound in this struct [INFO] [stderr] 172 | where [INFO] [stderr] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stderr] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:86:27 [INFO] [stderr] | [INFO] [stderr] 86 | let cpi_ctx = new_set_authority_cpi_context( [INFO] [stderr] | ___________________________^ [INFO] [stderr] 87 | | &ctx.accounts.mint_authority, [INFO] [stderr] 88 | | &ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] 89 | | &ctx.accounts.token_program, [INFO] [stderr] 90 | | ); [INFO] [stderr] | |_____________^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::SetAuthority<'_>` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stderr] | [INFO] [stderr] 338 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stderr] | [INFO] [stderr] 166 | pub trait ToAccountInfos<'info> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stderr] | [INFO] [stderr] 339 | pub struct SetAuthority<'info> { [INFO] [stderr] | ------------------------------ this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ---------- required by a bound in this struct [INFO] [stderr] 172 | where [INFO] [stderr] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:94:22 [INFO] [stderr] | [INFO] [stderr] 94 | Some(proxy_mint_authority), [INFO] [stderr] | ---- ^^^^^^^^^^^^^^^^^^^^ expected `Pubkey`, found `__Pubkey` [INFO] [stderr] | | [INFO] [stderr] | arguments to this enum variant are incorrect [INFO] [stderr] | [INFO] [stderr] = note: `__Pubkey` and `Pubkey` have similar names, but are actually distinct types [INFO] [stderr] note: `__Pubkey` is defined in crate `solana_pubkey` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-pubkey-2.4.0/src/lib.rs:166:1 [INFO] [stderr] | [INFO] [stderr] 166 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] note: `Pubkey` is defined in crate `solana_program` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/pubkey.rs:71:1 [INFO] [stderr] | [INFO] [stderr] 71 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: the type constructed contains `__Pubkey` due to the type of the argument passed [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:94:17 [INFO] [stderr] | [INFO] [stderr] 94 | Some(proxy_mint_authority), [INFO] [stderr] | ^^^^^--------------------^ [INFO] [stderr] | | [INFO] [stderr] | this argument influences the type of `Some` [INFO] [stderr] note: tuple variant defined here [INFO] [stderr] --> /opt/rustwide/rustup-home/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:599:5 [INFO] [stderr] | [INFO] [stderr] 599 | Some(#[stable(feature = "rust1", since = "1.0.0")] T), [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:92:17 [INFO] [stderr] | [INFO] [stderr] 91 | token::set_authority( [INFO] [stderr] | -------------------- arguments to this function are incorrect [INFO] [stderr] 92 | cpi_ctx, [INFO] [stderr] | ^^^^^^^ expected `CpiContext<'_, '_, '_, '_, ...>`, found a different `CpiContext<'_, '_, '_, '_, ...>` [INFO] [stderr] | [INFO] [stderr] note: two different versions of crate `anchor_lang` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:171:1 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `anchor_lang::context::CpiContext` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/context.rs:165:1 [INFO] [stderr] | [INFO] [stderr] 165 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `anchor_lang::context::CpiContext` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: function defined here [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:232:8 [INFO] [stderr] | [INFO] [stderr] 232 | pub fn set_authority<'a, 'b, 'c, 'info>( [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:95:14 [INFO] [stderr] | [INFO] [stderr] 91 | / token::set_authority( [INFO] [stderr] 92 | | cpi_ctx, [INFO] [stderr] 93 | | spl_token::instruction::AuthorityType::MintTokens, [INFO] [stderr] 94 | | Some(proxy_mint_authority), [INFO] [stderr] 95 | | )?; [INFO] [stderr] | | -^ the trait `From<anchor_lang::error::Error>` is not implemented for `anchor_lang::error::Error` [INFO] [stderr] | |_____________| [INFO] [stderr] | this can't be annotated with `?` because it has type `Result<_, anchor_lang::error::Error>` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = help: the following other types implement trait `From<T>`: [INFO] [stderr] `anchor_lang::error::Error` implements `From<ErrorCode>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<ProgramErrorWithOrigin>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<TryFromIntError>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<anchor_lang::error::AnchorError>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<anchor_lang::error::ErrorCode>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<anchor_lang::prelude::ProgramError>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<std::io::Error>` [INFO] [stderr] [INFO] [stderr] error[E0599]: the method `to_account_info` exists for struct `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:103:54 [INFO] [stderr] | [INFO] [stderr] 103 | token_mint: *ctx.accounts.token_mint.to_account_info().key, [INFO] [stderr] | ^^^^^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | --------------------------------------------------------------------------- doesn't satisfy `_: AsRef<AccountInfo<'_>>` or `_: ToAccountInfo<'_>` [INFO] [stderr] | [INFO] [stderr] = note: the following trait bounds were not satisfied: [INFO] [stderr] `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: AsRef<__AccountInfo<'_>>` [INFO] [stderr] which is required by `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: anchor_lang::ToAccountInfo<'_>` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `get` found for struct `MinterAddBumps` in the current scope [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:133:58 [INFO] [stderr] | [INFO] [stderr] 133 | minter_info.__nonce = *unwrap_int!(ctx.bumps.get("minter_info")); [INFO] [stderr] | ----------^^^--------------- [INFO] [stderr] | | | [INFO] [stderr] | | this is an associated function, not a method [INFO] [stderr] | help: use associated function syntax instead: `MinterAddBumps::get("minter_info")` [INFO] [stderr] ... [INFO] [stderr] 247 | #[derive(Accounts)] [INFO] [stderr] | -------- method `get` not found for this struct [INFO] [stderr] | [INFO] [stderr] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stderr] note: the candidate is defined in the trait `anchor_lang::prelude::SolanaSysvar` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-sysvar-2.2.2/src/lib.rs:188:5 [INFO] [stderr] | [INFO] [stderr] 188 | fn get() -> Result<Self, ProgramError> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stderr] candidate #1: `SliceIndex` [INFO] [stderr] candidate #2: `ZeroCopyAccessor` [INFO] [stderr] candidate #3: `anchor_lang::__private::ZeroCopyAccessor` [INFO] [stderr] candidate #4: `anchor_lang::solana_program::solana_account_info::Account` [INFO] [stderr] candidate #5: `bitmaps::types::BitOps` [INFO] [stderr] candidate #6: `spl_token::solana_program::account_info::Account` [INFO] [stderr] candidate #7: `spl_token::solana_program::sysvar::Sysvar` [INFO] [stderr] [INFO] [stderr] error[E0609]: no field `supply` on type `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:158:66 [INFO] [stderr] | [INFO] [stderr] 158 | let new_supply = unwrap_int!(ctx.accounts.token_mint.supply.checked_add(amount),); [INFO] [stderr] | ^^^^^^ unknown field [INFO] [stderr] [INFO] [stderr] error[E0599]: the method `to_account_info` exists for struct `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:167:51 [INFO] [stderr] | [INFO] [stderr] 167 | mint: ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] | ^^^^^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | --------------------------------------------------------------------------- doesn't satisfy `_: AsRef<AccountInfo<'_>>` or `_: ToAccountInfo<'_>` [INFO] [stderr] | [INFO] [stderr] = note: the following trait bounds were not satisfied: [INFO] [stderr] `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: AsRef<__AccountInfo<'_>>` [INFO] [stderr] which is required by `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: anchor_lang::ToAccountInfo<'_>` [INFO] [stderr] [INFO] [stderr] error[E0599]: the method `to_account_info` exists for struct `anchor_lang::prelude::Account<'_, TokenAccount>`, but its trait bounds were not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:168:50 [INFO] [stderr] | [INFO] [stderr] 168 | to: ctx.accounts.destination.to_account_info(), [INFO] [stderr] | ^^^^^^^^^^^^^^^ method cannot be called on `anchor_lang::prelude::Account<'_, TokenAccount>` due to unsatisfied trait bounds [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | --------------------------------------------------------------------------- doesn't satisfy `_: AsRef<AccountInfo<'_>>` or `_: ToAccountInfo<'_>` [INFO] [stderr] | [INFO] [stderr] = note: the following trait bounds were not satisfied: [INFO] [stderr] `anchor_lang::prelude::Account<'_, TokenAccount>: AsRef<__AccountInfo<'_>>` [INFO] [stderr] which is required by `anchor_lang::prelude::Account<'_, TokenAccount>: anchor_lang::ToAccountInfo<'_>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:169:32 [INFO] [stderr] | [INFO] [stderr] 169 | authority: ctx.accounts.proxy_mint_authority.to_account_info(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `AccountInfo<'_>`, found `__AccountInfo<'_>` [INFO] [stderr] | [INFO] [stderr] = note: `__AccountInfo<'_>` and `AccountInfo<'_>` have similar names, but are actually distinct types [INFO] [stderr] note: `__AccountInfo<'_>` is defined in crate `solana_account_info` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-account-info-2.3.0/src/lib.rs:22:1 [INFO] [stderr] | [INFO] [stderr] 22 | pub struct AccountInfo<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] note: `AccountInfo<'_>` is defined in crate `solana_program` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/account_info.rs:16:1 [INFO] [stderr] | [INFO] [stderr] 16 | pub struct AccountInfo<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::MintTo<'_>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:166:17 [INFO] [stderr] | [INFO] [stderr] 164 | let cpi_ctx = CpiContext::new_with_signer( [INFO] [stderr] | --------------------------- required by a bound introduced by this call [INFO] [stderr] 165 | ctx.accounts.token_program.to_account_info(), [INFO] [stderr] 166 | / token::MintTo { [INFO] [stderr] 167 | | mint: ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] 168 | | to: ctx.accounts.destination.to_account_info(), [INFO] [stderr] 169 | | authority: ctx.accounts.proxy_mint_authority.to_account_info(), [INFO] [stderr] 170 | | }, [INFO] [stderr] | |_________________^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::MintTo<'_>` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:276:10 [INFO] [stderr] | [INFO] [stderr] 276 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stderr] | [INFO] [stderr] 154 | pub trait ToAccountMetas { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:277:1 [INFO] [stderr] | [INFO] [stderr] 277 | pub struct MintTo<'info> { [INFO] [stderr] | ------------------------ this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::context::CpiContext::<'a, 'b, 'c, 'info, T>::new_with_signer` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:183:8 [INFO] [stderr] | [INFO] [stderr] 183 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stderr] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext::<'a, 'b, 'c, 'info, T>::new_with_signer` [INFO] [stderr] ... [INFO] [stderr] 195 | pub fn new_with_signer( [INFO] [stderr] | --------------- required by a bound in this associated function [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::MintTo<'_>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:164:27 [INFO] [stderr] | [INFO] [stderr] 164 | let cpi_ctx = CpiContext::new_with_signer( [INFO] [stderr] | ^^^^^^^^^^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::MintTo<'_>` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:276:10 [INFO] [stderr] | [INFO] [stderr] 276 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stderr] | [INFO] [stderr] 166 | pub trait ToAccountInfos<'info> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:277:1 [INFO] [stderr] | [INFO] [stderr] 277 | pub struct MintTo<'info> { [INFO] [stderr] | ------------------------ this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ---------- required by a bound in this struct [INFO] [stderr] 172 | where [INFO] [stderr] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::MintTo<'_>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:166:17 [INFO] [stderr] | [INFO] [stderr] 164 | let cpi_ctx = CpiContext::new_with_signer( [INFO] [stderr] | --------------------------- required by a bound introduced by this call [INFO] [stderr] 165 | ctx.accounts.token_program.to_account_info(), [INFO] [stderr] 166 | / token::MintTo { [INFO] [stderr] 167 | | mint: ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] 168 | | to: ctx.accounts.destination.to_account_info(), [INFO] [stderr] 169 | | authority: ctx.accounts.proxy_mint_authority.to_account_info(), [INFO] [stderr] 170 | | }, [INFO] [stderr] | |_________________^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::MintTo<'_>` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:276:10 [INFO] [stderr] | [INFO] [stderr] 276 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stderr] | [INFO] [stderr] 166 | pub trait ToAccountInfos<'info> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:277:1 [INFO] [stderr] | [INFO] [stderr] 277 | pub struct MintTo<'info> { [INFO] [stderr] | ------------------------ this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::context::CpiContext::<'a, 'b, 'c, 'info, T>::new_with_signer` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:183:25 [INFO] [stderr] | [INFO] [stderr] 183 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext::<'a, 'b, 'c, 'info, T>::new_with_signer` [INFO] [stderr] ... [INFO] [stderr] 195 | pub fn new_with_signer( [INFO] [stderr] | --------------- required by a bound in this associated function [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::MintTo<'_>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:164:27 [INFO] [stderr] | [INFO] [stderr] 164 | let cpi_ctx = CpiContext::new_with_signer( [INFO] [stderr] | ___________________________^ [INFO] [stderr] 165 | | ctx.accounts.token_program.to_account_info(), [INFO] [stderr] 166 | | token::MintTo { [INFO] [stderr] 167 | | mint: ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] ... | [INFO] [stderr] 171 | | proxy_signer, [INFO] [stderr] 172 | | ); [INFO] [stderr] | |_____________^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::MintTo<'_>` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:276:10 [INFO] [stderr] | [INFO] [stderr] 276 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stderr] | [INFO] [stderr] 154 | pub trait ToAccountMetas { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:277:1 [INFO] [stderr] | [INFO] [stderr] 277 | pub struct MintTo<'info> { [INFO] [stderr] | ------------------------ this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:8 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ---------- required by a bound in this struct [INFO] [stderr] 172 | where [INFO] [stderr] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stderr] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::MintTo<'_>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:164:27 [INFO] [stderr] | [INFO] [stderr] 164 | let cpi_ctx = CpiContext::new_with_signer( [INFO] [stderr] | ___________________________^ [INFO] [stderr] 165 | | ctx.accounts.token_program.to_account_info(), [INFO] [stderr] 166 | | token::MintTo { [INFO] [stderr] 167 | | mint: ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] ... | [INFO] [stderr] 171 | | proxy_signer, [INFO] [stderr] 172 | | ); [INFO] [stderr] | |_____________^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::MintTo<'_>` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:276:10 [INFO] [stderr] | [INFO] [stderr] 276 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stderr] | [INFO] [stderr] 166 | pub trait ToAccountInfos<'info> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:277:1 [INFO] [stderr] | [INFO] [stderr] 277 | pub struct MintTo<'info> { [INFO] [stderr] | ------------------------ this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ---------- required by a bound in this struct [INFO] [stderr] 172 | where [INFO] [stderr] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:173:28 [INFO] [stderr] | [INFO] [stderr] 173 | token::mint_to(cpi_ctx, amount)?; [INFO] [stderr] | -------------- ^^^^^^^ expected `CpiContext<'_, '_, '_, '_, MintTo<'_>>`, found a different `CpiContext<'_, '_, '_, '_, MintTo<'_>>` [INFO] [stderr] | | [INFO] [stderr] | arguments to this function are incorrect [INFO] [stderr] | [INFO] [stderr] note: two different versions of crate `anchor_lang` are being used; two types coming from two different versions of the same crate are different types even if they look the same [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:171:1 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `anchor_lang::context::CpiContext` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/context.rs:165:1 [INFO] [stderr] | [INFO] [stderr] 165 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `anchor_lang::context::CpiContext` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: function defined here [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:36:8 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn mint_to<'a, 'b, 'c, 'info>( [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:173:44 [INFO] [stderr] | [INFO] [stderr] 173 | token::mint_to(cpi_ctx, amount)?; [INFO] [stderr] | -------------------------------^ the trait `From<anchor_lang::error::Error>` is not implemented for `anchor_lang::error::Error` [INFO] [stderr] | | [INFO] [stderr] | this can't be annotated with `?` because it has type `Result<_, anchor_lang::error::Error>` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = help: the following other types implement trait `From<T>`: [INFO] [stderr] `anchor_lang::error::Error` implements `From<ErrorCode>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<ProgramErrorWithOrigin>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<TryFromIntError>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<anchor_lang::error::AnchorError>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<anchor_lang::error::ErrorCode>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<anchor_lang::prelude::ProgramError>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<std::io::Error>` [INFO] [stderr] [INFO] [stderr] error[E0599]: the method `to_account_info` exists for struct `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>`, but its trait bounds were not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:191:42 [INFO] [stderr] | [INFO] [stderr] 191 | &ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] | ^^^^^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:1 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | --------------------------------------------------------------------------- doesn't satisfy `_: AsRef<AccountInfo<'_>>` or `_: ToAccountInfo<'_>` [INFO] [stderr] | [INFO] [stderr] = note: the following trait bounds were not satisfied: [INFO] [stderr] `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: AsRef<__AccountInfo<'_>>` [INFO] [stderr] which is required by `anchor_lang::prelude::Account<'_, anchor_spl::token::Mint>: anchor_lang::ToAccountInfo<'_>` [INFO] [stderr] [INFO] [stderr] error[E0599]: the method `with_signer` exists for struct `anchor_lang::context::CpiContext<'_, '_, '_, '_, anchor_spl::token::SetAuthority<'_>>`, but its trait bounds were not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:194:14 [INFO] [stderr] | [INFO] [stderr] 189 | let cpi_ctx = new_set_authority_cpi_context( [INFO] [stderr] | ___________________________- [INFO] [stderr] 190 | | &proxy_mint_authority, [INFO] [stderr] 191 | | &ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] 192 | | &ctx.accounts.token_program, [INFO] [stderr] 193 | | ) [INFO] [stderr] 194 | | .with_signer(proxy_signer); [INFO] [stderr] | | -^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stderr] | |_____________| [INFO] [stderr] | [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stderr] | [INFO] [stderr] 339 | pub struct SetAuthority<'info> { [INFO] [stderr] | ------------------------------ doesn't satisfy `_: ToAccountInfos<'_>` or `_: ToAccountMetas` [INFO] [stderr] | [INFO] [stderr] = note: the following trait bounds were not satisfied: [INFO] [stderr] `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountMetas` [INFO] [stderr] `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountInfos<'_>` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountMetas` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:189:27 [INFO] [stderr] | [INFO] [stderr] 189 | let cpi_ctx = new_set_authority_cpi_context( [INFO] [stderr] | ___________________________^ [INFO] [stderr] 190 | | &proxy_mint_authority, [INFO] [stderr] 191 | | &ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] 192 | | &ctx.accounts.token_program, [INFO] [stderr] 193 | | ) [INFO] [stderr] | |_____________^ the trait `anchor_lang::ToAccountMetas` is not implemented for `anchor_spl::token::SetAuthority<'_>` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stderr] | [INFO] [stderr] 338 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:154:1 [INFO] [stderr] | [INFO] [stderr] 154 | pub trait ToAccountMetas { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stderr] | [INFO] [stderr] 339 | pub struct SetAuthority<'info> { [INFO] [stderr] | ------------------------------ this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:8 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ---------- required by a bound in this struct [INFO] [stderr] 172 | where [INFO] [stderr] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stderr] | ^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::SetAuthority<'_>: anchor_lang::ToAccountInfos<'_>` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:189:27 [INFO] [stderr] | [INFO] [stderr] 189 | let cpi_ctx = new_set_authority_cpi_context( [INFO] [stderr] | ___________________________^ [INFO] [stderr] 190 | | &proxy_mint_authority, [INFO] [stderr] 191 | | &ctx.accounts.token_mint.to_account_info(), [INFO] [stderr] 192 | | &ctx.accounts.token_program, [INFO] [stderr] 193 | | ) [INFO] [stderr] | |_____________^ the trait `anchor_lang::ToAccountInfos<'_>` is not implemented for `anchor_spl::token::SetAuthority<'_>` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:338:10 [INFO] [stderr] | [INFO] [stderr] 338 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:166:1 [INFO] [stderr] | [INFO] [stderr] 166 | pub trait ToAccountInfos<'info> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:339:1 [INFO] [stderr] | [INFO] [stderr] 339 | pub struct SetAuthority<'info> { [INFO] [stderr] | ------------------------------ this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::context::CpiContext` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/context.rs:173:25 [INFO] [stderr] | [INFO] [stderr] 171 | pub struct CpiContext<'a, 'b, 'c, 'info, T> [INFO] [stderr] | ---------- required by a bound in this struct [INFO] [stderr] 172 | where [INFO] [stderr] 173 | T: ToAccountMetas + ToAccountInfos<'info>, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `CpiContext` [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:199:22 [INFO] [stderr] | [INFO] [stderr] 199 | Some(new_authority), [INFO] [stderr] | ---- ^^^^^^^^^^^^^ expected `Pubkey`, found `__Pubkey` [INFO] [stderr] | | [INFO] [stderr] | arguments to this enum variant are incorrect [INFO] [stderr] | [INFO] [stderr] = note: `__Pubkey` and `Pubkey` have similar names, but are actually distinct types [INFO] [stderr] note: `__Pubkey` is defined in crate `solana_pubkey` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-pubkey-2.4.0/src/lib.rs:166:1 [INFO] [stderr] | [INFO] [stderr] 166 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] note: `Pubkey` is defined in crate `solana_program` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-program-1.10.41/src/pubkey.rs:71:1 [INFO] [stderr] | [INFO] [stderr] 71 | pub struct Pubkey(pub(crate) [u8; 32]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] help: the type constructed contains `__Pubkey` due to the type of the argument passed [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:199:17 [INFO] [stderr] | [INFO] [stderr] 199 | Some(new_authority), [INFO] [stderr] | ^^^^^-------------^ [INFO] [stderr] | | [INFO] [stderr] | this argument influences the type of `Some` [INFO] [stderr] note: tuple variant defined here [INFO] [stderr] --> /opt/rustwide/rustup-home/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:599:5 [INFO] [stderr] | [INFO] [stderr] 599 | Some(#[stable(feature = "rust1", since = "1.0.0")] T), [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:200:14 [INFO] [stderr] | [INFO] [stderr] 196 | / token::set_authority( [INFO] [stderr] 197 | | cpi_ctx, [INFO] [stderr] 198 | | spl_token::instruction::AuthorityType::MintTokens, [INFO] [stderr] 199 | | Some(new_authority), [INFO] [stderr] 200 | | )?; [INFO] [stderr] | | -^ the trait `From<anchor_lang::error::Error>` is not implemented for `anchor_lang::error::Error` [INFO] [stderr] | |_____________| [INFO] [stderr] | this can't be annotated with `?` because it has type `Result<_, anchor_lang::error::Error>` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = help: the following other types implement trait `From<T>`: [INFO] [stderr] `anchor_lang::error::Error` implements `From<ErrorCode>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<ProgramErrorWithOrigin>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<TryFromIntError>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<anchor_lang::error::AnchorError>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<anchor_lang::error::ErrorCode>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<anchor_lang::prelude::ProgramError>` [INFO] [stderr] `anchor_lang::error::Error` implements `From<std::io::Error>` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountSerialize` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:212:10 [INFO] [stderr] | [INFO] [stderr] 212 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stderr] | [INFO] [stderr] help: trait impl with same name found [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:395:1 [INFO] [stderr] | [INFO] [stderr] 395 | impl anchor_lang::AccountSerialize for Mint {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stderr] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/lib.rs:246:1 [INFO] [stderr] | [INFO] [stderr] 246 | pub trait AccountSerialize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use anchor_lang::solana_program; [INFO] [stderr] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stderr] 5 | use anchor_lang::{prelude::*, solana_program::pubkey::PUBKEY_BYTES}; [INFO] [stderr] 6 | use anchor_spl::token::{self, Mint, SetAuthority, Token, TokenAccount}; [INFO] [stderr] | ---------- one version of crate `anchor_lang` used here, as a dependency of crate `anchor_spl` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-spl-0.25.0/src/token.rs:381:1 [INFO] [stderr] | [INFO] [stderr] 381 | pub struct Mint(spl_token::state::Mint); [INFO] [stderr] | --------------- this type doesn't implement the required trait [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.25.0/src/lib.rs:68:1 [INFO] [stderr] | [INFO] [stderr] 68 | pub trait Accounts<'info>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stderr] | ------------------------------------------------------------------------- this is the found trait [INFO] [stderr] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stderr] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.31.1/src/accounts/account.rs:227:30 [INFO] [stderr] | [INFO] [stderr] 227 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stderr] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `anchor_spl::token::Mint: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mint-proxy-1.1.2/src/lib.rs:212:10 [INFO] [stderr] | [INFO] [stderr] 212 | #[derive(Accounts)] [INFO] [stderr] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint` [INFO] [stderr] | [WARN] too much data in the log, truncating it