8000 chore(proto): add licenses to proto files by MalteHerrmann · Pull Request #1627 · evmos/evmos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore(proto): add licenses to proto files #1627

8000 New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load f 8000 iles.
Loading
Diff view
Diff view
2 changes: 2 addition 10000 s & 0 deletions proto/ethermint/crypto/v1/ethsecp256k1/keys.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.crypto.v1.ethsecp256k1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/evm/v1/events.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.evm.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/evm/v1/evm.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.evm.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/evm/v1/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.evm.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/evm/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.evm.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/evm/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.evm.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/feemarket/v1/events.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.feemarket.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/feemarket/v1/feemarket.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.feemarket.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/feemarket/v1/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.feemarket.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/feemarket/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.feemarket.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/feemarket/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.feemarket.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/types/v1/account.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.types.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/types/v1/dynamic_fee.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.types.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/types/v1/indexer.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.types.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/ethermint/types/v1/web3.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package ethermint.types.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/claims/v1/claims.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.claims.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/claims/v1/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:LGPL-3.0-only
syntax = "proto3";
package evmos.claims.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/claims/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.claims.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/claims/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.claims.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/epochs/v1/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.epochs.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/epochs/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.epochs.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/erc20/v1/erc20.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.erc20.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/erc20/v1/events.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.erc20.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/erc20/v1/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.erc20.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/erc20/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.erc20.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/erc20/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.erc20.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/incentives/v1/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.incentives.v1;
import "evmos/incentives/v1/incentives.proto";
Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/incentives/v1/incentives.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.incentives.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/incentives/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.incentives.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/incentives/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.incentives.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/inflation/v1/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.inflation.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/inflation/v1/inflation.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.inflation.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/inflation/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.inflation.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/inflation/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.inflation.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/recovery/v1/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.recovery.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/recovery/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.recovery.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/recovery/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.recovery.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/revenue/v1/events.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:LGPL-3.0-only
syntax = "proto3";
package evmos.revenue.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/revenue/v1/genesis.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:LGPL-3.0-only
syntax = "proto3";
package evmos.revenue.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/revenue/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:LGPL-3.0-only
syntax = "proto3";
package evmos.revenue.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/revenue/v1/revenue.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:LGPL-3.0-only
syntax = "proto3";
package evmos.revenue.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/revenue/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:LGPL-3.0-only
syntax = "proto3";
package evmos.revenue.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/vesting/v1/events.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.vesting.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/vesting/v1/query.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.vesting.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/vesting/v1/tx.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.vesting.v1;

Expand Down
2 changes: 2 additions & 0 deletions proto/evmos/vesting/v1/vesting.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Tharsis Labs Ltd.(Evmos)
// SPDX-License-Identifier:ENCL-1.0(https://github.com/evmos/evmos/blob/main/LICENSE)
syntax = "proto3";
package evmos.vesting.v1;

Expand Down
8 changes: 6 additions & 2 deletions scripts/check_licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
import sys
from typing import Dict, List

FILTER: re.Pattern = re.compile(r"^((?!(_test|\.pb|\.pb\.gw)\.go$).)*\.(go|proto)$")
FILTER: re.Pattern = re.compile(
r"^((?!(_test|\.pb|\.pb\.gw)\.go$).)*\.(go|proto)$")
EXEMPT_FILES: List[str] = [
r"x/revenue/v1/", # All files in this folder
r"x/claims/genesis\.go$",
r"x/erc20/keeper/proposals\.go$",
r"x/erc20/types/utils\.go$",
r"proto/evmos/revenue/v1/", # All files in this folder
r"proto/evmos/claims/v1/genesis\.proto$",
]

LGPL3_LICENSE = [
Expand Down Expand Up @@ -50,7 +53,8 @@ def check_licenses_in_path(
lgpl3 = check_if_in_exempt_files(full_path)
checked_license = LGPL3_LICENSE if lgpl3 else ENCL_LICENSE

found = check_license_in_file(os.path.join(root, file), checked_license)
found = check_license_in_file(
os.path.join(root, file), checked_license)
if found is True:
n_files_with += 1
if lgpl3:
Expand Down
0