This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #86 update to react 18 generally working * #86 update to react 18 generally working * #86 updated package names * #86 updated package names and folders * #86 updated package names and folders * updated version * #86 updated package names and folders * #86 fixed scripts * #86 updated all the packages for react 18 * updated packages
- Loading branch information
1 parent
53dd974
commit b41cf65
Showing
49 changed files
with
2,735 additions
and
3,590 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
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,6 +1,6 @@ | ||
{ | ||
"name": "@scaffold-eth/typescript", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"keywords": [ | ||
"ethereum", | ||
"react", | ||
|
@@ -32,10 +32,12 @@ | |
"ship": "yarn workspace @scaffold-eth/vite-app ship", | ||
"subgraph": "yarn workspace @scaffold-eth/subgraph", | ||
"prepare": "husky install", | ||
"postinstall": "husky install" | ||
"postinstall": "husky install", | ||
"lint": "yarn workspace @scaffold-eth/vite-app lint --fix && yarn workspace @scaffold-eth/common lint --fix && yarn workspace @scaffold-eth/hardhat lint --fix" | ||
}, | ||
"workspaces": { | ||
"packages": [ | ||
"packages/common", | ||
"packages/hardhat-ts", | ||
"packages/vite-app-ts", | ||
"packages/services/*", | ||
|
@@ -47,19 +49,23 @@ | |
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.9.0", | ||
"eslint": "^8.14.0", | ||
"husky": "^7.0.4", | ||
"lint-staged": "^12.3.4", | ||
"prettier": "^2.5.1", | ||
"lint-staged": "^12.4.1", | ||
"prettier": "^2.6.2", | ||
"prettier-plugin-solidity": "^1.0.0-beta.19", | ||
"shx": "^0.3.4", | ||
"ts-node": "^10.5.0" | ||
"ts-node": "^10.7.0" | ||
}, | ||
"lint-staged": { | ||
"packages/vite-app-ts/src/**/*.{ts,tsx}": [ | ||
"yarn workspace @scaffold-eth/vite-app lint --fix", | ||
"yarn workspace @scaffold-eth/vite-app format" | ||
], | ||
"packages/common/src/**/*.{ts,tsx}": [ | ||
"yarn workspace @scaffold-eth/common lint --fix", | ||
"yarn workspace @scaffold-eth/common format" | ||
], | ||
"packages/hardhat-ts/test/**/*.ts": [ | ||
"yarn workspace @scaffold-eth/hardhat lint --fix", | ||
"yarn workspace @scaffold-eth/hardhat format" | ||
|
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.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"name": "@scaffold-eth/common", | ||
"version": "1.0.0", | ||
"author": "Shravan Sunder<[email protected]>", | ||
"description": "Common package to be used by hardaht-ts and vite-app-ts in the scaffold-eth-typescript workspace", | ||
"main": "index.ts", | ||
"scripts": { | ||
"watch": "tsc -w --noEmit", | ||
"clean": "shx rm -rf ./lib", | ||
"lint": "eslint --config ./.eslintrc --ignore-path ./.eslintignore ./src/**/*.(ts|tsx)", | ||
"lint:report": "eslint --config ./.eslintrc --ignore-path ./.eslintignore --output-file eslint_report.json --format json ./src/**/*.(ts|tsx)", | ||
"format": "yarn prettier -w ./src ", | ||
"format:check": "yarn prettier -c ./src" | ||
}, | ||
"dependencies": { | ||
"eth-hooks": "^4.2.*", | ||
"ethers": "^5.6.*" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^16.11.32", | ||
"@typescript-eslint/eslint-plugin": "^5.21.0", | ||
"@typescript-eslint/parser": "^5.21.0", | ||
"esbuild": "^0.14.38", | ||
"esbuild-node-externals": "^1.4.1", | ||
"eslint": "^8.14.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-airbnb-typescript": "^16.2.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^26.1.5", | ||
"eslint-plugin-jsx-a11y": "^6.5.1", | ||
"eslint-plugin-mocha": "^10.0.4", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.29.4", | ||
"eslint-plugin-react-hooks": "^4.5.0", | ||
"eslint-plugin-tailwind": "^0.2.1", | ||
"eslint-plugin-testing-library": "^5.3.1", | ||
"eslint-plugin-unused-imports": "^2.0.0", | ||
"husky": "^7.0.4", | ||
"lint-staged": "^12.4.1", | ||
"pinst": "^3.0.0", | ||
"prettier": "^2.6.2", | ||
"prettier-eslint": "^14.0.2", | ||
"shx": "^0.3.4", | ||
"ts-patch": "^2.0.1", | ||
"tsconfig-paths": "^3.14.1", | ||
"typescript": "^4.6.4", | ||
"typescript-transform-paths": "^3.3.1" | ||
}, | ||
"keywords": [ | ||
"blockchain", | ||
"ethereum", | ||
"react", | ||
"create-eth-app", | ||
"typescript" | ||
], | ||
"license": "MIT", | ||
"packageManager": "[email protected]", | ||
"volta": { | ||
"node": "16.13.1" | ||
}, | ||
"lint-staged": { | ||
"**/*.{ts,tsx}": [ | ||
"yarn lint --fix", | ||
"yarn format" | ||
], | ||
"**/*.{json}": [ | ||
"yarn format" | ||
] | ||
} | ||
} |
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,54 @@ | ||
import { TNetworkNames } from "../models/TNetworkNames"; | ||
|
||
type TChain = TNetworkNames | number; | ||
type TAccountName = | ||
| "deployer" | ||
| "user1" | ||
| "user2" | ||
| "user3" | ||
| "user4" | ||
| "user5" | ||
| "governance"; | ||
|
||
/** | ||
* The default account to use for hardhat. For example 0 will take by default take the first account of hardhat | ||
*/ | ||
type TDefaultAccount = { | ||
["default"]: number | string; | ||
}; | ||
|
||
/** | ||
* Named accounts to be used by hardaht. See docs: https://github.com/wighawag/hardhat-deploy#1-namedaccounts-ability-to-name-addresses | ||
* | ||
* the values are account addresses, or account number in hardhat | ||
*/ | ||
export const hardhatNamedAccounts: { | ||
[name in TAccountName]: Readonly< | ||
Partial<{ [network in TChain]: number | string }> & TDefaultAccount | ||
>; | ||
} = { | ||
deployer: { | ||
default: 0, // here this will by default take the first account as deployer | ||
1: 0, // similarly on mainnet it will take the first account as deployer. Note though that depending on how hardhat network are configured, the account 0 on one network can be different than on another | ||
4: "0xA296a3d5F026953e17F472B497eC29a5631FB51B", // but for rinkeby it will be a specific address | ||
goerli: "0x84b9514E013710b9dD0811c9Fe46b837a4A0d8E0", // it can also specify a specific netwotk name (specified in hardhat.config.js) | ||
}, | ||
user1: { | ||
default: 1, | ||
}, | ||
user2: { | ||
default: 2, | ||
}, | ||
user3: { | ||
default: 3, | ||
}, | ||
user4: { | ||
default: 4, | ||
}, | ||
user5: { | ||
default: 5, | ||
}, | ||
governance: { | ||
default: 10, | ||
}, | ||
} as const; |
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,2 @@ | ||
export * from "./hardhatNamedAccounts"; | ||
export * from "./networks"; |
Oops, something went wrong.