2025-09-19 19:05:47 -04:00
|
|
|
[package]
|
|
|
|
|
name = "serai-core-pallet"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
description = "Core pallet"
|
|
|
|
|
license = "AGPL-3.0-only"
|
|
|
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/core"
|
|
|
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
|
|
|
edition = "2021"
|
|
|
|
|
rust-version = "1.85"
|
|
|
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
|
all-features = true
|
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
|
|
|
|
|
[lints]
|
|
|
|
|
workspace = true
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
borsh = { version = "1", default-features = false, features = ["derive", "de_strict_order"] }
|
|
|
|
|
|
|
|
|
|
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
|
|
|
|
|
|
2025-11-25 00:06:54 -05:00
|
|
|
sp-core = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "8c36534bb0bd5a02979f94bb913d11d55fe7eadc", default-features = false }
|
2025-09-19 19:05:47 -04:00
|
|
|
|
2025-11-25 00:06:54 -05:00
|
|
|
frame-system = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "8c36534bb0bd5a02979f94bb913d11d55fe7eadc", default-features = false }
|
|
|
|
|
frame-support = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "8c36534bb0bd5a02979f94bb913d11d55fe7eadc", default-features = false }
|
2025-11-14 09:57:18 -05:00
|
|
|
|
2025-11-25 00:06:54 -05:00
|
|
|
pallet-timestamp = { git = "https://github.com/serai-dex/patch-polkadot-sdk", rev = "8c36534bb0bd5a02979f94bb913d11d55fe7eadc", default-features = false }
|
2025-09-19 19:05:47 -04:00
|
|
|
|
|
|
|
|
serai-abi = { path = "../abi", default-features = false, features = ["substrate"] }
|
|
|
|
|
|
|
|
|
|
[features]
|
|
|
|
|
std = [
|
|
|
|
|
"borsh/std",
|
|
|
|
|
"scale/std",
|
|
|
|
|
|
|
|
|
|
"sp-core/std",
|
|
|
|
|
|
|
|
|
|
"frame-system/std",
|
|
|
|
|
"frame-support/std",
|
|
|
|
|
|
2025-11-14 09:57:18 -05:00
|
|
|
"pallet-timestamp/std",
|
|
|
|
|
|
2025-09-19 19:05:47 -04:00
|
|
|
"serai-abi/std",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
runtime-benchmarks = [
|
|
|
|
|
"frame-system/runtime-benchmarks",
|
|
|
|
|
"frame-support/runtime-benchmarks",
|
2025-11-14 09:57:18 -05:00
|
|
|
"pallet-timestamp/runtime-benchmarks",
|
2025-09-19 19:05:47 -04:00
|
|
|
]
|
|
|
|
|
|
2025-11-14 09:57:18 -05:00
|
|
|
try-runtime = ["pallet-timestamp/try-runtime", "serai-abi/try-runtime"]
|
2025-09-19 19:05:47 -04:00
|
|
|
|
|
|
|
|
default = ["std"]
|