-
Notifications
You must be signed in to change notification settings - Fork 31
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
brew0722
wants to merge
882
commits into
Finschia:v2/develop
from
brew0722:merge-wasmd-0.16.0-alpha1
Closed
feat: x/wasm stargate migration #127
brew0722
wants to merge
882
commits into
Finschia:v2/develop
from
brew0722:merge-wasmd-0.16.0-alpha1
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update to cosmwasm 0.11
Closes #10 Implemented files called general_consts.go to all modules that heavly relied on the duplicated "ClientID : 1"
Wasm querier integration tests
Increment x/wasm error codes by 1
Return raw stored bytes for raw queries
Improve query testing
Better calculation of Delegation data
Prevent integer overflow
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)
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
force-pushed
the
merge-wasmd-0.16.0-alpha1
branch
from
April 13, 2021 13:22
2dbdc23
to
bcf06e4
Compare
brew0722
changed the title
x/wasm stargate migration(wasmd-0.16.0-alpha1)
feat: x/wasm stargate migration
Apr 14, 2021
In order to running |
9 tasks
#131 |
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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 modules has not yet been migrated. so disabled.
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
andLegacyPrefixIterator
line/wasmvm
depends ontendermint/tm-db
, and when calling the API, it takes over the store.(
Instantiate
,Execute
,Query
,Migration
)However, in
lbm-sdk/v2
it usesline/tm-db/v2
, there are some fixes, such as removingDomain()
chore: bump up tm-db and remove Domain() call #118.It is possible to solve
wasmvm
look atline/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.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes