forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 118
feat(ETH): eip1559 gas fee estimator and rpcs #2051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
cde2dbd
add simple eip1559 gas price estimator
85e8fb2
change fn get_eip1559_gas_price to async to use as nested call
ca60f7d
add rpc to start/stop gas fee estimator loop and get estimated values
6788529
fix fmt
976628b
add test calls to infura and blocknative gas price prediction api
ee85d20
refactor on review notes:
9e34949
Merge branch 'dev' into eip1559-gas-fee-estimate
42316c1
fix fmt
aa8660c
Implement proposal.
3e69a31
Refactor a bit.
2031b73
remove unused fee estimator errors
c87658a
rename get esimated fee rpc
61a80a9
add doc comments
46ceacc
rename gas fee estimation fn like in eip1559 terms
3413447
refactor fee estimator error dsc
9347f10
Merge branch 'dev' into eip1559-gas-fee-estimate
1b4180f
remove discontinued gas station call, use join to call alternate gas …
8750b6b
fix fmt
504657e
remove gas station remnants
fc4ca71
refactor to support typed txns (used test eth dependency repo), renam…
00f7f41
add eip1559 fee support to eth withdraw (still use test eth tx repo)
65a2174
add swap txfee policy
a56d2c3
refactor to reuse tx builder code
8ebb655
add eip1559 fee to swap txns (pre-TPU)
0743471
add get_swap_transaction_fee_policy rpc for eth coin
9081aa5
refactor get_estimated_fees rpc to use lp_coinfind_or_err
acd048b
fix fmt
d7de499
fix estimated base fee adjustment
9086052
always use high priority fee for gas estimation
90e585b
add different eth gas limit consts for swap operations
61b8fdc
add include_refund_fee param to show only required fee for lock funds…
220db97
fix get_eip1559_gas_fee after rebase
24f7644
fix clippy & fmt, fix missed param in get_sender_trade_fee tests
25d80f4
fix updated fn get_sender_trade_fee() gas limit calc and tests
431c5ce
fix gas limit consts for watcher; swap_watcher_tests with eth erc20 a…
67214d2
add eth type1 and type2 support in signed_tx_from_web3_tx fn
dae6645
fix fmt
df5daa2
fix parse web3 tx type0
098eaa2
add tests for type0 and type2 eth swap
86a8172
fix fmt
a62d7a4
add handling of errors from updated mm2-parity-ethereum lib
8230a89
refactor TransactionRequest creation
90f362a
add eth wasm test to sign priority fee tx
27a9743
Merge branch 'dev' into eip1559-gas-fee-estimate
b21a186
fix comment
bc67d5b
refactor fee per gas determination
a16f2ae
refactor signed_tx_from_web3_tx fn using tx builder
66f8ff7
more refactor signed_tx_from_web3_tx fn: use match
0ec27e9
refactor getting gas price and fee per gas
e473517
fix comment
7fa8d1f
fix due to changes in gas api provider response
a13fbfb
moved FeeEstimatorContext to eth platform coin
0435273
added comment
d607ae3
added memo comments
342d3f4
fix updated eth and web3 lib dependency urls
531f1af
refactor on review notes
789ec76
refactor on review notes:
d59387c
Merge branch 'dev' into eip1559-gas-fee-estimate
1793bb7
fix fmt
086a711
fix clippy err
7229e34
add 'gas_fee_estimator' param to 'coins' conf
48db16c
add 'max_eth_tx_type' to coins file and check tx type on signing
f0371e5
refactor estimated gas fee code to use wei internally (to make it lik…
b2e0677
add eip1559 fee per gas option to sign_raw_transaction rpc
8cb846c
refactor gas limit constants
fffe24a
refactor swap code to add named constants indicating when refund fee …
ebe4cad
fix getting 'max_eth_tx_type' to look for it also in token conf to al…
54b60a6
add check result for wasm sign raw tx test
898a89d
Merge branch 'dev' into eip1559-gas-fee-estimate
9169bcb
Merge branch 'dev' into eip1559-gas-fee-estimate
b3a84d6
Merge branch 'dev' into eip1559-gas-fee-estimate
7cbe03d
fix build err
9de585b
fix eip1559 trezor signature parsing
c516fd1
fix fmt
902c0e3
refactor init_fee_estimator
dbe8de0
Merge branch 'dev' into eip1559-gas-fee-estimate
20d16d9
fix review notes
a785274
move eip1559 swap policy methods to a trait
1cbf2f2
return swap policy docker tests (lost in merge)
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.