Skip to content

Commit

Permalink
Lint and Pretty all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Oct 22, 2024
1 parent 3dace31 commit 11c995d
Show file tree
Hide file tree
Showing 39 changed files with 2,732 additions and 4,028 deletions.
2 changes: 1 addition & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ Please include the following information in your email:

If you prefer secure communication, please use the following GPG key:

https://keys.openpgp.org/search?q=security%40decent-dao.org
https://keys.openpgp.org/search?q=security%40decent-dao.org
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- run: npm clean-install
- run: npm publish
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
node-version-file: '.nvmrc'
- run: npm install
- run: npm run compile
- run: npm run test
8 changes: 4 additions & 4 deletions deploy/core/001_deploy_ERC20Claim.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "ERC20Claim", []);
await deployNonUpgradeable(hre, 'ERC20Claim', []);
};

export default func;
8 changes: 4 additions & 4 deletions deploy/core/002_deploy_FractalModule.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "FractalModule", []);
await deployNonUpgradeable(hre, 'FractalModule', []);
};

export default func;
10 changes: 5 additions & 5 deletions deploy/core/003_deploy_FractalRegistry.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "FractalRegistry", []);
await deployNonUpgradeable(hre, 'FractalRegistry', []);
};

func.tags = ["FractalRegistry"];
func.tags = ['FractalRegistry'];

export default func;
8 changes: 4 additions & 4 deletions deploy/core/004_deploy_ERC20FreezeVoting.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "ERC20FreezeVoting", []);
await deployNonUpgradeable(hre, 'ERC20FreezeVoting', []);
};

export default func;
8 changes: 4 additions & 4 deletions deploy/core/005_deploy_MultisigFreezeVoting.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "MultisigFreezeVoting", []);
await deployNonUpgradeable(hre, 'MultisigFreezeVoting', []);
};

export default func;
8 changes: 4 additions & 4 deletions deploy/core/006_deploy_MultisigFreezeGuard.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "MultisigFreezeGuard", []);
await deployNonUpgradeable(hre, 'MultisigFreezeGuard', []);
};

export default func;
8 changes: 4 additions & 4 deletions deploy/core/007_deploy_AzoriusFreezeGuard.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "AzoriusFreezeGuard", []);
await deployNonUpgradeable(hre, 'AzoriusFreezeGuard', []);
};

export default func;
10 changes: 5 additions & 5 deletions deploy/core/008_deploy_Azorius.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "Azorius", []);
await deployNonUpgradeable(hre, 'Azorius', []);
};

func.tags = ["Azorius"];
func.tags = ['Azorius'];

export default func;
8 changes: 4 additions & 4 deletions deploy/core/009_deploy_VotesERC20.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "VotesERC20", []);
await deployNonUpgradeable(hre, 'VotesERC20', []);
};

export default func;
10 changes: 5 additions & 5 deletions deploy/core/010_deploy_LinearERC20Voting.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
const chainId = await hre.getChainId();

// See https://github.com/decentdao/decent-contracts/pull/96
if (chainId === "1" || chainId === "137") {
if (chainId === '1' || chainId === '137') {
return;
}

await deployNonUpgradeable(hre, "LinearERC20Voting", []);
await deployNonUpgradeable(hre, 'LinearERC20Voting', []);
};

export default func;
2 changes: 1 addition & 1 deletion deploy/core/011_deploy_ModuleProxyFactory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { DeployFunction } from 'hardhat-deploy/types';
// import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";

const func: DeployFunction = async (/* hre: HardhatRuntimeEnvironment */) => {
Expand Down
8 changes: 4 additions & 4 deletions deploy/core/012_deploy_KeyValuePairs.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "KeyValuePairs", []);
await deployNonUpgradeable(hre, 'KeyValuePairs', []);
};

export default func;
8 changes: 4 additions & 4 deletions deploy/core/013_deploy_VotesERC20Wrapper.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "VotesERC20Wrapper", []);
await deployNonUpgradeable(hre, 'VotesERC20Wrapper', []);
};

export default func;
10 changes: 5 additions & 5 deletions deploy/core/014_deploy_LinearERC20WrappedVoting.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
const chainId = await hre.getChainId();

// See https://github.com/decentdao/decent-contracts/pull/96
if (chainId === "1" || chainId === "137") {
if (chainId === '1' || chainId === '137') {
return;
}

await deployNonUpgradeable(hre, "LinearERC20WrappedVoting", []);
await deployNonUpgradeable(hre, 'LinearERC20WrappedVoting', []);
};

export default func;
8 changes: 4 additions & 4 deletions deploy/core/015_deploy_LinearERC721Voting.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "LinearERC721Voting", []);
await deployNonUpgradeable(hre, 'LinearERC721Voting', []);
};

export default func;
8 changes: 4 additions & 4 deletions deploy/core/016_deploy_ERC721FreezeVoting.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "ERC721FreezeVoting", []);
await deployNonUpgradeable(hre, 'ERC721FreezeVoting', []);
};

export default func;
8 changes: 4 additions & 4 deletions deploy/core/017_deploy_DecentHats_0_1_0.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "DecentHats_0_1_0");
await deployNonUpgradeable(hre, 'DecentHats_0_1_0');
};

export default func;
8 changes: 4 additions & 4 deletions deploy/core/018_deploy_DecentSablierStreamManagement.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { DeployFunction } from "hardhat-deploy/types";
import { deployNonUpgradeable } from "../helpers/deployNonUpgradeable";
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { DeployFunction } from 'hardhat-deploy/types';
import { deployNonUpgradeable } from '../helpers/deployNonUpgradeable';

const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
await deployNonUpgradeable(hre, "DecentSablierStreamManagement");
await deployNonUpgradeable(hre, 'DecentSablierStreamManagement');
};

export default func;
4 changes: 2 additions & 2 deletions deploy/helpers/deployNonUpgradeable.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
import { HardhatRuntimeEnvironment } from 'hardhat/types';

const deployNonUpgradeable = async (
hre: HardhatRuntimeEnvironment,
contractName: string,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
args: any[] = []
args: any[] = [],
): Promise<void> => {
const {
deployments: { deploy },
Expand Down
Loading

0 comments on commit 11c995d

Please sign in to comment.