Skip to content

Commit

Permalink
chore: add license (#82)
Browse files Browse the repository at this point in the history
* chore: add license

* add license in Cargo.toml file

* chore: add FILE_HEADER and copyright in all files

* chore: change license to GPL-3.0

* chore: replace all files the license information  to one line

* chore: merge main

* refactor: update crates license

* refactor: under GPL-3.0
  • Loading branch information
AlexD10S authored Apr 22, 2024
1 parent 5891beb commit 15ce5fc
Show file tree
Hide file tree
Showing 44 changed files with 738 additions and 0 deletions.
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,9 @@ Pop CLI would not be possible without these awesome crates!

- Local network deployment powered by [zombienet-sdk](https://github.com/paritytech/zombienet-sdk)
- [cargo contract](https://github.com/paritytech/cargo-contract) a setup and deployment tool for developing Wasm based Smart Contracts via ink!

## License

The entire code within this repository is licensed under the [GPLv3](LICENSE).

Please [contact us](https://r0gue.io/contact) if you have questions about the licensing of our products.
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/build/contract.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use std::path::PathBuf;

use clap::Args;
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/build/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use clap::{Args, Subcommand};

#[cfg(feature = "contract")]
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/build/parachain.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use crate::style::{style, Theme};
use clap::Args;
use cliclack::{clear_screen, intro, outro, set_theme};
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/call/contract.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use anyhow::anyhow;
use clap::Args;
use cliclack::{clear_screen, intro, log, outro, outro_cancel, set_theme};
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/call/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use clap::{Args, Subcommand};

#[cfg(feature = "contract")]
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

pub(crate) mod build;
pub(crate) mod call;
pub(crate) mod new;
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/new/contract.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use std::{env::current_dir, fs, path::PathBuf};

use clap::Args;
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/new/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use clap::{Args, Subcommand};

#[cfg(feature = "contract")]
Expand Down
1 change: 1 addition & 0 deletions crates/pop-cli/src/commands/new/pallet.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use crate::style::Theme;
use clap::Args;
use cliclack::{clear_screen, confirm, intro, outro, outro_cancel, set_theme};
Expand Down
1 change: 1 addition & 0 deletions crates/pop-cli/src/commands/new/parachain.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use crate::style::{style, Theme};
use clap::{Args, Parser};
use std::{fs, path::PathBuf};
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/test/contract.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use std::path::PathBuf;

use clap::Args;
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/test/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use clap::{Args, Subcommand};

#[cfg(feature = "contract")]
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/up/contract.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use anyhow::anyhow;
use clap::Args;
use cliclack::{clear_screen, intro, log, outro, outro_cancel};
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/up/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

#[cfg(feature = "contract")]
mod contract;
#[cfg(feature = "parachain")]
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/commands/up/parachain.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use crate::style::{style, Theme};
use clap::Args;
use cliclack::{clear_screen, confirm, intro, log, outro, outro_cancel, set_theme};
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

#[cfg(any(feature = "parachain", feature = "contract"))]
mod commands;
#[cfg(any(feature = "parachain", feature = "contract"))]
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-cli/src/style.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use cliclack::ThemeState;
pub(crate) use console::style;
use console::Style;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-cli/tests/build_contract.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
#![cfg(feature = "e2e_contract")]
use anyhow::{Error, Result};
use assert_cmd::Command;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-cli/tests/build_parachain.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
#![cfg(feature = "e2e_parachain")]
use anyhow::{Error, Result};
use assert_cmd::Command;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-contracts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "pop-contracts"
description = "Library for generating, building, deploying and calling ink! smart contracts."
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
1 change: 1 addition & 0 deletions crates/pop-contracts/src/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use contract_build::{execute, ExecuteArgs};
use std::path::PathBuf;

Expand Down
1 change: 1 addition & 0 deletions crates/pop-contracts/src/call.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use anyhow::Context;
use contract_build::Verbosity;
use contract_extrinsics::{
Expand Down
1 change: 1 addition & 0 deletions crates/pop-contracts/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
mod build;
mod call;
mod errors;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-contracts/src/new.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use crate::errors::Error;
use contract_build::new_contract_project;
use std::path::Path;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-contracts/src/test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use crate::errors::Error;
use duct::cmd;
use std::path::PathBuf;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-contracts/src/up.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use crate::utils::{
helpers::{get_manifest_path, parse_balance},
signer::create_signer,
Expand Down
1 change: 1 addition & 0 deletions crates/pop-contracts/src/utils/helpers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use crate::errors::Error;
use contract_build::ManifestPath;
use contract_extrinsics::BalanceVariant;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-contracts/src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// SPDX-License-Identifier: GPL-3.0
pub mod helpers;
pub mod signer;
1 change: 1 addition & 0 deletions crates/pop-contracts/src/utils/signer.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use crate::errors::Error;
use contract_build::util::decode_hex;
use sp_core::Bytes;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-parachains/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "pop-parachains"
description = "Library for generating, building and running parachains."
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
1 change: 1 addition & 0 deletions crates/pop-parachains/src/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use duct::cmd;
use std::path::PathBuf;

Expand Down
1 change: 1 addition & 0 deletions crates/pop-parachains/src/generator/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// SPDX-License-Identifier: GPL-3.0
pub mod pallet;
pub mod parachain;
1 change: 1 addition & 0 deletions crates/pop-parachains/src/generator/pallet.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use std::path::PathBuf;

use crate::utils::helpers::write_to_file;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-parachains/src/generator/parachain.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use std::path::Path;

use askama::Template;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-parachains/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
mod build;
mod errors;
mod generator;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-parachains/src/new_pallet.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use std::{fs, path::PathBuf};

use crate::errors::Error;
Expand Down
2 changes: 2 additions & 0 deletions crates/pop-parachains/src/new_parachain.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: GPL-3.0

use crate::{
generator::parachain::{ChainSpec, Network},
utils::{
Expand Down
1 change: 1 addition & 0 deletions crates/pop-parachains/src/up.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use crate::errors::Error;
use crate::utils::git::{Git, GitHub};
use duct::cmd;
Expand Down
1 change: 1 addition & 0 deletions crates/pop-parachains/src/utils/git.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use crate::errors::Error;
use anyhow::Result;
use git2::{
Expand Down
1 change: 1 addition & 0 deletions crates/pop-parachains/src/utils/helpers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use std::{
fs::{self, OpenOptions},
io::{self, stdin, stdout, Write},
Expand Down
1 change: 1 addition & 0 deletions crates/pop-parachains/src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
pub mod git;
pub mod helpers;
pub mod pallet_helpers;
1 change: 1 addition & 0 deletions crates/pop-parachains/src/utils/pallet_helpers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// SPDX-License-Identifier: GPL-3.0
use crate::errors::Error;
use std::{
env::current_dir,
Expand Down

0 comments on commit 15ce5fc

Please sign in to comment.