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

Miguel/ava 141 hard fork on plonk update #94

Closed
wants to merge 18 commits into from

Conversation

MiguelDD1
Copy link
Contributor

@MiguelDD1 MiguelDD1 commented Oct 6, 2022

Plonk updates from 0.8.2 to 0.12.0

This hard-fork upgrade adds a new version of hosted function header_builder_build. The new version uses kate-0.2.0 which depends on dusk-plonk-0.12.0.

Primitives & Kate moved to avail-core repo

We moved these crates into the external repo avail-core. That facilitates the use of several versions of Kate. Particularly we are using:

  • Kate:0.1.0 on runtime with spec version == 4.
  • Kate:0.2.0 on runtime with spec version == 5.

    - `Kate` & `da-primitives` have been moved out to another repo.
    - New version of `header_builder::build` which uses `Kate 0.2.0`.
      Version 1 is still available.
@MiguelDD1 MiguelDD1 self-assigned this Oct 6, 2022
@linear
Copy link

linear bot commented Oct 6, 2022

AVA-141 Hard Fork on Plonk update

Update our Plonk dependency and upgrade the DevNet using a hard-fork approach (research how to do it on Substrate).

Acceptance Criteria:

  • Documentation for Soft-fork (a.k.a Runtime Upgrade)
  • Documentation for Hard-fork.

@MiguelDD1 MiguelDD1 marked this pull request as ready for review October 6, 2022 14:55
luketchang and others added 7 commits October 7, 2022 07:08
* add nomad primitives

* patch dependencies to fix build issues

* remove tiny keccak from merkle

* add tiny keccak back to merkle and use to avoid extra allocation in left/right hash

* port nomad pallets, build failing

* add node and runtime changes

* add subxt changes

* fix compact block header and add specs to node for genesis info

* add new script for submitting data and header

* rename enqueue_data_root to dispatch_data_root

* rebase on primitive changes and change da-bridge message and TypedMessage to use BoundedVec

* fix failing home test after max message len change

* rebase on merged primitives

* remove unnecessary methods and add da-bridge docs

* update metadata and have home tree put default

* make da-bridge message type struct-based not vector-based

* remove panic in da bridge message

* remove finalized block hash mapping

* fix vec dependency after rebase on post-primitives PR

* make non body length public for tests

* Safety review

* Add benchmarks to `Nomad-home`

* Code review changes

  - New Benchmarks for `nomad/da-bridge`
  - Add header hash to `try_dispatch_data_root`.
  - Add assertions to `verify` section in benchmarks.

* Update `avail-subxt` examples

* Full header is needed

* Fmt fix

* fix double import and missing let after rebase

* fix subxt scripts with new da-bridge header metadata

* fix home update pallet weight

Co-authored-by: Miguel <[email protected]>
Co-authored-by: miguelDD1 <[email protected]>
    - `Kate` & `da-primitives` have been moved out to another repo.
    - New version of `header_builder::build` which uses `Kate 0.2.0`.
      Version 1 is still available.
…-miguelDD1:maticnetwork/avail into miguel/ava-141-hard-fork-on-plonk-update
@codecov-commenter
Copy link

codecov-commenter commented Oct 7, 2022

Codecov Report

Base: 52.87% // Head: 50.80% // Decreases project coverage by -2.07% ⚠️

Coverage data is based on head (8d25e95) compared to base (380eede).
Patch coverage: 63.29% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #94      +/-   ##
===========================================
- Coverage    52.87%   50.80%   -2.08%     
===========================================
  Files           65       50      -15     
  Lines        12539     9035    -3504     
===========================================
- Hits          6630     4590    -2040     
+ Misses        5909     4445    -1464     
Impacted Files Coverage Δ
node/src/chain_spec.rs 0.00% <0.00%> (ø)
pallets/nomad/da-bridge/src/weights.rs 0.00% <0.00%> (ø)
pallets/nomad/home/src/weights.rs 0.00% <0.00%> (ø)
rpc/kate-rpc/src/lib.rs 0.57% <ø> (ø)
runtime/src/lib.rs 8.31% <0.00%> (-0.34%) ⬇️
pallets/nomad/updater-manager/src/lib.rs 27.27% <27.27%> (ø)
pallets/nomad/da-bridge/src/message.rs 27.33% <43.61%> (ø)
pallets/nomad/da-bridge/src/lib.rs 47.27% <47.27%> (ø)
pallets/nomad/home/src/lib.rs 55.07% <55.07%> (ø)
pallets/nomad/updater-manager/src/mock.rs 58.33% <58.33%> (ø)
... and 22 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@aterentic-ethernal aterentic-ethernal left a comment

Choose a reason for hiding this comment

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

Why are nomad changes ended up in this PR?

    - `Kate` & `da-primitives` have been moved out to another repo.
    - New version of `header_builder::build` which uses `Kate 0.2.0`.
      Version 1 is still available.
…-miguelDD1:maticnetwork/avail into miguel/ava-141-hard-fork-on-plonk-update
@MiguelDD1
Copy link
Contributor Author

Superseeded by PR#96

@MiguelDD1
Copy link
Contributor Author

Super-seeded by #96

@MiguelDD1 MiguelDD1 closed this Oct 11, 2022
@MiguelDD1 MiguelDD1 deleted the miguel/ava-141-hard-fork-on-plonk-update branch October 11, 2022 15:03
umadayal pushed a commit to succinctlabs/avail-core that referenced this pull request Oct 31, 2024
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.

4 participants