-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make compound work * make it work tx-builder and walletConnect * update scripts * move workspaces into app folder * wallet-connect: accept uri as pasted value. * Update README * remove storybook * refactor connection logic * update instructions * update placeholder input * Cleanup unnecessary dependencies on each package * Fix homepage to be able to deploy in IPFS * Update screen snapshot to clipboard command in Mac * Set v2.0.0 Co-authored-by: Daniel Sanchez <[email protected]>
- Loading branch information
1 parent
173a4dd
commit 0eb5fca
Showing
95 changed files
with
1,393 additions
and
4,150 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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
# DEVELOPMENT | ||
HTTPS=false | ||
PORT=3002 | ||
BROWSER=none | ||
|
||
# Set this var ONLY if you want to use local provider, like MetaMask | ||
REACT_APP_LOCAL_WEB3_PROVIDER=false | ||
|
||
# PRODUCTION | ||
REACT_APP_WEB3_PROVIDER_URL=https://rinkeby.infura.io/v3/someToken | ||
REACT_APP_RPC_TOKEN= |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
/* config-overrides.js */ | ||
const path = require("path"); | ||
const ModuleScopePlugin = require("react-dev-utils/ModuleScopePlugin"); | ||
|
||
module.exports = { | ||
// The function to use to create a webpack dev server configuration when running the development | ||
// server with 'npm run start' or 'yarn start'. | ||
// Example: set the dev server to use a specific certificate in https. | ||
devServer: function(configFunction) { | ||
// Return the replacement function for create-react-app to use to generate the Webpack | ||
// Development Server config. "configFunction" is the function that would normally have | ||
// been used to generate the Webpack Development server config - you can use it to create | ||
// a starting configuration to then modify instead of having to create a config from scratch. | ||
return function(proxy, allowedHost) { | ||
// Create the default config by calling configFunction with the proxy/allowedHost parameters | ||
const config = configFunction(proxy, allowedHost); | ||
|
||
config.headers = { | ||
"Access-Control-Allow-Origin": "*", | ||
"Access-Control-Allow-Methods": "GET", | ||
"Access-Control-Allow-Headers": | ||
"X-Requested-With, content-type, Authorization", | ||
}; | ||
|
||
// Return your customised Webpack Development Server config. | ||
return config; | ||
}; | ||
}, | ||
}; |
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,59 @@ | ||
{ | ||
"name": "compound", | ||
"version": "1.0.0", | ||
"private": true, | ||
"homepage": "./", | ||
"dependencies": { | ||
"@apollo/react-hooks": "^3.1.3", | ||
"@gnosis.pm/safe-apps-sdk": "0.4.2", | ||
"@gnosis.pm/safe-react-components": "^0.3.0", | ||
"@rmeissner/safe-apps-react-sdk": "^0.3.4", | ||
"apollo-boost": "^0.4.7", | ||
"big-number-input": "^1.0.2", | ||
"big.js": "^5.2.2", | ||
"graphql": "^14.6.0", | ||
"lodash": "^4.17.15", | ||
"react": "^16.12.0", | ||
"react-dom": "^16.12.0", | ||
"react-router-dom": "^5.1.2", | ||
"react-scripts": "^3.4.1", | ||
"styled-components": "^5.2.0", | ||
"web3": "^1.2.5" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^5.0.0", | ||
"@testing-library/react": "^11.0.0", | ||
"@testing-library/user-event": "^12.0.0", | ||
"@types/big.js": "^4.0.5", | ||
"@types/jest": "^26.0.0", | ||
"@types/lodash": "^4.14.154", | ||
"@types/node": "^12.0.0", | ||
"@types/react": "^16.9.0", | ||
"@types/react-dom": "^16.9.0", | ||
"@types/react-router-dom": "^5.1.3", | ||
"@types/styled-components": "^5.1.0", | ||
"react-app-rewired": "^2.1.6", | ||
"react-docgen-typescript-loader": "^3.7.1", | ||
"typescript": "^4.0.2" | ||
}, | ||
"scripts": { | ||
"start": "react-app-rewired start", | ||
"build": "react-app-rewired build", | ||
"test": "react-app-rewired test" | ||
}, | ||
"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" | ||
] | ||
} | ||
} |
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,43 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%PUBLIC_URL%/Compound.png" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Compound safe-app. Money markets on the Ethereum blockchain" | ||
/> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/Compound.png" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>Compound safe-app</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
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,5 @@ | ||
{ | ||
"name": "Compound", | ||
"description": "Money markets on the Ethereum blockchain", | ||
"iconPath": "Compound.png" | ||
} |
File renamed without changes.
Oops, something went wrong.