-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tx-payment): move transaction payment pallets off our substrate …
…fork
- Loading branch information
1 parent
69f1293
commit 7bcf4b9
Showing
32 changed files
with
4,159 additions
and
65 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[package] | ||
name = "pallet-transaction-payment" | ||
version = "4.0.0-dev" | ||
authors = ["Parity Technologies <admin@parity.io>", "Composable Developers"] | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
homepage = "https://substrate.io" | ||
repository = "https://github.com/paritytech/substrate/" | ||
description = "FRAME pallet to manage transaction payments" | ||
readme = "README.md" | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = [ | ||
"derive", | ||
] } | ||
scale-info = { default-features = false, version = "2.1.1", features = [ | ||
"derive", | ||
] } | ||
serde = { version = "1.0.136", optional = true } | ||
frame-support = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" } | ||
frame-system = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" } | ||
sp-core = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" } | ||
sp-io = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" } | ||
sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" } | ||
sp-std = { default-features = false, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" } | ||
|
||
[dev-dependencies] | ||
serde_json = "1.0.85" | ||
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.30" } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"codec/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"scale-info/std", | ||
"serde", | ||
"sp-core/std", | ||
"sp-io/std", | ||
"sp-runtime/std", | ||
"sp-std/std", | ||
] | ||
try-runtime = ["frame-support/try-runtime"] | ||
|
||
runtime-benchmarks = [ | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Transaction Payment Pallet | ||
|
||
This pallet provides the basic logic needed to pay the absolute minimum amount needed for a | ||
transaction to be included. This includes: | ||
- _weight fee_: A fee proportional to amount of weight a transaction consumes. | ||
- _length fee_: A fee proportional to the encoded length of the transaction. | ||
- _tip_: An optional tip. Tip increases the priority of the transaction, giving it a higher | ||
chance to be included by the transaction queue. | ||
|
||
Additionally, this pallet allows one to configure: | ||
- The mapping between one unit of weight to one unit of fee via [`Config::WeightToFee`]. | ||
- A means of updating the fee for the next block, via defining a multiplier, based on the | ||
final state of the chain at the end of the previous block. This can be configured via | ||
[`Config::FeeMultiplierUpdate`] | ||
|
||
License: Apache-2.0 |
Oops, something went wrong.