-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ./client to check function of contract at frontend
- Loading branch information
Showing
81 changed files
with
1,694 additions
and
0 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,3 @@ | ||
{ | ||
"extends": "react-app" | ||
} |
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,26 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# lol macs | ||
.DS_Store/ | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# 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* |
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.13.0 |
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 @@ | ||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
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,18 @@ | ||
/* config-overrides.js */ | ||
const { zeppelinSolidityHotLoader } = require('./config/webpack'); | ||
|
||
module.exports = function override(config, env) { | ||
//do stuff with the webpack config... | ||
|
||
// allow importing from outside of app/src folder, ModuleScopePlugin prevents this. | ||
const scope = config.resolve.plugins.findIndex(o => o.constructor.name === 'ModuleScopePlugin'); | ||
if (scope > -1) { | ||
config.resolve.plugins.splice(scope, 1); | ||
} | ||
|
||
// add Zeppelin Solidity hot reloading support | ||
// have to insert before last loader, because CRA user 'file-loader' as default one | ||
config.module.rules.splice(config.module.rules - 2, 0, zeppelinSolidityHotLoader); | ||
|
||
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,21 @@ | ||
const zeppelinSolidityHotLoaderOptions = { | ||
network: 'development', | ||
// you can stop loader from automatic compile/push/updgrade | ||
// action by setting disabled flag to true, but it will still | ||
// serve .json files from file system | ||
disabled: true, | ||
} | ||
|
||
module.exports = { | ||
zeppelinSolidityHotLoader: { | ||
test: /\.sol$/, | ||
use: [ | ||
{ loader: 'json-loader' }, | ||
{ | ||
loader: 'zeppelin-solidity-hot-loader', | ||
options: zeppelinSolidityHotLoaderOptions, | ||
}, | ||
], | ||
}, | ||
zeppelinSolidityHotLoaderOptions, | ||
}; |
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,6 @@ | ||
# The following redirect is intended for use with most SPAs that handle | ||
# routing internally. | ||
[[redirects]] | ||
from = "/*" | ||
to = "/index.html" | ||
status = 200 |
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,38 @@ | ||
{ | ||
"name": "client", | ||
"version": "0.1.0", | ||
"private": true, | ||
"dependencies": { | ||
"@material-ui/core": "^4.0.0", | ||
"@material-ui/icons": "^4.0.0", | ||
"dotenv": "^8.2.0", | ||
"eslint": "^6.0.1", | ||
"json-loader": "^0.5.7", | ||
"node-sass": "^4.11.0", | ||
"react": "^16.8.6", | ||
"react-app-rewired": "^2.1.0", | ||
"react-dom": "^16.8.6", | ||
"react-router-dom": "^5.0.0", | ||
"react-scripts": "^2.1.3", | ||
"rimble-ui": "^0.11.1", | ||
"styled-components": "^4.1.3", | ||
"web3": "1.0.0-beta.37", | ||
"zeppelin-solidity-hot-loader": "^1.2.3" | ||
}, | ||
"scripts": { | ||
"start": "react-app-rewired start", | ||
"build": "react-app-rewired build", | ||
"test": "react-app-rewired test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"eslintConfig": { | ||
"extends": "react-app" | ||
}, | ||
"browserslist": [ | ||
">0.2%", | ||
"not dead", | ||
"not ie <= 11", | ||
"not op_mini all" | ||
], | ||
"devDependencies": {} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,57 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon-32x32.png" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" | ||
/> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono" rel="stylesheet" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<!-- | ||
facebook open graph tags --> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:url" content="https://zepkit.zeppelinos.org/" /> | ||
<meta property="og:title" content="ZepKit" /> | ||
<meta property="og:description" content="The easiest way to build a Web3 application with the most trusted tools in Ethereum." /> | ||
<meta property="og:image" content="https://zepkit.zeppelinos.org/pic_bg.png" /> | ||
|
||
<!-- twitter card tags additive with the og: tags --> | ||
<meta name="twitter:card" content="summary_large_image"> | ||
<meta name="twitter:domain" value="zepkit.zeppelinos.org" /> | ||
<meta name="twitter:title" value="ZepKit" /> | ||
<meta name="twitter:description" value="The easiest way to build a Web3 application with the most trusted tools in Ethereum." /> | ||
<meta name="twitter:image" content="https://zepkit.zeppelinos.org/pic_bg.png" /> | ||
<meta name="twitter:url" value="https://zepkit.zeppelinos.org/" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is added to the | ||
homescreen on Android. 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>Matic Plasma Backed Asset Swap</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,15 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,41 @@ | ||
/* Styles go here */ | ||
.token { | ||
height: 150px; | ||
width: 150px; | ||
border-radius: 50%; | ||
display: inline-block; | ||
} | ||
|
||
|
||
.App { | ||
text-align: center; | ||
} | ||
|
||
.App-logo { | ||
animation: App-logo-spin infinite 20s linear; | ||
height: 40vmin; | ||
} | ||
|
||
.App-header { | ||
background-color: #282c34; | ||
min-height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: calc(10px + 2vmin); | ||
color: white; | ||
} | ||
|
||
.App-link { | ||
color: #61dafb; | ||
} | ||
|
||
@keyframes App-logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} |
Oops, something went wrong.