Skip to content

Phase 1 shutdown

Phase 1 shutdown #349

Triggered via pull request July 21, 2023 00:03
Status Failure
Total duration 8m 31s
Artifacts 2

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 42 warnings
rust-fmt
Process completed with exit code 1.
undefined ► Init pool ► Init pool: tests/out.xml#L0
Failed test found in: tests/out.xml Error: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x17d8
undefined ► Init entry ► Init entry: tests/out.xml#L0
Failed test found in: tests/out.xml Error: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0xbc4
undefined ► Set multiplier ► Set multiplier: tests/out.xml#L0
Failed test found in: tests/out.xml Error: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0xbc4
undefined ► Stake ► Stake: tests/stake-entry/multiplier-stake-seconds/stake-entry-multiplier.test.ts#L168
Failed test found in: tests/out.xml Error: Error: thrown: "Stake pool not found"
undefined ► Update total stake seconds ► Update total stake seconds: tests/stake-entry/multiplier-stake-seconds/stake-entry-multiplier.test.ts#L214
Failed test found in: tests/out.xml Error: Error: thrown: "Account info not found"
undefined ► Unstake ► Unstake: tests/stake-entry/multiplier-stake-seconds/stake-entry-multiplier.test.ts#L268
Failed test found in: tests/out.xml Error: Error: thrown: "Account info not found"
undefined ► Init pool ► Init pool: tests/out.xml#L0
Failed test found in: tests/out.xml Error: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x17d8
undefined ► Init reward distributor ► Init reward distributor: tests/out.xml#L0
Failed test found in: tests/out.xml Error: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0xbc4
undefined ► Stake ► Stake: tests/reward-distribution/claim-rewards.test.ts#L201
Failed test found in: tests/out.xml Error: Error: thrown: "Stake pool not found"
undefined ► Claim rewards ► Claim rewards: tests/reward-distribution/claim-rewards.test.ts#L267
Failed test found in: tests/out.xml Error: Error: expect(received).toBe(expected) // Object.is equality
undefined ► Init pool ► Init pool: tests/out.xml#L0
Failed test found in: tests/out.xml Error: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x17d8
Init pool: undefined#L1
failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x17d8 at Connection.sendEncodedTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/connection.ts:5860:13) at Connection.sendRawTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/connection.ts:5819:20) at sendAndConfirmRawTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/utils/send-and-confirm-raw-transaction.ts:84:21)
Init entry: undefined#L1
failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0xbc4 at Connection.sendEncodedTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/connection.ts:5860:13) at Connection.sendRawTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/connection.ts:5819:20) at sendAndConfirmRawTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/utils/send-and-confirm-raw-transaction.ts:84:21)
Set multiplier: undefined#L1
failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0xbc4 at Connection.sendEncodedTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/connection.ts:5860:13) at Connection.sendRawTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/connection.ts:5819:20) at sendAndConfirmRawTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/utils/send-and-confirm-raw-transaction.ts:84:21)
Stake: tests/stake-entry/multiplier-stake-seconds/stake-entry-multiplier.test.ts#L168
thrown: "Stake pool not found" at Object.<anonymous> (tests/stake-entry/multiplier-stake-seconds/stake-entry-multiplier.test.ts:168:5)
Update total stake seconds: tests/stake-entry/multiplier-stake-seconds/stake-entry-multiplier.test.ts#L214
thrown: "Account info not found" at Object.<anonymous> (tests/stake-entry/multiplier-stake-seconds/stake-entry-multiplier.test.ts:214:5)
Unstake: tests/stake-entry/multiplier-stake-seconds/stake-entry-multiplier.test.ts#L268
thrown: "Account info not found" at Object.<anonymous> (tests/stake-entry/multiplier-stake-seconds/stake-entry-multiplier.test.ts:268:5)
Init pool: undefined#L1
failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x17d8 at Connection.sendEncodedTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/connection.ts:5860:13) at Connection.sendRawTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/connection.ts:5819:20) at sendAndConfirmRawTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/utils/send-and-confirm-raw-transaction.ts:84:21)
Init reward distributor: undefined#L1
failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0xbc4 at Connection.sendEncodedTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/connection.ts:5860:13) at Connection.sendRawTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/connection.ts:5819:20) at sendAndConfirmRawTransaction (node_modules/@cardinal/common/node_modules/@solana/web3.js/src/utils/send-and-confirm-raw-transaction.ts:84:21)
Stake: tests/reward-distribution/claim-rewards.test.ts#L201
thrown: "Stake pool not found" at Object.<anonymous> (tests/reward-distribution/claim-rewards.test.ts:201:5)
Claim rewards: tests/reward-distribution/claim-rewards.test.ts#L267
expect(received).toBe(expected) // Object.is equality Expected: 0 Received: 100 at Object.<anonymous> (tests/reward-distribution/claim-rewards.test.ts:267:24)
integration-tests
Failed test were found and 'fail-on-error' option is set to true
rust-fmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
rust-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rust-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rust-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rust-fmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
unneeded `return` statement: programs/cardinal-rewards-center/src/lib.rs#L156
warning: unneeded `return` statement --> programs/cardinal-rewards-center/src/lib.rs:156:9 | 156 | return Err(error!(ErrorCode::ProtocolsShutdown)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = help: remove `return`
unneeded `return` statement: programs/cardinal-rewards-center/src/lib.rs#L119
warning: unneeded `return` statement --> programs/cardinal-rewards-center/src/lib.rs:119:9 | 119 | return Err(error!(ErrorCode::ProtocolsShutdown)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = help: remove `return`
unneeded `return` statement: programs/cardinal-rewards-center/src/lib.rs#L111
warning: unneeded `return` statement --> programs/cardinal-rewards-center/src/lib.rs:111:9 | 111 | return Err(error!(ErrorCode::ProtocolsShutdown)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = help: remove `return`
unneeded `return` statement: programs/cardinal-rewards-center/src/lib.rs#L92
warning: unneeded `return` statement --> programs/cardinal-rewards-center/src/lib.rs:92:9 | 92 | return Err(error!(ErrorCode::ProtocolsShutdown)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = help: remove `return`
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining: programs/cardinal-rewards-center/src/lib.rs#L87
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining --> programs/cardinal-rewards-center/src/lib.rs:87:5 | 87 | pub fn unstake_ccs<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnstakeCCSCtx<'info>>) -> Result<()... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 87 - pub fn unstake_ccs<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnstakeCCSCtx<'info>>) -> Result<()> { 87 + pub fn unstake_ccs<'info>(ctx: Context<'_, '_, '_, 'info, UnstakeCCSCtx<'info>>) -> Result<()> { |
unneeded `return` statement: programs/cardinal-rewards-center/src/lib.rs#L84
warning: unneeded `return` statement --> programs/cardinal-rewards-center/src/lib.rs:84:9 | 84 | return Err(error!(ErrorCode::ProtocolsShutdown)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = help: remove `return`
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining: programs/cardinal-rewards-center/src/lib.rs#L82
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining --> programs/cardinal-rewards-center/src/lib.rs:82:5 | 82 | pub fn stake_ccs<'key, 'accounts, 'remaining, 'info>(_ctx: Context<'key, 'accounts, 'remaining, 'info, StakeCCSCtx<'info>>, _amount: u64) -> Result<()... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 82 - pub fn stake_ccs<'key, 'accounts, 'remaining, 'info>(_ctx: Context<'key, 'accounts, 'remaining, 'info, StakeCCSCtx<'info>>, _amount: u64) -> Result<()> { 82 + pub fn stake_ccs<'info>(_ctx: Context<'_, '_, '_, 'info, StakeCCSCtx<'info>>, _amount: u64) -> Result<()> { |
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining: programs/cardinal-rewards-center/src/lib.rs#L78
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining --> programs/cardinal-rewards-center/src/lib.rs:78:5 | 78 | pub fn unstake_edition<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnstakeEditionCtx<'info>>) -> Result<()... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 78 - pub fn unstake_edition<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnstakeEditionCtx<'info>>) -> Result<()> { 78 + pub fn unstake_edition<'info>(ctx: Context<'_, '_, '_, 'info, UnstakeEditionCtx<'info>>) -> Result<()> { |
unneeded `return` statement: programs/cardinal-rewards-center/src/lib.rs#L75
warning: unneeded `return` statement --> programs/cardinal-rewards-center/src/lib.rs:75:9 | 75 | return Err(error!(ErrorCode::ProtocolsShutdown)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = help: remove `return`
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining: programs/cardinal-rewards-center/src/lib.rs#L73
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining --> programs/cardinal-rewards-center/src/lib.rs:73:5 | 73 | pub fn stake_edition<'key, 'accounts, 'remaining, 'info>(_ctx: Context<'key, 'accounts, 'remaining, 'info, StakeEditionCtx<'info>>, _amount: u64) -> Result<()... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 73 - pub fn stake_edition<'key, 'accounts, 'remaining, 'info>(_ctx: Context<'key, 'accounts, 'remaining, 'info, StakeEditionCtx<'info>>, _amount: u64) -> Result<()> { 73 + pub fn stake_edition<'info>(_ctx: Context<'_, '_, '_, 'info, StakeEditionCtx<'info>>, _amount: u64) -> Result<()> { |
unneeded `return` statement: programs/cardinal-rewards-center/src/lib.rs#L45
warning: unneeded `return` statement --> programs/cardinal-rewards-center/src/lib.rs:45:9 | 45 | return Err(error!(ErrorCode::ProtocolsShutdown)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = help: remove `return`
unneeded `return` statement: programs/cardinal-rewards-center/src/lib.rs#L32
warning: unneeded `return` statement --> programs/cardinal-rewards-center/src/lib.rs:32:9 | 32 | return Err(error!(ErrorCode::ProtocolsShutdown)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `#[warn(clippy::needless_return)]` on by default = help: remove `return`
the following explicit lifetimes could be elided: 'info: programs/cardinal-rewards-center/src/payment/state.rs#L80
warning: the following explicit lifetimes could be elided: 'info --> programs/cardinal-rewards-center/src/payment/state.rs:80:1 | 80 | pub fn handle_payment<'info>(payment_amount: u64, payment_mint: Pubkey, payment_shares: &Vec<PaymentShare>, remaining_accounts: &mut Iter<AccountInfo<'info>>) -> Result<()... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 80 - pub fn handle_payment<'info>(payment_amount: u64, payment_mint: Pubkey, payment_shares: &Vec<PaymentShare>, remaining_accounts: &mut Iter<AccountInfo<'info>>) -> Result<()> { 80 + pub fn handle_payment(payment_amount: u64, payment_mint: Pubkey, payment_shares: &Vec<PaymentShare>, remaining_accounts: &mut Iter<AccountInfo<'_>>) -> Result<()> { |
the following explicit lifetimes could be elided: 'info: programs/cardinal-rewards-center/src/payment/state.rs#L63
warning: the following explicit lifetimes could be elided: 'info --> programs/cardinal-rewards-center/src/payment/state.rs:63:1 | 63 | pub fn handle_payment_info<'info>(payment_info: Pubkey, remaining_accounts: &mut Iter<AccountInfo<'info>>) -> Result<()> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 63 - pub fn handle_payment_info<'info>(payment_info: Pubkey, remaining_accounts: &mut Iter<AccountInfo<'info>>) -> Result<()> { 63 + pub fn handle_payment_info(payment_info: Pubkey, remaining_accounts: &mut Iter<AccountInfo<'_>>) -> Result<()> { |
this match could be replaced by its body itself: programs/cardinal-rewards-center/src/payment/state.rs#L44
warning: this match could be replaced by its body itself --> programs/cardinal-rewards-center/src/payment/state.rs:44:41 | 44 | let default_allowed_payment_infos = match action { | _________________________________________^ 45 | | _ => [ 46 | | "382KXQfzC26jbFmLZBmKoZ6eRz53iwGfxXwoGyyyH8po".to_string(), // cardinal-test-wsol 47 | | "HqiCY5NqfHfyhyjheQ4ENo5J2XSQBpeqhNoeESkDWBpU".to_string(), // cardinal-test (native) ... | 50 | | .to_vec(), 51 | | }; | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_single_binding = note: `#[warn(clippy::match_single_binding)]` on by default help: consider using the match body instead | 44 ~ let default_allowed_payment_infos = [ 45 + "382KXQfzC26jbFmLZBmKoZ6eRz53iwGfxXwoGyyyH8po".to_string(), // cardinal-test-wsol 46 + "HqiCY5NqfHfyhyjheQ4ENo5J2XSQBpeqhNoeESkDWBpU".to_string(), // cardinal-test (native) 47 + "SdFEeJxn7XxcnYEMNpnoMMSsTfmA1bHfiRdu6qra7zL".to_string(), // cardinal-default 0.002 48 + ] 49 ~ .to_vec(); |
casting to the same type is unnecessary (`u128` -> `u128`): programs/cardinal-rewards-center/src/reward_distribution/reward_distributor/init_reward_distributor.rs#L56
warning: casting to the same type is unnecessary (`u128` -> `u128`) --> programs/cardinal-rewards-center/src/reward_distribution/reward_distributor/init_reward_distributor.rs:56:50 | 56 | reward_distributor.reward_duration_seconds = ix.reward_duration_seconds as u128; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ix.reward_duration_seconds` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining: programs/cardinal-rewards-center/src/stake_entry/ccs/unstake_ccs.rs#L53
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining --> programs/cardinal-rewards-center/src/stake_entry/ccs/unstake_ccs.rs:53:1 | 53 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnstakeCCSCtx<'info>>) -> Result<()> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 53 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnstakeCCSCtx<'info>>) -> Result<()> { 53 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, UnstakeCCSCtx<'info>>) -> Result<()> { |
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining: programs/cardinal-rewards-center/src/stake_entry/ccs/stake_ccs.rs#L57
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining --> programs/cardinal-rewards-center/src/stake_entry/ccs/stake_ccs.rs:57:1 | 57 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, StakeCCSCtx<'info>>, amount: u64) -> Result<()... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 57 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, StakeCCSCtx<'info>>, amount: u64) -> Result<()> { 57 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, StakeCCSCtx<'info>>, amount: u64) -> Result<()> { |
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining: programs/cardinal-rewards-center/src/stake_entry/editions/unstake_edition.rs#L52
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining --> programs/cardinal-rewards-center/src/stake_entry/editions/unstake_edition.rs:52:1 | 52 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnstakeEditionCtx<'info>>) -> Result<()... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 52 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, UnstakeEditionCtx<'info>>) -> Result<()> { 52 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, UnstakeEditionCtx<'info>>) -> Result<()> { |
the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining: programs/cardinal-rewards-center/src/stake_entry/editions/stake_edition.rs#L56
warning: the following explicit lifetimes could be elided: 'key, 'accounts, 'remaining --> programs/cardinal-rewards-center/src/stake_entry/editions/stake_edition.rs:56:1 | 56 | pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, StakeEditionCtx<'info>>, amount: u64) -> Result<()... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 56 - pub fn handler<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, StakeEditionCtx<'info>>, amount: u64) -> Result<()> { 56 + pub fn handler<'info>(ctx: Context<'_, '_, '_, 'info, StakeEditionCtx<'info>>, amount: u64) -> Result<()> { |
rust-clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
rust-clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rust-clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rust-clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
rust-clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
soteria-scan
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
soteria-scan
Unexpected input(s) 'soteria_version', valid inputs are ['soteria-version']
soteria-scan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
soteria-scan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
soteria-scan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
soteria-scan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
soteria-scan
Unexpected input(s) 'soteria_version', valid inputs are ['soteria-version']
integration-tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions/cache@v2, actions/upload-artifact@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
integration-tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
integration-tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
integration-tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
integration-tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Artifacts

Produced during runtime
Name Size
Integration Tests Expired
80.8 KB
anchor-binary Expired
16.9 MB