[chores] Rename all of pDSL in license headers and license template to ink!

parent 888211dc
// Copyright {\d+}-{\d+} Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
[package]
name = "cargo-pdsl"
name = "cargo-contract"
version = "0.1.0"
authors = ["Robin Freyler <robin@parity.io>", "Parity Technologies <admin@parity.io>"]
edition = "2018"
......@@ -7,7 +7,7 @@ edition = "2018"
license = "GPL-3.0"
readme = "README.md"
description = "Setup and deployment tool for developing Wasm based smart contracts via pDSL"
description = "Setup and deployment tool for developing Wasm based smart contracts via ink!"
keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"]
categories = ["cli", "tool"]
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use std::{
io::Error as IoError,
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
mod error;
mod new;
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use crate::{
cmd::{
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
mod cmd;
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
//! Utilities to operate on byte or slices of bytes.
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use super::ContractEnv;
use crate::{
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
//! Contract environments.
//!
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
#[cfg(not(feature = "test-env"))]
mod srml_only;
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use crate::{
env::{
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
mod impls;
pub mod sys;
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
//! External C API to communicate with substrate contracts runtime module.
//!
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use core::{
array::TryFromSliceError,
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
//! Public api to interact with the special testing environment.
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use super::*;
use crate::{
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use crate::{
memory::vec::Vec,
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
//! Data structures to operate on main memory.
//!
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use core::{
alloc::Layout,
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use super::*;
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use super::*;
use crate::storage::{
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use super::*;
use crate::storage::{
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
//! Facilities to allocate and deallocate contract storage dynamically.
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use super::*;
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
use crate::storage::Key;
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with pDSL. If not, see <http://www.gnu.org/licenses/>.
// along with ink!. If not, see <http://www.gnu.org/licenses/>.
//! Provides low-level primitive cell types.
......
// Copyright 2018-2019 Parity Technologies (UK) Ltd.
// This file is part of pDSL.
// This file is part of ink!.
//
// pDSL is free software: you can redistribute it and/or modify
// ink! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// pDSL is distributed in the hope that it will be useful,
// ink! is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of