refactor: Add tally module and refactor wasm types #311
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
andExecutorWasm
, where the former contains pruning-related fields and the latter does not. The enum-like fieldWasmType
, 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:
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 ...
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}
Related PRs and Issues
Closes: #309
Closes: #310