feat(platform)!: masternode voting based conflict resolution #1844
Annotations
8 errors and 12 warnings
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/fields.rs#L5
error[E0432]: unresolved import `state_transitions::common_fields::property_names::ENTROPY`
--> packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/fields.rs:5:5
|
5 | ENTROPY, SIGNATURE, SIGNATURE_PUBLIC_KEY_ID, STATE_TRANSITION_PROTOCOL_VERSION, TRANSITION_TYPE,
| ^^^^^^^ no `ENTROPY` in `state_transition::state_transitions::common_fields::property_names`
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/state_transition_like.rs#L6
error[E0046]: not all trait items implemented, missing: `user_fee_increase`, `set_user_fee_increase`
--> packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/state_transition_like.rs:6:1
|
6 | impl StateTransitionLike for MasternodeVoteTransition {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `user_fee_increase`, `set_user_fee_increase` in implementation
|
::: packages/rs-dpp/src/state_transition/traits/state_transition_like.rs:41:5
|
41 | fn user_fee_increase(&self) -> UserFeeIncrease;
| ----------------------------------------------- `user_fee_increase` from trait
42 | /// set a fee multiplier
43 | fn set_user_fee_increase(&mut self, fee_multiplier: UserFeeIncrease);
| --------------------------------------------------------------------- `set_user_fee_increase` from trait
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/v0/state_transition_like.rs#L22
error[E0046]: not all trait items implemented, missing: `user_fee_increase`, `set_user_fee_increase`
--> packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/v0/state_transition_like.rs:22:1
|
22 | impl StateTransitionLike for MasternodeVoteTransitionV0 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `user_fee_increase`, `set_user_fee_increase` in implementation
|
::: packages/rs-dpp/src/state_transition/traits/state_transition_like.rs:41:5
|
41 | fn user_fee_increase(&self) -> UserFeeIncrease;
| ----------------------------------------------- `user_fee_increase` from trait
42 | /// set a fee multiplier
43 | fn set_user_fee_increase(&mut self, fee_multiplier: UserFeeIncrease);
| --------------------------------------------------------------------- `set_user_fee_increase` from trait
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/data_contract/document_type/index/mod.rs#L267
error[E0277]: `?` couldn't convert the error to `data_contract::errors::contract::DataContractError`
--> packages/rs-dpp/src/data_contract/document_type/index/mod.rs:267:64
|
267 | ... .map_err(ProtocolError::ValueError)?;
| ^ the trait `std::convert::From<errors::protocol_error::ProtocolError>` is not implemented for `data_contract::errors::contract::DataContractError`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
<data_contract::errors::contract::DataContractError as std::convert::From<platform_value::Error>>
<data_contract::errors::contract::DataContractError as std::convert::From<errors::consensus::basic::decode::decoding_error::DecodingError>>
<data_contract::errors::contract::DataContractError as std::convert::From<(platform_value::Error, &str)>>
= note: required for `std::result::Result<data_contract::document_type::index::Index, data_contract::errors::contract::DataContractError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, errors::protocol_error::ProtocolError>>`
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/data_contract/document_type/index/mod.rs#L285
error[E0277]: `?` couldn't convert the error to `data_contract::errors::contract::DataContractError`
--> packages/rs-dpp/src/data_contract/document_type/index/mod.rs:285:62
|
285 | ... resolution_int.try_into()?;
| ^ the trait `std::convert::From<errors::protocol_error::ProtocolError>` is not implemented for `data_contract::errors::contract::DataContractError`
|
= note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
= help: the following other types implement trait `std::convert::From<T>`:
<data_contract::errors::contract::DataContractError as std::convert::From<platform_value::Error>>
<data_contract::errors::contract::DataContractError as std::convert::From<errors::consensus::basic::decode::decoding_error::DecodingError>>
<data_contract::errors::contract::DataContractError as std::convert::From<(platform_value::Error, &str)>>
= note: required for `std::result::Result<data_contract::document_type::index::Index, data_contract::errors::contract::DataContractError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, errors::protocol_error::ProtocolError>>`
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/data_contract/document_type/index/mod.rs#L289
error[E0599]: no variant or associated item named `StructureError` found for enum `errors::protocol_error::ProtocolError` in the current scope
--> packages/rs-dpp/src/data_contract/document_type/index/mod.rs:289:59
|
289 | ... return Err(ProtocolError::StructureError(
| ^^^^^^^^^^^^^^ variant or associated item not found in `ProtocolError`
|
::: packages/rs-dpp/src/errors/protocol_error.rs:28:1
|
28 | pub enum ProtocolError {
| ---------------------- variant or associated item `StructureError` not found for this enum
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/data_contract/document_type/index/mod.rs#L290
error[E0433]: failed to resolve: use of undeclared type `StructureError`
--> packages/rs-dpp/src/data_contract/document_type/index/mod.rs:290:37
|
290 | ... StructureError::ValueWrongType("unexpected contested key"),
| ^^^^^^^^^^^^^^ use of undeclared type `StructureError`
|
help: there is an enum variant `crate::platform_value::Error::StructureError` and 1 other; try using the variant's enum
|
290 | crate::platform_value::Error("unexpected contested key"),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
290 | platform_value::Error("unexpected contested key"),
| ~~~~~~~~~~~~~~~~~~~~~
|
Run clechasseur/rs-clippy-check@v3
Clippy has exited with exit code 101
|
|
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/.
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/v0/types.rs#L1
warning: unused import: `crate::state_transition::masternode_vote_transition::fields::property_names::*`
--> packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/v0/types.rs:1:5
|
1 | use crate::state_transition::masternode_vote_transition::fields::property_names::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/v0/mod.rs#L20
warning: unused imports: `Deserialize`, `Serialize`
--> packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/v0/mod.rs:20:13
|
20 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/mod.rs#L21
warning: unused import: `crate::state_transition::data_contract_update_transition::DataContractUpdateTransition`
--> packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/mod.rs:21:5
|
21 | use crate::state_transition::data_contract_update_transition::DataContractUpdateTransition;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/mod.rs#L29
warning: unused imports: `Deserialize`, `Serialize`
--> packages/rs-dpp/src/state_transition/state_transitions/identity/masternode_vote_transition/mod.rs:29:13
|
29 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/voting/mod.rs#L1
warning: unused import: `crate::data_contract::accessors::v0::DataContractV0Getters`
--> packages/rs-dpp/src/voting/mod.rs:1:5
|
1 | use crate::data_contract::accessors::v0::DataContractV0Getters;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/voting/mod.rs#L2
warning: unused import: `crate::data_contract::document_type::accessors::DocumentTypeV0Getters`
--> packages/rs-dpp/src/voting/mod.rs:2:5
|
2 | use crate::data_contract::document_type::accessors::DocumentTypeV0Getters;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/voting/mod.rs#L3
warning: unused import: `crate::prelude::DataContract`
--> packages/rs-dpp/src/voting/mod.rs:3:5
|
3 | use crate::prelude::DataContract;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/voting/mod.rs#L10
warning: unused imports: `Deserialize`, `Serialize`
--> packages/rs-dpp/src/voting/mod.rs:10:13
|
10 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/voting/common_vote/mod.rs#L2
warning: unused imports: `Deserialize`, `Serialize`
--> packages/rs-dpp/src/voting/common_vote/mod.rs:2:13
|
2 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
|
Run clechasseur/rs-clippy-check@v3:
packages/rs-dpp/src/voting/resource_vote/mod.rs#L3
warning: unused imports: `Deserialize`, `Serialize`
--> packages/rs-dpp/src/voting/resource_vote/mod.rs:3:13
|
3 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
|
Loading