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: x/wasm stargate migration #127

Closed
wants to merge 882 commits into from

Conversation

brew0722
Copy link
Contributor

@brew0722 brew0722 commented Apr 13, 2021

Description

Closes: #113

About the features we customized the cosmwasm

The x/wasm in lbm-sdk/v2 was merged based on 0.12.0-0.1.0(line/cosmwasm and line/wasmvm).
So this merge includes some of our features included in 0.12.0-0.1.0, but there are some features that are excluded.
Contents modified after 0.12.0-0.1.0 will be additionally ported as soon as this PR is completed.

Included:

  • CustomQuerier & CustomEncoder
    to use when token/collection migration is complete.

Excluded:

  • Token/Collection Querier/Encoder
    Token/Collection modules has not yet been migrated. so disabled.
  • linkwasmd/cli_test
    tests/ used as the base code below has not been migrated.
    And since the above Token/Collection feature was disabled and couldn't be tested, don't need it now.

Other Modifications when migration

Added

  • LegacyStore and LegacyPrefixIterator
    line/wasmvm depends on tendermint/tm-db, and when calling the API, it takes over the store.
    (Instantiate, Execute, Query, Migration)
    However, in lbm-sdk/v2 it uses line/tm-db/v2, there are some fixes, such as removing Domain() chore: bump up tm-db and remove Domain() call #118.
    It is possible to solve wasmvm look at line/tm-db/v2, but I need modifications in the single repository as possible.
    So, I implemented that class to use Iterator, which reimplemented the Domain receiver method, and used it only in wasmvm.

Changed

  • Added legacy style path to protobuf script.
    x/wasm still uses the old path method (x/wasm/internals/), and various *.pb files are also located here.
    However, cosmos-sdk 0.42.0 has been implemented to re-located all in proto/.
    Can move it self, but considering that it will be fixed in the next cosmwasm update, I responded to the path via W/A.

  • updated linkwasmd


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.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

ethanfrey and others added 30 commits October 5, 2020 22:31
Closes #10 Implemented files called general_consts.go to all modules that heavly relied on  the duplicated "ClientID : 1"
Better calculation of Delegation data
Jiyong Ha added 6 commits April 12, 2021 16:59
line/tm-db/v2 has a modification to the Iterator interface,
occured a type mismatch when using wasmvm.
token/collection modules has not yet been migrated,
so a problem occurs after wasm migration.
It will be restored upon migration of the token/collection modules.
missed when merging process
* v2/develop:
  chore: bump up tm-db and remove Domain() call (#118)
  feat: Add idle-timeout to rest server and rpc server config (#114)
  chore: add script initializing simd (#110)
@brew0722 brew0722 added the WIP label Apr 13, 2021
Jiyong Ha added 5 commits April 13, 2021 22:21
The tests/, which is the basis of the cli test, has not been ported.
And Our modifications, such as encoder of tokens and collections,
became unnecessary, so cli tests meaningless.
@brew0722 brew0722 requested review from whylee259, loloicci and shiki-tak and removed request for whylee259 and loloicci April 14, 2021 02:00
@brew0722 brew0722 added C:WASM and removed WIP labels Apr 14, 2021
@brew0722 brew0722 requested a review from loloicci April 14, 2021 02:01
@brew0722 brew0722 self-assigned this Apr 14, 2021
@brew0722 brew0722 changed the title x/wasm stargate migration(wasmd-0.16.0-alpha1) feat: x/wasm stargate migration Apr 14, 2021
@egonspace
Copy link

In order to running github actions, you should push the branch to origin repository instead of personal repository.
In case of our team, we are using PR branch name like brew0722/v2/feat/xxx.

@brew0722
Copy link
Contributor Author

brew0722 commented Apr 19, 2021

#131
Following the team branch rule, I created pr again after pushing to origin.
Close this pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

migrate lbm-sdk/v2 to wasmd 0.16.0-alpha1(Stargate)
10 participants