forked from scaffold-eth/scaffold-eth-2
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adding Envio to feat/pnpm #1
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
0b26a0a
update gh actions, gitignore, husky, lintstage
technophile-04 8f05ef1
add pnpm workspace and lock file
technophile-04 2764620
generate pnpm-lock.yaml per workspace
technophile-04 72bfa68
add use-hooks patch
technophile-04 38a1bd0
remove --immutable from gh-workflow
technophile-04 fe3bce4
setup pnpm in gh workflow
technophile-04 0676079
add downloading Git reference back
technophile-04 c23d19d
updater packageManger version in package.json
technophile-04 7debabc
add preinstall script
technophile-04 97766bf
use glob pattern for workspace
technophile-04 7f102c5
put back OG deploy command
technophile-04 08719f4
fix localStorage patch, update pnpm version to 8.6.12
technophile-04 3342794
update gh-actions to use pnpm run while running scripts
technophile-04 b0691ee
add abitype
technophile-04 1e70e0c
add check for pnpm version >=8.7.1 & use shorthand -F instead of --fi…
technophile-04 9361335
update readme with lowercase pnpm and mention version
technophile-04 3b7a4c2
Fix pnpm installation link
carletex 71f88ab
use node v18 in actions
technophile-04 147eaab
update abitype ovveride path
technophile-04 ab6b757
add use-hooks patch
technophile-04 4ba29fd
fix localStorage patch, update pnpm version to 8.6.12
technophile-04 eb0d81b
fix deploy to hardhat:deploy according to readme
JonoPrest 07519b7
add envio-indexer from template
JonoPrest 55c14a1
Update template for custom contract
JonoPrest 99fc7f6
Update indexer code
JonoPrest 0abfc10
Update workspace config for working envio
JonoPrest 6bc02e2
Fix event value param
JonoPrest 9c4f6ea
Add commands to package.json and readme
JonoPrest 1b51c6c
Remove unused abi file
JonoPrest 6d3b9be
WIP adding envio-data component
JonoPrest 949d239
Fix: use correct package name for envio commands
JonoPrest 503573b
fix: envio data component styling
JonoPrest 87d81cb
Type coercing address and removing husky for failed linting
JonoPrest b3a7c1f
Add greeting deployment script
JonoPrest b7a2538
Fix: index 0 not clickable in table
JonoPrest c77f638
Add padding for small screens
JonoPrest 33df812
Fix readme
JonoPrest 38b0adb
Updated pnpm.lock
JonoPrest 9720868
Update packages/hardhat/deploy/01_add_greeting.ts
JonoPrest 0ac54be
Tweak message to say contract interaction
JonoPrest 18841df
Remove console log
JonoPrest 1cfe7b7
Fix readme
JonoPrest df573e5
add dotenv and concurrently for gql codegen
JonoPrest File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,13 +1,23 @@ | ||
node_modules | ||
|
||
# dependencies, yarn, etc | ||
# yarn / eslint | ||
# pnpm | ||
pnpm-debug.log* | ||
pnpm-error.log* | ||
.pnpm-debug.log* | ||
|
||
# yarn | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
# eslint | ||
.eslintcache | ||
|
||
# Visual Studio Code | ||
.vscode/** | ||
|
||
# macOS | ||
.DS_Store |
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,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged --verbose | ||
# pnpm lint-staged --verbose |
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 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 |
---|---|---|
|
@@ -9,32 +9,36 @@ | |
] | ||
}, | ||
"scripts": { | ||
"account": "yarn workspace @se-2/hardhat account", | ||
"chain": "yarn workspace @se-2/hardhat chain", | ||
"fork": "yarn workspace @se-2/hardhat fork", | ||
"deploy": "yarn workspace @se-2/hardhat deploy", | ||
"verify": "yarn workspace @se-2/hardhat verify", | ||
"compile": "yarn workspace @se-2/hardhat compile", | ||
"generate": "yarn workspace @se-2/hardhat generate", | ||
"hardhat:lint": "yarn workspace @se-2/hardhat lint", | ||
"hardhat:lint-staged": "yarn workspace @se-2/hardhat lint-staged", | ||
"hardhat:test": "yarn workspace @se-2/hardhat test", | ||
"test": "yarn hardhat:test", | ||
"start": "yarn workspace @se-2/nextjs dev", | ||
"next:lint": "yarn workspace @se-2/nextjs lint", | ||
"next:format": "yarn workspace @se-2/nextjs format", | ||
"next:check-types": "yarn workspace @se-2/nextjs check-types", | ||
"preinstall": "npx only-allow pnpm", | ||
"account": "pnpm -F @se-2/hardhat run account", | ||
"chain": "pnpm -F @se-2/hardhat run chain", | ||
"fork": "pnpm -F @se-2/hardhat run fork", | ||
"hardhat:deploy": "pnpm -F @se-2/hardhat run deploy", | ||
"verify": "pnpm -F @se-2/hardhat run verify", | ||
"compile": "pnpm -F @se-2/hardhat run compile", | ||
"generate": "pnpm -F @se-2/hardhat run generate", | ||
"hardhat:lint": "pnpm -F @se-2/hardhat run lint", | ||
"hardhat:lint-staged": "pnpm -F @se-2/hardhat run lint-staged", | ||
"hardhat:test": "pnpm -F @se-2/hardhat run test", | ||
"envio:codegen": "pnpm -F @se-2/envio run codegen", | ||
"envio:dev": "pnpm -F @se-2/envio run dev", | ||
"envio:start": "pnpm -F @se-2/envio run start", | ||
"start": "pnpm -F @se-2/nextjs run dev", | ||
"next:lint": "pnpm -F @se-2/nextjs run lint", | ||
"next:format": "pnpm -F @se-2/nextjs run format", | ||
"next:check-types": "pnpm -F @se-2/nextjs run check-types", | ||
"test": "pnpm -F @se-2/hardhat run test", | ||
"postinstall": "husky install", | ||
"precommit": "lint-staged", | ||
"vercel": "yarn workspace @se-2/nextjs vercel", | ||
"vercel:yolo": "yarn workspace @se-2/nextjs vercel:yolo" | ||
"vercel": "pnpm -F @se-2/nextjs run vercel", | ||
"vercel:yolo": "pnpm -F @se-2/nextjs run vercel:yolo" | ||
}, | ||
"engines": { | ||
"node": ">=16.14.0", | ||
"pnpm": ">=8.7.1" | ||
}, | ||
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"husky": "^8.0.1", | ||
"lint-staged": "^13.0.3" | ||
}, | ||
"resolutions": { | ||
"usehooks-ts@^2.7.2": "patch:usehooks-ts@npm:^2.7.2#./.yarn/patches/usehooks-ts-npm-2.7.2-fceffe0e43.patch" | ||
} | ||
} |
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,33 @@ | ||
*.exe | ||
*.obj | ||
*.out | ||
*.compile | ||
*.native | ||
*.byte | ||
*.cmo | ||
*.annot | ||
*.cmi | ||
*.cmx | ||
*.cmt | ||
*.cmti | ||
*.cma | ||
*.a | ||
*.cmxa | ||
*.obj | ||
*~ | ||
*.annot | ||
*.cmj | ||
*.bak | ||
lib/* | ||
*.mlast | ||
*.mliast | ||
.vscode | ||
.merlin | ||
.bsb.lock | ||
/node_modules/ | ||
benchmarks/ | ||
artifacts | ||
cache | ||
build | ||
*.bs.js | ||
generated |
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 @@ | ||
## Envio Greeter Template | ||
|
||
*Please refer to the [documentation website](https://docs.envio.dev) for a thorough guide on all Envio indexer features* |
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 @@ | ||
name: YourContract | ||
description: YourContract indexer | ||
networks: | ||
- id: 31337 #Hardhat | ||
start_block: 0 | ||
rpc_config: | ||
url: http://127.0.0.1:8545 #rpc url for local hardhat network | ||
contracts: | ||
- name: Greeting | ||
address: "0x5fbdb2315678afecb367f032d93f642f64180aa3" | ||
handler: src/EventHandlers.ts | ||
events: | ||
- event: "GreetingChange(address indexed greetingSetter, string newGreeting, bool premium, uint256 value)" | ||
requiredEntities: | ||
- name: User |
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,70 @@ | ||
|
||
<!-- | ||
* Copyright (c) 2021 GraphQL Contributors | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
--> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>GraphiQL</title> | ||
<style> | ||
body { | ||
height: 100%; | ||
margin: 0; | ||
width: 100%; | ||
overflow: hidden; | ||
} | ||
|
||
#graphiql { | ||
height: 100vh; | ||
} | ||
</style> | ||
|
||
<!-- | ||
This GraphiQL example depends on Promise and fetch, which are available in | ||
modern browsers, but can be "polyfilled" for older browsers. | ||
GraphiQL itself depends on React DOM. | ||
If you do not want to rely on a CDN, you can host these files locally or | ||
include them directly in your favored resource bundler. | ||
--> | ||
<script | ||
src="https://unpkg.com/react@17/umd/react.development.js" | ||
integrity="sha512-Vf2xGDzpqUOEIKO+X2rgTLWPY+65++WPwCHkX2nFMu9IcstumPsf/uKKRd5prX3wOu8Q0GBylRpsDB26R6ExOg==" | ||
crossorigin="anonymous" | ||
></script> | ||
<script | ||
src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" | ||
integrity="sha512-Wr9OKCTtq1anK0hq5bY3X/AvDI5EflDSAh0mE9gma+4hl+kXdTJPKZ3TwLMBcrgUeoY0s3dq9JjhCQc7vddtFg==" | ||
crossorigin="anonymous" | ||
></script> | ||
|
||
<!-- | ||
These two files can be found in the npm module, however you may wish to | ||
copy them directly into your environment, or perhaps include them in your | ||
favored resource bundler. | ||
--> | ||
<link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css" /> | ||
</head> | ||
|
||
<body> | ||
<div id="graphiql">Loading...</div> | ||
<script | ||
src="https://unpkg.com/graphiql/graphiql.min.js" | ||
type="application/javascript" | ||
></script> | ||
<script> | ||
ReactDOM.render( | ||
React.createElement(GraphiQL, { | ||
fetcher: GraphiQL.createFetcher({ | ||
url: 'http://localhost:8080/v1/graphql', | ||
}), | ||
defaultEditorToolsVisibility: true, | ||
}), | ||
document.getElementById('graphiql'), | ||
); | ||
</script> | ||
</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,20 @@ | ||
{ | ||
"name": "@se-2/envio", | ||
"version": "0.1.0", | ||
"scripts": { | ||
"clean": "tsc --clean", | ||
"build": "tsc --build", | ||
"watch": "tsc --watch", | ||
"dev": "envio dev", | ||
"codegen": "envio codegen", | ||
"start": "ts-node generated/src/Index.bs.js" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.16.1", | ||
"typescript": "^5.0.4" | ||
}, | ||
"dependencies": { | ||
"ts-node": "^10.9.1", | ||
"envio": "0.0.20" | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to add
pnpm envio:codegen
as init is never run when this is clonedhttps://github.com/Float-Capital/indexer/issues/974