-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
626 additions
and
6,179 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,25 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { "project": "./tsconfig.json", "sourceType": "module" }, | ||
"env": { "es6": true }, | ||
"ignorePatterns": ["node_modules", "build", "coverage", "*.config.js"], | ||
"plugins": ["import", "eslint-comments"], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:eslint-comments/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/typescript", | ||
"prettier" | ||
], | ||
"rules": { | ||
"import/order": [ | ||
"error", | ||
{ "newlines-between": "always", "alphabetize": { "order": "asc" } } | ||
], | ||
"sort-imports": [ | ||
"error", | ||
{ "ignoreDeclarationSort": true, "ignoreCase": true } | ||
] | ||
} | ||
} |
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,3 +1,4 @@ | ||
node_modules | ||
build | ||
|
||
.DS_Store |
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,3 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] | ||
} |
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,29 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Run all test", | ||
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | ||
"args": [ | ||
"--timeout", | ||
"999999", | ||
"--colors", | ||
"${workspaceFolder}/test/**/*.test.ts" | ||
], | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"skipFiles": ["<node_internals>/**/*.js"] | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Run current test file", | ||
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | ||
"args": ["--timeout", "999999", "--colors", "${file}"], | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"skipFiles": ["<node_internals>/**/*.js"] | ||
} | ||
] | ||
} |
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,9 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
"editor.formatOnSave": true, | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
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 |
---|---|---|
|
@@ -3,59 +3,50 @@ | |
"version": "1.0.0", | ||
"description": "{{mustache}} templates compiling to Solidity", | ||
"scripts": { | ||
"build": "hardhat compile", | ||
"test": "hardhat test", | ||
"test:watch": "mocha -w", | ||
"deploy": "hardhat initialDeploy --network", | ||
"verify": "hardhat verifyEtherscan --network", | ||
"upgrade": "hardhat upgrade --network", | ||
"coverage": "hardhat coverage", | ||
"lint": "yarn lint:sol && yarn lint:ts", | ||
"lint:sol": "solhint 'contracts/**/*.sol'", | ||
"lint:ts": "eslint --max-warnings 0 .", | ||
"fmt:sol": "prettier 'contracts/**/*.sol' -w", | ||
"fmt:ts": "prettier '(src|test)/**/*.ts' -w", | ||
"prepack": "yarn build" | ||
"prepare": "yarn build", | ||
"prebuild": "rimraf build", | ||
"build": "yarn build:cjs && yarn build:esm", | ||
"build:cjs": "tsc -p tsconfig.cjs.json", | ||
"build:esm": "tsc -p tsconfig.esm.json", | ||
"check": "yarn check:prettier && yarn check:lint", | ||
"check:lint": "eslint src test --ext .ts", | ||
"check:prettier": "prettier \"(src|test)/**/*.ts\" --list-different", | ||
"fix": "yarn fix:prettier && yarn fix:lint", | ||
"fix:prettier": "prettier \"(src|test)/**/*.ts\" --write", | ||
"fix:lint": "eslint src --ext .ts --fix", | ||
"test": "mocha", | ||
"test:watch": "mocha -w" | ||
}, | ||
"repository": { | ||
"type": "git" | ||
}, | ||
"author": "[email protected]", | ||
"license": "LGPL-3.0+", | ||
"devDependencies": { | ||
"@nomiclabs/hardhat-ethers": "2.0.3", | ||
"@nomiclabs/hardhat-waffle": "2.0.1", | ||
"@types/chai": "4.3.0", | ||
"@types/mocha": "9.0.0", | ||
"@types/node": "17.0.8", | ||
"@typescript-eslint/eslint-plugin": "5.9.0", | ||
"@typescript-eslint/parser": "5.9.0", | ||
"argv": "0.0.2", | ||
"chai": "4.3.4", | ||
"debug": "4.3.3", | ||
"dotenv": "10.0.0", | ||
"eslint": "8.6.0", | ||
"eslint-config-prettier": "8.3.0", | ||
"eslint-plugin-import": "2.25.4", | ||
"eslint-plugin-no-only-tests": "2.6.0", | ||
"eslint-plugin-prettier": "4.0.0", | ||
"ethereum-waffle": "3.4.0", | ||
"ethers": "5.5.2", | ||
"hardhat": "2.8.0", | ||
"hardhat-gas-reporter": "1.0.6", | ||
"prettier": "2.5.1", | ||
"prettier-plugin-solidity": "1.0.0-beta.19", | ||
"solc": "0.8.11", | ||
"solhint": "3.3.6", | ||
"solhint-plugin-prettier": "0.0.5", | ||
"ts-node": "10.4.0", | ||
"typescript": "4.5.4" | ||
}, | ||
"resolutions": { | ||
"bitcore-lib": "8.25.0" | ||
"@nomiclabs/hardhat-ethers": "^2.0.3", | ||
"@types/chai": "^4.3.0", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^17.0.8", | ||
"@types/prettier": "^2.4.3", | ||
"@typescript-eslint/eslint-plugin": "^5.9.0", | ||
"@typescript-eslint/parser": "^5.9.0", | ||
"chai": "^4.3.4", | ||
"eslint": "^8.6.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-eslint-comments": "^3.2.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"ethers": "^5.5.2", | ||
"hardhat": "^2.8.0", | ||
"hardhat-gas-reporter": "^1.0.6", | ||
"rimraf": "^3.0.2", | ||
"solc": "^0.8.11", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.5.4" | ||
}, | ||
"dependencies": { | ||
"@handlebars/parser": "^2.1.0", | ||
"@rari-capital/solmate": "^6.2.0" | ||
"prettier": "^2.5.1", | ||
"prettier-plugin-solidity": "^1.0.0-beta.19" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "./tsconfig", | ||
"compilerOptions": { | ||
"noEmit": false, | ||
"target": "es2017", | ||
"outDir": "build/cjs", | ||
"module": "commonjs" | ||
}, | ||
"include": ["./src"] | ||
} |
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,9 @@ | ||
{ | ||
"extends": "./tsconfig", | ||
"compilerOptions": { | ||
"noEmit": false, | ||
"outDir": "build/esm", | ||
"module": "esnext" | ||
}, | ||
"include": ["./src"] | ||
} |
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.