Skip to content

Cardano to Midnight bridge: handler implementation and pallet events added#1188

Merged
LGLO merged 28 commits into
mainfrom
c-to-m-bridge-handler
Apr 14, 2026
Merged

Cardano to Midnight bridge: handler implementation and pallet events added#1188
LGLO merged 28 commits into
mainfrom
c-to-m-bridge-handler

Conversation

@LGLO

@LGLO LGLO commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Overview

Implements Cardano-to-Midnight bridge handler.
According to the newest agreement, the pallet emits events that contain both Cardano Tx Hash and Midnight Ledger Tx hash.

This is backward compatible, because the bridge is not active in any environment.

This is not final, list of things to add is long and there are GH issues prefixed with [C-to-M Bridge].

From functional perspective #1248 is the biggest chunk of work left for future.

Also integration and testing are blocked by the problem with ledger that crashes when bridge transacitons are made.

🗹 TODO before merging

  • Ready

📌 Submission Checklist

  • Changes are backward-compatible (or flagged if breaking)
  • Pull request description explains why the change is needed
  • Self-reviewed the diff
  • I have included a change file, or skipped for this reason:
  • If the changes introduce a new feature, I have bumped the node minor version
  • Update documentation (if relevant)
  • Updated AGENTS.md if build commands, architecture, or workflows changed
  • No new todos introduced

🧪 Testing Evidence

Please describe any additional testing aside from CI:

  • Additional tests are provided (if possible)

🔱 Fork Strategy

  • Node Runtime Update
  • Node Client Update
  • Other:
  • N/A

Links

Closes: #1083

@LGLO LGLO requested a review from justinfrevert April 1, 2026 11:11
@LGLO LGLO force-pushed the c-to-m-bridge-handler branch from ddd7075 to 0d92e70 Compare April 9, 2026 05:40
@LGLO LGLO force-pushed the c-to-m-bridge-handler branch from adb8c56 to ba2eda2 Compare April 9, 2026 10:42
@LGLO

LGLO commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

/bot rebuild-metadata

@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

❌ Metadata rebuild failed. Check the workflow logs for details.

@LGLO LGLO force-pushed the c-to-m-bridge-handler branch from d7454df to 10221e2 Compare April 9, 2026 12:20
@LGLO LGLO changed the title DRAFT: handler of c-to-m transactions Cardano to Midnight bridge: handler implementation and pallet events added Apr 9, 2026
@LGLO LGLO marked this pull request as ready for review April 9, 2026 12:36
@LGLO LGLO requested a review from a team as a code owner April 9, 2026 12:36
@LGLO

LGLO commented Apr 9, 2026

Copy link
Copy Markdown
Contributor Author

/bot rebuild-metadata

@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

✅ Metadata rebuild complete! Changes have been committed.

@LGLO

LGLO commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

/bot rebuild-metadata

@github-actions

Copy link
Copy Markdown
Contributor

✅ Metadata rebuild complete! Changes have been committed.

cosmir17

This comment was marked as duplicate.

Comment thread runtime/src/lib.rs Outdated
LGLO and others added 2 commits April 13, 2026 22:05
@LGLO

LGLO commented Apr 14, 2026

Copy link
Copy Markdown
Contributor Author

/bot rebuild-metadata

@github-actions

Copy link
Copy Markdown
Contributor

✅ Metadata rebuild complete! Changes have been committed.

Comment thread ledger/src/versions/common/mod.rs
Comment thread tests/e2e/src/api/midnight.rs Outdated
Comment thread runtime/src/c2n_bridge.rs Outdated
Comment thread partner-chains/toolkit/bridge/pallet/src/lib.rs
Comment thread runtime/src/c2n_bridge.rs Outdated
Comment thread runtime/src/c2n_bridge.rs Outdated
Comment thread partner-chains/toolkit/bridge/pallet/src/lib.rs Outdated
Comment thread partner-chains/toolkit/bridge/pallet/src/lib.rs Outdated
Comment thread runtime/src/c2m_bridge.rs
Comment thread runtime/src/lib.rs Outdated
LGLO and others added 5 commits April 14, 2026 11:44
Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>
…-m-bridge-handler

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>
Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>
Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>
@LGLO LGLO enabled auto-merge April 14, 2026 11:15
@LGLO LGLO disabled auto-merge April 14, 2026 11:15
@LGLO LGLO enabled auto-merge April 14, 2026 11:16
@LGLO

LGLO commented Apr 14, 2026

Copy link
Copy Markdown
Contributor Author

/bot rebuild-metadata

@github-actions

Copy link
Copy Markdown
Contributor

✅ Metadata rebuild complete! Changes have been committed.

@LGLO LGLO added this pull request to the merge queue Apr 14, 2026
Merged via the queue into main with commit 5674850 Apr 14, 2026
33 checks passed
@LGLO LGLO deleted the c-to-m-bridge-handler branch April 14, 2026 14:04
m2ux added a commit that referenced this pull request Apr 23, 2026
…added (#1188)

* WIP handler of c-to-m transactions

* Update with events emitted from pallet

* fix clippy

* Fix e2e test helpers

* Port PR from partner-chains

* Implement inherit double execution protection test

* Revert tests, res, configuration, toolkit and tests

* fmt

* changes file

* chore: rebuild metadata

* chore: rebuild metadata

* Revert metadata

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>

* Move c2n-bridge handler to a separate mod

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>

* chore: rebuild metadata

* Review comments and stateless nonce computation

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>

* Fix file name

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>

* Fix clippy

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>

* chore: rebuild metadata

---------

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>
Co-authored-by: Lech Głowiak <lech.glowiak@iohk.io>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Mike Clay <mike.clay@shielded.io>
m2ux added a commit that referenced this pull request Apr 23, 2026
…added (#1188)

* WIP handler of c-to-m transactions

* Update with events emitted from pallet

* fix clippy

* Fix e2e test helpers

* Port PR from partner-chains

* Implement inherit double execution protection test

* Revert tests, res, configuration, toolkit and tests

* fmt

* changes file

* chore: rebuild metadata

* chore: rebuild metadata

* Revert metadata

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>

* Move c2n-bridge handler to a separate mod

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>

* chore: rebuild metadata

* Review comments and stateless nonce computation

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>

* Fix file name

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>

* Fix clippy

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>

* chore: rebuild metadata

---------

Signed-off-by: Lech Głowiak <lech.glowiak@shielded.io>
Co-authored-by: Lech Głowiak <lech.glowiak@iohk.io>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Mike Clay <mike.clay@shielded.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C-to-M Bridge] Pass Cardano Tx to Bridge handler [C-to-M Bridge] Implement MidnightTokenTransferHandler

5 participants