Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Sync gas price #144

Open
wants to merge 40 commits into
base: snowbridge
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ad01996
gas price feature
claravanstaden May 1, 2024
e9735cd
readme
claravanstaden May 1, 2024
b75111d
adds execution header to update
claravanstaden May 2, 2024
7060b73
Adds gas provider to outbound queue
claravanstaden May 2, 2024
ac86a8b
adds impl
claravanstaden May 2, 2024
ad2682b
progress
claravanstaden May 2, 2024
aad2f35
remove crate
claravanstaden May 2, 2024
b80eefe
remove upstream workflow file
claravanstaden May 2, 2024
c898b6d
fix optional dep
claravanstaden May 2, 2024
1cfc972
unused variable
claravanstaden May 3, 2024
1ab639c
remove option
claravanstaden May 4, 2024
2ec70ec
Merge branch 'snowbridge' into sync-gas-price
yrong Jun 11, 2024
89b44a6
Fix compile
yrong Jun 11, 2024
ab62865
Update json fixture
yrong Jun 11, 2024
649263a
Fix compile & more refactoring
yrong Jun 11, 2024
803ff50
Rename event
yrong Jun 11, 2024
5bd8871
More fix
yrong Jun 11, 2024
bc5c70f
Fix format
yrong Jun 11, 2024
e12c785
Merge branch 'snowbridge' into sync-gas-price
yrong Jun 11, 2024
fe27347
Use twap price
yrong Jun 11, 2024
ec203e6
Update test fixture
yrong Jun 12, 2024
6ab08ba
Improve ci workflow
yrong Jun 12, 2024
8001239
Use a simple EMA instead
yrong Jun 12, 2024
2870845
Fix format
yrong Jun 12, 2024
bcf1bb9
Fix test
yrong Jun 12, 2024
98e420f
Fix test
yrong Jun 12, 2024
4d396ee
Format
yrong Jun 12, 2024
a43de4d
Fix format
yrong Jun 12, 2024
f27eada
Fix ci
yrong Jun 12, 2024
bc7ee16
Fix taplo format
yrong Jun 12, 2024
1b62893
Update template and test fixtures
yrong Jun 12, 2024
b34fbf2
Initialize with DefaultFeePerGas
yrong Jun 13, 2024
61115de
Fix tests
yrong Jun 13, 2024
66ebf79
Make ScalingFactor dynamically adjusted
yrong Jun 17, 2024
427b8de
Update price only forward
yrong Jun 17, 2024
9745788
Update algo with docs
yrong Jun 23, 2024
7c41ad4
Fix breaking tests
yrong Jun 24, 2024
efc272a
Merge branch 'snowbridge' into sync-gas-price
yrong Jun 26, 2024
c498edf
More tests
yrong Jun 26, 2024
46733eb
Improve gas price implementation (#156)
vgeddes Jul 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ members = [
"bridges/relays/utils",
"bridges/snowbridge/pallets/ethereum-client",
"bridges/snowbridge/pallets/ethereum-client/fixtures",
"bridges/snowbridge/pallets/gas-price",
"bridges/snowbridge/pallets/inbound-queue",
"bridges/snowbridge/pallets/inbound-queue/fixtures",
"bridges/snowbridge/pallets/outbound-queue",
Expand Down
26 changes: 24 additions & 2 deletions bridges/snowbridge/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bridges/snowbridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resolver = "2"
members = [
"pallets/ethereum-client",
"pallets/ethereum-client/fixtures",
"pallets/gas-price",
"pallets/inbound-queue",
"pallets/inbound-queue/fixtures",
"pallets/outbound-queue",
Expand Down
4 changes: 4 additions & 0 deletions bridges/snowbridge/pallets/ethereum-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ sp-io = { path = "../../../../substrate/primitives/io", default-features = false
snowbridge-core = { path = "../../primitives/core", default-features = false }
snowbridge-ethereum = { path = "../../primitives/ethereum", default-features = false }
snowbridge-pallet-ethereum-client-fixtures = { path = "fixtures", default-features = false, optional = true }
snowbridge-pallet-gas-price = { path = "../gas-price", default-features = false }
primitives = { package = "snowbridge-beacon-primitives", path = "../../primitives/beacon", default-features = false }
static_assertions = { version = "1.1.0", default-features = false }
pallet-migrations = { path = "../../../../substrate/frame/migrations", default-features = false }
Expand Down Expand Up @@ -66,6 +67,7 @@ std = [
"snowbridge-core/std",
"snowbridge-ethereum/std",
"snowbridge-pallet-ethereum-client-fixtures/std",
"snowbridge-pallet-gas-price/std",
"sp-core/std",
"sp-io/std",
"sp-runtime/std",
Expand All @@ -80,11 +82,13 @@ runtime-benchmarks = [
"pallet-migrations/runtime-benchmarks",
"snowbridge-core/runtime-benchmarks",
"snowbridge-pallet-ethereum-client-fixtures/runtime-benchmarks",
"snowbridge-pallet-gas-price/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
try-runtime = [
"frame-support/try-runtime",
"frame-system/try-runtime",
"pallet-migrations/try-runtime",
"snowbridge-pallet-gas-price/try-runtime",
"sp-runtime/try-runtime",
]
Loading
Loading