diff --git a/Cargo.toml b/Cargo.toml index 01b33fe1b..9975914e9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,9 +11,9 @@ strip = "symbols" members = [ "client", "primitives", - "pallets/anonymity-mining-rewards", - "pallets/anonymity-mining-claims", - "pallets/claims-verifier", + "pallets/masp/anonymity-mining-rewards", + "pallets/masp/anonymity-mining-claims", + "pallets/masp/claims-verifier", "pallets/asset-registry", "pallets/hasher", "pallets/verifier", diff --git a/circom-proving/src/lib.rs b/circom-proving/src/lib.rs index 58e2009cd..30a163090 100644 --- a/circom-proving/src/lib.rs +++ b/circom-proving/src/lib.rs @@ -90,7 +90,7 @@ pub fn generate_proof( Ok((proof, full_assignment)) } -/// Verifies a given RLN proof +/// Verifies a Groth16 proof /// /// # Errors /// diff --git a/client/tests/utils.rs b/client/tests/utils.rs index 02703a2e5..cc4839b79 100644 --- a/client/tests/utils.rs +++ b/client/tests/utils.rs @@ -215,26 +215,6 @@ pub fn generate_proof( Ok((proof, full_assignment)) } -/// Verifies a given RLN proof -/// -/// # Errors -/// -/// Returns a [`ProofError`] if verifying fails. Verification failure does not -/// necessarily mean the proof is incorrect. -pub fn verify_proof( - verifying_key: &VerifyingKey, - proof: &ArkProof, - inputs: &Vec, -) -> Result { - // Check that the proof is valid - let pvk = prepare_verifying_key(verifying_key); - //let pr: ArkProof = (*proof).into(); - - let verified = ark_verify_proof(&pvk, proof, inputs)?; - - Ok(verified) -} - // Initializes the witness calculator using a bytes vector #[cfg(not(target_arch = "wasm32"))] pub fn circom_from_raw(wasm_buffer: Vec) -> &'static Mutex { diff --git a/pallets/asset-registry/src/lib.rs b/pallets/asset-registry/src/lib.rs index 4103ba1f4..cf8f4b236 100644 --- a/pallets/asset-registry/src/lib.rs +++ b/pallets/asset-registry/src/lib.rs @@ -1,19 +1,80 @@ -// This file is part of Basilisk-node. +// This file is part of Webb. -// Copyright (C) 2020-2021 Intergalactic, Limited (GIB). +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. + +//! # Asset Registry Pallet +//! +//! The Asset Registry pallet provides functionality to register and manage assets on-chain. +//! +//! ## Overview +//! +//! The Asset Registry pallet allows users to register and update assets with unique names and asset +//! types. It also provides the ability to set metadata, such as symbols and decimals, for +//! registered assets. Additionally, the pallet supports setting the native location of assets and +//! managing asset pools by adding or removing assets from existing pools. +//! +//! To use the Asset Registry pallet in your runtime, you need to implement the `Config` trait. This +//! trait defines the types and constants required by the pallet. +//! +//! ## Extrinsics +//! +//! The Asset Registry pallet provides the following extrinsics: +//! +//! - `register`: Register a new asset with a unique name and asset type. +//! - `update`: Update the details of an existing asset. +//! - `set_metadata`: Set metadata for an asset, such as symbol and decimals. +//! - `set_location`: Set the native location of an asset. +//! - `add_asset_to_pool`: Add an asset to an existing asset pool. +//! - `delete_asset_from_pool`: Remove an asset from an existing asset pool. +//! +//! ## Functions +//! +//! The Asset Registry pallet also exposes the following functions to be used internall: +//! +//! - `asset_to_location`: Retrieve the native location of an asset. +//! - `location_to_asset`: Retrieve the asset ID for a given native location. +//! - `contains_asset`: Check if an asset is present in a pool share. +//! - `add_asset_to_existing_pool`: Add an asset to an existing pool share. +//! - `delete_asset_from_existing_pool`: Remove an asset from an existing pool share. +//! - `get`: Retrieve the existential deposit of an asset. +//! +//! ## Events +//! +//! The Asset Registry pallet emits the following events: +//! +//! - `Registered`: Indicates that an asset was successfully registered. +//! - `Updated`: Indicates that an asset was successfully updated. +//! - `MetadataSet`: Indicates that metadata was set for an asset. +//! - `LocationSet`: Indicates that the native location was set for an asset. +//! +//! For more details on the usage and configuration of the Asset Registry pallet, refer to the +//! documentation of the provided types and functions. +//! +//! [`register`]: Call::register +//! [`update`]: Call::update +//! [`set_metadata`]: Call::set_metadata +//! [`set_location`]: Call::set_location +//! [`add_asset_to_pool`]: Call::add_asset_to_pool +//! [`delete_asset_from_pool`]: Call::delete_asset_from_pool +//! [`asset_to_location`]: Pallet::asset_to_location +//! [`location_to_asset`]: Pallet::location_to_asset +//! [`contains_asset`]: Pallet::contains_asset +//! [`add_asset_to_existing_pool`]: Pallet::add_asset_to_existing_pool +//! [`delete_asset_from_existing_pool`]: Pallet::delete + #![allow(clippy::type_complexity)] #![cfg_attr(not(feature = "std"), no_std)] @@ -261,13 +322,11 @@ pub mod pallet { /// New asset is given `NextAssetId` - sequential asset id /// /// Adds mapping between `name` and assigned `asset_id` so asset id can - /// be retrieved by name too (Note: this approach is used in AMM - /// implementation (xyk)) + /// be retrieved by name too. /// /// Emits 'Registered` event when successful. #[pallet::weight(::WeightInfo::register())] #[pallet::call_index(0)] - pub fn register( origin: OriginFor, name: BoundedVec, diff --git a/pallets/hasher/src/benchmarking.rs b/pallets/hasher/src/benchmarking.rs index b9a018edb..a638668e9 100644 --- a/pallets/hasher/src/benchmarking.rs +++ b/pallets/hasher/src/benchmarking.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/hasher/src/lib.rs b/pallets/hasher/src/lib.rs index 5c7dba1aa..44739b0c9 100644 --- a/pallets/hasher/src/lib.rs +++ b/pallets/hasher/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/key-storage/src/benchmarking.rs b/pallets/key-storage/src/benchmarking.rs index db13437cf..8cbb1635d 100644 --- a/pallets/key-storage/src/benchmarking.rs +++ b/pallets/key-storage/src/benchmarking.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/linkable-tree/rpc/src/error.rs b/pallets/linkable-tree/rpc/src/error.rs index 7dd234e87..70ee4c4b3 100644 --- a/pallets/linkable-tree/rpc/src/error.rs +++ b/pallets/linkable-tree/rpc/src/error.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/linkable-tree/rpc/src/lib.rs b/pallets/linkable-tree/rpc/src/lib.rs index ae750d4d3..3f0515c9c 100644 --- a/pallets/linkable-tree/rpc/src/lib.rs +++ b/pallets/linkable-tree/rpc/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/linkable-tree/src/benchmarking.rs b/pallets/linkable-tree/src/benchmarking.rs index 0a1559947..3154de261 100644 --- a/pallets/linkable-tree/src/benchmarking.rs +++ b/pallets/linkable-tree/src/benchmarking.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/linkable-tree/src/lib.rs b/pallets/linkable-tree/src/lib.rs index 650807c8f..20f3efcec 100644 --- a/pallets/linkable-tree/src/lib.rs +++ b/pallets/linkable-tree/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/anonymity-mining-claims/Cargo.toml b/pallets/masp/anonymity-mining-claims/Cargo.toml similarity index 82% rename from pallets/anonymity-mining-claims/Cargo.toml rename to pallets/masp/anonymity-mining-claims/Cargo.toml index 935cc8bf8..51fb2f729 100644 --- a/pallets/anonymity-mining-claims/Cargo.toml +++ b/pallets/masp/anonymity-mining-claims/Cargo.toml @@ -16,20 +16,20 @@ codec = { package = "parity-scale-codec", version = "3", default-features = fals scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", branch = "polkadot-v0.9.39", default-features = false } -pallet-asset-registry = { path = "../asset-registry", default-features = false } +pallet-asset-registry = { path = "../../asset-registry", default-features = false } pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-linkable-tree = { path = "../linkable-tree", default-features = false } -pallet-mt = { path = "../mt", default-features = false } -pallet-signature-bridge = { path = "../../pallets/signature-bridge", default-features = false } -pallet-token-wrapper = { path = "../token-wrapper", default-features = false } -pallet-vanchor = { path = "../vanchor", default-features = false } -pallet-vanchor-handler = { path = "../../pallets/vanchor-handler", default-features = false } +pallet-linkable-tree = { path = "../../linkable-tree", default-features = false } +pallet-mt = { path = "../../mt", default-features = false } +pallet-signature-bridge = { path = "../../../pallets/signature-bridge", default-features = false } +pallet-token-wrapper = { path = "../../token-wrapper", default-features = false } +pallet-vanchor = { path = "../../vanchor", default-features = false } +pallet-vanchor-handler = { path = "../../../pallets/vanchor-handler", default-features = false } frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -webb-primitives = { path = "../../primitives", default-features = false } +webb-primitives = { path = "../../../primitives", default-features = false } [dev-dependencies] ark-bls12-381 = { version = "^0.3.0", default-features = false, features = ["curve"] } @@ -46,10 +46,10 @@ hex = "0.4" orml-currencies = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", branch = "polkadot-v0.9.39", default-features = false } orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", branch = "polkadot-v0.9.39", default-features = false } pallet-claims-verifier = { path = "../claims-verifier", default-features = false } -pallet-hasher = { path = "../hasher", default-features = false } -pallet-key-storage = { path = "../key-storage" } +pallet-hasher = { path = "../../hasher", default-features = false } +pallet-key-storage = { path = "../../key-storage" } pallet-timestamp = { default-features = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" } -pallet-vanchor-verifier = { path = "../vanchor-verifier", default-features = false } +pallet-vanchor-verifier = { path = "../../vanchor-verifier", default-features = false } serde = { version = "1.0.119" } sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } @@ -59,7 +59,7 @@ sp-runtime = { default-features = false, git = "https://github.com/paritytech/su ark-circom = { git = "https://github.com/vacp2p/ark-circom", branch = "wasm", default-features = false, features = ["circom-2"] } ark-groth16 = { git = "https://github.com/arkworks-rs/groth16", rev = "765817f", default-features = false, features = ["parallel"] } cfg-if = "1.0" -circom-proving = { path = "../../circom-proving", default-features = false } +circom-proving = { path = "../../../circom-proving", default-features = false } color-eyre = "0.6.1" num-bigint = { version = "0.4", default-features = false, features = ["rand"] } num-traits = "0.2.11" diff --git a/pallets/anonymity-mining-claims/firstTransactionInputs.json b/pallets/masp/anonymity-mining-claims/firstTransactionInputs.json similarity index 100% rename from pallets/anonymity-mining-claims/firstTransactionInputs.json rename to pallets/masp/anonymity-mining-claims/firstTransactionInputs.json diff --git a/pallets/anonymity-mining-claims/secondTransactionInputs.json b/pallets/masp/anonymity-mining-claims/secondTransactionInputs.json similarity index 100% rename from pallets/anonymity-mining-claims/secondTransactionInputs.json rename to pallets/masp/anonymity-mining-claims/secondTransactionInputs.json diff --git a/pallets/anonymity-mining-claims/src/lib.rs b/pallets/masp/anonymity-mining-claims/src/lib.rs similarity index 99% rename from pallets/anonymity-mining-claims/src/lib.rs rename to pallets/masp/anonymity-mining-claims/src/lib.rs index da6019af1..17fb899c5 100644 --- a/pallets/anonymity-mining-claims/src/lib.rs +++ b/pallets/masp/anonymity-mining-claims/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/anonymity-mining-claims/src/mock.rs b/pallets/masp/anonymity-mining-claims/src/mock.rs similarity index 100% rename from pallets/anonymity-mining-claims/src/mock.rs rename to pallets/masp/anonymity-mining-claims/src/mock.rs diff --git a/pallets/anonymity-mining-claims/src/test_utils.rs b/pallets/masp/anonymity-mining-claims/src/test_utils.rs similarity index 98% rename from pallets/anonymity-mining-claims/src/test_utils.rs rename to pallets/masp/anonymity-mining-claims/src/test_utils.rs index 76ad6561c..beaea429c 100644 --- a/pallets/anonymity-mining-claims/src/test_utils.rs +++ b/pallets/masp/anonymity-mining-claims/src/test_utils.rs @@ -45,11 +45,11 @@ pub fn setup_environment_with_circom( setup_environment(); println!("Setting up ZKey"); - let path_2_2 = "../../solidity-fixtures/solidity-fixtures/reward_2/30/circuit_final.zkey"; + let path_2_2 = "../../../solidity-fixtures/solidity-fixtures/reward_2/30/circuit_final.zkey"; let mut file_2_2 = File::open(path_2_2).unwrap(); let params_2_2 = read_zkey(&mut file_2_2).unwrap(); - let wasm_2_2_path = "../../solidity-fixtures/solidity-fixtures/reward_2/30/reward_30_2.wasm"; + let wasm_2_2_path = "../../../solidity-fixtures/solidity-fixtures/reward_2/30/reward_30_2.wasm"; let wc_2_2 = circom_from_folder(wasm_2_2_path); diff --git a/pallets/anonymity-mining-claims/src/tests.rs b/pallets/masp/anonymity-mining-claims/src/tests.rs similarity index 100% rename from pallets/anonymity-mining-claims/src/tests.rs rename to pallets/masp/anonymity-mining-claims/src/tests.rs diff --git a/pallets/anonymity-mining-rewards/Cargo.toml b/pallets/masp/anonymity-mining-rewards/Cargo.toml similarity index 80% rename from pallets/anonymity-mining-rewards/Cargo.toml rename to pallets/masp/anonymity-mining-rewards/Cargo.toml index f7e1e08a9..01def0a20 100644 --- a/pallets/anonymity-mining-rewards/Cargo.toml +++ b/pallets/masp/anonymity-mining-rewards/Cargo.toml @@ -16,20 +16,20 @@ codec = { package = "parity-scale-codec", version = "3", default-features = fals scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", branch = "polkadot-v0.9.39", default-features = false } -pallet-asset-registry = { path = "../asset-registry", default-features = false } +pallet-asset-registry = { path = "../../asset-registry", default-features = false } pallet-balances = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -pallet-linkable-tree = { path = "../linkable-tree", default-features = false } -pallet-mt = { path = "../mt", default-features = false } -pallet-signature-bridge = { path = "../../pallets/signature-bridge", default-features = false } -pallet-token-wrapper = { path = "../token-wrapper", default-features = false } -pallet-vanchor = { path = "../vanchor", default-features = false } -pallet-vanchor-handler = { path = "../../pallets/vanchor-handler", default-features = false } +pallet-linkable-tree = { path = "../../linkable-tree", default-features = false } +pallet-mt = { path = "../../mt", default-features = false } +pallet-signature-bridge = { path = "../../../pallets/signature-bridge", default-features = false } +pallet-token-wrapper = { path = "../../token-wrapper", default-features = false } +pallet-vanchor = { path = "../../vanchor", default-features = false } +pallet-vanchor-handler = { path = "../../../pallets/vanchor-handler", default-features = false } frame-support = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } frame-system = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -webb-primitives = { path = "../../primitives", default-features = false } +webb-primitives = { path = "../../../primitives", default-features = false } [dev-dependencies] ark-bls12-381 = { version = "^0.3.0", default-features = false, features = ["curve"] } @@ -45,10 +45,10 @@ frame-benchmarking = { default-features = false, git = "https://github.com/parit hex = "0.4" orml-currencies = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", branch = "polkadot-v0.9.39", default-features = false } orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", branch = "polkadot-v0.9.39", default-features = false } -pallet-hasher = { path = "../hasher", default-features = false } -pallet-key-storage = { path = "../key-storage" } +pallet-hasher = { path = "../../hasher", default-features = false } +pallet-key-storage = { path = "../../key-storage" } pallet-timestamp = { default-features = true, git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.39" } -pallet-vanchor-verifier = { path = "../vanchor-verifier", default-features = false } +pallet-vanchor-verifier = { path = "../../vanchor-verifier", default-features = false } serde = { version = "1.0.119" } sp-core = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } sp-io = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } diff --git a/pallets/anonymity-mining-rewards/src/lib.rs b/pallets/masp/anonymity-mining-rewards/src/lib.rs similarity index 99% rename from pallets/anonymity-mining-rewards/src/lib.rs rename to pallets/masp/anonymity-mining-rewards/src/lib.rs index 3f2dadc8f..6e3d6fc5d 100644 --- a/pallets/anonymity-mining-rewards/src/lib.rs +++ b/pallets/masp/anonymity-mining-rewards/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/anonymity-mining-rewards/src/mock.rs b/pallets/masp/anonymity-mining-rewards/src/mock.rs similarity index 100% rename from pallets/anonymity-mining-rewards/src/mock.rs rename to pallets/masp/anonymity-mining-rewards/src/mock.rs diff --git a/pallets/anonymity-mining-rewards/src/tests.rs b/pallets/masp/anonymity-mining-rewards/src/tests.rs similarity index 100% rename from pallets/anonymity-mining-rewards/src/tests.rs rename to pallets/masp/anonymity-mining-rewards/src/tests.rs diff --git a/pallets/claims-verifier/Cargo.toml b/pallets/masp/claims-verifier/Cargo.toml similarity index 95% rename from pallets/claims-verifier/Cargo.toml rename to pallets/masp/claims-verifier/Cargo.toml index 4fda9df9f..8ee6d2eb9 100644 --- a/pallets/claims-verifier/Cargo.toml +++ b/pallets/masp/claims-verifier/Cargo.toml @@ -19,7 +19,7 @@ log = { version = "0.4.14", default-features = false } scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } sp-runtime = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } sp-std = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39" } -webb-primitives = { path = "../../primitives", default-features = false, features = ["verifying"] } +webb-primitives = { path = "../../../primitives", default-features = false, features = ["verifying"] } frame-benchmarking = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39", optional = true } frame-system-benchmarking = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.39", optional = true } diff --git a/pallets/claims-verifier/src/benchmarking.rs b/pallets/masp/claims-verifier/src/benchmarking.rs similarity index 97% rename from pallets/claims-verifier/src/benchmarking.rs rename to pallets/masp/claims-verifier/src/benchmarking.rs index 623a98e4b..9dedef433 100644 --- a/pallets/claims-verifier/src/benchmarking.rs +++ b/pallets/masp/claims-verifier/src/benchmarking.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/claims-verifier/src/lib.rs b/pallets/masp/claims-verifier/src/lib.rs similarity index 99% rename from pallets/claims-verifier/src/lib.rs rename to pallets/masp/claims-verifier/src/lib.rs index 045abd7ef..c9a9d3e8a 100644 --- a/pallets/claims-verifier/src/lib.rs +++ b/pallets/masp/claims-verifier/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/claims-verifier/src/mock.rs b/pallets/masp/claims-verifier/src/mock.rs similarity index 100% rename from pallets/claims-verifier/src/mock.rs rename to pallets/masp/claims-verifier/src/mock.rs diff --git a/pallets/claims-verifier/src/tests.rs b/pallets/masp/claims-verifier/src/tests.rs similarity index 100% rename from pallets/claims-verifier/src/tests.rs rename to pallets/masp/claims-verifier/src/tests.rs diff --git a/pallets/claims-verifier/src/weights.rs b/pallets/masp/claims-verifier/src/weights.rs similarity index 100% rename from pallets/claims-verifier/src/weights.rs rename to pallets/masp/claims-verifier/src/weights.rs diff --git a/pallets/mixer/src/benchmarking.rs b/pallets/mixer/src/benchmarking.rs index 38e884a98..05da77708 100644 --- a/pallets/mixer/src/benchmarking.rs +++ b/pallets/mixer/src/benchmarking.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/mixer/src/lib.rs b/pallets/mixer/src/lib.rs index 560db4c58..f8aba0c08 100644 --- a/pallets/mixer/src/lib.rs +++ b/pallets/mixer/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/mt/rpc/src/error.rs b/pallets/mt/rpc/src/error.rs index 4f07ea920..5ea58c2fb 100644 --- a/pallets/mt/rpc/src/error.rs +++ b/pallets/mt/rpc/src/error.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/mt/rpc/src/lib.rs b/pallets/mt/rpc/src/lib.rs index e8d892d2b..8b5409c19 100644 --- a/pallets/mt/rpc/src/lib.rs +++ b/pallets/mt/rpc/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/mt/src/benchmarking.rs b/pallets/mt/src/benchmarking.rs index 0a8383aef..e64a76e5d 100644 --- a/pallets/mt/src/benchmarking.rs +++ b/pallets/mt/src/benchmarking.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/mt/src/lib.rs b/pallets/mt/src/lib.rs index 0c048b9f2..a085afc0e 100644 --- a/pallets/mt/src/lib.rs +++ b/pallets/mt/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/relayer-registry/src/benchmarking.rs b/pallets/relayer-registry/src/benchmarking.rs index 8364b4266..dcd8189e5 100644 --- a/pallets/relayer-registry/src/benchmarking.rs +++ b/pallets/relayer-registry/src/benchmarking.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/signature-bridge/src/lib.rs b/pallets/signature-bridge/src/lib.rs index d70019b11..499ea6925 100644 --- a/pallets/signature-bridge/src/lib.rs +++ b/pallets/signature-bridge/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/token-wrapper-handler/src/lib.rs b/pallets/token-wrapper-handler/src/lib.rs index 4ed6e8140..7f230309e 100644 --- a/pallets/token-wrapper-handler/src/lib.rs +++ b/pallets/token-wrapper-handler/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/token-wrapper/src/benchmarking.rs b/pallets/token-wrapper/src/benchmarking.rs index c39f38502..172363866 100644 --- a/pallets/token-wrapper/src/benchmarking.rs +++ b/pallets/token-wrapper/src/benchmarking.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/token-wrapper/src/lib.rs b/pallets/token-wrapper/src/lib.rs index 83fa91b1e..c5fb1b0a6 100644 --- a/pallets/token-wrapper/src/lib.rs +++ b/pallets/token-wrapper/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/vanchor-handler/src/lib.rs b/pallets/vanchor-handler/src/lib.rs index cd305e3d9..04c3c7897 100644 --- a/pallets/vanchor-handler/src/lib.rs +++ b/pallets/vanchor-handler/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/vanchor-verifier/src/benchmarking.rs b/pallets/vanchor-verifier/src/benchmarking.rs index ba3f108ab..778648cb0 100644 --- a/pallets/vanchor-verifier/src/benchmarking.rs +++ b/pallets/vanchor-verifier/src/benchmarking.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/vanchor-verifier/src/lib.rs b/pallets/vanchor-verifier/src/lib.rs index aec3a89df..7409e84db 100644 --- a/pallets/vanchor-verifier/src/lib.rs +++ b/pallets/vanchor-verifier/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/vanchor/src/benchmarking.rs b/pallets/vanchor/src/benchmarking.rs index 1fbbb94c8..bcd366814 100644 --- a/pallets/vanchor/src/benchmarking.rs +++ b/pallets/vanchor/src/benchmarking.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/vanchor/src/lib.rs b/pallets/vanchor/src/lib.rs index 7bec88718..a4967fdc1 100644 --- a/pallets/vanchor/src/lib.rs +++ b/pallets/vanchor/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/verifier/src/benchmarking.rs b/pallets/verifier/src/benchmarking.rs index 1137857ba..9c9958d8d 100644 --- a/pallets/verifier/src/benchmarking.rs +++ b/pallets/verifier/src/benchmarking.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/verifier/src/lib.rs b/pallets/verifier/src/lib.rs index a20f615f7..05e6ed3c9 100644 --- a/pallets/verifier/src/lib.rs +++ b/pallets/verifier/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pallets/xanchor/src/lib.rs b/pallets/xanchor/src/lib.rs index f7a880544..e6bd29089 100644 --- a/pallets/xanchor/src/lib.rs +++ b/pallets/xanchor/src/lib.rs @@ -1,6 +1,6 @@ // This file is part of Webb. -// Copyright (C) 2021 Webb Technologies Inc. +// Copyright (C) 2021-2023 Webb Technologies Inc. // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License")