Skip to content

feat: api fungibles pallet #130

feat: api fungibles pallet

feat: api fungibles pallet #130

Triggered via pull request July 21, 2024 10:37
@DaanvdplasDaanvdplas
synchronize #113
Status Success
Total duration 11s
Artifacts

lint-pr.yml

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

Annotations

1 error and 13 warnings
unresolved import `pop_primitives::storage_keys::RuntimeStateKeys`: runtime/testnet/src/extensions.rs#L9
error[E0432]: unresolved import `pop_primitives::storage_keys::RuntimeStateKeys` --> runtime/testnet/src/extensions.rs:9:5 | 9 | use pop_primitives::storage_keys::RuntimeStateKeys; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `RuntimeStateKeys` in `storage_keys`
constant `V0` is never used: runtime/devnet/src/extensions/mod.rs#L40
warning: constant `V0` is never used --> runtime/devnet/src/extensions/mod.rs:40:7 | 40 | const V0: u8 = 0; | ^^ | = note: `#[warn(dead_code)]` on by default
use of deprecated struct `pallet_transaction_payment::CurrencyAdapter`: Please use the fungible trait and FungibleAdapter. This struct will be removed some time after March 2024.: runtime/testnet/src/lib.rs#L340
warning: use of deprecated struct `pallet_transaction_payment::CurrencyAdapter`: Please use the fungible trait and FungibleAdapter. This struct will be removed some time after March 2024. --> runtime/testnet/src/lib.rs:340:57 | 340 | type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>; | ^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default
use of deprecated struct `pallet_transaction_payment::CurrencyAdapter`: Please use the fungible trait and FungibleAdapter. This struct will be removed some time after March 2024.: runtime/devnet/src/lib.rs#L378
warning: use of deprecated struct `pallet_transaction_payment::CurrencyAdapter`: Please use the fungible trait and FungibleAdapter. This struct will be removed some time after March 2024. --> runtime/devnet/src/lib.rs:378:57 | 378 | type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter<Balances, ()>; | ^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default
unused import: `Runtime`: runtime/devnet/src/lib.rs#L1007
warning: unused import: `Runtime` --> runtime/devnet/src/lib.rs:1007:25 | 1007 | use super::{fungibles, Runtime}; | ^^^^^^^
bound is defined in more than one place: runtime/testnet/src/extensions.rs#L33
warning: bound is defined in more than one place --> runtime/testnet/src/extensions.rs:33:10 | 33 | fn call<E: Ext>(&mut self, env: Environment<E, InitState>) -> Result<RetVal, DispatchError> | ^ 34 | where 35 | E: Ext<T = T>, | ^ | = 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
unused import: `pallet_nfts::Call as NftsCall`: runtime/devnet/src/lib.rs#L260
warning: unused import: `pallet_nfts::Call as NftsCall` --> runtime/devnet/src/lib.rs:260:7 | 260 | use pallet_nfts::Call as NftsCall; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bound is defined in more than one place: runtime/devnet/src/extensions/mod.rs#L63
warning: bound is defined in more than one place --> runtime/devnet/src/extensions/mod.rs:63:10 | 63 | fn call<E: Ext>(&mut self, env: Environment<E, InitState>) -> Result<RetVal, DispatchError> | ^ 64 | where 65 | E: Ext<T = T>, | ^ | = 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
unused imports: `Balance`, `Runtime`: runtime/devnet/src/extensions/mod.rs#L28
warning: unused imports: `Balance`, `Runtime` --> runtime/devnet/src/extensions/mod.rs:28:30 | 28 | AccountId, AllowedApiCalls, Balance, Runtime, RuntimeCall, RuntimeOrigin, UNIT, | ^^^^^^^ ^^^^^^^
unused import: `MultiAddress`: runtime/devnet/src/extensions/mod.rs#L14
warning: unused import: `MultiAddress` --> runtime/devnet/src/extensions/mod.rs:14:55 | 14 | use sp_runtime::{traits::Dispatchable, DispatchError, MultiAddress}; | ^^^^^^^^^^^^
unused imports: `approvals::Inspect as ApprovalInspect`, `metadata::Inspect as MetadataInspect`: runtime/devnet/src/extensions/mod.rs#L7
warning: unused imports: `approvals::Inspect as ApprovalInspect`, `metadata::Inspect as MetadataInspect` --> runtime/devnet/src/extensions/mod.rs:7:3 | 7 | approvals::Inspect as ApprovalInspect, metadata::Inspect as MetadataInspect, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
unused import: `Compact`: runtime/devnet/src/extensions/mod.rs#L1
warning: unused import: `Compact` --> runtime/devnet/src/extensions/mod.rs:1:13 | 1 | use codec::{Compact, Decode, Encode}; | ^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
used a field initializer for a tuple struct: scripts/fund-dev-accounts/./main.rs#L54
warning: used a field initializer for a tuple struct --> scripts/fund-dev-accounts/./main.rs:54:9 | 54 | id: AssetId { 0: Location { parents: 0, interior: Junctions::Here } }, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `AssetId(Location { parents: 0, interior: Junctions::Here })` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#init_numbered_fields
used a field initializer for a tuple struct: scripts/fund-dev-accounts/./main.rs#L52
warning: used a field initializer for a tuple struct --> scripts/fund-dev-accounts/./main.rs:52:36 | 52 | let assets = VersionedAssets::V4(Assets { | __________________________________________^ 53 | | 0: vec![Asset { 54 | | id: AssetId { 0: Location { parents: 0, interior: Junctions::Here } }, 55 | | fun: amount, 56 | | }], 57 | | }); | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#init_numbered_fields = note: `#[warn(clippy::init_numbered_fields)]` on by default help: try | 52 ~ let assets = VersionedAssets::V4(Assets(<[_]>::into_vec( 53 + // This rustc_box is not required, but it produces a dramatic improvement in compile 54 + // time when constructing arrays with many elements. 55 + #[rustc_box] 56 + $crate::boxed::Box::new([$($x),+]) 57 ~ ))); |