Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
smnunezleal committed Jun 14, 2022
0 parents commit ab42c6a
Show file tree
Hide file tree
Showing 115 changed files with 79,911 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "scaffold-eth",
"extensions": [
"dbaeumer.vscode-eslint",
"[email protected]"
],
"forwardPorts": [
3000
],
"hostRequirements": {
"memory": "8gb"
},
"remoteUser": "node",
"image": "mcr.microsoft.com/vscode/devcontainers/javascript-node:16-bullseye",
"containerEnv": {
"REACT_APP_CODESPACES": "true"
},
"onCreateCommand": "yarn install && yarn browserslist --update-db"
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[packages/**.js{,x}]
indent_style = space
indent_size = 2

[*.{sol,yul}]
indent_style = space
indent_size = 4
68 changes: 68 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
packages/subgraph/generated
packages/subgraph/abis/*
packages/hardhat/*.txt
**/aws.json

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
**/node_modules

packages/hardhat/artifacts*
packages/hardhat/deployments
packages/react-app/src/contracts/*
!packages/react-app/src/contracts/external_contracts.js
packages/hardhat/cache*
packages/**/data
!packages/react-app/src/contracts/contracts.js


# ts
packages/hardhat-ts/cache
# secrets
.secret

packages/subgraph/networks.json
tenderly.yaml

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
coverage

# production
build
# yarn / eslint
.yarn/cache
.yarn/install-state.gz
.yarn/build-state.yml
.eslintcache
# testing
coverage

# production
build

# Hardhat files
cache
artifacts

# misc
.DS_Store
.env*

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.idea

# Local Netlify folder
.netlify
*.tsbuildinfo
*.stackdump

# doc directory
/doc
8 changes: 8 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[submodule "packages/services/arbitrum"]
path = packages/services/arbitrum
url = https://github.com/OffchainLabs/arbitrum
branch = master
[submodule "packages/services/optimism"]
path = packages/services/optimism
url = https://github.com/ethereum-optimism/optimism
branch = regenesis/0.4.0
29 changes: 29 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
tasks:
- name: App
init: >
yarn &&
gp sync-done install
command: REACT_APP_PROVIDER=$(gp url 8545) yarn start
- name: Chain
init: gp sync-await install
command: yarn chain --hostname 0.0.0.0
openMode: split-right
- name: Deployment
init: gp sync-await install
command: yarn deploy
openMode: split-right
ports:
- port: 3000
onOpen: open-preview
- port: 8545
onOpen: ignore
visibility: public
github:
prebuilds:
pullRequestsFromForks: true
addComment: true
vscode:
extensions:
- dbaeumer.vscode-eslint
- esbenp.prettier-vscode
- juanblanco.solidity
4 changes: 4 additions & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn install
36 changes: 36 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"solidity.packageDefaultDependenciesDirectory": "node_modules/@scaffold-eth/hardhat/node_modules/",
"solidity-va.test.defaultUnittestTemplate": "hardhat",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/.cache": true,
"**/.vs/": true,
"**/*.cs": true,
"**/*.orig": true,
"**/bin/": true,
"**/build/": true,
"**/debug/": true,
"**/dist/": true,
"**/node_modules/": true,
"**/obj": true,
"yarn-error.log": true,
"**/yarn-error.log": true,
"packages\\eth-hooks/lib": true
},
"explorerExclude.backup": null,
"eslint.workingDirectories": [

{ "directory": "packages/eth-hooks", "changeProcessCWD": true },
{ "directory": "packages/hardhat-ts", "changeProcessCWD": true },
{ "directory": "packages/vite-app-ts", "changeProcessCWD": true },
],
"search.exclude": {
"**/yarn-error.log": true,
"**/yarn.lock": true
},
"git.detectSubmodules": false
}
65 changes: 65 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"problemMatcher": [],
"label": "yarn: start",
"detail": "yarn workspace @scaffold-eth/react-app start",
"isBackground": true,
"presentation": {
"reveal": "always",
"panel": "shared"
},
"runOptions": {
"runOn": "folderOpen"
},
"group": "none"
},
{
"type": "npm",
"script": "chain",
"label": "yarn: chain",
"detail": "yarn workspace @scaffold-eth/hardhat chain",
"isBackground": true,
"presentation": {
"reveal": "always",
"panel": "shared"
},
"runOptions": {
"runOn": "folderOpen"
},
"group": "none",
"problemMatcher": {
"owner": "typescript",
"fileLocation": "relative",
"pattern": {
"regexp": "^(.*)$",
"message": 1
},
"background": {
"activeOnStart": false,
"beginsPattern": "^.*$",
"endsPattern": "^Started HTTP and WebSocket JSON-RPC server at .*"
}
}
},
{
"type": "npm",
"script": "watch",
"problemMatcher": [],
"label": "yarn: deploy",
"detail": "yarn workspace @scaffold-eth/hardhat watch",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"runOptions": {
"runOn": "folderOpen"
},
"group": "none",
"dependsOn": ["yarn: chain"],
}
]
}
38 changes: 38 additions & 0 deletions ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Austin Griffith 2021

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit ab42c6a

Please sign in to comment.