Skip to content

Commit

Permalink
added explicit imports
Browse files Browse the repository at this point in the history
  • Loading branch information
0xPilou committed Dec 18, 2023
1 parent 2d80202 commit dabb2a1
Show file tree
Hide file tree
Showing 25 changed files with 53 additions and 50 deletions.
2 changes: 1 addition & 1 deletion forge-cache/solidity-files-cache.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion script/base-goerli/create-publisher.s.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {AnotherCloneFactory} from "src/factory/AnotherCloneFactory.sol";

Expand Down
2 changes: 1 addition & 1 deletion script/base-goerli/deploy-implementations.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ forge script script/base-goerli/deploy-implementations.s.sol:DeployImplementatio
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {ERC1155AB} from "src/token/ERC1155/ERC1155AB.sol";
import {ERC721ABLE} from "src/token/ERC721/ERC721ABLE.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/base-goerli/deploy-kyc-upgrade.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ forge script script/base-goerli/deploy-kyc-upgrade.s.sol:DeployUpgrade --rpc-url
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {TransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import {ProxyAdmin} from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
Expand Down
13 changes: 7 additions & 6 deletions script/base-goerli/deploy-platform.s.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {TransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import {ProxyAdmin} from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
Expand Down Expand Up @@ -83,11 +83,12 @@ contract DeployPlatformBaseGoerli is Script {
anotherCloneFactoryProxy = new TransparentUpgradeableProxy(
address(new AnotherCloneFactory()),
address(proxyAdmin),
abi.encodeWithSelector(AnotherCloneFactory.initialize.selector,
address(abDataRegistryProxy),
address(abVerifierProxy),
address(erc721Impl),
address(erc1155Impl),
abi.encodeWithSelector(
AnotherCloneFactory.initialize.selector,
address(abDataRegistryProxy),
address(abVerifierProxy),
address(erc721Impl),
address(erc1155Impl),
address(royaltyImpl)
)
);
Expand Down
2 changes: 1 addition & 1 deletion script/base-goerli/deploy-royalty.s.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {TransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion script/base-goerli/deploy-upgrade.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ forge script script/base-goerli/deploy-upgrade.s.sol:DeployUpgrade --rpc-url bas
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {ABDataRegistry} from "src/utils/ABDataRegistry.sol";
import {ERC721ABOE} from "src/token/ERC721/ERC721ABOE.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/base/create-publisher.s.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {AnotherCloneFactory} from "src/factory/AnotherCloneFactory.sol";

Expand Down
2 changes: 1 addition & 1 deletion script/base/deploy-implementations.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ forge script script/base/deploy-implementations.s.sol:DeployImplementation --rpc
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {ERC1155AB} from "src/token/ERC1155/ERC1155AB.sol";
import {ERC721ABLE} from "src/token/ERC721/ERC721ABLE.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/base/deploy-platform.s.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {TransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import {ProxyAdmin} from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/base/deploy-royalty.s.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {TransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion script/base/deploy-v1_1.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ forge script script/base/deploy-v1_1.s.sol:DeployUpgrade --rpc-url base --broadc
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {ERC721ABLE} from "src/token/ERC721/ERC721ABLE.sol";
import {ERC721ABOE} from "src/token/ERC721/ERC721ABOE.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/goerli/fireblocks/create-publisher.s.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {AnotherCloneFactory} from "src/factory/AnotherCloneFactory.sol";

Expand Down
17 changes: 10 additions & 7 deletions script/goerli/fireblocks/deploy-platform.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fireblocks-json-rpc --http -- \
forge script script/base-goerli/fireblocks/deploy-platform.s.sol:DeployPlatform --sender 0xed1a447270A92D23B716a1CF52B1f9C358f447Ee --broadcast --unlocked --verify --sig "run(bool)" false --rpc-url {}
*/

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {TransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import {ProxyAdmin} from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
Expand Down Expand Up @@ -68,7 +68,9 @@ contract DeployPlatformGoerli is Script {
abDataRegistryProxy = new TransparentUpgradeableProxy(
address(new ABDataRegistry()),
address(proxyAdmin),
abi.encodeWithSelector(ABDataRegistry.initialize.selector, DROP_ID_OFFSET, 0xD71256eC24925873cE9E9F085f89864Ca05970bD)
abi.encodeWithSelector(
ABDataRegistry.initialize.selector, DROP_ID_OFFSET, 0xD71256eC24925873cE9E9F085f89864Ca05970bD
)
);
if (!isDryRun) {
_writeAddressToFile(address(abDataRegistryProxy), DATA_REGISTRY_PATH);
Expand All @@ -78,11 +80,12 @@ contract DeployPlatformGoerli is Script {
anotherCloneFactoryProxy = new TransparentUpgradeableProxy(
address(new AnotherCloneFactory()),
address(proxyAdmin),
abi.encodeWithSelector(AnotherCloneFactory.initialize.selector,
address(abDataRegistryProxy),
address(abVerifierProxy),
address(erc721Impl),
address(erc1155Impl),
abi.encodeWithSelector(
AnotherCloneFactory.initialize.selector,
address(abDataRegistryProxy),
address(abVerifierProxy),
address(erc721Impl),
address(erc1155Impl),
address(royaltyImpl)
)
);
Expand Down
2 changes: 1 addition & 1 deletion script/goerli/fireblocks/deploy-royalty.s.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {TransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";

Expand Down
4 changes: 2 additions & 2 deletions script/op/deploy-ABSuperToken.s.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import "test/_mocks/ABSuperToken.sol";
import {Script} from "forge-std/Script.sol";
import {ABSuperToken} from "test/_mocks/ABSuperToken.sol";

contract DeployMockSuperTokenOptimism is Script {
error INCORRECT_NETWORK();
Expand Down
17 changes: 9 additions & 8 deletions script/op/deploy-platform.s.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {TransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
import {ProxyAdmin} from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
Expand Down Expand Up @@ -77,15 +77,16 @@ contract DeployPlatformOptimism is Script {
anotherCloneFactoryProxy = new TransparentUpgradeableProxy(
address(new AnotherCloneFactory()),
address(proxyAdmin),
abi.encodeWithSelector(AnotherCloneFactory.initialize.selector,
address(abDataRegistryProxy),
address(abVerifierProxy),
address(erc721Impl),
address(erc1155Impl),
address(royaltyImpl)
abi.encodeWithSelector(
AnotherCloneFactory.initialize.selector,
address(abDataRegistryProxy),
address(abVerifierProxy),
address(erc721Impl),
address(erc1155Impl),
address(royaltyImpl)
)
);

if (!isDryRun) {
_writeAddressToFile(address(anotherCloneFactoryProxy), FACTORY_PATH);
}
Expand Down
2 changes: 1 addition & 1 deletion script/op/deploy-royalty.s.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Script.sol";
import {Script} from "forge-std/Script.sol";

import {TransparentUpgradeableProxy} from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/factory/AnotherCloneFactory.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Test.sol";
import {Test} from "forge-std/Test.sol";

import {ERC721ABLE} from "src/token/ERC721/ERC721ABLE.sol";
import {ERC721ABOE} from "src/token/ERC721/ERC721ABOE.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/royalty/ABRoyalty.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Test.sol";
import {Test} from "forge-std/Test.sol";

import {ERC721ABLE} from "src/token/ERC721/ERC721ABLE.sol";
import {ERC1155AB} from "src/token/ERC1155/ERC1155AB.sol";
Expand Down
12 changes: 5 additions & 7 deletions test/token/ERC1155/ERC1155AB.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Test.sol";
import {Test} from "forge-std/Test.sol";

import {ERC721ABLE} from "src/token/ERC721/ERC721ABLE.sol";
import {ERC1155AB} from "src/token/ERC1155/ERC1155AB.sol";
Expand Down Expand Up @@ -127,7 +127,8 @@ contract ERC1155ABTest is Test, ERC1155ABTestData, ERC1155Holder {
anotherCloneFactoryProxy = new TransparentUpgradeableProxy(
address(new AnotherCloneFactory()),
address(proxyAdmin),
abi.encodeWithSelector(AnotherCloneFactory.initialize.selector,
abi.encodeWithSelector(
AnotherCloneFactory.initialize.selector,
address(abDataRegistry),
address(abVerifier),
address(erc721Impl),
Expand Down Expand Up @@ -157,11 +158,8 @@ contract ERC1155ABTest is Test, ERC1155ABTestData, ERC1155Holder {
}

function test_initialize() public {
TransparentUpgradeableProxy erc1155proxy = new TransparentUpgradeableProxy(
address(new ERC1155AB()),
address(proxyAdmin),
""
);
TransparentUpgradeableProxy erc1155proxy =
new TransparentUpgradeableProxy(address(new ERC1155AB()), address(proxyAdmin), "");

nft = ERC1155AB(address(erc1155proxy));
nft.initialize(publisher, address(abDataRegistry), address(abVerifier));
Expand Down
2 changes: 1 addition & 1 deletion test/token/ERC721/ERC721ABLE.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Test.sol";
import {Test} from "forge-std/Test.sol";

import {ERC721ABLE} from "src/token/ERC721/ERC721ABLE.sol";
import {ERC1155AB} from "src/token/ERC1155/ERC1155AB.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/token/ERC721/ERC721ABOE.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Test.sol";
import {Test} from "forge-std/Test.sol";

import {ERC721ABOE} from "src/token/ERC721/ERC721ABOE.sol";
import {ERC1155AB} from "src/token/ERC1155/ERC1155AB.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/utils/ABDataRegistry.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Test.sol";
import {Test} from "forge-std/Test.sol";

import {ABDataRegistry} from "src/utils/ABDataRegistry.sol";
import {ABErrors} from "src/libraries/ABErrors.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/utils/ABVerifier.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;

import "forge-std/Test.sol";
import {Test} from "forge-std/Test.sol";

import {ABVerifier} from "src/utils/ABVerifier.sol";
import {ABVerifierTestData} from "test/_testdata/ABVerifier.td.sol";
Expand Down

0 comments on commit dabb2a1

Please sign in to comment.