feat(platform)!: token support [WIP] #5049
tests.yml
on: pull_request
Build JS packages
/
Build JS
27s
Matrix: Build Docker images
Determine changed packages
27s
Rust crates security audit
1m 20s
JS dependency versions check
9s
JS NPM security audit
6s
JS code security audit
/
Run Code QL
Packages functional tests
/
Run functional tests
Matrix: Test Suite
Waiting for pending jobs
Matrix: Dashmate E2E tests
Waiting for pending jobs
Matrix: JS packages
Waiting for pending jobs
Matrix: Rust packages
Annotations
7 errors, 50 warnings, and 30 notices
JS NPM security audit
Process completed with exit code 1.
|
JS dependency versions check
Process completed with exit code 1.
|
Build JS packages / Build JS
Unable to download artifact(s): Artifact not found for name: js-build-2b8f3e78e553433aa7bef7ba5bf77126ed728a5b
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md
|
Build JS packages / Build JS
Process completed with exit code 1.
|
Rust packages (dpp) / Check each feature
Process completed with exit code 101.
|
Rust packages (token-history-contract) / Unused dependencies
Unable to process file command 'output' successfully.
|
Rust packages (token-history-contract) / Unused dependencies
Invalid format './packages/token-history-contract'
|
this `if` statement can be collapsed:
packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs#L50
warning: this `if` statement can be collapsed
--> packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs:50:9
|
50 | / if old.max_supply != new.max_supply
51 | | || old.max_supply_change_rules != new.max_supply_change_rules
52 | | {
53 | | if !old.max_supply_change_rules.can_change_to(
... |
69 | | }
70 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
= note: `#[warn(clippy::collapsible_if)]` on by default
help: collapse nested if block
|
50 ~ if (old.max_supply != new.max_supply || old.max_supply_change_rules != new.max_supply_change_rules) && !old.max_supply_change_rules.can_change_to(
51 + &new.max_supply_change_rules,
52 + contract_owner_id,
53 + main_group,
54 + groups,
55 + action_taker,
56 + ) {
57 + return SimpleConsensusValidationResult::new_with_error(
58 + DataContractTokenConfigurationUpdateError::new(
59 + "update".to_string(),
60 + "maxSupply or maxSupplyChangeRules".to_string(),
61 + self.clone(),
62 + new_config.clone(),
63 + )
64 + .into(),
65 + );
66 + }
|
|
this `if` statement can be collapsed:
packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs#L73
warning: this `if` statement can be collapsed
--> packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs:73:9
|
73 | / if old.new_tokens_destination_identity != new.new_tokens_destination_identity
74 | | || old.new_tokens_destination_identity_rules
75 | | != new.new_tokens_destination_identity_rules
76 | | {
... |
94 | | }
95 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
73 ~ if (old.new_tokens_destination_identity != new.new_tokens_destination_identity || old.new_tokens_destination_identity_rules
74 + != new.new_tokens_destination_identity_rules) && !old.new_tokens_destination_identity_rules.can_change_to(
75 + &new.new_tokens_destination_identity_rules,
76 + contract_owner_id,
77 + main_group,
78 + groups,
79 + action_taker,
80 + ) {
81 + return SimpleConsensusValidationResult::new_with_error(
82 + DataContractTokenConfigurationUpdateError::new(
83 + "update".to_string(),
84 + "newTokensDestinationIdentity or newTokensDestinationIdentityRules"
85 + .to_string(),
86 + self.clone(),
87 + new_config.clone(),
88 + )
89 + .into(),
90 + );
91 + }
|
|
this `if` statement can be collapsed:
packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs#L98
warning: this `if` statement can be collapsed
--> packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs:98:9
|
98 | / if old.minting_allow_choosing_destination != new.minting_allow_choosing_destination
99 | | || old.minting_allow_choosing_destination_rules
100 | | != new.minting_allow_choosing_destination_rules
101 | | {
... |
119 | | }
120 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
98 ~ if (old.minting_allow_choosing_destination != new.minting_allow_choosing_destination || old.minting_allow_choosing_destination_rules
99 + != new.minting_allow_choosing_destination_rules) && !old.minting_allow_choosing_destination_rules.can_change_to(
100 + &new.minting_allow_choosing_destination_rules,
101 + contract_owner_id,
102 + main_group,
103 + groups,
104 + action_taker,
105 + ) {
106 + return SimpleConsensusValidationResult::new_with_error(
107 + DataContractTokenConfigurationUpdateError::new(
108 + "update".to_string(),
109 + "mintingAllowChoosingDestination or mintingAllowChoosingDestinationRules"
110 + .to_string(),
111 + self.clone(),
112 + new_config.clone(),
113 + )
114 + .into(),
115 + );
116 + }
|
|
this `if` statement can be collapsed:
packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs#L123
warning: this `if` statement can be collapsed
--> packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs:123:9
|
123 | / if old.manual_minting_rules != new.manual_minting_rules {
124 | | if !old.manual_minting_rules.can_change_to(
125 | | &new.manual_minting_rules,
126 | | contract_owner_id,
... |
140 | | }
141 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
123 ~ if old.manual_minting_rules != new.manual_minting_rules && !old.manual_minting_rules.can_change_to(
124 + &new.manual_minting_rules,
125 + contract_owner_id,
126 + main_group,
127 + groups,
128 + action_taker,
129 + ) {
130 + return SimpleConsensusValidationResult::new_with_error(
131 + DataContractTokenConfigurationUpdateError::new(
132 + "update".to_string(),
133 + "manualMintingRules".to_string(),
134 + self.clone(),
135 + new_config.clone(),
136 + )
137 + .into(),
138 + );
139 + }
|
|
this `if` statement can be collapsed:
packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs#L144
warning: this `if` statement can be collapsed
--> packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs:144:9
|
144 | / if old.manual_burning_rules != new.manual_burning_rules {
145 | | if !old.manual_burning_rules.can_change_to(
146 | | &new.manual_burning_rules,
147 | | contract_owner_id,
... |
161 | | }
162 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
144 ~ if old.manual_burning_rules != new.manual_burning_rules && !old.manual_burning_rules.can_change_to(
145 + &new.manual_burning_rules,
146 + contract_owner_id,
147 + main_group,
148 + groups,
149 + action_taker,
150 + ) {
151 + return SimpleConsensusValidationResult::new_with_error(
152 + DataContractTokenConfigurationUpdateError::new(
153 + "update".to_string(),
154 + "manualBurningRules".to_string(),
155 + self.clone(),
156 + new_config.clone(),
157 + )
158 + .into(),
159 + );
160 + }
|
|
this `if` statement can be collapsed:
packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs#L165
warning: this `if` statement can be collapsed
--> packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs:165:9
|
165 | / if old.freeze_rules != new.freeze_rules {
166 | | if !old.freeze_rules.can_change_to(
167 | | &new.freeze_rules,
168 | | contract_owner_id,
... |
182 | | }
183 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
165 ~ if old.freeze_rules != new.freeze_rules && !old.freeze_rules.can_change_to(
166 + &new.freeze_rules,
167 + contract_owner_id,
168 + main_group,
169 + groups,
170 + action_taker,
171 + ) {
172 + return SimpleConsensusValidationResult::new_with_error(
173 + DataContractTokenConfigurationUpdateError::new(
174 + "update".to_string(),
175 + "freezeRules".to_string(),
176 + self.clone(),
177 + new_config.clone(),
178 + )
179 + .into(),
180 + );
181 + }
|
|
this `if` statement can be collapsed:
packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs#L186
warning: this `if` statement can be collapsed
--> packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs:186:9
|
186 | / if old.unfreeze_rules != new.unfreeze_rules {
187 | | if !old.unfreeze_rules.can_change_to(
188 | | &new.unfreeze_rules,
189 | | contract_owner_id,
... |
203 | | }
204 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
186 ~ if old.unfreeze_rules != new.unfreeze_rules && !old.unfreeze_rules.can_change_to(
187 + &new.unfreeze_rules,
188 + contract_owner_id,
189 + main_group,
190 + groups,
191 + action_taker,
192 + ) {
193 + return SimpleConsensusValidationResult::new_with_error(
194 + DataContractTokenConfigurationUpdateError::new(
195 + "update".to_string(),
196 + "unfreezeRules".to_string(),
197 + self.clone(),
198 + new_config.clone(),
199 + )
200 + .into(),
201 + );
202 + }
|
|
this `if` statement can be collapsed:
packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs#L207
warning: this `if` statement can be collapsed
--> packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs:207:9
|
207 | / if old.destroy_frozen_funds_rules != new.destroy_frozen_funds_rules {
208 | | if !old.destroy_frozen_funds_rules.can_change_to(
209 | | &new.destroy_frozen_funds_rules,
210 | | contract_owner_id,
... |
224 | | }
225 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
207 ~ if old.destroy_frozen_funds_rules != new.destroy_frozen_funds_rules && !old.destroy_frozen_funds_rules.can_change_to(
208 + &new.destroy_frozen_funds_rules,
209 + contract_owner_id,
210 + main_group,
211 + groups,
212 + action_taker,
213 + ) {
214 + return SimpleConsensusValidationResult::new_with_error(
215 + DataContractTokenConfigurationUpdateError::new(
216 + "update".to_string(),
217 + "destroyFrozenFundsRules".to_string(),
218 + self.clone(),
219 + new_config.clone(),
220 + )
221 + .into(),
222 + );
223 + }
|
|
this `if` statement can be collapsed:
packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs#L228
warning: this `if` statement can be collapsed
--> packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs:228:9
|
228 | / if old.emergency_action_rules != new.emergency_action_rules {
229 | | if !old.emergency_action_rules.can_change_to(
230 | | &new.emergency_action_rules,
231 | | contract_owner_id,
... |
245 | | }
246 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
228 ~ if old.emergency_action_rules != new.emergency_action_rules && !old.emergency_action_rules.can_change_to(
229 + &new.emergency_action_rules,
230 + contract_owner_id,
231 + main_group,
232 + groups,
233 + action_taker,
234 + ) {
235 + return SimpleConsensusValidationResult::new_with_error(
236 + DataContractTokenConfigurationUpdateError::new(
237 + "update".to_string(),
238 + "emergencyActionRules".to_string(),
239 + self.clone(),
240 + new_config.clone(),
241 + )
242 + .into(),
243 + );
244 + }
|
|
this `if` statement can be collapsed:
packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs#L249
warning: this `if` statement can be collapsed
--> packages/rs-dpp/src/data_contract/associated_token/token_configuration/methods/validate_token_configuration_update/v0/mod.rs:249:9
|
249 | / if old.main_control_group != new.main_control_group {
250 | | if !old
251 | | .main_control_group_can_be_modified
252 | | .allowed_for_action_taker(contract_owner_id, main_group, groups, action_taker)
... |
263 | | }
264 | | }
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if
help: collapse nested if block
|
249 ~ if old.main_control_group != new.main_control_group && !old
250 + .main_control_group_can_be_modified
251 + .allowed_for_action_taker(contract_owner_id, main_group, groups, action_taker) {
252 + return SimpleConsensusValidationResult::new_with_error(
253 + DataContractTokenConfigurationUpdateError::new(
254 + "update".to_string(),
255 + "mainControlGroup".to_string(),
256 + self.clone(),
257 + new_config.clone(),
258 + )
259 + .into(),
260 + );
261 + }
|
|
unused import: `crate::util::type_constants::DEFAULT_HASH_SIZE_U8`:
packages/rs-drive/src/drive/document/paths.rs#L2
warning: unused import: `crate::util::type_constants::DEFAULT_HASH_SIZE_U8`
--> packages/rs-drive/src/drive/document/paths.rs:2:5
|
2 | use crate::util::type_constants::DEFAULT_HASH_SIZE_U8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `dpp::data_contract::document_type::accessors::DocumentTypeV0Getters`:
packages/rs-drive/src/drive/document/paths.rs#L3
warning: unused import: `dpp::data_contract::document_type::accessors::DocumentTypeV0Getters`
--> packages/rs-drive/src/drive/document/paths.rs:3:5
|
3 | use dpp::data_contract::document_type::accessors::DocumentTypeV0Getters;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `dpp::data_contract::document_type::methods::DocumentTypeV0Methods`:
packages/rs-drive/src/drive/document/paths.rs#L4
warning: unused import: `dpp::data_contract::document_type::methods::DocumentTypeV0Methods`
--> packages/rs-drive/src/drive/document/paths.rs:4:5
|
4 | use dpp::data_contract::document_type::methods::DocumentTypeV0Methods;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `dpp::data_contract::document_type::DocumentTypeRef`:
packages/rs-drive/src/drive/document/paths.rs#L5
warning: unused import: `dpp::data_contract::document_type::DocumentTypeRef`
--> packages/rs-drive/src/drive/document/paths.rs:5:5
|
5 | use dpp::data_contract::document_type::DocumentTypeRef;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
function `contract_documents_primary_key_path` is never used:
packages/rs-drive/src/drive/document/paths.rs#L41
warning: function `contract_documents_primary_key_path` is never used
--> packages/rs-drive/src/drive/document/paths.rs:41:15
|
41 | pub(crate) fn contract_documents_primary_key_path<'a>(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
unused import: `identity::identity_public_key::accessors::v0::IdentityPublicKeyGettersV0`:
packages/rs-drive/src/drive/identity/key/fetch/mod.rs#L16
warning: unused import: `identity::identity_public_key::accessors::v0::IdentityPublicKeyGettersV0`
--> packages/rs-drive/src/drive/identity/key/fetch/mod.rs:16:9
|
16 | identity::identity_public_key::accessors::v0::IdentityPublicKeyGettersV0,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::util::object_size_info::DataContractOwnedResolvedInfo`:
packages/rs-drive/src/drive/votes/resolved/vote_polls/contested_document_resource_vote_poll/resolve.rs#L13
warning: unused import: `crate::util::object_size_info::DataContractOwnedResolvedInfo`
--> packages/rs-drive/src/drive/votes/resolved/vote_polls/contested_document_resource_vote_poll/resolve.rs:13:5
|
13 | use crate::util::object_size_info::DataContractOwnedResolvedInfo;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `platform_version::version::PlatformVersion`:
packages/rs-drive/src/drive/votes/resolved/vote_polls/contested_document_resource_vote_poll/resolve.rs#L22
warning: unused import: `platform_version::version::PlatformVersion`
--> packages/rs-drive/src/drive/votes/resolved/vote_polls/contested_document_resource_vote_poll/resolve.rs:22:5
|
22 | use platform_version::version::PlatformVersion;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `std::sync::Arc`:
packages/rs-drive/src/drive/votes/resolved/vote_polls/contested_document_resource_vote_poll/resolve.rs#L24
warning: unused import: `std::sync::Arc`
--> packages/rs-drive/src/drive/votes/resolved/vote_polls/contested_document_resource_vote_poll/resolve.rs:24:5
|
24 | use std::sync::Arc;
| ^^^^^^^^^^^^^^
|
unused import: `serialization_traits::DocumentPlatformConversionMethodsV0`:
packages/rs-drive/src/query/mod.rs#L29
warning: unused import: `serialization_traits::DocumentPlatformConversionMethodsV0`
--> packages/rs-drive/src/query/mod.rs:29:13
|
29 | serialization_traits::DocumentPlatformConversionMethodsV0, Document, DocumentV0Getters,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::tokens::emergency_action::TokenEmergencyAction`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/mod.rs#L31
warning: unused import: `crate::tokens::emergency_action::TokenEmergencyAction`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/mod.rs:31:5
|
31 | use crate::tokens::emergency_action::TokenEmergencyAction;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `crate::balances::credits::TokenAmount`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L1
warning: unused import: `crate::balances::credits::TokenAmount`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:1:5
|
1 | use crate::balances::credits::TokenAmount;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::group::GroupStateTransitionInfoStatus`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L2
warning: unused import: `crate::group::GroupStateTransitionInfoStatus`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:2:5
|
2 | use crate::group::GroupStateTransitionInfoStatus;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::identity::signer::Signer`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L3
warning: unused import: `crate::identity::signer::Signer`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:3:5
|
3 | use crate::identity::signer::Signer;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::identity::IdentityPublicKey`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L4
warning: unused import: `crate::identity::IdentityPublicKey`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:4:5
|
4 | use crate::identity::IdentityPublicKey;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused imports: `DerivationEncryptionKeyIndex`, `IdentityNonce`, `RecipientKeyIndex`, `RootEncryptionKeyIndex`, `SenderKeyIndex`, and `UserFeeIncrease`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L6
warning: unused imports: `DerivationEncryptionKeyIndex`, `IdentityNonce`, `RecipientKeyIndex`, `RootEncryptionKeyIndex`, `SenderKeyIndex`, and `UserFeeIncrease`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:6:5
|
6 | DerivationEncryptionKeyIndex, IdentityNonce, RecipientKeyIndex, RootEncryptionKeyIndex,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
7 | SenderKeyIndex, UserFeeIncrease,
| ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
|
unused import: `crate::state_transition::StateTransition`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L10
warning: unused import: `crate::state_transition::StateTransition`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:10:5
|
10 | use crate::state_transition::StateTransition;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::tokens::emergency_action::TokenEmergencyAction`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L11
warning: unused import: `crate::tokens::emergency_action::TokenEmergencyAction`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:11:5
|
11 | use crate::tokens::emergency_action::TokenEmergencyAction;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::version::FeatureVersion`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L12
warning: unused import: `crate::version::FeatureVersion`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:12:5
|
12 | use crate::version::FeatureVersion;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::ProtocolError`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L13
warning: unused import: `crate::ProtocolError`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:13:5
|
13 | use crate::ProtocolError;
| ^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::tokens::emergency_action::TokenEmergencyAction`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/mod.rs#L31
warning: unused import: `crate::tokens::emergency_action::TokenEmergencyAction`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/mod.rs:31:5
|
31 | use crate::tokens::emergency_action::TokenEmergencyAction;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
unused import: `crate::balances::credits::TokenAmount`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L1
warning: unused import: `crate::balances::credits::TokenAmount`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:1:5
|
1 | use crate::balances::credits::TokenAmount;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::group::GroupStateTransitionInfoStatus`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L2
warning: unused import: `crate::group::GroupStateTransitionInfoStatus`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:2:5
|
2 | use crate::group::GroupStateTransitionInfoStatus;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::identity::signer::Signer`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L3
warning: unused import: `crate::identity::signer::Signer`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:3:5
|
3 | use crate::identity::signer::Signer;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::identity::IdentityPublicKey`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L4
warning: unused import: `crate::identity::IdentityPublicKey`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:4:5
|
4 | use crate::identity::IdentityPublicKey;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused imports: `DerivationEncryptionKeyIndex`, `IdentityNonce`, `RecipientKeyIndex`, `RootEncryptionKeyIndex`, `SenderKeyIndex`, and `UserFeeIncrease`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L6
warning: unused imports: `DerivationEncryptionKeyIndex`, `IdentityNonce`, `RecipientKeyIndex`, `RootEncryptionKeyIndex`, `SenderKeyIndex`, and `UserFeeIncrease`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:6:5
|
6 | DerivationEncryptionKeyIndex, IdentityNonce, RecipientKeyIndex, RootEncryptionKeyIndex,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^
7 | SenderKeyIndex, UserFeeIncrease,
| ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^
|
unused import: `crate::state_transition::StateTransition`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L10
warning: unused import: `crate::state_transition::StateTransition`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:10:5
|
10 | use crate::state_transition::StateTransition;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::tokens::emergency_action::TokenEmergencyAction`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L11
warning: unused import: `crate::tokens::emergency_action::TokenEmergencyAction`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:11:5
|
11 | use crate::tokens::emergency_action::TokenEmergencyAction;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::version::FeatureVersion`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L12
warning: unused import: `crate::version::FeatureVersion`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:12:5
|
12 | use crate::version::FeatureVersion;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
unused import: `crate::ProtocolError`:
packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs#L13
warning: unused import: `crate::ProtocolError`
--> packages/rs-dpp/src/state_transition/state_transitions/document/batch_transition/methods/v1/mod.rs:13:5
|
13 | use crate::ProtocolError;
| ^^^^^^^^^^^^^^^^^^^^
|
bound is defined in more than one place:
packages/wasm-dpp/src/utils.rs#L25
warning: bound is defined in more than one place
--> packages/wasm-dpp/src/utils.rs:25:24
|
25 | fn with_serde_into<D: DeserializeOwned>(&self) -> Result<D, JsValue>
| ^
26 | where
27 | D: for<'de> serde::de::Deserialize<'de> + 'static;
| ^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_bound_locations
= note: `#[warn(clippy::multiple_bound_locations)]` on by default
|
methods `with_serde_to_platform_value_map` and `with_serde_into` are never used:
packages/wasm-dpp/src/utils.rs#L24
warning: methods `with_serde_to_platform_value_map` and `with_serde_into` are never used
--> packages/wasm-dpp/src/utils.rs:24:8
|
19 | pub trait ToSerdeJSONExt {
| -------------- methods in this trait
...
24 | fn with_serde_to_platform_value_map(&self) -> Result<BTreeMap<String, Value>, JsValue>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 | fn with_serde_into<D: DeserializeOwned>(&self) -> Result<D, JsValue>
| ^^^^^^^^^^^^^^^
|
methods `into_inner` and `inner_mut` are never used:
packages/wasm-dpp/src/utils.rs#L287
warning: methods `into_inner` and `inner_mut` are never used
--> packages/wasm-dpp/src/utils.rs:287:8
|
284 | pub(crate) trait Inner {
| ----- methods in this trait
...
287 | fn into_inner(self) -> Self::InnerItem;
| ^^^^^^^^^^
288 | fn inner(&self) -> &Self::InnerItem;
289 | fn inner_mut(&mut self) -> &mut Self::InnerItem;
| ^^^^^^^^^
|
unused import: `dpp::ed25519_dalek::ed25519::signature::SignerMut`:
packages/wasm-dpp/src/document/state_transition/batch_transition/mod.rs#L28
warning: unused import: `dpp::ed25519_dalek::ed25519::signature::SignerMut`
--> packages/wasm-dpp/src/document/state_transition/batch_transition/mod.rs:28:5
|
28 | use dpp::ed25519_dalek::ed25519::signature::SignerMut;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
field `0` is never read:
packages/wasm-dpp/src/identity/identity_facade.rs#L274
warning: field `0` is never read
--> packages/wasm-dpp/src/identity/identity_facade.rs:274:34
|
274 | pub struct NonConsensusErrorWasm(NonConsensusError);
| --------------------- ^^^^^^^^^^^^^^^^^
| |
| field in this struct
|
= help: consider removing this field
= note: `#[warn(dead_code)]` on by default
|
trait `AssetLockProofLike` is never used:
packages/wasm-dpp/src/identity/state_transition/asset_lock_proof/mod.rs#L48
warning: trait `AssetLockProofLike` is never used
--> packages/wasm-dpp/src/identity/state_transition/asset_lock_proof/mod.rs:48:11
|
48 | pub trait AssetLockProofLike {
| ^^^^^^^^^^^^^^^^^^
|
field `identity_id` is never read:
packages/wasm-dpp/src/identity/state_transition/identity_create_transition/to_object.rs#L21
warning: field `identity_id` is never read
--> packages/wasm-dpp/src/identity/state_transition/identity_create_transition/to_object.rs:21:9
|
19 | pub struct ToObject {
| -------- field in this struct
20 | pub transition_type: u8,
21 | pub identity_id: Identifier,
| ^^^^^^^^^^^
|
field `vote` is never read:
packages/wasm-dpp/src/voting/state_transition/masternode_vote_transition/to_object.rs#L21
warning: field `vote` is never read
--> packages/wasm-dpp/src/voting/state_transition/masternode_vote_transition/to_object.rs:21:9
|
18 | pub struct ToObject {
| -------- field in this struct
...
21 | pub vote: Vote,
| ^^^^
|
module has the same name as its containing module:
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
|
very complex type used. Consider factoring parts into `type` definitions:
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
|
sccache stats
100% - 290 hits, 0 misses, 0 errors
|
sccache stats
96% - 102 hits, 4 misses, 0 errors
|
sccache stats
100% - 60 hits, 0 misses, 0 errors
|
sccache stats
100% - 60 hits, 0 misses, 0 errors
|
sccache stats
96% - 216 hits, 10 misses, 0 errors
|
sccache stats
94% - 203 hits, 13 misses, 0 errors
|
sccache stats
100% - 60 hits, 0 misses, 0 errors
|
sccache stats
100% - 60 hits, 0 misses, 0 errors
|
sccache stats
100% - 196 hits, 0 misses, 0 errors
|
sccache stats
99% - 422 hits, 6 misses, 0 errors
|
sccache stats
100% - 60 hits, 0 misses, 0 errors
|
sccache stats
100% - 190 hits, 0 misses, 0 errors
|
sccache stats
92% - 503 hits, 46 misses, 0 errors
|
sccache stats
98% - 171 hits, 3 misses, 0 errors
|
sccache stats
97% - 438 hits, 14 misses, 0 errors
|
sccache stats
94% - 388 hits, 23 misses, 0 errors
|
sccache stats
97% - 211 hits, 7 misses, 0 errors
|
sccache stats
100% - 209 hits, 0 misses, 0 errors
|
sccache stats
0% - 0 hits, 0 misses, 0 errors
|
sccache stats
97% - 37 hits, 1 misses, 0 errors
|
sccache stats
88% - 37 hits, 5 misses, 0 errors
|
sccache stats
100% - 60 hits, 0 misses, 0 errors
|
sccache stats
100% - 60 hits, 0 misses, 0 errors
|
sccache stats
96% - 986 hits, 37 misses, 0 errors
|
sccache stats
99% - 193 hits, 2 misses, 0 errors
|
sccache stats
99% - 201 hits, 2 misses, 0 errors
|
sccache stats
100% - 884 hits, 3 misses, 0 errors
|
sccache stats
100% - 202 hits, 0 misses, 0 errors
|
sccache stats
93% - 414 hits, 33 misses, 0 errors
|
sccache stats
97% - 819 hits, 22 misses, 0 errors
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
dashpay~platform~F0WNA0.dockerbuild
|
93.8 KB |
|
dashpay~platform~IPLO50.dockerbuild
|
86.5 KB |
|
dashpay~platform~REVQ8V.dockerbuild
|
81.9 KB |
|