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
73 changes: 73 additions & 0 deletions Cargo.lock

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

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ members = [
"modules/ismp/clients/arbitrum",
"modules/ismp/clients/optimism",
"modules/ismp/clients/bsc",
"modules/ismp/clients/kaia",
"modules/ismp/clients/pharos",
"modules/ismp/clients/grandpa",
"modules/ismp/testsuite",
Expand All @@ -52,6 +53,8 @@ members = [
"modules/consensus/geth-primitives",
"modules/consensus/bsc/verifier",
"modules/consensus/bsc/prover",
"modules/consensus/kaia/verifier",
"modules/consensus/kaia/prover",
"modules/consensus/grandpa/prover",
"modules/consensus/grandpa/primitives",
"modules/consensus/grandpa/verifier",
Expand Down Expand Up @@ -113,6 +116,7 @@ members = [
"tesseract/consensus/op-host",
"tesseract/consensus/evm-host",
"tesseract/consensus/bsc",
"tesseract/consensus/kaia",
"tesseract/consensus/sync-committee",
"tesseract/consensus/grandpa",
"tesseract/consensus/integration-tests",
Expand Down Expand Up @@ -280,6 +284,8 @@ beefy-prover = { path = "./modules/consensus/beefy/prover" }
beefy-verifier = { path = "./modules/consensus/beefy/verifier", default-features = false }
bsc-prover = { path = "./modules/consensus/bsc/prover" }
bsc-verifier = { path = "./modules/consensus/bsc/verifier", default-features = false }
kaia-prover = { path = "./modules/consensus/kaia/prover" }
kaia-verifier = { path = "./modules/consensus/kaia/verifier", default-features = false }
geth-primitives = { path = "./modules/consensus/geth-primitives", default-features = false }
sync-committee-primitives = { path = "./modules/consensus/sync-committee/primitives", default-features = false }
sync-committee-prover = { path = "./modules/consensus/sync-committee/prover" }
Expand All @@ -295,6 +301,7 @@ pharos-prover = { path = "./modules/consensus/pharos/prover", default-features =

# consensus clients
ismp-bsc = { path = "./modules/ismp/clients/bsc", default-features = false }
ismp-kaia = { path = "./modules/ismp/clients/kaia", default-features = false }
ismp-pharos = { path = "./modules/ismp/clients/pharos", default-features = false }
ismp-sync-committee = { path = "./modules/ismp/clients/sync-committee", default-features = false }
arbitrum-verifier = { path = "./modules/ismp/clients/arbitrum", default-features = false }
Expand Down Expand Up @@ -356,6 +363,7 @@ op-host = { path = "tesseract/consensus/op-host" }
evm-host = { path = "tesseract/consensus/evm-host" }
tesseract-beefy = { path = "tesseract/consensus/beefy" }
tesseract-bsc = { path = "tesseract/consensus/bsc" }
tesseract-kaia = { path = "tesseract/consensus/kaia" }
tesseract-integration-tests = { path = "tesseract/consensus/integration-tests" }
tesseract-sync-committee = { path = "tesseract/consensus/sync-committee" }
tesseract-grandpa = { path = "tesseract/consensus/grandpa" }
Expand Down
30 changes: 30 additions & 0 deletions docs/content/developers/network/relayer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,36 @@ signer = "SIGNER-KEY"
type = "bsc_testnet"
```

### Kaia

**Mainnet**

```toml lineNumbers
[kaia]
type = "evm"
rpc_urls = ["https://public-en.node.kaia.io"]
signer = "SIGNER-KEY"

[kaia.consensus]
type = "kaia"
```

**Kairos testnet**

```toml lineNumbers
[kaia]
type = "evm"
rpc_urls = ["https://public-en-kairos.node.kaia.io"]
signer = "SIGNER-KEY"

[kaia.consensus]
type = "kaia"
```

The RPC endpoints must serve Kaia's `kaia_*` JSON-RPC namespace — the standard
`eth_*` block queries omit the governance header fields the consensus client
tracks. Public Kaia endpoints and full nodes serve both namespaces.

### Gnosis

**Mainnet**
Expand Down
29 changes: 29 additions & 0 deletions modules/consensus/kaia/prover/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "kaia-prover"
version = "0.1.0"
edition = "2021"
description = "Prover for Kaia's Istanbul BFT consensus"
authors = ["Polytope Labs <hello@polytope.technology>"]
publish = false

[dependencies]
anyhow = { workspace = true, features = ["std"] }
serde = { workspace = true, features = ["derive", "std"] }
json = { workspace = true, features = ["std"] }
hex = { workspace = true, features = ["std"] }
futures = "0.3"
tokio = { workspace = true, features = ["time"] }
reqwest = { workspace = true }
primitive-types = { workspace = true, features = ["std", "serde"] }
ethabi = { workspace = true, features = ["std"] }
ismp = { workspace = true, features = ["std"] }
kaia-verifier = { workspace = true, features = ["std"] }
tracing = "0.1.40"

[dependencies.polkadot-sdk]
workspace = true
features = ["sp-core", "sp-io", "std"]

[dev-dependencies]
tokio = { workspace = true, features = ["full"] }
codec = { workspace = true, features = ["std"] }
Loading