Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version = "4.0.0-dev"
[workspace]
members = [
"node",
"pallets/hexalem",
"pallets/*",
"runtime",
]
resolver = "2"
Expand Down Expand Up @@ -111,6 +111,7 @@ try-runtime-cli = { git = "https://github.com/parityt

# Substrate Gaming Pallets
pallet-hexalem = { path = "pallets/hexalem", default-features = false }
pallet-tic-tac-toe = { path = "pallets/tic-tac-toe", default-features = false }

# Substrate Gaming Runtime
hexalem-runtime = { path = "runtime" }
Expand Down
46 changes: 46 additions & 0 deletions pallets/tic-tac-toe/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[package]
description = "Sample pallet for the tic-tac-toe game"
name = "pallet-tic-tac-toe"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
repository.workspace = true
version.workspace = true

[package.metadata.docs.rs]
targets = [ "x86_64-unknown-linux-gnu" ]

[dependencies]
# Substrate (wasm)
frame-benchmarking = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
parity-scale-codec = { workspace = true, features = [ "derive", "max-encoded-len" ] }
scale-info = { workspace = true, features = [ "derive" ] }
sp-core = { workspace = true }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }

[dev-dependencies]
pallet-balances = { workspace = true }

[features]
default = [ "std" ]
runtime-benchmarks = [
"frame-benchmarking",
]
std = [
"parity-scale-codec/std",
"scale-info/std",
"frame-benchmarking/std",
"frame-support/std",
"frame-system/std",
"pallet-balances/std",
"sp-core/std",
"sp-runtime/std",
"sp-std/std",
"sp-io/std",
]
try-runtime = [ "frame-support/try-runtime" ]
3 changes: 3 additions & 0 deletions pallets/tic-tac-toe/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Pallet tic-tac-toe

This pallet is meant to be a template for other game developers into how to create a backend for a Substrate-based game.
57 changes: 57 additions & 0 deletions pallets/tic-tac-toe/benchmarking/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[package]
description = "Ajuna Network pallet used for NFT Staking benchmarking"
name = "pallet-ajuna-nft-staking-benchmarking"

authors.workspace = true
edition.workspace = true
homepage.workspace = true
repository.workspace = true
version.workspace = true

[package.metadata.docs.rs]
targets = [ "x86_64-unknown-linux-gnu" ]

[dependencies]
# General (wasm)
log = { workspace = true }

# Substrate (wasm)
frame-benchmarking = { workspace = true, optional = true }
frame-support = { workspace = true }
frame-system = { workspace = true }
pallet-balances = { workspace = true }
pallet-nfts = { workspace = true }
parity-scale-codec = { workspace = true, features = [ "derive", "max-encoded-len" ] }
scale-info = { workspace = true, features = [ "derive" ] }
sp-io = { workspace = true }
sp-runtime = { workspace = true }
sp-std = { workspace = true }

# Ajuna
pallet-ajuna-nft-staking = { workspace = true }

[dev-dependencies]
sp-core = { workspace = true }

[features]
default = [ "std" ]
runtime-benchmarks = [
"frame-benchmarking",
"pallet-nfts/runtime-benchmarks",
"pallet-ajuna-nft-staking/runtime-benchmarks",
]
std = [
"parity-scale-codec/std",
"scale-info/std",
"sp-io/std",
"pallet-balances/std",
"pallet-nfts/std",
"pallet-ajuna-nft-staking/std",
"frame-benchmarking/std",
"frame-support/std",
"frame-system/std",
"sp-runtime/std",
"sp-std/std",
"log/std",
]
try-runtime = [ "frame-support/try-runtime" ]
Loading