Skip to content

chore: Register all contracts in IBCv2 port router #2277

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kulikthebird
Copy link
Contributor

No description provided.

@kulikthebird kulikthebird linked an issue May 28, 2025 that may be closed by this pull request
@kulikthebird kulikthebird changed the title feat: Register all contracts in IBCv2 port router chore: Register all contracts in IBCv2 port router May 28, 2025
@kulikthebird kulikthebird force-pushed the tkulik/feat/register_ibc2_contracts branch from 644017b to 082f2ff Compare May 29, 2025 08:19
Copy link

codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 26.66667% with 11 lines in your changes missing coverage. Please review.

Project coverage is 44.87%. Comparing base (5a9b50c) to head (d2a1e80).

Files with missing lines Patch % Lines
x/wasm/keeper/keeper.go 23.07% 10 Missing ⚠️
x/wasm/keeper/snapshotter.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2277      +/-   ##
==========================================
- Coverage   44.90%   44.87%   -0.03%     
==========================================
  Files          79       79              
  Lines       11035    11050      +15     
==========================================
+ Hits         4955     4959       +4     
- Misses       5643     5654      +11     
  Partials      437      437              
Files with missing lines Coverage Δ
app/app.go 85.26% <100.00%> (+0.02%) ⬆️
x/wasm/keeper/snapshotter.go 0.00% <0.00%> (ø)
x/wasm/keeper/keeper.go 77.42% <23.07%> (-0.85%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kulikthebird kulikthebird force-pushed the tkulik/feat/register_ibc2_contracts branch 2 times, most recently from e1f584e to 7f3d719 Compare May 29, 2025 09:15
@kulikthebird kulikthebird marked this pull request as ready for review May 29, 2025 09:15
@kulikthebird kulikthebird requested a review from pinosu May 29, 2025 09:16

// TODO: Remove the registration of each contract in https://github.com/CosmWasm/wasmd/issues/2278
// and add IBCv2 port ID prefix before calling `SetRouterV2` during WasmKeeper creation.
app.WasmKeeper.RegisterContractsInIbc2Router(ctx)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I couldn't find a way to test the contracts registration during the app initialization procedure. It seems like the contracts list on the app start up is always empty. As for now I found out that the only way to update the application with an up-to-date state is via InitGenesis procedure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've tested that manually - the contracts are registered in the RouterV2 after reboot of wasmd

@kulikthebird kulikthebird force-pushed the tkulik/feat/register_ibc2_contracts branch from 7f3d719 to d2a1e80 Compare May 30, 2025 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Re-map all IBCv2 enabled contracts after state sync
1 participant