2023-01-20 16:00:18 +00:00
|
|
|
[package]
|
2023-07-03 12:09:41 +00:00
|
|
|
name = "serai-in-instructions-pallet"
|
2023-01-20 16:00:18 +00:00
|
|
|
version = "0.1.0"
|
Move in instructions from inherent transactions to unsigned transactions
The original intent was to use inherent transactions to prevent needing to vote
on-chain, which would spam the chain with worthless votes. Inherent
transactions, and our Tendermint library, would use the BFT's processs voting
to also vote on all included transactions. This perfectly collapses integrity
voting creating *no additional on-chain costs*.
Unfortunately, this led to issues such as #6, along with questions of validator
scalability when all validators are expencted to participate in consensus (in
order to vote on if the included instructions are valid). This has been
summarized in #241.
With this change, we can remove Tendermint from Substrate. This greatly
decreases our complexity. While I'm unhappy with the amount of time spent on
it, just to reach this conclusion, thankfully tendermint-machine itself is
still usable for #163. This also has reached a tipping point recently as the
polkadot-v0.9.40 branch of substrate changed how syncing works, requiring
further changes to sc-tendermint. These have no value if we're just going to
get rid of it later, due to fundamental design issues, yet I would like to
keep Substrate updated.
This should be followed by moving back to GRANDPA, enabling closing most open
Tendermint issues.
Please note the current in-instructions-pallet does not actually verify the
included signature yet. It's marked TODO, despite this bing critical.
2023-03-26 06:58:04 +00:00
|
|
|
description = "Execute calls via In Instructions from unsigned transactions"
|
2023-01-20 16:00:18 +00:00
|
|
|
license = "AGPL-3.0-only"
|
|
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
|
|
edition = "2021"
|
|
|
|
publish = false
|
2023-11-21 06:19:40 +00:00
|
|
|
rust-version = "1.74"
|
2023-01-20 16:00:18 +00:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
2023-12-11 12:47:23 +00:00
|
|
|
[package.metadata.cargo-machete]
|
|
|
|
ignored = ["scale", "scale-info"]
|
|
|
|
|
2023-12-17 01:54:24 +00:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
|
|
|
|
2023-01-20 16:00:18 +00:00
|
|
|
[dependencies]
|
|
|
|
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "max-encoded-len"] }
|
|
|
|
scale-info = { version = "2", default-features = false, features = ["derive"] }
|
|
|
|
|
2023-11-05 17:02:34 +00:00
|
|
|
sp-std = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
2023-03-31 10:34:09 +00:00
|
|
|
sp-application-crypto = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
2023-11-05 17:02:34 +00:00
|
|
|
sp-io = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
2023-01-20 16:00:18 +00:00
|
|
|
sp-runtime = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
2023-11-05 17:02:34 +00:00
|
|
|
sp-core = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
2023-01-20 16:00:18 +00:00
|
|
|
|
|
|
|
frame-system = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
frame-support = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
|
2023-05-13 08:20:13 +00:00
|
|
|
serai-primitives = { path = "../../primitives", default-features = false }
|
2023-07-03 12:09:41 +00:00
|
|
|
in-instructions-primitives = { package = "serai-in-instructions-primitives", path = "../primitives", default-features = false }
|
2024-07-18 23:30:19 +00:00
|
|
|
genesis-liquidity-primitives = { package = "serai-genesis-liquidity-primitives", path = "../../genesis-liquidity/primitives", default-features = false }
|
2023-01-20 16:00:18 +00:00
|
|
|
|
2023-10-19 10:22:21 +00:00
|
|
|
coins-pallet = { package = "serai-coins-pallet", path = "../../coins/pallet", default-features = false }
|
2023-11-05 17:02:34 +00:00
|
|
|
dex-pallet = { package = "serai-dex-pallet", path = "../../dex/pallet", default-features = false }
|
2023-07-03 12:09:41 +00:00
|
|
|
validator-sets-pallet = { package = "serai-validator-sets-pallet", path = "../../validator-sets/pallet", default-features = false }
|
2024-07-18 23:30:19 +00:00
|
|
|
genesis-liquidity-pallet = { package = "serai-genesis-liquidity-pallet", path = "../../genesis-liquidity/pallet", default-features = false }
|
2023-01-28 06:47:13 +00:00
|
|
|
|
2023-01-20 16:00:18 +00:00
|
|
|
[features]
|
|
|
|
std = [
|
|
|
|
"scale/std",
|
|
|
|
"scale-info/std",
|
|
|
|
|
2023-11-05 17:02:34 +00:00
|
|
|
"sp-std/std",
|
2023-09-29 07:51:01 +00:00
|
|
|
"sp-application-crypto/std",
|
2023-11-05 17:02:34 +00:00
|
|
|
"sp-io/std",
|
2023-01-20 16:00:18 +00:00
|
|
|
"sp-runtime/std",
|
2023-11-05 17:02:34 +00:00
|
|
|
"sp-core/std",
|
2023-01-20 16:00:18 +00:00
|
|
|
|
|
|
|
"frame-system/std",
|
|
|
|
"frame-support/std",
|
|
|
|
|
|
|
|
"serai-primitives/std",
|
|
|
|
"in-instructions-primitives/std",
|
2024-07-18 23:30:19 +00:00
|
|
|
"genesis-liquidity-primitives/std",
|
2023-01-28 06:47:13 +00:00
|
|
|
|
2023-10-19 10:22:21 +00:00
|
|
|
"coins-pallet/std",
|
2023-11-05 17:02:34 +00:00
|
|
|
"dex-pallet/std",
|
2023-10-11 03:55:59 +00:00
|
|
|
"validator-sets-pallet/std",
|
2024-07-18 23:30:19 +00:00
|
|
|
"genesis-liquidity-pallet/std",
|
2023-01-20 16:00:18 +00:00
|
|
|
]
|
|
|
|
default = ["std"]
|
2024-06-02 01:46:47 +00:00
|
|
|
|
|
|
|
# TODO
|
|
|
|
try-runtime = []
|