-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Change the repository architecture to a monorepo
- Loading branch information
Showing
66 changed files
with
269 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
- release/* | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
- release/* | ||
|
||
jobs: | ||
lint: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Check out the repo" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: "Install Pnpm" | ||
uses: "pnpm/action-setup@v2" | ||
with: | ||
version: "8" | ||
|
||
- name: "Install Node.js" | ||
uses: "actions/setup-node@v3" | ||
with: | ||
cache: "pnpm" | ||
node-version: "lts/*" | ||
|
||
- name: "Install the Node.js dependencies" | ||
run: "pnpm install" | ||
|
||
- name: "Check code linting" | ||
run: "pnpm -r run lint" | ||
|
||
- name: "Run Prettier" | ||
run: "pnpm run prettier" | ||
|
||
- name: "Add lint summary" | ||
run: | | ||
echo "## Lint result" >> $GITHUB_STEP_SUMMARY | ||
echo "✅ Passed" >> $GITHUB_STEP_SUMMARY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
[submodule "lib/forge-std"] | ||
branch = "v1" | ||
path = "lib/forge-std" | ||
url = "https://github.com/foundry-rs/forge-std" | ||
[submodule "lib/openzeppelin-contracts-upgradeable"] | ||
branch = "release-v4.9" | ||
path = "lib/openzeppelin-contracts-upgradeable" | ||
url = "https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable" | ||
[submodule "lib/openzeppelin-contracts"] | ||
path = lib/openzeppelin-contracts | ||
[submodule "contracts/lib/forge-std"] | ||
branch = "v1" | ||
path = contracts/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "contracts/lib/openzeppelin-contracts-upgradeable"] | ||
branch = "release-v4.9" | ||
path = contracts/lib/openzeppelin-contracts-upgradeable | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable | ||
[submodule "contracts/lib/openzeppelin-contracts"] | ||
branch = "release-v4.9" | ||
path = contracts/lib/openzeppelin-contracts | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Submodule openzeppelin-contracts
added at
98c7a4
Submodule openzeppelin-contracts-upgradeable
added at
5bc599
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"name": "linea-attestation-registry-contracts", | ||
"version": "0.0.1", | ||
"description": "Verax Attestation Registry core smart contracts", | ||
"keywords": [ | ||
"linea-attestation-registry", | ||
"blockchain", | ||
"attestation", | ||
"ethereum", | ||
"foundry", | ||
"smart-contracts", | ||
"solidity" | ||
], | ||
"repository": "github.com/Consensys/linea-attestation-registry", | ||
"license": "MIT", | ||
"author": "Consensys", | ||
"files": [ | ||
"src" | ||
], | ||
"scripts": { | ||
"build": "forge build", | ||
"check:upgradeability": "npx hardhat run script/upgrade/checkUpgradeability.ts", | ||
"check:upgradeability:ci": "cp .env.example .env && pnpm run check:upgradeability", | ||
"check:upgradeable": "npx hardhat run --network linea script/upgrade/checkUpgradeable.ts", | ||
"check:upgradeable:goerli": "npx hardhat run --network linea-goerli script/upgrade/checkUpgradeable.ts", | ||
"clean": "rm -rf lcov.info coverage artifacts cache_hardhat cache out typechain-types", | ||
"deploy:CorrectModule": "npx hardhat run --network linea script/deploy/deployCorrectModule.ts", | ||
"deploy:CorrectModule:goerli": "npx hardhat run --network linea-goerli script/deploy/deployCorrectModule.ts", | ||
"deploy:IncorrectModule": "npx hardhat run --network linea script/deploy/deployIncorrectModule.ts", | ||
"deploy:IncorrectModule:goerli": "npx hardhat run --network linea-goerli script/deploy/deployIncorrectModule.ts", | ||
"deploy:MsgSenderModule": "npx hardhat run --network linea script/deploy/deployMsgSenderModule.ts", | ||
"deploy:MsgSenderModule:goerli": "npx hardhat run --network linea-goerli script/deploy/deployMsgSenderModule.ts", | ||
"deploy:all": "npx hardhat run --network linea script/deploy/deployEverything.ts", | ||
"deploy:all:goerli": "npx hardhat run --network linea-goerli script/deploy/deployEverything.ts", | ||
"deploy:post": "npx hardhat run --network linea script/deploy/postDeployment.ts", | ||
"deploy:post:goerli": "npx hardhat run --network linea-goerli script/deploy/postDeployment.ts", | ||
"lint": "pnpm solhint \"{script,src,test}/**/*.sol\"", | ||
"reimport": "npx hardhat run --network linea script/recreateNetworkFile.ts", | ||
"reimport:goerli": "npx hardhat run --network linea-goerli script/recreateNetworkFile.ts", | ||
"test": "forge test", | ||
"upgrade:all": "npx hardhat run --network linea script/upgrade/upgradeEverything.ts", | ||
"upgrade:all:force": "npx hardhat run --network linea script/upgrade/forceUgradeEverything.ts", | ||
"upgrade:all:goerli": "npx hardhat run --network linea-goerli script/upgrade/upgradeEverything.ts", | ||
"upgrade:all:goerli:force": "npx hardhat run --network linea-goerli script/upgrade/forceUgradeEverything.ts" | ||
}, | ||
"devDependencies": { | ||
"@nomicfoundation/hardhat-ethers": "^3.0.4", | ||
"@nomicfoundation/hardhat-foundry": "^1.1.1", | ||
"@nomicfoundation/hardhat-toolbox": "^3.0.0", | ||
"@openzeppelin/hardhat-upgrades": "^2.2.1", | ||
"dotenv": "^16.3.1", | ||
"ethers": "^6.7.1", | ||
"hardhat": "^2.17.2", | ||
"solhint": "^3.6.2", | ||
"solhint-plugin-prettier": "^0.0.5" | ||
}, | ||
"pnpm": { | ||
"overrides": { | ||
"flat@<5.0.1": ">=5.0.1", | ||
"tough-cookie@<4.1.3": ">=4.1.3", | ||
"minimatch@<3.0.5": ">=3.0.5" | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Submodule forge-std
deleted from
74cfb7
Submodule openzeppelin-contracts
deleted from
fd81a9
Submodule openzeppelin-contracts-upgradeable
deleted from
f34a3a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.