Skip to content

Commit

Permalink
✨ () add deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim-Lebrun committed Feb 21, 2024
1 parent 0777956 commit b3893f3
Show file tree
Hide file tree
Showing 5 changed files with 503 additions and 25 deletions.
2 changes: 2 additions & 0 deletions contracts/_testContracts/OIDImports.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ pragma solidity 0.8.17;

import "@onchain-id/solidity/contracts/ClaimIssuer.sol";
import "@onchain-id/solidity/contracts/Identity.sol";
import "@onchain-id/solidity/contracts/factory/IdFactory.sol";
import "@onchain-id/solidity/contracts/gateway/Gateway.sol";
import "@onchain-id/solidity/contracts/proxy/ImplementationAuthority.sol";

contract OIDImports {
Expand Down
21 changes: 20 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { HardhatUserConfig } from 'hardhat/config';
import 'solidity-coverage';
import '@nomiclabs/hardhat-solhint';
import '@primitivefi/hardhat-dodoc';
import '@nomiclabs/hardhat-etherscan';
import * as dotenv from 'dotenv';

dotenv.config();

const config: HardhatUserConfig = {
solidity: {
Expand All @@ -21,9 +25,24 @@ const config: HardhatUserConfig = {
dodoc: {
runOnCompile: false,
debugMode: true,
outputDir: "./docgen",
outputDir: './docgen',
freshOutput: true,
},
networks: {
mumbai: {
url: process.env.MUMBAI_RPC_URL,
accounts: [`0x${process.env.DEPLOYER_PRIVATE_KEY}`],
},
polygon: {
url: process.env.POLYGON_RPC_URL,
accounts: [`0x${process.env.DEPLOYER_PRIVATE_KEY}`],
},
},
etherscan: {
apiKey: {
polygonMumbai: process.env.POLYGONSCAN_API_KEY,
},
},
};

export default config;
36 changes: 19 additions & 17 deletions package-lock.json

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

17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
],
"scripts": {
"build": "hardhat compile",
"deploy:mumbai": "hardhat run scripts/mumbaiDeploy.ts --network mumbai",
"flatten": "node scripts/flatten.js",
"coverage": "hardhat coverage",
"test": "hardhat test",
Expand All @@ -43,32 +44,34 @@
"devDependencies": {
"@commitlint/cli": "^17.6.1",
"@nomicfoundation/hardhat-toolbox": "^2.0.2",
"@nomiclabs/hardhat-etherscan": "^3.1.8",
"@nomiclabs/hardhat-solhint": "^3.0.1",
"@onchain-id/solidity": "^2.2.0",
"@openzeppelin/contracts": "^4.8.3",
"@openzeppelin/contracts-upgradeable": "^4.8.3",
"@primitivefi/hardhat-dodoc": "^0.2.3",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"@xyrusworx/hardhat-solidity-json": "^1.0.2",
"dotenv": "^16.4.5",
"eslint": "^8.39.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-chai-friendly": "^0.7.2",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-security": "^1.7.1",
"eth-gas-reporter": "^0.2.27",
"fs-extra": "^11.1.1",
"glob": "^10.2.6",
"hardhat": "^2.14.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"prettier-plugin-solidity": "^1.1.3",
"solhint": "^3.4.1",
"solhint-plugin-prettier": "^0.0.5",
"glob": "^10.2.6",
"fs-extra": "^11.1.1",
"@typescript-eslint/parser": "^6.7.4",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"eslint-import-resolver-typescript": "^3.6.1",
"eth-gas-reporter": "^0.2.27"
"solhint-plugin-prettier": "^0.0.5"
},
"lint-staged": {
"*.js": [
Expand Down
Loading

0 comments on commit b3893f3

Please sign in to comment.