Skip to content
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

Add new FuelGasPriceProvider #1889

Draft
wants to merge 56 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
378dae8
Introduce type with dummy test
MitchTurner May 8, 2024
cbebddc
Replace test with historical gas price test
MitchTurner May 8, 2024
bb24903
Get test passing
MitchTurner May 8, 2024
fb58594
Refactor
MitchTurner May 8, 2024
dc193d5
Add more logic to when it looks up historical prices, add tests
MitchTurner May 8, 2024
4af3946
Update CHANGELOG
MitchTurner May 9, 2024
398884e
Remove extra traits
MitchTurner May 9, 2024
96f20d9
Rethink ports
MitchTurner May 9, 2024
86f49a7
Write test to show that increase is called in non-profitable case
MitchTurner May 9, 2024
672f6cb
Add algo abstraction
MitchTurner May 10, 2024
2e80dec
Remove index trait
MitchTurner May 10, 2024
1134fd5
Add test for capped price
MitchTurner May 10, 2024
a818b9b
Add updating logic
MitchTurner May 10, 2024
edf1cb3
WIP add Result to functions
MitchTurner May 10, 2024
a389a13
Add errors to all the failure modes
MitchTurner May 10, 2024
19a41ac
Start writing real algo
MitchTurner May 10, 2024
0f8edce
Introduce real `BlockFullness`
MitchTurner May 11, 2024
613c6bb
Switch `BlockFullness` to ints
MitchTurner May 11, 2024
4b141b5
Add some naive tests to algo impl with tests
MitchTurner May 11, 2024
c3bae38
Merge branch 'master' into feature/fuel-gas-price-provider
MitchTurner May 13, 2024
b693a2a
WIP add benches
MitchTurner May 13, 2024
e9bf624
Add WIP algo testing to its own crate for compilation reasons
MitchTurner May 13, 2024
ada5897
Beef up graph
MitchTurner May 13, 2024
473a1a1
Add missed stuff
MitchTurner May 13, 2024
8e5224d
Fix some maths
MitchTurner May 13, 2024
883c695
Cleanup a little
MitchTurner May 13, 2024
b92ba83
Add tuned p value
MitchTurner May 13, 2024
ca4568d
Add p value
MitchTurner May 14, 2024
a8cf8e1
Introduce "more realistic" noise to cost signal
MitchTurner May 14, 2024
c51e15e
Simplify algo to ignore block fullness and add d value
MitchTurner May 14, 2024
9119cc0
Tune some
MitchTurner May 14, 2024
509d64a
Add cap to gas-price change
MitchTurner May 15, 2024
0cfb486
Make a little more stable
MitchTurner May 15, 2024
1526069
Add new chart for execution vs da vs total, implement naive exec calc
MitchTurner May 24, 2024
cc7f5e8
Refactor to split da and exec gas prices and have storage for both
MitchTurner May 25, 2024
6df0036
Use algo in adapter
MitchTurner May 27, 2024
f4941b1
Remove benchmarking stuff
MitchTurner May 27, 2024
9cb29c7
Merge branch 'master' into feature/fuel-gas-price-provider
MitchTurner May 27, 2024
a7eff14
Remove buggy/unneeded while loop
MitchTurner May 27, 2024
0c3b0e0
Have gas price provider return result instead of option
MitchTurner May 27, 2024
6349835
Merge branch 'master' into feature/fuel-gas-price-provider
MitchTurner May 27, 2024
c03caf1
Fix typo
MitchTurner May 27, 2024
b22ab44
Lint toml file
MitchTurner May 27, 2024
1b70458
Reformat
MitchTurner May 27, 2024
a0f0a74
Clean up
MitchTurner May 27, 2024
ba03b02
Use old da_gas_price if not caught up
MitchTurner May 27, 2024
fd3fb69
Fix bug in when da gas prices are recalculated
MitchTurner May 28, 2024
102bdc9
Make da price more stepwise to account for fewer blocks on da layer
MitchTurner May 28, 2024
80835e6
Increase max change for da gas price because of lower frequency, fix …
MitchTurner May 28, 2024
8ca7fe6
Merge remote-tracking branch 'origin' into feature/fuel-gas-price-pro…
MitchTurner May 28, 2024
29a5025
Add some rough concept of determining a good p and d value
MitchTurner May 28, 2024
d45d246
Appease Clippy-sama
MitchTurner May 28, 2024
daa2c68
Merge branch 'master' into feature/fuel-gas-price-provider
MitchTurner May 29, 2024
f5986aa
Remove file, use anyhow error
MitchTurner May 31, 2024
7746674
Fix bug that was not caught by tests :/
MitchTurner Jun 1, 2024
d5f4509
Fix name
MitchTurner Jun 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Added
- [#1898](https://github.com/FuelLabs/fuel-core/pull/1898): Enforce increasing of the `Executor::VERSION` on each release.
- [#1889](https://github.com/FuelLabs/fuel-core/pull/1889): Add new `FuelGasPriceProvider`

### Changed

Expand Down