forked from paritytech/substrate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate
pallet-transaction-payment
to new pallet attribute macro (p…
…aritytech#9087) * Migrate pallet-transaciont-payment to new pallet attribute macro Signed-off-by: koushiro <[email protected]> * remove generic from genesis config * fix test * fix tests * fix deprecated * fix tests Signed-off-by: koushiro <[email protected]> Co-authored-by: thiolliere <[email protected]> Co-authored-by: Keith Yeung <[email protected]>
- Loading branch information
1 parent
bab9dec
commit df50122
Showing
16 changed files
with
185 additions
and
128 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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 |
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
Oops, something went wrong.