Skip to content

spike foreign fungibles v2 #2976

spike foreign fungibles v2

spike foreign fungibles v2 #2976

Triggered via pull request February 19, 2025 07:44
@DaanvdplasDaanvdplas
synchronize #474
Status Failure
Total duration 11s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

lint-pr.yml

on: pull_request_target
Validate PR title for conventional commit compliance
3s
Validate PR title for conventional commit compliance
Fit to window
Zoom out
Zoom in

Annotations

86 errors and 94 warnings
Validate PR title for conventional commit compliance
No release type found in pull request title "spike foreign fungibles v2". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/ Available types: - feat: A new feature - fix: A bug fix - docs: Documentation only changes - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) - refactor: A code change that neither fixes a bug nor adds a feature - perf: A code change that improves performance - test: Adding missing tests or correcting existing tests - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) - chore: Other changes that don't modify src or test files - revert: Reverts a previous commit
type annotations needed: pallets/api/src/fungibles/benchmarking.rs#L31
error[E0282]: type annotations needed --> pallets/api/src/fungibles/benchmarking.rs:31:1 | 31 | / #[benchmarks( 32 | | where 33 | | <pallet_assets::Pallet<T, AssetsInstanceOf<T>> as Inspect<<T as frame_system::Config>::AccountId>>::AssetId: Zero, 34 | | )] | |__^ cannot infer type for type parameter `impl frame_benchmarking::Recording` | = note: this error originates in the attribute macro `benchmarks` (in Nightly builds, run with -Z macro-backtrace for more info)
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L483
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:483:62 | 483 | #[pallet::weight(<T as Config>::WeightInfo::balance_of() + AssetsWeightInfoOf::<T>::burn())] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L459
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:459:20 | 459 | #[pallet::weight(AssetsWeightInfoOf::<T>::mint())] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L446
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:446:20 | 446 | #[pallet::weight(AssetsWeightInfoOf::<T>::clear_metadata())] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L430
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:430:20 | 430 | #[pallet::weight(AssetsWeightInfoOf::<T>::set_metadata(name.len() as u32, symbol.len() as u32))] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L417
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:417:20 | 417 | #[pallet::weight(AssetsWeightInfoOf::<T>::start_destroy())] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L228
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:228:20 | 228 | #[pallet::weight(AssetsWeightInfoOf::<T>::transfer_approved())] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
this function takes 0 arguments but 1 argument was supplied: pallets/api/src/fungibles/mod.rs#L597
error[E0061]: this function takes 0 arguments but 1 argument was supplied --> pallets/api/src/fungibles/mod.rs:597:24 | 597 | TotalSupply(id) => <T as Config>::WeightInfo::total_supply(weight_param(id)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---------------- unexpected argument of type `u32` | note: associated function defined here --> pallets/api/src/fungibles/weights.rs:36:5 | 36 | fn total_supply() -> Weight; | ^^^^^^^^^^^^ help: remove the extra argument | 597 - TotalSupply(id) => <T as Config>::WeightInfo::total_supply(weight_param(id)), 597 + TotalSupply(id) => <T as Config>::WeightInfo::total_supply(), |
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L495
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:495:4 | 495 | AssetsOf::<T>::burn( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsErrorOf`: pallets/api/src/fungibles/mod.rs#L492
error[E0433]: failed to resolve: use of undeclared type `AssetsErrorOf` --> pallets/api/src/fungibles/mod.rs:492:16 | 492 | return Err(AssetsErrorOf::<T>::BalanceLow | ^^^^^^^^^^^^^ use of undeclared type `AssetsErrorOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L490
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:490:26 | 490 | let current_balance = AssetsOf::<T>::balance(token.clone(), &account); | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L466
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:466:4 | 466 | AssetsOf::<T>::mint( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L448
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:448:4 | 448 | AssetsOf::<T>::clear_metadata(origin, token.into()) | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L438
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:438:4 | 438 | AssetsOf::<T>::set_metadata(origin, token.into(), name, symbol, decimals) | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L419
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:419:4 | 419 | AssetsOf::<T>::start_destroy(origin, token.into()) | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L398
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:398:4 | 398 | AssetsOf::<T>::create( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L371
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:371:5 | 371 | AssetsOf::<T>::approve_transfer( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L362
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:362:4 | 362 | AssetsOf::<T>::cancel_approval( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsErrorOf`: pallets/api/src/fungibles/mod.rs#L361
error[E0433]: failed to resolve: use of undeclared type `AssetsErrorOf` --> pallets/api/src/fungibles/mod.rs:361:49 | 361 | current_allowance.checked_sub(&value).ok_or(AssetsErrorOf::<T>::Unapproved)?; | ^^^^^^^^^^^^^ use of undeclared type `AssetsErrorOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L355
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:355:28 | 355 | let current_allowance = AssetsOf::<T>::allowance(token.clone(), &owner, &spender); | ^^^^^^^^ use of undeclared type `AssetsOf`
no method named `is_zero` found for associated type `<T as fungibles::pallet::Config>::Balance` in the current scope: pallets/api/src/fungibles/mod.rs#L352
error[E0599]: no method named `is_zero` found for associated type `<T as fungibles::pallet::Config>::Balance` in the current scope --> pallets/api/src/fungibles/mod.rs:352:13 | 352 | if value.is_zero() { | ^^^^^^^ method not found in `<T as Config>::Balance`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L331
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:331:16 | 331 | let value = AssetsOf::<T>::allowance(token.clone(), &owner, &spender); | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L330
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:330:31 | 330 | .map_err(|e| e.with_weight(AssetsWeightInfoOf::<T>::approve_transfer()))?; | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L324
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:324:4 | 324 | AssetsOf::<T>::approve_transfer( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L294
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:294:7 | 294 | AssetsOf::<T>::approve_transfer( | ^^^^^^^^ use of undeclared type `AssetsOf`
no method named `is_zero` found for associated type `<T as fungibles::pallet::Config>::Balance` in the current scope: pallets/api/src/fungibles/mod.rs#L291
error[E0599]: no method named `is_zero` found for associated type `<T as fungibles::pallet::Config>::Balance` in the current scope --> pallets/api/src/fungibles/mod.rs:291:15 | 291 | if value.is_zero() { | ^^^^^^^ method not found in `<T as Config>::Balance`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L285
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:285:6 | 285 | AssetsOf::<T>::cancel_approval( | ^^^^^^^^ use of undeclared type `AssetsOf`
the method `saturating_sub` exists for associated type `<T as Config>::Balance`, but its trait bounds were not satisfied: pallets/api/src/fungibles/mod.rs#L275
error[E0599]: the method `saturating_sub` exists for associated type `<T as Config>::Balance`, but its trait bounds were not satisfied --> pallets/api/src/fungibles/mod.rs:275:13 | 275 | value.saturating_sub(current_allowance), | ^^^^^^^^^^^^^^ method cannot be called on `<T as Config>::Balance` due to unsatisfied trait bounds | = note: the following trait bounds were not satisfied: `<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::Zero` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::One` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `<T as fungibles::pallet::Config>::Balance: std::cmp::PartialOrd` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::CheckedMul` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `<T as fungibles::pallet::Config>::Balance: sp_runtime::traits::Bounded` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `<T as fungibles::pallet::Config>::Balance: num_traits::ops::saturating::Saturating` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::Zero` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::One` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: std::cmp::PartialOrd` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::CheckedMul` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: sp_runtime::traits::Bounded` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: num_traits::ops::saturating::Saturating` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: std::clone::Clone` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::Zero` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::One` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: std::cmp::PartialOrd` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::CheckedMul` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::traits::Bounded` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: num_traits::ops::saturating::Saturating` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L271
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:271:6 | 271 | AssetsOf::<T>::approve_transfer( | ^^^^^^^^ use of undeclared type `AssetsOf`
`<T as fungibles::pallet::Config>::Balance` is not an iterator: pallets/api/src/fungibles/mod.rs#L265
error[E0599]: `<T as fungibles::pallet::Config>::Balance` is not an iterator --> pallets/api/src/fungibles/mod.rs:265:29 | 265 | let weight = match value.cmp(&current_allowance) { | ^^^ `<T as fungibles::pallet::Config>::Balance` is not an iterator | = note: the following trait bounds were not satisfied: `<T as fungibles::pallet::Config>::Balance: std::iter::Iterator` which is required by `&mut <T as fungibles::pallet::Config>::Balance: std::iter::Iterator`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L263
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:263:28 | 263 | let current_allowance = AssetsOf::<T>::allowance(token.clone(), &owner, &spender); | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L236
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:236:4 | 236 | AssetsOf::<T>::transfer_approved( | ^^^^^^^^ use of undeclared type `AssetsOf`
mismatched types: pallets/api/src/fungibles/benchmarking.rs#L114
error[E0308]: mismatched types --> pallets/api/src/fungibles/benchmarking.rs:114:4 | 114 | / match a { 115 | | 0 => Pallet::<T>::read(Read::TotalSupply(TokenIdOf::<T>::TrustBacked(0))), 116 | | 1 => 117 | | Pallet::<T>::read(Read::TotalSupply(TokenIdOf::<T>::Foreign(Location::Parent))), 118 | | } | | ^- help: consider using a semicolon here: `;` | |_____________| | expected `()`, found `ReadResult<T>` | = note: expected unit type `()` found enum `fungibles::pallet::ReadResult<T>`
mismatched types: pallets/api/src/fungibles/benchmarking.rs#L115
error[E0308]: mismatched types --> pallets/api/src/fungibles/benchmarking.rs:115:74 | 115 | 0 => Pallet::<T>::read(Read::TotalSupply(TokenIdOf::<T>::TrustBacked(0))), | --------------------------- ^ expected associated type, found integer | | | arguments to this enum variant are incorrect | = note: expected associated type `<T as pallet_assets::Config<<T as fungibles::pallet::Config>::TrustBackedAssetsInstance>>::AssetId` found type `{integer}` = help: consider constraining the associated type `<T as pallet_assets::Config<<T as fungibles::pallet::Config>::TrustBackedAssetsInstance>>::AssetId` to `{integer}` or calling a method that returns `<T as pallet_assets::Config<<T as fungibles::pallet::Config>::TrustBackedAssetsInstance>>::AssetId` = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html note: tuple variant defined here --> pallets/api/src/fungibles/mod.rs:44:2 | 44 | TrustBacked(TrustId), | ^^^^^^^^^^^
the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied: pallets/api/src/fungibles/benchmarking.rs#L70
error[E0277]: the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied --> pallets/api/src/fungibles/benchmarking.rs:70:15 | 70 | (1, 1) => <BalanceOf<T>>::from(u32::MAX / 4), | ^^^^^^^^^^^^ the trait `std::convert::From<u32>` is not implemented for `<T as fungibles::pallet::Config>::Balance`
the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied: pallets/api/src/fungibles/benchmarking.rs#L68
error[E0277]: the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied --> pallets/api/src/fungibles/benchmarking.rs:68:15 | 68 | (0, 1) => <BalanceOf<T>>::from(0u32), | ^^^^^^^^^^^^ the trait `std::convert::From<u32>` is not implemented for `<T as fungibles::pallet::Config>::Balance`
the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied: pallets/api/src/fungibles/benchmarking.rs#L66
error[E0277]: the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied --> pallets/api/src/fungibles/benchmarking.rs:66:15 | 66 | (1, 0) => <BalanceOf<T>>::from(u32::MAX), | ^^^^^^^^^^^^ the trait `std::convert::From<u32>` is not implemented for `<T as fungibles::pallet::Config>::Balance`
ambiguous associated type `Currency` in bounds of `T`: pallets/api/src/fungibles/benchmarking.rs#L48
error[E0221]: ambiguous associated type `Currency` in bounds of `T` --> pallets/api/src/fungibles/benchmarking.rs:48:3 | 48 | T::Currency::make_free_balance_be(&owner, u32::MAX.into()); | ^^^^^^^^^^^ ambiguous associated type `Currency` | = note: associated type `Currency` could derive from `pallet_assets::Config<<T as fungibles::pallet::Config>::TrustBackedAssetsInstance>` = note: associated type `Currency` could derive from `pallet_assets::Config<<T as fungibles::pallet::Config>::ForeignAssetsInstance>`
the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied: pallets/api/src/fungibles/benchmarking.rs#L44
error[E0277]: the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied --> pallets/api/src/fungibles/benchmarking.rs:44:22 | 44 | let min_balance = <BalanceOf<T>>::from(1u32); | ^^^^^^^^^^^^ the trait `std::convert::From<u32>` is not implemented for `<T as fungibles::pallet::Config>::Balance`
cannot find type `TokenIdParameterOf` in this scope: pallets/api/src/fungibles/mod.rs#L357
error[E0412]: cannot find type `TokenIdParameterOf` in this scope --> pallets/api/src/fungibles/mod.rs:357:21 | 357 | let token_param: TokenIdParameterOf<T> = token.clone().into(); | ^^^^^^^^^^^^^^^^^^ not found in this scope
cannot find type `TokenIdParameterOf` in this scope: pallets/api/src/fungibles/mod.rs#L283
error[E0412]: cannot find type `TokenIdParameterOf` in this scope --> pallets/api/src/fungibles/mod.rs:283:23 | 283 | let token_param: TokenIdParameterOf<T> = token.clone().into(); | ^^^^^^^^^^^^^^^^^^ not found in this scope
failed to resolve: use of undeclared type `Location`: pallets/api/src/fungibles/benchmarking.rs#L117
error[E0433]: failed to resolve: use of undeclared type `Location` --> pallets/api/src/fungibles/benchmarking.rs:117:66 | 117 | Pallet::<T>::read(Read::TotalSupply(TokenIdOf::<T>::Foreign(Location::Parent))), | ^^^^^^^^ use of undeclared type `Location` | help: consider importing this struct | 36 + use std::panic::Location; |
unresolved imports `super::AssetsInstanceOf`, `super::AssetsOf`: pallets/api/src/fungibles/benchmarking.rs#L18
error[E0432]: unresolved imports `super::AssetsInstanceOf`, `super::AssetsOf` --> pallets/api/src/fungibles/benchmarking.rs:18:15 | 18 | AccountIdOf, AssetsInstanceOf, AssetsOf, BalanceOf, Call, Config, Pallet, Read, TokenIdOf, | ^^^^^^^^^^^^^^^^ ^^^^^^^^ no `AssetsOf` in `fungibles` | | | no `AssetsInstanceOf` in `fungibles`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L483
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:483:62 | 483 | #[pallet::weight(<T as Config>::WeightInfo::balance_of() + AssetsWeightInfoOf::<T>::burn())] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L459
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:459:20 | 459 | #[pallet::weight(AssetsWeightInfoOf::<T>::mint())] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L446
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:446:20 | 446 | #[pallet::weight(AssetsWeightInfoOf::<T>::clear_metadata())] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L430
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:430:20 | 430 | #[pallet::weight(AssetsWeightInfoOf::<T>::set_metadata(name.len() as u32, symbol.len() as u32))] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L417
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:417:20 | 417 | #[pallet::weight(AssetsWeightInfoOf::<T>::start_destroy())] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L390
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:390:20 | 390 | #[pallet::weight(AssetsWeightInfoOf::<T>::create())] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L228
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:228:20 | 228 | #[pallet::weight(AssetsWeightInfoOf::<T>::transfer_approved())] | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
this function takes 0 arguments but 1 argument was supplied: pallets/api/src/fungibles/mod.rs#L597
error[E0061]: this function takes 0 arguments but 1 argument was supplied --> pallets/api/src/fungibles/mod.rs:597:24 | 597 | TotalSupply(id) => <T as Config>::WeightInfo::total_supply(weight_param(id)), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ---------------- unexpected argument of type `u32` | note: associated function defined here --> pallets/api/src/fungibles/weights.rs:36:5 | 36 | fn total_supply() -> Weight; | ^^^^^^^^^^^^ help: remove the extra argument | 597 - TotalSupply(id) => <T as Config>::WeightInfo::total_supply(weight_param(id)), 597 + TotalSupply(id) => <T as Config>::WeightInfo::total_supply(), |
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L495
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:495:4 | 495 | AssetsOf::<T>::burn( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsErrorOf`: pallets/api/src/fungibles/mod.rs#L492
error[E0433]: failed to resolve: use of undeclared type `AssetsErrorOf` --> pallets/api/src/fungibles/mod.rs:492:16 | 492 | return Err(AssetsErrorOf::<T>::BalanceLow | ^^^^^^^^^^^^^ use of undeclared type `AssetsErrorOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L490
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:490:26 | 490 | let current_balance = AssetsOf::<T>::balance(token.clone(), &account); | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L466
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:466:4 | 466 | AssetsOf::<T>::mint( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L448
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:448:4 | 448 | AssetsOf::<T>::clear_metadata(origin, token.into()) | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L438
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:438:4 | 438 | AssetsOf::<T>::set_metadata(origin, token.into(), name, symbol, decimals) | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L419
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:419:4 | 419 | AssetsOf::<T>::start_destroy(origin, token.into()) | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L398
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:398:4 | 398 | AssetsOf::<T>::create( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L371
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:371:5 | 371 | AssetsOf::<T>::approve_transfer( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L362
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:362:4 | 362 | AssetsOf::<T>::cancel_approval( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsErrorOf`: pallets/api/src/fungibles/mod.rs#L361
error[E0433]: failed to resolve: use of undeclared type `AssetsErrorOf` --> pallets/api/src/fungibles/mod.rs:361:49 | 361 | current_allowance.checked_sub(&value).ok_or(AssetsErrorOf::<T>::Unapproved)?; | ^^^^^^^^^^^^^ use of undeclared type `AssetsErrorOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L355
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:355:28 | 355 | let current_allowance = AssetsOf::<T>::allowance(token.clone(), &owner, &spender); | ^^^^^^^^ use of undeclared type `AssetsOf`
no method named `is_zero` found for associated type `<T as fungibles::pallet::Config>::Balance` in the current scope: pallets/api/src/fungibles/mod.rs#L352
error[E0599]: no method named `is_zero` found for associated type `<T as fungibles::pallet::Config>::Balance` in the current scope --> pallets/api/src/fungibles/mod.rs:352:13 | 352 | if value.is_zero() { | ^^^^^^^ method not found in `<T as Config>::Balance`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L331
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:331:16 | 331 | let value = AssetsOf::<T>::allowance(token.clone(), &owner, &spender); | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsWeightInfoOf`: pallets/api/src/fungibles/mod.rs#L330
error[E0433]: failed to resolve: use of undeclared type `AssetsWeightInfoOf` --> pallets/api/src/fungibles/mod.rs:330:31 | 330 | .map_err(|e| e.with_weight(AssetsWeightInfoOf::<T>::approve_transfer()))?; | ^^^^^^^^^^^^^^^^^^ | | | use of undeclared type `AssetsWeightInfoOf` | help: a trait with a similar name exists: `AssetsWeightInfoTrait`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L324
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:324:4 | 324 | AssetsOf::<T>::approve_transfer( | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L294
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:294:7 | 294 | AssetsOf::<T>::approve_transfer( | ^^^^^^^^ use of undeclared type `AssetsOf`
no method named `is_zero` found for associated type `<T as fungibles::pallet::Config>::Balance` in the current scope: pallets/api/src/fungibles/mod.rs#L291
error[E0599]: no method named `is_zero` found for associated type `<T as fungibles::pallet::Config>::Balance` in the current scope --> pallets/api/src/fungibles/mod.rs:291:15 | 291 | if value.is_zero() { | ^^^^^^^ method not found in `<T as Config>::Balance`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L285
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:285:6 | 285 | AssetsOf::<T>::cancel_approval( | ^^^^^^^^ use of undeclared type `AssetsOf`
the method `saturating_sub` exists for associated type `<T as Config>::Balance`, but its trait bounds were not satisfied: pallets/api/src/fungibles/mod.rs#L275
error[E0599]: the method `saturating_sub` exists for associated type `<T as Config>::Balance`, but its trait bounds were not satisfied --> pallets/api/src/fungibles/mod.rs:275:13 | 275 | value.saturating_sub(current_allowance), | ^^^^^^^^^^^^^^ method cannot be called on `<T as Config>::Balance` due to unsatisfied trait bounds | = note: the following trait bounds were not satisfied: `<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::Zero` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::One` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `<T as fungibles::pallet::Config>::Balance: std::cmp::PartialOrd` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::CheckedMul` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `<T as fungibles::pallet::Config>::Balance: sp_runtime::traits::Bounded` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `<T as fungibles::pallet::Config>::Balance: num_traits::ops::saturating::Saturating` which is required by `<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::Zero` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::One` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: std::cmp::PartialOrd` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::CheckedMul` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: sp_runtime::traits::Bounded` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&<T as fungibles::pallet::Config>::Balance: num_traits::ops::saturating::Saturating` which is required by `&<T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: std::clone::Clone` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::Zero` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::One` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: std::cmp::PartialOrd` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: frame_support::pallet_prelude::CheckedMul` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::traits::Bounded` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating` `&mut <T as fungibles::pallet::Config>::Balance: num_traits::ops::saturating::Saturating` which is required by `&mut <T as fungibles::pallet::Config>::Balance: sp_runtime::Saturating`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L271
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:271:6 | 271 | AssetsOf::<T>::approve_transfer( | ^^^^^^^^ use of undeclared type `AssetsOf`
`<T as fungibles::pallet::Config>::Balance` is not an iterator: pallets/api/src/fungibles/mod.rs#L265
error[E0599]: `<T as fungibles::pallet::Config>::Balance` is not an iterator --> pallets/api/src/fungibles/mod.rs:265:29 | 265 | let weight = match value.cmp(&current_allowance) { | ^^^ `<T as fungibles::pallet::Config>::Balance` is not an iterator | = note: the following trait bounds were not satisfied: `<T as fungibles::pallet::Config>::Balance: std::iter::Iterator` which is required by `&mut <T as fungibles::pallet::Config>::Balance: std::iter::Iterator`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L263
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:263:28 | 263 | let current_allowance = AssetsOf::<T>::allowance(token.clone(), &owner, &spender); | ^^^^^^^^ use of undeclared type `AssetsOf`
failed to resolve: use of undeclared type `AssetsOf`: pallets/api/src/fungibles/mod.rs#L236
error[E0433]: failed to resolve: use of undeclared type `AssetsOf` --> pallets/api/src/fungibles/mod.rs:236:4 | 236 | AssetsOf::<T>::transfer_approved( | ^^^^^^^^ use of undeclared type `AssetsOf`
mismatched types: pallets/api/src/fungibles/benchmarking.rs#L114
error[E0308]: mismatched types --> pallets/api/src/fungibles/benchmarking.rs:114:4 | 114 | / match a { 115 | | 0 => Pallet::<T>::read(Read::TotalSupply(TokenIdOf::<T>::TrustBacked(0))), 116 | | 1 => 117 | | Pallet::<T>::read(Read::TotalSupply(TokenIdOf::<T>::Foreign(Location::Parent))), 118 | | } | | ^- help: consider using a semicolon here: `;` | |_____________| | expected `()`, found `ReadResult<T>` | = note: expected unit type `()` found enum `fungibles::pallet::ReadResult<T>`
mismatched types: pallets/api/src/fungibles/benchmarking.rs#L115
error[E0308]: mismatched types --> pallets/api/src/fungibles/benchmarking.rs:115:74 | 115 | 0 => Pallet::<T>::read(Read::TotalSupply(TokenIdOf::<T>::TrustBacked(0))), | --------------------------- ^ expected associated type, found integer | | | arguments to this enum variant are incorrect | = note: expected associated type `<T as pallet_assets::Config<<T as fungibles::pallet::Config>::TrustBackedAssetsInstance>>::AssetId` found type `{integer}` = help: consider constraining the associated type `<T as pallet_assets::Config<<T as fungibles::pallet::Config>::TrustBackedAssetsInstance>>::AssetId` to `{integer}` or calling a method that returns `<T as pallet_assets::Config<<T as fungibles::pallet::Config>::TrustBackedAssetsInstance>>::AssetId` = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html note: tuple variant defined here --> pallets/api/src/fungibles/mod.rs:44:2 | 44 | TrustBacked(TrustId), | ^^^^^^^^^^^
cannot subtract `<T as fungibles::pallet::Config>::Balance` from `<T as fungibles::pallet::Config>::Balance`: pallets/api/src/fungibles/benchmarking.rs#L93
error[E0369]: cannot subtract `<T as fungibles::pallet::Config>::Balance` from `<T as fungibles::pallet::Config>::Balance` --> pallets/api/src/fungibles/benchmarking.rs:93:25 | 93 | 0 => approval_value - current_allowance, | -------------- ^ ----------------- <T as fungibles::pallet::Config>::Balance | | | <T as fungibles::pallet::Config>::Balance
ambiguous associated type `Currency` in bounds of `T`: pallets/api/src/fungibles/benchmarking.rs#L48
error[E0221]: ambiguous associated type `Currency` in bounds of `T` --> pallets/api/src/fungibles/benchmarking.rs:48:3 | 48 | T::Currency::make_free_balance_be(&owner, u32::MAX.into()); | ^^^^^^^^^^^ ambiguous associated type `Currency` | = note: associated type `Currency` could derive from `pallet_assets::Config<<T as fungibles::pallet::Config>::TrustBackedAssetsInstance>` = note: associated type `Currency` could derive from `pallet_assets::Config<<T as fungibles::pallet::Config>::ForeignAssetsInstance>`
the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied: pallets/api/src/fungibles/benchmarking.rs#L47
error[E0277]: the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied --> pallets/api/src/fungibles/benchmarking.rs:47:28 | 47 | let current_allowance = <BalanceOf<T>>::from(u32::MAX / 2); | ^^^^^^^^^^^^ the trait `std::convert::From<u32>` is not implemented for `<T as fungibles::pallet::Config>::Balance`
the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied: pallets/api/src/fungibles/benchmarking.rs#L44
error[E0277]: the trait bound `<T as fungibles::pallet::Config>::Balance: std::convert::From<u32>` is not satisfied --> pallets/api/src/fungibles/benchmarking.rs:44:22 | 44 | let min_balance = <BalanceOf<T>>::from(1u32); | ^^^^^^^^^^^^ the trait `std::convert::From<u32>` is not implemented for `<T as fungibles::pallet::Config>::Balance`
cannot find type `TokenIdParameterOf` in this scope: pallets/api/src/fungibles/mod.rs#L357
error[E0412]: cannot find type `TokenIdParameterOf` in this scope --> pallets/api/src/fungibles/mod.rs:357:21 | 357 | let token_param: TokenIdParameterOf<T> = token.clone().into(); | ^^^^^^^^^^^^^^^^^^ not found in this scope
cannot find type `TokenIdParameterOf` in this scope: pallets/api/src/fungibles/mod.rs#L283
error[E0412]: cannot find type `TokenIdParameterOf` in this scope --> pallets/api/src/fungibles/mod.rs:283:23 | 283 | let token_param: TokenIdParameterOf<T> = token.clone().into(); | ^^^^^^^^^^^^^^^^^^ not found in this scope
failed to resolve: use of undeclared type `Location`: pallets/api/src/fungibles/benchmarking.rs#L117
error[E0433]: failed to resolve: use of undeclared type `Location` --> pallets/api/src/fungibles/benchmarking.rs:117:66 | 117 | Pallet::<T>::read(Read::TotalSupply(TokenIdOf::<T>::Foreign(Location::Parent))), | ^^^^^^^^ use of undeclared type `Location` | help: consider importing this struct | 36 + use std::panic::Location; |
unresolved imports `super::AssetsInstanceOf`, `super::AssetsOf`: pallets/api/src/fungibles/benchmarking.rs#L18
error[E0432]: unresolved imports `super::AssetsInstanceOf`, `super::AssetsOf` --> pallets/api/src/fungibles/benchmarking.rs:18:15 | 18 | AccountIdOf, AssetsInstanceOf, AssetsOf, BalanceOf, Call, Config, Pallet, Read, TokenIdOf, | ^^^^^^^^^^^^^^^^ ^^^^^^^^ no `AssetsOf` in `fungibles` | | | no `AssetsInstanceOf` in `fungibles`
unused import: `Inspect`: pallets/api/src/fungibles/benchmarking.rs#L8
warning: unused import: `Inspect` --> pallets/api/src/fungibles/benchmarking.rs:8:16 | 8 | approvals::{Inspect as ApprovalInspect, Mutate}, | ^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
missing documentation for the crate: runtime/mainnet/build.rs#L1
warning: missing documentation for the crate --> runtime/mainnet/build.rs:1:1 | 1 | / #[cfg(all(feature = "std", feature = "metadata-hash"))] 2 | | fn main() { 3 | | substrate_wasm_builder::WasmBuilder::init_with_defaults() 4 | | .enable_metadata_hash("DOT", 10) ... | 15 | | #[cfg(not(feature = "std"))] 16 | | fn main() {} | |____________^ | = note: requested on the command line with `-W missing-docs`
missing documentation for a struct: pallets/nfts/src/types.rs#L560
warning: missing documentation for a struct --> pallets/nfts/src/types.rs:560:1 | 560 | pub struct PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct: pallets/nfts/src/types.rs#L542
warning: missing documentation for a struct --> pallets/nfts/src/types.rs:542:1 | 542 | pub struct PreSignedMint<CollectionId, ItemId, AccountId, Deadline, Balance> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L534
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:534:2 | 534 | pub fn max_roles() -> u8 { | ^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L530
warning: missing documentation for a method --> pallets/nfts/src/types.rs:530:2 | 530 | pub fn add_role(&mut self, role: CollectionRole) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L526
warning: missing documentation for a method --> pallets/nfts/src/types.rs:526:2 | 526 | pub fn has_role(&self, role: CollectionRole) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L522
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:522:2 | 522 | pub fn none() -> Self { | ^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L498
warning: missing documentation for a method --> pallets/nfts/src/types.rs:498:2 | 498 | pub fn is_enabled(&self, feature: PalletFeature) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L494
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:494:2 | 494 | pub fn from_disabled(features: BitFlags<PalletFeature>) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L490
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:490:2 | 490 | pub fn all_enabled() -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L465
warning: missing documentation for a method --> pallets/nfts/src/types.rs:465:2 | 465 | pub fn disable_setting(&mut self, setting: ItemSetting) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L461
warning: missing documentation for a method --> pallets/nfts/src/types.rs:461:2 | 461 | pub fn enable_setting(&mut self, setting: ItemSetting) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L457
warning: missing documentation for a method --> pallets/nfts/src/types.rs:457:2 | 457 | pub fn has_disabled_settings(&self) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L453
warning: missing documentation for a method --> pallets/nfts/src/types.rs:453:2 | 453 | pub fn has_disabled_setting(&self, setting: ItemSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L449
warning: missing documentation for a method --> pallets/nfts/src/types.rs:449:2 | 449 | pub fn is_setting_enabled(&self, setting: ItemSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L432
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:432:2 | 432 | pub fn from_disabled(settings: BitFlags<ItemSetting>) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L428
warning: missing documentation for a method --> pallets/nfts/src/types.rs:428:2 | 428 | pub fn is_disabled(&self, setting: ItemSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L424
warning: missing documentation for a method --> pallets/nfts/src/types.rs:424:2 | 424 | pub fn get_disabled(&self) -> BitFlags<ItemSetting> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L420
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:420:2 | 420 | pub fn all_enabled() -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L397
warning: missing documentation for a method --> pallets/nfts/src/types.rs:397:2 | 397 | pub fn disable_setting(&mut self, setting: CollectionSetting) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L393
warning: missing documentation for a method --> pallets/nfts/src/types.rs:393:2 | 393 | pub fn enable_setting(&mut self, setting: CollectionSetting) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L389
warning: missing documentation for a method --> pallets/nfts/src/types.rs:389:2 | 389 | pub fn has_disabled_setting(&self, setting: CollectionSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L385
warning: missing documentation for a method --> pallets/nfts/src/types.rs:385:2 | 385 | pub fn is_setting_enabled(&self, setting: CollectionSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L293
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:293:2 | 293 | pub fn from_disabled(settings: BitFlags<CollectionSetting>) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L289
warning: missing documentation for a method --> pallets/nfts/src/types.rs:289:2 | 289 | pub fn is_disabled(&self, setting: CollectionSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L285
warning: missing documentation for a method --> pallets/nfts/src/types.rs:285:2 | 285 | pub fn get_disabled(&self) -> BitFlags<CollectionSetting> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L281
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:281:2 | 281 | pub fn all_enabled() -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L129
warning: missing documentation for a method --> pallets/nfts/src/types.rs:129:2 | 129 | pub fn destroy_witness(&self) -> DestroyWitness { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: requested on the command line with `-W missing-docs`
this `map_or` is redundant: pallets/nfts/src/features/roles.rs#L121
warning: this `map_or` is redundant --> pallets/nfts/src/features/roles.rs:121:3 | 121 | / CollectionRoleOf::<T, I>::get(collection_id, account_id) 122 | | .map_or(false, |roles| roles.has_role(role)) | |________________________________________________________^ help: use is_some_and instead: `CollectionRoleOf::<T, I>::get(collection_id, account_id).is_some_and(|roles| roles.has_role(role))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
this `map_or` is redundant: pallets/nfts/src/features/metadata.rs#L151
warning: this `map_or` is redundant --> pallets/nfts/src/features/metadata.rs:151:19 | 151 | let is_locked = Self::get_item_config(&collection, &item) | _________________________^ 152 | | .map_or(false, |c| c.has_disabled_setting(ItemSetting::UnlockedMetadata)); | |_____________________________________________________________________________________^ help: use is_ok_and instead: `Self::get_item_config(&collection, &item).is_ok_and(|c| c.has_disabled_setting(ItemSetting::UnlockedMetadata))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or = note: `#[warn(clippy::unnecessary_map_or)]` on by default
missing documentation for the crate: runtime/devnet/build.rs#L1
warning: missing documentation for the crate --> runtime/devnet/build.rs:1:1 | 1 | / #[cfg(all(feature = "std", feature = "metadata-hash"))] 2 | | fn main() { 3 | | substrate_wasm_builder::WasmBuilder::init_with_defaults() 4 | | .enable_metadata_hash("PAS", 10) ... | 15 | | #[cfg(not(feature = "std"))] 16 | | fn main() {} | |____________^ | = note: requested on the command line with `-W missing-docs`
missing documentation for the crate: runtime/testnet/build.rs#L1
warning: missing documentation for the crate --> runtime/testnet/build.rs:1:1 | 1 | / #[cfg(all(feature = "std", feature = "metadata-hash"))] 2 | | fn main() { 3 | | substrate_wasm_builder::WasmBuilder::init_with_defaults() 4 | | .enable_metadata_hash("PAS", 10) ... | 15 | | #[cfg(not(feature = "std"))] 16 | | fn main() {} | |____________^ | = note: requested on the command line with `-W missing-docs`
missing documentation for an associated function: runtime/common/src/lib.rs#L134
warning: missing documentation for an associated function --> runtime/common/src/lib.rs:134:3 | 134 | pub fn is_superset(s: &ProxyType, o: &ProxyType) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for the crate: runtime/common/src/lib.rs#L1
warning: missing documentation for the crate --> runtime/common/src/lib.rs:1:1 | 1 | / #![cfg_attr(not(feature = "std"), no_std)] 2 | | use frame_support::weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight}; 3 | | // Cumulus types re-export 4 | | // These types are shared between the devnet and testnet runtimes ... | 198 | | } 199 | | } | |_^ | = note: requested on the command line with `-W missing-docs`
missing documentation for a type alias: extension/src/lib.rs#L38
warning: missing documentation for a type alias --> extension/src/lib.rs:38:1 | 38 | pub type ContractWeightsOf<T> = <T as pallet_contracts::Config>::WeightInfo; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for the crate: extension/src/lib.rs#L1
warning: missing documentation for the crate --> extension/src/lib.rs:1:1 | 1 | / #![cfg_attr(not(feature = "std"), no_std)] 2 | | 3 | | use core::marker::PhantomData; ... | 229 | | } 230 | | } | |_^ | = note: requested on the command line with `-W missing-docs`
very complex type used. Consider factoring parts into `type` definitions: extension/src/functions.rs#L83
warning: very complex type used. Consider factoring parts into `type` definitions --> extension/src/functions.rs:83:2 | 83 | PhantomData<(M, C, R, D, F, RC, E, L)>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = 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
the following explicit lifetimes could be elided: 'a: extension/src/environment.rs#L185
warning: the following explicit lifetimes could be elided: 'a --> extension/src/environment.rs:185:6 | 185 | impl<'a, E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'a, E> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 185 - impl<'a, E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'a, E> { 185 + impl<E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'_, E> { |
the following explicit lifetimes could be elided: 'a, 'b: extension/src/environment.rs#L145
warning: the following explicit lifetimes could be elided: 'a, 'b --> extension/src/environment.rs:145:6 | 145 | impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufOut | ^^ ^^ 146 | for Env<'a, 'b, E, BufInBufOutState> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 145 ~ impl<E: pallet_contracts::chain_extension::Ext> BufOut 146 ~ for Env<'_, '_, E, BufInBufOutState> |
the following explicit lifetimes could be elided: 'a, 'b: extension/src/environment.rs#L114
warning: the following explicit lifetimes could be elided: 'a, 'b --> extension/src/environment.rs:114:6 | 114 | impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufIn for Env<'a, 'b, E, BufInBufOutState> { | ^^ ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 114 - impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufIn for Env<'a, 'b, E, BufInBufOutState> { 114 + impl<E: pallet_contracts::chain_extension::Ext> BufIn for Env<'_, '_, E, BufInBufOutState> { |
the following explicit lifetimes could be elided: 'a, 'b: extension/src/environment.rs#L63
warning: the following explicit lifetimes could be elided: 'a, 'b --> extension/src/environment.rs:63:6 | 63 | impl<'a, 'b, E: pallet_contracts::chain_extension::Ext, S: State> Environment | ^^ ^^ 64 | for Env<'a, 'b, E, S> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 63 ~ impl<E: pallet_contracts::chain_extension::Ext, S: State> Environment 64 ~ for Env<'_, '_, E, S> |
unused import: `Inspect`: pallets/api/src/fungibles/benchmarking.rs#L8
warning: unused import: `Inspect` --> pallets/api/src/fungibles/benchmarking.rs:8:16 | 8 | approvals::{Inspect as ApprovalInspect, Mutate}, | ^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
missing documentation for a struct: pallets/nfts/src/types.rs#L560
warning: missing documentation for a struct --> pallets/nfts/src/types.rs:560:1 | 560 | pub struct PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct: pallets/nfts/src/types.rs#L542
warning: missing documentation for a struct --> pallets/nfts/src/types.rs:542:1 | 542 | pub struct PreSignedMint<CollectionId, ItemId, AccountId, Deadline, Balance> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L534
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:534:2 | 534 | pub fn max_roles() -> u8 { | ^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L530
warning: missing documentation for a method --> pallets/nfts/src/types.rs:530:2 | 530 | pub fn add_role(&mut self, role: CollectionRole) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L526
warning: missing documentation for a method --> pallets/nfts/src/types.rs:526:2 | 526 | pub fn has_role(&self, role: CollectionRole) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L522
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:522:2 | 522 | pub fn none() -> Self { | ^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L498
warning: missing documentation for a method --> pallets/nfts/src/types.rs:498:2 | 498 | pub fn is_enabled(&self, feature: PalletFeature) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L494
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:494:2 | 494 | pub fn from_disabled(features: BitFlags<PalletFeature>) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L490
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:490:2 | 490 | pub fn all_enabled() -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L465
warning: missing documentation for a method --> pallets/nfts/src/types.rs:465:2 | 465 | pub fn disable_setting(&mut self, setting: ItemSetting) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L461
warning: missing documentation for a method --> pallets/nfts/src/types.rs:461:2 | 461 | pub fn enable_setting(&mut self, setting: ItemSetting) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L457
warning: missing documentation for a method --> pallets/nfts/src/types.rs:457:2 | 457 | pub fn has_disabled_settings(&self) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L453
warning: missing documentation for a method --> pallets/nfts/src/types.rs:453:2 | 453 | pub fn has_disabled_setting(&self, setting: ItemSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L449
warning: missing documentation for a method --> pallets/nfts/src/types.rs:449:2 | 449 | pub fn is_setting_enabled(&self, setting: ItemSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L432
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:432:2 | 432 | pub fn from_disabled(settings: BitFlags<ItemSetting>) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L428
warning: missing documentation for a method --> pallets/nfts/src/types.rs:428:2 | 428 | pub fn is_disabled(&self, setting: ItemSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L424
warning: missing documentation for a method --> pallets/nfts/src/types.rs:424:2 | 424 | pub fn get_disabled(&self) -> BitFlags<ItemSetting> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L420
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:420:2 | 420 | pub fn all_enabled() -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L397
warning: missing documentation for a method --> pallets/nfts/src/types.rs:397:2 | 397 | pub fn disable_setting(&mut self, setting: CollectionSetting) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L393
warning: missing documentation for a method --> pallets/nfts/src/types.rs:393:2 | 393 | pub fn enable_setting(&mut self, setting: CollectionSetting) { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L389
warning: missing documentation for a method --> pallets/nfts/src/types.rs:389:2 | 389 | pub fn has_disabled_setting(&self, setting: CollectionSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L385
warning: missing documentation for a method --> pallets/nfts/src/types.rs:385:2 | 385 | pub fn is_setting_enabled(&self, setting: CollectionSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L293
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:293:2 | 293 | pub fn from_disabled(settings: BitFlags<CollectionSetting>) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L289
warning: missing documentation for a method --> pallets/nfts/src/types.rs:289:2 | 289 | pub fn is_disabled(&self, setting: CollectionSetting) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L285
warning: missing documentation for a method --> pallets/nfts/src/types.rs:285:2 | 285 | pub fn get_disabled(&self) -> BitFlags<CollectionSetting> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for an associated function: pallets/nfts/src/types.rs#L281
warning: missing documentation for an associated function --> pallets/nfts/src/types.rs:281:2 | 281 | pub fn all_enabled() -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: pallets/nfts/src/types.rs#L129
warning: missing documentation for a method --> pallets/nfts/src/types.rs:129:2 | 129 | pub fn destroy_witness(&self) -> DestroyWitness { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: requested on the command line with `-W missing-docs`
this `map_or` is redundant: pallets/nfts/src/features/roles.rs#L121
warning: this `map_or` is redundant --> pallets/nfts/src/features/roles.rs:121:3 | 121 | / CollectionRoleOf::<T, I>::get(collection_id, account_id) 122 | | .map_or(false, |roles| roles.has_role(role)) | |________________________________________________________^ help: use is_some_and instead: `CollectionRoleOf::<T, I>::get(collection_id, account_id).is_some_and(|roles| roles.has_role(role))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
this `map_or` is redundant: pallets/nfts/src/features/metadata.rs#L151
warning: this `map_or` is redundant --> pallets/nfts/src/features/metadata.rs:151:19 | 151 | let is_locked = Self::get_item_config(&collection, &item) | _________________________^ 152 | | .map_or(false, |c| c.has_disabled_setting(ItemSetting::UnlockedMetadata)); | |_____________________________________________________________________________________^ help: use is_ok_and instead: `Self::get_item_config(&collection, &item).is_ok_and(|c| c.has_disabled_setting(ItemSetting::UnlockedMetadata))` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or = note: `#[warn(clippy::unnecessary_map_or)]` on by default
missing documentation for the crate: runtime/testnet/build.rs#L1
warning: missing documentation for the crate --> runtime/testnet/build.rs:1:1 | 1 | / #[cfg(all(feature = "std", feature = "metadata-hash"))] 2 | | fn main() { 3 | | substrate_wasm_builder::WasmBuilder::init_with_defaults() 4 | | .enable_metadata_hash("PAS", 10) ... | 15 | | #[cfg(not(feature = "std"))] 16 | | fn main() {} | |____________^ | = note: requested on the command line with `-W missing-docs`
missing documentation for the crate: runtime/mainnet/build.rs#L1
warning: missing documentation for the crate --> runtime/mainnet/build.rs:1:1 | 1 | / #[cfg(all(feature = "std", feature = "metadata-hash"))] 2 | | fn main() { 3 | | substrate_wasm_builder::WasmBuilder::init_with_defaults() 4 | | .enable_metadata_hash("DOT", 10) ... | 15 | | #[cfg(not(feature = "std"))] 16 | | fn main() {} | |____________^ | = note: requested on the command line with `-W missing-docs`
missing documentation for a type alias: extension/src/lib.rs#L38
warning: missing documentation for a type alias --> extension/src/lib.rs:38:1 | 38 | pub type ContractWeightsOf<T> = <T as pallet_contracts::Config>::WeightInfo; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
very complex type used. Consider factoring parts into `type` definitions: extension/src/functions.rs#L83
warning: very complex type used. Consider factoring parts into `type` definitions --> extension/src/functions.rs:83:2 | 83 | PhantomData<(M, C, R, D, F, RC, E, L)>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = 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
the following explicit lifetimes could be elided: 'a: extension/src/environment.rs#L185
warning: the following explicit lifetimes could be elided: 'a --> extension/src/environment.rs:185:6 | 185 | impl<'a, E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'a, E> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 185 - impl<'a, E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'a, E> { 185 + impl<E: pallet_contracts::chain_extension::Ext> Ext for ExternalEnvironment<'_, E> { |
the following explicit lifetimes could be elided: 'a, 'b: extension/src/environment.rs#L145
warning: the following explicit lifetimes could be elided: 'a, 'b --> extension/src/environment.rs:145:6 | 145 | impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufOut | ^^ ^^ 146 | for Env<'a, 'b, E, BufInBufOutState> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 145 ~ impl<E: pallet_contracts::chain_extension::Ext> BufOut 146 ~ for Env<'_, '_, E, BufInBufOutState> |
the following explicit lifetimes could be elided: 'a, 'b: extension/src/environment.rs#L114
warning: the following explicit lifetimes could be elided: 'a, 'b --> extension/src/environment.rs:114:6 | 114 | impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufIn for Env<'a, 'b, E, BufInBufOutState> { | ^^ ^^ ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 114 - impl<'a, 'b, E: pallet_contracts::chain_extension::Ext> BufIn for Env<'a, 'b, E, BufInBufOutState> { 114 + impl<E: pallet_contracts::chain_extension::Ext> BufIn for Env<'_, '_, E, BufInBufOutState> { |
the following explicit lifetimes could be elided: 'a, 'b: extension/src/environment.rs#L63
warning: the following explicit lifetimes could be elided: 'a, 'b --> extension/src/environment.rs:63:6 | 63 | impl<'a, 'b, E: pallet_contracts::chain_extension::Ext, S: State> Environment | ^^ ^^ 64 | for Env<'a, 'b, E, S> | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 63 ~ impl<E: pallet_contracts::chain_extension::Ext, S: State> Environment 64 ~ for Env<'_, '_, E, S> |
missing documentation for an associated function: runtime/common/src/lib.rs#L134
warning: missing documentation for an associated function --> runtime/common/src/lib.rs:134:3 | 134 | pub fn is_superset(s: &ProxyType, o: &ProxyType) -> bool { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `$crate::parameter_types` which comes from the expansion of the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for a struct: /home/runner/.cargo/git/checkouts/polkadot-sdk-cff69157b985ed76/9de8837/substrate/frame/support/src/lib.rs#L274
warning: missing documentation for a struct --> runtime/common/src/lib.rs:85:2 | 85 | / parameter_types! { 86 | | // One storage item; key size 32, value size 8; . 87 | | pub const ProxyDepositBase: Balance = deposit(1, 40); 88 | | // Additional storage item size of 33 bytes. ... | 94 | | pub const MaxPending: u16 = 32; 95 | | } | |_____^ | = note: this warning originates in the macro `parameter_types` (in Nightly builds, run with -Z macro-backtrace for more info)
missing documentation for the crate: runtime/common/src/lib.rs#L1
warning: missing documentation for the crate --> runtime/common/src/lib.rs:1:1 | 1 | / #![cfg_attr(not(feature = "std"), no_std)] 2 | | use frame_support::weights::{constants::WEIGHT_REF_TIME_PER_SECOND, Weight}; 3 | | // Cumulus types re-export 4 | | // These types are shared between the devnet and testnet runtimes ... | 198 | | } 199 | | } | |_^ | = note: requested on the command line with `-W missing-docs`