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
46 lines
1,016 B
TOML
46 lines
1,016 B
TOML
[package]
|
|
name = "synor-ibc"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
authors.workspace = true
|
|
license.workspace = true
|
|
description = "Inter-Blockchain Communication (IBC) protocol for Synor cross-chain interoperability"
|
|
|
|
[dependencies]
|
|
# Local workspace crates
|
|
synor-types = { path = "../synor-types" }
|
|
synor-crypto = { path = "../synor-crypto" }
|
|
|
|
# Serialization
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
borsh = { workspace = true }
|
|
|
|
# Cryptography
|
|
sha2 = "0.10"
|
|
blake3 = { workspace = true }
|
|
rand = { workspace = true }
|
|
|
|
# Async runtime
|
|
tokio = { version = "1", features = ["full"] }
|
|
async-trait = "0.1"
|
|
|
|
# Utilities
|
|
thiserror = { workspace = true }
|
|
hex = { workspace = true }
|
|
parking_lot = { workspace = true }
|
|
tracing = "0.1"
|
|
|
|
# Protobuf (for IBC compatibility)
|
|
prost = "0.13"
|
|
prost-types = "0.13"
|
|
|
|
# Time handling
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
[dev-dependencies]
|
|
tempfile = { workspace = true }
|
|
tokio-test = "0.4"
|
|
|
|
[build-dependencies]
|
|
prost-build = "0.13"
|