Skip to content

Commit

Permalink
add hashing option to relayer docs
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Dec 20, 2024
1 parent a2cb646 commit 00ddda9
Show file tree
Hide file tree
Showing 77 changed files with 46 additions and 46 deletions.
62 changes: 31 additions & 31 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ members = [

# ismp
"modules/ismp/core",
"modules/ismp/pallets/pallet",
"modules/ismp/pallets/relayer",
"modules/ismp/pallets/fishermen",
"modules/ismp/pallets/host-executive",
"modules/ismp/pallets/rpc",
"modules/ismp/pallets/runtime-api",
"modules/ismp/pallets/demo",
"modules/ismp/pallets/testsuite",
"modules/ismp/pallets/call-decompressor",
"modules/ismp/pallets/asset-gateway",
"modules/ismp/pallets/token-governor",
"modules/ismp/pallets/token-gateway",
"modules/ismp/pallets/token-gateway/primitives",
"modules/ismp/pallets/token-gateway-inspector",
"modules/ismp/pallets/hyperbridge",
"modules/ismp/pallets/state-coprocessor",
"modules/pallets/ismp",
"modules/pallets/relayer",
"modules/pallets/fishermen",
"modules/pallets/host-executive",
"modules/pallets/rpc",
"modules/pallets/runtime-api",
"modules/pallets/demo",
"modules/pallets/testsuite",
"modules/pallets/call-decompressor",
"modules/pallets/asset-gateway",
"modules/pallets/token-governor",
"modules/pallets/token-gateway",
"modules/pallets/token-gateway/primitives",
"modules/pallets/token-gateway-inspector",
"modules/pallets/hyperbridge",
"modules/pallets/state-coprocessor",
"modules/ismp/clients/sync-committee",
"modules/ismp/clients/casper-ffg",
"modules/ismp/clients/parachain/client",
Expand Down Expand Up @@ -301,24 +301,24 @@ substrate-state-machine = { version = "1.15.3", path = "modules/ismp/state-machi
hyperbridge-client-machine = { path = "modules/ismp/state-machines/hyperbridge", default-features = false }

# published pallets
pallet-ismp = { version = "1.15.3", path = "modules/ismp/pallets/pallet", default-features = false }
pallet-ismp-rpc = { version = "1.15.3", path = "modules/ismp/pallets/rpc" }
pallet-ismp-runtime-api = { version = "1.15.3", path = "modules/ismp/pallets/runtime-api", default-features = false }
pallet-hyperbridge = { version = "1.15.3", path = "modules/ismp/pallets/hyperbridge", default-features = false }
pallet-token-gateway = { version = "1.15.3", path = "modules/ismp/pallets/token-gateway", default-features = false }
token-gateway-primitives = { version = "1.15.3", path = "modules/ismp/pallets/token-gateway/primitives", default-features = false }
pallet-ismp = { version = "1.15.3", path = "modules/pallets/ismp", default-features = false }
pallet-ismp-rpc = { version = "1.15.3", path = "modules/pallets/rpc" }
pallet-ismp-runtime-api = { version = "1.15.3", path = "modules/pallets/runtime-api", default-features = false }
pallet-hyperbridge = { version = "1.15.3", path = "modules/pallets/hyperbridge", default-features = false }
pallet-token-gateway = { version = "1.15.3", path = "modules/pallets/token-gateway", default-features = false }
token-gateway-primitives = { version = "1.15.3", path = "modules/pallets/token-gateway/primitives", default-features = false }

# ismp modules
pallet-fishermen = { path = "modules/ismp/pallets/fishermen", default-features = false }
pallet-ismp-demo = { path = "modules/ismp/pallets/demo", default-features = false }
pallet-ismp-relayer = { path = "modules/ismp/pallets/relayer", default-features = false }
pallet-ismp-host-executive = { path = "modules/ismp/pallets/host-executive", default-features = false }
pallet-call-decompressor = { path = "modules/ismp/pallets/call-decompressor", default-features = false }
pallet-xcm-gateway = { path = "modules/ismp/pallets/asset-gateway", default-features = false }
pallet-token-governor = { path = "modules/ismp/pallets/token-governor", default-features = false }
pallet-state-coprocessor = { path = "modules/ismp/pallets/state-coprocessor", default-features = false }
pallet-fishermen = { path = "modules/pallets/fishermen", default-features = false }
pallet-ismp-demo = { path = "modules/pallets/demo", default-features = false }
pallet-ismp-relayer = { path = "modules/pallets/relayer", default-features = false }
pallet-ismp-host-executive = { path = "modules/pallets/host-executive", default-features = false }
pallet-call-decompressor = { path = "modules/pallets/call-decompressor", default-features = false }
pallet-xcm-gateway = { path = "modules/pallets/asset-gateway", default-features = false }
pallet-token-governor = { path = "modules/pallets/token-governor", default-features = false }
pallet-state-coprocessor = { path = "modules/pallets/state-coprocessor", default-features = false }
pallet-mmr = { path = "modules/trees/mmr/pallet", default-features = false }
pallet-token-gateway-inspector = { path = "modules/ismp/pallets/token-gateway-inspector", default-features = false }
pallet-token-gateway-inspector = { path = "modules/pallets/token-gateway-inspector", default-features = false }

# merkle trees
ethereum-triedb = { version = "0.1.1", path = "./modules/trees/ethereum", default-features = false }
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/developers/network/relayer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ type = "substrate"
# - "POLKADOT-{paraId}"
# - "KUSAMA-{paraId}"
state_machine = "KUSAMA-4009"
# Hashing can be "Keccak" or "Blake2"
hashing = "Blake2"
# substrate node ws(s) rpc endpoint.
rpc_ws = "ws://127.0.0.1:9944" # example endpoint
# Configures the maximum size of an rpc request/response in bytes
Expand Down
4 changes: 2 additions & 2 deletions modules/ismp/clients/polygon-pos/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ log = { version = "0.4.17", default-features = false }
ismp = { path = "../../core", default-features = false }
polygon-pos-verifier = { path = "../../../consensus/polygon-pos/verifier", default-features = false }
geth-primitives = { path = "../../../consensus/geth-primitives", default-features = false }
pallet-ismp = { path = "../../pallets", default-features = false }
pallet-ismp = { path = "../../../pallets", default-features = false }
ismp-sync-committee = {path = "../sync-committee", default-features = false}

frame-support = { workspace = true }
Expand All @@ -25,7 +25,7 @@ sp-runtime = { workspace = true }
sp-core = { workspace = true }

[dev-dependencies]
pallet-ismp = { path = "../../pallets", features = [ "testing" ] }
pallet-ismp = { path = "../../../pallets", features = [ "testing" ] }
pallet-timestamp = { workspace = true }
pallet-balances = { workspace = true }

Expand Down
6 changes: 3 additions & 3 deletions modules/ismp/core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ pub enum Error {
},
/// Cannot handle the given message
CannotHandleMessage,
/// Membership proof verification failed
/// Membership proof verification failed: {0}
MembershipProofVerificationFailed(String),
/// Non-membership proof verification failed
/// Non-membership proof verification failed: {0}
NonMembershipProofVerificationFailed(String),
/// Some custom error message
/// Custom error: {0}
Custom(String),
/// A consensus client with the given identifier already exists
CannotCreateAlreadyExistingConsensusClient {
Expand Down

This file was deleted.

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage = "https://docs.hyperbridge.network/developers/polkadot/getting-started
documentation = "https://docs.rs/pallet-hyperbridge"
description = "Pallet hyperbridge mediates the connection between hyperbridge and substrate-based chains."
keywords = ["substrate", "polkadot-sdk", "ISMP", "interoperability"]
readme = "./README.md"
readme = "README.md"

[dependencies]
ismp = { workspace = true }
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage = "https://docs.hyperbridge.network/developers/polkadot/getting-started
documentation = "https://docs.rs/pallet-ismp"
description = "The substrate runtime implementation of the Interoperable State Machine Protocol"
keywords = ["substrate", "polkadot-sdk", "ISMP", "interoperability"]
readme = "./README.md"
readme = "README.md"

[dependencies]
# substrate
Expand All @@ -35,7 +35,7 @@ serde = { workspace = true, features = ["derive"] }
[dev-dependencies]
env_logger = "0.10.0"
pallet-timestamp = { workspace = true, features = ["default"] }
ismp-testsuite = { path = "../../testsuite" }
ismp-testsuite = { path = "../../ismp/testsuite" }

[features]
default = ["std"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl<T: Config> Pallet<T> {
.collect::<Result<Vec<_>, _>>()
})
.map_err(|err| {
log::debug!(target: "ismp", "Handling Error {:?}", err);
log::debug!(target: "ismp", "Handling Error {:#?}", err);
Pallet::<T>::deposit_event(Event::<T>::Errors { errors: vec![err.into()] });
Error::<T>::InvalidMessage
})?;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage = "https://docs.hyperbridge.network/developers/polkadot/getting-started
documentation = "https://docs.rs/pallet-ismp-rpc"
description = "RPC apis for pallet-ismp"
keywords = ["substrate", "polkadot-sdk", "ISMP", "interoperability"]
readme = "./README.md"
readme = "README.md"

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage = "https://docs.hyperbridge.network/developers/polkadot/getting-started
documentation = "https://docs.rs/pallet-ismp"
description = "The substrate runtime API for pallet-ismp"
keywords = ["substrate", "polkadot-sdk", "ISMP", "interoperability"]
readme = "./README.md"
readme = "README.md"

[dependencies]
sp-api = { workspace = true }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/polytope-labs/hyperbridge"
homepage = "https://docs.hyperbridge.network/developers/polkadot/tokengateway"
documentation = "https://docs.rs/pallet-token-gateway"
keywords = ["substrate", "polkadot-sdk", "ISMP", "interoperability", "pallet-assets"]
readme = "./README.md"
readme = "README.md"

[dependencies]
frame-support = { workspace = true }
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/polytope-labs/hyperbridge"
homepage = "https://docs.hyperbridge.network/developers/polkadot/tokengateway"
documentation = "https://docs.rs/pallet-token-gateway"
keywords = ["substrate", "polkadot-sdk", "ISMP", "interoperability", "pallet-assets"]
readme = "./README.md"
readme = "README.md"

[dependencies]
frame-support = { workspace = true }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 00ddda9

Please sign in to comment.