Skip to content

Implement Cross-chain Pledges via IBC Protocols#393

Open
OluRemiFour wants to merge 1 commit into
ShadeProtocol:mainfrom
OluRemiFour:cross-chain
Open

Implement Cross-chain Pledges via IBC Protocols#393
OluRemiFour wants to merge 1 commit into
ShadeProtocol:mainfrom
OluRemiFour:cross-chain

Conversation

@OluRemiFour

Copy link
Copy Markdown

Close: #363

Description

I've implemented the core logic for cross-chain pledges. Here's what was done:

  1. Updated types.rs : Added new DataKey entries for cross-chain pledge storage, plus new types CrossChainPledgeStatus and CrossChainPledge.
  2. Created cross_chain_pledge component : Implemented functions for creating, updating, and querying cross-chain pledges.
  3. Added events : Added CrossChainPledgeCreatedEvent and CrossChainPledgeUpdatedEvent with emission functions in events.rs.
  4. Updated ShadeTrait : Added new methods to the ShadeTrait interface to expose the cross-chain pledge functionality.
  5. Updated shade.rs : Implemented the new ShadeTrait methods, using the cross_chain_pledge component.
  6. Updated errors.rs : Added a NotFound error variant.
    The implementation follows the existing codebase's patterns and includes proper auth checks and pausable functionality!

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Test improvements
  • Other (please describe):

Related Issues

Fixes #

Changes Made

Testing

  • I have added tests that prove my fix is effective or that my feature works
  • All existing tests pass locally
  • I have tested this manually

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Additional Notes

@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@OluRemiFour Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@OluRemiFour

Copy link
Copy Markdown
Author

Done, Close: #393

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.

Implement Cross-chain Pledges via IBC Protocols

1 participant