Skip to content

Conversation

@frenzox
Copy link

@frenzox frenzox commented Jan 12, 2026

Add mailbox dispatch command to send Hyperlane messages from Cardano.

Implementation details:

  • Message ID calculation using keccak256 of Hyperlane message format
  • Merkle tree incremental update algorithm (32 branches)
  • Transaction building with reference script support
  • Dry-run mode for previewing message details

Supporting changes:

  • Add build_mailbox_dispatch_redeemer to cbor.rs
  • Fix change output threshold in tx_builder (> to >=)
  • Increase mailbox minUTxO to 7 ADA for larger datum with 32 branches
  • Redeploy mailbox on preview testnet with new datum structure

Tested successfully on preview testnet:

  • TX: b100677d6a98680617feb1d7af70f064739b40d83fd748c77892052fa85aaa08
  • Message ID: 0x0a0550053cbb78c7bc427e8036689b514c0990f69fb960baecedf48714cc9152

Description

Drive-by changes

Related issues

Backward compatibility

Testing

Add `mailbox dispatch` command to send Hyperlane messages from Cardano.

Implementation details:
- Message ID calculation using keccak256 of Hyperlane message format
- Merkle tree incremental update algorithm (32 branches)
- Transaction building with reference script support
- Dry-run mode for previewing message details

Supporting changes:
- Add build_mailbox_dispatch_redeemer to cbor.rs
- Fix change output threshold in tx_builder (> to >=)
- Increase mailbox minUTxO to 7 ADA for larger datum with 32 branches
- Redeploy mailbox on preview testnet with new datum structure

Tested successfully on preview testnet:
- TX: b100677d6a98680617feb1d7af70f064739b40d83fd748c77892052fa85aaa08
- Message ID: 0x0a0550053cbb78c7bc427e8036689b514c0990f69fb960baecedf48714cc9152
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