Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C0 eth hooks upgrade #30

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
226c564
update action
ShravanSunder Jan 20, 2022
6f35f54
Catch module import errors in web3ModalConfig (#61)
dvinubius Jan 23, 2022
ba3c72c
Bugs/#55 surge (#62)
ShravanSunder Jan 25, 2022
6a3da5b
Feat/#64 cleanup (#65)
ShravanSunder Feb 3, 2022
1426956
Add chai and update sample-test.ts to use YourContract instead of dep…
johnnylambada Feb 11, 2022
54b89d7
Update README.md
ShravanSunder Feb 11, 2022
cb5e46c
Update README.md
ShravanSunder Feb 11, 2022
9e8b329
Update README.md
ShravanSunder Feb 11, 2022
0908a0d
Update README.md
ShravanSunder Feb 11, 2022
8f0c044
Update README.md
ShravanSunder Feb 11, 2022
ba5ee6d
transfer fixes
ShravanSunder Feb 12, 2022
3c36a01
fixes and package updates
ShravanSunder Feb 12, 2022
3880835
fixes and package updates
ShravanSunder Feb 12, 2022
52d6fce
Fix mainnet provider fallback (#73)
dvinubius Feb 12, 2022
82d956b
css import for eth-components (#69)
dvinubius Feb 12, 2022
430f648
Merge branch 'release' into next
ShravanSunder Feb 12, 2022
c00d64c
Merge branch 'next' of https://github.com/scaffold-eth/scaffold-eth-t…
ShravanSunder Feb 12, 2022
cc5fbdc
fixes and package updates
ShravanSunder Feb 12, 2022
470c195
#74 logging changes
ShravanSunder Feb 12, 2022
b0efc7e
Bugs/#77 web3modal (#78)
ShravanSunder Feb 21, 2022
be25512
Merge branch 'release' of https://github.com/scaffold-eth/scaffold-et…
grothem Feb 22, 2022
bdd0c5b
Upgraded to eth-hooks-v4
grothem Feb 22, 2022
4cb4441
copied readme from existing challenge
grothem Feb 23, 2022
8a15b9c
Initial pass through readme
grothem Feb 23, 2022
f4af04f
Cleanup after running through challenge
grothem Feb 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
11 changes: 11 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# folders
lib/
node_modules/
# files
**/*.less
**/*.css
**/*.scss
**/*.json
**/*.png
**/*.svg
generated/
38 changes: 38 additions & 0 deletions .github/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 .github/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.
72 changes: 72 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
workflow_dispatch:
push:
branches: [ next, release ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ next, release ]
schedule:
- cron: '0 4 * * *'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
59 changes: 59 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Pull Request CI

on:
workflow_dispatch:
push:
branches: [release, next]
pull_request:
types: [opened, reopened, ready_for_review, synchronize]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: 'cache'
uses: actions/cache@v2
with:
path: |
~/.yarn
~/node_modules
**/node_modules/**
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --immutable

- name: 'hardhat compile'
run: |
yarn compile --force

- name: 'build contracts'
run: |
yarn shx cp ./packages/vite-app-ts/scripts/hardhat_contracts.json.bak ./packages/vite-app-ts/src/generated/hardhat_contracts.json
yarn contracts:build

- name: 'build production'
run: |
yarn run start optimize --force
yarn run build
# - run: yarn hardhat:test
# - name: Publish Unit Test Results
# uses: EnricoMi/publish-unit-test-result-action@v1
# if: always()
# with:
# files: testresult.xml
42 changes: 42 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Mark stale issues and pull requests

on:
schedule:
- cron: '0 4 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: '🙊 stale'
stale-pr-label: '🙊 stale'
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 20
# Issues with these labels will never be considered stale
exemptLabels: 🗺 epic
# Label to use when marking an issue as stale
staleLabel: 👎🏽 wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: true
62 changes: 62 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
packages/subgraph/subgraph.yaml
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/subgraph/config/config.json
tenderly.yaml

#build
*.tsbuildinfo
*.stackdump
.yalc
yalc.lock
packages/vite-app-ts/dist
packages/hardhat-ts/mnemonic.secret

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

# dependencies
/node_modules
/.pnp
.pnp.js
# yarn / eslint
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.eslintcache

# testing
coverage

# production
build
dist

#Hardhat files
cache
artifacts

# misc
.DS_Store
.netlify

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



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
28 changes: 28 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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
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
github:
prebuilds:
pullRequestsFromForks: true
addComment: true
vscode:
extensions:
- dbaeumer.vscode-eslint
- esbenp.prettier-vscode
- juanblanco.solidity
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged -p 2
Loading