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

feat: 08-wasm light client proxy module for wasm clients (backport #5079) #5120

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 15, 2023

This is an automatic backport of pull request #5079 done by Mergify.
Cherry-pick of 08d36eb has failed:

On branch mergify/bp/08-wasm/release/v0.1.x+ibc-go-v7.3.x-wasmvm-v1.4.x/pr-5079
Your branch is up to date with 'origin/08-wasm/release/v0.1.x+ibc-go-v7.3.x-wasmvm-v1.4.x'.

You are currently cherry-picking commit 08d36eb0.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   .github/CODEOWNERS
	new file:   .github/workflows/build-wasm-simd-image-from-tag.yml
	new file:   .github/workflows/wasm-client.yml
	modified:   Makefile
	new file:   docs/docs/03-light-clients/01-developer-guide/wasm/audits/Ethan Frey - Wasm Client Review.pdf
	new file:   docs/docs/03-light-clients/01-developer-guide/wasm/audits/Halborn audit report.pdf
	new file:   docs/docs/03-light-clients/04-wasm/01-overview.md
	new file:   docs/docs/03-light-clients/04-wasm/02-concepts.md
	new file:   docs/docs/03-light-clients/04-wasm/03-integration.md
	new file:   docs/docs/03-light-clients/04-wasm/04-messages.md
	new file:   docs/docs/03-light-clients/04-wasm/05-governance.md
	new file:   docs/docs/03-light-clients/04-wasm/06-events.md
	new file:   docs/docs/03-light-clients/04-wasm/07-contracts.md
	new file:   docs/docs/03-light-clients/04-wasm/08-client.md
	new file:   docs/docs/03-light-clients/04-wasm/_category_.json
	new file:   e2e/tests/data/ics10_grandpa_cw.wasm
	new file:   e2e/tests/data/migrate_error.wasm.gz
	new file:   e2e/tests/data/migrate_success.wasm.gz
	new file:   e2e/tests/wasm/grandpa_test.go
	modified:   modules/core/02-client/keeper/keeper.go
	modified:   modules/core/03-connection/keeper/verify_test.go
	modified:   modules/core/exported/client.go
	modified:   modules/light-clients/06-solomachine/module.go
	modified:   modules/light-clients/07-tendermint/module.go
	new file:   modules/light-clients/08-wasm/Dockerfile
	new file:   modules/light-clients/08-wasm/client/cli/cli.go
	new file:   modules/light-clients/08-wasm/client/cli/query.go
	new file:   modules/light-clients/08-wasm/client/cli/tx.go
	new file:   modules/light-clients/08-wasm/doc.go
	new file:   modules/light-clients/08-wasm/go.mod
	new file:   modules/light-clients/08-wasm/go.sum
	new file:   modules/light-clients/08-wasm/internal/ibcwasm/expected_interfaces.go
	new file:   modules/light-clients/08-wasm/internal/ibcwasm/wasm.go
	new file:   modules/light-clients/08-wasm/keeper/events.go
	new file:   modules/light-clients/08-wasm/keeper/export_test.go
	new file:   modules/light-clients/08-wasm/keeper/genesis.go
	new file:   modules/light-clients/08-wasm/keeper/genesis_test.go
	new file:   modules/light-clients/08-wasm/keeper/grpc_query.go
	new file:   modules/light-clients/08-wasm/keeper/grpc_query_test.go
	new file:   modules/light-clients/08-wasm/keeper/keeper.go
	new file:   modules/light-clients/08-wasm/keeper/keeper_test.go
	new file:   modules/light-clients/08-wasm/keeper/msg_server.go
	new file:   modules/light-clients/08-wasm/keeper/msg_server_test.go
	new file:   modules/light-clients/08-wasm/keeper/snapshotter.go
	new file:   modules/light-clients/08-wasm/keeper/snapshotter_test.go
	new file:   modules/light-clients/08-wasm/module.go
	new file:   modules/light-clients/08-wasm/simulation/proposals.go
	new file:   modules/light-clients/08-wasm/simulation/proposals_test.go
	new file:   modules/light-clients/08-wasm/test_data/ics07_tendermint_cw.wasm.gz
	new file:   modules/light-clients/08-wasm/test_data/ics10_grandpa_cw.wasm.gz
	new file:   modules/light-clients/08-wasm/testing/mock_engine.go
	new file:   modules/light-clients/08-wasm/testing/simapp/README.md
	new file:   modules/light-clients/08-wasm/testing/simapp/ante_handler.go
	new file:   modules/light-clients/08-wasm/testing/simapp/app.go
	new file:   modules/light-clients/08-wasm/testing/simapp/encoding.go
	new file:   modules/light-clients/08-wasm/testing/simapp/export.go
	new file:   modules/light-clients/08-wasm/testing/simapp/genesis.go
	new file:   modules/light-clients/08-wasm/testing/simapp/genesis_account.go
	new file:   modules/light-clients/08-wasm/testing/simapp/params/amino.go
	new file:   modules/light-clients/08-wasm/testing/simapp/params/doc.go
	new file:   modules/light-clients/08-wasm/testing/simapp/params/encoding.go
	new file:   modules/light-clients/08-wasm/testing/simapp/params/proto.go
	new file:   modules/light-clients/08-wasm/testing/simapp/simd/cmd/root.go
	new file:   modules/light-clients/08-wasm/testing/simapp/simd/main.go
	new file:   modules/light-clients/08-wasm/testing/simapp/test_helpers.go
	new file:   modules/light-clients/08-wasm/testing/values.go
	new file:   modules/light-clients/08-wasm/testing/wasm_endpoint.go
	new file:   modules/light-clients/08-wasm/types/client_message.go
	new file:   modules/light-clients/08-wasm/types/client_message_test.go
	new file:   modules/light-clients/08-wasm/types/client_state.go
	new file:   modules/light-clients/08-wasm/types/client_state_test.go
	new file:   modules/light-clients/08-wasm/types/codec.go
	new file:   modules/light-clients/08-wasm/types/codec_test.go
	new file:   modules/light-clients/08-wasm/types/config.go
	new file:   modules/light-clients/08-wasm/types/consensus_state.go
	new file:   modules/light-clients/08-wasm/types/consensus_state_test.go
	new file:   modules/light-clients/08-wasm/types/contract_api.go
	new file:   modules/light-clients/08-wasm/types/errors.go
	new file:   modules/light-clients/08-wasm/types/events.go
	new file:   modules/light-clients/08-wasm/types/expected_keepers.go
	new file:   modules/light-clients/08-wasm/types/export_test.go
	new file:   modules/light-clients/08-wasm/types/gas_register.go
	new file:   modules/light-clients/08-wasm/types/gas_register_custom.go
	new file:   modules/light-clients/08-wasm/types/genesis.go
	new file:   modules/light-clients/08-wasm/types/genesis.pb.go
	new file:   modules/light-clients/08-wasm/types/genesis_test.go
	new file:   modules/light-clients/08-wasm/types/keys.go
	new file:   modules/light-clients/08-wasm/types/migrate_contract.go
	new file:   modules/light-clients/08-wasm/types/migrate_contract_test.go
	new file:   modules/light-clients/08-wasm/types/misbehaviour_handle.go
	new file:   modules/light-clients/08-wasm/types/misbehaviour_handle_test.go
	new file:   modules/light-clients/08-wasm/types/msgs.go
	new file:   modules/light-clients/08-wasm/types/msgs_test.go
	new file:   modules/light-clients/08-wasm/types/proposal_handle.go
	new file:   modules/light-clients/08-wasm/types/proposal_handle_test.go
	new file:   modules/light-clients/08-wasm/types/query.pb.go
	new file:   modules/light-clients/08-wasm/types/query.pb.gw.go
	new file:   modules/light-clients/08-wasm/types/store.go
	new file:   modules/light-clients/08-wasm/types/store_test.go
	new file:   modules/light-clients/08-wasm/types/tx.pb.go
	new file:   modules/light-clients/08-wasm/types/types_test.go
	new file:   modules/light-clients/08-wasm/types/update.go
	new file:   modules/light-clients/08-wasm/types/update_test.go
	new file:   modules/light-clients/08-wasm/types/upgrade.go
	new file:   modules/light-clients/08-wasm/types/upgrade_test.go
	new file:   modules/light-clients/08-wasm/types/utils.go
	new file:   modules/light-clients/08-wasm/types/validation.go
	new file:   modules/light-clients/08-wasm/types/validation_test.go
	new file:   modules/light-clients/08-wasm/types/vm.go
	new file:   modules/light-clients/08-wasm/types/vm_test.go
	new file:   modules/light-clients/08-wasm/types/wasm.go
	new file:   modules/light-clients/08-wasm/types/wasm.pb.go
	new file:   modules/light-clients/08-wasm/types/wasm_test.go
	new file:   proto/ibc/lightclients/wasm/v1/genesis.proto
	new file:   proto/ibc/lightclients/wasm/v1/query.proto
	new file:   proto/ibc/lightclients/wasm/v1/tx.proto
	new file:   proto/ibc/lightclients/wasm/v1/wasm.proto
	new file:   requirements.txt
	new file:   scripts/get-libwasm-version.py
	modified:   testing/endpoint.go
	modified:   testing/mock/mock.go

Unmerged paths:
  (use "git add/rm <file>..." as appropriate to mark resolution)
	both modified:   .github/dependabot.yml
	deleted by us:   .github/workflows/e2e-test-workflow-call.yml
	deleted by us:   .github/workflows/e2e.yaml
	both modified:   .github/workflows/test.yml
	both modified:   .gitignore
	both modified:   Dockerfile
	both added:      docs/.vuepress/config.js
	both modified:   docs/architecture/adr-027-ibc-wasm.md
	both modified:   docs/client/config.json
	both modified:   docs/client/swagger-ui/swagger.yaml
	both modified:   docs/ibc/proposals.md
	deleted by us:   e2e/go.mod
	deleted by us:   e2e/go.sum
	deleted by us:   e2e/relayer/relayer.go
	deleted by us:   e2e/sample.config.yaml
	deleted by us:   e2e/scripts/run-e2e.sh
	deleted by us:   e2e/tests/core/02-client/client_test.go
	deleted by us:   e2e/tests/interchain_accounts/base_test.go
	deleted by us:   e2e/tests/interchain_accounts/gov_test.go
	deleted by us:   e2e/tests/interchain_accounts/groups_test.go
	deleted by us:   e2e/tests/interchain_accounts/incentivized_test.go
	deleted by us:   e2e/tests/interchain_accounts/localhost_test.go
	deleted by us:   e2e/tests/interchain_accounts/params_test.go
	deleted by us:   e2e/tests/transfer/base_test.go
	deleted by us:   e2e/tests/upgrades/genesis_test.go
	deleted by us:   e2e/tests/upgrades/upgrade_test.go
	deleted by us:   e2e/testsuite/codec.go
	deleted by us:   e2e/testsuite/grpc_query.go
	deleted by us:   e2e/testsuite/testconfig.go
	deleted by us:   e2e/testsuite/testsuite.go
	deleted by us:   e2e/testsuite/tx.go
	deleted by us:   e2e/testvalues/values.go
	deleted by us:   go.work.example
	both modified:   modules/core/02-client/types/params.go
	deleted by us:   scripts/go-lint-all.sh
	deleted by us:   scripts/go-mod-tidy-all.sh
	both modified:   testing/chain.go

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

Co-authored-by: Steve <[email protected]>
Co-authored-by: Jack Zampolin <[email protected]>
Co-authored-by: antstalepresh <[email protected]>
Co-authored-by: Vladislav Markushin <[email protected]>
Co-authored-by: Blas Rodriguez Irizar <[email protected]>
Co-authored-by: Jacob Gadikian <[email protected]>
Co-authored-by: vuong <[email protected]>
Co-authored-by: Vishal Potpelliwar <[email protected]>
Co-authored-by: Charly <[email protected]>
Co-authored-by: Jim Fasarakis-Hilliard <[email protected]>
Co-authored-by: Reece Williams <[email protected]>
Co-authored-by: Damian Nolan <[email protected]>
Co-authored-by: Cian Hatton <[email protected]>
Co-authored-by: Adi <[email protected]>
Co-authored-by: chatton <[email protected]>
Co-authored-by: colin axnér <[email protected]>
Co-authored-by: Charly <[email protected]>
Co-authored-by: srdtrk <[email protected]>
Co-authored-by: Muku <[email protected]>
Co-authored-by: Pham Anh Minh <[email protected]>
Co-authored-by: nguyen <[email protected]>
(cherry picked from commit 08d36eb)

# Conflicts:
#	.github/dependabot.yml
#	.github/workflows/e2e-test-workflow-call.yml
#	.github/workflows/e2e.yaml
#	.github/workflows/test.yml
#	.gitignore
#	Dockerfile
#	docs/.vuepress/config.js
#	docs/architecture/adr-027-ibc-wasm.md
#	docs/client/config.json
#	docs/client/swagger-ui/swagger.yaml
#	docs/ibc/proposals.md
#	e2e/go.mod
#	e2e/go.sum
#	e2e/relayer/relayer.go
#	e2e/sample.config.yaml
#	e2e/scripts/run-e2e.sh
#	e2e/tests/core/02-client/client_test.go
#	e2e/tests/interchain_accounts/base_test.go
#	e2e/tests/interchain_accounts/gov_test.go
#	e2e/tests/interchain_accounts/groups_test.go
#	e2e/tests/interchain_accounts/incentivized_test.go
#	e2e/tests/interchain_accounts/localhost_test.go
#	e2e/tests/interchain_accounts/params_test.go
#	e2e/tests/transfer/base_test.go
#	e2e/tests/upgrades/genesis_test.go
#	e2e/tests/upgrades/upgrade_test.go
#	e2e/testsuite/codec.go
#	e2e/testsuite/grpc_query.go
#	e2e/testsuite/testconfig.go
#	e2e/testsuite/testsuite.go
#	e2e/testsuite/tx.go
#	e2e/testvalues/values.go
#	go.work.example
#	modules/core/02-client/types/params.go
#	scripts/go-lint-all.sh
#	scripts/go-mod-tidy-all.sh
#	testing/chain.go
@@ -515,11 +516,13 @@ func (chain *TestChain) CreateTMClientHeader(chainID string, blockHeight int64,
if tmValSet != nil { //nolint:staticcheck
valSet, err = tmValSet.ToProto()
require.NoError(chain.T, err)
valSet.TotalVotingPower = tmValSet.TotalVotingPower()
Copy link
Contributor

Choose a reason for hiding this comment

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

see no harm in adding these (and on line 525) but not entirely certain, lmk if I should drop em)

@DimitrisJim DimitrisJim force-pushed the mergify/bp/08-wasm/release/v0.1.x+ibc-go-v7.3.x-wasmvm-v1.4.x/pr-5079 branch from cc4f58a to d98068b Compare November 16, 2023 13:13
@DimitrisJim DimitrisJim marked this pull request as draft November 21, 2023 13:34
@DimitrisJim
Copy link
Contributor

closing in preference to #5153

@mergify mergify bot deleted the mergify/bp/08-wasm/release/v0.1.x+ibc-go-v7.3.x-wasmvm-v1.4.x/pr-5079 branch November 21, 2023 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants