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

Clean attestation pallet #1006

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Conversation

JesseAbram
Copy link
Member

Just a few things I saw, feel free to close if not the vibe

@JesseAbram JesseAbram requested a review from ameba23 August 14, 2024 16:57
Copy link
Contributor

@ameba23 ameba23 left a comment

Choose a reason for hiding this comment

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

Thank you. I think there might be other things to tidy up - a lot of stuff in the mock runtime together with dependencies were copied from the registry pallet. and probably a lot of it isn't needed.

@ameba23 ameba23 merged commit d9d4a80 into peg/attestation-pallet Aug 15, 2024
12 of 14 checks passed
@ameba23 ameba23 deleted the jesse/attestation-pallet branch August 15, 2024 06:24
ameba23 added a commit that referenced this pull request Aug 21, 2024
* WIP attestation pallet

* Improve checks for attest extrinsic

* Give constant weight just to get it to compile (with warning)

* Attempt to write mock runtime

* Write trivial test to show mock setup works

* Clean attestation pallet (#1006)

* fmt

* Make an attestation in the test

* Lockfile

* Taplo

* Comments

* Make quote input constructor generic, rm authorship pallet

* Taplo

* Add benchmarks

* Taplo

* Add pallet to chain runtime

* Rm unused import

* Improve benchmark

* Generate weights

* Include weights in runtime

* Update metadata

* Submit the attest extrinsic to test the attestation pallet

* Fixes for submitting extrinsic

* Update attestation endpoint in preparation for using the propagation pallet to call it

* Propagation pallet propagates attestation requests

* Decode input from propagation pallet

* Add initial attestation requests to genesis config

* Add initial attestation requests to chainspec

* Pull chain metadata

* Make mock attestation request at block 3

* Fix test

* Tidy

* Update crates/threshold-signature-server/src/attestation/api.rs

Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>

* Extra check in attestation pallet benchmarks

* Improve error message for unexpected attestation

* Use actual weight

* Add endpoint to node service

* Comments and minor changed following review

* Changelog

---------

Co-authored-by: JesseAbram <33698952+JesseAbram@users.noreply.github.com>
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants