Skip to content

chore(core): Implement Protobuf trait for tx actions#1320

Merged
ethanoroshiba merged 3 commits intomainfrom
ENG-654/impl_protobuf
Aug 1, 2024
Merged

chore(core): Implement Protobuf trait for tx actions#1320
ethanoroshiba merged 3 commits intomainfrom
ENG-654/impl_protobuf

Conversation

@ethanoroshiba
Copy link
Contributor

Summary

Implemented the Protobuf trait for all TX Actions and variants.

Background

Action and variants are refined types from generated Protobuf code, but did not implement the Protobuf trait. This change is to standardize the types Error and Raw across Action, as well as the methods to_raw(), into_raw(), try_from_raw(), and try_from_raw_ref().

Changes

  • Implemented Protobuf trait, types, and necessary functions for Action and all of its variants.
  • Deleted redundant functions which took ownership, but kept those which prioritized cost over their ref counterparts.

Testing

Passing all tests.

Related Issues

closes #1307

@github-actions github-actions bot added the sequencer pertaining to the astria-sequencer crate label Jul 31, 2024
@ethanoroshiba ethanoroshiba marked this pull request as ready for review July 31, 2024 17:41
@ethanoroshiba ethanoroshiba requested a review from a team as a code owner July 31, 2024 17:41
@ethanoroshiba ethanoroshiba requested a review from noot July 31, 2024 17:41
Copy link
Contributor

@Fraser999 Fraser999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor, non-blocking comment.

ethanoroshiba and others added 2 commits August 1, 2024 14:07
Co-authored-by: Fraser Hutchison <190532+Fraser999@users.noreply.github.com>
@ethanoroshiba ethanoroshiba enabled auto-merge August 1, 2024 19:09
@ethanoroshiba ethanoroshiba added this pull request to the merge queue Aug 1, 2024
Merged via the queue into main with commit be139d5 Aug 1, 2024
@ethanoroshiba ethanoroshiba deleted the ENG-654/impl_protobuf branch August 1, 2024 19:19
steezeburger added a commit that referenced this pull request Aug 2, 2024
* main:
  chore(core): Implement Protobuf trait for tx actions (#1320)
  refactor(sequencer): remove global state (#1317)
  refactor(sequencer): move asset state methods to asset module (#1313)
  feat(sequencer, core): Add fee reporting (#1305)
  chore(bridge-withdrawer): cleanup nonce handling (#1292)
  fix(charts, bridge): fix ci test (#1310)
ethanoroshiba added a commit that referenced this pull request Aug 2, 2024
## Summary
Implemented the `Protobuf` trait for all TX `Action`s and variants.

## Background
`Action` and variants are refined types from generated Protobuf code,
but did not implement the `Protobuf` trait. This change is to
standardize the types `Error` and `Raw` across `Action`, as well as the
methods `to_raw()`, `into_raw()`, `try_from_raw()`, and
`try_from_raw_ref()`.

## Changes
- Implemented `Protobuf` trait, types, and necessary functions for
`Action` and all of its variants.
- Deleted redundant functions which took ownership, but kept those which
prioritized cost over their `ref` counterparts.

## Testing
Passing all tests.

## Related Issues
closes #1307

---------

Co-authored-by: Fraser Hutchison <190532+Fraser999@users.noreply.github.com>
ethanoroshiba added a commit that referenced this pull request Aug 13, 2024
## Summary
Implemented the `Protobuf` trait for all TX `Action`s and variants.

## Background
`Action` and variants are refined types from generated Protobuf code,
but did not implement the `Protobuf` trait. This change is to
standardize the types `Error` and `Raw` across `Action`, as well as the
methods `to_raw()`, `into_raw()`, `try_from_raw()`, and
`try_from_raw_ref()`.

## Changes
- Implemented `Protobuf` trait, types, and necessary functions for
`Action` and all of its variants.
- Deleted redundant functions which took ownership, but kept those which
prioritized cost over their `ref` counterparts.

## Testing
Passing all tests.

## Related Issues
closes #1307

---------

Co-authored-by: Fraser Hutchison <190532+Fraser999@users.noreply.github.com>
ethanoroshiba added a commit that referenced this pull request Aug 14, 2024
## Summary
Implemented the `Protobuf` trait for all TX `Action`s and variants.

## Background
`Action` and variants are refined types from generated Protobuf code,
but did not implement the `Protobuf` trait. This change is to
standardize the types `Error` and `Raw` across `Action`, as well as the
methods `to_raw()`, `into_raw()`, `try_from_raw()`, and
`try_from_raw_ref()`.

## Changes
- Implemented `Protobuf` trait, types, and necessary functions for
`Action` and all of its variants.
- Deleted redundant functions which took ownership, but kept those which
prioritized cost over their `ref` counterparts.

## Testing
Passing all tests.

## Related Issues
closes #1307

---------

Co-authored-by: Fraser Hutchison <190532+Fraser999@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sequencer pertaining to the astria-sequencer crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Protobuf for actions and variants

2 participants