diff --git a/modules/consensus/grandpa/primitives/src/justification.rs b/modules/consensus/grandpa/primitives/src/justification.rs index 37132860e..359320f0f 100644 --- a/modules/consensus/grandpa/primitives/src/justification.rs +++ b/modules/consensus/grandpa/primitives/src/justification.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/consensus/grandpa/primitives/src/lib.rs b/modules/consensus/grandpa/primitives/src/lib.rs index 6e9f519b9..8675bc393 100644 --- a/modules/consensus/grandpa/primitives/src/lib.rs +++ b/modules/consensus/grandpa/primitives/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/consensus/grandpa/verifier/src/lib.rs b/modules/consensus/grandpa/verifier/src/lib.rs index ddb966507..0a520d12b 100644 --- a/modules/consensus/grandpa/verifier/src/lib.rs +++ b/modules/consensus/grandpa/verifier/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); @@ -125,7 +125,7 @@ where for (hash, proof) in parachain_headers { if finalized_hashes.binary_search(&hash).is_err() { // seems relay hash isn't in the finalized chain. - continue + continue; } let relay_chain_header = headers.header(&hash).expect("Headers have been checked by AncestryChain; qed"); diff --git a/modules/consensus/sync-committee/README.md b/modules/consensus/sync-committee/README.md index 26e96cfb3..4a0c2f3ef 100644 --- a/modules/consensus/sync-committee/README.md +++ b/modules/consensus/sync-committee/README.md @@ -30,23 +30,23 @@ Consists of the various proof generations for the ethereum beacon chain structs/ - Sync committee update ## verifier -This exports a single function for verifying ethereum's sync committee attestation. +This exports a single function for verifying ethereum's sync committee attestation. # Major Depedencies The major dependencies for this SDK/Library are: -- [ssz-rs](https://github.com/ralexstokes/ssz-rs) +- [ssz-rs](https://github.com/ralexstokes/ssz-rs) - [ethereum-consensus](https://github.com/ralexstokes/ethereum-consensus) # Running the prover tests **NOTE** -1. To run these tests make sure the latest fork version on your devnet is the BELLATRIX_FORK_VERSION as defined in the mainnet config -2. Modify `sync_committee_primitives::types::GENESIS_ROOT_VALIDATORS` defined under the testing +1. To run these tests make sure the latest fork version on your devnet is the BELLATRIX_FORK_VERSION as defined in the mainnet config +2. Modify `sync_committee_primitives::types::GENESIS_ROOT_VALIDATORS` defined under the testing feature flag to match the one that is present in the devnet you are running the tests with -3. Make sure the SLOTS_PER_EPOCH is set to 32 in your devnet. +3. Make sure the SLOTS_PER_EPOCH is set to 32 in your devnet. ## License -This library is licensed under the [Apache 2.0 License](./LICENSE), Copyright (c) 2024 Polytope Labs. +This library is licensed under the [Apache 2.0 License](./LICENSE), Copyright (c) 2025 Polytope Labs. diff --git a/modules/ismp/clients/grandpa/README.md b/modules/ismp/clients/grandpa/README.md index aaf7d2dd3..922da0621 100644 --- a/modules/ismp/clients/grandpa/README.md +++ b/modules/ismp/clients/grandpa/README.md @@ -11,11 +11,11 @@ The Pallet allows the [`AdminOrigin`](https://docs.rs/pallet-ismp/latest/pallet_ ## Setting up When using this consensus client the following should be done in order: - + - Create the consensus state using [`create_consensus_client`](https://docs.rs/pallet-ismp/latest/pallet_ismp/pallet/dispatchables/fn.create_consensus_client.html) - The supported state machine identifiers should be whitelisted in the pallet by calling `add_state_machines` from the [`AdminOrigin`].
- + ## Note If a state machine identifier is not found in the whitelist, ismp datagrams from that chain will be rejected. @@ -27,4 +27,4 @@ If a state machine identifier is not found in the whitelist, ismp datagrams from ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/ismp/clients/grandpa/src/benchmarking.rs b/modules/ismp/clients/grandpa/src/benchmarking.rs index b526dd1be..8a2749c42 100644 --- a/modules/ismp/clients/grandpa/src/benchmarking.rs +++ b/modules/ismp/clients/grandpa/src/benchmarking.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/ismp/clients/grandpa/src/consensus.rs b/modules/ismp/clients/grandpa/src/consensus.rs index 7834fe3a5..d40f2081a 100644 --- a/modules/ismp/clients/grandpa/src/consensus.rs +++ b/modules/ismp/clients/grandpa/src/consensus.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/ismp/clients/grandpa/src/lib.rs b/modules/ismp/clients/grandpa/src/lib.rs index fe65c8e75..655f28823 100644 --- a/modules/ismp/clients/grandpa/src/lib.rs +++ b/modules/ismp/clients/grandpa/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/ismp/clients/grandpa/src/messages.rs b/modules/ismp/clients/grandpa/src/messages.rs index fcb106ac1..a35c17b7f 100644 --- a/modules/ismp/clients/grandpa/src/messages.rs +++ b/modules/ismp/clients/grandpa/src/messages.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/ismp/clients/parachain/client/README.md b/modules/ismp/clients/parachain/client/README.md index 48903a0a2..4be297d7d 100644 --- a/modules/ismp/clients/parachain/client/README.md +++ b/modules/ismp/clients/parachain/client/README.md @@ -12,4 +12,4 @@ The Pallet allows the [`AdminOrigin`](https://docs.rs/pallet-ismp/latest/pallet_ ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/ismp/clients/parachain/inherent/README.md b/modules/ismp/clients/parachain/inherent/README.md index 5e7bd5586..87dc7efe4 100644 --- a/modules/ismp/clients/parachain/inherent/README.md +++ b/modules/ismp/clients/parachain/inherent/README.md @@ -46,7 +46,7 @@ fn start_consensus( ..Default::default() // omitted fields }; - + // ..omitted calls } ``` @@ -54,4 +54,4 @@ fn start_consensus( ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/ismp/clients/parachain/runtime-api/README.md b/modules/ismp/clients/parachain/runtime-api/README.md index 0ace55cfc..1254d62ee 100644 --- a/modules/ismp/clients/parachain/runtime-api/README.md +++ b/modules/ismp/clients/parachain/runtime-api/README.md @@ -22,4 +22,4 @@ impl_runtime_apis! { ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/ismp/core/README.md b/modules/ismp/core/README.md index 618e9dd90..d43e6d4e5 100644 --- a/modules/ismp/core/README.md +++ b/modules/ismp/core/README.md @@ -13,4 +13,4 @@ This repo provides an implementation of the neccessary components laid out in th ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/ismp/state-machines/substrate/README.md b/modules/ismp/state-machines/substrate/README.md index 01e6dcb96..9226a815d 100644 --- a/modules/ismp/state-machines/substrate/README.md +++ b/modules/ismp/state-machines/substrate/README.md @@ -4,4 +4,4 @@ The [`StateMachineClient`](https://docs.rs/ismp/latest/ismp/consensus/trait.Stat ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/pallets/demo/src/lib.rs b/modules/pallets/demo/src/lib.rs index 0444fe927..e0d857afc 100644 --- a/modules/pallets/demo/src/lib.rs +++ b/modules/pallets/demo/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/hyperbridge/README.md b/modules/pallets/hyperbridge/README.md index 108496ceb..7b6fac37e 100644 --- a/modules/pallets/hyperbridge/README.md +++ b/modules/pallets/hyperbridge/README.md @@ -33,5 +33,4 @@ impl IsmpRouter for ModuleRouter { ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. - +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/pallets/ismp/README.md b/modules/pallets/ismp/README.md index bd982f027..bbb438fad 100644 --- a/modules/pallets/ismp/README.md +++ b/modules/pallets/ismp/README.md @@ -133,4 +133,4 @@ impl IsmpModule for YourModule { ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/pallets/ismp/rpc/README.md b/modules/pallets/ismp/rpc/README.md index 9bdbaeeaf..09b5feb5e 100644 --- a/modules/pallets/ismp/rpc/README.md +++ b/modules/pallets/ismp/rpc/README.md @@ -50,4 +50,4 @@ pub fn create_full( ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/pallets/ismp/rpc/src/lib.rs b/modules/pallets/ismp/rpc/src/lib.rs index 7fe0dceee..4ca9c319c 100644 --- a/modules/pallets/ismp/rpc/src/lib.rs +++ b/modules/pallets/ismp/rpc/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/ismp/runtime-api/README.md b/modules/pallets/ismp/runtime-api/README.md index 63dcc5b64..649b71882 100644 --- a/modules/pallets/ismp/runtime-api/README.md +++ b/modules/pallets/ismp/runtime-api/README.md @@ -60,4 +60,4 @@ sp_api::impl_runtime_apis! { ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/pallets/ismp/runtime-api/src/lib.rs b/modules/pallets/ismp/runtime-api/src/lib.rs index 0e39836ad..78e9d64ee 100644 --- a/modules/pallets/ismp/runtime-api/src/lib.rs +++ b/modules/pallets/ismp/runtime-api/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/ismp/src/child_trie.rs b/modules/pallets/ismp/src/child_trie.rs index 3355c8e9a..8aba819f6 100644 --- a/modules/pallets/ismp/src/child_trie.rs +++ b/modules/pallets/ismp/src/child_trie.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/ismp/src/dispatcher.rs b/modules/pallets/ismp/src/dispatcher.rs index 1d27a5547..6748216d4 100644 --- a/modules/pallets/ismp/src/dispatcher.rs +++ b/modules/pallets/ismp/src/dispatcher.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/ismp/src/errors.rs b/modules/pallets/ismp/src/errors.rs index d22c12030..63db2b924 100644 --- a/modules/pallets/ismp/src/errors.rs +++ b/modules/pallets/ismp/src/errors.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/ismp/src/events.rs b/modules/pallets/ismp/src/events.rs index 6e0ce74a8..c30ae9d8d 100644 --- a/modules/pallets/ismp/src/events.rs +++ b/modules/pallets/ismp/src/events.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/ismp/src/host.rs b/modules/pallets/ismp/src/host.rs index 40d73a6bc..f38ed8720 100644 --- a/modules/pallets/ismp/src/host.rs +++ b/modules/pallets/ismp/src/host.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/ismp/src/impls.rs b/modules/pallets/ismp/src/impls.rs index f39a00035..fcffadafe 100644 --- a/modules/pallets/ismp/src/impls.rs +++ b/modules/pallets/ismp/src/impls.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); @@ -34,46 +34,6 @@ use ismp::{ use sp_core::{offchain::StorageKind, H256}; impl Pallet { - /// Generate an MMR proof for the given `leaf_indices`. - /// Note this method can only be used from an off-chain context - /// (Offchain Worker or Runtime API call), since it requires - /// all the leaves to be present. - /// It may return an error or panic if used incorrectly. - pub fn generate_proof( - keys: ProofKeys, - ) -> Result<(Vec, Proof), sp_mmr_primitives::Error> { - let leaf_indices_and_positions = match keys { - ProofKeys::Requests(commitments) => commitments - .into_iter() - .map(|commitment| { - let val = RequestCommitments::::get(commitment) - .ok_or_else(|| sp_mmr_primitives::Error::LeafNotFound)? - .offchain; - Ok(val) - }) - .collect::, _>>()?, - ProofKeys::Responses(commitments) => commitments - .into_iter() - .map(|commitment| { - let val = ResponseCommitments::::get(commitment) - .ok_or_else(|| sp_mmr_primitives::Error::LeafNotFound)? - .offchain; - Ok(val) - }) - .collect::, _>>()?, - }; - let indices = - leaf_indices_and_positions.iter().map(|val| val.leaf_index).collect::>(); - let (leaves, proof) = T::OffchainDB::proof(indices)?; - let proof = Proof { - leaf_indices_and_pos: leaf_indices_and_positions, - leaf_count: proof.leaf_count, - items: proof.items, - }; - - Ok((leaves, proof)) - } - /// Execute the provided ISMP datagrams, this will short circuit if any messages are invalid. pub fn execute(messages: Vec) -> DispatchResultWithPostInfo { // Define a host diff --git a/modules/pallets/ismp/src/lib.rs b/modules/pallets/ismp/src/lib.rs index 18f446162..a2a7f0e48 100644 --- a/modules/pallets/ismp/src/lib.rs +++ b/modules/pallets/ismp/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); @@ -245,7 +245,6 @@ pub mod pallet { let child_trie_root = H256::from_slice(&child_trie_root); ChildTrieRoot::::put::(child_trie_root.into()); - // Only finalize if mmr was modified let root = match T::OffchainDB::finalize() { Ok(root) => root, Err(e) => { diff --git a/modules/pallets/ismp/src/offchain.rs b/modules/pallets/ismp/src/offchain.rs index dbf8af296..65f0ef8d0 100644 --- a/modules/pallets/ismp/src/offchain.rs +++ b/modules/pallets/ismp/src/offchain.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/ismp/src/utils.rs b/modules/pallets/ismp/src/utils.rs index e26d04377..f4619c9d1 100644 --- a/modules/pallets/ismp/src/utils.rs +++ b/modules/pallets/ismp/src/utils.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/ismp/src/weights.rs b/modules/pallets/ismp/src/weights.rs index 1b156ae15..cefaa0e4b 100644 --- a/modules/pallets/ismp/src/weights.rs +++ b/modules/pallets/ismp/src/weights.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/mmr/rpc/src/lib.rs b/modules/pallets/mmr/rpc/src/lib.rs index 24cc206e7..cc7c3a643 100644 --- a/modules/pallets/mmr/rpc/src/lib.rs +++ b/modules/pallets/mmr/rpc/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/testsuite/src/runtime.rs b/modules/pallets/testsuite/src/runtime.rs index 906494a3e..66ccaa670 100644 --- a/modules/pallets/testsuite/src/runtime.rs +++ b/modules/pallets/testsuite/src/runtime.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/testsuite/src/tests/pallet_call_decompressor.rs b/modules/pallets/testsuite/src/tests/pallet_call_decompressor.rs index df76a2940..133daec13 100644 --- a/modules/pallets/testsuite/src/tests/pallet_call_decompressor.rs +++ b/modules/pallets/testsuite/src/tests/pallet_call_decompressor.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/testsuite/src/tests/pallet_fishermen.rs b/modules/pallets/testsuite/src/tests/pallet_fishermen.rs index dd93f2d56..2760bc107 100644 --- a/modules/pallets/testsuite/src/tests/pallet_fishermen.rs +++ b/modules/pallets/testsuite/src/tests/pallet_fishermen.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/testsuite/src/tests/pallet_hyperbridge.rs b/modules/pallets/testsuite/src/tests/pallet_hyperbridge.rs index 8b7c9b0ce..b47f39450 100644 --- a/modules/pallets/testsuite/src/tests/pallet_hyperbridge.rs +++ b/modules/pallets/testsuite/src/tests/pallet_hyperbridge.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/testsuite/src/tests/pallet_ismp.rs b/modules/pallets/testsuite/src/tests/pallet_ismp.rs index b29f9f0f2..3bb6a6cb9 100644 --- a/modules/pallets/testsuite/src/tests/pallet_ismp.rs +++ b/modules/pallets/testsuite/src/tests/pallet_ismp.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/testsuite/src/tests/pallet_ismp_host_executive.rs b/modules/pallets/testsuite/src/tests/pallet_ismp_host_executive.rs index a5a501697..a2a6700fe 100644 --- a/modules/pallets/testsuite/src/tests/pallet_ismp_host_executive.rs +++ b/modules/pallets/testsuite/src/tests/pallet_ismp_host_executive.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/testsuite/src/tests/pallet_ismp_relayer.rs b/modules/pallets/testsuite/src/tests/pallet_ismp_relayer.rs index 60c6bb278..e728581c5 100644 --- a/modules/pallets/testsuite/src/tests/pallet_ismp_relayer.rs +++ b/modules/pallets/testsuite/src/tests/pallet_ismp_relayer.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/modules/pallets/token-gateway/README.md b/modules/pallets/token-gateway/README.md index b8ea56f60..21c74d803 100644 --- a/modules/pallets/token-gateway/README.md +++ b/modules/pallets/token-gateway/README.md @@ -18,7 +18,7 @@ use ismp::router::IsmpRouter; parameter_types! { // A constant that should represent the native asset id - pub const NativeAssetId: u32 = 0; + pub const NativeAssetId: u32 = 0; // Set the correct precision for the native currency pub const Decimals: u8 = 12; } @@ -35,7 +35,7 @@ impl Get for AssetAdmin { impl pallet_token_gateway::Config for Runtime { // configure the runtime event type RuntimeEvent = RuntimeEvent; - // Pallet Ismp + // Pallet Ismp type Dispatcher = Ismp; // Pallet Assets type Assets = Assets; @@ -64,7 +64,7 @@ impl IsmpRouter for Router { Ok(module) } } -``` +``` ## Setting up @@ -72,7 +72,7 @@ The pallet requires some setting up before the teleport function is available fo 1. Register your native assets directly on `Hyperbridge` by dispatching `create_erc6160_asset`. 3. Set token gateway addresses for the EVM chains of interest by dispatching the `set_token_gateway_addresses` extrinsic. These addresses are used to validate incoming messages. - + ## Dispatchable Functions @@ -83,4 +83,4 @@ The pallet requires some setting up before the teleport function is available fo ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/pallets/token-gateway/primitives/README.md b/modules/pallets/token-gateway/primitives/README.md index 6139aecb1..6ef9e31ba 100644 --- a/modules/pallets/token-gateway/primitives/README.md +++ b/modules/pallets/token-gateway/primitives/README.md @@ -4,4 +4,4 @@ A collection of types used by token gateway ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/modules/trees/ethereum/README.md b/modules/trees/ethereum/README.md index a20e03090..a09bb5766 100644 --- a/modules/trees/ethereum/README.md +++ b/modules/trees/ethereum/README.md @@ -67,4 +67,4 @@ This library also supports `no_std`, simply add `default-features = false` to th ## License -This library is licensed under the Apache 2.0 License, Copyright (c) 2024 Polytope Labs. +This library is licensed under the Apache 2.0 License, Copyright (c) 2025 Polytope Labs. diff --git a/tesseract/config/src/lib.rs b/tesseract/config/src/lib.rs index c54374b03..b086f868e 100644 --- a/tesseract/config/src/lib.rs +++ b/tesseract/config/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (c) 2024 Polytope Labs. +// Copyright (c) 2025 Polytope Labs. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License");