Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update author #849

Merged
merged 2 commits into from
Dec 10, 2024
Merged
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace.package]
version = "1.2.3"
authors = ["Webb Technologies Inc."]
authors = ["Tangle Foundation."]
edition = "2021"
license = "Unlicense"
homepage = "https://webb.tools"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 Webb Technologies Inc.
# Copyright 2024 Tangle Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion docker/Tangle.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 Webb Technologies Inc.
# Copyright 2024 Tangle Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion frost/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion node/src/chainspec/mainnet.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion node/src/chainspec/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion node/src/chainspec/testnet.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion node/src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion node/src/command.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion node/src/distributions/develop.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(dead_code)]
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion node/src/distributions/mainnet.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(clippy::type_complexity)]
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion node/src/distributions/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(clippy::type_complexity)]
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion node/src/distributions/testnet.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![allow(dead_code)]
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion node/src/eth.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion node/src/mainnet_fixtures.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion node/src/manual_seal.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion node/src/rpc/eth.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion node/src/rpc/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion node/src/service.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion node/src/testnet_fixtures.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/benchmarking.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/functions.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/functions/delegate.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/functions/deposit.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/functions/operator.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/functions/rewards.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/tests/delegate.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/tests/deposit.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/tests/operator.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/traits.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/types/delegator.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/types/operator.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/types/rewards.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/multi-asset-delegation/src/weights.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/services/rpc/runtime-api/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/services/rpc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
15 changes: 15 additions & 0 deletions pallets/services/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ impl<T: Config> Pallet<T> {
let value = U256::zero();
let info = Self::evm_call(Self::address(), bsm, value, data, gas_limit)?;
let weight = Self::weight_from_call_info(&info);
log::debug!(
target: "evm",
"on_blueprint_created_hook: blueprint_id: {:?}, bsm: {:?}, info: {:?}, weight: {:?}",
blueprint_id,
bsm,
info,
weight,
);
(info.exit_reason.is_succeed(), weight)
},
_ => unimplemented!("Got unexpected case for {:?}", blueprint.manager),
Expand Down Expand Up @@ -174,6 +182,13 @@ impl<T: Config> Pallet<T> {
],
Zero::zero(),
)?;
log::debug!(
target: "evm",
"on_blueprint_created_hook: blueprint_id: {:?}, allowed1: {:?}, weight1: {:?}",
blueprint_id,
allowed1,
weight1,
);
Ok((allowed0 && allowed1, weight0.saturating_add(weight1)))
}

Expand Down
2 changes: 1 addition & 1 deletion pallets/services/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/services/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/services/src/mock_evm.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/services/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion pallets/services/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// Tangle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion precompiles/assets-erc20/src/eip2612.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// This file is part of pallet-evm-precompileset-assets-erc20 package, originally developed by
// Purestake Inc. pallet-evm-precompileset-assets-erc20 package used in Tangle Network in terms of
Expand Down
2 changes: 1 addition & 1 deletion precompiles/assets-erc20/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// This file is part of pallet-evm-precompileset-assets-erc20 package, originally developed by
// Purestake Inc. pallet-evm-precompileset-assets-erc20 package used in Tangle Network in terms of
Expand Down
2 changes: 1 addition & 1 deletion precompiles/assets-erc20/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// This file is part of pallet-evm-precompileset-assets-erc20 package, originally developed by
// Purestake Inc. pallet-evm-precompileset-assets-erc20 package used in Tangle Network in terms of
Expand Down
2 changes: 1 addition & 1 deletion precompiles/assets-erc20/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// This file is part of pallet-evm-precompileset-assets-erc20 package, originally developed by
// Purestake Inc. pallet-evm-precompileset-assets-erc20 package used in Tangle Network in terms of
Expand Down
2 changes: 1 addition & 1 deletion precompiles/assets/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Tangle.
// Copyright (C) 2022-2024 Webb Technologies Inc.
// Copyright (C) 2022-2024 Tangle Foundation.
//
// This file is part of pallet-evm-precompile-multi-asset-delegation package.
// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
Loading
Loading