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(javascore): implement IBCModule on xCall app #228

Merged

Conversation

redlarva
Copy link
Collaborator

@redlarva redlarva commented Apr 6, 2023

Description:

Commit Message

type: commit message

see the guidelines for commit messages.

Changelog Entry

version: <log entry>

Checklist:

  • I have performed a self-review of my own code
  • I have documented my code in accordance with the documentation guidelines
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have run the unit tests
  • I only have one commit (if not, squash them into one commit).
  • I have a descriptive commit message that adheres to the commit message guidelines

Please review the CONTRIBUTING.md file for detailed contributing guidelines.

@redlarva redlarva force-pushed the implement-ibc-module-to-xcall branch from 74221f6 to 7bcf7aa Compare April 6, 2023 16:23
@redlarva redlarva force-pushed the implement-ibc-module-to-xcall branch from 896661e to 6a3d347 Compare April 7, 2023 08:00
@redlarva redlarva marked this pull request as ready for review April 11, 2023 16:44
Copy link
Collaborator

@AntonAndell AntonAndell left a comment

Choose a reason for hiding this comment

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

Looks like a good inital draft of XCall that we can start testing with.
Just some minor comments.

import foundation.icon.score.client.ScoreInterface;

@ScoreInterface
public interface IMock {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this used anywhere?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it is used create empty MockContract for contract address.

Copy link
Collaborator

Choose a reason for hiding this comment

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

You can use sm.createScoreAccount for this, MockContracts are only useful to mock and verify method calls.

changes as per IIP52 standards
set packet timeout to 0
@redlarva redlarva requested a review from AntonAndell April 12, 2023 09:18
Copy link
Collaborator

@AntonAndell AntonAndell left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@redlarva redlarva merged commit 72fce96 into feature/IIBC-26-xCall-contracts Apr 12, 2023
@redlarva redlarva deleted the implement-ibc-module-to-xcall branch April 12, 2023 09:54
AntonAndell pushed a commit that referenced this pull request Apr 24, 2023
* update build.gradle to implement IBC project

* update settings.gradle to implement use xCall

* move and update xCall service for IBC

* add xCall readme

* move and update xCall service for IBC

* update xCall to support IBC messages on HandleBTPMessage

* remove tests for now

* feat(javascore): implement IBCModule on xCall app (#228)

* feat(javascore): implement IBCModule on xCall app

* feat: IIBC-26-javascore-xcall-contract-code-update-review (#286)

* remove commented test files

* remove commented lines for ```checkService```

* set destinationChannel from counterPartyChannelId

* use sequenceNumber from IBCHandler for IBC specific sequence number for IBC Message.

* remove order for ```setTimeoutHeight_unauthorized()```
as they are tested on separate deployments

* remove order as they are tested on separate deployments

---------

Co-authored-by: redlarva <[email protected]>
Co-authored-by: Night Owl <[email protected]>
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.

2 participants