feat: port fee payer policy overrides from mppx#342#229
Merged
brendanjryan merged 5 commits intotempoxyz:mainfrom Apr 20, 2026
Merged
feat: port fee payer policy overrides from mppx#342#229brendanjryan merged 5 commits intotempoxyz:mainfrom
brendanjryan merged 5 commits intotempoxyz:mainfrom
Conversation
…mits for fee sponsorship
…urned from make_cosign_method; undo superfluous diff in test_validate_transaction_transfers_rejects_fee_payer_gas_limit_above_max
…dd check that max priority fee is lower than max fee overall; change defaults to align with what's in mppx
brendanjryan
approved these changes
Apr 19, 2026
| const MAX_FEE_PER_GAS_DEFAULT: u128 = 100_000_000_000; | ||
| const MAX_PRIORITY_FEE_PER_GAS_DEFAULT: u128 = 10_000_000_000; | ||
| const MAX_VALIDITY_WINDOW_SECS_DEFAULT: u64 = 15 * 60; | ||
| const MAX_TOTAL_FEE_DEFAULT: u128 = 50_000_000_000_000_000; // 0.05 ETH — lower than max_gas * max_fee_per_gas |
Collaborator
There was a problem hiding this comment.
nit: technically this isn't ETH
Contributor
Author
There was a problem hiding this comment.
Thanks, fixed. Force of habit 😄
brendanjryan
approved these changes
Apr 20, 2026
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports mppx#342. Adds
FeePayerPolicyandFeePayerPolicyOverridetypes plusChargeMethod::with_fee_payer_policy_override()so servers can tune fee-sponsorship policy per call:max_gas,max_fee_per_gas,max_priority_fee_per_gas,max_total_fee,max_validity_window_seconds.Bundled into a single PR per request from @brendanjryan.