synor/contracts/ibc-bridge/Cargo.toml
Gulshan Yadav 6037695afb feat(ibc): add Phase 14 Milestone 1 - Cross-Chain IBC Interoperability
Implements full Inter-Blockchain Communication (IBC) protocol:

synor-ibc crate (new):
- Light client management (create, update, verify headers)
- Connection handshake (4-way: Init, Try, Ack, Confirm)
- Channel handshake (4-way: Init, Try, Ack, Confirm)
- Packet handling (send, receive, acknowledge, timeout)
- Merkle commitment proofs for state verification
- ICS-20 fungible token transfer support
- Atomic swap engine with HTLC (hashlock + timelock)

IBC Bridge Contract (contracts/ibc-bridge):
- Token locking/unlocking for cross-chain transfers
- Relayer whitelist management
- Channel registration and sequence tracking
- HTLC atomic swap (create, claim, refund)
- Event emission for indexing
- 52KB optimized WASM binary

Test coverage: 40 tests passing
2026-01-19 16:51:59 +05:30

25 lines
797 B
TOML

[package]
name = "synor-ibc-bridge"
version = "0.1.0"
edition = "2021"
description = "IBC Bridge Contract for cross-chain token transfers and atomic swaps"
authors = ["Synor Team <team@synor.cc>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
# Exclude from parent workspace - contracts are standalone WASM builds
[workspace]
[lib]
crate-type = ["cdylib"]
[dependencies]
synor-sdk = { path = "../../crates/synor-sdk", default-features = false }
borsh = { version = "1.3", default-features = false, features = ["derive"] }
[profile.release]
opt-level = "z" # Optimize for size
lto = true # Link-time optimization
codegen-units = 1 # Single codegen unit for better optimization
panic = "abort" # Abort on panic (smaller binaries)
strip = true # Strip symbols