Skip to content

Commit

Permalink
build: add lsp25 as dependency at root + remove LSP25 unecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ42 committed Jan 24, 2024
1 parent 5528e07 commit aca2bcd
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 39 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/solc_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ jobs:
--allow-paths $(pwd)/node_modules/,$(pwd)/packages/ \
@=node_modules/@ \
solidity-bytes-utils/=node_modules/solidity-bytes-utils/ \
../=$(pwd)/contracts/
../=$(pwd)/contracts/ \
lsp25/=packages/LSP25ExecuteRelayCall/
else
solc contracts/**/*.sol \
@=node_modules/@ \
solidity-bytes-utils/=node_modules/solidity-bytes-utils/
solidity-bytes-utils/=node_modules/solidity-bytes-utils/ \
lsp25/=packages/LSP25ExecuteRelayCall/
fi;
8 changes: 3 additions & 5 deletions contracts/LSP6KeyManager/LSP6KeyManagerCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "../LSP20CallVerification/ILSP20CallVerifier.sol";
import {
ILSP25ExecuteRelayCall as ILSP25
} from "../../packages/LSP25ExecuteRelayCall/contracts/ILSP25ExecuteRelayCall.sol";
} from "lsp25/contracts/ILSP25ExecuteRelayCall.sol";

// modules
import {ILSP14Ownable2Step} from "../LSP14Ownable2Step/ILSP14Ownable2Step.sol";
Expand All @@ -29,7 +29,7 @@ import {
import {LSP6OwnershipModule} from "./LSP6Modules/LSP6OwnershipModule.sol";
import {
LSP25MultiChannelNonce
} from "../../packages/LSP25ExecuteRelayCall/contracts/LSP25MultiChannelNonce.sol";
} from "lsp25/contracts/LSP25MultiChannelNonce.sol";

// libraries
import {BytesLib} from "solidity-bytes-utils/contracts/BytesLib.sol";
Expand Down Expand Up @@ -69,9 +69,7 @@ import {
_LSP20_VERIFY_CALL_SUCCESS_VALUE_WITH_POST_VERIFICATION,
_LSP20_VERIFY_CALL_RESULT_SUCCESS_VALUE
} from "../LSP20CallVerification/LSP20Constants.sol";
import {
_INTERFACEID_LSP25
} from "../../packages/LSP25ExecuteRelayCall/contracts/LSP25Constants.sol";
import {_INTERFACEID_LSP25} from "lsp25/contracts/LSP25Constants.sol";

/**
* @title Core implementation of the LSP6 Key Manager standard.
Expand Down
6 changes: 2 additions & 4 deletions contracts/Mocks/ERC165Interfaces.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import {
} from "../LSP20CallVerification/ILSP20CallVerifier.sol";
import {
ILSP25ExecuteRelayCall as ILSP25
} from "../../packages/LSP25ExecuteRelayCall/contracts/ILSP25ExecuteRelayCall.sol";
} from "lsp25/contracts/ILSP25ExecuteRelayCall.sol";

// constants
import {_INTERFACEID_LSP0} from "../LSP0ERC725Account/LSP0Constants.sol";
Expand All @@ -83,9 +83,7 @@ import {
_INTERFACEID_LSP20_CALL_VERIFICATION,
_INTERFACEID_LSP20_CALL_VERIFIER
} from "../LSP20CallVerification/LSP20Constants.sol";
import {
_INTERFACEID_LSP25
} from "../../packages/LSP25ExecuteRelayCall/contracts/LSP25Constants.sol";
import {_INTERFACEID_LSP25} from "lsp25/contracts/LSP25Constants.sol";

// libraries
import {
Expand Down
2 changes: 1 addition & 1 deletion contracts/Mocks/Reentrancy/BatchReentrancyRelayer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.4;
// interfaces
import {
ILSP25ExecuteRelayCall
} from "../../../packages/LSP25ExecuteRelayCall/contracts/ILSP25ExecuteRelayCall.sol";
} from "lsp25/contracts/ILSP25ExecuteRelayCall.sol";

contract BatchReentrancyRelayer {
bytes[] private _signatures;
Expand Down
2 changes: 1 addition & 1 deletion contracts/Mocks/Reentrancy/SingleReentrancyRelayer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.4;
// interfaces
import {
ILSP25ExecuteRelayCall
} from "../../../packages/LSP25ExecuteRelayCall/contracts/ILSP25ExecuteRelayCall.sol";
} from "lsp25/contracts/ILSP25ExecuteRelayCall.sol";

contract SingleReentrancyRelayer {
bytes private _signature;
Expand Down
30 changes: 30 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@
"@erc725/smart-contracts": "^7.0.0",
"@openzeppelin/contracts": "^4.9.2",
"@openzeppelin/contracts-upgradeable": "^4.9.2",
"solidity-bytes-utils": "0.8.0"
"solidity-bytes-utils": "0.8.0",
"lsp25": "*"
},
"devDependencies": {
"@b00ste/hardhat-dodoc": "^0.3.15",
Expand Down
3 changes: 0 additions & 3 deletions packages/LSP25ExecuteRelayCall/.gitmodules

This file was deleted.

10 changes: 0 additions & 10 deletions packages/LSP25ExecuteRelayCall/foundry.toml

This file was deleted.

9 changes: 0 additions & 9 deletions packages/LSP25ExecuteRelayCall/remappings.txt

This file was deleted.

1 change: 1 addition & 0 deletions remappings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ hardhat-deploy/=node_modules/hardhat-deploy/
hardhat/=node_modules/hardhat/
solidity-bytes-utils/=node_modules/solidity-bytes-utils/
ds-test/=lib/forge-std/lib/ds-test/src/
lsp25/=packages/LSP25ExecuteRelayCall/
5 changes: 2 additions & 3 deletions template/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lsp25",
"name": "lspN",
"version": "0.12.1",
"description": "Package for the LSP25 Execute Relay Call standard",
"description": "Package for the LSPN <write the standard name here> standard",
"license": "Apache-2.0",
"author": "",
"keywords": [
Expand All @@ -21,7 +21,6 @@
"lint": "eslint . --ext .ts,.js",
"lint:solidity": "solhint 'contracts/**/*.sol' && prettier --check 'contracts/**/*.sol'",
"test": "hardhat test --no-compile tests/*.test.ts",
"test:foundry": "forge test --no-match-test Skip -vvv",
"test:coverage": "hardhat coverage"
},
"dependencies": {
Expand Down

0 comments on commit aca2bcd

Please sign in to comment.