refactor: Transaction-Payment module (#3816)

* Initial draft that compiles

* Extract payment stuff from balances

* Extract multiplier update stuff from system

* Some fixes.

* Update len-fee as well

* some review comments.

* Remove todo

* bump
This commit is contained in:
Kian Paimani
2019-10-17 14:21:32 +02:00
committed by GitHub
parent 1711483fb6
commit 183c188111
59 changed files with 784 additions and 596 deletions
+22
View File
@@ -2357,6 +2357,7 @@ dependencies = [
"srml-support 2.0.0",
"srml-system 2.0.0",
"srml-timestamp 2.0.0",
"srml-transaction-payment 2.0.0",
"structopt 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-authority-discovery 2.0.0",
"substrate-basic-authorship 2.0.0",
@@ -2403,6 +2404,7 @@ dependencies = [
"srml-support 2.0.0",
"srml-system 2.0.0",
"srml-timestamp 2.0.0",
"srml-transaction-payment 2.0.0",
"srml-treasury 2.0.0",
"substrate-executor 2.0.0",
"substrate-primitives 2.0.0",
@@ -2488,6 +2490,7 @@ dependencies = [
"srml-system 2.0.0",
"srml-system-rpc-runtime-api 2.0.0",
"srml-timestamp 2.0.0",
"srml-transaction-payment 2.0.0",
"srml-treasury 2.0.0",
"srml-utility 2.0.0",
"substrate-authority-discovery-primitives 2.0.0",
@@ -2552,6 +2555,7 @@ dependencies = [
"srml-support 2.0.0",
"srml-system 2.0.0",
"srml-timestamp 2.0.0",
"srml-transaction-payment 2.0.0",
"substrate-client 2.0.0",
"substrate-consensus-babe-primitives 2.0.0",
"substrate-offchain-primitives 2.0.0",
@@ -2579,6 +2583,7 @@ dependencies = [
"srml-support 2.0.0",
"srml-system 2.0.0",
"srml-timestamp 2.0.0",
"srml-transaction-payment 2.0.0",
"srml-treasury 2.0.0",
"substrate-client 2.0.0",
"substrate-executor 2.0.0",
@@ -3988,6 +3993,7 @@ dependencies = [
"sr-std 2.0.0",
"srml-support 2.0.0",
"srml-system 2.0.0",
"srml-transaction-payment 2.0.0",
"substrate-keyring 2.0.0",
"substrate-primitives 2.0.0",
]
@@ -4138,6 +4144,7 @@ dependencies = [
"srml-indices 2.0.0",
"srml-support 2.0.0",
"srml-system 2.0.0",
"srml-transaction-payment 2.0.0",
"substrate-primitives 2.0.0",
]
@@ -4490,6 +4497,20 @@ dependencies = [
"substrate-primitives 2.0.0",
]
[[package]]
name = "srml-transaction-payment"
version = "2.0.0"
dependencies = [
"parity-scale-codec 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)",
"sr-io 2.0.0",
"sr-primitives 2.0.0",
"sr-std 2.0.0",
"srml-balances 2.0.0",
"srml-support 2.0.0",
"srml-system 2.0.0",
"substrate-primitives 2.0.0",
]
[[package]]
name = "srml-treasury"
version = "2.0.0"
@@ -4608,6 +4629,7 @@ dependencies = [
"sr-primitives 2.0.0",
"srml-balances 2.0.0",
"srml-system 2.0.0",
"srml-transaction-payment 2.0.0",
"substrate-bip39 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
"substrate-primitives 2.0.0",
"tiny-bip39 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)",