Skip to content

Commit 4129751

Browse files
committed
add pallet-kitties to runtime
1 parent 2964428 commit 4129751

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

polkadot-sdk-minimal-template/Cargo.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

polkadot-sdk-minimal-template/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ resolver = "2"
1616
[workspace.dependencies]
1717
minimal-template-runtime = { path = "./runtime", default-features = false }
1818
pallet-minimal-template = { path = "./pallets/template", default-features = false }
19+
pallet-kitties = { path = "../substrate-collectables-workshop", default-features = false }
1920
clap = { version = "4.5.3" }
2021
docify = { version = "0.2.8" }
2122
frame = { version = "0.6.0", default-features = false, package = "polkadot-sdk-frame" }

polkadot-sdk-minimal-template/runtime/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pallet-transaction-payment-rpc-runtime-api.workspace = true
2121
sp-genesis-builder.workspace = true
2222
sp-runtime = { features = ["serde"], workspace = true }
2323
pallet-minimal-template.workspace = true
24+
pallet-kitties.workspace = true
2425

2526
[build-dependencies]
2627
substrate-wasm-builder = { optional = true, workspace = true, default-features = true }
@@ -40,6 +41,7 @@ std = [
4041
"pallet-transaction-payment/std",
4142

4243
"pallet-minimal-template/std",
44+
"pallet-kitties/std",
4345

4446
"sp-genesis-builder/std",
4547
"sp-runtime/std",

polkadot-sdk-minimal-template/runtime/src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ mod runtime {
123123
/// A minimal pallet template.
124124
#[runtime::pallet_index(5)]
125125
pub type Template = pallet_minimal_template::Pallet<Runtime>;
126+
127+
/// A kitties nft marketplace pallet.
128+
#[runtime::pallet_index(6)]
129+
pub type Kitties = pallet_kitties::Pallet<Runtime>;
126130
}
127131

128132
parameter_types! {
@@ -165,6 +169,12 @@ impl pallet_transaction_payment::Config for Runtime {
165169
// Implements the types required for the template pallet.
166170
impl pallet_minimal_template::Config for Runtime {}
167171

172+
impl pallet_kitties::Config for Runtime {
173+
type RuntimeEvent = RuntimeEvent;
174+
type NativeBalance = Balances;
175+
}
176+
177+
168178
type Block = frame::runtime::types_common::BlockOf<Runtime, SignedExtra>;
169179
type Header = HeaderFor<Runtime>;
170180

0 commit comments

Comments
 (0)