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

auction: ActionDutchAuction* validation and component impl #4220

Merged
merged 24 commits into from
Apr 17, 2024

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Apr 16, 2024

Describe your changes

This PR adds validation logic for:

  • ActionDutchAuctionSchedule
  • ActionDutchAuctionEnd
  • ActionDutchAuctionWithdraw

and a component implementation, on a model similar-but-simpler to the DEX:

  • a DutchAuctionManager extension trait defines a crate-level API to effect a validated action
  • an Inner internal implementation manages writing to the state
  • internal data can be accessed via a general AuctionStoreRead trait which manage tentatively deserializing raw auction state (wkt Any) into a useful domain type.

Issue ticket number and link

#4211

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    Those actions are not integrated in our transaction system, our application impl.

@erwanor erwanor added the A-auction Area: Relates to the auction component label Apr 16, 2024
@erwanor erwanor added this to the Sprint 4 milestone Apr 16, 2024
@erwanor erwanor force-pushed the erwan/4211_validate_actions branch from 47859fa to 3c29ba3 Compare April 16, 2024 17:59
@erwanor erwanor force-pushed the erwan/4211_validate_actions branch from 1d0bf7d to 8347506 Compare April 17, 2024 13:26
@erwanor erwanor changed the title auction: ActionDutchAuction* validation auction: ActionDutchAuction* validation and component impl Apr 17, 2024
@erwanor erwanor marked this pull request as ready for review April 17, 2024 14:40
Copy link
Contributor

@cratelyn cratelyn left a comment

Choose a reason for hiding this comment

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

this is very well done, as evidenced by only having rather subjective comments to offer.

i've marked optional "take it or leave it" comments as such, and noted one place where we are making a consensus-breaking change.

great job!

@erwanor erwanor merged commit ea8cf1a into main Apr 17, 2024
8 checks passed
@erwanor erwanor deleted the erwan/4211_validate_actions branch April 17, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-auction Area: Relates to the auction component
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants