forked from moonbeam-foundation/moonbeam
-
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.
Use
transaction-payment
's congestion modifier for Ethereum base-fee (…
…moonbeam-foundation#1765) * Convert transaction-payments congestion modifier to replace Ethereum's base-fee * Remove outdated comment * fix precision bug * import * use saturating mul, improve doc * update fee parameters, add tests * make tests similar * add tests to all runtimes * fix tests * Add transaction-payment GenesisConfig to initialize its Multiplier * Fix some moonbase tests * Rename FixedGasPrice -> TransactionPaymentAsGasPrice * fmt * More ts test fixes * Fixes staking locks * Fix existential balance tests * Fix length fee tests * Query base_fee in createTransaction when needed * Fixes gasPrice for existential test * Fix deposit/fee check for multiple deposit * Fix merge issue * Use legacy txns for some tests that expect full gas_price to be charged * Bump gas price for tests * Update tests to reflect createTransfer default * Use constant for DEFAULT_TXN_MAX_BASE_FEE * Reflect txn values to reflect base_fee change * Prefer constant over literal value * Overhaul fee calculations in verifyBlockFees * Bound effectiveTipPerGas to 0 * Fix substrate-based fees * Overestimate delegation count weight hint * Use legacy txns and expect full gas_price to be paid as fee * Use constant for gas limit value * Start test case for max possible fee conditions * Clean up * Add runtime-upgrade test * prettier * First look at max possible fee * fix auto-compound delegation tx order flakiness * prettier * Remove cargo override (oops) * Hack to fix race condition * prettier * Use beforeEach for setting max multiplier * Test multiplier against Fibonacci contract * prettier * prettier * fmt * Various minor fixes * Add some fee multiplier scenarios * Don't use EXTRINSIC_BASE_WEIGHT in gas calc * Don't expect genesis value at each beforeAll * Bump expectation of CREATE cost * Slightly change length fee assumptions * Use higher gas price * Remove base_fee test * fmt * toml sort * Resolve compiler warnings * More compiler warning fixes * Fix receipt/status test * Remove irrelevant tests * Use maxDelegationCount for weight hint * Remove comment * Remove ignored tests * Move fee tests to integration_tests.rs * Re-remove ignored test * Move moonbeam runtime fee tests to integration_tests * Move moonriver runtime fee tests to integration_tests * fmt * Use base fee constant for gas price * Revert test name change... Co-authored-by: Nisheeth Barthwal <[email protected]> Co-authored-by: Crystalin <[email protected]> Co-authored-by: tgmichel <[email protected]>
- Loading branch information
Showing
42 changed files
with
890 additions
and
298 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
Oops, something went wrong.