-
Notifications
You must be signed in to change notification settings - Fork 9
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: separate custom features in x/wasm
into x/wasmplus
module
#7
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #7 +/- ##
==========================================
+ Coverage 58.88% 60.80% +1.92%
==========================================
Files 63 80 +17
Lines 9002 9877 +875
==========================================
+ Hits 5301 6006 +705
- Misses 3396 3555 +159
- Partials 305 316 +11
|
for acc := range maccPerms { | ||
modAccAddrs[authtypes.NewModuleAddress(acc).String()] = true | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map
for acc := range maccPerms { | ||
blockedAddrs[authtypes.NewModuleAddress(acc).String()] = !allowedReceivingModAcc()[acc] | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map
for k, v := range maccPerms { | ||
dupMaccPerms[k] = v | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map
for _, v := range keys { | ||
ms.MountStoreWithDB(v, sdk.StoreTypeIAVL, db) | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map
for _, v := range tkeys { | ||
ms.MountStoreWithDB(v, sdk.StoreTypeTransient, db) | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map
for _, v := range memKeys { | ||
ms.MountStoreWithDB(v, sdk.StoreTypeMemory, db) | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map
for acc := range maccPerms { | ||
blockedAddrs[authtypes.NewModuleAddress(acc).String()] = true | ||
} |
Check warning
Code scanning / CodeQL
Iteration over map
3195a93
to
1eb8763
Compare
x/wasmd
into x/wasmplus
modulex/wasm
into x/wasmplus
module
When I run the command with the built binary, I get the following message, is this OK?
|
This duplicate registery is a problem. But this problem need to fix in lbm-sdk. I added this issue as Finschia/finschia-sdk#877. |
I have some questions
|
I want to keep the codes of original cosmwasm/wasmd without changes. But your opinion is also good. I'll remove wasmplusd and replace wasmd for
Oh, I'll check it. Good. |
Is it possible to change the Usage of wasmplusd from wasmd to wasmplusd while still coexisting with the wasmd app?
|
When I check again, some unittest of
|
When you update the proto file, please also update the proto-gen. |
- move all function of `wasmplus/keeper/keeper_extension.go` to `wasmplus/keeper/keeper.go` - remove no need files (keeper_extension.go, metrics.go)
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.
LGTM
Description
closes: #6
x/wasmd
intox/wasmplus
module.x/wasmplus
module wraps tx, query apis and everything ofx/wasm
module.appplus
cli forx/wasmplus
to avoid import cycle problem.Why remove custom genesis params
The
gas_multiplier
,instance_cost
andcompile_cost
of added custom genesis param are added to be enable to modify by proposal. And these params decide the gas fee when store and instantiate a smart contract.However, we are using default values not change and we cannot control it without modifying the original source code.
So I think it's better to keep original logic, and change these const value and migrate if we need to modify this gas cost.
Why remove custom query and tx msg encoding feature
Motivation and context
x/wasmd
modules is origin wasmd module, but we did modify it. So we need to fix many conflicts when bump up original changes. So I think it's good to keep originalx/wasmd
module and separate the custom featues intox/wasmplus
.How has this been tested?
Screenshots (if appropriate):
Checklist:
CHANGELOG.md
client/docs/swagger-ui/swagger.yaml