Skip to content

Commit

Permalink
chore: normalize license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Feb 20, 2022
1 parent db023ad commit bf8bd16
Show file tree
Hide file tree
Showing 74 changed files with 117 additions and 74 deletions.
3 changes: 2 additions & 1 deletion network_utils/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

pub mod network;
Expand Down
3 changes: 2 additions & 1 deletion network_utils/src/network.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::transport::*;
Expand Down
3 changes: 2 additions & 1 deletion network_utils/src/transport.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use futures::future;
Expand Down
3 changes: 2 additions & 1 deletion network_utils/src/unit_tests/transport_tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use super::*;
Expand Down
3 changes: 2 additions & 1 deletion sui/src/bench.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

#![deny(warnings)]
Expand Down
3 changes: 2 additions & 1 deletion sui/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use sui_types::base_types::*;
Expand Down
3 changes: 2 additions & 1 deletion sui/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

pub mod config;
Expand Down
2 changes: 1 addition & 1 deletion sui/src/shell.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use async_trait::async_trait;
Expand Down
2 changes: 1 addition & 1 deletion sui/src/sui-move.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use std::path::Path;
Expand Down
5 changes: 2 additions & 3 deletions sui/src/sui.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
extern crate core;

// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
extern crate core;

use std::path::PathBuf;
use structopt::StructOpt;
Expand Down
2 changes: 2 additions & 0 deletions sui/src/sui_commands.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use crate::config::{
AccountInfo, AuthorityInfo, AuthorityPrivateInfo, GenesisConfig, NetworkConfig, WalletConfig,
};
Expand Down
2 changes: 2 additions & 0 deletions sui/src/unit_tests/cli_tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use super::*;
use std::fs::read_dir;
use std::time::Duration;
Expand Down
2 changes: 1 addition & 1 deletion sui/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use serde::de::DeserializeOwned;
use serde::{Deserialize, Serialize};
Expand Down
2 changes: 1 addition & 1 deletion sui/src/wallet.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use async_trait::async_trait;
use colored::Colorize;
Expand Down
2 changes: 1 addition & 1 deletion sui/src/wallet_commands.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use crate::config::{AccountInfo, WalletConfig};
use sui_core::authority_client::AuthorityClient;
Expand Down
3 changes: 2 additions & 1 deletion sui/tests/readme.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use std::{io::Write, process::Command};
Expand Down
3 changes: 2 additions & 1 deletion sui_core/src/authority.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use move_bytecode_utils::module_cache::ModuleCache;
Expand Down
2 changes: 2 additions & 0 deletions sui_core/src/authority/authority_store.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use super::*;

use rocksdb::Options;
Expand Down
2 changes: 2 additions & 0 deletions sui_core/src/authority/temporary_store.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use move_core_types::account_address::AccountAddress;
use sui_types::event::Event;

Expand Down
3 changes: 2 additions & 1 deletion sui_core/src/authority_aggregator.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::authority_client::AuthorityAPI;
Expand Down
3 changes: 2 additions & 1 deletion sui_core/src/authority_client.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use async_trait::async_trait;
Expand Down
3 changes: 2 additions & 1 deletion sui_core/src/authority_server.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::authority::AuthorityState;
Expand Down
3 changes: 2 additions & 1 deletion sui_core/src/client.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::{authority_aggregator::AuthorityAggregator, authority_client::AuthorityAPI};
Expand Down
2 changes: 2 additions & 0 deletions sui_core/src/client/client_store.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use super::*;
use move_core_types::language_storage::StructTag;
use move_core_types::value::MoveStructLayout;
Expand Down
5 changes: 3 additions & 2 deletions sui_core/src/generate_format.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use sui_types::{error, messages, serialize};
use serde_reflection::{Registry, Result, Samples, Tracer, TracerConfig};
use std::{fs::File, io::Write};
use structopt::{clap::arg_enum, StructOpt};
use sui_types::{error, messages, serialize};

fn get_registry() -> Result<Registry> {
let mut tracer = Tracer::new(TracerConfig::default());
Expand Down
3 changes: 2 additions & 1 deletion sui_core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

pub mod authority;
Expand Down
3 changes: 2 additions & 1 deletion sui_core/src/safe_client.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::authority_client::AuthorityAPI;
Expand Down
3 changes: 2 additions & 1 deletion sui_core/src/unit_tests/authority_tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use super::*;
Expand Down
3 changes: 2 additions & 1 deletion sui_core/src/unit_tests/client_tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
#![allow(clippy::same_item_push)] // get_key_pair returns random elements

Expand Down
3 changes: 2 additions & 1 deletion sui_core/tests/format.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

/* TODO: Fix define new formats and re-enable tests
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/adapter/src/adapter.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use anyhow::Result;
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/adapter/src/bytecode_rewriter.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use anyhow::{bail, Result};
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/adapter/src/genesis.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use move_vm_runtime::native_functions::NativeFunctionTable;
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/adapter/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

pub mod adapter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::{adapter, genesis};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use move_binary_format::{
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/framework/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use move_binary_format::CompiledModule;
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/framework/src/natives/event.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::EventType;
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/framework/src/natives/id.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::EventType;
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/framework/src/natives/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

mod event;
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/framework/src/natives/test_helper.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::EventType;
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/framework/src/natives/transfer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::EventType;
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/framework/src/natives/tx_context.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use move_binary_format::errors::PartialVMResult;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::verification_failure;
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/verifier/src/id_immutable_verifier.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

//! The ID field of structs with key ability is immutable since it represents a
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/verifier/src/id_leak_verifier.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

//! Objects whose struct type has key ability represent Sui objects.
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/verifier/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

pub mod verifier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use move_binary_format::{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use crate::verification_failure;
Expand Down
2 changes: 1 addition & 1 deletion sui_programmability/verifier/src/verifier.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

//! This module contains the public APIs supported by the bytecode verifier.
Expand Down
3 changes: 2 additions & 1 deletion sui_programmability/verifier/tests/common/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

pub mod module_builder;
3 changes: 2 additions & 1 deletion sui_programmability/verifier/tests/common/module_builder.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use move_binary_format::file_format::*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

mod common;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

mod common;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

mod common;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

mod common;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

mod common;
Expand Down
5 changes: 3 additions & 2 deletions sui_types/src/base_types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::crypto::PublicKeyBytes;
// Copyright (c) Facebook, Inc. and its affiliates.
// Copyright (c) 2021, Facebook, Inc. and its affiliates
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0
use crate::crypto::PublicKeyBytes;
use crate::error::SuiError;
use ed25519_dalek::Digest;

Expand Down
2 changes: 1 addition & 1 deletion sui_types/src/coin.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Mysten Labs
// Copyright (c) 2022, Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use move_core_types::{
Expand Down
Loading

0 comments on commit bf8bd16

Please sign in to comment.