Skip to content

Commit

Permalink
copyright added
Browse files Browse the repository at this point in the history
  • Loading branch information
gleb-urvanov committed Dec 10, 2020
1 parent bf96358 commit 6c51144
Show file tree
Hide file tree
Showing 25 changed files with 36 additions and 234 deletions.
1 change: 1 addition & 0 deletions client/block-builder/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file is part of Substrate.

// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd.
// Copyright (C) 2020 Mangata team
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
1 change: 1 addition & 0 deletions client/service/src/client/client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file is part of Substrate.

// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd.
// Copyright (C) 2020 Mangata team
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0

// This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 2 additions & 0 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team

use sp_core::{Pair, Public, sr25519};
use mangata_runtime::{
AccountId, BabeConfig, BalancesConfig, GenesisConfig, GrandpaConfig, SessionConfig,
Expand Down
2 changes: 2 additions & 0 deletions node/src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team

use structopt::StructOpt;
use sc_cli::RunCmd;

Expand Down
1 change: 1 addition & 0 deletions node/src/command.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file is part of Substrate.

// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd.
// Copyright (C) 2020 Mangata team
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 2 additions & 0 deletions node/src/service.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team

//! Service and ServiceFactory implementation. Specialized wrapper over substrate service.
use std::sync::Arc;
Expand Down
2 changes: 2 additions & 0 deletions pallets/assets-info/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team

#![cfg_attr(not(feature = "std"), no_std)]

/// Edit this file to define custom logic or remove it if it is not needed.
Expand Down
2 changes: 2 additions & 0 deletions pallets/assets-info/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team

use crate::{Module, Trait};
use sp_core::H256;
use frame_support::{impl_outer_origin, parameter_types, weights::Weight};
Expand Down
2 changes: 2 additions & 0 deletions pallets/assets-info/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team

use crate::{mock::*, AssetInfo, Error};
use frame_support::{assert_noop, assert_ok};

Expand Down
1 change: 1 addition & 0 deletions pallets/assets/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file is part of Substrate.

// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd.
// Copyright (C) 2020 Mangata team
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
3 changes: 3 additions & 0 deletions pallets/bridged-asset/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (C) 2020 Mangata team
// Based on Snowfork bridge implementation

//! # Asset
//!
//! The asset module provides functionality for handling bridged asset balances.
Expand Down
2 changes: 2 additions & 0 deletions pallets/erc20-app/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team
// Based on Snowfork bridge implementation
//! # ERC20
//!
//! An application that implements bridged ERC20 token assets.
Expand Down
2 changes: 2 additions & 0 deletions pallets/eth-app/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team
// Based on Snowfork bridge implementation
//! # ETH
//!
//! An application that implements a bridged ETH asset.
Expand Down
1 change: 1 addition & 0 deletions pallets/executive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file is part of Substrate.

// Copyright (C) 2017-2020 Parity Technologies (UK) Ltd.
// Copyright (C) 2020 Mangata team
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
36 changes: 0 additions & 36 deletions pallets/template/Cargo.toml

This file was deleted.

103 changes: 0 additions & 103 deletions pallets/template/src/lib.rs

This file was deleted.

61 changes: 0 additions & 61 deletions pallets/template/src/mock.rs

This file was deleted.

23 changes: 0 additions & 23 deletions pallets/template/src/tests.rs

This file was deleted.

2 changes: 2 additions & 0 deletions pallets/xyk/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team

#![cfg_attr(not(feature = "std"), no_std)]

/// For more guidance on Substrate modules, see the example module
Expand Down
2 changes: 2 additions & 0 deletions pallets/xyk/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team

use crate::{Module, Trait};
use sp_core::H256;

Expand Down
2 changes: 2 additions & 0 deletions pallets/xyk/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team

use super::*;
use crate::mock::*;
use crate::mock::Test;
Expand Down
2 changes: 2 additions & 0 deletions primitives/core/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team
// Based on Snowfork bridge implementation
use std::env;
use std::fs;
use std::path::Path;
Expand Down
3 changes: 2 additions & 1 deletion primitives/core/src/registry.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

// Copyright (C) 2020 Mangata team
// Based on Snowfork bridge implementation
use crate::types::AppId;
use sp_std::convert::TryInto;

Expand Down
1 change: 0 additions & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ hex-literal = { optional = true, version = '0.3.1' }
serde = { features = ['derive'], optional = true, version = '1.0.101' }

# local dependencies
pallet-template = { path = '../pallets/template', default-features = false, version = '2.0.0' }
pallet-xyk = { path = '../pallets/xyk', default-features = false, version = '0.1.0' }
pallet-assets = { path = '../pallets/assets', default-features = false, version = '2.0.0' }
frame-executive = { path = '../pallets/executive', default-features = false, version = '2.0.0' }
Expand Down
11 changes: 2 additions & 9 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (C) 2020 Mangata team

#![cfg_attr(not(feature = "std"), no_std)]
// `construct_runtime!` does a lot of recursion and requires us to increase the limit to 256.
#![recursion_limit="256"]
Expand Down Expand Up @@ -41,8 +43,6 @@ pub use frame_support::{
},
};

/// Import the template pallet.
pub use pallet_template;
pub use pallet_xyk;
pub use pallet_assets;
pub use pallet_assets_info;
Expand Down Expand Up @@ -421,11 +421,6 @@ impl pallet_assets::Trait for Runtime {
type Event = Event;
}

/// Configure the template pallet in pallets/template.
impl pallet_template::Trait for Runtime {
type Event = Event;
}

impl pallet_xyk::Trait for Runtime {
type Event = Event;
type Randomness = RandomnessCollectiveFlip;
Expand Down Expand Up @@ -497,8 +492,6 @@ construct_runtime!(
Sudo: pallet_sudo::{Module, Call, Config<T>, Storage, Event<T>},
Assets: pallet_assets::{Module, Call, Storage, Event<T>},
Offences: pallet_offences::{Module, Call, Storage, Event},
// Include the custom logic from the template pallet in the runtime.
TemplateModule: pallet_template::{Module, Call, Storage, Event<T>},
Xyk: pallet_xyk::{Module, Call, Storage, Event<T>},
// Snowfork pallets
Bridge: bridge::{Module, Call, Storage, Event},
Expand Down

0 comments on commit 6c51144

Please sign in to comment.