feat(platform)!: contested document resolution with masternode voting #2534
Annotations
11 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: mozilla-actions/[email protected], strophy/actions-cache@opendal-update. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
packages/rs-dpp/src/state_transition/state_transitions/document/documents_batch_transition/document_transition/document_create_transition/v0/mod.rs#L9
warning: unused import: `platform_value::ValueMapHelper`
--> packages/rs-dpp/src/state_transition/state_transitions/document/documents_batch_transition/document_transition/document_create_transition/v0/mod.rs:9:5
|
9 | use platform_value::ValueMapHelper;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
packages/rs-dpp/src/voting/contender_structs/contender/v0/mod.rs#L5
warning: unused import: `crate::prelude::ConsensusValidationResult`
--> packages/rs-dpp/src/voting/contender_structs/contender/v0/mod.rs:5:5
|
5 | use crate::prelude::ConsensusValidationResult;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
packages/rs-dpp/src/voting/contender_structs/contender/v0/mod.rs#L6
warning: unused import: `crate::serialization::PlatformSerializable`
--> packages/rs-dpp/src/voting/contender_structs/contender/v0/mod.rs:6:5
|
6 | use crate::serialization::PlatformSerializable;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
packages/rs-dpp/src/voting/contender_structs/contender/v0/mod.rs#L7
warning: unused import: `crate::voting::contender_structs::ContenderWithSerializedDocument`
--> packages/rs-dpp/src/voting/contender_structs/contender/v0/mod.rs:7:5
|
7 | use crate::voting::contender_structs::ContenderWithSerializedDocument;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
packages/rs-dpp/src/voting/contender_structs/contender/v0/mod.rs#L10
warning: unused import: `FeatureVersion`
--> packages/rs-dpp/src/voting/contender_structs/contender/v0/mod.rs:10:33
|
10 | use platform_version::version::{FeatureVersion, PlatformVersion};
| ^^^^^^^^^^^^^^
|
packages/rs-dpp/src/voting/contender_structs/contender/mod.rs#L4
warning: unused import: `crate::document::serialization_traits::DocumentPlatformConversionMethodsV0`
--> packages/rs-dpp/src/voting/contender_structs/contender/mod.rs:4:5
|
4 | use crate::document::serialization_traits::DocumentPlatformConversionMethodsV0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
packages/wasm-dpp/src/lib.rs#L10
warning: unused import: `voting::*`
--> packages/wasm-dpp/src/lib.rs:10:9
|
10 | pub use voting::*;
| ^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
packages/wasm-dpp/src/data_contract_factory/mod.rs#L1
warning: module has the same name as its containing module
--> packages/wasm-dpp/src/data_contract_factory/mod.rs:1:1
|
1 | mod data_contract_factory;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception
= note: `#[warn(clippy::module_inception)]` on by default
|
packages/wasm-dpp/src/document/factory.rs#L153
warning: very complex type used. Consider factoring parts into `type` definitions
--> packages/wasm-dpp/src/document/factory.rs:153:24
|
153 | let documents: Vec<(
| ________________________^
154 | | DocumentTransitionActionType,
155 | | Vec<(Document, DocumentTypeRef, Bytes32)>,
156 | | )> = documents_by_action
| |__________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
= note: `#[warn(clippy::type_complexity)]` on by default
|
packages/wasm-dpp/src/document/factory.rs#L322
warning: use of a fallible conversion when an infallible one could be used
--> packages/wasm-dpp/src/document/factory.rs:322:27
|
322 | let documents_array = js_sys::Array::try_from(documents_with_action)
| ^^^^^^^^^^^^^^^^^^^^^^^ help: use: `From::from`
|
= note: converting `JsValue` to `Array` cannot fail
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fallible_conversions
= note: `#[warn(clippy::unnecessary_fallible_conversions)]` on by default
|
This job succeeded
Loading