[OP-15] contracts and dapp restructure (#85)
parent
577fa19abe
commit
a525630f47
@ -1,17 +1,17 @@ |
|||||||
root = true |
root = true |
||||||
|
|
||||||
[*] |
[*] |
||||||
|
charset = utf-8 |
||||||
end_of_line = lf |
end_of_line = lf |
||||||
insert_final_newline = true |
insert_final_newline = true |
||||||
|
|
||||||
[src/**.{css,js,jsx,ts,tsx}] |
|
||||||
charset = utf-8 |
|
||||||
trim_trailing_whitespace = true |
trim_trailing_whitespace = true |
||||||
indent_style = space |
indent_style = space |
||||||
|
|
||||||
|
[src/**.{css,js,jsx,ts,tsx}] |
||||||
indent_size = 2 |
indent_size = 2 |
||||||
|
|
||||||
[package.json] |
[*.json] |
||||||
charset = utf-8 |
|
||||||
trim_trailing_whitespace = true |
|
||||||
indent_style = space |
|
||||||
indent_size = 2 |
indent_size = 2 |
||||||
|
|
||||||
|
[*.sol] |
||||||
|
indent_size = 4 |
@ -1,3 +1,3 @@ |
|||||||
module.exports = { |
module.exports = { |
||||||
buildDirPath: '/app/src/contracts' |
buildDirPath: '/src/chain/abis' |
||||||
}; |
}; |
@ -1,24 +0,0 @@ |
|||||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. |
|
||||||
|
|
||||||
# dependencies |
|
||||||
/node_modules |
|
||||||
/.pnp |
|
||||||
.pnp.js |
|
||||||
|
|
||||||
# testing |
|
||||||
/coverage |
|
||||||
junit.xml |
|
||||||
|
|
||||||
# production |
|
||||||
/build |
|
||||||
|
|
||||||
# misc |
|
||||||
.DS_Store |
|
||||||
.env.local |
|
||||||
.env.development.local |
|
||||||
.env.test.local |
|
||||||
.env.production.local |
|
||||||
|
|
||||||
npm-debug.log* |
|
||||||
yarn-debug.log* |
|
||||||
yarn-error.log* |
|
@ -1,68 +0,0 @@ |
|||||||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
|
||||||
|
|
||||||
## Available Scripts |
|
||||||
|
|
||||||
In the project directory, you can run: |
|
||||||
|
|
||||||
### `npm start` |
|
||||||
|
|
||||||
Runs the app in the development mode.<br> |
|
||||||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. |
|
||||||
|
|
||||||
The page will reload if you make edits.<br> |
|
||||||
You will also see any lint errors in the console. |
|
||||||
|
|
||||||
### `npm test` |
|
||||||
|
|
||||||
Launches the test runner in the interactive watch mode.<br> |
|
||||||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. |
|
||||||
|
|
||||||
### `npm run build` |
|
||||||
|
|
||||||
Builds the app for production to the `build` folder.<br> |
|
||||||
It correctly bundles React in production mode and optimizes the build for the best performance. |
|
||||||
|
|
||||||
The build is minified and the filenames include the hashes.<br> |
|
||||||
Your app is ready to be deployed! |
|
||||||
|
|
||||||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
|
||||||
|
|
||||||
### `npm run eject` |
|
||||||
|
|
||||||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** |
|
||||||
|
|
||||||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. |
|
||||||
|
|
||||||
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. |
|
||||||
|
|
||||||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. |
|
||||||
|
|
||||||
## Learn More |
|
||||||
|
|
||||||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
|
||||||
|
|
||||||
To learn React, check out the [React documentation](https://reactjs.org/). |
|
||||||
|
|
||||||
### Code Splitting |
|
||||||
|
|
||||||
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting |
|
||||||
|
|
||||||
### Analyzing the Bundle Size |
|
||||||
|
|
||||||
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size |
|
||||||
|
|
||||||
### Making a Progressive Web App |
|
||||||
|
|
||||||
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app |
|
||||||
|
|
||||||
### Advanced Configuration |
|
||||||
|
|
||||||
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration |
|
||||||
|
|
||||||
### Deployment |
|
||||||
|
|
||||||
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment |
|
||||||
|
|
||||||
### `npm run build` fails to minify |
|
||||||
|
|
||||||
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify |
|
File diff suppressed because it is too large
Load Diff
@ -1,78 +0,0 @@ |
|||||||
{ |
|
||||||
"name": "permissioning-dapp", |
|
||||||
"version": "0.1.0", |
|
||||||
"private": true, |
|
||||||
"dependencies": { |
|
||||||
"@types/enzyme": "^3.9.3", |
|
||||||
"@types/enzyme-adapter-react-16": "^1.0.5", |
|
||||||
"@types/jest": "^24.0.13", |
|
||||||
"@types/node": "^12.0.4", |
|
||||||
"@types/react": "^16.8.19", |
|
||||||
"@types/react-dom": "^16.8.4", |
|
||||||
"@types/styled-components": "^4.1.15", |
|
||||||
"classnames": "^2.2.6", |
|
||||||
"drizzle": "^1.4.0", |
|
||||||
"drizzle-react": "^1.3.0", |
|
||||||
"jest-junit": "^6.4.0", |
|
||||||
"node-sass": "^4.12.0", |
|
||||||
"react": "^16.8.6", |
|
||||||
"react-dom": "^16.8.6", |
|
||||||
"react-router-dom": "^5.0.0", |
|
||||||
"react-scripts": "3.0.1", |
|
||||||
"rimble-ui": "^0.8.0", |
|
||||||
"styled-components": "^4.2.0", |
|
||||||
"typescript": "^3.5.1" |
|
||||||
}, |
|
||||||
"scripts": { |
|
||||||
"start": "react-scripts start", |
|
||||||
"build": "react-scripts build", |
|
||||||
"test": "react-scripts test --env=jsdom", |
|
||||||
"test:ci": "react-scripts test --reporters=default --reporters=jest-junit", |
|
||||||
"eject": "react-scripts eject" |
|
||||||
}, |
|
||||||
"eslintConfig": { |
|
||||||
"extends": "react-app" |
|
||||||
}, |
|
||||||
"browserslist": { |
|
||||||
"production": [ |
|
||||||
">0.2%", |
|
||||||
"not dead", |
|
||||||
"not op_mini all" |
|
||||||
], |
|
||||||
"development": [ |
|
||||||
"last 1 chrome version", |
|
||||||
"last 1 firefox version", |
|
||||||
"last 1 safari version" |
|
||||||
] |
|
||||||
}, |
|
||||||
"devDependencies": { |
|
||||||
"enzyme": "^3.9.0", |
|
||||||
"enzyme-adapter-react-16": "^1.13.1", |
|
||||||
"enzyme-to-json": "^3.3.5", |
|
||||||
"husky": "^2.2.0", |
|
||||||
"lint-staged": "^8.1.6", |
|
||||||
"prettier": "^1.17.0" |
|
||||||
}, |
|
||||||
"lint-staged": { |
|
||||||
"src/**/*.{js,jsx,json,css}": [ |
|
||||||
"prettier --write", |
|
||||||
"git add" |
|
||||||
] |
|
||||||
}, |
|
||||||
"prettier": { |
|
||||||
"useTabs": false, |
|
||||||
"tabWidth": 4 |
|
||||||
}, |
|
||||||
"husky": { |
|
||||||
"hooks": { |
|
||||||
"pre-commit": "lint-staged" |
|
||||||
} |
|
||||||
}, |
|
||||||
"jest": { |
|
||||||
"collectCoverageFrom": [ |
|
||||||
"src/**/*.{js,jsx}", |
|
||||||
"!**/src/index.js", |
|
||||||
"!**/src/serviceWorker.js" |
|
||||||
] |
|
||||||
} |
|
||||||
} |
|
@ -1,4 +0,0 @@ |
|||||||
body { |
|
||||||
margin: 0; |
|
||||||
padding: 0; |
|
||||||
} |
|
File diff suppressed because it is too large
Load Diff
@ -1,26 +1,99 @@ |
|||||||
{ |
{ |
||||||
"name": "permissioning-smart-contracts", |
"name": "permissioning-smart-contracts", |
||||||
|
"version": "0.1.0", |
||||||
"repository": "permissioning-smart-contracts", |
"repository": "permissioning-smart-contracts", |
||||||
"license": "Apache-2.0", |
"license": "Apache-2.0", |
||||||
"private": true, |
"private": true, |
||||||
"scripts": { |
"scripts": { |
||||||
"lint": "solium -d contracts", |
"lint:contracts": "solium -d contracts", |
||||||
"test": "truffle test --network develop", |
"lint": "npm run lint:contracts", |
||||||
"coverage": "solidity-coverage", |
"test:app": "react-scripts test --env=jsdom --watchAll=false", |
||||||
"build": "truffle compile" |
"test:app:watch": "react-scripts test --env=jsdom", |
||||||
|
"test:app:ci": "react-scripts test --reporters=default --reporters=jest-junit", |
||||||
|
"test:contracts": "truffle test --network develop", |
||||||
|
"test": "npm run test:contracts && npm run test:app", |
||||||
|
"coverage:contracts": "solidity-coverage", |
||||||
|
"coverage": "npm run coverage:contracts", |
||||||
|
"build:app": "react-scripts build", |
||||||
|
"build:contracts": "truffle compile", |
||||||
|
"build": "npm run build:contracts && npm run build:app", |
||||||
|
"start": "react-scripts start", |
||||||
|
"eject": "react-scripts eject" |
||||||
|
}, |
||||||
|
"eslintConfig": { |
||||||
|
"extends": "react-app" |
||||||
|
}, |
||||||
|
"browserslist": { |
||||||
|
"production": [ |
||||||
|
">0.2%", |
||||||
|
"not dead", |
||||||
|
"not op_mini all" |
||||||
|
], |
||||||
|
"development": [ |
||||||
|
"last 1 chrome version", |
||||||
|
"last 1 firefox version", |
||||||
|
"last 1 safari version" |
||||||
|
] |
||||||
}, |
}, |
||||||
"dependencies": { |
"dependencies": { |
||||||
|
"@types/enzyme": "^3.9.3", |
||||||
|
"@types/enzyme-adapter-react-16": "^1.0.5", |
||||||
|
"@types/jest": "^24.0.13", |
||||||
|
"@types/node": "^12.0.4", |
||||||
|
"@types/react": "^16.8.19", |
||||||
|
"@types/react-dom": "^16.8.4", |
||||||
|
"@types/styled-components": "^4.1.15", |
||||||
|
"classnames": "^2.2.6", |
||||||
"dotenv": "^7.0.0", |
"dotenv": "^7.0.0", |
||||||
|
"drizzle": "^1.4.0", |
||||||
|
"drizzle-react": "^1.3.0", |
||||||
|
"jest-junit": "^6.4.0", |
||||||
|
"node-sass": "^4.12.0", |
||||||
|
"react": "^16.8.6", |
||||||
|
"react-dom": "^16.8.6", |
||||||
|
"react-router-dom": "^5.0.0", |
||||||
|
"react-scripts": "3.0.1", |
||||||
|
"rimble-ui": "^0.8.0", |
||||||
"solidity-linked-list": "^2.0.2", |
"solidity-linked-list": "^2.0.2", |
||||||
|
"styled-components": "^4.2.0", |
||||||
"truffle-hdwallet-provider": "^1.0.6", |
"truffle-hdwallet-provider": "^1.0.6", |
||||||
|
"typescript": "^3.5.1", |
||||||
"web3-utils": "^1.0.0-beta.52" |
"web3-utils": "^1.0.0-beta.52" |
||||||
}, |
}, |
||||||
"devDependencies": { |
"devDependencies": { |
||||||
|
"enzyme": "^3.9.0", |
||||||
|
"enzyme-adapter-react-16": "^1.13.1", |
||||||
|
"enzyme-to-json": "^3.3.5", |
||||||
|
"husky": "^2.2.0", |
||||||
"istanbul": "^0.4.5", |
"istanbul": "^0.4.5", |
||||||
|
"lint-staged": "^8.1.6", |
||||||
"mocha-junit-reporter": "^1.21.0", |
"mocha-junit-reporter": "^1.21.0", |
||||||
"mocha-multi-reporters": "^1.1.7", |
"mocha-multi-reporters": "^1.1.7", |
||||||
|
"prettier": "^1.17.0", |
||||||
"solidity-coverage": "github:sc-forks/solidity-coverage#leapdao", |
"solidity-coverage": "github:sc-forks/solidity-coverage#leapdao", |
||||||
"solium": "^1.2.4", |
"solium": "^1.2.4", |
||||||
"truffle": "^5.0.12" |
"truffle": "^5.0.12" |
||||||
|
}, |
||||||
|
"lint-staged": { |
||||||
|
"src/**/*.{js,jsx,json,css}": [ |
||||||
|
"prettier --write", |
||||||
|
"git add" |
||||||
|
] |
||||||
|
}, |
||||||
|
"prettier": { |
||||||
|
"useTabs": false, |
||||||
|
"tabWidth": 4 |
||||||
|
}, |
||||||
|
"husky": { |
||||||
|
"hooks": { |
||||||
|
"pre-commit": "lint-staged" |
||||||
|
} |
||||||
|
}, |
||||||
|
"jest": { |
||||||
|
"collectCoverageFrom": [ |
||||||
|
"src/**/*.{js,jsx}", |
||||||
|
"!**/src/index.js", |
||||||
|
"!**/src/serviceWorker.js" |
||||||
|
] |
||||||
} |
} |
||||||
} |
} |
||||||
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@ |
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
// Jest Snapshot v1, https://goo.gl/fbAQLP |
||||||
|
|
||||||
exports[`<Dashboard Container /> matches snapshot 1`] = ` |
exports[`<Dashboard Container /> matches snapshot 1`] = ` |
||||||
<Dashboard |
<Memo(Dashboard) |
||||||
dataReady={true} |
dataReady={true} |
||||||
setTab={[Function]} |
setTab={[Function]} |
||||||
tab="accountTab" |
tab="accountTab" |
@ -1,7 +1,7 @@ |
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
// Jest Snapshot v1, https://goo.gl/fbAQLP |
||||||
|
|
||||||
exports[`<Toasts Container /> matches snapshot 1`] = ` |
exports[`<Toasts Container /> matches snapshot 1`] = ` |
||||||
<Toasts |
<Memo(Toasts) |
||||||
closeToast={[Function]} |
closeToast={[Function]} |
||||||
toasts={Array []} |
toasts={Array []} |
||||||
/> |
/> |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue