Skip to content

add abci query for allowed fee asset ids and check against it on startup#1123

Closed
itamarreif wants to merge 40 commits intomainfrom
itamarreif/bridge-feequery
Closed

add abci query for allowed fee asset ids and check against it on startup#1123
itamarreif wants to merge 40 commits intomainfrom
itamarreif/bridge-feequery

Conversation

@itamarreif
Copy link
Contributor

Summary

Brief summary of the changes made, ie "what?"

Background

Brief background on why these changes were made, ie "why?"

Changes

  • List changes which were made.

Testing

How are these changes tested?

Metrics

  • List out metrics added by PR, delete section if none.

Breaking Changelist

  • Bulleted list of breaking changes, any notes on migration. Delete section if none.

Related Issues

Link any issues that are related, prefer full github links.

closes

itamarreif and others added 30 commits April 19, 2024 15:58
## Summary
implement `ethereum` module for astria-bridge-withdrawer.

## Background
required to read from the astria withdrawal evm contract.

## Changes
- implement `AstriaWithdrawer.sol` contract, put inside `ethereum/` dir
as a foundry project
- implement `ethereum` module which contains a `Watcher` that watches
the contract for `Withdrawal` events
- the events are sent to a `Batcher` which batches all events by block
number and sends a batch of events to a sequencer handler (to be
implemented later)

## Testing
unit tests

## Related Issues

 #913
…er and ics20 withdrawals (#1101)

## Summary
as title says

## Changes
- update AstriaWithdrawer contract to have separate methods for
sequencer and ics20 withdrawals `withdrawToSequencer` or
`withdrawToOriginChain`
- these methods now take different parameters and emit different events

## Testing
unit tests
)

## Summary
This adds the `Submitter` and merges in the `Watcher` related logic into
a single `WithdrawService`.

`Submitter` receives batches of rollup transactions that have been
converted into sequencer `Action`s from the `Batcher` and does the
following:
1. fetch the current nonce and create the `UnsignedTransaction`
2. sign the transaction
3. `broadcast_tx_commit`

If submission to the sequencer fails for any reason (either in `CheckTx`
or `DeliverTx`), the `Submitter` will stop, instead relying on the
service's recovery process to reconstruct the batch from rollup
transaction and resubmit.

## Background
Withdrawal batches need to be submitted to the sequencer.

## Changes
- Add `Submitter`
- Add logic for converting the events reaped from rollup to `Action`s
- a lot of random cleanup

## Testing
How are these changes tested?

## Metrics
- Some metrics we use in composer already since i copied over a good
amount of submission logic:
    - NONCE_FETCH_COUNT
    - NONCE_FETCH_FAILURE_COUNT
    - NONCE_FETCH_LATENCY
    - CURRENT_NONCE
    - SEQUENCER_SUBMISSION_FAILURE_COUNT
    - SEQUENCER_SUBMISSION_LATENCY

## Related Issues
Link any issues that are related, prefer full github links.

closes <!-- list any issues closed here -->

---------

Co-authored-by: elizabeth <elizabethjbinks@gmail.com>
@itamarreif itamarreif self-assigned this May 29, 2024
@github-actions github-actions bot added proto pertaining to the Astria Protobuf spec sequencer pertaining to the astria-sequencer crate labels May 29, 2024
@itamarreif itamarreif changed the base branch from itamarreif/bridge-scaffolding to main May 30, 2024 21:45
@github-actions github-actions bot added ci issues that are related to ci and github workflows conductor pertaining to the astria-conductor crate sequencer-relayer pertaining to the astria-sequencer-relayer crate composer pertaining to composer labels May 30, 2024
@itamarreif
Copy link
Contributor Author

closing this in favor of #1127 so that this won't depend on #984.

@itamarreif itamarreif closed this May 30, 2024
@itamarreif itamarreif deleted the itamarreif/bridge-feequery branch May 30, 2024 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bridging ci issues that are related to ci and github workflows composer pertaining to composer conductor pertaining to the astria-conductor crate proto pertaining to the Astria Protobuf spec sequencer pertaining to the astria-sequencer crate sequencer-relayer pertaining to the astria-sequencer-relayer crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments