Skip to content
Merged
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
8149513
add error messages
itamarreif Jun 11, 2024
5948dfe
fix service name
itamarreif Jun 12, 2024
5917967
Merge branch 'main' of github.com:astriaorg/astria into itamarreif/br…
itamarreif Jun 12, 2024
f6d2bae
fix name
itamarreif Jun 13, 2024
86a1a03
fix renaming
itamarreif Jun 13, 2024
3018c16
Merge branch 'main' of github.com:astriaorg/astria into itamarreif/br…
itamarreif Jun 13, 2024
ad934e7
startup refactor no tests
itamarreif Jun 15, 2024
45552bc
cleanup tests
itamarreif Jun 17, 2024
b8b5c4e
Merge branch 'main' of github.com:astriaorg/astria into itamarreif/br…
itamarreif Jun 17, 2024
6cdaa25
Merge branch 'main' of github.com:astriaorg/astria into itamarreif/br…
itamarreif Jun 18, 2024
9d83093
Merge branch 'main' of github.com:astriaorg/astria into itamarreif/br…
itamarreif Jun 18, 2024
2ff6227
Merge branch 'main' of github.com:astriaorg/astria into itamarreif/br…
itamarreif Jun 20, 2024
e57e7d9
Merge branch 'main' of github.com:astriaorg/astria into itamarreif/br…
itamarreif Jun 24, 2024
dc5109f
address review comments
itamarreif Jun 24, 2024
7daee50
fix clippy
itamarreif Jun 24, 2024
6370462
Merge branch 'main' of github.com:astriaorg/astria into itamarreif/br…
itamarreif Jun 26, 2024
f36ed88
wait for empty mempool
itamarreif Jun 26, 2024
db3531a
config fixes
itamarreif Jun 26, 2024
24ddada
add pending nonce to submitter
itamarreif Jun 27, 2024
ea1692a
Merge branch 'main' of github.com:astriaorg/astria into itamarreif/br…
itamarreif Jul 10, 2024
0b01b62
Merge branch 'main' of github.com:astriaorg/astria into itamarreif/br…
itamarreif Jul 12, 2024
735891c
update chart stuff
itamarreif Jul 12, 2024
db9108e
remove unit tests
itamarreif Jul 12, 2024
bbcd05f
make the crab happy
itamarreif Jul 12, 2024
52961b6
move withdrawl action construction to contracts crate
SuperFluffy Jul 15, 2024
94490d3
update CLI to use crate functionality
SuperFluffy Jul 15, 2024
b414c8f
allow getting sequencer or ics20 or both
SuperFluffy Jul 15, 2024
72e88e2
fix bridge withdrawer
SuperFluffy Jul 15, 2024
60386e6
unbreak ics20 withdrawals
SuperFluffy Jul 15, 2024
ea3b3cd
clippy
SuperFluffy Jul 15, 2024
a81bcb8
clean up grpc connection
SuperFluffy Jul 15, 2024
9ab7791
clean up check for empty
SuperFluffy Jul 15, 2024
1c61e3f
some comments, fixed error message
SuperFluffy Jul 15, 2024
ab314f9
add todos
SuperFluffy Jul 15, 2024
71145f3
Merge branch 'superfluffy/share-code-between-cli-and-service' into it…
SuperFluffy Jul 15, 2024
fc340e8
Merge branch 'main' into itamarreif/bridge-withdrawer/nonce-fix
SuperFluffy Jul 15, 2024
57874c4
unfix toml
SuperFluffy Jul 15, 2024
71054aa
remove unused test code
SuperFluffy Jul 15, 2024
05f5df8
increase timeout for brige withdrawer
SuperFluffy Jul 15, 2024
462f55d
fix charts
SuperFluffy Jul 15, 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
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Smoke Test Environment
timeout-minutes: 5
timeout-minutes: 10
run: |
TAG=sha-$(git rev-parse --short HEAD)
just deploy cluster
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion charts/evm-bridge-withdrawer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.2
version: 0.0.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/evm-bridge-withdrawer/templates/configmaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ data:
{{- if not .Values.global.dev }}
ASTRIA_BRIDGE_WITHDRAWER_MIN_EXPECTED_FEE_ASSET_BALANCE: "{{ .Values.config.minExpectedFeeAssetBalance }}"
{{- else }}
ASTRIA_BRIDGE_WITHDRAWER_SEQUENCER_GRPC_ENDPOINT: "{{ .Values.config.sequencerGrpcEndpoint }}"
{{- end }}
---
{{- if not .Values.secretProvider.enabled }}
Expand Down
1 change: 1 addition & 0 deletions charts/evm-bridge-withdrawer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ images:
devTag: latest

config:
sequencerGrpcEndpoint: ""
sequencerCometbftEndpoint: ""
sequencerChainId: ""
sequencerAddressPrefix: "astria"
Expand Down
7 changes: 6 additions & 1 deletion crates/astria-bridge-withdrawer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,15 @@ tracing = { workspace = true }
tryhard = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "signal"] }
tokio-util = { workspace = true }
tonic = { workspace = true }

astria-bridge-contracts = { path = "../astria-bridge-contracts" }
astria-build-info = { path = "../astria-build-info", features = ["runtime"] }
astria-core = { path = "../astria-core", features = ["serde", "server"] }
astria-core = { path = "../astria-core", features = [
"serde",
"server",
"client",
] }
astria-eyre = { path = "../astria-eyre" }
config = { package = "astria-config", path = "../astria-config" }
sequencer-client = { package = "astria-sequencer-client", path = "../astria-sequencer-client", features = [
Expand Down
4 changes: 4 additions & 0 deletions crates/astria-bridge-withdrawer/local.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ ASTRIA_BRIDGE_WITHDRAWER_PRETTY_PRINT=false
# `ASTRIA_BRIDGE_WITHDRAWER_PRETTY_PRINT` is set to `true`.
NO_COLOR=

# The sequencer application gRPC service used for fetching the pending nonce.
# 127.0.0.1:8080 is the default socket address for its gRPC server.
ASTRIA_BRIDGE_WITHDRAWER_SEQUENCER_GRPC_ENDPOINT="http://127.0.0.1:8080"

# Address of cometbft/tendermint to request new block heights.
# 127.0.0.1:26657 is the default socket address at which cometbft
# serves RPCs.
Expand Down
16 changes: 3 additions & 13 deletions crates/astria-bridge-withdrawer/src/bridge_withdrawer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ impl BridgeWithdrawer {
ethereum_rpc_endpoint,
rollup_asset_denomination,
sequencer_bridge_address,
sequencer_grpc_endpoint,
..
} = cfg;

Expand All @@ -92,6 +93,7 @@ impl BridgeWithdrawer {
sequencer_chain_id,
sequencer_cometbft_endpoint: sequencer_cometbft_endpoint.clone(),
sequencer_bridge_address,
sequencer_grpc_endpoint: sequencer_grpc_endpoint.clone(),
expected_fee_asset: fee_asset_denomination,
}
.build()
Expand All @@ -104,6 +106,7 @@ impl BridgeWithdrawer {
shutdown_token: shutdown_handle.token(),
startup_handle: startup_handle.clone(),
sequencer_cometbft_endpoint,
sequencer_grpc_endpoint,
sequencer_key_path,
sequencer_address_prefix: sequencer_address_prefix.clone(),
state: state.clone(),
Expand Down Expand Up @@ -404,16 +407,3 @@ pub(crate) fn flatten_result<T>(res: Result<eyre::Result<T>, JoinError>) -> eyre
Err(err) => Err(err).wrap_err("task panicked"),
}
}

#[cfg(test)]
/// Constructs an [`Address`] prefixed by `"astria"`.
#[cfg(test)]
pub(crate) fn astria_address(
array: [u8; astria_core::primitive::v1::ADDRESS_LEN],
) -> astria_core::primitive::v1::Address {
astria_core::primitive::v1::Address::builder()
.array(array)
.prefix("astria")
.try_build()
.unwrap()
}
Loading