feat: query many identity balances at a time #3606
Annotations
12 warnings
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/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: mozilla-actions/[email protected], strophy/actions-cache@opendal-update. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
packages/rs-platform-serialization-derive/src/attribute.rs#L8
warning: field `unversioned` is never read
--> packages/rs-platform-serialization-derive/src/attribute.rs:8:9
|
5 | pub struct ContainerAttributes {
| ------------------- field in this struct
...
8 | pub unversioned: bool,
| ^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
packages/rs-platform-serialization-derive/src/attribute.rs#L114
warning: field `platform_version_path_bounds` is never read
--> packages/rs-platform-serialization-derive/src/attribute.rs:114:9
|
111 | pub struct FieldAttributes {
| --------------- field in this struct
...
114 | pub platform_version_path_bounds: String,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
packages/rs-drive/src/drive/contract/test_helpers.rs#L6
warning: unexpected `cfg` condition value: `data-contract-cbor-conversion`
--> packages/rs-drive/src/drive/contract/test_helpers.rs:6:7
|
6 | #[cfg(feature = "data-contract-cbor-conversion")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `arc-swap`, `base64`, `bs58`, `cbor_query`, `chrono`, `ciborium`, `default`, `dpp`, `enum-map`, `fee-distribution`, `fixtures-and-mocks`, `full`, `grovedb`, `grovedb-costs`, `grovedb-storage`, `grovedb_operations_logging`, `grovedbg`, `intmap`, `itertools`, `moka`, `parking_lot`, `rand`, `serde`, `server`, `tempfile`, and `verify`
= help: consider adding `data-contract-cbor-conversion` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
|
packages/rs-drive/src/drive/document/insert/mod.rs#L40
warning: unexpected `cfg` condition value: `data-contract-cbor-conversion`
--> packages/rs-drive/src/drive/document/insert/mod.rs:40:5
|
40 | feature = "data-contract-cbor-conversion"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `arc-swap`, `base64`, `bs58`, `cbor_query`, `chrono`, `ciborium`, `default`, `dpp`, `enum-map`, `fee-distribution`, `fixtures-and-mocks`, `full`, `grovedb`, `grovedb-costs`, `grovedb-storage`, `grovedb_operations_logging`, `grovedbg`, `intmap`, `itertools`, `moka`, `parking_lot`, `rand`, `serde`, `server`, `tempfile`, and `verify`
= help: consider adding `data-contract-cbor-conversion` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
packages/rs-drive/src/drive/document/insert_contested/mod.rs#L41
warning: unexpected `cfg` condition value: `data-contract-cbor-conversion`
--> packages/rs-drive/src/drive/document/insert_contested/mod.rs:41:5
|
41 | feature = "data-contract-cbor-conversion"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `arc-swap`, `base64`, `bs58`, `cbor_query`, `chrono`, `ciborium`, `default`, `dpp`, `enum-map`, `fee-distribution`, `fixtures-and-mocks`, `full`, `grovedb`, `grovedb-costs`, `grovedb-storage`, `grovedb_operations_logging`, `grovedbg`, `intmap`, `itertools`, `moka`, `parking_lot`, `rand`, `serde`, `server`, `tempfile`, and `verify`
= help: consider adding `data-contract-cbor-conversion` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
packages/rs-drive/src/drive/document/query/mod.rs#L37
warning: unexpected `cfg` condition value: `data-contract-cbor-conversion`
--> packages/rs-drive/src/drive/document/query/mod.rs:37:5
|
37 | feature = "data-contract-cbor-conversion"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `feature` are: `arc-swap`, `base64`, `bs58`, `cbor_query`, `chrono`, `ciborium`, `default`, `dpp`, `enum-map`, `fee-distribution`, `fixtures-and-mocks`, `full`, `grovedb`, `grovedb-costs`, `grovedb-storage`, `grovedb_operations_logging`, `grovedbg`, `intmap`, `itertools`, `moka`, `parking_lot`, `rand`, `serde`, `server`, `tempfile`, and `verify`
= help: consider adding `data-contract-cbor-conversion` as a feature in `Cargo.toml`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
packages/rs-drive-abci/src/abci/handler/prepare_proposal.rs#L12
warning: unused import: `StorageError`
--> packages/rs-drive-abci/src/abci/handler/prepare_proposal.rs:12:51
|
12 | use drive::grovedb_storage::Error::{RocksDBError, StorageError};
| ^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_masternode_identities/update_operator_identity/v0/mod.rs#L268
warning: this `else { if .. }` block can be collapsed
--> packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_masternode_identities/update_operator_identity/v0/mod.rs:268:24
|
268 | } else {
| ________________________^
269 | | if let Some((_, found_old_key)) = identity_to_enable_old_keys
270 | | .iter()
271 | | .find(|(_, key)| key.purpose() == Purpose::TRANSFER)
... |
282 | | }
283 | | };
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_else_if
= note: `#[warn(clippy::collapsible_else_if)]` on by default
help: collapse nested if block
|
268 ~ } else if let Some((_, found_old_key)) = identity_to_enable_old_keys
269 + .iter()
270 + .find(|(_, key)| key.purpose() == Purpose::TRANSFER)
271 + {
272 + Some(found_old_key.data().to_vec().try_into().map_err(|_| {
273 + Error::Execution(ExecutionError::CorruptedDriveResponse(
274 + "old payout address should be 20 bytes".to_string(),
275 + ))
276 + })?)
277 + } else {
278 + // finally we just use the old masternode payout address
279 + // we need to use the old pub_key_operator
280 + old_masternode.state.operator_payout_address
281 ~ };
|
|
packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_masternode_identities/update_operator_identity/v0/mod.rs#L323
warning: taken reference of right operand
--> packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_masternode_identities/update_operator_identity/v0/mod.rs:323:42
|
323 | .find(|(_, key)| key.data().as_slice() == &new_payout_address)
| ^^^^^^^^^^^^^^^^^^^^^^^^^-------------------
| |
| help: use the right value directly: `new_payout_address`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
= note: `#[warn(clippy::op_ref)]` on by default
|
packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_masternode_identities/update_operator_identity/v0/mod.rs#L347
warning: taken reference of right operand
--> packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_masternode_identities/update_operator_identity/v0/mod.rs:347:42
|
347 | .find(|(_, key)| key.data().as_slice() == &new_platform_node_id)
| ^^^^^^^^^^^^^^^^^^^^^^^^^---------------------
| |
| help: use the right value directly: `new_platform_node_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref
|
This job succeeded
Loading