From baf1b906ccca7e219dd2065301ebbc600c354654 Mon Sep 17 00:00:00 2001 From: Chomtana Date: Fri, 5 Apr 2024 00:00:40 +0700 Subject: [PATCH] Add missing MIT license --- contracts/dnsregistrar/PublicSuffixList.sol | 1 + contracts/dnsregistrar/SimplePublicSuffixList.sol | 1 + contracts/dnsregistrar/TLDPublicSuffixList.sol | 1 + contracts/dnsregistrar/mocks/DummyParser.sol | 1 + contracts/dnssec-oracle/BytesUtils.sol | 1 + contracts/dnssec-oracle/Owned.sol | 1 + contracts/dnssec-oracle/RRUtils.sol | 1 + contracts/dnssec-oracle/algorithms/Algorithm.sol | 1 + contracts/dnssec-oracle/algorithms/EllipticCurve.sol | 1 + contracts/dnssec-oracle/algorithms/ModexpPrecompile.sol | 1 + contracts/dnssec-oracle/algorithms/P256SHA256Algorithm.sol | 1 + contracts/dnssec-oracle/algorithms/RSASHA1Algorithm.sol | 1 + contracts/dnssec-oracle/algorithms/RSASHA256Algorithm.sol | 1 + contracts/dnssec-oracle/algorithms/RSAVerify.sol | 1 + contracts/dnssec-oracle/digests/Digest.sol | 1 + contracts/dnssec-oracle/digests/SHA1Digest.sol | 1 + contracts/dnssec-oracle/digests/SHA256Digest.sol | 1 + contracts/ethregistrar/BaseRegistrarImplementation.sol | 1 + contracts/ethregistrar/IBaseRegistrar.sol | 3 +++ contracts/ethregistrar/IBulkRenewal.sol | 3 +++ contracts/ethregistrar/StringUtils.sol | 1 + contracts/registry/ENS.sol | 1 + contracts/registry/ENSRegistry.sol | 1 + contracts/resolvers/OwnedResolver.sol | 1 + contracts/reverseRegistrar/IReverseRegistrar.sol | 1 + contracts/reverseRegistrar/ReverseRegistrar.sol | 1 + contracts/root/Controllable.sol | 1 + contracts/root/Ownable.sol | 1 + contracts/root/Root.sol | 1 + test/dnssec-oracle/TestBytesUtils.sol | 1 + test/dnssec-oracle/TestRRUtils.sol | 1 + 31 files changed, 35 insertions(+) diff --git a/contracts/dnsregistrar/PublicSuffixList.sol b/contracts/dnsregistrar/PublicSuffixList.sol index 68bd7a4a9..cd95ebc01 100644 --- a/contracts/dnsregistrar/PublicSuffixList.sol +++ b/contracts/dnsregistrar/PublicSuffixList.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface PublicSuffixList { diff --git a/contracts/dnsregistrar/SimplePublicSuffixList.sol b/contracts/dnsregistrar/SimplePublicSuffixList.sol index 1d6b8aa57..635fb3077 100644 --- a/contracts/dnsregistrar/SimplePublicSuffixList.sol +++ b/contracts/dnsregistrar/SimplePublicSuffixList.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; pragma experimental ABIEncoderV2; diff --git a/contracts/dnsregistrar/TLDPublicSuffixList.sol b/contracts/dnsregistrar/TLDPublicSuffixList.sol index 86bcd3413..667a0204f 100644 --- a/contracts/dnsregistrar/TLDPublicSuffixList.sol +++ b/contracts/dnsregistrar/TLDPublicSuffixList.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "../dnssec-oracle/BytesUtils.sol"; diff --git a/contracts/dnsregistrar/mocks/DummyParser.sol b/contracts/dnsregistrar/mocks/DummyParser.sol index dab094345..984ce2135 100644 --- a/contracts/dnsregistrar/mocks/DummyParser.sol +++ b/contracts/dnsregistrar/mocks/DummyParser.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "../../dnssec-oracle/BytesUtils.sol"; diff --git a/contracts/dnssec-oracle/BytesUtils.sol b/contracts/dnssec-oracle/BytesUtils.sol index 96344ce57..08050c78f 100644 --- a/contracts/dnssec-oracle/BytesUtils.sol +++ b/contracts/dnssec-oracle/BytesUtils.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; library BytesUtils { diff --git a/contracts/dnssec-oracle/Owned.sol b/contracts/dnssec-oracle/Owned.sol index 319d6a93a..297568074 100644 --- a/contracts/dnssec-oracle/Owned.sol +++ b/contracts/dnssec-oracle/Owned.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** diff --git a/contracts/dnssec-oracle/RRUtils.sol b/contracts/dnssec-oracle/RRUtils.sol index 20fbf15f0..5496d9634 100644 --- a/contracts/dnssec-oracle/RRUtils.sol +++ b/contracts/dnssec-oracle/RRUtils.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./BytesUtils.sol"; diff --git a/contracts/dnssec-oracle/algorithms/Algorithm.sol b/contracts/dnssec-oracle/algorithms/Algorithm.sol index 75db76cae..cfbac9e58 100644 --- a/contracts/dnssec-oracle/algorithms/Algorithm.sol +++ b/contracts/dnssec-oracle/algorithms/Algorithm.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** diff --git a/contracts/dnssec-oracle/algorithms/EllipticCurve.sol b/contracts/dnssec-oracle/algorithms/EllipticCurve.sol index 686126447..8919b25d2 100644 --- a/contracts/dnssec-oracle/algorithms/EllipticCurve.sol +++ b/contracts/dnssec-oracle/algorithms/EllipticCurve.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** diff --git a/contracts/dnssec-oracle/algorithms/ModexpPrecompile.sol b/contracts/dnssec-oracle/algorithms/ModexpPrecompile.sol index 3b8e5b121..1d841d741 100644 --- a/contracts/dnssec-oracle/algorithms/ModexpPrecompile.sol +++ b/contracts/dnssec-oracle/algorithms/ModexpPrecompile.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; library ModexpPrecompile { diff --git a/contracts/dnssec-oracle/algorithms/P256SHA256Algorithm.sol b/contracts/dnssec-oracle/algorithms/P256SHA256Algorithm.sol index 22f72e703..dba72bd3f 100644 --- a/contracts/dnssec-oracle/algorithms/P256SHA256Algorithm.sol +++ b/contracts/dnssec-oracle/algorithms/P256SHA256Algorithm.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./Algorithm.sol"; diff --git a/contracts/dnssec-oracle/algorithms/RSASHA1Algorithm.sol b/contracts/dnssec-oracle/algorithms/RSASHA1Algorithm.sol index 574f3f3e6..58e0f73c0 100644 --- a/contracts/dnssec-oracle/algorithms/RSASHA1Algorithm.sol +++ b/contracts/dnssec-oracle/algorithms/RSASHA1Algorithm.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./Algorithm.sol"; diff --git a/contracts/dnssec-oracle/algorithms/RSASHA256Algorithm.sol b/contracts/dnssec-oracle/algorithms/RSASHA256Algorithm.sol index 08573384a..231ae0913 100644 --- a/contracts/dnssec-oracle/algorithms/RSASHA256Algorithm.sol +++ b/contracts/dnssec-oracle/algorithms/RSASHA256Algorithm.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./Algorithm.sol"; diff --git a/contracts/dnssec-oracle/algorithms/RSAVerify.sol b/contracts/dnssec-oracle/algorithms/RSAVerify.sol index 4db05a314..0008322d5 100644 --- a/contracts/dnssec-oracle/algorithms/RSAVerify.sol +++ b/contracts/dnssec-oracle/algorithms/RSAVerify.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "../BytesUtils.sol"; diff --git a/contracts/dnssec-oracle/digests/Digest.sol b/contracts/dnssec-oracle/digests/Digest.sol index 8409b3e64..24d8898b6 100644 --- a/contracts/dnssec-oracle/digests/Digest.sol +++ b/contracts/dnssec-oracle/digests/Digest.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /** diff --git a/contracts/dnssec-oracle/digests/SHA1Digest.sol b/contracts/dnssec-oracle/digests/SHA1Digest.sol index 97e1247b0..74daefb4f 100644 --- a/contracts/dnssec-oracle/digests/SHA1Digest.sol +++ b/contracts/dnssec-oracle/digests/SHA1Digest.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./Digest.sol"; diff --git a/contracts/dnssec-oracle/digests/SHA256Digest.sol b/contracts/dnssec-oracle/digests/SHA256Digest.sol index f19867e65..39661350d 100644 --- a/contracts/dnssec-oracle/digests/SHA256Digest.sol +++ b/contracts/dnssec-oracle/digests/SHA256Digest.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./Digest.sol"; diff --git a/contracts/ethregistrar/BaseRegistrarImplementation.sol b/contracts/ethregistrar/BaseRegistrarImplementation.sol index d2382c5bc..5def9ea9a 100644 --- a/contracts/ethregistrar/BaseRegistrarImplementation.sol +++ b/contracts/ethregistrar/BaseRegistrarImplementation.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "../registry/ENS.sol"; diff --git a/contracts/ethregistrar/IBaseRegistrar.sol b/contracts/ethregistrar/IBaseRegistrar.sol index 5f43e9c1e..0a4db317e 100644 --- a/contracts/ethregistrar/IBaseRegistrar.sol +++ b/contracts/ethregistrar/IBaseRegistrar.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +pragma solidity ~0.8.17; + import "../registry/ENS.sol"; import "./IBaseRegistrar.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; diff --git a/contracts/ethregistrar/IBulkRenewal.sol b/contracts/ethregistrar/IBulkRenewal.sol index 8eb0d631b..fda93b528 100644 --- a/contracts/ethregistrar/IBulkRenewal.sol +++ b/contracts/ethregistrar/IBulkRenewal.sol @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: MIT +pragma solidity ~0.8.17; + interface IBulkRenewal { function rentPrice( string[] calldata names, diff --git a/contracts/ethregistrar/StringUtils.sol b/contracts/ethregistrar/StringUtils.sol index 4b440c62d..75d375c2d 100644 --- a/contracts/ethregistrar/StringUtils.sol +++ b/contracts/ethregistrar/StringUtils.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; library StringUtils { diff --git a/contracts/registry/ENS.sol b/contracts/registry/ENS.sol index d35f68e45..f8d7277d2 100644 --- a/contracts/registry/ENS.sol +++ b/contracts/registry/ENS.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; interface ENS { diff --git a/contracts/registry/ENSRegistry.sol b/contracts/registry/ENSRegistry.sol index 80c85842f..31a009d5b 100644 --- a/contracts/registry/ENSRegistry.sol +++ b/contracts/registry/ENSRegistry.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "./ENS.sol"; diff --git a/contracts/resolvers/OwnedResolver.sol b/contracts/resolvers/OwnedResolver.sol index 5a6b581e2..8812e290f 100644 --- a/contracts/resolvers/OwnedResolver.sol +++ b/contracts/resolvers/OwnedResolver.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "./profiles/ABIResolver.sol"; diff --git a/contracts/reverseRegistrar/IReverseRegistrar.sol b/contracts/reverseRegistrar/IReverseRegistrar.sol index 9b99dd530..845396b17 100644 --- a/contracts/reverseRegistrar/IReverseRegistrar.sol +++ b/contracts/reverseRegistrar/IReverseRegistrar.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; interface IReverseRegistrar { diff --git a/contracts/reverseRegistrar/ReverseRegistrar.sol b/contracts/reverseRegistrar/ReverseRegistrar.sol index b065bf0b5..56115d38c 100644 --- a/contracts/reverseRegistrar/ReverseRegistrar.sol +++ b/contracts/reverseRegistrar/ReverseRegistrar.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity >=0.8.4; import "../registry/ENS.sol"; diff --git a/contracts/root/Controllable.sol b/contracts/root/Controllable.sol index ab079c6b5..661f2f116 100644 --- a/contracts/root/Controllable.sol +++ b/contracts/root/Controllable.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; diff --git a/contracts/root/Ownable.sol b/contracts/root/Ownable.sol index 7517097ee..4307005cf 100644 --- a/contracts/root/Ownable.sol +++ b/contracts/root/Ownable.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; contract Ownable { diff --git a/contracts/root/Root.sol b/contracts/root/Root.sol index 5863c70dc..41ab821f8 100644 --- a/contracts/root/Root.sol +++ b/contracts/root/Root.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "../registry/ENS.sol"; diff --git a/test/dnssec-oracle/TestBytesUtils.sol b/test/dnssec-oracle/TestBytesUtils.sol index df0610c81..f90a029f4 100644 --- a/test/dnssec-oracle/TestBytesUtils.sol +++ b/test/dnssec-oracle/TestBytesUtils.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "../../contracts/dnssec-oracle/RRUtils.sol"; diff --git a/test/dnssec-oracle/TestRRUtils.sol b/test/dnssec-oracle/TestRRUtils.sol index eb7d77428..5f126f450 100644 --- a/test/dnssec-oracle/TestRRUtils.sol +++ b/test/dnssec-oracle/TestRRUtils.sol @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "../../contracts/dnssec-oracle/RRUtils.sol";