Skip to content

funds-manager: Refill all gas wallets, not just active #161

funds-manager: Refill all gas wallets, not just active

funds-manager: Refill all gas wallets, not just active #161

GitHub Actions / clippy failed Aug 24, 2024 in 0s

clippy

9 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 9
Warning 0
Note 0
Help 0

Versions

  • rustc 1.78.0-nightly (3cbb93223 2024-03-13)
  • cargo 1.78.0-nightly (7065f0ef4 2024-03-12)
  • clippy 0.1.78 (3cbb932 2024-03-13)

Annotations

Check failure on line 179 in /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `decode` found for struct `settleOfflineFeeCall` in the current scope

error[E0599]: no function or associated item named `decode` found for struct `settleOfflineFeeCall` in the current scope
   --> /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs:179:38
    |
179 |       let call = settleOfflineFeeCall::decode(calldata, true /* validate */)
    |                                        ^^^^^^ function or associated item not found in `settleOfflineFeeCall`
    |
   ::: /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/abi.rs:64:1
    |
64  | / sol! {
65  | |     function newWallet(bytes memory proof, bytes memory valid_wallet_create_statement_bytes) external;
66  | |     function updateWallet(bytes memory proof, bytes memory valid_wallet_update_statement_bytes, bytes memory wallet_commitment_signature,...
67  | |     function processMatchSettle(bytes memory party_0_match_payload, bytes memory party_1_match_payload, bytes memory valid_match_settle_s...
68  | |     function settleOnlineRelayerFee(bytes memory proof, bytes memory valid_relayer_fee_settlement_statement, bytes memory relayer_wallet_...
69  | |     function settleOfflineFee(bytes memory proof, bytes memory valid_offline_fee_settlement_statement) external;
    | |_____________________________- function or associated item `decode` not found for this struct
    |
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following traits define an item `decode`, perhaps you need to implement one of them:
            candidate #1: `AbiDecode`
            candidate #2: `FunctionOutputDecoder`
            candidate #3: `parity_scale_codec::codec::Decode`
            candidate #4: `Decodable`
            candidate #5: `open_fastrlp::decode::Decodable`
            candidate #6: `Decode`
            candidate #7: `ethers::ethers_core::k256::pkcs8::der::Reader`
            candidate #8: `base64::engine::Engine`
            candidate #9: `tokio_util::codec::decoder::Decoder`
            candidate #10: `quinn_proto::coding::Codec`
            candidate #11: `base_x::alphabet::Alphabet`
            candidate #12: `tonic::codec::Decoder`
            candidate #13: `tonic::metadata::encoding::value_encoding::Sealed`
            candidate #14: `prost::message::Message`
            candidate #15: `alloy_sol_types::types::r#enum::SolEnum`
            candidate #16: `alloy_sol_types::types::error::SolError`
            candidate #17: `alloy_sol_types::types::function::SolCall`
            candidate #18: `alloy_sol_types::types::interface::SolInterface`
            candidate #19: `alloy_sol_types::types::ty::SolType`
help: there is an associated function `abi_decode` with a similar name
    |
179 |     let call = settleOfflineFeeCall::abi_decode(calldata, true /* validate */)
    |                                      ~~~~~~~~~~

Check failure on line 163 in /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `decode` found for struct `redeemFeeCall` in the current scope

error[E0599]: no function or associated item named `decode` found for struct `redeemFeeCall` in the current scope
   --> /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs:163:31
    |
163 |       let call = redeemFeeCall::decode(calldata, true /* validate */)
    |                                 ^^^^^^ function or associated item not found in `redeemFeeCall`
    |
   ::: /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/abi.rs:64:1
    |
64  | / sol! {
65  | |     function newWallet(bytes memory proof, bytes memory valid_wallet_create_statement_bytes) external;
66  | |     function updateWallet(bytes memory proof, bytes memory valid_wallet_update_statement_bytes, bytes memory wallet_commitment_signature,...
67  | |     function processMatchSettle(bytes memory party_0_match_payload, bytes memory party_1_match_payload, bytes memory valid_match_settle_s...
68  | |     function settleOnlineRelayerFee(bytes memory proof, bytes memory valid_relayer_fee_settlement_statement, bytes memory relayer_wallet_...
69  | |     function settleOfflineFee(bytes memory proof, bytes memory valid_offline_fee_settlement_statement) external;
70  | |     function redeemFee(bytes memory proof, bytes memory valid_fee_redemption_statement, bytes memory recipient_wallet_commitment_signatur...
    | |______________________- function or associated item `decode` not found for this struct
    |
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following traits define an item `decode`, perhaps you need to implement one of them:
            candidate #1: `AbiDecode`
            candidate #2: `FunctionOutputDecoder`
            candidate #3: `parity_scale_codec::codec::Decode`
            candidate #4: `Decodable`
            candidate #5: `open_fastrlp::decode::Decodable`
            candidate #6: `Decode`
            candidate #7: `ethers::ethers_core::k256::pkcs8::der::Reader`
            candidate #8: `base64::engine::Engine`
            candidate #9: `tokio_util::codec::decoder::Decoder`
            candidate #10: `quinn_proto::coding::Codec`
            candidate #11: `base_x::alphabet::Alphabet`
            candidate #12: `tonic::codec::Decoder`
            candidate #13: `tonic::metadata::encoding::value_encoding::Sealed`
            candidate #14: `prost::message::Message`
            candidate #15: `alloy_sol_types::types::r#enum::SolEnum`
            candidate #16: `alloy_sol_types::types::error::SolError`
            candidate #17: `alloy_sol_types::types::function::SolCall`
            candidate #18: `alloy_sol_types::types::interface::SolInterface`
            candidate #19: `alloy_sol_types::types::ty::SolType`
help: there is an associated function `abi_decode` with a similar name
    |
163 |     let call = redeemFeeCall::abi_decode(calldata, true /* validate */)
    |                               ~~~~~~~~~~

Check failure on line 147 in /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `decode` found for struct `settleOfflineFeeCall` in the current scope

error[E0599]: no function or associated item named `decode` found for struct `settleOfflineFeeCall` in the current scope
   --> /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs:147:38
    |
147 |       let call = settleOfflineFeeCall::decode(calldata, true /* validate */)
    |                                        ^^^^^^ function or associated item not found in `settleOfflineFeeCall`
    |
   ::: /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/abi.rs:64:1
    |
64  | / sol! {
65  | |     function newWallet(bytes memory proof, bytes memory valid_wallet_create_statement_bytes) external;
66  | |     function updateWallet(bytes memory proof, bytes memory valid_wallet_update_statement_bytes, bytes memory wallet_commitment_signature,...
67  | |     function processMatchSettle(bytes memory party_0_match_payload, bytes memory party_1_match_payload, bytes memory valid_match_settle_s...
68  | |     function settleOnlineRelayerFee(bytes memory proof, bytes memory valid_relayer_fee_settlement_statement, bytes memory relayer_wallet_...
69  | |     function settleOfflineFee(bytes memory proof, bytes memory valid_offline_fee_settlement_statement) external;
    | |_____________________________- function or associated item `decode` not found for this struct
    |
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following traits define an item `decode`, perhaps you need to implement one of them:
            candidate #1: `AbiDecode`
            candidate #2: `FunctionOutputDecoder`
            candidate #3: `parity_scale_codec::codec::Decode`
            candidate #4: `Decodable`
            candidate #5: `open_fastrlp::decode::Decodable`
            candidate #6: `Decode`
            candidate #7: `ethers::ethers_core::k256::pkcs8::der::Reader`
            candidate #8: `base64::engine::Engine`
            candidate #9: `tokio_util::codec::decoder::Decoder`
            candidate #10: `quinn_proto::coding::Codec`
            candidate #11: `base_x::alphabet::Alphabet`
            candidate #12: `tonic::codec::Decoder`
            candidate #13: `tonic::metadata::encoding::value_encoding::Sealed`
            candidate #14: `prost::message::Message`
            candidate #15: `alloy_sol_types::types::r#enum::SolEnum`
            candidate #16: `alloy_sol_types::types::error::SolError`
            candidate #17: `alloy_sol_types::types::function::SolCall`
            candidate #18: `alloy_sol_types::types::interface::SolInterface`
            candidate #19: `alloy_sol_types::types::ty::SolType`
help: there is an associated function `abi_decode` with a similar name
    |
147 |     let call = settleOfflineFeeCall::abi_decode(calldata, true /* validate */)
    |                                      ~~~~~~~~~~

Check failure on line 114 in /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `decode` found for struct `settleOnlineRelayerFeeCall` in the current scope

error[E0599]: no function or associated item named `decode` found for struct `settleOnlineRelayerFeeCall` in the current scope
   --> /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs:114:44
    |
114 |       let call = settleOnlineRelayerFeeCall::decode(calldata, true /* validate */)
    |                                              ^^^^^^ function or associated item not found in `settleOnlineRelayerFeeCall`
    |
   ::: /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/abi.rs:64:1
    |
64  | / sol! {
65  | |     function newWallet(bytes memory proof, bytes memory valid_wallet_create_statement_bytes) external;
66  | |     function updateWallet(bytes memory proof, bytes memory valid_wallet_update_statement_bytes, bytes memory wallet_commitment_signature,...
67  | |     function processMatchSettle(bytes memory party_0_match_payload, bytes memory party_1_match_payload, bytes memory valid_match_settle_s...
68  | |     function settleOnlineRelayerFee(bytes memory proof, bytes memory valid_relayer_fee_settlement_statement, bytes memory relayer_wallet_...
    | |___________________________________- function or associated item `decode` not found for this struct
    |
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following traits define an item `decode`, perhaps you need to implement one of them:
            candidate #1: `AbiDecode`
            candidate #2: `FunctionOutputDecoder`
            candidate #3: `parity_scale_codec::codec::Decode`
            candidate #4: `Decodable`
            candidate #5: `open_fastrlp::decode::Decodable`
            candidate #6: `Decode`
            candidate #7: `ethers::ethers_core::k256::pkcs8::der::Reader`
            candidate #8: `base64::engine::Engine`
            candidate #9: `tokio_util::codec::decoder::Decoder`
            candidate #10: `quinn_proto::coding::Codec`
            candidate #11: `base_x::alphabet::Alphabet`
            candidate #12: `tonic::codec::Decoder`
            candidate #13: `tonic::metadata::encoding::value_encoding::Sealed`
            candidate #14: `prost::message::Message`
            candidate #15: `alloy_sol_types::types::r#enum::SolEnum`
            candidate #16: `alloy_sol_types::types::error::SolError`
            candidate #17: `alloy_sol_types::types::function::SolCall`
            candidate #18: `alloy_sol_types::types::interface::SolInterface`
            candidate #19: `alloy_sol_types::types::ty::SolType`
help: there is an associated function `abi_decode` with a similar name
    |
114 |     let call = settleOnlineRelayerFeeCall::abi_decode(calldata, true /* validate */)
    |                                            ~~~~~~~~~~

Check failure on line 81 in /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `decode` found for struct `processMatchSettleCall` in the current scope

error[E0599]: no function or associated item named `decode` found for struct `processMatchSettleCall` in the current scope
  --> /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs:81:40
   |
81 |       let call = processMatchSettleCall::decode(calldata, true /* validate */)
   |                                          ^^^^^^ function or associated item not found in `processMatchSettleCall`
   |
  ::: /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/abi.rs:64:1
   |
64 | / sol! {
65 | |     function newWallet(bytes memory proof, bytes memory valid_wallet_create_statement_bytes) external;
66 | |     function updateWallet(bytes memory proof, bytes memory valid_wallet_update_statement_bytes, bytes memory wallet_commitment_signature,...
67 | |     function processMatchSettle(bytes memory party_0_match_payload, bytes memory party_1_match_payload, bytes memory valid_match_settle_s...
   | |_______________________________- function or associated item `decode` not found for this struct
   |
   = help: items from traits can only be used if the trait is implemented and in scope
   = note: the following traits define an item `decode`, perhaps you need to implement one of them:
           candidate #1: `AbiDecode`
           candidate #2: `FunctionOutputDecoder`
           candidate #3: `parity_scale_codec::codec::Decode`
           candidate #4: `Decodable`
           candidate #5: `open_fastrlp::decode::Decodable`
           candidate #6: `Decode`
           candidate #7: `ethers::ethers_core::k256::pkcs8::der::Reader`
           candidate #8: `base64::engine::Engine`
           candidate #9: `tokio_util::codec::decoder::Decoder`
           candidate #10: `quinn_proto::coding::Codec`
           candidate #11: `base_x::alphabet::Alphabet`
           candidate #12: `tonic::codec::Decoder`
           candidate #13: `tonic::metadata::encoding::value_encoding::Sealed`
           candidate #14: `prost::message::Message`
           candidate #15: `alloy_sol_types::types::r#enum::SolEnum`
           candidate #16: `alloy_sol_types::types::error::SolError`
           candidate #17: `alloy_sol_types::types::function::SolCall`
           candidate #18: `alloy_sol_types::types::interface::SolInterface`
           candidate #19: `alloy_sol_types::types::ty::SolType`
help: there is an associated function `abi_decode` with a similar name
   |
81 |     let call = processMatchSettleCall::abi_decode(calldata, true /* validate */)
   |                                        ~~~~~~~~~~

Check failure on line 64 in /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `decode` found for struct `updateWalletCall` in the current scope

error[E0599]: no function or associated item named `decode` found for struct `updateWalletCall` in the current scope
  --> /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs:64:34
   |
64 |       let call = updateWalletCall::decode(calldata, true /* validate */)
   |                                    ^^^^^^ function or associated item not found in `updateWalletCall`
   |
  ::: /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/abi.rs:64:1
   |
64 | / sol! {
65 | |     function newWallet(bytes memory proof, bytes memory valid_wallet_create_statement_bytes) external;
66 | |     function updateWallet(bytes memory proof, bytes memory valid_wallet_update_statement_bytes, bytes memory wallet_commitment_signature,...
   | |_________________________- function or associated item `decode` not found for this struct
   |
   = help: items from traits can only be used if the trait is implemented and in scope
   = note: the following traits define an item `decode`, perhaps you need to implement one of them:
           candidate #1: `AbiDecode`
           candidate #2: `FunctionOutputDecoder`
           candidate #3: `parity_scale_codec::codec::Decode`
           candidate #4: `Decodable`
           candidate #5: `open_fastrlp::decode::Decodable`
           candidate #6: `Decode`
           candidate #7: `ethers::ethers_core::k256::pkcs8::der::Reader`
           candidate #8: `base64::engine::Engine`
           candidate #9: `tokio_util::codec::decoder::Decoder`
           candidate #10: `quinn_proto::coding::Codec`
           candidate #11: `base_x::alphabet::Alphabet`
           candidate #12: `tonic::codec::Decoder`
           candidate #13: `tonic::metadata::encoding::value_encoding::Sealed`
           candidate #14: `prost::message::Message`
           candidate #15: `alloy_sol_types::types::r#enum::SolEnum`
           candidate #16: `alloy_sol_types::types::error::SolError`
           candidate #17: `alloy_sol_types::types::function::SolCall`
           candidate #18: `alloy_sol_types::types::interface::SolInterface`
           candidate #19: `alloy_sol_types::types::ty::SolType`
help: there is an associated function `abi_decode` with a similar name
   |
64 |     let call = updateWalletCall::abi_decode(calldata, true /* validate */)
   |                                  ~~~~~~~~~~

Check failure on line 48 in /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

no function or associated item named `decode` found for struct `newWalletCall` in the current scope

error[E0599]: no function or associated item named `decode` found for struct `newWalletCall` in the current scope
  --> /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/helpers.rs:48:31
   |
48 |       let call = newWalletCall::decode(calldata, true /* validate */)
   |                                 ^^^^^^ function or associated item not found in `newWalletCall`
   |
  ::: /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/abi.rs:64:1
   |
64 | / sol! {
65 | |     function newWallet(bytes memory proof, bytes memory valid_wallet_create_statement_bytes) external;
   | |______________________- function or associated item `decode` not found for this struct
   |
   = help: items from traits can only be used if the trait is implemented and in scope
   = note: the following traits define an item `decode`, perhaps you need to implement one of them:
           candidate #1: `AbiDecode`
           candidate #2: `FunctionOutputDecoder`
           candidate #3: `parity_scale_codec::codec::Decode`
           candidate #4: `Decodable`
           candidate #5: `open_fastrlp::decode::Decodable`
           candidate #6: `Decode`
           candidate #7: `ethers::ethers_core::k256::pkcs8::der::Reader`
           candidate #8: `base64::engine::Engine`
           candidate #9: `tokio_util::codec::decoder::Decoder`
           candidate #10: `quinn_proto::coding::Codec`
           candidate #11: `base_x::alphabet::Alphabet`
           candidate #12: `tonic::codec::Decoder`
           candidate #13: `tonic::metadata::encoding::value_encoding::Sealed`
           candidate #14: `prost::message::Message`
           candidate #15: `alloy_sol_types::types::r#enum::SolEnum`
           candidate #16: `alloy_sol_types::types::error::SolError`
           candidate #17: `alloy_sol_types::types::function::SolCall`
           candidate #18: `alloy_sol_types::types::interface::SolInterface`
           candidate #19: `alloy_sol_types::types::ty::SolType`
help: there is an associated function `abi_decode` with a similar name
   |
48 |     let call = newWalletCall::abi_decode(calldata, true /* validate */)
   |                               ~~~~~~~~~~

Check failure on line 111 in /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/conversion.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/conversion.rs:111:15
    |
111 |         mint: Address::from(mint),
    |               ^^^^^^^^^^^^^^^^^^^ expected `Address`, found `alloy_primitives::Address`
    |
    = note: `alloy_primitives::Address` and `Address` have similar names, but are actually distinct types
note: `alloy_primitives::Address` is defined in crate `alloy_primitives`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloy-primitives-0.7.7/src/bits/address.rs:45:1
    |
45  | / wrap_fixed_bytes!(
46  | |     // we implement Display with the checksum, so we don't derive it
47  | |     extra_derives: [],
48  | |     /// An Ethereum address, 20 bytes in length.
...   |
86  | |     pub struct Address<20>;
87  | | );
    | |_^
note: `Address` is defined in crate `alloy_primitives`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloy-primitives-0.3.3/src/bits/address.rs:45:1
    |
45  | / wrap_fixed_bytes!(
46  | |     // we implement Display with the checksum, so we don't derive it
47  | |     extra_derives: [],
48  | |     /// An Ethereum address, 20 bytes in length.
...   |
86  | |     pub struct Address<20>;
87  | | );
    | |_^
    = note: perhaps two different versions of crate `alloy_primitives` are being used?
    = note: this error originates in the macro `wrap_fixed_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)

Check failure on line 110 in /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/conversion.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> /home/runner/.cargo/git/checkouts/renegade-ad0d3831126b3d27/a0ea328/arbitrum-client/src/conversion.rs:110:23
    |
110 |         account_addr: Address::from(account_addr),
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Address`, found `alloy_primitives::Address`
    |
    = note: `alloy_primitives::Address` and `Address` have similar names, but are actually distinct types
note: `alloy_primitives::Address` is defined in crate `alloy_primitives`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloy-primitives-0.7.7/src/bits/address.rs:45:1
    |
45  | / wrap_fixed_bytes!(
46  | |     // we implement Display with the checksum, so we don't derive it
47  | |     extra_derives: [],
48  | |     /// An Ethereum address, 20 bytes in length.
...   |
86  | |     pub struct Address<20>;
87  | | );
    | |_^
note: `Address` is defined in crate `alloy_primitives`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloy-primitives-0.3.3/src/bits/address.rs:45:1
    |
45  | / wrap_fixed_bytes!(
46  | |     // we implement Display with the checksum, so we don't derive it
47  | |     extra_derives: [],
48  | |     /// An Ethereum address, 20 bytes in length.
...   |
86  | |     pub struct Address<20>;
87  | | );
    | |_^
    = note: perhaps two different versions of crate `alloy_primitives` are being used?
    = note: this error originates in the macro `wrap_fixed_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)