Skip to content

Commit

Permalink
add license
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Apr 12, 2024
1 parent 42c069e commit 0c3a703
Show file tree
Hide file tree
Showing 9 changed files with 121 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/regions/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
License: Unlicense
## Pallet Regions
15 changes: 15 additions & 0 deletions pallets/regions/src/benchmarking.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// This file is part of RegionX.
//
// RegionX 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.
//
// RegionX 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 RegionX. If not, see <https://www.gnu.org/licenses/>.

//! Benchmarking setup for pallet-regions
use super::*;
Expand Down
15 changes: 15 additions & 0 deletions pallets/regions/src/ismp_mock.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// This file is part of RegionX.
//
// RegionX 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.
//
// RegionX 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 RegionX. If not, see <https://www.gnu.org/licenses/>.

use ismp::{
error::Error,
router::{DispatchRequest, Get as IsmpGet, IsmpDispatcher, PostResponse, Request},
Expand Down
15 changes: 15 additions & 0 deletions pallets/regions/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// This file is part of RegionX.
//
// RegionX 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.
//
// RegionX 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 RegionX. If not, see <https://www.gnu.org/licenses/>.

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

use core::cmp::max;
Expand Down
15 changes: 15 additions & 0 deletions pallets/regions/src/mock.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// This file is part of RegionX.
//
// RegionX 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.
//
// RegionX 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 RegionX. If not, see <https://www.gnu.org/licenses/>.

use crate::{ismp_mock::MockDispatcher, StateMachineHeightProvider};
use frame_support::{pallet_prelude::*, parameter_types, traits::Everything};
use frame_system as system;
Expand Down
15 changes: 15 additions & 0 deletions pallets/regions/src/nonfungible_impls.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// This file is part of RegionX.
//
// RegionX 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.
//
// RegionX 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 RegionX. If not, see <https://www.gnu.org/licenses/>.

use crate::*;
use frame_support::{
ensure,
Expand Down
15 changes: 15 additions & 0 deletions pallets/regions/src/primitives.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// This file is part of RegionX.
//
// RegionX 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.
//
// RegionX 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 RegionX. If not, see <https://www.gnu.org/licenses/>.

use ismp::consensus::StateMachineId;

pub trait StateMachineHeightProvider {
Expand Down
15 changes: 15 additions & 0 deletions pallets/regions/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// This file is part of RegionX.
//
// RegionX 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.
//
// RegionX 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 RegionX. If not, see <https://www.gnu.org/licenses/>.

use crate::{
ismp_mock::requests, mock::*, utils, IsmpCustomError, IsmpModuleCallback, Record, Region,
};
Expand Down
15 changes: 15 additions & 0 deletions pallets/regions/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// This file is part of RegionX.
//
// RegionX 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.
//
// RegionX 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 RegionX. If not, see <https://www.gnu.org/licenses/>.

use crate::IsmpError;
use frame_support::traits::fungible::Inspect;
use pallet_broker::RegionRecord;
Expand Down

0 comments on commit 0c3a703

Please sign in to comment.