-
Notifications
You must be signed in to change notification settings - Fork 626
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
imp: use wasm VM CreateChecksum #5123
imp: use wasm VM CreateChecksum #5123
Conversation
@@ -1,9 +0,0 @@ | |||
package keeper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🪓 🪓
"github.com/cosmos/ibc-go/modules/light-clients/08-wasm/internal/ibcwasm" | ||
) | ||
|
||
// Checksum is a type alias used for wasm byte code checksums. | ||
type Checksum []byte | ||
type Checksum = wasmvmtypes.Checksum |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not strictly necessary to do this alias and wrapping, helps with keeping these local to this file, removing imports and allowing for localized changes if they are required in future. Could drop if people don't like it
…-of-duplicating-it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful! Nice cleanup @crodriguezvega ❤️
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
…-of-duplicating-it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks gorgeous to me!
Thank you for your contributions on this one, @DimitrisJim! |
* use wasm VM CreateChecksum * review comments * lint * lint 2 * Remove raw calls to sha256, clean up handling of Checksums. * Update modules/light-clients/08-wasm/keeper/keeper.go Co-authored-by: Damian Nolan <damiannolan@gmail.com> * Document this bad boy. --------- Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com> Co-authored-by: Damian Nolan <damiannolan@gmail.com> (cherry picked from commit a231fea) # Conflicts: # modules/light-clients/08-wasm/keeper/events.go # modules/light-clients/08-wasm/keeper/genesis.go # modules/light-clients/08-wasm/keeper/keeper.go # modules/light-clients/08-wasm/keeper/msg_server_test.go # modules/light-clients/08-wasm/keeper/snapshotter.go # modules/light-clients/08-wasm/keeper/snapshotter_test.go # modules/light-clients/08-wasm/testing/mock_engine.go # modules/light-clients/08-wasm/testing/values.go # modules/light-clients/08-wasm/testing/wasm_endpoint.go # modules/light-clients/08-wasm/types/client_state_test.go # modules/light-clients/08-wasm/types/migrate_contract_test.go # modules/light-clients/08-wasm/types/msgs_test.go # modules/light-clients/08-wasm/types/types_test.go # modules/light-clients/08-wasm/types/validation.go # modules/light-clients/08-wasm/types/validation_test.go # modules/light-clients/08-wasm/types/vm.go # modules/light-clients/08-wasm/types/wasm.go # modules/light-clients/08-wasm/types/wasm_test.go
* use wasm VM CreateChecksum * review comments * lint * lint 2 * Remove raw calls to sha256, clean up handling of Checksums. * Update modules/light-clients/08-wasm/keeper/keeper.go Co-authored-by: Damian Nolan <damiannolan@gmail.com> * Document this bad boy. --------- Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com> Co-authored-by: Damian Nolan <damiannolan@gmail.com> (cherry picked from commit a231fea) # Conflicts: # modules/light-clients/08-wasm/keeper/events.go # modules/light-clients/08-wasm/keeper/genesis.go # modules/light-clients/08-wasm/keeper/keeper.go # modules/light-clients/08-wasm/keeper/msg_server_test.go # modules/light-clients/08-wasm/keeper/snapshotter.go # modules/light-clients/08-wasm/keeper/snapshotter_test.go # modules/light-clients/08-wasm/testing/mock_engine.go # modules/light-clients/08-wasm/testing/values.go # modules/light-clients/08-wasm/testing/wasm_endpoint.go # modules/light-clients/08-wasm/types/client_state_test.go # modules/light-clients/08-wasm/types/migrate_contract_test.go # modules/light-clients/08-wasm/types/msgs_test.go # modules/light-clients/08-wasm/types/types_test.go # modules/light-clients/08-wasm/types/validation.go # modules/light-clients/08-wasm/types/validation_test.go # modules/light-clients/08-wasm/types/vm.go # modules/light-clients/08-wasm/types/wasm.go # modules/light-clients/08-wasm/types/wasm_test.go
* imp: use wasm VM CreateChecksum (#5123) * use wasm VM CreateChecksum * review comments * lint * lint 2 * Remove raw calls to sha256, clean up handling of Checksums. * Update modules/light-clients/08-wasm/keeper/keeper.go Co-authored-by: Damian Nolan <damiannolan@gmail.com> * Document this bad boy. --------- Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com> Co-authored-by: Damian Nolan <damiannolan@gmail.com> (cherry picked from commit a231fea) # Conflicts: # modules/light-clients/08-wasm/keeper/events.go # modules/light-clients/08-wasm/keeper/genesis.go # modules/light-clients/08-wasm/keeper/keeper.go # modules/light-clients/08-wasm/keeper/msg_server_test.go # modules/light-clients/08-wasm/keeper/snapshotter.go # modules/light-clients/08-wasm/keeper/snapshotter_test.go # modules/light-clients/08-wasm/testing/mock_engine.go # modules/light-clients/08-wasm/testing/values.go # modules/light-clients/08-wasm/testing/wasm_endpoint.go # modules/light-clients/08-wasm/types/client_state_test.go # modules/light-clients/08-wasm/types/migrate_contract_test.go # modules/light-clients/08-wasm/types/msgs_test.go # modules/light-clients/08-wasm/types/types_test.go # modules/light-clients/08-wasm/types/validation.go # modules/light-clients/08-wasm/types/validation_test.go # modules/light-clients/08-wasm/types/vm.go # modules/light-clients/08-wasm/types/wasm.go # modules/light-clients/08-wasm/types/wasm_test.go * lint: simplify newHash[:] -> newHash to satifsy linting overlords --------- Co-authored-by: Carlos Rodriguez <carlos@interchain.io> Co-authored-by: Damian Nolan <damiannolan@gmail.com>
* use wasm VM CreateChecksum * review comments * lint * lint 2 * Remove raw calls to sha256, clean up handling of Checksums. * Update modules/light-clients/08-wasm/keeper/keeper.go Co-authored-by: Damian Nolan <damiannolan@gmail.com> * Document this bad boy. --------- Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com> Co-authored-by: Damian Nolan <damiannolan@gmail.com> (cherry picked from commit a231fea)
* use wasm VM CreateChecksum * review comments * lint * lint 2 * Remove raw calls to sha256, clean up handling of Checksums. * Update modules/light-clients/08-wasm/keeper/keeper.go Co-authored-by: Damian Nolan <damiannolan@gmail.com> * Document this bad boy. --------- Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com> Co-authored-by: Damian Nolan <damiannolan@gmail.com> (cherry picked from commit a231fea) Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Description
closes: #5071
Commit Message / Changelog Entry
see the guidelines for commit messages. (view raw markdown for examples)
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.