diff --git a/aptos-move/aptos-transaction-benchmarks/src/benchmark_runner.rs b/aptos-move/aptos-transaction-benchmarks/src/benchmark_runner.rs index 6352209900b6b..ac49c6983c284 100644 --- a/aptos-move/aptos-transaction-benchmarks/src/benchmark_runner.rs +++ b/aptos-move/aptos-transaction-benchmarks/src/benchmark_runner.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::transaction_bench_state::TransactionBenchState; use aptos_language_e2e_tests::account_universe::{AUTransactionGen, AccountPickStyle}; diff --git a/aptos-move/aptos-transaction-benchmarks/src/transaction_bench_state.rs b/aptos-move/aptos-transaction-benchmarks/src/transaction_bench_state.rs index 2f11ec6b3bc44..5e728586e547b 100644 --- a/aptos-move/aptos-transaction-benchmarks/src/transaction_bench_state.rs +++ b/aptos-move/aptos-transaction-benchmarks/src/transaction_bench_state.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{transactions, transactions::RAYON_EXEC_POOL}; use aptos_bitvec::BitVec; diff --git a/aptos-move/aptos-vm/src/sharded_block_executor/cross_shard_client.rs b/aptos-move/aptos-vm/src/sharded_block_executor/cross_shard_client.rs index 3f205137a0d50..e151367985339 100644 --- a/aptos-move/aptos-vm/src/sharded_block_executor/cross_shard_client.rs +++ b/aptos-move/aptos-vm/src/sharded_block_executor/cross_shard_client.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ block_executor::AptosTransactionOutput, diff --git a/aptos-move/aptos-vm/src/sharded_block_executor/messages.rs b/aptos-move/aptos-vm/src/sharded_block_executor/messages.rs index 4dd711474c5dc..b031391bba6ec 100644 --- a/aptos-move/aptos-vm/src/sharded_block_executor/messages.rs +++ b/aptos-move/aptos-vm/src/sharded_block_executor/messages.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_types::{state_store::state_key::StateKey, write_set::WriteOp}; use serde::{Deserialize, Serialize}; diff --git a/aptos-move/aptos-vm/src/sharded_block_executor/sharded_executor_service.rs b/aptos-move/aptos-vm/src/sharded_block_executor/sharded_executor_service.rs index 2ad3b8d3d5cc9..a2d2e76e9e6e6 100644 --- a/aptos-move/aptos-vm/src/sharded_block_executor/sharded_executor_service.rs +++ b/aptos-move/aptos-vm/src/sharded_block_executor/sharded_executor_service.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ block_executor::BlockAptosVM, diff --git a/aptos-move/aptos-vm/src/validator_txns/dkg.rs b/aptos-move/aptos-vm/src/validator_txns/dkg.rs index 1dc773b96b449..d843366786909 100644 --- a/aptos-move/aptos-vm/src/validator_txns/dkg.rs +++ b/aptos-move/aptos-vm/src/validator_txns/dkg.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ aptos_vm::get_or_vm_startup_failure, diff --git a/aptos-move/aptos-vm/src/validator_txns/jwk.rs b/aptos-move/aptos-vm/src/validator_txns/jwk.rs index e34145c6ea37e..64bda638acb7d 100644 --- a/aptos-move/aptos-vm/src/validator_txns/jwk.rs +++ b/aptos-move/aptos-vm/src/validator_txns/jwk.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ aptos_vm::get_or_vm_startup_failure, diff --git a/aptos-move/aptos-vm/src/validator_txns/mod.rs b/aptos-move/aptos-vm/src/validator_txns/mod.rs index 567fc9081c2cd..1c6c020fec1bc 100644 --- a/aptos-move/aptos-vm/src/validator_txns/mod.rs +++ b/aptos-move/aptos-vm/src/validator_txns/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ move_vm_ext::{AptosMoveResolver, SessionId}, diff --git a/aptos-move/e2e-move-tests/src/resource_groups.rs b/aptos-move/e2e-move-tests/src/resource_groups.rs index b1e9e7ff0f496..b9830ac39be08 100644 --- a/aptos-move/e2e-move-tests/src/resource_groups.rs +++ b/aptos-move/e2e-move-tests/src/resource_groups.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{assert_success, harness::MoveHarness, BlockSplit}; use aptos_language_e2e_tests::{ diff --git a/aptos-move/framework/move-stdlib/src/lib.rs b/aptos-move/framework/move-stdlib/src/lib.rs index e1ec060682201..e25ad73e6082c 100644 --- a/aptos-move/framework/move-stdlib/src/lib.rs +++ b/aptos-move/framework/move-stdlib/src/lib.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // Copyright (c) The Diem Core Contributors // Copyright (c) The Move Contributors diff --git a/aptos-move/framework/move-stdlib/src/natives/bcs.rs b/aptos-move/framework/move-stdlib/src/natives/bcs.rs index 7b88ed1976ef7..c5941a401e06c 100644 --- a/aptos-move/framework/move-stdlib/src/natives/bcs.rs +++ b/aptos-move/framework/move-stdlib/src/natives/bcs.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // Copyright (c) The Diem Core Contributors // Copyright (c) The Move Contributors diff --git a/aptos-move/framework/move-stdlib/src/natives/hash.rs b/aptos-move/framework/move-stdlib/src/natives/hash.rs index abb21713a8e24..2509cb321acbf 100644 --- a/aptos-move/framework/move-stdlib/src/natives/hash.rs +++ b/aptos-move/framework/move-stdlib/src/natives/hash.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // Copyright (c) The Diem Core Contributors // Copyright (c) The Move Contributors diff --git a/aptos-move/framework/move-stdlib/src/natives/mod.rs b/aptos-move/framework/move-stdlib/src/natives/mod.rs index 32ccfe002fc08..56b37bd332960 100644 --- a/aptos-move/framework/move-stdlib/src/natives/mod.rs +++ b/aptos-move/framework/move-stdlib/src/natives/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // Copyright (c) The Diem Core Contributors // Copyright (c) The Move Contributors diff --git a/aptos-move/framework/move-stdlib/src/natives/signer.rs b/aptos-move/framework/move-stdlib/src/natives/signer.rs index 8cc86a6c935d2..e0e202fd3ca18 100644 --- a/aptos-move/framework/move-stdlib/src/natives/signer.rs +++ b/aptos-move/framework/move-stdlib/src/natives/signer.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // Copyright (c) The Diem Core Contributors // Copyright (c) The Move Contributors diff --git a/aptos-move/framework/move-stdlib/src/natives/string.rs b/aptos-move/framework/move-stdlib/src/natives/string.rs index 96f0e85a0ff98..f90f705049137 100644 --- a/aptos-move/framework/move-stdlib/src/natives/string.rs +++ b/aptos-move/framework/move-stdlib/src/natives/string.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // Copyright (c) The Diem Core Contributors // Copyright (c) The Move Contributors diff --git a/aptos-move/framework/move-stdlib/src/natives/unit_test.rs b/aptos-move/framework/move-stdlib/src/natives/unit_test.rs index 44a97008415a8..f23a1fb56b6f6 100644 --- a/aptos-move/framework/move-stdlib/src/natives/unit_test.rs +++ b/aptos-move/framework/move-stdlib/src/natives/unit_test.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // Copyright (c) The Diem Core Contributors // Copyright (c) The Move Contributors diff --git a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/add.rs b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/add.rs index 96bde2b536b4e..60e422e73dd97 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/add.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/add.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_arithmetics_enabled_for_structure, abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/div.rs b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/div.rs index b57e73aaf52c8..439979e0b53b9 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/div.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/div.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_arithmetics_enabled_for_structure, abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/double.rs b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/double.rs index afeaf4398ac5d..02b525c4a407f 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/double.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/double.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_arithmetics_enabled_for_structure, abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/inv.rs b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/inv.rs index 4b18e7c2481f1..96d55bfce30ac 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/inv.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/inv.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_arithmetics_enabled_for_structure, abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/mod.rs b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/mod.rs index c33564a8c928a..293e303869fc0 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/mod.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 pub mod add; pub mod div; diff --git a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/mul.rs b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/mul.rs index c35ae84f63e11..3d56b6d6d735f 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/mul.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/mul.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_arithmetics_enabled_for_structure, abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/neg.rs b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/neg.rs index 3a339e507ad75..f0af2be66252b 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/neg.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/neg.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_arithmetics_enabled_for_structure, abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/scalar_mul.rs b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/scalar_mul.rs index 29108510741c4..53ebdd89b17fd 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/scalar_mul.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/scalar_mul.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/sqr.rs b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/sqr.rs index f02921c2830f6..d5ffab5ef589d 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/sqr.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/sqr.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_arithmetics_enabled_for_structure, abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/sub.rs b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/sub.rs index 6aff9fd65fd53..2817d2262ca74 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/sub.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/arithmetics/sub.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_arithmetics_enabled_for_structure, abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/casting.rs b/aptos-move/framework/src/natives/cryptography/algebra/casting.rs index 309d3df24079a..22a25e4ab28f4 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/casting.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/casting.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/constants.rs b/aptos-move/framework/src/natives/cryptography/algebra/constants.rs index 4865372ec2eb7..e6e48ba1cf102 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/constants.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/constants.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_arithmetics_enabled_for_structure, abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/eq.rs b/aptos-move/framework/src/natives/cryptography/algebra/eq.rs index 0b33ed77b998e..b4836720b7765 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/eq.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/eq.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_arithmetics_enabled_for_structure, abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/hash_to_structure.rs b/aptos-move/framework/src/natives/cryptography/algebra/hash_to_structure.rs index 3e19ce97af711..f8de78bb9591b 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/hash_to_structure.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/hash_to_structure.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/mod.rs b/aptos-move/framework/src/natives/cryptography/algebra/mod.rs index c66346647691d..6a65be4c4e7eb 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/mod.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/mod.rs @@ -1,6 +1,4 @@ // Copyright © Aptos Foundation - -// Copyright (c) Aptos // SPDX-License-Identifier: Apache-2.0 #[cfg(feature = "testing")] diff --git a/aptos-move/framework/src/natives/cryptography/algebra/new.rs b/aptos-move/framework/src/natives/cryptography/algebra/new.rs index 1b09aa05fe877..05050c50ed475 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/new.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/new.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_arithmetics_enabled_for_structure, abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/pairing.rs b/aptos-move/framework/src/natives/cryptography/algebra/pairing.rs index a232bcb3e36e7..dafbbcd50aa4c 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/pairing.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/pairing.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/algebra/rand.rs b/aptos-move/framework/src/natives/cryptography/algebra/rand.rs index ec2ec6578dd92..79cef4eef66c3 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/rand.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/rand.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 #[cfg(feature = "testing")] use crate::{ diff --git a/aptos-move/framework/src/natives/cryptography/algebra/serialization.rs b/aptos-move/framework/src/natives/cryptography/algebra/serialization.rs index a93b30d8bab7c..83cf9ee34a9b9 100644 --- a/aptos-move/framework/src/natives/cryptography/algebra/serialization.rs +++ b/aptos-move/framework/src/natives/cryptography/algebra/serialization.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ abort_unless_feature_flag_enabled, diff --git a/aptos-move/framework/src/natives/cryptography/bulletproofs.rs b/aptos-move/framework/src/natives/cryptography/bulletproofs.rs index a555472740766..513da6fe504a9 100644 --- a/aptos-move/framework/src/natives/cryptography/bulletproofs.rs +++ b/aptos-move/framework/src/natives/cryptography/bulletproofs.rs @@ -1,6 +1,4 @@ // Copyright © Aptos Foundation - -// Copyright (c) Aptos // SPDX-License-Identifier: Apache-2.0 #[cfg(feature = "testing")] diff --git a/aptos-move/framework/src/natives/debug.rs b/aptos-move/framework/src/natives/debug.rs index 8c049df38c775..25922f99fe2f9 100644 --- a/aptos-move/framework/src/natives/debug.rs +++ b/aptos-move/framework/src/natives/debug.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // Copyright (c) The Diem Core Contributors // Copyright (c) The Move Contributors diff --git a/aptos-move/framework/table-natives/src/lib.rs b/aptos-move/framework/table-natives/src/lib.rs index f1e7c4d91b039..d306b7a025890 100644 --- a/aptos-move/framework/table-natives/src/lib.rs +++ b/aptos-move/framework/table-natives/src/lib.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // Copyright (c) The Diem Core Contributors // Copyright (c) The Move Contributors diff --git a/aptos-utils/src/lib.rs b/aptos-utils/src/lib.rs index 4f5e122417184..447a51a5886ed 100644 --- a/aptos-utils/src/lib.rs +++ b/aptos-utils/src/lib.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 /// An internal implementation to imitate the feature of `try` in unstable Rust. /// Useful to use '?' chaining on option/result without the need to wrap the expression in a diff --git a/config/src/config/dag_consensus_config.rs b/config/src/config/dag_consensus_config.rs index 0304f3019e060..743204ace750e 100644 --- a/config/src/config/dag_consensus_config.rs +++ b/config/src/config/dag_consensus_config.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use super::{ config_sanitizer::ConfigSanitizer, node_config_loader::NodeType, ChainHealthBackoffValues, diff --git a/config/src/config/dkg_config.rs b/config/src/config/dkg_config.rs index 585dd1fccc7b1..17a9b975c76aa 100644 --- a/config/src/config/dkg_config.rs +++ b/config/src/config/dkg_config.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use serde::{Deserialize, Serialize}; diff --git a/config/src/config/jwk_consensus_config.rs b/config/src/config/jwk_consensus_config.rs index 482c88e0822df..672aa513d7496 100644 --- a/config/src/config/jwk_consensus_config.rs +++ b/config/src/config/jwk_consensus_config.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use serde::{Deserialize, Serialize}; diff --git a/consensus/consensus-types/src/proposal_ext.rs b/consensus/consensus-types/src/proposal_ext.rs index 2375ac40796b0..a61aa94010c60 100644 --- a/consensus/consensus-types/src/proposal_ext.rs +++ b/consensus/consensus-types/src/proposal_ext.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::common::{Author, Payload, Round}; use aptos_types::validator_txn::ValidatorTransaction; diff --git a/consensus/src/dag/bootstrap.rs b/consensus/src/dag/bootstrap.rs index a70c089e1da15..1dd637237dad4 100644 --- a/consensus/src/dag/bootstrap.rs +++ b/consensus/src/dag/bootstrap.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use super::{ adapter::{OrderedNotifierAdapter, TLedgerInfoProvider}, diff --git a/consensus/src/dag/commit_signer.rs b/consensus/src/dag/commit_signer.rs index 6aa06d19d7ae3..40b3329eedf7b 100644 --- a/consensus/src/dag/commit_signer.rs +++ b/consensus/src/dag/commit_signer.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::pipeline::signing_phase::CommitSignerProvider; use aptos_crypto::bls12381; diff --git a/consensus/src/dag/dag_handler.rs b/consensus/src/dag/dag_handler.rs index dc085d627db06..4c45218c2e376 100644 --- a/consensus/src/dag/dag_handler.rs +++ b/consensus/src/dag/dag_handler.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ dag::{ diff --git a/consensus/src/dag/dag_network.rs b/consensus/src/dag/dag_network.rs index d3c1ce5d2b11c..e63d490cb5f01 100644 --- a/consensus/src/dag/dag_network.rs +++ b/consensus/src/dag/dag_network.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use super::{types::DAGMessage, DAGRpcResult}; use aptos_consensus_types::common::Author; diff --git a/consensus/src/dag/dag_state_sync.rs b/consensus/src/dag/dag_state_sync.rs index 25eb605aad564..dd035e5094283 100644 --- a/consensus/src/dag/dag_state_sync.rs +++ b/consensus/src/dag/dag_state_sync.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use super::{ adapter::TLedgerInfoProvider, diff --git a/consensus/src/dag/errors.rs b/consensus/src/dag/errors.rs index e7032f65d32c1..123c2e110aed3 100644 --- a/consensus/src/dag/errors.rs +++ b/consensus/src/dag/errors.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_bitvec::BitVec; use aptos_consensus_types::common::Round; diff --git a/consensus/src/dag/tests/dag_driver_tests.rs b/consensus/src/dag/tests/dag_driver_tests.rs index 364a11b19db3d..8354dd85037ea 100644 --- a/consensus/src/dag/tests/dag_driver_tests.rs +++ b/consensus/src/dag/tests/dag_driver_tests.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ dag::{ diff --git a/consensus/src/dag/tests/dag_network_test.rs b/consensus/src/dag/tests/dag_network_test.rs index 7310bb8948e59..9aac0db90cb25 100644 --- a/consensus/src/dag/tests/dag_network_test.rs +++ b/consensus/src/dag/tests/dag_network_test.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::dag::{ dag_network::{RpcWithFallback, TDAGNetworkSender}, diff --git a/consensus/src/dag/tests/dag_state_sync_tests.rs b/consensus/src/dag/tests/dag_state_sync_tests.rs index 53c65a3db9010..36223b82bb212 100644 --- a/consensus/src/dag/tests/dag_state_sync_tests.rs +++ b/consensus/src/dag/tests/dag_state_sync_tests.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use super::helpers::TEST_DAG_WINDOW; use crate::{ diff --git a/consensus/src/dag/tests/fetcher_test.rs b/consensus/src/dag/tests/fetcher_test.rs index 9941ed04b103f..713c3bb60fabc 100644 --- a/consensus/src/dag/tests/fetcher_test.rs +++ b/consensus/src/dag/tests/fetcher_test.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use super::dag_test::MockStorage; use crate::dag::{ diff --git a/consensus/src/dag/tests/helpers.rs b/consensus/src/dag/tests/helpers.rs index dbcd86b9dd033..5b9f2ff881b79 100644 --- a/consensus/src/dag/tests/helpers.rs +++ b/consensus/src/dag/tests/helpers.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ dag::{ diff --git a/consensus/src/dag/tests/integration_tests.rs b/consensus/src/dag/tests/integration_tests.rs index 7abcf9919712b..8b1fae9117b0a 100644 --- a/consensus/src/dag/tests/integration_tests.rs +++ b/consensus/src/dag/tests/integration_tests.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use super::dag_test; use crate::{ diff --git a/consensus/src/dag/tests/types_test.rs b/consensus/src/dag/tests/types_test.rs index 64b854cbf92aa..cb76c1a118b46 100644 --- a/consensus/src/dag/tests/types_test.rs +++ b/consensus/src/dag/tests/types_test.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use super::helpers::new_node; use crate::dag::{ diff --git a/consensus/src/payload_client/mixed.rs b/consensus/src/payload_client/mixed.rs index fdd7bacd9f729..75575cbaab0d8 100644 --- a/consensus/src/payload_client/mixed.rs +++ b/consensus/src/payload_client/mixed.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 #[cfg(test)] use crate::payload_client::user; diff --git a/consensus/src/payload_client/user/mod.rs b/consensus/src/payload_client/user/mod.rs index 8e52508252903..6a5cc6db745ff 100644 --- a/consensus/src/payload_client/user/mod.rs +++ b/consensus/src/payload_client/user/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::error::QuorumStoreError; use aptos_consensus_types::common::{Payload, PayloadFilter}; diff --git a/consensus/src/payload_client/user/quorum_store_client.rs b/consensus/src/payload_client/user/quorum_store_client.rs index f8e378a8cb957..c6f49a2f1e6c9 100644 --- a/consensus/src/payload_client/user/quorum_store_client.rs +++ b/consensus/src/payload_client/user/quorum_store_client.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ counters::WAIT_FOR_FULL_BLOCKS_TRIGGERED, error::QuorumStoreError, monitor, diff --git a/consensus/src/payload_client/validator.rs b/consensus/src/payload_client/validator.rs index 91b6b8cb2fd39..4b6f0a4d47adb 100644 --- a/consensus/src/payload_client/validator.rs +++ b/consensus/src/payload_client/validator.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_types::validator_txn::ValidatorTransaction; use aptos_validator_transaction_pool as vtxn_pool; diff --git a/consensus/src/state_computer_tests.rs b/consensus/src/state_computer_tests.rs index 66e5b0e6b5da7..308eeeaea8729 100644 --- a/consensus/src/state_computer_tests.rs +++ b/consensus/src/state_computer_tests.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ error::MempoolError, payload_manager::PayloadManager, state_computer::ExecutionProxy, diff --git a/crates/aptos-api-tester/src/consts.rs b/crates/aptos-api-tester/src/consts.rs index 76fd1a022d169..3ae3f6c2b24d1 100644 --- a/crates/aptos-api-tester/src/consts.rs +++ b/crates/aptos-api-tester/src/consts.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::utils::NetworkName; use once_cell::sync::Lazy; diff --git a/crates/aptos-api-tester/src/counters.rs b/crates/aptos-api-tester/src/counters.rs index 1f6305dd644b6..c62178eea4317 100644 --- a/crates/aptos-api-tester/src/counters.rs +++ b/crates/aptos-api-tester/src/counters.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use once_cell::sync::Lazy; use prometheus::{register_histogram_vec, Histogram, HistogramVec}; diff --git a/crates/aptos-api-tester/src/macros.rs b/crates/aptos-api-tester/src/macros.rs index f40d2fd093b58..9411dbf0e9717 100644 --- a/crates/aptos-api-tester/src/macros.rs +++ b/crates/aptos-api-tester/src/macros.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 #[macro_export] macro_rules! time_fn { diff --git a/crates/aptos-api-tester/src/persistent_check.rs b/crates/aptos-api-tester/src/persistent_check.rs index 5a000c125ceee..0ca3bfa0a4aff 100644 --- a/crates/aptos-api-tester/src/persistent_check.rs +++ b/crates/aptos-api-tester/src/persistent_check.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // Persistent checking is a mechanism to increase tolerancy to eventual consistency issues. In our // earlier tests we have observed that parallel runs of the flows returned higher failure rates diff --git a/crates/aptos-api-tester/src/strings.rs b/crates/aptos-api-tester/src/strings.rs index 99dbb40c312a9..d6e95a0645e33 100644 --- a/crates/aptos-api-tester/src/strings.rs +++ b/crates/aptos-api-tester/src/strings.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // Fail messages diff --git a/crates/aptos-api-tester/src/tests/coin_transfer.rs b/crates/aptos-api-tester/src/tests/coin_transfer.rs index 3496a59ff662f..18b8b8006ff23 100644 --- a/crates/aptos-api-tester/src/tests/coin_transfer.rs +++ b/crates/aptos-api-tester/src/tests/coin_transfer.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ consts::FUND_AMOUNT, diff --git a/crates/aptos-api-tester/src/tests/mod.rs b/crates/aptos-api-tester/src/tests/mod.rs index 73e66cdf0ef58..5150869eb3c7d 100644 --- a/crates/aptos-api-tester/src/tests/mod.rs +++ b/crates/aptos-api-tester/src/tests/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 pub mod coin_transfer; pub mod new_account; diff --git a/crates/aptos-api-tester/src/tests/new_account.rs b/crates/aptos-api-tester/src/tests/new_account.rs index feff0153c74c1..353713b672d5a 100644 --- a/crates/aptos-api-tester/src/tests/new_account.rs +++ b/crates/aptos-api-tester/src/tests/new_account.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ consts::FUND_AMOUNT, diff --git a/crates/aptos-api-tester/src/tests/publish_module.rs b/crates/aptos-api-tester/src/tests/publish_module.rs index b1cf3a1cfe685..26ee5aed09307 100644 --- a/crates/aptos-api-tester/src/tests/publish_module.rs +++ b/crates/aptos-api-tester/src/tests/publish_module.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ consts::FUND_AMOUNT, diff --git a/crates/aptos-api-tester/src/tests/tokenv1_transfer.rs b/crates/aptos-api-tester/src/tests/tokenv1_transfer.rs index a95272e59e6b4..dc7f9f8e3c437 100644 --- a/crates/aptos-api-tester/src/tests/tokenv1_transfer.rs +++ b/crates/aptos-api-tester/src/tests/tokenv1_transfer.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ consts::FUND_AMOUNT, diff --git a/crates/aptos-api-tester/src/tests/view_function.rs b/crates/aptos-api-tester/src/tests/view_function.rs index 345daf3ef1338..370aa9e7d062a 100644 --- a/crates/aptos-api-tester/src/tests/view_function.rs +++ b/crates/aptos-api-tester/src/tests/view_function.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ consts::FUND_AMOUNT, diff --git a/crates/aptos-api-tester/src/utils.rs b/crates/aptos-api-tester/src/utils.rs index 1ed118b8a558d..3141583b6e632 100644 --- a/crates/aptos-api-tester/src/utils.rs +++ b/crates/aptos-api-tester/src/utils.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ consts::{ diff --git a/crates/aptos-collections/src/bounded_vec_deque.rs b/crates/aptos-collections/src/bounded_vec_deque.rs index f21b7a409074e..6435b7371f331 100644 --- a/crates/aptos-collections/src/bounded_vec_deque.rs +++ b/crates/aptos-collections/src/bounded_vec_deque.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use std::collections::{ vec_deque::{IntoIter, Iter}, diff --git a/crates/aptos-collections/src/lib.rs b/crates/aptos-collections/src/lib.rs index 231323078d2bf..12cfe1c54316e 100644 --- a/crates/aptos-collections/src/lib.rs +++ b/crates/aptos-collections/src/lib.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 mod bounded_vec_deque; diff --git a/crates/aptos-crypto/benches/ark_bls12_381.rs b/crates/aptos-crypto/benches/ark_bls12_381.rs index cdae361b229a6..77d1feb751d2a 100644 --- a/crates/aptos-crypto/benches/ark_bls12_381.rs +++ b/crates/aptos-crypto/benches/ark_bls12_381.rs @@ -1,6 +1,4 @@ // Copyright © Aptos Foundation - -// Copyright (c) Aptos // SPDX-License-Identifier: Apache-2.0 #[macro_use] diff --git a/crates/aptos-crypto/benches/ark_bn254.rs b/crates/aptos-crypto/benches/ark_bn254.rs index 1b36d34177a2b..d5caa5d701b79 100644 --- a/crates/aptos-crypto/benches/ark_bn254.rs +++ b/crates/aptos-crypto/benches/ark_bn254.rs @@ -1,6 +1,4 @@ // Copyright © Aptos Foundation - -// Copyright (c) Aptos // SPDX-License-Identifier: Apache-2.0 #[macro_use] diff --git a/crates/aptos-crypto/benches/bench_utils.rs b/crates/aptos-crypto/benches/bench_utils.rs index ba30d34c203f1..81905ca8ac7a5 100644 --- a/crates/aptos-crypto/benches/bench_utils.rs +++ b/crates/aptos-crypto/benches/bench_utils.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use ark_ff::{BigInteger256, Field}; use ark_serialize::{CanonicalDeserialize, CanonicalSerialize}; diff --git a/crates/aptos-crypto/benches/bulletproofs.rs b/crates/aptos-crypto/benches/bulletproofs.rs index 223eba221eac2..95877aab593c2 100644 --- a/crates/aptos-crypto/benches/bulletproofs.rs +++ b/crates/aptos-crypto/benches/bulletproofs.rs @@ -1,6 +1,4 @@ // Copyright © Aptos Foundation - -// Copyright (c) Aptos // SPDX-License-Identifier: Apache-2.0 #[macro_use] diff --git a/crates/aptos-crypto/src/unit_tests/bulletproofs_test.rs b/crates/aptos-crypto/src/unit_tests/bulletproofs_test.rs index 94a20c4c0399d..0343fa5ebf88a 100644 --- a/crates/aptos-crypto/src/unit_tests/bulletproofs_test.rs +++ b/crates/aptos-crypto/src/unit_tests/bulletproofs_test.rs @@ -1,6 +1,4 @@ // Copyright © Aptos Foundation - -// Copyright (c) Aptos // SPDX-License-Identifier: Apache-2.0 use crate::bulletproofs::MAX_RANGE_BITS; diff --git a/crates/aptos-dkg/benches/crypto.rs b/crates/aptos-dkg/benches/crypto.rs index 4a568291ef610..f465d1d0940bf 100644 --- a/crates/aptos-dkg/benches/crypto.rs +++ b/crates/aptos-dkg/benches/crypto.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 #![allow(clippy::useless_conversion)] diff --git a/crates/aptos-dkg/benches/lagrange.rs b/crates/aptos-dkg/benches/lagrange.rs index d45c6074e7acf..c62026a3b77e4 100644 --- a/crates/aptos-dkg/benches/lagrange.rs +++ b/crates/aptos-dkg/benches/lagrange.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_dkg::algebra::{ evaluation_domain::BatchEvaluationDomain, lagrange::lagrange_coefficients, diff --git a/crates/aptos-dkg/benches/pvss.rs b/crates/aptos-dkg/benches/pvss.rs index 0e4104f1f5f95..bcf76ca05b648 100644 --- a/crates/aptos-dkg/benches/pvss.rs +++ b/crates/aptos-dkg/benches/pvss.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 #![allow(clippy::ptr_arg)] #![allow(clippy::needless_borrow)] diff --git a/crates/aptos-dkg/benches/weighted_vuf.rs b/crates/aptos-dkg/benches/weighted_vuf.rs index ae7a79348c244..d838f910222bd 100644 --- a/crates/aptos-dkg/benches/weighted_vuf.rs +++ b/crates/aptos-dkg/benches/weighted_vuf.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 #![allow(clippy::needless_range_loop)] #![allow(clippy::ptr_arg)] diff --git a/crates/aptos-dkg/src/algebra/evaluation_domain.rs b/crates/aptos-dkg/src/algebra/evaluation_domain.rs index e66213bca9597..0328c5f536b22 100644 --- a/crates/aptos-dkg/src/algebra/evaluation_domain.rs +++ b/crates/aptos-dkg/src/algebra/evaluation_domain.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_crypto::CryptoMaterialError; use blstrs::Scalar; diff --git a/crates/aptos-dkg/src/algebra/polynomials.rs b/crates/aptos-dkg/src/algebra/polynomials.rs index d89493a41e772..0e5f1905d7a90 100644 --- a/crates/aptos-dkg/src/algebra/polynomials.rs +++ b/crates/aptos-dkg/src/algebra/polynomials.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ algebra::{ diff --git a/crates/aptos-dkg/src/constants.rs b/crates/aptos-dkg/src/constants.rs index 5811b1c919320..135bdf453bc1b 100644 --- a/crates/aptos-dkg/src/constants.rs +++ b/crates/aptos-dkg/src/constants.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use num_bigint::BigUint; use once_cell::sync::Lazy; diff --git a/crates/aptos-dkg/src/lib.rs b/crates/aptos-dkg/src/lib.rs index 65895c47dd408..b71dedc1ca7b7 100644 --- a/crates/aptos-dkg/src/lib.rs +++ b/crates/aptos-dkg/src/lib.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 #![allow(clippy::redundant_static_lifetimes)] #![allow(clippy::needless_return)] diff --git a/crates/aptos-dkg/src/pvss/contribution.rs b/crates/aptos-dkg/src/pvss/contribution.rs index 66db50110c7e7..c29b9f493c364 100644 --- a/crates/aptos-dkg/src/pvss/contribution.rs +++ b/crates/aptos-dkg/src/pvss/contribution.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ pvss::{schnorr, Player}, diff --git a/crates/aptos-dkg/src/pvss/dealt_pub_key.rs b/crates/aptos-dkg/src/pvss/dealt_pub_key.rs index 65be4bec81db8..a7cfbdbf28bb6 100644 --- a/crates/aptos-dkg/src/pvss/dealt_pub_key.rs +++ b/crates/aptos-dkg/src/pvss/dealt_pub_key.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 macro_rules! dealt_pub_key_impl { ($GT_PROJ_NUM_BYTES:ident, $gt_proj_from_bytes:ident, $GTProjective:ident) => { diff --git a/crates/aptos-dkg/src/pvss/dealt_pub_key_share.rs b/crates/aptos-dkg/src/pvss/dealt_pub_key_share.rs index 728b6d8d31c4c..648258ca030a6 100644 --- a/crates/aptos-dkg/src/pvss/dealt_pub_key_share.rs +++ b/crates/aptos-dkg/src/pvss/dealt_pub_key_share.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // NOTE: I don't think we need this DealtPubKey[Share] anymore, since we never implement any traits // on it, unlike the DealtSecretKey[Share]. We will keep it in case we want to implement the diff --git a/crates/aptos-dkg/src/pvss/dealt_secret_key.rs b/crates/aptos-dkg/src/pvss/dealt_secret_key.rs index 1206a6bedc66e..eb8ee26a26342 100644 --- a/crates/aptos-dkg/src/pvss/dealt_secret_key.rs +++ b/crates/aptos-dkg/src/pvss/dealt_secret_key.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 macro_rules! dealt_secret_key_impl { ( diff --git a/crates/aptos-dkg/src/pvss/dealt_secret_key_share.rs b/crates/aptos-dkg/src/pvss/dealt_secret_key_share.rs index f2bbdd2f83030..e68e9c724b618 100644 --- a/crates/aptos-dkg/src/pvss/dealt_secret_key_share.rs +++ b/crates/aptos-dkg/src/pvss/dealt_secret_key_share.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 macro_rules! dealt_secret_key_share_impl { ($GTProjective:ident, $gt:ident) => { diff --git a/crates/aptos-dkg/src/pvss/encryption_dlog.rs b/crates/aptos-dkg/src/pvss/encryption_dlog.rs index b442b19d4e4b4..4dd3a443f5cb8 100644 --- a/crates/aptos-dkg/src/pvss/encryption_dlog.rs +++ b/crates/aptos-dkg/src/pvss/encryption_dlog.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 /// Implements public parameters $h \in G$ for a simple DLOG-based encryption scheme. macro_rules! encryption_dlog_pp_impl { diff --git a/crates/aptos-dkg/src/pvss/encryption_elgamal.rs b/crates/aptos-dkg/src/pvss/encryption_elgamal.rs index 5e1843f3b84aa..792b0694e5544 100644 --- a/crates/aptos-dkg/src/pvss/encryption_elgamal.rs +++ b/crates/aptos-dkg/src/pvss/encryption_elgamal.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 /// Implements public parameters $(h, g) \in G$ for an ElGamal encryption scheme where $h$ /// is the message base and $g$ is the PK base. diff --git a/crates/aptos-dkg/src/pvss/fiat_shamir.rs b/crates/aptos-dkg/src/pvss/fiat_shamir.rs index 760e47dc6ffed..82632ac625e41 100644 --- a/crates/aptos-dkg/src/pvss/fiat_shamir.rs +++ b/crates/aptos-dkg/src/pvss/fiat_shamir.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 //! For what it's worth, I don't understand why the `merlin` library wants the user to first define //! a trait with their 'append' operations and them implement that trait on `merlin::Transcript`. diff --git a/crates/aptos-dkg/src/pvss/input_secret.rs b/crates/aptos-dkg/src/pvss/input_secret.rs index 9c3b72d80dbf3..3773841fdaf91 100644 --- a/crates/aptos-dkg/src/pvss/input_secret.rs +++ b/crates/aptos-dkg/src/pvss/input_secret.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::utils::random::random_scalar; use aptos_crypto::Uniform; diff --git a/crates/aptos-dkg/src/pvss/mod.rs b/crates/aptos-dkg/src/pvss/mod.rs index d31563f6e67bc..44dce33ed4187 100644 --- a/crates/aptos-dkg/src/pvss/mod.rs +++ b/crates/aptos-dkg/src/pvss/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 mod contribution; pub mod das; diff --git a/crates/aptos-dkg/src/pvss/player.rs b/crates/aptos-dkg/src/pvss/player.rs index d6ed9aa45633f..874d6977de6b5 100644 --- a/crates/aptos-dkg/src/pvss/player.rs +++ b/crates/aptos-dkg/src/pvss/player.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use serde::{Deserialize, Serialize}; diff --git a/crates/aptos-dkg/src/pvss/scalar_secret_key.rs b/crates/aptos-dkg/src/pvss/scalar_secret_key.rs index f2c233af6e183..ef6dddcf107e4 100644 --- a/crates/aptos-dkg/src/pvss/scalar_secret_key.rs +++ b/crates/aptos-dkg/src/pvss/scalar_secret_key.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ algebra::lagrange::lagrange_coefficients, diff --git a/crates/aptos-dkg/src/pvss/schnorr.rs b/crates/aptos-dkg/src/pvss/schnorr.rs index ff9d9b0320b07..03a26da2b62d2 100644 --- a/crates/aptos-dkg/src/pvss/schnorr.rs +++ b/crates/aptos-dkg/src/pvss/schnorr.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::utils::{hash_to_scalar, random::random_scalar, HasMultiExp}; use anyhow::bail; diff --git a/crates/aptos-dkg/src/pvss/test_utils.rs b/crates/aptos-dkg/src/pvss/test_utils.rs index 479f8081f2eed..c3b669a016740 100644 --- a/crates/aptos-dkg/src/pvss/test_utils.rs +++ b/crates/aptos-dkg/src/pvss/test_utils.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::pvss::{ traits::{transcript::Transcript, Convert, HasEncryptionPublicParams, SecretSharingConfig}, diff --git a/crates/aptos-dkg/src/pvss/threshold_config.rs b/crates/aptos-dkg/src/pvss/threshold_config.rs index be36572119eba..b3ce08f433385 100644 --- a/crates/aptos-dkg/src/pvss/threshold_config.rs +++ b/crates/aptos-dkg/src/pvss/threshold_config.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ algebra::evaluation_domain::{BatchEvaluationDomain, EvaluationDomain}, diff --git a/crates/aptos-dkg/src/utils/biguint.rs b/crates/aptos-dkg/src/utils/biguint.rs index 94c2fe78c91da..c6c63b118372b 100644 --- a/crates/aptos-dkg/src/utils/biguint.rs +++ b/crates/aptos-dkg/src/utils/biguint.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::SCALAR_NUM_BYTES; use blstrs::Scalar; diff --git a/crates/aptos-dkg/src/utils/mod.rs b/crates/aptos-dkg/src/utils/mod.rs index a1658508b0702..68d156bf56f3f 100644 --- a/crates/aptos-dkg/src/utils/mod.rs +++ b/crates/aptos-dkg/src/utils/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::utils::{ parallel_multi_pairing::parallel_multi_pairing_slice, random::random_scalar_from_uniform_bytes, diff --git a/crates/aptos-dkg/src/utils/parallel_multi_pairing.rs b/crates/aptos-dkg/src/utils/parallel_multi_pairing.rs index d93890267148e..9286a8f04a764 100644 --- a/crates/aptos-dkg/src/utils/parallel_multi_pairing.rs +++ b/crates/aptos-dkg/src/utils/parallel_multi_pairing.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use blst::blst_fp12; use blstrs::{Fp12, G1Affine, G2Affine, Gt}; diff --git a/crates/aptos-dkg/src/utils/serialization.rs b/crates/aptos-dkg/src/utils/serialization.rs index c04ff2f9410de..51085d8205a0a 100644 --- a/crates/aptos-dkg/src/utils/serialization.rs +++ b/crates/aptos-dkg/src/utils/serialization.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{G1_PROJ_NUM_BYTES, G2_PROJ_NUM_BYTES, SCALAR_NUM_BYTES}; use aptos_crypto::CryptoMaterialError; diff --git a/crates/aptos-dkg/tests/accumulator.rs b/crates/aptos-dkg/tests/accumulator.rs index c7df2b10bafe7..0f3a7995e86a6 100644 --- a/crates/aptos-dkg/tests/accumulator.rs +++ b/crates/aptos-dkg/tests/accumulator.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_dkg::{ algebra::{ diff --git a/crates/aptos-dkg/tests/crypto.rs b/crates/aptos-dkg/tests/crypto.rs index e5bd9d778f6a6..ebfe7bde3960c 100644 --- a/crates/aptos-dkg/tests/crypto.rs +++ b/crates/aptos-dkg/tests/crypto.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_dkg::{ algebra::polynomials::{ diff --git a/crates/aptos-dkg/tests/dkg.rs b/crates/aptos-dkg/tests/dkg.rs index 77c79bad81b62..9633b3d9131d5 100644 --- a/crates/aptos-dkg/tests/dkg.rs +++ b/crates/aptos-dkg/tests/dkg.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_crypto::hash::CryptoHash; use aptos_dkg::{ diff --git a/crates/aptos-dkg/tests/fft.rs b/crates/aptos-dkg/tests/fft.rs index bfa03942e8355..2e03f1427823c 100644 --- a/crates/aptos-dkg/tests/fft.rs +++ b/crates/aptos-dkg/tests/fft.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 #![allow(clippy::needless_range_loop)] diff --git a/crates/aptos-dkg/tests/pvss.rs b/crates/aptos-dkg/tests/pvss.rs index 61f9d89aa1dbf..88ebc247eea34 100644 --- a/crates/aptos-dkg/tests/pvss.rs +++ b/crates/aptos-dkg/tests/pvss.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 #![allow(clippy::needless_borrow)] #![allow(clippy::ptr_arg)] diff --git a/crates/aptos-dkg/tests/secret_sharing_config.rs b/crates/aptos-dkg/tests/secret_sharing_config.rs index 1c7d4da04056a..be731cbefad5b 100644 --- a/crates/aptos-dkg/tests/secret_sharing_config.rs +++ b/crates/aptos-dkg/tests/secret_sharing_config.rs @@ -1,8 +1,9 @@ +// Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 + #![allow(clippy::ptr_arg)] #![allow(clippy::needless_borrow)] -// Copyright © Aptos Foundation - use aptos_dkg::pvss::{ test_utils::get_weighted_configs_for_benchmarking, traits::SecretSharingConfig, }; diff --git a/crates/aptos-dkg/tests/weighted_vuf.rs b/crates/aptos-dkg/tests/weighted_vuf.rs index a37360ea057cd..8c12990fdc9fa 100644 --- a/crates/aptos-dkg/tests/weighted_vuf.rs +++ b/crates/aptos-dkg/tests/weighted_vuf.rs @@ -1,8 +1,9 @@ +// Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 + #![allow(clippy::ptr_arg)] #![allow(clippy::needless_borrow)] -// Copyright © Aptos Foundation - use aptos_dkg::{ pvss, pvss::{ diff --git a/crates/aptos-enum-conversion-derive/src/lib.rs b/crates/aptos-enum-conversion-derive/src/lib.rs index 8e4db41aabbec..93779de858d9a 100644 --- a/crates/aptos-enum-conversion-derive/src/lib.rs +++ b/crates/aptos-enum-conversion-derive/src/lib.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use proc_macro::TokenStream; use quote::quote; diff --git a/crates/aptos-enum-conversion-derive/tests/cases/multiple_fields.rs b/crates/aptos-enum-conversion-derive/tests/cases/multiple_fields.rs index cb0688127e1da..4ed273e9fbd0d 100644 --- a/crates/aptos-enum-conversion-derive/tests/cases/multiple_fields.rs +++ b/crates/aptos-enum-conversion-derive/tests/cases/multiple_fields.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_enum_conversion_derive::EnumConversion; diff --git a/crates/aptos-enum-conversion-derive/tests/cases/no_fields.rs b/crates/aptos-enum-conversion-derive/tests/cases/no_fields.rs index b4827f840efdb..1453b8d667210 100644 --- a/crates/aptos-enum-conversion-derive/tests/cases/no_fields.rs +++ b/crates/aptos-enum-conversion-derive/tests/cases/no_fields.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_enum_conversion_derive::EnumConversion; diff --git a/crates/aptos-enum-conversion-derive/tests/conversion_tests.rs b/crates/aptos-enum-conversion-derive/tests/conversion_tests.rs index f0a1e50827602..00dcdd1444c58 100644 --- a/crates/aptos-enum-conversion-derive/tests/conversion_tests.rs +++ b/crates/aptos-enum-conversion-derive/tests/conversion_tests.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_enum_conversion_derive::EnumConversion; diff --git a/crates/aptos-metrics-core/src/avg_counter.rs b/crates/aptos-metrics-core/src/avg_counter.rs index 1091e4375b253..edf4f681aac0b 100644 --- a/crates/aptos-metrics-core/src/avg_counter.rs +++ b/crates/aptos-metrics-core/src/avg_counter.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use prometheus::{register_histogram, register_histogram_vec, Histogram, HistogramVec}; diff --git a/crates/indexer/src/models/stake_models/delegator_activities.rs b/crates/indexer/src/models/stake_models/delegator_activities.rs index e11ec5d5d19e9..abb32ad27c88a 100644 --- a/crates/indexer/src/models/stake_models/delegator_activities.rs +++ b/crates/indexer/src/models/stake_models/delegator_activities.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // This is required because a diesel macro makes clippy sad #![allow(clippy::extra_unused_lifetimes)] diff --git a/crates/indexer/src/models/stake_models/delegator_balances.rs b/crates/indexer/src/models/stake_models/delegator_balances.rs index 7d6f5387d31ec..c4eec5e7a8371 100644 --- a/crates/indexer/src/models/stake_models/delegator_balances.rs +++ b/crates/indexer/src/models/stake_models/delegator_balances.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // This is required because a diesel macro makes clippy sad #![allow(clippy::extra_unused_lifetimes)] diff --git a/crates/indexer/src/schema.rs b/crates/indexer/src/schema.rs index 428cd26be9aba..24960b18673d2 100644 --- a/crates/indexer/src/schema.rs +++ b/crates/indexer/src/schema.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // @generated automatically by Diesel CLI. diff --git a/crates/transaction-generator-lib/src/batch_transfer.rs b/crates/transaction-generator-lib/src/batch_transfer.rs index eb9b9a1fa7177..ff58614f9c908 100644 --- a/crates/transaction-generator-lib/src/batch_transfer.rs +++ b/crates/transaction-generator-lib/src/batch_transfer.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ObjectPool, TransactionGenerator, TransactionGeneratorCreator}; use aptos_sdk::{ diff --git a/crates/validator-transaction-pool/src/lib.rs b/crates/validator-transaction-pool/src/lib.rs index 5ed1cd10dd56c..fcb32232ddeb3 100644 --- a/crates/validator-transaction-pool/src/lib.rs +++ b/crates/validator-transaction-pool/src/lib.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_channels::aptos_channel; use aptos_crypto::{hash::CryptoHash, HashValue}; diff --git a/crates/validator-transaction-pool/src/tests.rs b/crates/validator-transaction-pool/src/tests.rs index bcf0414ee9788..62a7bbca11b7b 100644 --- a/crates/validator-transaction-pool/src/tests.rs +++ b/crates/validator-transaction-pool/src/tests.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{TransactionFilter, VTxnPoolState}; use aptos_channels::{aptos_channel, message_queues::QueueStyle}; diff --git a/dkg/src/agg_trx_producer.rs b/dkg/src/agg_trx_producer.rs index b42ed929234f6..a7f86146ddec0 100644 --- a/dkg/src/agg_trx_producer.rs +++ b/dkg/src/agg_trx_producer.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ transcript_aggregation::TranscriptAggregationState, types::DKGTranscriptRequest, DKGMessage, diff --git a/dkg/src/counters.rs b/dkg/src/counters.rs index da128591e19b3..44b34d4714a36 100644 --- a/dkg/src/counters.rs +++ b/dkg/src/counters.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_metrics_core::{register_histogram_vec, register_int_gauge, HistogramVec, IntGauge}; use once_cell::sync::Lazy; diff --git a/dkg/src/dkg_manager/tests.rs b/dkg/src/dkg_manager/tests.rs index f4ba462e0d76a..5085fd5a76c77 100644 --- a/dkg/src/dkg_manager/tests.rs +++ b/dkg/src/dkg_manager/tests.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ agg_trx_producer::DummyAggTranscriptProducer, diff --git a/dkg/src/epoch_manager.rs b/dkg/src/epoch_manager.rs index b84f29cd0214e..78714c950388c 100644 --- a/dkg/src/epoch_manager.rs +++ b/dkg/src/epoch_manager.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ agg_trx_producer::AggTranscriptProducer, diff --git a/dkg/src/network.rs b/dkg/src/network.rs index be292bda57029..85a6995024447 100644 --- a/dkg/src/network.rs +++ b/dkg/src/network.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ network_interface::{DKGNetworkClient, RPC}, diff --git a/dkg/src/network_interface.rs b/dkg/src/network_interface.rs index 6baf9d56bda82..b553c46f077e0 100644 --- a/dkg/src/network_interface.rs +++ b/dkg/src/network_interface.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::DKGMessage; use aptos_config::network_id::{NetworkId, PeerNetworkId}; diff --git a/dkg/src/transcript_aggregation/mod.rs b/dkg/src/transcript_aggregation/mod.rs index 62d47817e17f4..ec43bde5ad9dd 100644 --- a/dkg/src/transcript_aggregation/mod.rs +++ b/dkg/src/transcript_aggregation/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{counters::DKG_STAGE_SECONDS, types::DKGTranscriptRequest, DKGMessage}; use anyhow::{anyhow, ensure}; diff --git a/dkg/src/transcript_aggregation/tests.rs b/dkg/src/transcript_aggregation/tests.rs index 891b2c5e5a2a3..8d798bc2f189f 100644 --- a/dkg/src/transcript_aggregation/tests.rs +++ b/dkg/src/transcript_aggregation/tests.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::transcript_aggregation::TranscriptAggregationState; use aptos_crypto::{bls12381::bls12381_keys, Uniform}; diff --git a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/access_trait.rs b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/access_trait.rs index e1bb9b04d31d9..9f92da24aba2d 100644 --- a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/access_trait.rs +++ b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/access_trait.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_protos::transaction::v1::Transaction; use std::fmt::Debug; diff --git a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/gcs.rs b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/gcs.rs index 4dafefabe97f1..025e80fb3fc33 100644 --- a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/gcs.rs +++ b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/gcs.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ access_trait::{AccessMetadata, StorageReadError, StorageReadStatus, StorageTransactionRead}, diff --git a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory.rs b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory.rs index 65dc5df2a8fde..4942890be5a9e 100644 --- a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory.rs +++ b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ access_trait::{AccessMetadata, StorageReadError, StorageReadStatus, StorageTransactionRead}, diff --git a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory_storage/mod.rs b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory_storage/mod.rs index 8a1b76f361312..24633298af144 100644 --- a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory_storage/mod.rs +++ b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory_storage/mod.rs @@ -1,3 +1,3 @@ // Copyright © Aptos Foundation - +// SPDX-License-Identifier: Apache-2.0 pub mod storage; diff --git a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory_storage/storage.rs b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory_storage/storage.rs index 2bb972bbec8b0..8782e724bc4ba 100644 --- a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory_storage/storage.rs +++ b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/in_memory_storage/storage.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{access_trait::AccessMetadata, REDIS_CHAIN_ID, REDIS_ENDING_VERSION_EXCLUSIVE_KEY}; use anyhow::Context; diff --git a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/lib.rs b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/lib.rs index f79435d9ee631..83006e7b08030 100644 --- a/ecosystem/indexer-grpc/indexer-grpc-data-access/src/lib.rs +++ b/ecosystem/indexer-grpc/indexer-grpc-data-access/src/lib.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_protos::transaction::v1::Transaction; use prost::Message; diff --git a/ecosystem/indexer-grpc/indexer-grpc-integration-tests/src/tests/fullnode_tests.rs b/ecosystem/indexer-grpc/indexer-grpc-integration-tests/src/tests/fullnode_tests.rs index ec2a88c23b0e4..54bde310d44c3 100644 --- a/ecosystem/indexer-grpc/indexer-grpc-integration-tests/src/tests/fullnode_tests.rs +++ b/ecosystem/indexer-grpc/indexer-grpc-integration-tests/src/tests/fullnode_tests.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use anyhow::{bail, Context, Result}; use aptos_indexer_grpc_cache_worker::IndexerGrpcCacheWorkerConfig; diff --git a/ecosystem/indexer-grpc/indexer-grpc-server-framework/src/lib.rs b/ecosystem/indexer-grpc/indexer-grpc-server-framework/src/lib.rs index 05aae22948290..ed6e1ff3a1fdd 100644 --- a/ecosystem/indexer-grpc/indexer-grpc-server-framework/src/lib.rs +++ b/ecosystem/indexer-grpc/indexer-grpc-server-framework/src/lib.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use anyhow::{Context, Result}; #[cfg(target_os = "linux")] diff --git a/ecosystem/nft-metadata-crawler-parser/src/lib.rs b/ecosystem/nft-metadata-crawler-parser/src/lib.rs index dd09816431ce0..4beffe0b9d5b5 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/lib.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/lib.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 pub mod config; pub mod models; diff --git a/ecosystem/nft-metadata-crawler-parser/src/main.rs b/ecosystem/nft-metadata-crawler-parser/src/main.rs index 58a0af6c6a3f6..13dfb560742a1 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/main.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/main.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_indexer_grpc_server_framework::ServerArgs; use aptos_nft_metadata_crawler_parser::config::ParserConfig; diff --git a/ecosystem/nft-metadata-crawler-parser/src/models/mod.rs b/ecosystem/nft-metadata-crawler-parser/src/models/mod.rs index 4e6dd5424f49c..a034b1a23f72d 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/models/mod.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/models/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 pub mod ledger_info; pub mod nft_metadata_crawler_uris; diff --git a/ecosystem/nft-metadata-crawler-parser/src/models/nft_metadata_crawler_uris.rs b/ecosystem/nft-metadata-crawler-parser/src/models/nft_metadata_crawler_uris.rs index 25ec7a085434e..c991362feea80 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/models/nft_metadata_crawler_uris.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/models/nft_metadata_crawler_uris.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ models::nft_metadata_crawler_uris_query::NFTMetadataCrawlerURIsQuery, diff --git a/ecosystem/nft-metadata-crawler-parser/src/models/nft_metadata_crawler_uris_query.rs b/ecosystem/nft-metadata-crawler-parser/src/models/nft_metadata_crawler_uris_query.rs index f076ba81fc9e5..65ee71ebe7ad3 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/models/nft_metadata_crawler_uris_query.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/models/nft_metadata_crawler_uris_query.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ schema::nft_metadata_crawler::parsed_asset_uris, utils::constants::MAX_RETRY_TIME_SECONDS, diff --git a/ecosystem/nft-metadata-crawler-parser/src/schema.rs b/ecosystem/nft-metadata-crawler-parser/src/schema.rs index f18c47ac3a4ec..ed7f8278bce59 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/schema.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/schema.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // @generated automatically by Diesel CLI. diff --git a/ecosystem/nft-metadata-crawler-parser/src/utils/constants.rs b/ecosystem/nft-metadata-crawler-parser/src/utils/constants.rs index 543d20b7af31c..4a7078b6283c3 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/utils/constants.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/utils/constants.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 /// Maximum retry time for exponential backoff (2 sec = 3-4 retries) pub const MAX_RETRY_TIME_SECONDS: u64 = 2; diff --git a/ecosystem/nft-metadata-crawler-parser/src/utils/counters.rs b/ecosystem/nft-metadata-crawler-parser/src/utils/counters.rs index 3eaa98ca19ab5..efe9f53dfa229 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/utils/counters.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/utils/counters.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_metrics_core::{ register_int_counter, register_int_counter_vec, IntCounter, IntCounterVec, diff --git a/ecosystem/nft-metadata-crawler-parser/src/utils/database.rs b/ecosystem/nft-metadata-crawler-parser/src/utils/database.rs index 9466748d2d91d..89202f8ffd783 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/utils/database.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/utils/database.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ models::{ledger_info::LedgerInfo, nft_metadata_crawler_uris::NFTMetadataCrawlerURIs}, diff --git a/ecosystem/nft-metadata-crawler-parser/src/utils/gcs.rs b/ecosystem/nft-metadata-crawler-parser/src/utils/gcs.rs index b615aeb96fd31..85bf42d9a4303 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/utils/gcs.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/utils/gcs.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::utils::{ constants::MAX_RETRY_TIME_SECONDS, diff --git a/ecosystem/nft-metadata-crawler-parser/src/utils/image_optimizer.rs b/ecosystem/nft-metadata-crawler-parser/src/utils/image_optimizer.rs index e9e48fd2b6b8e..79354d58a8d90 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/utils/image_optimizer.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/utils/image_optimizer.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ get_uri_metadata, diff --git a/ecosystem/nft-metadata-crawler-parser/src/utils/json_parser.rs b/ecosystem/nft-metadata-crawler-parser/src/utils/json_parser.rs index 234db7a0aa4de..8700f9849da8b 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/utils/json_parser.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/utils/json_parser.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ get_uri_metadata, diff --git a/ecosystem/nft-metadata-crawler-parser/src/utils/mod.rs b/ecosystem/nft-metadata-crawler-parser/src/utils/mod.rs index 4e01fb20351e7..1f91b7e7c32b8 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/utils/mod.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/utils/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 pub mod constants; pub mod counters; diff --git a/ecosystem/nft-metadata-crawler-parser/src/utils/uri_parser.rs b/ecosystem/nft-metadata-crawler-parser/src/utils/uri_parser.rs index f4e0c84da829d..ba16fa6f7367e 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/utils/uri_parser.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/utils/uri_parser.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::utils::{ constants::IPFS_AUTH_KEY, diff --git a/ecosystem/nft-metadata-crawler-parser/src/worker.rs b/ecosystem/nft-metadata-crawler-parser/src/worker.rs index 1c985910af4e9..885a40ec55787 100644 --- a/ecosystem/nft-metadata-crawler-parser/src/worker.rs +++ b/ecosystem/nft-metadata-crawler-parser/src/worker.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ config::ParserConfig, diff --git a/execution/block-partitioner/benches/v2.rs b/execution/block-partitioner/benches/v2.rs index e9f1ae6c45a56..ab17339e87086 100644 --- a/execution/block-partitioner/benches/v2.rs +++ b/execution/block-partitioner/benches/v2.rs @@ -1,5 +1,3 @@ -// Copyright © Aptos Foundation - // Copyright (c) Aptos // SPDX-License-Identifier: Apache-2.0 diff --git a/execution/block-partitioner/src/main.rs b/execution/block-partitioner/src/main.rs index 4a9a2d4717d45..4ccf33c371588 100644 --- a/execution/block-partitioner/src/main.rs +++ b/execution/block-partitioner/src/main.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_block_partitioner::{ test_utils::P2PBlockGenerator, v2::config::PartitionerV2Config, PartitionerConfig, diff --git a/execution/block-partitioner/src/pre_partition/mod.rs b/execution/block-partitioner/src/pre_partition/mod.rs index c0acd8ae2215a..e9cd79788a52a 100644 --- a/execution/block-partitioner/src/pre_partition/mod.rs +++ b/execution/block-partitioner/src/pre_partition/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::v2::{ state::PartitionState, diff --git a/execution/block-partitioner/src/sharded_block_partitioner/config.rs b/execution/block-partitioner/src/sharded_block_partitioner/config.rs index 62346341c156a..d9c03851d0b97 100644 --- a/execution/block-partitioner/src/sharded_block_partitioner/config.rs +++ b/execution/block-partitioner/src/sharded_block_partitioner/config.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ sharded_block_partitioner::ShardedBlockPartitioner, BlockPartitioner, PartitionerConfig, diff --git a/execution/block-partitioner/src/v2/build_edge.rs b/execution/block-partitioner/src/v2/build_edge.rs index a39d583daa09b..7b8c82874a443 100644 --- a/execution/block-partitioner/src/v2/build_edge.rs +++ b/execution/block-partitioner/src/v2/build_edge.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::v2::{counters::MISC_TIMERS_SECONDS, state::PartitionState, PartitionerV2}; use aptos_types::{ diff --git a/execution/block-partitioner/src/v2/config.rs b/execution/block-partitioner/src/v2/config.rs index 97277858db335..1a25f0e3a2c87 100644 --- a/execution/block-partitioner/src/v2/config.rs +++ b/execution/block-partitioner/src/v2/config.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ pre_partition::{ diff --git a/execution/block-partitioner/src/v2/conflicting_txn_tracker.rs b/execution/block-partitioner/src/v2/conflicting_txn_tracker.rs index 487a42f464917..eeb955d117516 100644 --- a/execution/block-partitioner/src/v2/conflicting_txn_tracker.rs +++ b/execution/block-partitioner/src/v2/conflicting_txn_tracker.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::v2::types::{PrePartitionedTxnIdx, ShardedTxnIndexV2}; #[cfg(test)] diff --git a/execution/block-partitioner/src/v2/counters.rs b/execution/block-partitioner/src/v2/counters.rs index d50db5773bd80..b7f1065cf34a5 100644 --- a/execution/block-partitioner/src/v2/counters.rs +++ b/execution/block-partitioner/src/v2/counters.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_metrics_core::{ exponential_buckets, register_histogram, register_histogram_vec, Histogram, HistogramVec, diff --git a/execution/block-partitioner/src/v2/init.rs b/execution/block-partitioner/src/v2/init.rs index 698186c38fb33..f58eeb2fc1f0c 100644 --- a/execution/block-partitioner/src/v2/init.rs +++ b/execution/block-partitioner/src/v2/init.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ get_anchor_shard_id, diff --git a/execution/block-partitioner/src/v2/mod.rs b/execution/block-partitioner/src/v2/mod.rs index 71849305eaf41..b24b3f9da785a 100644 --- a/execution/block-partitioner/src/v2/mod.rs +++ b/execution/block-partitioner/src/v2/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ pre_partition::PrePartitioner, v2::counters::BLOCK_PARTITIONING_SECONDS, BlockPartitioner, diff --git a/execution/block-partitioner/src/v2/partition_to_matrix.rs b/execution/block-partitioner/src/v2/partition_to_matrix.rs index 9970692472701..a58879c6bf5c2 100644 --- a/execution/block-partitioner/src/v2/partition_to_matrix.rs +++ b/execution/block-partitioner/src/v2/partition_to_matrix.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::v2::{ counters::MISC_TIMERS_SECONDS, diff --git a/execution/block-partitioner/src/v2/state.rs b/execution/block-partitioner/src/v2/state.rs index e1d2530de32e3..65171c1775a24 100644 --- a/execution/block-partitioner/src/v2/state.rs +++ b/execution/block-partitioner/src/v2/state.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 #![allow(unused_variables)] diff --git a/execution/block-partitioner/src/v2/types.rs b/execution/block-partitioner/src/v2/types.rs index 66d63fb831f15..34bb212399f2a 100644 --- a/execution/block-partitioner/src/v2/types.rs +++ b/execution/block-partitioner/src/v2/types.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_types::block_executor::partitioner::{ RoundId, ShardId, GLOBAL_ROUND_ID, GLOBAL_SHARD_ID, diff --git a/execution/executor-service/src/process_executor_service.rs b/execution/executor-service/src/process_executor_service.rs index 4126cb719a3e4..3b2e01c7d4ec8 100644 --- a/execution/executor-service/src/process_executor_service.rs +++ b/execution/executor-service/src/process_executor_service.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::remote_executor_service::ExecutorService; use aptos_logger::info; diff --git a/execution/executor-service/src/test_utils.rs b/execution/executor-service/src/test_utils.rs index 925cfd86b5123..5c1854d518aa8 100644 --- a/execution/executor-service/src/test_utils.rs +++ b/execution/executor-service/src/test_utils.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use aptos_block_partitioner::{v2::config::PartitionerV2Config, PartitionerConfig}; use aptos_language_e2e_tests::{ diff --git a/protos/rust/src/pb/aptos.indexer.v1.tonic.rs b/protos/rust/src/pb/aptos.indexer.v1.tonic.rs index 41ad03c2a7a84..e54fedf30d44a 100644 --- a/protos/rust/src/pb/aptos.indexer.v1.tonic.rs +++ b/protos/rust/src/pb/aptos.indexer.v1.tonic.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 // @generated /// Generated client implementations. diff --git a/secure/net/src/network_controller/inbound_handler.rs b/secure/net/src/network_controller/inbound_handler.rs index b0ffc3dbe4ab8..e651ed3497bd8 100644 --- a/secure/net/src/network_controller/inbound_handler.rs +++ b/secure/net/src/network_controller/inbound_handler.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ grpc_network_service::GRPCNetworkMessageServiceServerWrapper, diff --git a/secure/net/src/network_controller/mod.rs b/secure/net/src/network_controller/mod.rs index 8396a78b6b946..4bd9ee80446f6 100644 --- a/secure/net/src/network_controller/mod.rs +++ b/secure/net/src/network_controller/mod.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::network_controller::{ inbound_handler::InboundHandler, outbound_handler::OutboundHandler, diff --git a/secure/net/src/network_controller/outbound_handler.rs b/secure/net/src/network_controller/outbound_handler.rs index 1f6581f524379..908f04ffba16c 100644 --- a/secure/net/src/network_controller/outbound_handler.rs +++ b/secure/net/src/network_controller/outbound_handler.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::{ grpc_network_service::GRPCNetworkMessageServiceClientWrapper, diff --git a/testsuite/fuzzer/src/main.rs b/testsuite/fuzzer/src/main.rs index 8b4b7415a1a1b..57733e1cbdb62 100644 --- a/testsuite/fuzzer/src/main.rs +++ b/testsuite/fuzzer/src/main.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 fn main() { println!("Hello, world!"); diff --git a/types/src/block_executor/partitioner.rs b/types/src/block_executor/partitioner.rs index d17aa354db43e..b42eb4efcd8a4 100644 --- a/types/src/block_executor/partitioner.rs +++ b/types/src/block_executor/partitioner.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use crate::transaction::{ analyzed_transaction::{AnalyzedTransaction, StorageLocation}, diff --git a/types/src/move_utils/as_move_value.rs b/types/src/move_utils/as_move_value.rs index 6e99c6e89ec06..c750584f2e12d 100644 --- a/types/src/move_utils/as_move_value.rs +++ b/types/src/move_utils/as_move_value.rs @@ -1,4 +1,5 @@ // Copyright © Aptos Foundation +// SPDX-License-Identifier: Apache-2.0 use move_core_types::value::{MoveStruct, MoveValue};