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

refactor: Add tally module and refactor wasm types #311

Merged
merged 6 commits into from
Jul 31, 2024

Conversation

hacheigriega
Copy link
Member

@hacheigriega hacheigriega commented Jul 25, 2024

Motivation

This PR creates a new module x/tally to house the tally-related logic. Note that this module does not store any states.
This PR creates two distinct wasm types DataRequestWasm and ExecutorWasm, where the former contains pruning-related fields and the latter does not. The enum-like field WasmType, which used to indicate the wasm type, has been removed.

Explanation of Changes

The term "overlay" has been renamed to "executor."
Here is the list of API changes:

  • CLI endpoints
    • sedad query wasm-storage overlay-wasm <hash> -> sedad query wasm-storage executor-wasm <hash>
    • sedad query wasm-storage list-overlay-wasms -> sedad query wasm-storage list-executor-wasms
    • sedad tx wasm-storage submit-proposal store-overlay-wasm ... -> sedad tx wasm-storage submit-proposal store-executor-wasm ...
    • sedad tx wasm-storage submit-proposal instantiate-and-register-core-contract ... -> sedad tx wasm-storage submit-proposal instantiate-core-contract ...
  • REST endpoints
    • GET /seda-chain/wasm-storage/overlay_wasms -> GET /seda-chain/wasm-storage/executor_wasms
    • GET /seda-chain/wasm-storage/overlay_wasm/{hash} -> GET /seda-chain/wasm-storage/executor_wasm/{hash}
    • The response types for queries of all data request wasms and all executor (formerly overlay) wasms have changed.

Related PRs and Issues

Closes: #309
Closes: #310

@hacheigriega hacheigriega marked this pull request as draft July 25, 2024 16:14
@hacheigriega hacheigriega marked this pull request as ready for review July 26, 2024 13:14
@hacheigriega hacheigriega requested a review from a team July 26, 2024 19:05
@hacheigriega hacheigriega changed the title refactor: Add tally module refactor: Add tally module and refactor wasm types Jul 26, 2024
Copy link
Member

@Thomasvdam Thomasvdam left a comment

Choose a reason for hiding this comment

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

We should be mindful that this includes breaking changes. Is there a way we can get Goreleaser to add this to the release notes?

Once merged the SEDA SDK will need to update the proto definitions and generate the implementation. I think the overlay is not affected, but we should double check :)

app/app.go Show resolved Hide resolved
x/tally/keeper/abci.go Outdated Show resolved Hide resolved
@hacheigriega
Copy link
Member Author

Added CHANGELOG.md

@hacheigriega hacheigriega merged commit 3a14c1a into main Jul 31, 2024
9 of 10 checks passed
@hacheigriega hacheigriega deleted the hy/tally-module branch July 31, 2024 17:46
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.

♻️ Create tally module ♻️ Use separate wasm types for data request and overlay wasms
3 participants