Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 43 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ members = [


# Airdrop
"modules/pallets/bridge-drop",
"modules/pallets/bridge-drop", "modules/pallets/pallet-log-emitter", "modules/ismp/clients/hyperbridge-parachain/client", "modules/ismp/clients/hyperbridge-parachain/inherent",
]

# Config for 'cargo dist'
Expand Down Expand Up @@ -239,6 +239,7 @@ arbitrum-verifier = { path = "./modules/ismp/clients/arbitrum", default-features
op-verifier = { path = "./modules/ismp/clients/optimism", default-features = false }
ismp-arbitrum = { path = "modules/ismp/clients/ismp-arbitrum", default-features = false }
ismp-optimism = { path = "modules/ismp/clients/ismp-optimism", default-features = false }
hyperbridge-ismp-parachain = { path = "modules/ismp/clients/hyperbridge-parachain/client", default-features = false }

# state machine clients
evm-state-machine = { path = "./modules/ismp/state-machines/evm", default-features = false }
Expand All @@ -257,6 +258,8 @@ pallet-state-coprocessor = { path = "modules/pallets/state-coprocessor", default
pallet-token-gateway-inspector = { path = "modules/pallets/token-gateway-inspector", default-features = false }
pallet-bridge-airdrop = { path = "modules/pallets/bridge-drop", default-features = false }

pallet-log-emitter = { path = "modules/pallets/pallet-log-emitter", default-features = false }

# merkle trees
ethereum-triedb = { version = "0.1.1", path = "./modules/trees/ethereum", default-features = false }
pallet-mmr-tree = { path = "modules/pallets/mmr", default-features = false }
Expand All @@ -268,6 +271,7 @@ mmr-gadget = { path = "modules/pallets/mmr/gadget" }
# runtimes
gargantua-runtime = { path = "./parachain/runtimes/gargantua", default-features = false }
nexus-runtime = { path = "./parachain/runtimes/nexus", default-features = false }
messier-runtime = { path = "./parachain/runtimes/messier", default-features = false }

# tesseract
tesseract-primitives = { path = "tesseract/messaging/primitives" }
Expand Down Expand Up @@ -343,3 +347,7 @@ features = ["derive"]
[workspace.dependencies.reconnecting-jsonrpsee-ws-client]
version = "0.5.0"
default-features = false


[patch.crates-io]
pallet-revive = { path = "vendor/pallet-revive" }
59 changes: 59 additions & 0 deletions modules/ismp/clients/hyperbridge-parachain/client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[package]
name = "hyperbridge-ismp-parachain"
version = "0.1.0"
edition = "2024"
authors = ["Polytope Labs <[email protected]>"]
license = "Apache-2.0"

[dependencies]
# crates.io
serde = { workspace = true, features = ["derive"], optional = false }
codec = { workspace = true, features = ["derive"] }
scale-info = { workspace = true, features = ["derive"] }
hex-literal = { workspace = true }
hex = { workspace = true }
primitive-types = { workspace = true }
log = { workspace = true }
alloy-rlp = { workspace = true }
alloy-sol-types = { workspace = true, default-features = false }
# local
substrate-state-machine = { workspace = true }
ismp = { workspace = true }
pallet-ismp = { workspace = true }

[dependencies.polkadot-sdk]
workspace = true
features = [
"frame-support",
"frame-system",
"sp-trie",
"sp-inherents",
"sp-io",
"sp-runtime",
"sp-consensus-aura",
"cumulus-pallet-parachain-system",
"cumulus-primitives-core",
"pallet-revive"
]

[features]
default = ["std"]
std = [
"codec/std",
"polkadot-sdk/std",
"scale-info/std",
"ismp/std",
"log/std",
"primitive-types/std",
"pallet-ismp/std",
"substrate-state-machine/std",
"alloy-rlp/std",
"alloy-sol-types/std",
]
try-runtime = ["polkadot-sdk/try-runtime"]
runtime-benchmarks = [
"polkadot-sdk/frame-benchmarking",
"polkadot-sdk/runtime-benchmarks",
"pallet-ismp/runtime-benchmarks",
]

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
interface IHyperbridgeVerifier {
struct StateCommitment {
uint64 timestamp;
bytes32 overlayRoot;
bytes32 stateRoot;
}

struct StateCommitmentHeight {
StateCommitment commitment;
uint64 height;
}

function latestStateCommitment() external view returns (StateCommitmentHeight memory);
}
Loading