[INFO] cloning repository https://github.com/SolanaEngineer/atlas-vesting [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SolanaEngineer/atlas-vesting" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSolanaEngineer%2Fatlas-vesting", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSolanaEngineer%2Fatlas-vesting'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6fc59237e08e4c986573c24160674b8c45c4595b [INFO] testing SolanaEngineer/atlas-vesting against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSolanaEngineer%2Fatlas-vesting" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/SolanaEngineer/atlas-vesting on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/SolanaEngineer/atlas-vesting [INFO] finished tweaking git repo https://github.com/SolanaEngineer/atlas-vesting [INFO] tweaked toml for git repo https://github.com/SolanaEngineer/atlas-vesting written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/SolanaEngineer/atlas-vesting already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", 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] 5a39c03dc7b1addd42f225c660de21d85755ad76527d069e6f677990486b402d [INFO] running `Command { std: "docker" "start" "-a" "5a39c03dc7b1addd42f225c660de21d85755ad76527d069e6f677990486b402d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a39c03dc7b1addd42f225c660de21d85755ad76527d069e6f677990486b402d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a39c03dc7b1addd42f225c660de21d85755ad76527d069e6f677990486b402d", kill_on_drop: false }` [INFO] [stdout] 5a39c03dc7b1addd42f225c660de21d85755ad76527d069e6f677990486b402d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", 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] 01738edc44ba34b82f0890025e51d1aaa77aae3f7cb921192583966db571e42c [INFO] running `Command { std: "docker" "start" "-a" "01738edc44ba34b82f0890025e51d1aaa77aae3f7cb921192583966db571e42c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.82 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling curve25519-dalek v2.1.3 [INFO] [stderr] Compiling uint v0.8.5 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling borsh-derive-internal v0.9.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.1 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.7.2 [INFO] [stderr] Compiling borsh-derive-internal v0.7.2 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.8.2 [INFO] [stderr] Compiling borsh-derive-internal v0.8.2 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.8.5 [INFO] [stderr] Compiling bytemuck_derive v1.0.1 [INFO] [stderr] Compiling solana-sdk-macro v1.8.5 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling borsh-derive v0.7.2 [INFO] [stderr] Compiling borsh v0.7.2 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_json v1.0.72 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling serde_bytes v0.11.5 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling sha2 v0.9.8 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling blake3 v0.3.8 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling proc-macro-crate v1.1.0 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling anchor-syn v0.18.2 [INFO] [stderr] Compiling solana-frozen-abi v1.8.5 [INFO] [stderr] Compiling borsh-derive v0.9.1 [INFO] [stderr] Compiling num_enum_derive v0.5.4 [INFO] [stderr] Compiling borsh-derive v0.8.2 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1 v0.5.0 [INFO] [stderr] Compiling borsh v0.9.1 [INFO] [stderr] Compiling num_enum v0.5.4 [INFO] [stderr] Compiling anchor-attribute-program v0.18.2 [INFO] [stderr] Compiling anchor-attribute-error v0.18.2 [INFO] [stderr] Compiling anchor-derive-accounts v0.18.2 [INFO] [stderr] Compiling anchor-attribute-access-control v0.18.2 [INFO] [stderr] Compiling anchor-attribute-account v0.18.2 [INFO] [stderr] Compiling anchor-attribute-state v0.18.2 [INFO] [stderr] Compiling anchor-attribute-event v0.18.2 [INFO] [stderr] Compiling anchor-attribute-interface v0.18.2 [INFO] [stderr] Compiling solana-program v1.8.5 [INFO] [stderr] Compiling anchor-lang v0.18.2 [INFO] [stderr] Compiling spl-token v3.2.0 [INFO] [stderr] Compiling spl-math v0.1.0 [INFO] [stderr] Compiling spl-associated-token-account v1.0.3 [INFO] [stderr] Compiling anchor-spl v0.18.2 [INFO] [stderr] Compiling atlas_vesting_v1 v0.1.0 (/opt/rustwide/workdir/programs/atlas-vesting) [INFO] [stdout] error: expected `,`, or `}`, found `#` [INFO] [stdout] --> programs/atlas-vesting/src/instructions.rs:112:57 [INFO] [stdout] | [INFO] [stdout] 112 | pub pool_vesting_token: Account<'info, TokenAccount> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `,`, or `}`, found `#` [INFO] [stdout] --> programs/atlas-vesting/src/instructions.rs:149:57 [INFO] [stdout] | [INFO] [stdout] 149 | pub pool_vesting_token: Account<'info, TokenAccount> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `,`, or `}`, found `#` [INFO] [stdout] --> programs/atlas-vesting/src/instructions.rs:187:57 [INFO] [stdout] | [INFO] [stdout] 187 | pub pool_vesting_token: Account<'info, TokenAccount> [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `,` [INFO] [stdout] --> programs/atlas-vesting/src/instructions.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | #[account(mut, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `,` [INFO] [stdout] --> programs/atlas-vesting/src/instructions.rs:150:5 [INFO] [stdout] | [INFO] [stdout] 150 | #[account(mut, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `,` [INFO] [stdout] --> programs/atlas-vesting/src/instructions.rs:189:5 [INFO] [stdout] | [INFO] [stdout] 189 | #[account(mut, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate` [INFO] [stdout] --> programs/atlas-vesting/src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[program] [INFO] [stdout] | ^^^^^^^^^^ could not find `__client_accounts_withdraw_vestng` in the crate root [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::utils` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_create_vesting.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | utils::* [INFO] [stdout] | ^^^^^ could not find `utils` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `AtlasVestingError` [INFO] [stdout] --> programs/atlas-vesting/src/states.rs:23:24 [INFO] [stdout] | [INFO] [stdout] 23 | return Err(AtlasVestingError::NotAllowed.into()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `AtlasVestingError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `WithdrawVestng` [INFO] [stdout] --> programs/atlas-vesting/src/lib.rs:37:42 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn withdraw_vesting(ctx: Context, amount: u64, global_state_nonce:u8, vesting_nonce:u8) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `WithdrawVestng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `assert_vesting_time` in this scope [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_create_vesting.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | assert_vesting_time(start_time, end_time)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `assert_vesting_time` in this scope [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_update_vesting.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | assert_vesting_time(start_time, end_time)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `WithdrawVestng` in this scope [INFO] [stdout] --> programs/atlas-vesting/src/lib.rs:37:42 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn withdraw_vesting(ctx: Context, amount: u64, global_state_nonce:u8, vesting_nonce:u8) -> ProgramResult { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: programs/atlas-vesting/src/instructions.rs:129:1 [INFO] [stdout] | [INFO] [stdout] 129 | pub struct WithdrawVesting<'info> { [INFO] [stdout] | --------------------------------- similarly named struct `WithdrawVesting` defined here [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 37 | pub fn withdraw_vesting(ctx: Context, amount: u64, global_state_nonce:u8, vesting_nonce:u8) -> ProgramResult { [INFO] [stdout] | ~~~~~~~~~~~~~~~ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 37 | pub fn withdraw_vesting(ctx: Context, amount: u64, global_state_nonce:u8, vesting_nonce:u8) -> ProgramResult { [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ID` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_deposit_vesting.rs:2:42 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_spl::token::{self, Transfer, ID}; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ID` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_withdraw_vesting.rs:2:42 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_spl::token::{self, Transfer, ID}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ID` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_claim.rs:2:42 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_spl::token::{self, Transfer, ID}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> programs/atlas-vesting/src/states.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | let pending = (remained_amount as u128) [INFO] [stdout] | _______________________^ [INFO] [stdout] 43 | | .checked_mul(remained_amount as u128) [INFO] [stdout] 44 | | .unwrap_or(0)? [INFO] [stdout] | |__________________________^ the `?` operator cannot be applied to type `u128` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `u128` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> programs/atlas-vesting/src/states.rs:44:26 [INFO] [stdout] | [INFO] [stdout] 27 | / pub fn pending_amount(&self, remained_amount: u64, cur_time: u64)->u64 { [INFO] [stdout] 28 | | let mut pending_duration = 0; [INFO] [stdout] 29 | | [INFO] [stdout] 30 | | if cur_time > self.end_time { [INFO] [stdout] ... | [INFO] [stdout] 44 | | .unwrap_or(0)? [INFO] [stdout] | | ^ cannot use the `?` operator in a method that returns `u64` [INFO] [stdout] ... | [INFO] [stdout] 50 | | return pending; [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> programs/atlas-vesting/src/states.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 27 | / pub fn pending_amount(&self, remained_amount: u64, cur_time: u64)->u64 { [INFO] [stdout] 28 | | let mut pending_duration = 0; [INFO] [stdout] 29 | | [INFO] [stdout] 30 | | if cur_time > self.end_time { [INFO] [stdout] ... | [INFO] [stdout] 46 | | .unwrap_or(0)? [INFO] [stdout] | | ^ cannot use the `?` operator in a method that returns `u64` [INFO] [stdout] ... | [INFO] [stdout] 50 | | return pending; [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> programs/atlas-vesting/src/states.rs:48:26 [INFO] [stdout] | [INFO] [stdout] 27 | / pub fn pending_amount(&self, remained_amount: u64, cur_time: u64)->u64 { [INFO] [stdout] 28 | | let mut pending_duration = 0; [INFO] [stdout] 29 | | [INFO] [stdout] 30 | | if cur_time > self.end_time { [INFO] [stdout] ... | [INFO] [stdout] 48 | | .unwrap_or(0)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a method that returns `u64` [INFO] [stdout] 49 | | [INFO] [stdout] 50 | | return pending; [INFO] [stdout] 51 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `user_vesting_token` on type `&mut instructions::DepositVesting<'_>` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_deposit_vesting.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | from: ctx.accounts.user_vesting_token.to_account_info().clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `super_owner`, `vesting`, `global_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `pool_vesting_token` on type `&mut instructions::DepositVesting<'_>` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_deposit_vesting.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | to: ctx.accounts.pool_vesting_token.to_account_info().clone(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `super_owner`, `vesting`, `global_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_program` on type `&mut instructions::DepositVesting<'_>` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_deposit_vesting.rs:17:36 [INFO] [stdout] | [INFO] [stdout] 17 | let cpi_program = ctx.accounts.token_program.to_account_info().clone(); [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `super_owner`, `vesting`, `global_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `amount` on type `anchor_lang::prelude::Pubkey` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_withdraw_vesting.rs:13:57 [INFO] [stdout] | [INFO] [stdout] 13 | if amount > ctx.accounts.vesting.pool_vesting_token.amount { [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `amount` on type `anchor_lang::prelude::Pubkey` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_withdraw_vesting.rs:14:59 [INFO] [stdout] | [INFO] [stdout] 14 | _amount = ctx.accounts.vesting.pool_vesting_token.amount; [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `pool_vesting_token` on type `&mut instructions::WithdrawVesting<'_>` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_withdraw_vesting.rs:19:28 [INFO] [stdout] | [INFO] [stdout] 19 | from: ctx.accounts.pool_vesting_token.to_account_info(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `super_owner`, `vesting`, `global_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `user_vesting_token` on type `&mut instructions::WithdrawVesting<'_>` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_withdraw_vesting.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | to: ctx.accounts.user_vesting_token.to_account_info(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `super_owner`, `vesting`, `global_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_program` on type `&mut instructions::WithdrawVesting<'_>` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_withdraw_vesting.rs:24:36 [INFO] [stdout] | [INFO] [stdout] 24 | let cpi_program = ctx.accounts.token_program.to_account_info(); [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `super_owner`, `vesting`, `global_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `clock` on type `&mut instructions::Claim<'_>` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_claim.rs:11:33 [INFO] [stdout] | [INFO] [stdout] 11 | let cur_time = ctx.accounts.clock.unix_timestamp as u64; [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `owner`, `vesting`, `global_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `amount` on type `anchor_lang::prelude::Pubkey` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_claim.rs:13:94 [INFO] [stdout] | [INFO] [stdout] 13 | let amount = ctx.accounts.vesting.pending_amount(ctx.accounts.vesting.pool_vesting_token.amount, cur_time); [INFO] [stdout] | ^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `pool_vesting_token` on type `&mut instructions::Claim<'_>` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_claim.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | from: ctx.accounts.pool_vesting_token.to_account_info(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `owner`, `vesting`, `global_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `user_vesting_token` on type `&mut instructions::Claim<'_>` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_claim.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | to: ctx.accounts.user_vesting_token.to_account_info(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `owner`, `vesting`, `global_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `token_program` on type `&mut instructions::Claim<'_>` [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_claim.rs:22:36 [INFO] [stdout] | [INFO] [stdout] 22 | let cpi_program = ctx.accounts.token_program.to_account_info(); [INFO] [stdout] | ^^^^^^^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `owner`, `vesting`, `global_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `try_accounts` found for struct `instructions::DepositVesting` in the current scope [INFO] [stdout] --> programs/atlas-vesting/src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[program] [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `instructions::DepositVesting<'_>` [INFO] [stdout] | [INFO] [stdout] ::: programs/atlas-vesting/src/instructions.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct DepositVesting<'info> { [INFO] [stdout] | -------------------------------- function or associated item `try_accounts` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `try_accounts`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `anchor_lang::Accounts` [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `instructions::DepositVesting<'_>: anchor_lang::Accounts<'_>` is not satisfied [INFO] [stdout] --> programs/atlas-vesting/src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[program] [INFO] [stdout] | ^^^^^^^^^^ the trait `anchor_lang::Accounts<'_>` is not implemented for `instructions::DepositVesting<'_>` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `anchor_lang::Context::<'a, 'b, 'c, 'info, T>::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/anchor-lang-0.18.2/src/context.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a, 'b, 'c, 'info, T: Accounts<'info>> Context<'a, 'b, 'c, 'info, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `anchor_lang::Context::<'a, 'b, 'c, 'info, T>::new` [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `exit` found for struct `instructions::DepositVesting` in the current scope [INFO] [stdout] --> programs/atlas-vesting/src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[program] [INFO] [stdout] | ^^^^^^^^^^ method not found in `instructions::DepositVesting<'_>` [INFO] [stdout] | [INFO] [stdout] ::: programs/atlas-vesting/src/instructions.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct DepositVesting<'info> { [INFO] [stdout] | -------------------------------- method `exit` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `exit`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `anchor_lang::AccountsExit` [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `try_accounts` found for struct `instructions::Claim` in the current scope [INFO] [stdout] --> programs/atlas-vesting/src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[program] [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `instructions::Claim<'_>` [INFO] [stdout] | [INFO] [stdout] ::: programs/atlas-vesting/src/instructions.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct Claim<'info> { [INFO] [stdout] | ----------------------- function or associated item `try_accounts` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `try_accounts`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `anchor_lang::Accounts` [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `instructions::Claim<'_>: anchor_lang::Accounts<'_>` is not satisfied [INFO] [stdout] --> programs/atlas-vesting/src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[program] [INFO] [stdout] | ^^^^^^^^^^ the trait `anchor_lang::Accounts<'_>` is not implemented for `instructions::Claim<'_>` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `anchor_lang::Context::<'a, 'b, 'c, 'info, T>::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/anchor-lang-0.18.2/src/context.rs:17:28 [INFO] [stdout] | [INFO] [stdout] 17 | impl<'a, 'b, 'c, 'info, T: Accounts<'info>> Context<'a, 'b, 'c, 'info, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ required by this bound in `anchor_lang::Context::<'a, 'b, 'c, 'info, T>::new` [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `exit` found for struct `instructions::Claim` in the current scope [INFO] [stdout] --> programs/atlas-vesting/src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[program] [INFO] [stdout] | ^^^^^^^^^^ method not found in `instructions::Claim<'_>` [INFO] [stdout] | [INFO] [stdout] ::: programs/atlas-vesting/src/instructions.rs:166:1 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct Claim<'info> { [INFO] [stdout] | ----------------------- method `exit` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `exit`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `anchor_lang::AccountsExit` [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> programs/atlas-vesting/src/lib.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | process_withdraw_vesting(ctx, amount, global_state_nonce, vesting_nonce) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ --- ------ ------------------ ------------- supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> programs/atlas-vesting/src/processor/process_withdraw_vesting.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | ...fn process_withdraw_vesting(ctx: Context, amount: u64, global_state_nonce:u8, vesting_nonce:u8, vesting_pool_nonce: u8) -... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ----------------------------- ----------- --------------------- ---------------- ---------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 37 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0412, E0425, E0432, E0433, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `atlas_vesting_v1` due to 38 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "01738edc44ba34b82f0890025e51d1aaa77aae3f7cb921192583966db571e42c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01738edc44ba34b82f0890025e51d1aaa77aae3f7cb921192583966db571e42c", kill_on_drop: false }` [INFO] [stdout] 01738edc44ba34b82f0890025e51d1aaa77aae3f7cb921192583966db571e42c