Skip to content

feat: Add new entrypoint for IBCv2 Timeout #2422

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

Closed
kulikthebird opened this issue Mar 17, 2025 · 0 comments · Fixed by #2454
Closed

feat: Add new entrypoint for IBCv2 Timeout #2422

kulikthebird opened this issue Mar 17, 2025 · 0 comments · Fixed by #2454
Assignees

Comments

@kulikthebird
Copy link
Member

No description provided.

@kulikthebird kulikthebird changed the title Add new entrypoint for IBCv2 Timeout feat: Add new entrypoint for IBCv2 Timeout Mar 18, 2025
vishalmaurya850 added a commit to vishalmaurya850/cosmwasm that referenced this issue Mar 21, 2025
Fixes CosmWasm#2422

Add new entry point for IBCv2 Timeout in `contracts/ibc2/src/contract.rs`.

* **State Struct**
  - Add `ibc2_timeout_counter` field to `State` struct.
* **QueryMsg Enum**
  - Add `QueryTimeoutCounter` message to retrieve the timeout counter.
* **Query Function**
  - Update `query` function to handle `QueryTimeoutCounter` message.
* **ibc2_timeout Function**
  - Add `ibc2_timeout` entry point function to handle IBCv2 timeouts.
  - Increment `ibc2_timeout_counter` in `State` struct within `ibc2_timeout`.
* **Tests**
  - Add test for `ibc2_timeout` entry point function.
  - Verify `ibc2_timeout_counter` increments correctly.
  - Add test for `QueryTimeoutCounter` message.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/CosmWasm/cosmwasm/issues/2422?shareId=XXXX-XXXX-XXXX-XXXX).
@kulikthebird kulikthebird self-assigned this Apr 22, 2025
@kulikthebird kulikthebird linked a pull request Apr 22, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant