mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
* Companion for #13349 * Add missing line * Cargo.lock --------- Co-authored-by: parity-processbot <>
This commit is contained in:
Generated
+262
-231
File diff suppressed because it is too large
Load Diff
@@ -27,6 +27,7 @@ pallet-authorship = { git = "https://github.com/paritytech/substrate", default-f
|
|||||||
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
||||||
pallet-multisig = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
pallet-multisig = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
||||||
pallet-nfts = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
pallet-nfts = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
||||||
|
pallet-nfts-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
||||||
pallet-proxy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
pallet-proxy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
||||||
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
||||||
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "master" }
|
||||||
@@ -143,6 +144,7 @@ std = [
|
|||||||
"pallet-balances/std",
|
"pallet-balances/std",
|
||||||
"pallet-multisig/std",
|
"pallet-multisig/std",
|
||||||
"pallet-nfts/std",
|
"pallet-nfts/std",
|
||||||
|
"pallet-nfts-runtime-api/std",
|
||||||
"pallet-proxy/std",
|
"pallet-proxy/std",
|
||||||
"pallet-session/std",
|
"pallet-session/std",
|
||||||
"pallet-timestamp/std",
|
"pallet-timestamp/std",
|
||||||
|
|||||||
@@ -49,7 +49,10 @@ use frame_support::{
|
|||||||
construct_runtime,
|
construct_runtime,
|
||||||
dispatch::DispatchClass,
|
dispatch::DispatchClass,
|
||||||
parameter_types,
|
parameter_types,
|
||||||
traits::{AsEnsureOriginWithArg, ConstU32, ConstU64, ConstU8, InstanceFilter},
|
traits::{
|
||||||
|
tokens::nonfungibles_v2::Inspect, AsEnsureOriginWithArg, ConstU32, ConstU64, ConstU8,
|
||||||
|
InstanceFilter,
|
||||||
|
},
|
||||||
weights::{ConstantMultiplier, Weight},
|
weights::{ConstantMultiplier, Weight},
|
||||||
PalletId, RuntimeDebug,
|
PalletId, RuntimeDebug,
|
||||||
};
|
};
|
||||||
@@ -799,6 +802,50 @@ impl_runtime_apis! {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl pallet_nfts_runtime_api::NftsApi<Block, AccountId, u32, u32> for Runtime {
|
||||||
|
fn owner(collection: u32, item: u32) -> Option<AccountId> {
|
||||||
|
<Nfts as Inspect<AccountId>>::owner(&collection, &item)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn collection_owner(collection: u32) -> Option<AccountId> {
|
||||||
|
<Nfts as Inspect<AccountId>>::collection_owner(&collection)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn attribute(
|
||||||
|
collection: u32,
|
||||||
|
item: u32,
|
||||||
|
key: Vec<u8>,
|
||||||
|
) -> Option<Vec<u8>> {
|
||||||
|
<Nfts as Inspect<AccountId>>::attribute(&collection, &item, &key)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn custom_attribute(
|
||||||
|
account: AccountId,
|
||||||
|
collection: u32,
|
||||||
|
item: u32,
|
||||||
|
key: Vec<u8>,
|
||||||
|
) -> Option<Vec<u8>> {
|
||||||
|
<Nfts as Inspect<AccountId>>::custom_attribute(
|
||||||
|
&account,
|
||||||
|
&collection,
|
||||||
|
&item,
|
||||||
|
&key,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn system_attribute(
|
||||||
|
collection: u32,
|
||||||
|
item: u32,
|
||||||
|
key: Vec<u8>,
|
||||||
|
) -> Option<Vec<u8>> {
|
||||||
|
<Nfts as Inspect<AccountId>>::system_attribute(&collection, &item, &key)
|
||||||
|
}
|
||||||
|
|
||||||
|
fn collection_attribute(collection: u32, key: Vec<u8>) -> Option<Vec<u8>> {
|
||||||
|
<Nfts as Inspect<AccountId>>::collection_attribute(&collection, &key)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi<Block, Balance> for Runtime {
|
impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi<Block, Balance> for Runtime {
|
||||||
fn query_info(
|
fn query_info(
|
||||||
uxt: <Block as BlockT>::Extrinsic,
|
uxt: <Block as BlockT>::Extrinsic,
|
||||||
|
|||||||
Reference in New Issue
Block a user