mirror of
https://github.com/serai-dex/serai.git
synced 2024-11-17 01:17:36 +00:00
2ace339975
* Use Monero-compatible additional TX keys This still sends a fingerprinting flare up if you send to a subaddress which needs to be fixed. Despite that, Monero no should no longer fail to scan TXs from monero-serai regarding additional keys. Previously it failed becuase we supplied one key as THE key, and n-1 as additional. Monero expects n for additional. This does correctly select when to use THE key versus when to use the additional key when sending. That removes the ability for recipients to fingerprint monero-serai by receiving to a standard address yet needing to use an additional key. * Add tokens_primitives Moves OutInstruction from in-instructions. Turns Destination into OutInstruction. * Correct in-instructions DispatchClass * Add initial tokens pallet * Don't allow pallet addresses to equal identity * Add support for InInstruction::transfer Requires a cargo update due to modifications made to serai-dex/substrate. Successfully mints a token to a SeraiAddress. * Bind InInstructions to an amount * Add a call filter to the runtime Prevents worrying about calls to the assets pallet/generally tightens things up. * Restore Destination It was meged into OutInstruction, yet it didn't make sense for OutInstruction to contain a SeraiAddress. Also deletes the excessively dated Scenarios doc. * Split PublicKey/SeraiAddress Lets us define a custom Display/ToString for SeraiAddress. Also resolves an oddity where PublicKey would be encoded as String, not [u8; 32]. * Test burning tokens/retrieving OutInstructions Modularizes processor_coinUpdates into a shared testing utility. * Misc lint * Don't use PolkadotExtrinsicParams
111 lines
4.1 KiB
TOML
111 lines
4.1 KiB
TOML
[package]
|
|
name = "serai-runtime"
|
|
version = "0.1.0"
|
|
description = "Serai network node runtime, built over Substrate"
|
|
license = "AGPL-3.0-only"
|
|
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/runtime"
|
|
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
|
|
edition = "2021"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[dependencies]
|
|
hex-literal = { version = "0.3", optional = true }
|
|
|
|
codec = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
|
|
scale-info = { version = "2", default-features = false, features = ["derive"] }
|
|
|
|
sp-core = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-std = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-version = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-inherents = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-offchain = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-session = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-transaction-pool = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-block-builder = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-runtime = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
sp-api = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
sp-tendermint = { path = "../tendermint/primitives", default-features = false }
|
|
|
|
frame-system = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
frame-support = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
frame-executive = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
frame-benchmarking = { git = "https://github.com/serai-dex/substrate", default-features = false, optional = true }
|
|
|
|
serai-primitives = { path = "../serai/primitives", default-features = false }
|
|
|
|
pallet-balances = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
pallet-assets = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
pallet-transaction-payment = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
tokens-pallet = { path = "../tokens/pallet", default-features = false }
|
|
in-instructions-pallet = { path = "../in-instructions/pallet", default-features = false }
|
|
|
|
validator-sets-pallet = { path = "../validator-sets/pallet", default-features = false }
|
|
pallet-session = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
pallet-tendermint = { path = "../tendermint/pallet", default-features = false }
|
|
|
|
frame-system-rpc-runtime-api = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/serai-dex/substrate", default-features = false }
|
|
|
|
[build-dependencies]
|
|
substrate-wasm-builder = { git = "https://github.com/serai-dex/substrate" }
|
|
|
|
[features]
|
|
std = [
|
|
"codec/std",
|
|
"scale-info/std",
|
|
|
|
"sp-core/std",
|
|
"sp-std/std",
|
|
"sp-version/std",
|
|
"sp-inherents/std",
|
|
"sp-offchain/std",
|
|
"sp-session/std",
|
|
"sp-transaction-pool/std",
|
|
"sp-block-builder/std",
|
|
"sp-runtime/std",
|
|
"sp-api/std",
|
|
|
|
"sp-tendermint/std",
|
|
|
|
"frame-system/std",
|
|
"frame-support/std",
|
|
"frame-executive/std",
|
|
|
|
"serai-primitives/std",
|
|
|
|
"pallet-balances/std",
|
|
"pallet-transaction-payment/std",
|
|
|
|
"pallet-assets/std",
|
|
"tokens-pallet/std",
|
|
"in-instructions-pallet/std",
|
|
|
|
"validator-sets-pallet/std",
|
|
"pallet-session/std",
|
|
"pallet-tendermint/std",
|
|
|
|
"frame-system-rpc-runtime-api/std",
|
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
|
]
|
|
|
|
runtime-benchmarks = [
|
|
"hex-literal",
|
|
|
|
"sp-runtime/runtime-benchmarks",
|
|
|
|
"frame-system/runtime-benchmarks",
|
|
"frame-support/runtime-benchmarks",
|
|
"frame-benchmarking/runtime-benchmarks",
|
|
|
|
"pallet-balances/runtime-benchmarks",
|
|
"pallet-assets/runtime-benchmarks",
|
|
|
|
"pallet-tendermint/runtime-benchmarks",
|
|
]
|
|
|
|
default = ["std"]
|