mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-05 10:29:40 +00:00
41ce5b1738
We prior required they had the same encoding, yet this ensures they do by making them one and the same. This does require an large, ugly, From/TryInto block which is deemed preferable for moving this more and more into syntax (from semantics). Further improvements (notably re: Extra) is possible, and this already lets us strip some members from the Call enum.
77 lines
2.6 KiB
TOML
77 lines
2.6 KiB
TOML
[package]
|
|
name = "serai-abi"
|
|
version = "0.1.0"
|
|
description = "ABI for the Serai runtime"
|
|
license = "MIT"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/abi"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
edition = "2021"
|
|
rust-version = "1.74"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
|
|
scale-info = { version = "2", default-features = false, features = ["derive"] }
|
|
|
|
borsh = { version = "1", default-features = false, features = ["derive", "de_strict_order"], optional = true }
|
|
serde = { version = "1", default-features = false, features = ["derive", "alloc"], optional = true }
|
|
|
|
sp-core = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-runtime = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
sp-consensus-babe = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-consensus-grandpa = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
frame-support = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
serai-primitives = { path = "../primitives", version = "0.1", default-features = false }
|
|
serai-coins-primitives = { path = "../coins/primitives", version = "0.1", default-features = false }
|
|
serai-validator-sets-primitives = { path = "../validator-sets/primitives", version = "0.1", default-features = false }
|
|
serai-in-instructions-primitives = { path = "../in-instructions/primitives", version = "0.1", default-features = false }
|
|
serai-signals-primitives = { path = "../signals/primitives", version = "0.1", default-features = false }
|
|
|
|
[features]
|
|
std = [
|
|
"scale/std",
|
|
"scale-info/std",
|
|
|
|
"borsh?/std",
|
|
"serde?/std",
|
|
|
|
"sp-core/std",
|
|
"sp-runtime/std",
|
|
|
|
"sp-consensus-babe/std",
|
|
"sp-consensus-grandpa/std",
|
|
|
|
"frame-support/std",
|
|
|
|
"serai-primitives/std",
|
|
"serai-coins-primitives/std",
|
|
"serai-validator-sets-primitives/std",
|
|
"serai-in-instructions-primitives/std",
|
|
"serai-signals-primitives/std",
|
|
]
|
|
borsh = [
|
|
"dep:borsh",
|
|
"serai-primitives/borsh",
|
|
"serai-coins-primitives/borsh",
|
|
"serai-validator-sets-primitives/borsh",
|
|
"serai-in-instructions-primitives/borsh",
|
|
"serai-signals-primitives/borsh",
|
|
]
|
|
serde = [
|
|
"dep:serde",
|
|
"serai-primitives/serde",
|
|
"serai-coins-primitives/serde",
|
|
"serai-validator-sets-primitives/serde",
|
|
"serai-in-instructions-primitives/serde",
|
|
"serai-signals-primitives/serde",
|
|
]
|
|
default = ["std"]
|