Skip to content

feat: add presets and ssz types for EIP-7549 - #6715

Merged
ensi321 merged 11 commits into
electra-forkfrom
nc/7549-1
May 4, 2024
Merged

feat: add presets and ssz types for EIP-7549#6715
ensi321 merged 11 commits into
electra-forkfrom
nc/7549-1

Conversation

@ensi321

@ensi321 ensi321 commented Apr 29, 2024

Copy link
Copy Markdown
Member

Add presets and ssz types for EIP-7549.

Directly extract committee bits and other fields from serialized electra.attestations

Part of #6341 and #6689

@ensi321
ensi321 requested a review from a team as a code owner April 29, 2024 08:01
@ensi321
ensi321 marked this pull request as draft April 29, 2024 08:57
@codecov

codecov Bot commented Apr 29, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 97.38562% with 4 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (electra-fork@4828e06). Click here to learn what that means.

Additional details and impacted files
@@               Coverage Diff               @@
##             electra-fork    #6715   +/-   ##
===============================================
  Coverage                ?   62.03%           
===============================================
  Files                   ?      563           
  Lines                   ?    60081           
  Branches                ?     1905           
===============================================
  Hits                    ?    37272           
  Misses                  ?    22768           
  Partials                ?       41           

@ensi321
ensi321 marked this pull request as ready for review April 29, 2024 14:16
Comment thread packages/types/src/electra/sszTypes.ts Outdated
Comment thread packages/types/src/electra/types.ts Outdated
Comment thread packages/types/src/electra/sszTypes.ts
Comment thread packages/types/src/electra/sszTypes.ts Outdated
Comment thread packages/beacon-node/test/unit/util/sszBytes.test.ts
Comment thread packages/beacon-node/src/util/sszBytes.ts Outdated
Comment thread packages/beacon-node/src/util/sszBytes.ts
Comment thread packages/beacon-node/src/util/sszBytes.ts
Comment thread packages/beacon-node/src/util/sszBytes.ts Outdated
Comment thread packages/beacon-node/src/util/sszBytes.ts Outdated
Comment thread packages/beacon-node/src/util/sszBytes.ts
Comment thread packages/beacon-node/test/unit/util/sszBytes.test.ts Outdated
@ensi321
ensi321 merged commit b19abdf into electra-fork May 4, 2024
@ensi321
ensi321 deleted the nc/7549-1 branch May 4, 2024 13:24
@ensi321 ensi321 mentioned this pull request May 4, 2024
12 tasks
g11tech pushed a commit that referenced this pull request May 4, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
g11tech pushed a commit that referenced this pull request May 24, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
g11tech pushed a commit to g11tech/lodestar that referenced this pull request Jun 19, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
g11tech added a commit that referenced this pull request Jun 25, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: Gajinder <develop@g11tech.io>
g11tech added a commit that referenced this pull request Jun 25, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: Gajinder <develop@g11tech.io>
g11tech added a commit that referenced this pull request Jul 1, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: Gajinder <develop@g11tech.io>
g11tech added a commit that referenced this pull request Jul 30, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: Gajinder <develop@g11tech.io>
g11tech added a commit that referenced this pull request Jul 31, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: Gajinder <develop@g11tech.io>
g11tech added a commit that referenced this pull request Aug 2, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: Gajinder <develop@g11tech.io>
g11tech added a commit that referenced this pull request Aug 9, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: Gajinder <develop@g11tech.io>
g11tech added a commit that referenced this pull request Aug 9, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: Gajinder <develop@g11tech.io>
g11tech added a commit that referenced this pull request Aug 23, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: Gajinder <develop@g11tech.io>
g11tech added a commit that referenced this pull request Aug 27, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: Gajinder <develop@g11tech.io>
philknows pushed a commit that referenced this pull request Sep 3, 2024
* Add types

* Update unit test

* lint

* Address comments

* Address comments

* Lint

* Update packages/beacon-node/src/util/sszBytes.ts

Co-authored-by: tuyennhv <tuyen@chainsafe.io>

* Add isElectraAttestation

* Update unit test

* Update unit test

* chore: add comments for sszBytes.ts

---------

Co-authored-by: tuyennhv <tuyen@chainsafe.io>
Co-authored-by: Tuyen Nguyen <vutuyen2636@gmail.com>
Co-authored-by: Gajinder <develop@g11tech.io>
@wemeetagain

Copy link
Copy Markdown
Member

🎉 This PR is included in v1.22.0 🎉

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.

3 participants