Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Migrate pallet-transaction-payment to new pallet attribute macro #9087

Merged
9 commits merged into from
Jun 25, 2021
Merged
18 changes: 10 additions & 8 deletions frame/transaction-payment/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,31 @@ targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.101", optional = true }
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }
smallvec = "1.4.1"

sp-core = { version = "3.0.0", path = "../../primitives/core", default-features = false }
sp-io = { version = "3.0.0", path = "../../primitives/io", default-features = false }
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" }
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" }

frame-support = { version = "3.0.0", default-features = false, path = "../support" }
frame-system = { version = "3.0.0", default-features = false, path = "../system" }
smallvec = "1.4.1"
sp-io = { version = "3.0.0", path = "../../primitives/io", default-features = false }
sp-core = { version = "3.0.0", path = "../../primitives/core", default-features = false }

[dev-dependencies]
serde_json = "1.0.41"
pallet-balances = { version = "3.0.0", path = "../balances" }
sp-storage = { version = "3.0.0", path = "../../primitives/storage" }
pallet-balances = { version = "3.0.0", path = "../balances" }

[features]
default = ["std"]
std = [
"serde",
"codec/std",
"sp-std/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
"sp-std/std",
"frame-support/std",
"frame-system/std",
"sp-io/std",
"sp-core/std",
]
try-runtime = ["frame-support/try-runtime"]
8 changes: 4 additions & 4 deletions frame/transaction-payment/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Transaction Payment Module
# Transaction Payment Pallet

This module provides the basic logic needed to pay the absolute minimum amount needed for a
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 module allows one to configure:
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
License: Apache-2.0
7 changes: 4 additions & 3 deletions frame/transaction-payment/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0"
homepage = "https://substrate.dev"
repository = "https://github.com/paritytech/substrate/"
description = "RPC interface for the transaction payment module."
description = "RPC interface for the transaction payment pallet."
readme = "README.md"

[package.metadata.docs.rs]
Expand All @@ -17,9 +17,10 @@ codec = { package = "parity-scale-codec", version = "2.0.0" }
jsonrpc-core = "15.1.0"
jsonrpc-core-client = "15.1.0"
jsonrpc-derive = "15.1.0"

sp-api = { version = "3.0.0", path = "../../../primitives/api" }
sp-blockchain = { version = "3.0.0", path = "../../../primitives/blockchain" }
sp-core = { version = "3.0.0", path = "../../../primitives/core" }
sp-rpc = { version = "3.0.0", path = "../../../primitives/rpc" }
sp-runtime = { version = "3.0.0", path = "../../../primitives/runtime" }
sp-api = { version = "3.0.0", path = "../../../primitives/api" }
sp-blockchain = { version = "3.0.0", path = "../../../primitives/blockchain" }
pallet-transaction-payment-rpc-runtime-api = { version = "3.0.0", path = "./runtime-api" }
4 changes: 2 additions & 2 deletions frame/transaction-payment/rpc/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
RPC interface for the transaction payment module.
RPC interface for the transaction payment pallet.

License: Apache-2.0
License: Apache-2.0
4 changes: 2 additions & 2 deletions frame/transaction-payment/rpc/runtime-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
sp-api = { version = "3.0.0", default-features = false, path = "../../../../primitives/api" }
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"] }
sp-api = { version = "3.0.0", default-features = false, path = "../../../../primitives/api" }
sp-runtime = { version = "3.0.0", default-features = false, path = "../../../../primitives/runtime" }
pallet-transaction-payment = { version = "3.0.0", default-features = false, path = "../../../transaction-payment" }

[features]
default = ["std"]
std = [
"sp-api/std",
"codec/std",
"sp-api/std",
"sp-runtime/std",
"pallet-transaction-payment/std",
]
4 changes: 2 additions & 2 deletions frame/transaction-payment/rpc/runtime-api/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Runtime API definition for transaction payment module.
Runtime API definition for transaction payment pallet.

License: Apache-2.0
License: Apache-2.0
2 changes: 1 addition & 1 deletion frame/transaction-payment/rpc/runtime-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//! Runtime API definition for transaction payment module.
//! Runtime API definition for transaction payment pallet.

#![cfg_attr(not(feature = "std"), no_std)]

Expand Down
2 changes: 1 addition & 1 deletion frame/transaction-payment/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//! RPC interface for the transaction payment module.
//! RPC interface for the transaction payment pallet.

use std::sync::Arc;
use std::convert::TryInto;
Expand Down
Loading