forked from scaffold-eth/scaffold-eth-2
-
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.
Merge branch 'main' into update-extensions-styles
- Loading branch information
Showing
33 changed files
with
530 additions
and
302 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,10 @@ | ||
--- | ||
"create-eth": patch | ||
--- | ||
|
||
- Add celo to networks (https://github.com/scaffold-eth/scaffold-eth-2/pull/980) | ||
- fix: Input components in form tag (https://github.com/scaffold-eth/scaffold-eth-2/pull/992) | ||
- fix: removed unecessary logs for decoding tx in block-explorer (https://github.com/scaffold-eth/scaffold-eth-2/pull/985) | ||
- Remove hardcoded colors (https://github.com/scaffold-eth/scaffold-eth-2/pull/991) | ||
- Fix typo in blockexplorer notification (https://github.com/scaffold-eth/scaffold-eth-2/pull/995) | ||
- Prettier for solidity (https://github.com/scaffold-eth/scaffold-eth-2/pull/994) |
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 |
---|---|---|
|
@@ -32,3 +32,6 @@ jobs: | |
|
||
- name: Run lint | ||
run: yarn lint --max-warnings=0 | ||
|
||
- name: Run type-check | ||
run: yarn type-check |
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,5 +1,14 @@ | ||
pre-commit: | ||
parallel: true | ||
commands: | ||
type-check: | ||
glob: "src/**/*.ts" | ||
run: yarn type-check | ||
lint: | ||
glob: "*.{js,ts,md}" | ||
run: yarn eslint --fix {staged_files} | ||
format: | ||
glob: "*.{js,ts,md,json}" | ||
run: | | ||
yarn prettier --write {staged_files} | ||
git add {staged_files} |
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
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,30 +1,31 @@ | ||
import { ExternalExtension } from "./types"; | ||
import curatedExtension from "./extensions.json"; | ||
|
||
const CURATED_EXTENSIONS: { [key: string]: ExternalExtension } = { | ||
subgraph: { | ||
repository: "https://github.com/scaffold-eth/create-eth-extensions", | ||
branch: "subgraph", | ||
}, | ||
"eip-712": { | ||
repository: "https://github.com/scaffold-eth/create-eth-extensions", | ||
branch: "eip-712", | ||
}, | ||
ponder: { | ||
repository: "https://github.com/scaffold-eth/create-eth-extensions", | ||
branch: "ponder", | ||
}, | ||
onchainkit: { | ||
repository: "https://github.com/scaffold-eth/create-eth-extensions", | ||
branch: "onchainkit", | ||
}, | ||
"erc-20": { | ||
repository: "https://github.com/scaffold-eth/create-eth-extensions", | ||
branch: "erc-20", | ||
}, | ||
"eip-5792": { | ||
repository: "https://github.com/scaffold-eth/create-eth-extensions", | ||
branch: "eip-5792", | ||
}, | ||
type ExtensionJSON = { | ||
extensionFlagValue: string; | ||
repository: string; | ||
branch?: string; | ||
// fields usefull for scaffoldeth.io | ||
description: string; | ||
version?: string; // if not present we default to latest | ||
name?: string; // human redable name, if not present we default to branch or extensionFlagValue on UI | ||
}; | ||
|
||
const extensions: ExtensionJSON[] = curatedExtension; | ||
|
||
const CURATED_EXTENSIONS = extensions.reduce<Record<string, ExternalExtension>>((acc, ext) => { | ||
if (!ext.repository) { | ||
throw new Error(`Extension must have 'repository': ${JSON.stringify(ext)}`); | ||
} | ||
if (!ext.extensionFlagValue) { | ||
throw new Error(`Extension must have 'extensionFlagValue': ${JSON.stringify(ext)}`); | ||
} | ||
|
||
acc[ext.extensionFlagValue] = { | ||
repository: ext.repository, | ||
branch: ext.branch, | ||
}; | ||
return acc; | ||
}, {}); | ||
|
||
export { CURATED_EXTENSIONS }; |
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,44 @@ | ||
[ | ||
{ | ||
"extensionFlagValue": "subgraph", | ||
"description": "This Scaffold-ETH 2 extension helps you build and test subgraphs locally for your contracts. It also enables interaction with the front-end and facilitates easy deployment to Subgraph Studio.", | ||
"repository": "https://github.com/scaffold-eth/create-eth-extensions", | ||
"branch": "subgraph" | ||
}, | ||
{ | ||
"extensionFlagValue": "eip-712", | ||
"description": "An implementation of EIP-712, allowing you to send, sign, and verify typed messages in a user-friendly manner.", | ||
"repository": "https://github.com/scaffold-eth/create-eth-extensions", | ||
"branch": "eip-712" | ||
}, | ||
{ | ||
"extensionFlagValue": "ponder", | ||
"description": "This Scaffold-ETH 2 extension comes pre-configured with ponder.sh, providing an example to help you get started quickly.", | ||
"repository": "https://github.com/scaffold-eth/create-eth-extensions", | ||
"branch": "ponder" | ||
}, | ||
{ | ||
"extensionFlagValue": "onchainkit", | ||
"description": "This Scaffold-ETH 2 extension comes pre-configured with onchainkit, providing an example to help you get started quickly.", | ||
"repository": "https://github.com/scaffold-eth/create-eth-extensions", | ||
"branch": "onchainkit" | ||
}, | ||
{ | ||
"extensionFlagValue": "erc-20", | ||
"description": "This extension introduces an ERC-20 token contract and demonstrates how to interact with it, including getting a holder balance and transferring tokens.", | ||
"repository": "https://github.com/scaffold-eth/create-eth-extensions", | ||
"branch": "erc-20" | ||
}, | ||
{ | ||
"extensionFlagValue": "eip-5792", | ||
"description": "This extension demonstrates on how to use EIP-5792 wallet capabilities. This EIP introduces new JSON-RPC methods for sending multiple calls from the user wallet, and checking their status", | ||
"repository": "https://github.com/scaffold-eth/create-eth-extensions", | ||
"branch": "eip-5792" | ||
}, | ||
{ | ||
"extensionFlagValue": "randao", | ||
"description": "This extension shows how to use on-chain randomness using RANDAO for truly on-chain unpredictable random sources.", | ||
"repository": "https://github.com/scaffold-eth/create-eth-extensions", | ||
"branch": "randao" | ||
} | ||
] |
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
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
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
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
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
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
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
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
Oops, something went wrong.