Skip to content

Commit

Permalink
chore(license): append the license to the top of each file (#927)
Browse files Browse the repository at this point in the history
* chore(license): append the license to the top of each file

* lint

* add licensing to calc
  • Loading branch information
TarikGul committed May 26, 2022
1 parent 39c8776 commit 8906816
Show file tree
Hide file tree
Showing 308 changed files with 4,920 additions and 0 deletions.
14 changes: 14 additions & 0 deletions calc/src/calc_fee.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright (C) 2022 Parity Technologies (UK) Ltd. (admin@parity.io)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::debug;
use core::str::FromStr;
use log::info;
Expand Down
14 changes: 14 additions & 0 deletions calc/src/calc_payout.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright (C) 2022 Parity Technologies (UK) Ltd. (admin@parity.io)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use crate::debug;
use core::str::FromStr;
use log::info;
Expand Down
14 changes: 14 additions & 0 deletions calc/src/debug.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright (C) 2022 Parity Technologies (UK) Ltd. (admin@parity.io)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#[cfg(feature = "debug")]
pub fn setup() {
console_error_panic_hook::set_once();
Expand Down
14 changes: 14 additions & 0 deletions calc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright (C) 2022 Parity Technologies (UK) Ltd. (admin@parity.io)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

pub mod calc_fee;
pub mod calc_payout;
mod debug;
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import { IChains } from '../types';
import { kusamaEndpoints } from './kusama';
import { polkadotEndpoints } from './polkadot';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/accounts/balance-info/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import accountBalance10000 from './10000.json';
import accountBalance1355087 from './1355087.json';
import accountBalance1455087 from './1455087.json';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/accounts/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import { kusamaAccountBalanceEndpoints } from './balance-info';
import { kusamaAccountStakingInfoEndpoints } from './staking-info';
import { kusamaAccountValidateEndpoints } from './validate';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/accounts/staking-info/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import accountsStakingInfo1500000 from './1500000.json';
import accountsStakingInfo3000000 from './3000000.json';
import accountsStakingInfo5000000 from './5000000.json';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/accounts/validate/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import validKusama from './validKusama.json';

const validKusamaStringify = JSON.stringify(validKusama);
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/accounts/vesting-info/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import accountVestingInfo3132897 from './3132897.json';
import accountVestingInfo5190210 from './5190210.json';
import accountVestingInfo5626862 from './5626862.json';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/blocks/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import block9253 from './9253.json';
import block2350438 from './2350438.json';
import block2684767 from './2684767.json';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import { kusamaAccountsEndpoints } from './accounts';
import { kusamaBlockEndpoints } from './blocks';
import { kusamaParasEndpoints } from './paras';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/paras/auctions-current/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import parasAuctionsCurrent8351749 from './8351749.json';
import parasAuctionsCurrent8400000 from './8400000.json';
import parasAuctionsCurrent8423750 from './8423750.json';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/paras/crowdloan-info/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import parasCrowdloanInfo8367200 from './8367200.json';
import parasCrowdloanInfo9000000 from './9000000.json';
import parasCrowdloanInfo9810000 from './9810000.json';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/paras/crowdloans/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import parasCrowdloans8200000 from './8200000.json';
import parasCrowdloans9800000 from './9800000.json';
import parasCrowdloans10119301 from './10119301.json';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/paras/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import { parasAuctionsCurrentEndpoints } from './auctions-current';
import { parasCrowdloanInfoEndpoints } from './crowdloan-info';
import { parasCrowdloansEndpoints } from './crowdloans';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/paras/lease-info/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import parasLeaseInfo8500000 from './8500000.json';
import parasLeaseInfo9000000 from './9000000.json';
import parasLeaseInfo9800000 from './9800000.json';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/paras/leases-current/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import parasLeasesCurrent8200000 from './8200000.json';
import parasLeasesCurrent9000000 from './9000000.json';
import parasLeasesCurrent9800000 from './9800000.json';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/paras/paras/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import parasParas8400000 from './8400000.json';
import parasParas9400000 from './9400000.json';
import parasParas9800000 from './9800000.json';
Expand Down
16 changes: 16 additions & 0 deletions e2e-tests/endpoints/kusama/runtime/code/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar 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.
//
// This program 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 this program. If not, see <http://www.gnu.org/licenses/>.

import runtimeCode10000 from './10000.json';
import runtimeCode8000000 from './8000000.json';

Expand Down
Loading

0 comments on commit 8906816

Please sign in to comment.