Skip to content

Commit ef2d8bb

Browse files
authored
feat: switch license declarations to SPDX (#3479)
chore: switch linces Signed-off-by: nikolay <[email protected]>
1 parent 4406824 commit ef2d8bb

File tree

376 files changed

+383
-6691
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

376 files changed

+383
-6691
lines changed

.eslintrc.js

+2-37
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
*
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
*
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
module.exports = {
224
"env": {
@@ -68,24 +50,7 @@ module.exports = {
6850
"simple-import-sort/imports": "error",
6951
"simple-import-sort/exports": "off",
7052
"header/header": [2, "block", [
71-
"-",
72-
" *",
73-
" * Hedera JSON RPC Relay",
74-
" *",
75-
{"pattern": "^\\s\\*\\sCopyright \\(C\\) 20(1[8-9]|[2-9]\\d)(?:-20(1[8-9]|[2-9]\\d))? Hedera Hashgraph, LLC$", "template": ` * Copyright (C) ${new Date().getFullYear()} Hedera Hashgraph, LLC`},
76-
" *",
77-
" * Licensed under the Apache License, Version 2.0 (the \"License\");",
78-
" * you may not use this file except in compliance with the License.",
79-
" * You may obtain a copy of the License at",
80-
" *",
81-
" * http://www.apache.org/licenses/LICENSE-2.0",
82-
" *",
83-
" * Unless required by applicable law or agreed to in writing, software",
84-
" * distributed under the License is distributed on an \"AS IS\" BASIS,",
85-
" * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.",
86-
" * See the License for the specific language governing permissions and",
87-
" * limitations under the License.",
88-
" *",
53+
" * SPDX-License-Identifier: Apache-2.0",
8954
" ",
9055
]],
9156
},

k6/src/lib/bootstrapEnvParameters.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
* ‌
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
* ​
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
* ‍
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import {
224
computeLatestContractResultParameters,

k6/src/lib/common.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
* ‌
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
* ​
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
* ‍
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import { check, sleep } from 'k6';
224
import { Gauge } from 'k6/metrics';

k6/src/lib/constants.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
* ‌
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
* ​
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
* ‍
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
export const logListName = 'logs';
224
export const resultListName = 'results';

k6/src/lib/parameters.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
* ‌
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
* ​
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
* ‍
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import http from 'k6/http';
224

k6/src/prepare/prep.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*
2-
*
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
*
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import Greeter from './contracts/Greeter.json' assert { type: 'json' };
224
import { ethers, formatEther, parseEther } from 'ethers';

k6/src/scenarios/apis.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
* ‌
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
* ​
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
* ‍
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import exec from 'k6/execution';
224
import { textSummary } from 'https://jslib.k6.io/k6-summary/0.0.1/index.js';

k6/src/scenarios/test-ws/common.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
*
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
*
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import ws from 'k6/ws';
224
import { check } from 'k6';

k6/src/scenarios/test-ws/eth_chainId.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
*
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
*
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import { TestScenarioBuilder } from '../../lib/common.js';
224
import { connectToWebSocket, isNonErrorResponse } from './common.js';

k6/src/scenarios/test-ws/eth_subscribe_logs.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
*
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
*
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import { setupTestParameters } from '../../lib/bootstrapEnvParameters.js';
224
import { TestScenarioBuilder } from '../../lib/common.js';

k6/src/scenarios/test-ws/eth_subscribe_newHeads.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
*
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
*
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import { TestScenarioBuilder } from '../../lib/common.js';
224
import { subscribeEvents } from '../../lib/constants.js';

k6/src/scenarios/test-ws/eth_subscribe_newPendingTransactions.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
*
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
*
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import { TestScenarioBuilder } from '../../lib/common.js';
224
import { subscribeEvents } from '../../lib/constants.js';

k6/src/scenarios/test-ws/index.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
*
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
*
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
*
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import { getSequentialTestScenarios } from '../../lib/common.js';
224

k6/src/scenarios/test/common.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
* ‌
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
* ​
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
* ‍
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
const errorField = 'error';
224
const resultField = 'result';

k6/src/scenarios/test/eth_accounts.js

+1-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
1-
/*-
2-
* ‌
3-
* Hedera JSON RPC Relay
4-
*
5-
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
6-
* ​
7-
* Licensed under the Apache License, Version 2.0 (the "License");
8-
* you may not use this file except in compliance with the License.
9-
* You may obtain a copy of the License at
10-
*
11-
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
13-
* Unless required by applicable law or agreed to in writing, software
14-
* distributed under the License is distributed on an "AS IS" BASIS,
15-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16-
* See the License for the specific language governing permissions and
17-
* limitations under the License.
18-
* ‍
19-
*/
1+
// SPDX-License-Identifier: Apache-2.0
202

213
import http from 'k6/http';
224

0 commit comments

Comments
 (0)