Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
ink
Commits
977aee6d
Unverified
Commit
977aee6d
authored
Apr 22, 2019
by
Robin Freyler
Browse files
[chores] Rename all of pDSL in license headers and license template to ink!
parent
888211dc
Changes
93
Hide whitespace changes
Inline
Side-by-side
LICENSE_TEMPLATE
View file @
977aee6d
// 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/>.
cli/Cargo.toml
View file @
977aee6d
[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"
]
...
...
cli/src/cmd/error.rs
View file @
977aee6d
// 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
,
...
...
cli/src/cmd/mod.rs
View file @
977aee6d
// 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
;
...
...
cli/src/cmd/new.rs
View file @
977aee6d
// 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
::{
...
...
cli/src/main.rs
View file @
977aee6d
// 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
;
...
...
core/src/byte_utils.rs
View file @
977aee6d
// 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.
...
...
core/src/env/api.rs
View file @
977aee6d
// 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
::{
...
...
core/src/env/mod.rs
View file @
977aee6d
// 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.
//!
...
...
core/src/env/srml/mod.rs
View file @
977aee6d
// 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
;
...
...
core/src/env/srml/srml_only/impls.rs
View file @
977aee6d
// 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
::{
...
...
core/src/env/srml/srml_only/mod.rs
View file @
977aee6d
// 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
;
...
...
core/src/env/srml/srml_only/sys.rs
View file @
977aee6d
// 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.
//!
...
...
core/src/env/srml/types.rs
View file @
977aee6d
// 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
,
...
...
core/src/env/test.rs
View file @
977aee6d
// 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.
...
...
core/src/env/test_env.rs
View file @
977aee6d
// 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
::{
...
...
core/src/env/traits.rs
View file @
977aee6d
// 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
,
...
...
core/src/lib.rs
View file @
977aee6d
// 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(
...
...
core/src/memory.rs
View file @
977aee6d
// 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.
//!
...
...
core/src/panic_handler.rs
View file @
977aee6d
// 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
,
...
...
Prev
1
2
3
4
5
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment