Skip to content

Commit

Permalink
[License] Correct license headers in various files.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLind committed Mar 26, 2024
1 parent ccce21d commit 1636bfa
Show file tree
Hide file tree
Showing 178 changed files with 175 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{transactions, transactions::RAYON_EXEC_POOL};
use aptos_bitvec::BitVec;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
block_executor::AptosTransactionOutput,
Expand Down
1 change: 1 addition & 0 deletions aptos-move/aptos-vm/src/sharded_block_executor/messages.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
block_executor::BlockAptosVM,
Expand Down
1 change: 1 addition & 0 deletions aptos-move/aptos-vm/src/validator_txns/dkg.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
aptos_vm::get_or_vm_startup_failure,
Expand Down
1 change: 1 addition & 0 deletions aptos-move/aptos-vm/src/validator_txns/jwk.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
aptos_vm::get_or_vm_startup_failure,
Expand Down
1 change: 1 addition & 0 deletions aptos-move/aptos-vm/src/validator_txns/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
move_vm_ext::{AptosMoveResolver, SessionId},
Expand Down
1 change: 1 addition & 0 deletions aptos-move/e2e-move-tests/src/resource_groups.rs
Original file line number Diff line number Diff line change
@@ -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::{
Expand Down
1 change: 1 addition & 0 deletions aptos-move/framework/move-stdlib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

// Copyright (c) The Diem Core Contributors
// Copyright (c) The Move Contributors
Expand Down
1 change: 1 addition & 0 deletions aptos-move/framework/move-stdlib/src/natives/bcs.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

// Copyright (c) The Diem Core Contributors
// Copyright (c) The Move Contributors
Expand Down
1 change: 1 addition & 0 deletions aptos-move/framework/move-stdlib/src/natives/hash.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

// Copyright (c) The Diem Core Contributors
// Copyright (c) The Move Contributors
Expand Down
1 change: 1 addition & 0 deletions aptos-move/framework/move-stdlib/src/natives/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

// Copyright (c) The Diem Core Contributors
// Copyright (c) The Move Contributors
Expand Down
1 change: 1 addition & 0 deletions aptos-move/framework/move-stdlib/src/natives/signer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

// Copyright (c) The Diem Core Contributors
// Copyright (c) The Move Contributors
Expand Down
1 change: 1 addition & 0 deletions aptos-move/framework/move-stdlib/src/natives/string.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

// Copyright (c) The Diem Core Contributors
// Copyright (c) The Move Contributors
Expand Down
1 change: 1 addition & 0 deletions aptos-move/framework/move-stdlib/src/natives/unit_test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

// Copyright (c) The Diem Core Contributors
// Copyright (c) The Move Contributors
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

pub mod add;
pub mod div;
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
abort_unless_feature_flag_enabled,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
abort_unless_feature_flag_enabled,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
abort_unless_feature_flag_enabled,
Expand Down
2 changes: 0 additions & 2 deletions aptos-move/framework/src/natives/cryptography/algebra/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright © Aptos Foundation

// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

#[cfg(feature = "testing")]
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
abort_unless_feature_flag_enabled,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

#[cfg(feature = "testing")]
use crate::{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
abort_unless_feature_flag_enabled,
Expand Down
2 changes: 0 additions & 2 deletions aptos-move/framework/src/natives/cryptography/bulletproofs.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// Copyright © Aptos Foundation

// Copyright (c) Aptos
// SPDX-License-Identifier: Apache-2.0

#[cfg(feature = "testing")]
Expand Down
1 change: 1 addition & 0 deletions aptos-move/framework/src/natives/debug.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

// Copyright (c) The Diem Core Contributors
// Copyright (c) The Move Contributors
Expand Down
1 change: 1 addition & 0 deletions aptos-move/framework/table-natives/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

// Copyright (c) The Diem Core Contributors
// Copyright (c) The Move Contributors
Expand Down
1 change: 1 addition & 0 deletions aptos-utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions config/src/config/dag_consensus_config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use super::{
config_sanitizer::ConfigSanitizer, node_config_loader::NodeType, ChainHealthBackoffValues,
Expand Down
1 change: 1 addition & 0 deletions config/src/config/dkg_config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use serde::{Deserialize, Serialize};

Expand Down
1 change: 1 addition & 0 deletions config/src/config/jwk_consensus_config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use serde::{Deserialize, Serialize};

Expand Down
1 change: 1 addition & 0 deletions consensus/consensus-types/src/proposal_ext.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/bootstrap.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use super::{
adapter::{OrderedNotifierAdapter, TLedgerInfoProvider},
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/commit_signer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::pipeline::signing_phase::CommitSignerProvider;
use aptos_crypto::bls12381;
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/dag_handler.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
dag::{
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/dag_network.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use super::{types::DAGMessage, DAGRpcResult};
use aptos_consensus_types::common::Author;
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/dag_state_sync.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use super::{
adapter::TLedgerInfoProvider,
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/errors.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use aptos_bitvec::BitVec;
use aptos_consensus_types::common::Round;
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/tests/dag_driver_tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
dag::{
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/tests/dag_network_test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::dag::{
dag_network::{RpcWithFallback, TDAGNetworkSender},
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/tests/dag_state_sync_tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use super::helpers::TEST_DAG_WINDOW;
use crate::{
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/tests/fetcher_test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use super::dag_test::MockStorage;
use crate::dag::{
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/tests/helpers.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
dag::{
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/tests/integration_tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use super::dag_test;
use crate::{
Expand Down
1 change: 1 addition & 0 deletions consensus/src/dag/tests/types_test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use super::helpers::new_node;
use crate::dag::{
Expand Down
1 change: 1 addition & 0 deletions consensus/src/payload_client/mixed.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

#[cfg(test)]
use crate::payload_client::user;
Expand Down
1 change: 1 addition & 0 deletions consensus/src/payload_client/user/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::error::QuorumStoreError;
use aptos_consensus_types::common::{Payload, PayloadFilter};
Expand Down
1 change: 1 addition & 0 deletions consensus/src/payload_client/user/quorum_store_client.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
counters::WAIT_FOR_FULL_BLOCKS_TRIGGERED, error::QuorumStoreError, monitor,
Expand Down
1 change: 1 addition & 0 deletions consensus/src/payload_client/validator.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
1 change: 1 addition & 0 deletions consensus/src/state_computer_tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::{
error::MempoolError, payload_manager::PayloadManager, state_computer::ExecutionProxy,
Expand Down
1 change: 1 addition & 0 deletions crates/aptos-api-tester/src/consts.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

use crate::utils::NetworkName;
use once_cell::sync::Lazy;
Expand Down
1 change: 1 addition & 0 deletions crates/aptos-api-tester/src/counters.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
1 change: 1 addition & 0 deletions crates/aptos-api-tester/src/macros.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

#[macro_export]
macro_rules! time_fn {
Expand Down
1 change: 1 addition & 0 deletions crates/aptos-api-tester/src/persistent_check.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions crates/aptos-api-tester/src/strings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright © Aptos Foundation
// SPDX-License-Identifier: Apache-2.0

// Fail messages

Expand Down
Loading

0 comments on commit 1636bfa

Please sign in to comment.