diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-1_Course Introduction.md b/docs/TheGraph-ScaffoldEth2/en/section-0/lesson-1_Course Introduction.md similarity index 89% rename from docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-1_Course Introduction.md rename to docs/TheGraph-ScaffoldEth2/en/section-0/lesson-1_Course Introduction.md index bdc39e8e3..dbb25d7dc 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-1_Course Introduction.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-0/lesson-1_Course Introduction.md @@ -19,13 +19,13 @@ This workshop is built around Scaffold-ETH 2 and The Graph. You will learn how t - ๐Ÿ”ฅ **Burner Wallet & Local Faucet**: Quickly test your application with a burner wallet and local faucet. - ๐Ÿ” **Integration with Wallet Providers**: Connect to different wallet providers and interact with the Ethereum network. -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_1_1.png) -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-2.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_1_2.png) -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-3.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/L0_1_3.png) -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-4.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_1_4.png) To learn more about Scaffold-ETH checkout the [Github repository](https://github.com/scaffold-eth/scaffold-eth-2) or [Scaffoldeth.io](https://scaffoldeth.io). @@ -43,9 +43,9 @@ For detailed instructions and more context, check out the [Getting Started Guide We are building an example smart contract and front end that utilizes The Graph protocol for data storage of event data. -(Add links here to example dapp deployed online) +https://sendmessage-tau.vercel.app -(add screen shots here to show the example dapp) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_1_5.png) ### ๐ŸŒ Upgrading this project @@ -75,4 +75,5 @@ Creating `pull request` and `issues` is an important task when actually developi Let's make the UNCHAIN project better together โœจ. ### ๐Ÿ™‹โ€โ™‚๏ธ Asking Questions -If you have any questions or uncertainties up to this point, please ask in the `#thegraph` channel on Discord. \ No newline at end of file + +If you have any questions or uncertainties up to this point, please ask in the `#thegraph` channel on Discord. diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-2_Requirements.md b/docs/TheGraph-ScaffoldEth2/en/section-0/lesson-2_Requirements.md similarity index 100% rename from docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-2_Requirements.md rename to docs/TheGraph-ScaffoldEth2/en/section-0/lesson-2_Requirements.md diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-3_Setup Scaffold-ETH 2.md b/docs/TheGraph-ScaffoldEth2/en/section-0/lesson-3_Setup Scaffold-ETH 2.md similarity index 80% rename from docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-3_Setup Scaffold-ETH 2.md rename to docs/TheGraph-ScaffoldEth2/en/section-0/lesson-3_Setup Scaffold-ETH 2.md index ff7bd82a5..b01e7218d 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-3_Setup Scaffold-ETH 2.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-0/lesson-3_Setup Scaffold-ETH 2.md @@ -6,7 +6,7 @@ First, we will start out with a special build of Scaffold-ETH 2 written by Simon We will need a total of four different windows to setup Scaffold-ETH 2 and The Graph. -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_1.png) ``` git clone -b subgraph-package \ @@ -21,7 +21,7 @@ cd scaffold-eth-2-subgraph-package && \ yarn install ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-2.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_2.png) Next, we will want to start up our local blockchain so that we can eventually deploy and test our smart contracts. Scaffold-ETH 2 comes with Hardhat by default. To spin up the chain just type the following yarn commandโ€ฆ @@ -29,7 +29,7 @@ Next, we will want to start up our local blockchain so that we can eventually de yarn chain ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-3.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_3.png) > You will keep this window up and available so that you can see any output from hardhat console. ๐Ÿ–ฅ๏ธ @@ -39,7 +39,7 @@ Next we are going to spin up our frontend application. Scaffold-ETH 2 comes with yarn start ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-4.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_4.png) > You will also want to keep this window up at all times so that you can debug any code changes you make to NextJS, debug performance or just check that the server is running properly. @@ -49,16 +49,16 @@ Next, you will want to open up a third window where you can deploy your smart co yarn deploy ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-5.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_5.png) > You should get a tx along with an address and amount of gas spent on the deploy. โ›ฝ If you navigate to http://localhost:3000 you should see the NextJS application. Explore the menus and features of Scaffold-ETH 2! Someone call in an emergency, cause hot damn that is fire! ๐Ÿ”ฅ -You can test by sending an update to the setGreeting function. In order to do this you will need to get some gas by clicking cash icon in the top right hand corner next to the burner wallet address. This will send you 1 ETH from the faucet. +You can test by sending an update to the setGreeting function. In order to do this you will need to get some gas by clicking cash icon in the top right hand corner next to the burner wallet address. This will send you 1 ETH from the faucet. Then you can simply navigate to "Debug Contracts", click the string field under setGreeting and type something fun and then click "SEND" -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-6.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_6.png) -After this is complete you should also get a transaction receipt that you can expand below to verify it was successful. \ No newline at end of file +After this is complete you should also get a transaction receipt that you can expand below to verify it was successful. diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-4_Setup The Graph.md b/docs/TheGraph-ScaffoldEth2/en/section-0/lesson-4_Setup The Graph.md similarity index 85% rename from docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-4_Setup The Graph.md rename to docs/TheGraph-ScaffoldEth2/en/section-0/lesson-4_Setup The Graph.md index 4d72de186..8d32bfe5f 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-4_Setup The Graph.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-0/lesson-4_Setup The Graph.md @@ -16,8 +16,8 @@ yarn clean-node yarn run-node ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson4-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_4_1.png) This will spin up all the containers for The Graph using docker-compose. You will know this is complete when it reads "Downloading latest blocks from Ethereum..." -> As stated before, be sure to keep this window open so that you can see any log output from Docker. ๐Ÿ”Ž \ No newline at end of file +> As stated before, be sure to keep this window open so that you can see any log output from Docker. ๐Ÿ”Ž diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-5_Deploy to localhost.md b/docs/TheGraph-ScaffoldEth2/en/section-0/lesson-5_Deploy to localhost.md similarity index 81% rename from docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-5_Deploy to localhost.md rename to docs/TheGraph-ScaffoldEth2/en/section-0/lesson-5_Deploy to localhost.md index 0a26a52c8..78e34d726 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-5_Deploy to localhost.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-0/lesson-5_Deploy to localhost.md @@ -2,7 +2,7 @@ ### โœ… Create and ship our Subgraph -Now we can open up a fourth window to finish setting up The Graph. ๐Ÿ˜… In this forth window we will create our local subgraph! +Now we can open up a fourth window to finish setting up The Graph. ๐Ÿ˜… In this forth window we will create our local subgraph! > Note: You will only need to do this once. @@ -10,7 +10,7 @@ Now we can open up a fourth window to finish setting up The Graph. ๐Ÿ˜… In this yarn local-create ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson5-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_5_1.png) > You should see some output stating your Subgraph has been created along with a log output on your graph-node inside docker. @@ -20,7 +20,7 @@ Next we will ship our subgraph! You will need to give your subgraph a version af yarn local-ship ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson5-2.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_5_2.png) > This command does the following all in oneโ€ฆ ๐Ÿš€๐Ÿš€๐Ÿš€ @@ -38,7 +38,7 @@ npm install -g ts-node If your subgraph deployment was successful it will look something like this: -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson5-3.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_5_3.png) You should get a build completed output along with the address of your Subgraph endpoint. @@ -49,4 +49,4 @@ Deployed to http://localhost:8000/subgraphs/name/scaffold-eth/your-contract/grap Subgraph endpoints: Queries (HTTP): http://localhost:8000/subgraphs/name/scaffold-eth/your-contract -``` \ No newline at end of file +``` diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-6_Test.md b/docs/TheGraph-ScaffoldEth2/en/section-0/lesson-6_Test.md similarity index 70% rename from docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-6_Test.md rename to docs/TheGraph-ScaffoldEth2/en/section-0/lesson-6_Test.md index 750c70ba0..aeec06e32 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-0/lesson-6_Test.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-0/lesson-6_Test.md @@ -22,8 +22,8 @@ Go ahead and head over to your subgraph endpoint and take a look! } ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson6-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_6_1.png) > If all is well and youโ€™ve sent a transaction to your smart contract then you will see a similar data output! -Next up we will dive into a bit more detail on how The Graph works so that as you start adding events to your smart contract you can start indexing and parsing the data you need for your front end application. \ No newline at end of file +Next up we will dive into a bit more detail on how The Graph works. As you start adding events to your smart contract, you can start indexing and parsing the data you need for your front end application. diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-1_Adding an event.md b/docs/TheGraph-ScaffoldEth2/en/section-1/lesson-1_Adding an event.md similarity index 76% rename from docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-1_Adding an event.md rename to docs/TheGraph-ScaffoldEth2/en/section-1/lesson-1_Adding an event.md index 3b25e738e..0200d837e 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-1_Adding an event.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-1/lesson-1_Adding an event.md @@ -20,9 +20,9 @@ Add the following new line of code. You can drop this event and function anywhere inside the contract, but best practice is to drop it below any modifiers or the constructor. -![](/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson1-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_1_1.png) -We can save our contract and then deploy those new changes. +We can save our contract and then deploy those new changes. > Pro tip, if you use the --reset flag you will ALWAYS get a fresh contract deployed, regardless of any updates to the source. @@ -32,10 +32,10 @@ yarn deploy --reset You should see the following output: -![](/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson1-2.png) +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_1_2.png) #### โœ… Test your new function -Navigate over to http://localhost:3000/debug and send vitalik.eth a message. +Navigate over to http://localhost:3000/debug and send vitalik.eth a message. -![](/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson1-3.png) +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_1_3.png) diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-2_Updating your subgraph.md b/docs/TheGraph-ScaffoldEth2/en/section-1/lesson-2_Updating your subgraph.md similarity index 89% rename from docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-2_Updating your subgraph.md rename to docs/TheGraph-ScaffoldEth2/en/section-1/lesson-2_Updating your subgraph.md index c2da5dadb..b12776238 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-2_Updating your subgraph.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-1/lesson-2_Updating your subgraph.md @@ -2,7 +2,7 @@ ### โœ… Update the GraphQL schema -After you add an event to your smart contract, you will need to first update the GraphQL schema to include the entities you want to store on your Graph node. If you want to catch up on entities here is a good link to the docs for that. +After you add an event to your smart contract, you will need to first update the GraphQL schema to include the entities you want to store on your Graph node. If you want to catch up on entities [here](https://thegraph.com/docs/en/developing/creating-a-subgraph/#defining-entities) is a good link to the docs for that. In the code below we will update the existing schema to a new naming convention that matches the event name. @@ -32,7 +32,7 @@ type SendMessage @entity(immutable: true) { ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_2_1.png) #### โœ… Update the Subgraph manifest @@ -54,7 +54,7 @@ entities: handler: handleSendMessage ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-2.png) +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_2_2.png) If you are following along, next you will need to copy over your new abi and regenerate the code. @@ -62,7 +62,7 @@ If you are following along, next you will need to copy over your new abi and reg yarn abi-copy && yarn codegen ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-3.png) +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_2_3.png) #### โœ… Update the mapping script @@ -122,8 +122,6 @@ export function handleSendMessage(event: SendMessageEvent): void { Your changes should be accepted inside of your editor without any linting errors. -![](/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-4.png) +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_2_4.png) After that is done, you are almost doneโ€ฆ time to ship it! - - diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-3_Deploy.md b/docs/TheGraph-ScaffoldEth2/en/section-1/lesson-3_Deploy.md similarity index 76% rename from docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-3_Deploy.md rename to docs/TheGraph-ScaffoldEth2/en/section-1/lesson-3_Deploy.md index e7ffd55b3..55870199b 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-3_Deploy.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-1/lesson-3_Deploy.md @@ -6,8 +6,8 @@ yarn local-ship ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson3-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_3_1.png) Be sure to add a new version number to your subgraph when it prompts you. This should be higher then the previous version. -Next we will test out the subgraph and make sure it is indexing correctly. \ No newline at end of file +Next we will test out the subgraph and make sure it is indexing correctly. diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-4_Test.md b/docs/TheGraph-ScaffoldEth2/en/section-1/lesson-4_Test.md similarity index 62% rename from docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-4_Test.md rename to docs/TheGraph-ScaffoldEth2/en/section-1/lesson-4_Test.md index 60894ee02..860969f1c 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-1/lesson-4_Test.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-1/lesson-4_Test.md @@ -1,4 +1,4 @@ -## Test +## Test ### โœ… Test your newly deployed Subgraph @@ -14,8 +14,8 @@ Next, lets see if our data is in The Graph. Here is an example query that shows } ``` -You should get a nice response like this: +You should get a nice response like this: -![](/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson4-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_4_1.png) -Data is such a beautiful thing huh? +Data is such a beautiful thing huh? diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-1_Install Metamask.md b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-1_Install Metamask.md similarity index 100% rename from docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-1_Install Metamask.md rename to docs/TheGraph-ScaffoldEth2/en/section-2/lesson-1_Install Metamask.md diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-2_Deployer account creation.md b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-2_Deployer account creation.md similarity index 77% rename from docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-2_Deployer account creation.md rename to docs/TheGraph-ScaffoldEth2/en/section-2/lesson-2_Deployer account creation.md index 3fe29d336..eb7c0bcea 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-2_Deployer account creation.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-2_Deployer account creation.md @@ -4,8 +4,9 @@ Next we want to take our smart contract and deploy it to a testnet! At the time this workshop was written, The Graph supports many testnets but for this example we will use sepolia. -If you need some testnet funds you can try the following faucets: -- +## If you need some testnet funds you can try the following faucets: + +[Ethereum Sepolia Faucet - Alchemy](https://sepoliafaucet.com/) #### โœ… Create a deployer account @@ -13,9 +14,10 @@ If you need some testnet funds you can try the following faucets: yarn run generate ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson2-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_2_1.png) You should see the following saved to your hardhats environment variable file + ``` ๐Ÿ‘› Generating new Wallet ๐Ÿ“„ Private Key saved to packages/hardhat/.env file @@ -27,30 +29,30 @@ You should see the following saved to your hardhats environment variable file yarn account ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson2-2.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_2_2.png) This should display your public address along with a fancy QR code. And balances?!? Woooowwwww that is slick! <3 ``` - โ–„โ–„โ–„โ–„โ–„โ–„โ–„ โ–„ โ–„ โ–„โ–„โ–„โ–„โ–„โ–„โ–„ โ–„โ–„โ–„โ–„โ–„โ–„โ–„ - โ–ˆ โ–„โ–„โ–„ โ–ˆ โ–ˆโ–€โ–€โ–„ โ–ˆโ–€โ–ˆโ–„ โ–„โ–„โ–ˆ โ–ˆ โ–„โ–„โ–„ โ–ˆ - โ–ˆ โ–ˆโ–ˆโ–ˆ โ–ˆ โ–„โ–„โ–ˆโ–ˆโ–€โ–„โ–ˆ โ–€ โ–ˆโ–ˆโ–ˆ โ–ˆ โ–ˆโ–ˆโ–ˆ โ–ˆ - โ–ˆโ–„โ–„โ–„โ–„โ–„โ–ˆ โ–„โ–€โ–„โ–€โ–„โ–€โ–„โ–€โ–„ โ–ˆ โ–„ โ–ˆโ–„โ–„โ–„โ–„โ–„โ–ˆ - โ–„ โ–„โ–„โ–„โ–„โ–„โ–„โ–€โ–ˆโ–„โ–€โ–„โ–ˆโ–„โ–„ โ–„โ–ˆโ–€โ–„ โ–„ โ–„โ–„โ–„ - โ–„โ–€โ–€โ–ˆ โ–ˆโ–„โ–ˆโ–ˆโ–€โ–€โ–€โ–€โ–„โ–ˆโ–€โ–€โ–„โ–ˆโ–„โ–ˆโ–ˆโ–€โ–„โ–„โ–ˆโ–€โ–ˆ - โ–€โ–„โ–„ โ–„โ–ˆโ–„โ–„โ–„โ–€ โ–ˆโ–€โ–„โ–€โ–€โ–„โ–„โ–ˆ โ–ˆโ–ˆโ–€โ–ˆ โ–„โ–€ - โ–„โ–ˆโ–€โ–€โ–ˆโ–ˆโ–„ โ–€โ–„ โ–ˆ โ–€ โ–€โ–ˆ โ–€โ–„โ–€โ–ˆโ–„โ–ˆโ–ˆโ–ˆ - โ–„โ–ˆโ–€โ–ˆโ–ˆ โ–„โ–„โ–„ โ–€ โ–„ โ–ˆโ–„โ–€โ–„โ–„ โ–ˆโ–ˆโ–„โ–€โ–„โ–€โ–„โ–ˆ - โ–ˆโ–„ โ–ˆโ–„ โ–„โ–ˆโ–„โ–ˆโ–„โ–€โ–€โ–€ โ–„โ–ˆโ–„โ–ˆโ–€โ–„ โ–ˆโ–€โ–€โ–„โ–„โ–€โ–„ - โ–ˆโ–ˆโ–ˆโ–„โ–ˆโ–€โ–„ โ–ˆ โ–€โ–„โ–ˆโ–€ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–„โ–ˆโ–€โ–ˆโ–„โ–„ - โ–„โ–„โ–„โ–„โ–„โ–„โ–„ โ–ˆโ–„ โ–ˆโ–„ โ–ˆโ–ˆโ–€ โ–ˆ โ–ˆ โ–„ โ–ˆ โ–ˆโ–ˆ - โ–ˆ โ–„โ–„โ–„ โ–ˆ โ–ˆ โ–€โ–ˆโ–ˆโ–„โ–ˆโ–ˆโ–€โ–€โ–„ โ–ˆโ–„โ–„โ–„โ–ˆโ–ˆโ–„โ–„ - โ–ˆ โ–ˆโ–ˆโ–ˆ โ–ˆ โ–€โ–„โ–€โ–„ โ–€โ–„โ–„ โ–„โ–ˆโ–€โ–€ โ–„โ–„โ–„โ–ˆโ–ˆโ–„โ–„ - โ–ˆโ–„โ–„โ–„โ–„โ–„โ–ˆ โ–„โ–ˆ โ–„โ–ˆ โ–„โ–€โ–„โ–ˆ โ–„โ–€ โ–„โ–„โ–„โ–€ โ–€ + โ–„โ–„โ–„โ–„โ–„โ–„โ–„ โ–„ โ–„ โ–„โ–„โ–„โ–„โ–„โ–„โ–„ โ–„โ–„โ–„โ–„โ–„โ–„โ–„ + โ–ˆ โ–„โ–„โ–„ โ–ˆ โ–ˆโ–€โ–€โ–„ โ–ˆโ–€โ–ˆโ–„ โ–„โ–„โ–ˆ โ–ˆ โ–„โ–„โ–„ โ–ˆ + โ–ˆ โ–ˆโ–ˆโ–ˆ โ–ˆ โ–„โ–„โ–ˆโ–ˆโ–€โ–„โ–ˆ โ–€ โ–ˆโ–ˆโ–ˆ โ–ˆ โ–ˆโ–ˆโ–ˆ โ–ˆ + โ–ˆโ–„โ–„โ–„โ–„โ–„โ–ˆ โ–„โ–€โ–„โ–€โ–„โ–€โ–„โ–€โ–„ โ–ˆ โ–„ โ–ˆโ–„โ–„โ–„โ–„โ–„โ–ˆ + โ–„ โ–„โ–„โ–„โ–„โ–„โ–„โ–€โ–ˆโ–„โ–€โ–„โ–ˆโ–„โ–„ โ–„โ–ˆโ–€โ–„ โ–„ โ–„โ–„โ–„ + โ–„โ–€โ–€โ–ˆ โ–ˆโ–„โ–ˆโ–ˆโ–€โ–€โ–€โ–€โ–„โ–ˆโ–€โ–€โ–„โ–ˆโ–„โ–ˆโ–ˆโ–€โ–„โ–„โ–ˆโ–€โ–ˆ + โ–€โ–„โ–„ โ–„โ–ˆโ–„โ–„โ–„โ–€ โ–ˆโ–€โ–„โ–€โ–€โ–„โ–„โ–ˆ โ–ˆโ–ˆโ–€โ–ˆ โ–„โ–€ + โ–„โ–ˆโ–€โ–€โ–ˆโ–ˆโ–„ โ–€โ–„ โ–ˆ โ–€ โ–€โ–ˆ โ–€โ–„โ–€โ–ˆโ–„โ–ˆโ–ˆโ–ˆ + โ–„โ–ˆโ–€โ–ˆโ–ˆ โ–„โ–„โ–„ โ–€ โ–„ โ–ˆโ–„โ–€โ–„โ–„ โ–ˆโ–ˆโ–„โ–€โ–„โ–€โ–„โ–ˆ + โ–ˆโ–„ โ–ˆโ–„ โ–„โ–ˆโ–„โ–ˆโ–„โ–€โ–€โ–€ โ–„โ–ˆโ–„โ–ˆโ–€โ–„ โ–ˆโ–€โ–€โ–„โ–„โ–€โ–„ + โ–ˆโ–ˆโ–ˆโ–„โ–ˆโ–€โ–„ โ–ˆ โ–€โ–„โ–ˆโ–€ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–„โ–ˆโ–€โ–ˆโ–„โ–„ + โ–„โ–„โ–„โ–„โ–„โ–„โ–„ โ–ˆโ–„ โ–ˆโ–„ โ–ˆโ–ˆโ–€ โ–ˆ โ–ˆ โ–„ โ–ˆ โ–ˆโ–ˆ + โ–ˆ โ–„โ–„โ–„ โ–ˆ โ–ˆ โ–€โ–ˆโ–ˆโ–„โ–ˆโ–ˆโ–€โ–€โ–„ โ–ˆโ–„โ–„โ–„โ–ˆโ–ˆโ–„โ–„ + โ–ˆ โ–ˆโ–ˆโ–ˆ โ–ˆ โ–€โ–„โ–€โ–„ โ–€โ–„โ–„ โ–„โ–ˆโ–€โ–€ โ–„โ–„โ–„โ–ˆโ–ˆโ–„โ–„ + โ–ˆโ–„โ–„โ–„โ–„โ–„โ–ˆ โ–„โ–ˆ โ–„โ–ˆ โ–„โ–€โ–„โ–ˆ โ–„โ–€ โ–„โ–„โ–„โ–€ โ–€ โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€ -Public address: 0x87f00B2c39F97CD00BC6d09777BC4327aCA39180 +Public address: 0x87f00B2c39F97CD00BC6d09777BC4327aCA39180 -- localhost -- ๐Ÿ“ก balance: 0 @@ -60,4 +62,4 @@ Public address: 0x87f00B2c39F97CD00BC6d09777BC4327aCA39180 Send over some testnet ETH from the chain of your choice. I would suggest sepolia as its fairly easy to get some testnet ETH from various sources. In the output below you can see I now have a sepolia balance. -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson2-3.png) \ No newline at end of file +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_2_3.png) diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-3_Deploy and verify.md b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-3_Deploy and verify.md similarity index 68% rename from docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-3_Deploy and verify.md rename to docs/TheGraph-ScaffoldEth2/en/section-2/lesson-3_Deploy and verify.md index 543299c0d..efbd4412e 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-3_Deploy and verify.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-3_Deploy and verify.md @@ -8,7 +8,7 @@ Now we can deploy to our testnet of choice... in this example we will deploy to yarn deploy --network sepolia ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson3-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_3_1.png) If all is well you should see the following success output. @@ -23,7 +23,7 @@ deploying "YourContract" (tx: 0xf404021d736271a7a0a84d124ed35250c533efe37c177536 yarn verify --network sepolia ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson3-2.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_3_2.png) You should see the following successful output... @@ -32,6 +32,5 @@ verifying YourContract (0x541D469C06990B7F0bd5103b57997cE8a39C050c) ... waiting for result... => contract YourContract is now verified ``` - - You can also check your contract was successfully on etherscan. [Here](https://sepolia.etherscan.io/address/0x541D469C06990B7F0bd5103b57997cE8a39C050c#code) is the one I deployed and verified. +You can also check your contract was successfully on etherscan. [Here](https://sepolia.etherscan.io/address/0x541D469C06990B7F0bd5103b57997cE8a39C050c#code) is the one I deployed and verified. diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-4_Subgraph Studio.md b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-4_Subgraph Studio.md similarity index 51% rename from docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-4_Subgraph Studio.md rename to docs/TheGraph-ScaffoldEth2/en/section-2/lesson-4_Subgraph Studio.md index 4eee20382..fd1cb4ced 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-4_Subgraph Studio.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-4_Subgraph Studio.md @@ -6,21 +6,20 @@ Now that our smart contract is on a public testnet it is time to push our Subgra #### โœ… Navigate to https://thegraph.com/studio -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio1.png) +![Studio1](/public/images/TheGraph-ScaffoldEth2/section-2/2_4_1.png) #### โœ… Connect your wallet -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio2.png) +![Studio2](/public/images/TheGraph-ScaffoldEth2/section-2/2_4_2.png) You might need to sign a request to verify that you own the connected wallet. -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio3.png) +![Studio3](/public/images/TheGraph-ScaffoldEth2/section-2/2_4_3.png) #### โœ… Click Create a Subgraph -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio4.png) +![Studio4](/public/images/TheGraph-ScaffoldEth2/section-2/2_4_4.png) #### โœ… Name your Subgraph -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio5.png) - +![Studio5](/public/images/TheGraph-ScaffoldEth2/section-2/2_4_5.png) diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-5_Graph CLI.md b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-5_Graph CLI.md similarity index 72% rename from docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-5_Graph CLI.md rename to docs/TheGraph-ScaffoldEth2/en/section-2/lesson-5_Graph CLI.md index a900da72c..4125d116f 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-5_Graph CLI.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-5_Graph CLI.md @@ -1,20 +1,20 @@ ## Graph CLI -### โœ… Deploy your subgraph using the CLI +### โœ… Deploy your subgraph using the CLI #### โœ… Use the Graph CLI to complete the deployment -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio6.png) +![Studio6](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_1.png) You can install the Graph CLI globally using the following command. ``` -yarn global add @graphprotocol/graph-cli +curl -LS https://cli.thegraph.com/install.sh | sudo sh ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_2.png) -#### โœ… Init your Subgraph +#### โœ… Init your Subgraph This can be done in a separate folder of your choosing, since it will initiate a yarn package. You will need to fill in the required configuration during the initialization process.The Start Block - Can be found on Etherescan if needed so you don't have to index the entire previous blocks. @@ -24,7 +24,7 @@ graph init --studio name_of_your_subgraph It should looks something like this... -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_3.png) #### โœ… Authenticate to Studio @@ -40,7 +40,7 @@ Success looks like this: Deploy key set for https://api.studio.thegraph.com/deploy/ ``` -#### โœ… Run codegen and build your subgraph +#### โœ… Run codegen and build your subgraph You will need to change into the directory where the subgraph was created in the previous step. @@ -51,7 +51,7 @@ graph codegen && graph build Success will look something like the following! -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5-3.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_4.png) #### โœ… Deploy @@ -63,13 +63,13 @@ graph deploy --studio name_of_your_subgraph Choose a version and fire away! -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5-4.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_5.png) It might take up to 5 minutes for you subgraph to deploy to the studio. Once it has been deployed, you can check that is fully syncing and has no errors. A successful deploy will look like the following. -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio7.png) +![Studio7](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_6.png) -#### โœ… Send a transaction and verify in Subgraph Playground +#### โœ… Send a transaction and verify in Subgraph Playground On Etherscan you can send a transaction directly to your contract on the Contract -> Write Contract tab. @@ -86,7 +86,7 @@ Our Query: } ``` -Our data object response: +Our data object response: ``` { @@ -102,4 +102,3 @@ Our data object response: } } ``` - diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-6_Frontend.md b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-6_Frontend.md similarity index 71% rename from docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-6_Frontend.md rename to docs/TheGraph-ScaffoldEth2/en/section-2/lesson-6_Frontend.md index 43b594232..a7f1f1405 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-6_Frontend.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-6_Frontend.md @@ -16,45 +16,45 @@ Update the configuration to point to the testnet that you deployed to in previou It should look like this when changed: -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-1.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_1.png) Once you change this you can go back to scaffold-ETH and refresh the UI. You will get kicked from your burner wallet, you will want to connect to the testnet work using your metamask wallet. Click "CONNECT WALLET"... -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-2.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_2.png) Choose Metamask... -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-3.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_3.png) Switch the network... -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-4.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_4.png) -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-5.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_5.png) Once complete you should now be connected to your dapp on sepolia network. -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-6.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_6.png) -#### โœ… Fire off a test message to someone you know! (or Vitalik heh) +#### โœ… Fire off a test message to someone you know! ๏ผˆor Vitalik heh๏ผ‰ We now want to send an event on the testnet that we have deployed our smart contract. We can do that fairly easily now that our frontend is properly configured. -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-7.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_7.png) -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-8.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_8.png) Then check to see if the message was indexed successfully in the studio. You can find the GraphiQL explorer on the "Playground" page. -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-9.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_9.png) #### โœ… Update our GraphQL URL to point to our development endpoint The development endpoint for your subgraph can be found on the details tab in Subgraph Studio. -> Edit _app.tsx located in packages/nextjs/pages +> Edit \_app.tsx located in packages/nextjs/pages ``` const subgraphUri = "https://api.studio.thegraph.com/query/51078/sendmessage-test/version/latest"; @@ -64,9 +64,9 @@ The development endpoint for your subgraph can be found on the details tab in Su }); ``` -The change will look something like this: +The change will look something like this: -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-10.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_10.png) #### โœ… Start with a clean slate in your index.ts file @@ -96,9 +96,9 @@ export default Home; After your change the home directory will look something like this: -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-11.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_11.png) -#### โœ… Display our messages in a table format +#### โœ… Display our messages in a table format Lastly a table to display our messages. @@ -144,12 +144,20 @@ And then load the data like so... ``` const { loading, error, data: messagesData } = useQuery(GET_MESSAGES); - const messages = messagesData?.sendMessages || []; + const messages = messagesData?.sendMessages || []; ``` -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-13.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_13.png) -We can then make this a bit prettier and use the
component instead of just plain text. +We can then make this a bit prettier and use the `
` component instead of just plain text. + +First, import the Address component. + +``` +import { Address } from "~~/components/scaffold-eth"; +``` + +Then, update the table to display the message as follows. ``` @@ -161,6 +169,6 @@ We can then make this a bit prettier and use the
component instead of This will look a lot nicer than those long strings! :D -![](/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-14.png) +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_14.png) > Note: If you want to see the full complete file you can do so [here](https://gist.github.com/kmjones1979/26ef9633b61b17f237e88eb41bb688de)! diff --git a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-7_Ship your frontend.md b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-7_Ship your frontend.md similarity index 97% rename from docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-7_Ship your frontend.md rename to docs/TheGraph-ScaffoldEth2/en/section-2/lesson-7_Ship your frontend.md index 62ec06011..37b94f2ad 100644 --- a/docs/The_Graph-SE2-Subgraph-package/en/section-2/lesson-7_Ship your frontend.md +++ b/docs/TheGraph-ScaffoldEth2/en/section-2/lesson-7_Ship your frontend.md @@ -18,7 +18,7 @@ Vercel CLI 28.20.0 y ? Which scope do you want to deploy to? myscope ? Link to existing project? [y/N] n -? Whatโ€™s your projectโ€™s name? sendMessage +? Whatโ€™s your projectโ€™s name? sendmessage ? In which directory is your code located? ./ Local settings detected in vercel.json: Auto-detected Project Settings (Next.js): diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-1_\343\202\263\343\203\274\343\202\271\343\201\256\347\264\271\344\273\213.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-1_\343\202\263\343\203\274\343\202\271\343\201\256\347\264\271\344\273\213.md" new file mode 100644 index 000000000..3153ed171 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-1_\343\202\263\343\203\274\343\202\271\343\201\256\347\264\271\344\273\213.md" @@ -0,0 +1,79 @@ +## ใฏใ˜ใ‚ใซ + +### ๐ŸŽ‰ ใ‚ณใƒผใ‚นใฎ็ดนไป‹ + +ใ“ใฎใƒฏใƒผใ‚ฏใ‚ทใƒงใƒƒใƒ—ใฏใ€Scaffold-ETH 2ใจThe Graphใ‚’ไธญๅฟƒใซๆง‹็ฏ‰ใ•ใ‚Œใฆใ„ใพใ™ใ€‚ไปฅไธ‹ใฎๅ†…ๅฎนใ‚’ๅญฆใณใพใ™๏ผš + +1. Scaffold-ETH 2ใจThe Graphใ‚’ไฝฟ็”จใ—ใฆใ€dappใฎ้–‹็™บ็’ฐๅขƒใ‚’ใ‚ปใƒƒใƒˆใ‚ขใƒƒใƒ—ใ™ใ‚‹ๆ–นๆณ• +2. ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใฎๆ›ดๆ–ฐใจใƒ‡ใƒ—ใƒญใ‚คใ‚’ใ™ใ‚‹ๆ–นๆณ• +3. The Graphใซใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใ‚’ไฝœๆˆใ—ใฆใƒ‡ใƒ—ใƒญใ‚คใ™ใ‚‹ๆ–นๆณ• +4. ใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ใ‚’็ทจ้›†ใ—ใฆใ€ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใจใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎไธกๆ–นใจใ‚„ใ‚Šๅ–ใ‚Šใ™ใ‚‹ๆ–นๆณ• + +### ๐Ÿ— Scaffold-ETH 2 ใจใฏ ๐Ÿ— + +๐Ÿงช ใ‚คใƒผใ‚ตใƒชใ‚ขใƒ ใƒ–ใƒญใƒƒใ‚ฏใƒใ‚งใƒผใƒณไธŠใงๅˆ†ๆ•ฃๅž‹ใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณ๏ผˆdApps๏ผ‰ใ‚’ๆง‹็ฏ‰ใ™ใ‚‹ใŸใ‚ใฎใ‚ชใƒผใƒ—ใƒณใ‚ฝใƒผใ‚นใฎๆœ€ๆ–ฐใƒ„ใƒผใƒซใ‚ญใƒƒใƒˆใงใ™ใ€‚้–‹็™บ่€…ใซใจใฃใฆใ€ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใฎไฝœๆˆใƒปใƒ‡ใƒ—ใƒญใ‚คใ€ใŠใ‚ˆใณใใ‚Œใ‚‰ใฎใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใจใ‚„ใ‚Šๅ–ใ‚Šใ‚’่กŒใ†ใƒฆใƒผใ‚ถใƒผใ‚คใƒณใ‚ฟใƒ•ใ‚งใƒผใ‚นใฎๆง‹็ฏ‰ใŒใ‚ˆใ‚Š็ฐกๅ˜ใซ่กŒใˆใ‚‹ใ“ใจใ‚’็›ฎ็š„ใจใ—ใฆใ„ใพใ™ใ€‚ + +โš™๏ธ NextJSใ€RainbowKitใ€Hardhatใ€Wagmiใ€Typescriptใ‚’ไฝฟ็”จใ—ใฆๆง‹็ฏ‰ใ•ใ‚Œใฆใ„ใพใ™ใ€‚ + +- โœ… **ใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใฎใƒ›ใƒƒใƒˆใƒชใƒญใƒผใƒ‰**: ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใ‚’็ทจ้›†ใ™ใ‚‹ใจใ€ใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ใŒ่‡ชๅ‹•็š„ใซใใ‚Œใซ้ฉๅฟœใ—ใพใ™ใ€‚ +- ๐Ÿ”ฅ **ใƒใƒผใƒŠใƒผใ‚ฆใ‚ฉใƒฌใƒƒใƒˆ๏ผ†ใƒญใƒผใ‚ซใƒซใƒ•ใ‚ฉใƒผใ‚ปใƒƒใƒˆ**: ใƒใƒผใƒŠใƒผใ‚ฆใ‚ฉใƒฌใƒƒใƒˆใจใƒญใƒผใ‚ซใƒซใƒ•ใ‚ฉใƒผใ‚ปใƒƒใƒˆใ‚’ไฝฟ็”จใ—ใฆใ€ใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณใ‚’็ด ๆ—ฉใใƒ†ใ‚นใƒˆใ—ใพใ™ใ€‚ +- ๐Ÿ” **ใ‚ฆใ‚ฉใƒฌใƒƒใƒˆใƒ—ใƒญใƒใ‚คใƒ€ใƒผใจใฎ็ตฑๅˆ**: ็•ฐใชใ‚‹ใ‚ฆใ‚ฉใƒฌใƒƒใƒˆใƒ—ใƒญใƒใ‚คใƒ€ใƒผใซๆŽฅ็ถšใ—ใ€Ethereumใƒใƒƒใƒˆใƒฏใƒผใ‚ฏใจใ‚„ใ‚Šๅ–ใ‚Šใ—ใพใ™ใ€‚ + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_1_1.png) + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_1_2.png) + +![](/public/images/TheGraph-ScaffoldEth2/section-0/L0_1_3.png) + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_1_4.png) + +Scaffold-ETHใซใคใ„ใฆใ‚‚ใฃใจ็Ÿฅใ‚ŠใŸใ„ๅ ดๅˆใฏใ€[Github ใƒชใƒใ‚ธใƒˆใƒช](https://github.com/scaffold-eth/scaffold-eth-2) ใ‚„ [Scaffoldeth.io](https://scaffoldeth.io) ใ‚’ใ”่ฆงใใ ใ•ใ„ใ€‚ + +### ๐Ÿง‘๐Ÿผโ€๐Ÿš€ The Graph ใจใฏ๏ผŸ + +[The Graph](https://thegraph.com/) ใฏใ€GraphQLใ‚’ไฝฟ็”จใ—ใฆEthereumใจIPFSไธŠใงdAppใ‚’็ด ๆ—ฉใๆง‹็ฏ‰ใ™ใ‚‹ใŸใ‚ใฎใƒ—ใƒญใƒˆใ‚ณใƒซใงใ™ใ€‚ + +- ๐Ÿ—ƒ๏ธ **ๅˆ†ๆ•ฃๅž‹ใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚นไฝœๆˆ**: The Graphใฏใ€ๅŠน็Ž‡็š„ใซใƒ–ใƒญใƒƒใ‚ฏใƒใ‚งใƒผใƒณใƒ‡ใƒผใ‚ฟใ‚’ใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚นๅŒ–ใƒปๆ•ด็†ใ™ใ‚‹ใŸใ‚ใฎใ‚ชใƒผใƒ—ใƒณAPI๏ผˆใ€Œใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใ€๏ผ‰ใ‚’ๅฏ่ƒฝใซใ—ใพใ™ใ€‚ +- ๐Ÿ”Ž **ๅŠน็Ž‡็š„ใชใ‚ฏใ‚จใƒช**: ใƒ—ใƒญใƒˆใ‚ณใƒซใฏใ€GraphQLใ‚’ไฝฟ็”จใ—ใฆใƒ–ใƒญใƒƒใ‚ฏใƒใ‚งใƒผใƒณใƒ‡ใƒผใ‚ฟใ‚’ๅŠน็Ž‡็š„ใซใ‚ฏใ‚จใƒชใงใใพใ™ใ€‚ +- ๐Ÿ™Œ **ใ‚ณใƒŸใƒฅใƒ‹ใƒ†ใ‚ฃใ‚จใ‚ณใ‚ทใ‚นใƒ†ใƒ **: The Graphใฏใ€้–‹็™บ่€…ใŒใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใ‚’ๆง‹็ฏ‰ใƒปใƒ‡ใƒ—ใƒญใ‚คใƒปๅ…ฑๆœ‰ใงใใ‚‹ใ“ใจใงใ€ใ‚ณใƒฉใƒœใƒฌใƒผใ‚ทใƒงใƒณใ‚’ไฟƒ้€ฒใ—ใพใ™๏ผ + +่ฉณใ—ใ„ๆ‰‹้ †ใจ่ƒŒๆ™ฏใซใคใ„ใฆใฏใ€[Getting Started Guide](https://thegraph.com/docs/en/cookbook/quick-start) ใ‚’ใ”่ฆงใใ ใ•ใ„ใ€‚ + +### ๐Ÿงฑ ไฝ•ใ‚’ๆง‹็ฏ‰ใ™ใ‚‹ใฎใ‹ + +ใ‚คใƒ™ใƒณใƒˆใƒ‡ใƒผใ‚ฟใฎใƒ‡ใƒผใ‚ฟใ‚นใƒˆใƒฌใƒผใ‚ธใซThe Graphใƒ—ใƒญใƒˆใ‚ณใƒซใ‚’ๅˆฉ็”จใ™ใ‚‹ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใจใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ใ‚’ๆง‹็ฏ‰ใ—ใพใ™ใ€‚ + +https://sendmessage-tau.vercel.app + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_1_5.png) + +### ๐ŸŒ ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใ‚’ใ‚ขใƒƒใƒ—ใ‚ฐใƒฌใƒผใƒ‰ใ™ใ‚‹ + +ใ“ใฎๅญฆ็ฟ’ใ‚ณใƒณใƒ†ใƒณใƒ„ใฏใ€[UNCHAIN License](https://github.com/unchain-dev/UNCHAIN-projects/blob/main/LICENSE) ใฎใ‚‚ใจใง้‹็”จใ•ใ‚Œใฆใ„ใพใ™ใ€‚ + +ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใซๅ‚ๅŠ ใ—ใฆใ„ใฆใ€ใ€Œใ“ใ†ใ™ใ‚Œใฐใ‚‚ใฃใจๅˆ†ใ‹ใ‚Šใ‚„ใ™ใ„ใฎใซ!ใ€ใ€Œใ“ใ‚Œใฏ้–“้•ใฃใฆใ„ใ‚‹!ใ€ใจๆ€ใฃใŸใ‚‰ใ€ใœใฒ`pull request`ใ‚’้€ใฃใฆใใ ใ•ใ„ใ€‚ + +GitHubใ‹ใ‚‰็›ดๆŽฅใ‚ณใƒผใƒ‰ใ‚’็ทจ้›†ใ—ใฆ็›ดๆŽฅ`pull request`ใ‚’้€ใ‚‹ๆ–นๆณ•ใฏใ€[ใ“ใกใ‚‰](https://docs.github.com/ja/repositories/working-with-files/managing-files/editing-files#editing-files-in-another-users-repository)ใ‚’ๅ‚็…งใ—ใฆใใ ใ•ใ„ใ€‚ + +ใฉใ‚“ใชใƒชใ‚ฏใ‚จใ‚นใƒˆใงใ‚‚ๅคงๆญ“่ฟŽใงใ™ ๐ŸŽ‰ + +ใพใŸใ€ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใ‚’่‡ชๅˆ†ใฎGitHubใ‚ขใ‚ซใ‚ฆใƒณใƒˆใซ`Fork`ใ—ใฆใ€ไธญ่บซใ‚’็ทจ้›†ใ—ใฆใ‹ใ‚‰`pull request`ใ‚’้€ใ‚‹ใ“ใจใ‚‚ใงใใพใ™ใ€‚ + +- ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใ‚’`Fork`ใ™ใ‚‹ๆ–นๆณ•ใฏใ€[ใ“ใกใ‚‰](https://docs.github.com/ja/get-started/quickstart/fork-a-repo) ใ‚’ๅ‚็…งใ—ใฆใใ ใ•ใ„ใ€‚ +- `Fork`ใ‹ใ‚‰`pull request`ใ‚’ไฝœๆˆใ™ใ‚‹ๆ–นๆณ•ใฏใ€[ใ“ใกใ‚‰](https://docs.github.com/ja/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork) ใงใ™ใ€‚ + +**๐Ÿ‘‹ `UNCHAIN-projects`ใซ`pull request`ใ‚’้€ใ‚‹! โฉ [UNCHAIN ใฎ GitHub](https://github.com/shiftbase-xyz/UNCHAIN-projects) ใซใ‚ขใ‚ฏใ‚ปใ‚น!** + +### โšก๏ธ `Issue`ใ‚’ไฝœๆˆใ™ใ‚‹ + +`pull request`้€ใ‚‹ใปใฉใงใ‚‚ใชใ„ใ‘ใฉใ€ๆๆกˆใ‚’ๆฎ‹ใ—ใŸใ„!ใ€€ใจๆ€ใฃใŸใ‚‰ใ€[ใ“ใกใ‚‰](https://github.com/unchain-tech/UNCHAIN-projects/issues) ใซ`Issue`ใ‚’ไฝœๆˆใ—ใฆใฟใพใ—ใ‚‡ใ†ใ€‚ + +`Issue`ใฎไฝœๆˆๆ–นๆณ•ใซ้–ขใ—ใฆใฏใ€[ใ“ใกใ‚‰](https://docs.github.com/ja/issues/tracking-your-work-with-issues/creating-an-issue)ใ‚’ๅ‚็…งใ—ใฆใใ ใ•ใ„ใ€‚ + +`pull request`ใ‚„`issue`ใฎไฝœๆˆใฏใ€ๅฎŸ้š›ใซใƒใƒผใƒ ใง้–‹็™บใ‚’่กŒใ†้š›ใซ้‡่ฆใชไฝœๆฅญใซใชใ‚‹ใฎใงใ€ใœใฒใƒˆใƒฉใ‚คใ—ใฆใฟใฆใใ ใ•ใ„ใ€‚ + +UNCHAINใฎใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใ‚’ใฟใ‚“ใชใงใ‚ˆใ‚Š่‰ฏใ„ใ‚‚ใฎใซใ—ใฆใ„ใใพใ—ใ‚‡ใ† โœจ + +### ๐Ÿ™‹โ€โ™‚๏ธ ่ณชๅ•ใ™ใ‚‹ + +ใ“ใ“ใพใงไฝ•ใ‹ใ‚ใ‹ใ‚‰ใชใ„ใ“ใจใŒใ‚ใ‚‹ๅ ดๅˆใฏใ€Discordใฎ`#thegraph`ใง่ณชๅ•ใ‚’ใ—ใฆใใ ใ•ใ„ใ€‚ diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-2_\345\277\205\350\246\201\346\235\241\344\273\266.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-2_\345\277\205\350\246\201\346\235\241\344\273\266.md" new file mode 100644 index 000000000..fe45953b7 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-2_\345\277\205\350\246\201\346\235\241\344\273\266.md" @@ -0,0 +1,11 @@ +## ๅฟ…่ฆๆกไปถ + +### โœ… ๅฟ…่ฆใชใ‚‚ใฎ + +ๅง‹ใ‚ใ‚‹ๅ‰ใซใ€ไปฅไธ‹ใฎใƒ„ใƒผใƒซใ‚’ใ‚คใƒณใ‚นใƒˆใƒผใƒซใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™๏ผš + +- [Node.js](https://nodejs.org/en/download/) +- Yarn ([v1](https://classic.yarnpkg.com/en/docs/install/) ใพใŸใฏ [v2+](https://yarnpkg.com/getting-started/install)) +- [Git](https://git-scm.com/downloads) +- [Docker](https://docs.docker.com/get-docker/) + diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-3_Scaffold-ETH 2\343\201\256\343\202\273\343\203\203\343\203\210\343\202\242\343\203\203\343\203\227.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-3_Scaffold-ETH 2\343\201\256\343\202\273\343\203\203\343\203\210\343\202\242\343\203\203\343\203\227.md" new file mode 100644 index 000000000..f549879b9 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-3_Scaffold-ETH 2\343\201\256\343\202\273\343\203\203\343\203\210\343\202\242\343\203\203\343\203\227.md" @@ -0,0 +1,64 @@ +## Scaffold-ETH 2 ใฎใ‚ปใƒƒใƒˆใ‚ขใƒƒใƒ— + +### ๐Ÿ–ฅ๏ธ ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใƒ‘ใƒƒใ‚ฑใƒผใ‚ธใฎใ‚ปใƒƒใƒˆใ‚ขใƒƒใƒ— + +ใพใšใ€Edge and NodeใฎSimonใŒไฝœๆˆใ—ใŸScaffold-ETH 2ใฎ็‰นๅˆฅใชใƒ“ใƒซใƒ‰ใ‚’ไฝฟใฃใฆๅง‹ใ‚ใพใ—ใ‚‡ใ†ใ€‚ใ‚ใ‚ŠใŒใจใ†ใ€Simon! ๐Ÿซก + +Scaffold-ETH 2ใจThe Graphใ‚’ใ‚ปใƒƒใƒˆใ‚ขใƒƒใƒ—ใ™ใ‚‹ใŸใ‚ใซใ€ๅˆ่จˆ4ใคใฎ็•ฐใชใ‚‹ใ‚ฆใ‚ฃใƒณใƒ‰ใ‚ฆใŒๅฟ…่ฆใซใชใ‚Šใพใ™ใ€‚ + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_1.png) + +``` +git clone -b subgraph-package \ + https://github.com/scaffold-eth/scaffold-eth-2.git \ + scaffold-eth-2-subgraph-package +``` + +ใ“ใ‚Œใ‚’ใ‚ใชใŸใฎใƒžใ‚ทใƒณใซใƒใ‚งใƒƒใ‚ฏใ‚ขใ‚ฆใƒˆใ—ใŸใ‚‰ใ€ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒˆใƒชใซ็งปๅ‹•ใ—ใ€yarnใ‚’ไฝฟ็”จใ—ใฆใ™ในใฆใฎไพๅญ˜้–ขไฟ‚ใ‚’ใ‚คใƒณใ‚นใƒˆใƒผใƒซใ—ใพใ™ใ€‚ + +``` +cd scaffold-eth-2-subgraph-package && \ + yarn install +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_2.png) + +ๆฌกใซใ€ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใ‚’ใƒ‡ใƒ—ใƒญใ‚คใ—ใฆใƒ†ใ‚นใƒˆใ™ใ‚‹ใŸใ‚ใซใ€ใƒญใƒผใ‚ซใƒซใƒ–ใƒญใƒƒใ‚ฏใƒใ‚งใƒผใƒณใ‚’่ตทๅ‹•ใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚Scaffold-ETH 2ใฏใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใงHardhatใ‚’ไฝฟ็”จใ—ใฆใ„ใพใ™ใ€‚ใƒใ‚งใƒผใƒณใ‚’่ตทๅ‹•ใ™ใ‚‹ใซใฏใ€ๆฌกใฎyarnใ‚ณใƒžใƒณใƒ‰ใ‚’ๅ…ฅๅŠ›ใ—ใพใ™ใ€‚ + +``` +yarn chain +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_3.png) + +> ใ“ใฎใ‚ฆใ‚ฃใƒณใƒ‰ใ‚ฆใ‚’้–‹ใ„ใŸใพใพใซใ—ใฆใŠใใจใ€hardhat ใ‚ณใƒณใ‚ฝใƒผใƒซใ‹ใ‚‰ใฎๅ‡บๅŠ›ใ‚’็ขบ่ชใงใใพใ™ใ€‚๐Ÿ–ฅ๏ธ + +ๆฌกใซใ€ใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณใ‚’่ตทๅ‹•ใ—ใพใ™ใ€‚Scaffold-ETH 2ใฏใƒ‡ใƒ•ใ‚ฉใƒซใƒˆใงNextJSใ‚’ไฝฟ็”จใ—ใฆใŠใ‚Šใ€ๅ˜็ด”ใชyarnใ‚ณใƒžใƒณใƒ‰ใง่ตทๅ‹•ใ™ใ‚‹ใ“ใจใ‚‚ใงใใพใ™ใ€‚ๆ–ฐใ—ใ„ใ‚ณใƒžใƒณใƒ‰ใƒฉใ‚คใƒณใ‚’้–‹ใใ€ๆฌกใฎใ‚ณใƒžใƒณใƒ‰ใ‚’ๅ…ฅๅŠ›ใ—ใพใ™ใ€‚ + +``` +yarn start +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_4.png) + +> ใ“ใฎใ‚ฆใ‚ฃใƒณใƒ‰ใ‚ฆใ‚‚ๅธธใซ้–‹ใ„ใฆใŠใใจใ€NextJS ใซๅŠ ใˆใŸใ‚ณใƒผใƒ‰ๅค‰ๆ›ดใฎใƒ‡ใƒใƒƒใ‚ฐใ€ใƒ‘ใƒ•ใ‚ฉใƒผใƒžใƒณใ‚นใฎใƒใ‚งใƒƒใ‚ฏใ€ใพใŸใฏใ‚ตใƒผใƒใƒผใŒ้ฉๅˆ‡ใซๅ‹•ไฝœใ—ใฆใ„ใ‚‹ใ‹ใ‚’็ขบ่ชใงใใพใ™ใ€‚ + +ๆฌกใซใ€ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใ‚’ใƒ‡ใƒ—ใƒญใ‚คใ™ใ‚‹ใŸใ‚ใฎ็ฌฌไธ‰ใฎใ‚ฆใ‚ฃใƒณใƒ‰ใ‚ฆใ‚’้–‹ใใพใ™ใ€‚Scaffold-ETHใซใฏไป–ใซใ‚‚ไพฟๅˆฉใชใ‚ณใƒžใƒณใƒ‰ใŒใ‚ใ‚Šใพใ™ใ€‚ใƒ‡ใƒ—ใƒญใ‚คใ‚’่กŒใ†ใซใฏใ€ๅ˜ใซไปฅไธ‹ใ‚’ๅฎŸ่กŒใ—ใพใ™โ€ฆ + +``` +yarn deploy +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_5.png) + +> ใƒ‡ใƒ—ใƒญใ‚คใซใ‹ใ‹ใฃใŸใ‚ฌใ‚นใฎ้‡ใจๅ…ฑใซใ€ใƒˆใƒฉใƒณใ‚ถใ‚ฏใ‚ทใƒงใƒณใจใ‚ขใƒ‰ใƒฌใ‚นใŒ่กจ็คบใ•ใ‚Œใ‚‹ใฏใšใงใ™ใ€‚โ›ฝ + +http://localhost:3000 ใซใ‚ขใ‚ฏใ‚ปใ‚นใ™ใ‚‹ใจใ€NextJSใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณใŒ่กจ็คบใ•ใ‚Œใพใ™ใ€‚Scaffold-ETH 2ใฎใƒกใƒ‹ใƒฅใƒผใ‚„ๆฉŸ่ƒฝใ‚’ๆŽข็ดขใ—ใฆใฟใพใ—ใ‚‡ใ†๏ผ ็ทŠๆ€ฅไบ‹ๆ…‹ใงใ™ใญใ€ใ“ใ‚Œใฏใ™ใ”ใ„๏ผ ๐Ÿ”ฅ + +setGreeting้–ขๆ•ฐใซใ‚ขใƒƒใƒ—ใƒ‡ใƒผใƒˆใ‚’้€ไฟกใ—ใฆใƒ†ใ‚นใƒˆใ™ใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚ใ“ใ‚Œใ‚’่กŒใ†ใซใฏใ€ๅณไธŠใฎใƒใƒผใƒŠใƒผใ‚ฆใ‚ฉใƒฌใƒƒใƒˆใ‚ขใƒ‰ใƒฌใ‚นใฎ้šฃใซใ‚ใ‚‹็พ้‡‘ใ‚ขใ‚คใ‚ณใƒณใ‚’ใ‚ฏใƒชใƒƒใ‚ฏใ—ใฆใ‚ฌใ‚นใ‚’ๅ…ฅๆ‰‹ใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚ใ“ใ‚Œใซใ‚ˆใ‚Šใ€ใƒ•ใ‚ฉใƒผใ‚ปใƒƒใƒˆใ‹ใ‚‰1 ETHใŒ้€ใ‚‰ใ‚Œใพใ™ใ€‚ + +ๆฌกใซใ€ใ€ŒDebug Contractsใ€ใซ็งปๅ‹•ใ—ใ€setGreetingใฎไธ‹ใฎๆ–‡ๅญ—ๅˆ—ใƒ•ใ‚ฃใƒผใƒซใƒ‰ใ‚’ใ‚ฏใƒชใƒƒใ‚ฏใ—ใฆใŠๅฅฝใใชๆ–‡ๅญ—ใ‚’ๅ…ฅๅŠ›ใ—ใ€ใ€ŒSENDใ€ใ‚’ใ‚ฏใƒชใƒƒใ‚ฏใ—ใพใ™ใ€‚ + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_3_6.png) + +ใ“ใ‚ŒใŒๅฎŒไบ†ใ™ใ‚‹ใจใ€ๆˆๅŠŸใ—ใŸใ“ใจใ‚’็ขบ่ชใ™ใ‚‹ใŸใ‚ใซๅฑ•้–‹ใงใใ‚‹Transaction ReceiptใŒ่กจ็คบใ•ใ‚Œใพใ™ใ€‚ diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-4_The Graph\343\201\256\343\202\273\343\203\203\343\203\210\343\202\242\343\203\203\343\203\227.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-4_The Graph\343\201\256\343\202\273\343\203\203\343\203\210\343\202\242\343\203\203\343\203\227.md" new file mode 100644 index 000000000..17eb27064 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-4_The Graph\343\201\256\343\202\273\343\203\203\343\203\210\343\202\242\343\203\203\343\203\227.md" @@ -0,0 +1,23 @@ +## The Graph ใฎใ‚ปใƒƒใƒˆใ‚ขใƒƒใƒ—๏ผˆDocker๏ผ‰ + +### ๐Ÿš€ The Graph ็ตฑๅˆใฎใ‚ปใƒƒใƒˆใ‚ขใƒƒใƒ— + +ใƒ–ใƒญใƒƒใ‚ฏใƒใ‚งใƒผใƒณใ‚’่ตทๅ‹•ใ—ใ€ใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณใ‚’ๅง‹ๅ‹•ใ—ใ€ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใ‚’ใƒ‡ใƒ—ใƒญใ‚คใ—ใŸใฎใงใ€ๆฌกใฏใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใ‚’่จญๅฎšใ—ใ€The Graphใ‚’ๅˆฉ็”จใ—ใพใ—ใ‚‡ใ†๏ผ + +ใพใšใ€ๅคใ„ใƒ‡ใƒผใ‚ฟใ‚’ใ‚ฏใƒชใ‚ขใ™ใ‚‹ใŸใ‚ใซไปฅไธ‹ใฎใ‚ณใƒžใƒณใƒ‰ใ‚’ๅฎŸ่กŒใ—ใพใ™ใ€‚ใ™ในใฆใ‚’ใƒชใ‚ปใƒƒใƒˆใ—ใŸใ„ๅ ดๅˆใซใ“ใ‚Œใ‚’่กŒใฃใฆใใ ใ•ใ„ใ€‚ + +``` +yarn clean-node +``` + +> ใ“ใ‚Œใงใ‚ฐใƒฉใƒ•ใƒŽใƒผใƒ‰ใ‚’่ตทๅ‹•ใ™ใ‚‹ๆบ–ๅ‚™ใŒใงใใพใ—ใŸใ€‚ไปฅไธ‹ใฎใ‚ณใƒžใƒณใƒ‰ใ‚’ๅฎŸ่กŒใ—ใพใ—ใ‚‡ใ†โ€ฆ ๐Ÿง‘โ€๐Ÿš€ + +``` +yarn run-node +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_4_1.png) + +ใ“ใ‚Œใซใ‚ˆใ‚Šใ€docker-composeใ‚’ไฝฟ็”จใ—ใฆThe Graphใฎใ™ในใฆใฎใ‚ณใƒณใƒ†ใƒŠใŒ่ตทๅ‹•ใ—ใพใ™ใ€‚"Downloading latest blocks from Ethereum..."ใจ่กจ็คบใ•ใ‚ŒใŸใ‚‰ใ€ๅฎŒไบ†ใงใ™ใ€‚ + +> ๅ‰่ฟฐใฎ้€šใ‚Šใ€Docker ใ‹ใ‚‰ใฎใƒญใ‚ฐๅ‡บๅŠ›ใ‚’็ขบ่ชใ™ใ‚‹ใŸใ‚ใซใ“ใฎใ‚ฆใ‚ฃใƒณใƒ‰ใ‚ฆใ‚’้–‹ใ„ใŸใพใพใซใ—ใฆใŠใ„ใฆใใ ใ•ใ„ใ€‚๐Ÿ”Ž diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-5_\343\203\255\343\203\274\343\202\253\343\203\253\343\203\233\343\202\271\343\203\210\343\201\253\343\203\207\343\203\227\343\203\255\343\202\244\343\201\231\343\202\213.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-5_\343\203\255\343\203\274\343\202\253\343\203\253\343\203\233\343\202\271\343\203\210\343\201\253\343\203\207\343\203\227\343\203\255\343\202\244\343\201\231\343\202\213.md" new file mode 100644 index 000000000..54f745fb7 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-5_\343\203\255\343\203\274\343\202\253\343\203\253\343\203\233\343\202\271\343\203\210\343\201\253\343\203\207\343\203\227\343\203\255\343\202\244\343\201\231\343\202\213.md" @@ -0,0 +1,52 @@ +## ใƒ‡ใƒ—ใƒญใ‚ค + +### โœ… ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎไฝœๆˆใจๅ…ฌ้–‹ + +ใ“ใ‚Œใงใ€The Graphใฎ่จญๅฎšใ‚’ๅฎŒไบ†ใ™ใ‚‹ใŸใ‚ใซใ€็ฌฌ4ใฎใ‚ฆใ‚ฃใƒณใƒ‰ใ‚ฆใ‚’้–‹ใใ“ใจใŒใงใใพใ™ใ€‚๐Ÿ˜… ใ“ใฎ4็•ช็›ฎใฎใ‚ฆใ‚ฃใƒณใƒ‰ใ‚ฆใงใฏใ€ใƒญใƒผใ‚ซใƒซใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใ‚’ไฝœๆˆใ—ใพใ™๏ผ + +> ๆณจๆ„๏ผšใ“ใ‚Œใฏไธ€ๅบฆใ ใ‘่กŒใ†ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚ + +``` +yarn local-create +``` + +![](/public/images/The_Graph-SE2-Subgraph-package/section-0/0_5_1.png) + +> ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใŒไฝœๆˆใ•ใ‚ŒใŸใ“ใจใ‚’็คบใ™ๅ‡บๅŠ›ใจใ€dockerๅ†…ใฎgraph-nodeใงใฎใƒญใ‚ฐๅ‡บๅŠ›ใŒ่กจ็คบใ•ใ‚Œใ‚‹ใฏใšใงใ™ใ€‚ + +ๆฌกใซใ€ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใ‚’ๅ…ฌ้–‹ใ—ใพใ™๏ผ ใ“ใฎใ‚ณใƒžใƒณใƒ‰ใ‚’ๅฎŸ่กŒใ™ใ‚‹ใจใ€ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใซใƒใƒผใ‚ธใƒงใƒณใ‚’ไป˜ใ‘ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™๏ผˆไพ‹๏ผš0.0.1๏ผ‰ใ€‚ + +``` +yarn local-ship +``` + +![](/public/images/The_Graph-SE2-Subgraph-package/section-0/0_5_2.png) + +> ใ“ใฎใ‚ณใƒžใƒณใƒ‰ใฏใ€ไปฅไธ‹ใฎใ“ใจใ‚’ไธ€ๅบฆใซ่กŒใ„ใพใ™... ๐Ÿš€๐Ÿš€๐Ÿš€ + +- hardhat/deploymentsใƒ•ใ‚ฉใƒซใƒ€ใ‹ใ‚‰ใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใฎABIใ‚’ใ‚ณใƒ”ใƒผใ—ใพใ™ +- networks.jsonใƒ•ใ‚กใ‚คใƒซใ‚’็”Ÿๆˆใ—ใพใ™ +- ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใ‚นใ‚ญใƒผใƒžใจใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆABIใ‹ใ‚‰AssemblyScriptใ‚ฟใ‚คใƒ—ใ‚’็”Ÿๆˆใ—ใพใ™ +- ใƒžใƒƒใƒ”ใƒณใ‚ฐ้–ขๆ•ฐใ‚’ใ‚ณใƒณใƒ‘ใ‚คใƒซใ—ใฆใƒใ‚งใƒƒใ‚ฏใ—ใพใ™ +- ...ใใ—ใฆใ€ใƒญใƒผใ‚ซใƒซใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใ‚’ใƒ‡ใƒ—ใƒญใ‚คใ—ใพใ™๏ผ + +> ts-nodeใฎใ‚จใƒฉใƒผใŒ็™บ็”Ÿใ—ใŸๅ ดๅˆใฏใ€ๆฌกใฎใ‚ณใƒžใƒณใƒ‰ใงใ‚คใƒณใ‚นใƒˆใƒผใƒซใงใใพใ™ใ€‚ + +``` +npm install -g ts-node +``` + +ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎใƒ‡ใƒ—ใƒญใ‚คใŒๆˆๅŠŸใ™ใ‚‹ใจใ€ไปฅไธ‹ใฎใ‚ˆใ†ใซใชใ‚Šใพใ™๏ผš + +![](/public/images/The_Graph-SE2-Subgraph-package/section-0/0_5_3.png) + +ใƒ“ใƒซใƒ‰ใŒๅฎŒไบ†ใ—ใ€ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎใ‚จใƒณใƒ‰ใƒใ‚คใƒณใƒˆใ‚ขใƒ‰ใƒฌใ‚นใŒ่กจ็คบใ•ใ‚Œใพใ™ใ€‚ + +``` +Build completed: QmYdGWsVSUYTd1dJnqn84kJkDggc2GD9RZWK5xLVEMB9iP + +Deployed to http://localhost:8000/subgraphs/name/scaffold-eth/your-contract/graphql + +Subgraph endpoints: +Queries (HTTP): http://localhost:8000/subgraphs/name/scaffold-eth/your-contract +``` \ No newline at end of file diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-6_\343\203\206\343\202\271\343\203\210.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-6_\343\203\206\343\202\271\343\203\210.md" new file mode 100644 index 000000000..573a18954 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-0/lesson-6_\343\203\206\343\202\271\343\203\210.md" @@ -0,0 +1,29 @@ +## ใƒ†ใ‚นใƒˆ + +### โœ… ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎใƒ†ใ‚นใƒˆ + +ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎใ‚จใƒณใƒ‰ใƒใ‚คใƒณใƒˆใซ็งปๅ‹•ใ—ใ€็ขบ่ชใ—ใฆใฟใพใ—ใ‚‡ใ†๏ผ + +> ไปฅไธ‹ใฏใ‚ฏใ‚จใƒชใฎไพ‹ใงใ™... + +``` + { + greetings(first: 25, orderBy: createdAt, orderDirection: desc) { + id + greeting + premium + value + createdAt + sender { + address + greetingCount + } + } + } +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-0/0_6_1.png) + +> ใ™ในใฆใŒใ†ใพใใ„ใฃใฆใ„ใฆใ€ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใซใƒˆใƒฉใƒณใ‚ถใ‚ฏใ‚ทใƒงใƒณใ‚’้€ไฟกใ—ใŸๅ ดๅˆใฏใ€ๅŒๆง˜ใฎใƒ‡ใƒผใ‚ฟๅ‡บๅŠ›ใŒ่กจ็คบใ•ใ‚Œใ‚‹ใฏใšใงใ™๏ผ + +ๆฌกใซใ€The GraphใŒใฉใฎใ‚ˆใ†ใซๆฉŸ่ƒฝใ™ใ‚‹ใ‹ใ‚’ใ‚‚ใ†ๅฐ‘ใ—่ฉณใ—ใ่ชฌๆ˜Žใ—ใพใ™ใ€‚ใ“ใ‚Œใซใ‚ˆใ‚Šใ€ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใซใ‚คใƒ™ใƒณใƒˆใ‚’่ฟฝๅŠ ใ™ใ‚‹้š›ใซใ€ใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณใซๅฟ…่ฆใชใƒ‡ใƒผใ‚ฟใฎใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚นไฝœๆˆใ‚„่งฃๆžใŒใงใใ‚‹ใ‚ˆใ†ใซใชใ‚Šใพใ™ใ€‚ diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-1_\343\202\244\343\203\231\343\203\263\343\203\210\343\201\256\350\277\275\345\212\240.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-1_\343\202\244\343\203\231\343\203\263\343\203\210\343\201\256\350\277\275\345\212\240.md" new file mode 100644 index 000000000..37d659517 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-1_\343\202\244\343\203\231\343\203\263\343\203\210\343\201\256\350\277\275\345\212\240.md" @@ -0,0 +1,41 @@ +## ใ‚คใƒ™ใƒณใƒˆใฎ่ฟฝๅŠ  + +### ๐Ÿง‘๐Ÿผโ€๐Ÿ’ป ใ•ใ‚‰ใชใ‚‹ใ‚คใƒ™ใƒณใƒˆใฎ่ฟฝๅŠ ใƒปใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎๆ›ดๆ–ฐ ๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿ’ป + +ใใ‚Œใงใฏใ€ใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใซๅค‰ๆ›ดใ‚’ๅŠ ใˆใพใ—ใ‚‡ใ†ใ€‚ๆ–ฐใ—ใ„้–ขๆ•ฐใจใ€ใใฎ้–ขๆ•ฐใฎใŸใ‚ใฎใ‚คใƒ™ใƒณใƒˆใ‚’ไฝœๆˆใ—ใพใ™ใ€‚ + +#### โœ… ใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใซใ‚คใƒ™ใƒณใƒˆใ‚’่ฟฝๅŠ ใ™ใ‚‹ + +> packages/hardhat/contracts ใฎ YourContract.sol ใ‚’้–‹ใใพใ™ใ€‚ + +ไปฅไธ‹ใฎๆ–ฐใ—ใ„ใ‚ณใƒผใƒ‰่กŒใ‚’่ฟฝๅŠ ใ—ใพใ™ใ€‚ + +```solidity + event SendMessage(address _from, address _to, string message); + + function sendMessage(address _to, string calldata message) external { + emit SendMessage(msg.sender, _to, message); + } +``` + +ใ“ใฎใ‚คใƒ™ใƒณใƒˆใจ้–ขๆ•ฐใฏใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆๅ†…ใฎใฉใ“ใซใงใ‚‚่ฟฝๅŠ ใงใใพใ™ใŒใ€ใƒ™ใ‚นใƒˆใƒ—ใƒฉใ‚ฏใƒ†ใ‚ฃใ‚นใฏใ€ไฟฎ้ฃพๅญใ‚„ใ‚ณใƒณใ‚นใƒˆใƒฉใ‚ฏใ‚ฟใฎไธ‹ใซ้…็ฝฎใ™ใ‚‹ใ“ใจใงใ™ใ€‚ + +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_1_1.png) + +ใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใ‚’ไฟๅญ˜ใ—ใฆใ€ๆ–ฐใ—ใ„ๅค‰ๆ›ดใ‚’ใƒ‡ใƒ—ใƒญใ‚คใ—ใพใ™ใ€‚ + +> ใƒ—ใƒญใฎใƒ’ใƒณใƒˆ: --reset ใƒ•ใƒฉใ‚ฐใ‚’ไฝฟ็”จใ™ใ‚‹ใจใ€ใ‚ฝใƒผใ‚นใฎๆ›ดๆ–ฐใซ้–ขไฟ‚ใชใใ€ๅธธใซๆ–ฐใ—ใ„ใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใŒใƒ‡ใƒ—ใƒญใ‚คใ•ใ‚Œใพใ™ใ€‚ + +``` +yarn deploy --reset +``` + +ไปฅไธ‹ใฎๅ‡บๅŠ›ใŒ่กจ็คบใ•ใ‚Œใ‚‹ใฏใšใงใ™๏ผš + +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_1_2.png) + +#### โœ… ๆ–ฐใ—ใ„้–ขๆ•ฐใ‚’ใƒ†ใ‚นใƒˆใ™ใ‚‹ + +http://localhost:3000/debug ใซ็งปๅ‹•ใ—ใ€vitalik.ethใซใƒกใƒƒใ‚ปใƒผใ‚ธใ‚’้€ไฟกใ—ใพใ™ใ€‚ + +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_1_3.png) diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-2_\343\202\265\343\203\226\343\202\260\343\203\251\343\203\225\343\201\256\346\233\264\346\226\260.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-2_\343\202\265\343\203\226\343\202\260\343\203\251\343\203\225\343\201\256\346\233\264\346\226\260.md" new file mode 100644 index 000000000..c44d5e492 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-2_\343\202\265\343\203\226\343\202\260\343\203\251\343\203\225\343\201\256\346\233\264\346\226\260.md" @@ -0,0 +1,130 @@ +## ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎๆ›ดๆ–ฐ + +### โœ… GraphQL ใ‚นใ‚ญใƒผใƒžใฎๆ›ดๆ–ฐ + +ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใซใ‚คใƒ™ใƒณใƒˆใ‚’่ฟฝๅŠ ใ—ใŸๅพŒใ€ใพใšGraphQLใ‚นใ‚ญใƒผใƒžใ‚’ๆ›ดๆ–ฐใ—ใฆใ€GraphใƒŽใƒผใƒ‰ใซไฟๅญ˜ใ—ใŸใ„ใ‚จใƒณใƒ†ใ‚ฃใƒ†ใ‚ฃใ‚’ๅซใ‚ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚ใ‚จใƒณใƒ†ใ‚ฃใƒ†ใ‚ฃใซใคใ„ใฆใฎๆƒ…ๅ ฑใฏ[ใ“ใกใ‚‰](https://thegraph.com/docs/en/developing/creating-a-subgraph/#defining-entities)ใฎใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆใŒๅ‚่€ƒใซใชใ‚Šใพใ™ใ€‚ + +ไปฅไธ‹ใฎใ‚ณใƒผใƒ‰ใงใฏใ€ๆ—ขๅญ˜ใฎใ‚นใ‚ญใƒผใƒžใ‚’ใ‚คใƒ™ใƒณใƒˆๅใซๅˆใ‚ใ›ใŸๆ–ฐใ—ใ„ๅ‘ฝๅ่ฆๅ‰‡ใซๆ›ดๆ–ฐใ—ใพใ™ใ€‚ + +> ใ‚นใ‚ญใƒผใƒžใƒ•ใ‚กใ‚คใƒซใฏใ€packages/subgraph/src/schema.graphql ใซใ‚ใ‚Šใพใ™ใ€‚ + +``` +// ๆ—ขๅญ˜ใฎใ‚ณใƒผใƒ‰ไธ‹ใซ่ฟฝๅŠ  +type GreetingChange @entity(immutable: true) { + id: Bytes! + greetingSetter: Bytes! # address + newGreeting: String! # string + premium: Boolean! # bool + value: BigInt! # uint256 + blockNumber: BigInt! + blockTimestamp: BigInt! + transactionHash: Bytes! +} + +type SendMessage @entity(immutable: true) { + id: Bytes! + _from: Bytes! # address + _to: Bytes! # address + message: String! # string + blockNumber: BigInt! + blockTimestamp: BigInt! + transactionHash: Bytes! +} + +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_2_1.png) + +#### โœ… ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใƒžใƒ‹ใƒ•ใ‚งใ‚นใƒˆใฎๆ›ดๆ–ฐ + +ใ“ใ‚Œใ‚‰ใฎใ‚จใƒณใƒ†ใ‚ฃใƒ†ใ‚ฃใ‚’ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•YAMLๆง‹ๆˆใซ่ฟฝๅŠ ใ—ใ€ใ‚คใƒ™ใƒณใƒˆใƒใƒณใƒ‰ใƒฉใ‚‚่ฟฝๅŠ ใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚ + +> ใ“ใฎใƒ•ใ‚กใ‚คใƒซใฏใ€packages/subgraph/subgraph.yaml ใซใ‚ใ‚Šใพใ™ใ€‚ + +``` +entities: + - Greeting + - Sender + - GreetingChange + - SendMessage +``` + +``` + eventHandlers: + - event: GreetingChange(indexed address,string,bool,uint256) + handler: handleGreetingChange + - event: SendMessage(address,address,string) + handler: handleSendMessage +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_2_2.png) + +ใ“ใ“ใพใงใ‚นใƒ†ใƒƒใƒ—้€šใ‚Šใซ้€ฒใ‚“ใงใ„ใ‚‹ๅ ดๅˆใฏใ€ๆฌกใซๆ–ฐใ—ใ„abiใ‚’ใ‚ณใƒ”ใƒผใ—ใฆใ‚ณใƒผใƒ‰ใ‚’ๅ†็”Ÿๆˆใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚ + +``` +yarn abi-copy && yarn codegen +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_2_3.png) + +#### โœ… ใƒžใƒƒใƒ”ใƒณใ‚ฐใ‚นใ‚ฏใƒชใƒ—ใƒˆใฎๆ›ดๆ–ฐ + +ๆฌกใซใ€ๅ…ˆใปใฉ็ทจ้›†ใ—ใŸใƒ•ใ‚กใ‚คใƒซใฎใƒžใƒƒใƒ”ใƒณใ‚ฐใ‚’ๆ›ดๆ–ฐใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚ + +> ใ“ใฎใƒ•ใ‚กใ‚คใƒซใฏใ€packages/subgraph/src/mapping.ts ใซใ‚ใ‚Šใพใ™ใ€‚ + +``` +import { + YourContract, + GreetingChange as GreetingChangeEvent, + SendMessage as SendMessageEvent +} from "../generated/YourContract/YourContract"; +``` + +ใ‚นใ‚ญใƒผใƒžใ‚‚ๆ›ดๆ–ฐใ—ใพใ™ใ€‚ + +``` +import { GreetingChange, SendMessage } from "../generated/schema" +``` + +ๆœ€ๅพŒใซใ€ๅ„ใ‚คใƒ™ใƒณใƒˆใฎใƒžใƒƒใƒ”ใƒณใ‚ฐ้–ขๆ•ฐใ‚’่ฟฝๅŠ ใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚ + +``` +export function handleGreetingChange(event: GreetingChangeEvent): void { + let entity = new GreetingChange( + event.transaction.hash.concatI32(event.logIndex.toI32()) + ) + entity.greetingSetter = event.params.greetingSetter + entity.newGreeting = event.params.newGreeting + entity.premium = event.params.premium + entity.value = event.params.value + + entity.blockNumber = event.block.number + entity.blockTimestamp = event.block.timestamp + entity.transactionHash = event.transaction.hash + + entity.save() +} + +export function handleSendMessage(event: SendMessageEvent): void { + let entity = new SendMessage( + event.transaction.hash.concatI32(event.logIndex.toI32()) + ) + entity._from = event.params._from + entity._to = event.params._to + entity.message = event.params.message + + entity.blockNumber = event.block.number + entity.blockTimestamp = event.block.timestamp + entity.transactionHash = event.transaction.hash + + entity.save() +} + +``` + +ใ“ใฎๅค‰ๆ›ดใซใ‚ˆใ‚Šใ€ใ‚จใƒ‡ใ‚ฃใ‚ฟๅ†…ใงใฎใƒชใƒณใƒˆใ‚จใƒฉใƒผใฏๆถˆใˆใ‚‹ใงใ—ใ‚‡ใ†ใ€‚ + +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_2_4.png) + +ใ“ใ‚ŒใงใปใผๅฎŒๆˆใงใ™... ใ‚ใจใฏๅ…ฌ้–‹ใ™ใ‚‹ใ ใ‘๏ผ diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-3_\343\203\207\343\203\227\343\203\255\343\202\244.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-3_\343\203\207\343\203\227\343\203\255\343\202\244.md" new file mode 100644 index 000000000..5ed20c424 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-3_\343\203\207\343\203\227\343\203\255\343\202\244.md" @@ -0,0 +1,13 @@ +## ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎใƒ‡ใƒ—ใƒญใ‚ค + +### โœ… ๆ›ดๆ–ฐใ•ใ‚ŒใŸใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎๅ…ฌ้–‹ + +``` +yarn local-ship +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_3_1.png) + +ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใซๆ–ฐใ—ใ„ใƒใƒผใ‚ธใƒงใƒณ็•ชๅทใ‚’่ฟฝๅŠ ใ—ใฆใใ ใ•ใ„ใ€‚ใ“ใ‚Œใฏไปฅๅ‰ใฎใƒใƒผใ‚ธใƒงใƒณใ‚ˆใ‚Šใ‚‚้ซ˜ใ„็•ชๅทใงใ‚ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚ + +ๆฌกใซใ€ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใ‚’ใƒ†ใ‚นใƒˆใ—ใฆใ€ๆญฃใ—ใใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚นใ•ใ‚Œใฆใ„ใ‚‹ใ“ใจใ‚’็ขบ่ชใ—ใพใ™ใ€‚ diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-4_\343\203\206\343\202\271\343\203\210.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-4_\343\203\206\343\202\271\343\203\210.md" new file mode 100644 index 000000000..647f6c417 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-1/lesson-4_\343\203\206\343\202\271\343\203\210.md" @@ -0,0 +1,21 @@ +## ใƒ†ใ‚นใƒˆ + +### โœ… ๆ–ฐใ—ใใƒ‡ใƒ—ใƒญใ‚คใ•ใ‚ŒใŸใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎใƒ†ใ‚นใƒˆ + +ๆฌกใซใ€็งใŸใกใฎใƒ‡ใƒผใ‚ฟใŒThe Graphใซใ‚ใ‚‹ใ‹ใฉใ†ใ‹ใ‚’็ขบ่ชใ—ใพใ—ใ‚‡ใ†ใ€‚ใ“ใกใ‚‰ใฏๆœ€ๅˆใฎใƒกใƒƒใ‚ปใƒผใ‚ธใ‚’่กจ็คบใ™ใ‚‹ใ‚ฏใ‚จใƒชใฎไพ‹ใงใ™ใ€‚ + +``` +{ + sendMessages(first: 1, orderBy: blockTimestamp, orderDirection: desc) { + message + _from + _to + } +} +``` + +ใ“ใฎใ‚ˆใ†ใช็ด ๆ™ดใ‚‰ใ—ใ„ใƒฌใ‚นใƒใƒณใ‚นใŒๅพ—ใ‚‰ใ‚Œใ‚‹ใฏใšใงใ™๏ผš + +![](/public/images/TheGraph-ScaffoldEth2/section-1/1_4_1.png) + +ใƒ‡ใƒผใ‚ฟใจใฏ็ด ๆ™ดใ‚‰ใ—ใ„ใ‚‚ใฎใงใ™ใญ๏ผŸ diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-1_MetaMask\343\201\256\343\202\244\343\203\263\343\202\271\343\203\210\343\203\274\343\203\253.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-1_MetaMask\343\201\256\343\202\244\343\203\263\343\202\271\343\203\210\343\203\274\343\203\253.md" new file mode 100644 index 000000000..6e36565bc --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-1_MetaMask\343\201\256\343\202\244\343\203\263\343\202\271\343\203\210\343\203\274\343\203\253.md" @@ -0,0 +1,7 @@ +## MetaMaskใฎใ‚คใƒณใ‚นใƒˆใƒผใƒซ + +### MetaMaskใฎใ‚คใƒณใ‚นใƒˆใƒผใƒซ + +ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใ‚’ใƒ–ใƒญใƒƒใ‚ฏใƒใ‚งใƒผใƒณใซใƒ‡ใƒ—ใƒญใ‚คใ—ใŸใ‚Šใ€ใƒ‡ใƒ—ใƒญใ‚คใ•ใ‚ŒใŸใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใจใ‚„ใ‚Šๅ–ใ‚Šใ™ใ‚‹้š›ใซใฏใ€ใ‚ฌใ‚นไปฃใ‚’ๆ”ฏๆ‰•ใ†ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚ใใฎใŸใ‚ใซใฏใ€MetaMaskใฎใ‚ˆใ†ใชweb3ใ‚ฆใ‚ฉใƒฌใƒƒใƒˆใŒๅฟ…่ฆใงใ™ใ€‚MetaMaskใ‚’ใ‚คใƒณใ‚นใƒˆใƒผใƒซใ™ใ‚‹ใซใฏ[ใ“ใกใ‚‰](https://metamask.io/)ใ‚’ใ‚ฏใƒชใƒƒใ‚ฏใ—ใฆใใ ใ•ใ„ใ€‚ + +ใพใŸใ€ใ“ใฎใƒใƒฅใƒผใƒˆใƒชใ‚ขใƒซใฎๅพŒๅŠใงใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใ‚’ใƒ†ใ‚นใƒˆใƒใƒƒใƒˆใซใƒ‡ใƒ—ใƒญใ‚คใ™ใ‚‹ใŸใ‚ใซใ€ใƒ†ใ‚นใƒˆใƒใƒƒใƒˆ็”จใฎETHใ‚‚ๅ…ฅๆ‰‹ใ—ใฆใŠใใ“ใจใ‚’ใŠๅ‹งใ‚ใ—ใพใ™ใ€‚ \ No newline at end of file diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-2_\343\203\207\343\203\227\343\203\255\343\202\244\343\203\244\343\203\274\343\202\242\343\202\253\343\202\246\343\203\263\343\203\210\343\201\256\344\275\234\346\210\220.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-2_\343\203\207\343\203\227\343\203\255\343\202\244\343\203\244\343\203\274\343\202\242\343\202\253\343\202\246\343\203\263\343\203\210\343\201\256\344\275\234\346\210\220.md" new file mode 100644 index 000000000..92cfb72f4 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-2_\343\203\207\343\203\227\343\203\255\343\202\244\343\203\244\343\203\274\343\202\242\343\202\253\343\202\246\343\203\263\343\203\210\343\201\256\344\275\234\346\210\220.md" @@ -0,0 +1,65 @@ +## ใƒ‡ใƒ—ใƒญใ‚คใƒคใƒผใ‚ขใ‚ซใ‚ฆใƒณใƒˆ + +### โ›ต ใƒ†ใ‚นใƒˆใƒใƒƒใƒˆใธใฎใƒ‡ใƒ—ใƒญใ‚ค + +ๆฌกใซใ€ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใ‚’ใƒ†ใ‚นใƒˆใƒใƒƒใƒˆใซใƒ‡ใƒ—ใƒญใ‚คใ—ใŸใ„ใจๆ€ใ„ใพใ™๏ผ ใ“ใฎใƒฏใƒผใ‚ฏใ‚ทใƒงใƒƒใƒ—ใŒไฝœๆˆใ•ใ‚ŒใŸๆ™‚็‚นใงใฏใ€The Graphใฏๅคšใใฎใƒ†ใ‚นใƒˆใƒใƒƒใƒˆใ‚’ใ‚ตใƒใƒผใƒˆใ—ใฆใ„ใพใ™ใŒใ€ใ“ใฎไพ‹ใงใฏsepoliaใ‚’ไฝฟ็”จใ—ใพใ™ใ€‚ + +## ใƒ†ใ‚นใƒˆใƒใƒƒใƒˆ็”จใฎ่ณ‡้‡‘ใŒๅฟ…่ฆใชๅ ดๅˆใฏใ€ไปฅไธ‹ใฎใƒ•ใ‚ฉใƒผใ‚ปใƒƒใƒˆใ‚’่ฉฆใ—ใฆใฟใฆใใ ใ•ใ„๏ผš + +[Ethereum Sepolia Faucet - Alchemy](https://sepoliafaucet.com/) + +#### โœ… ใƒ‡ใƒ—ใƒญใ‚คใƒคใƒผใ‚ขใ‚ซใ‚ฆใƒณใƒˆใฎไฝœๆˆ + +``` +yarn run generate +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_2_1.png) + +hardhatใฎ็’ฐๅขƒๅค‰ๆ•ฐใƒ•ใ‚กใ‚คใƒซใซไปฅไธ‹ใฎใ‚ˆใ†ใซไฟๅญ˜ใ•ใ‚Œใ‚‹ใฏใšใงใ™๏ผš + +``` +๐Ÿ‘› Generating new Wallet +๐Ÿ“„ Private Key saved to packages/hardhat/.env file +``` + +#### โœ… ใ‚ขใ‚ซใ‚ฆใƒณใƒˆใธใฎ่ณ‡้‡‘ใฎ่ฟฝๅŠ  + +``` +yarn account +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_2_2.png) + +ใ“ใ‚Œใซใ‚ˆใ‚Šใ€ๅ…ฌ้–‹ใ‚ขใƒ‰ใƒฌใ‚นใจใƒ•ใ‚กใƒณใ‚ทใƒผใชQRใ‚ณใƒผใƒ‰ใŒ่กจ็คบใ•ใ‚Œใพใ™ใ€‚ใใ—ใฆๆฎ‹้ซ˜?! ็ด ๆ™ดใ‚‰ใ—ใ„ใงใ™ใญ๏ผ <3 + +``` + + โ–„โ–„โ–„โ–„โ–„โ–„โ–„ โ–„ โ–„ โ–„โ–„โ–„โ–„โ–„โ–„โ–„ โ–„โ–„โ–„โ–„โ–„โ–„โ–„ + โ–ˆ โ–„โ–„โ–„ โ–ˆ โ–ˆโ–€โ–€โ–„ โ–ˆโ–€โ–ˆโ–„ โ–„โ–„โ–ˆ โ–ˆ โ–„โ–„โ–„ โ–ˆ + โ–ˆ โ–ˆโ–ˆโ–ˆ โ–ˆ โ–„โ–„โ–ˆโ–ˆโ–€โ–„โ–ˆ โ–€ โ–ˆโ–ˆโ–ˆ โ–ˆ โ–ˆโ–ˆโ–ˆ โ–ˆ + โ–ˆโ–„โ–„โ–„โ–„โ–„โ–ˆ โ–„โ–€โ–„โ–€โ–„โ–€โ–„โ–€โ–„ โ–ˆ โ–„ โ–ˆโ–„โ–„โ–„โ–„โ–„โ–ˆ + โ–„ โ–„โ–„โ–„โ–„โ–„โ–„โ–€โ–ˆโ–„โ–€โ–„โ–ˆโ–„โ–„ โ–„โ–ˆโ–€โ–„ โ–„ โ–„โ–„โ–„ + โ–„โ–€โ–€โ–ˆ โ–ˆโ–„โ–ˆโ–ˆโ–€โ–€โ–€โ–€โ–„โ–ˆโ–€โ–€โ–„โ–ˆโ–„โ–ˆโ–ˆโ–€โ–„โ–„โ–ˆโ–€โ–ˆ + โ–€โ–„โ–„ โ–„โ–ˆโ–„โ–„โ–„โ–€ โ–ˆโ–€โ–„โ–€โ–€โ–„โ–„โ–ˆ โ–ˆโ–ˆโ–€โ–ˆ โ–„โ–€ + โ–„โ–ˆโ–€โ–€โ–ˆโ–ˆโ–„ โ–€โ–„ โ–ˆ โ–€ โ–€โ–ˆ โ–€โ–„โ–€โ–ˆโ–„โ–ˆโ–ˆโ–ˆ + โ–„โ–ˆโ–€โ–ˆโ–ˆ โ–„โ–„โ–„ โ–€ โ–„ โ–ˆโ–„โ–€โ–„โ–„ โ–ˆโ–ˆโ–„โ–€โ–„โ–€โ–„โ–ˆ + โ–ˆโ–„ โ–ˆโ–„ โ–„โ–ˆโ–„โ–ˆโ–„โ–€โ–€โ–€ โ–„โ–ˆโ–„โ–ˆโ–€โ–„ โ–ˆโ–€โ–€โ–„โ–„โ–€โ–„ + โ–ˆโ–ˆโ–ˆโ–„โ–ˆโ–€โ–„ โ–ˆ โ–€โ–„โ–ˆโ–€ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–„โ–„โ–ˆโ–€โ–ˆโ–„โ–„ + โ–„โ–„โ–„โ–„โ–„โ–„โ–„ โ–ˆโ–„ โ–ˆโ–„ โ–ˆโ–ˆโ–€ โ–ˆ โ–ˆ โ–„ โ–ˆ โ–ˆโ–ˆ + โ–ˆ โ–„โ–„โ–„ โ–ˆ โ–ˆ โ–€โ–ˆโ–ˆโ–„โ–ˆโ–ˆโ–€โ–€โ–„ โ–ˆโ–„โ–„โ–„โ–ˆโ–ˆโ–„โ–„ + โ–ˆ โ–ˆโ–ˆโ–ˆ โ–ˆ โ–€โ–„โ–€โ–„ โ–€โ–„โ–„ โ–„โ–ˆโ–€โ–€ โ–„โ–„โ–„โ–ˆโ–ˆโ–„โ–„ + โ–ˆโ–„โ–„โ–„โ–„โ–„โ–ˆ โ–„โ–ˆ โ–„โ–ˆ โ–„โ–€โ–„โ–ˆ โ–„โ–€ โ–„โ–„โ–„โ–€ โ–€ +โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€ + +Public address: 0x87f00B2c39F97CD00BC6d09777BC4327aCA39180 + +-- localhost -- ๐Ÿ“ก + balance: 0 + nonce: 0 + +``` + +้ธๆŠžใ—ใŸใƒใ‚งใƒผใƒณใ‹ใ‚‰ใƒ†ใ‚นใƒˆใƒใƒƒใƒˆETHใ‚’้€ไฟกใ—ใฆใใ ใ•ใ„ใ€‚sepoliaใ‹ใ‚‰ใƒ†ใ‚นใƒˆใƒใƒƒใƒˆETHใ‚’ๅ…ฅๆ‰‹ใ™ใ‚‹ใฎใฏๆฏ”่ผƒ็š„็ฐกๅ˜ใชใฎใงใ€sepoliaใ‚’ใŠๅ‹งใ‚ใ—ใพใ™ใ€‚ไปฅไธ‹ใฎๅ‡บๅŠ›ใงใฏใ€sepoliaใฎๆฎ‹้ซ˜ใŒใ‚ใ‚‹ใ“ใจใŒใ‚ใ‹ใ‚Šใพใ™ใ€‚ + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_2_3.png) diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-3_\343\203\207\343\203\227\343\203\255\343\202\244\343\201\250\346\244\234\350\250\274.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-3_\343\203\207\343\203\227\343\203\255\343\202\244\343\201\250\346\244\234\350\250\274.md" new file mode 100644 index 000000000..21c2b8e19 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-3_\343\203\207\343\203\227\343\203\255\343\202\244\343\201\250\346\244\234\350\250\274.md" @@ -0,0 +1,36 @@ +## ใƒ‡ใƒ—ใƒญใ‚คใจๆคœ่จผ + +### โœ… ใƒ‡ใƒ—ใƒญใ‚ค๏ผ + +ใ“ใ‚Œใงใ€็งใŸใกใฏ้ธๆŠžใ—ใŸใƒ†ใ‚นใƒˆใƒใƒƒใƒˆใซใƒ‡ใƒ—ใƒญใ‚คใงใใพใ™... ใ“ใฎไพ‹ใงใฏใ€sepoliaใซใƒ‡ใƒ—ใƒญใ‚คใ—ใพใ™ใ€‚ + +``` +yarn deploy --network sepolia +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_3_1.png) + +ๅ•้กŒใŒใชใ‘ใ‚Œใฐใ€ไปฅไธ‹ใฎใ‚ˆใ†ใชๆˆๅŠŸใฎๅ‡บๅŠ›ใŒ่กจ็คบใ•ใ‚Œใ‚‹ใฏใšใงใ™ใ€‚ + +``` +deploying "YourContract" (tx: 0xf404021d736271a7a0a84d124ed35250c533efe37c1775367b6510a8836bf0bd)...: deployed at 0x541D469C06990B7F0bd5103b57997cE8a39C050c with 605281 gas +๐Ÿ“ Updated TypeScript contract definition file on ../nextjs/generated/deployedContracts.ts +``` + +#### โœ… ๆคœ่จผ + +``` +yarn verify --network sepolia +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_3_2.png) + +ไปฅไธ‹ใฎใ‚ˆใ†ใชๆˆๅŠŸใฎๅ‡บๅŠ›ใŒ่กจ็คบใ•ใ‚Œใ‚‹ใฏใšใงใ™... + +``` +verifying YourContract (0x541D469C06990B7F0bd5103b57997cE8a39C050c) ... +waiting for result... + => contract YourContract is now verified +``` + +ใพใŸใ€etherscanใงใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใŒๆญฃๅธธใซใƒ‡ใƒ—ใƒญใ‚คใ•ใ‚ŒใŸใ“ใจใ‚‚็ขบ่ชใงใใพใ™ใ€‚[ใ“ใกใ‚‰](https://sepolia.etherscan.io/address/0x541D469C06990B7F0bd5103b57997cE8a39C050c#code)ใฏ็งใŒใƒ‡ใƒ—ใƒญใ‚คใ—ใฆๆคœ่จผใ—ใŸใ‚‚ใฎใงใ™ใ€‚ diff --git a/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-4_Subgraph Studio.md b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-4_Subgraph Studio.md new file mode 100644 index 000000000..81d1f8e12 --- /dev/null +++ b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-4_Subgraph Studio.md @@ -0,0 +1,25 @@ +## Subgraph studio + +### Studio ใธใฎใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎ็งป่กŒ + +ใ•ใฆใ€ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใŒๅ…ฌ้–‹ใƒ†ใ‚นใƒˆใƒใƒƒใƒˆใซใ‚ใ‚‹ใฎใงใ€ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใ‚’Studioใซใƒ—ใƒƒใ‚ทใƒฅใ™ใ‚‹ๆ™‚ใŒๆฅใพใ—ใŸใ€‚ + +#### โœ… https://thegraph.com/studio ใซ็งปๅ‹•ใ™ใ‚‹ + +![Studio1](/public/images/TheGraph-ScaffoldEth2/section-2/2_4_1.png) + +#### โœ… ใ‚ฆใ‚ฉใƒฌใƒƒใƒˆใ‚’ๆŽฅ็ถšใ™ใ‚‹ + +![Studio2](/public/images/TheGraph-ScaffoldEth2/section-2/2_4_2.png) + +ๆŽฅ็ถšใ—ใŸใ‚ฆใ‚ฉใƒฌใƒƒใƒˆใŒใ‚ใชใŸใฎใ‚‚ใฎใงใ‚ใ‚‹ใ“ใจใ‚’็ขบ่ชใ™ใ‚‹ใŸใ‚ใซใ€ใƒชใ‚ฏใ‚จใ‚นใƒˆใซใ‚ตใ‚คใƒณใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚‹ใ‹ใ‚‚ใ—ใ‚Œใพใ›ใ‚“ใ€‚ + +![Studio3](/public/images/TheGraph-ScaffoldEth2/section-2/2_4_3.png) + +#### โœ… Create a Subgraph ใ‚’ใ‚ฏใƒชใƒƒใ‚ฏใ™ใ‚‹ + +![Studio4](/public/images/TheGraph-ScaffoldEth2/section-2/2_4_4.png) + +#### โœ… ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใซๅๅ‰ใ‚’ใคใ‘ใ‚‹ + +![Studio5](/public/images/TheGraph-ScaffoldEth2/section-2/2_4_5.png) diff --git a/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-5_Graph CLI.md b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-5_Graph CLI.md new file mode 100644 index 000000000..9d608f847 --- /dev/null +++ b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-5_Graph CLI.md @@ -0,0 +1,104 @@ +## Graph CLI + +### โœ… CLI ใ‚’ไฝฟ็”จใ—ใŸใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎใƒ‡ใƒ—ใƒญใ‚ค + +#### โœ… Graph CLI ใ‚’ไฝฟใฃใฆใƒ‡ใƒ—ใƒญใ‚คใ‚’ๅฎŒไบ†ใ™ใ‚‹ + +![Studio6](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_1.png) + +ไปฅไธ‹ใฎใ‚ณใƒžใƒณใƒ‰ใ‚’ไฝฟ็”จใ—ใฆใ€Graph CLIใ‚’ใ‚ฐใƒญใƒผใƒใƒซใซใ‚คใƒณใ‚นใƒˆใƒผใƒซใงใใพใ™ใ€‚ + +``` +curl -LS https://cli.thegraph.com/install.sh | sudo sh +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_2.png) + +#### โœ… ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎๅˆๆœŸๅŒ– + +ใ“ใฎใ‚ณใƒžใƒณใƒ‰ใฏใ€yarnใƒ‘ใƒƒใ‚ฑใƒผใ‚ธใฎๅˆๆœŸๅŒ–ใ‚’่กŒใ†ใŸใ‚ใ€ใ“ใ‚Œใพใงๆ“ไฝœใ—ใฆใใŸใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใƒ•ใ‚ฉใƒซใƒ€ใจใฏๅˆฅใฎใŠๅฅฝใใชใƒ•ใ‚ฉใƒซใƒ€ใง่กŒใ†ใ“ใจใŒใงใใพใ™ใ€‚ใพใŸใ€ๅˆๆœŸๅŒ–ใƒ—ใƒญใ‚ปใ‚นไธญใซ่จญๅฎšใ‚’ๅ…ฅๅŠ›ใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚ใ‚นใ‚ฟใƒผใƒˆใƒ–ใƒญใƒƒใ‚ฏใฏใ€ๅฟ…่ฆใซๅฟœใ˜ใฆEtherescanใง่ฆ‹ใคใ‘ใ‚‹ใ“ใจใŒใงใใ€ไปฅๅ‰ใฎใƒ–ใƒญใƒƒใ‚ฏๅ…จไฝ“ใ‚’ใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚นใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ›ใ‚“ใ€‚ + +``` +graph init --studio name_of_your_subgraph +``` + +ใ“ใฎใ‚ˆใ†ใซใชใ‚Šใพใ™... + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_3.png) + +#### โœ… Studio ใธใฎ่ช่จผ + +Subgraph StudioใฎAuth & Deployใ‹ใ‚‰่ช่จผCLIใ‚’ๅ–ๅพ—ใ—ใพใ™ใ€‚ + +``` +graph auth --studio auth_key_here +``` + +ๆˆๅŠŸใ™ใ‚‹ใจใ“ใฎใ‚ˆใ†ใซใชใ‚Šใพใ™๏ผš + +``` +Deploy key set for https://api.studio.thegraph.com/deploy/ +``` + +#### โœ… codegen ใ‚’ๅฎŸ่กŒใ—ใ€ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใ‚’ใƒ“ใƒซใƒ‰ใ™ใ‚‹ + +ใ“ใ“ใพใงใฎใ‚นใƒ†ใƒƒใƒ—ใงไฝœๆˆใ•ใ‚ŒใŸใ€ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎใƒ‡ใ‚ฃใƒฌใ‚ฏใƒˆใƒชใซ็งปๅ‹•ใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚Šใพใ™ใ€‚ + +``` +cd sendmessage +graph codegen && graph build +``` + +ๆˆๅŠŸใ™ใ‚‹ใจไปฅไธ‹ใฎใ‚ˆใ†ใซใชใ‚Šใพใ™๏ผ + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_4.png) + +#### โœ… ใƒ‡ใƒ—ใƒญใ‚ค + +ใ“ใ‚ŒใงStudioใซใƒ‡ใƒ—ใƒญใ‚คใ™ใ‚‹ๆบ–ๅ‚™ใŒๆ•ดใ„ใพใ—ใŸใ€‚ + +``` +graph deploy --studio name_of_your_subgraph +``` + +ใƒใƒผใ‚ธใƒงใƒณใ‚’้ธๆŠžใ—ใฆใ€ๅฎŸ่กŒใ—ใพใ—ใ‚‡ใ†๏ผ + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_5.png) + +ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใŒใ‚นใ‚ฟใ‚ธใ‚ชใซใƒ‡ใƒ—ใƒญใ‚คใ•ใ‚Œใ‚‹ใพใงใ€5ๅˆ†ใปใฉใ‹ใ‹ใ‚‹ใ“ใจใŒใ‚ใ‚Šใพใ™ใ€‚ใƒ‡ใƒ—ใƒญใ‚คใ•ใ‚ŒใŸใ‚‰ใ€ๅฎŒๅ…จใซๅŒๆœŸใ•ใ‚Œใฆใ„ใฆใ‚จใƒฉใƒผใŒใชใ„ใ“ใจใ‚’็ขบ่ชใ—ใฆใใ ใ•ใ„ใ€‚ใƒ‡ใƒ—ใƒญใ‚คใซๆˆๅŠŸใ™ใ‚‹ใจใ€ไปฅไธ‹ใฎใ‚ˆใ†ใซใชใ‚Šใพใ™ใ€‚ + +![Studio7](/public/images/TheGraph-ScaffoldEth2/section-2/2_5_6.png) + +#### โœ… ใƒˆใƒฉใƒณใ‚ถใ‚ฏใ‚ทใƒงใƒณใ‚’้€ไฟกใ—ใ€Subgraph Playground ใง็ขบ่ชใ™ใ‚‹ + +Etherscanใงใ€Contract -> Write Contractใ‚ฟใƒ–ใ‹ใ‚‰็›ดๆŽฅใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใซใƒˆใƒฉใƒณใ‚ถใ‚ฏใ‚ทใƒงใƒณใ‚’้€ไฟกใงใใพใ™ใ€‚ + +็งใŸใกใฎใ‚ฏใ‚จใƒช๏ผš + +``` +{ + sendMessages(first: 5) { + id + _from + _to + message + } +} +``` + +ใƒ‡ใƒผใ‚ฟใ‚ชใƒ–ใ‚ธใ‚งใ‚ฏใƒˆใฎใƒฌใ‚นใƒใƒณใ‚น๏ผš + +``` +{ + "data": { + "sendMessages": [ + { + "id": "0x053e32f85f9f485334119585abfc73e507a4ce86e968130b90410df70eb3a66e71000000", + "_from": "0x142cd5d7ac1ea8919f1644af1870792b9f77d44a", + "_to": "0x007e483cf6df009db5ec571270b454764d954d95", + "message": "I love you" + } + ] + } +} +``` diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-6_\343\203\225\343\203\255\343\203\263\343\203\210\343\202\250\343\203\263\343\203\211.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-6_\343\203\225\343\203\255\343\203\263\343\203\210\343\202\250\343\203\263\343\203\211.md" new file mode 100644 index 000000000..15e907376 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-6_\343\203\225\343\203\255\343\203\263\343\203\210\343\202\250\343\203\263\343\203\211.md" @@ -0,0 +1,174 @@ +## ใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ + +### ใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ใฎๆ›ดๆ–ฐใจใƒ‡ใƒ—ใƒญใ‚ค + +ใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใ‚’ใƒ†ใ‚นใƒˆใƒใƒƒใƒˆใซใƒ‡ใƒ—ใƒญใ‚คใ—ใ€Subgraph Studioใงใƒ‡ใƒผใ‚ฟใŒใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚นใ•ใ‚Œใฆใ„ใ‚‹ใฎใงใ€ใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ใ‚’ๆ›ดๆ–ฐใ™ใ‚‹ๆ™‚ใŒๆฅใพใ—ใŸใ€‚ + +#### โœ… ใ‚นใƒ†ใƒƒใƒ— 1๏ผšScaffold-ETH ใฎ่จญๅฎšใ‚’ๆ›ดๆ–ฐใ™ใ‚‹ + +ไปฅๅ‰ใฎใ‚นใƒ†ใƒƒใƒ—ใงใƒ‡ใƒ—ใƒญใ‚คใ—ใŸใƒ†ใ‚นใƒˆใƒใƒƒใƒˆใ‚’ๆŒ‡ใ™ใ‚ˆใ†ใซ่จญๅฎšใ‚’ๆ›ดๆ–ฐใ—ใฆใใ ใ•ใ„ใ€‚ + +> scaffold.config.ts ใฏ packages/nextjs ใซใ‚ใ‚Šใพใ™ใ€‚ + +``` + targetNetwork: chains.sepolia, +``` + +ๅค‰ๆ›ดใ™ใ‚‹ใจไปฅไธ‹ใฎใ‚ˆใ†ใซใชใ‚Šใพใ™๏ผš + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_1.png) + +ใ“ใฎๅค‰ๆ›ดใ‚’่กŒใฃใŸใ‚‰ใ€scaffold-ETHใซๆˆปใ‚Šใ€UIใ‚’ใƒชใƒญใƒผใƒ‰ใ—ใฆใใ ใ•ใ„ใ€‚ใƒใƒผใƒŠใƒผใ‚ฆใ‚ฉใƒฌใƒƒใƒˆใ‹ใ‚‰ๅˆ‡ๆ–ญใ•ใ‚Œใ‚‹ใฎใงใ€Metamaskใ‚ฆใ‚ฉใƒฌใƒƒใƒˆใ‚’ไฝฟ็”จใ—ใฆใƒ†ใ‚นใƒˆใƒใƒƒใƒˆใซๆŽฅ็ถšใ—ใพใ™ใ€‚ + +"CONNECT WALLET"ใ‚’ใ‚ฏใƒชใƒƒใ‚ฏใ—ใฆใใ ใ•ใ„... + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_2.png) + +Metamaskใ‚’้ธๆŠžใ—ใฆใใ ใ•ใ„... + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_3.png) + +ใƒใƒƒใƒˆใƒฏใƒผใ‚ฏใ‚’ๅˆ‡ใ‚Šๆ›ฟใˆใฆใใ ใ•ใ„... + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_4.png) + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_5.png) + +ๅฎŒไบ†ใ—ใŸใ‚‰ใ€sepoliaใƒใƒƒใƒˆใƒฏใƒผใ‚ฏไธŠใฎdappใซๆŽฅ็ถšใ•ใ‚Œใฆใ„ใ‚‹ใฏใšใงใ™ใ€‚ + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_6.png) + +#### โœ… ็Ÿฅใ‚Šๅˆใ„ใซใƒ†ใ‚นใƒˆใƒกใƒƒใ‚ปใƒผใ‚ธใ‚’้€ใฃใฆใฟใ‚ˆใ†๏ผ๏ผˆใพใŸใฏ Vitalik ใธ๏ผ‰ + +ใƒ‡ใƒ—ใƒญใ‚คใ—ใŸใ‚นใƒžใƒผใƒˆใ‚ณใƒณใƒˆใƒฉใ‚ฏใƒˆใซใ‚คใƒ™ใƒณใƒˆใ‚’้€ไฟกใ—ใŸใ„ใจๆ€ใ„ใพใ™ใ€‚ใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ใŒ้ฉๅˆ‡ใซ่จญๅฎšใ•ใ‚Œใฆใ„ใ‚‹ใฎใงใ€ใ“ใ‚Œใฏๆฏ”่ผƒ็š„็ฐกๅ˜ใซ่กŒใ†ใ“ใจใŒใงใใพใ™ใ€‚ + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_7.png) + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_8.png) + +ๆฌกใซใ€Studioใงใƒกใƒƒใ‚ปใƒผใ‚ธใŒๆญฃๅธธใซใ‚คใƒณใƒ‡ใƒƒใ‚ฏใ‚นใ•ใ‚ŒใŸใ‹ใฉใ†ใ‹ใ‚’็ขบ่ชใ—ใพใ™ใ€‚GraphiQLใ‚จใ‚ฏใ‚นใƒ—ใƒญใƒผใƒฉใฏใ€ใ€ŒPlaygroundใ€ใƒšใƒผใ‚ธใซใ‚ใ‚Šใพใ™ใ€‚ + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_9.png) + +#### โœ… GraphQL URL ใ‚’้–‹็™บ็”จใ‚จใƒณใƒ‰ใƒใ‚คใƒณใƒˆใซๆ›ดๆ–ฐใ™ใ‚‹ + +ใ‚ตใƒ–ใ‚ฐใƒฉใƒ•ใฎ้–‹็™บใ‚จใƒณใƒ‰ใƒใ‚คใƒณใƒˆใฏใ€Subgraph Studioใฎdetailsใ‚ฟใƒ–ใง่ฆ‹ใคใ‘ใ‚‹ใ“ใจใŒใงใใพใ™ใ€‚ + +> \_app.tsx ใ‚’็ทจ้›†ใ—ใพใ™ใ€‚packages/nextjs/pages ใซใ‚ใ‚Šใพใ™ใ€‚ + +``` + const subgraphUri = "https://api.studio.thegraph.com/query/51078/sendmessage-test/version/latest"; + const apolloClient = new ApolloClient({ + uri: subgraphUri, + cache: new InMemoryCache(), + }); +``` + +ๅค‰ๆ›ดใ™ใ‚‹ใจไปฅไธ‹ใฎใ‚ˆใ†ใซใชใ‚Šใพใ™๏ผš + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_10.png) + +#### โœ… index.ts ใƒ•ใ‚กใ‚คใƒซใ‚’ใพใฃใ•ใ‚‰ใช็Šถๆ…‹ใ‹ใ‚‰ๅง‹ใ‚ใ‚‹ + +ๅฟ…่ฆใชใ‚‚ใฎใ‚’index.tsใƒ•ใ‚กใ‚คใƒซใซใ‚คใƒณใƒใƒผใƒˆใ—ใพใ—ใ‚‡ใ†ใ€‚ใพใŸใ€returnๅ†…ใฎๆƒ…ๅ ฑใ‚’ๅ…จใฆใ‚ฏใƒชใ‚ขใ™ใ‚‹ใ“ใจใ‚‚ใงใใพใ™ใ€‚ + +> index.ts ใฏ packages/nextjs/pages ใซใ‚ใ‚Šใพใ™ใ€‚ + +ไปฅไธ‹ใฎใ‚ˆใ†ใซใชใ‚‹ใฏใšใงใ™... + +``` +import type { NextPage } from "next"; +import { MetaHeader } from "~~/components/MetaHeader"; + +import { gql } from "@apollo/client"; +import { useQuery } from "@apollo/client"; + +const Home: NextPage = () => { + return ( + <> + + + ); +}; + +export default Home; +``` + +ๅค‰ๆ›ดๅพŒใ€ใƒ›ใƒผใƒ ใƒ‡ใ‚ฃใƒฌใ‚ฏใƒˆใƒชใฏไปฅไธ‹ใฎใ‚ˆใ†ใซใชใ‚Šใพใ™๏ผš + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_11.png) + +#### โœ… ใƒ†ใƒผใƒ–ใƒซๅฝขๅผใงใƒกใƒƒใ‚ปใƒผใ‚ธใ‚’่กจ็คบใ™ใ‚‹ + +ๆœ€ๅพŒใซใ€ใƒกใƒƒใ‚ปใƒผใ‚ธใ‚’่กจ็คบใ™ใ‚‹ใŸใ‚ใฎใƒ†ใƒผใƒ–ใƒซใ‚’ไฝœใ‚Šใพใ™ใ€‚ + +``` +

Messages

+ + + + + + + + + + {messages.map((message) => ( + + + + + + ))} + +
FromToMessage
{message._from}{message._to}{message.message}
+``` + +main้–ขๆ•ฐใฎๅค–ๅดใซใ€GraphQLใ‚ฏใ‚จใƒชใ‚’constใจใ—ใฆๅฎš็พฉใ—ใพใ™ใ€‚ + +``` +export const GET_MESSAGES = gql` +{ + sendMessages(first: 5) { + id + _from + _to + message + } +} +`; +``` + +ใใ—ใฆใ€ๆฌกใฎใ‚ˆใ†ใซใƒ‡ใƒผใ‚ฟใ‚’ใƒญใƒผใƒ‰ใ—ใพใ™... + +``` + const { loading, error, data: messagesData } = useQuery(GET_MESSAGES); + + const messages = messagesData?.sendMessages || []; +``` + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_13.png) + +ใใ‚Œใ‚’ๅฐ‘ใ—ใƒชใƒ•ใ‚กใ‚ฏใ‚ฟใƒชใƒณใ‚ฐใ—ใฆใ€ๅ˜ใชใ‚‹ใƒ†ใ‚ญใ‚นใƒˆใฎไปฃใ‚ใ‚Šใซ`
`ใ‚ณใƒณใƒใƒผใƒใƒณใƒˆใ‚’ไฝฟใ„ใพใ—ใ‚‡ใ†ใ€‚ + +Addressใ‚ณใƒณใƒใƒผใƒใƒณใƒˆใ‚’ใ‚คใƒณใƒใƒผใƒˆใ—ใพใ™ใ€‚ + +``` +import { Address } from "~~/components/scaffold-eth"; +``` + +ใใ—ใฆใ€ใƒกใƒƒใ‚ปใƒผใ‚ธใ‚’่กจ็คบใ™ใ‚‹ใƒ†ใƒผใƒ–ใƒซใ‚’ไปฅไธ‹ใฎใ‚ˆใ†ใซๆ›ดๆ–ฐใ—ใพใ™ใ€‚ + +``` + +
+
+ {message.message} + +``` + +ใ“ใ‚Œใซใ‚ˆใ‚Šใ€้•ทใ„ๆ–‡ๅญ—ๅˆ—ใ‚ˆใ‚Šใ‚‚ใฏใ‚‹ใ‹ใซ่ฆ‹ๆ „ใˆใŒใ‚ˆใใชใ‚Šใพใ™๏ผ :D + +![](/public/images/TheGraph-ScaffoldEth2/section-2/2_6_14.png) + +> ๆณจ๏ผšๅฎŒๅ…จใชใƒ•ใ‚กใ‚คใƒซใ‚’ใ”่ฆงใซใชใ‚ŠใŸใ„ๅ ดๅˆใฏใ€[ใ“ใกใ‚‰](https://gist.github.com/kmjones1979/26ef9633b61b17f237e88eb41bb688de)ใ‚’ใ”่ฆงใใ ใ•ใ„๏ผ diff --git "a/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-7_\343\203\225\343\203\255\343\203\263\343\203\210\343\202\250\343\203\263\343\203\211\343\201\256\345\205\254\351\226\213.md" "b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-7_\343\203\225\343\203\255\343\203\263\343\203\210\343\202\250\343\203\263\343\203\211\343\201\256\345\205\254\351\226\213.md" new file mode 100644 index 000000000..8dd62be49 --- /dev/null +++ "b/docs/TheGraph-ScaffoldEth2/ja/section-2/lesson-7_\343\203\225\343\203\255\343\203\263\343\203\210\343\202\250\343\203\263\343\203\211\343\201\256\345\205\254\351\226\213.md" @@ -0,0 +1,37 @@ +## ๅ…ฌ้–‹ + +### โœ… YOLO Vercel๏ผ + +ๆœ€ๅพŒใฎใ‚นใƒ†ใƒƒใƒ—ใฏใ€ใƒ•ใƒญใƒณใƒˆใ‚จใƒณใƒ‰ใ‚’vercelใซใƒ—ใƒƒใ‚ทใƒฅใ™ใ‚‹ใ“ใจใงใ™๏ผ ใ“ใ‚Œใฏใ€ๆฌกใฎใ‚ณใƒžใƒณใƒ‰ใง็ฐกๅ˜ใซ่กŒใ†ใ“ใจใŒใงใใพใ™ใ€‚ใ“ใฎใ‚ณใƒžใƒณใƒ‰ใƒฉใ‚คใƒณใ‚นใ‚คใƒƒใƒใ€Œvercel --build-env NEXT_PUBLIC_IGNORE_BUILD_ERROR=trueใ€ใฏใ€ๅŸบๆœฌ็š„ใซใƒ“ใƒซใƒ‰ใ‚จใƒฉใƒผใ‚’ใ‚นใ‚ญใƒƒใƒ—ใ—ใพใ™ใ€‚ + +ๅฐ‘ใ—ๆ™‚้–“ใŒใ‹ใ‹ใ‚‹ใ‹ใ‚‚ใ—ใ‚Œใพใ›ใ‚“ใฎใงใ€ใ‚ณใƒผใƒ’ใƒผใ‚’้ฃฒใฟใชใŒใ‚‰ๅพ…ใกใพใ—ใ‚‡ใ†ใ€‚โ˜• + +``` +yarn vercel:yolo +``` + +ไปฅไธ‹ใฎใƒ—ใƒญใƒณใƒ—ใƒˆใŒ่กจ็คบใ•ใ‚Œใ‚‹ใฏใšใงใ™ใ€‚ + +``` +Vercel CLI 28.20.0 +? Set up and deploy โ€œ~/projects/ethereum/scaffold-eth-2-subgraph-package-workshop/packages/nextjsโ€? [Y/n] +y +? Which scope do you want to deploy to? myscope +? Link to existing project? [y/N] n +? Whatโ€™s your projectโ€™s name? sendmessage +? In which directory is your code located? ./ +Local settings detected in vercel.json: +Auto-detected Project Settings (Next.js): +- Build Command: next build +- Development Command: next dev --port $PORT +- Install Command: `yarn install`, `pnpm install`, or `npm install` +- Output Directory: Next.js default +? Want to modify these settings? [y/N] n +๐Ÿ”— Linked to kevin-kevinjonescr/testing (created .vercel) +๐Ÿ” Inspect: https://vercel.com/kevin-kevinjonescr/testing/E2rfnyzC4ud5DskrwhybQ4Hiicjx [2s] +โœ… Production: https://testing-red.vercel.app [3m] +๐Ÿ“ Deployed to production. Run `vercel --prod` to overwrite later (https://vercel.link/2F). +๐Ÿ’ก To change the domain or build command, go to https://vercel.com/kevin-kevinjonescr/testing/settings +``` + +Scaffold-ETHใจThe Graphใซใคใ„ใฆๅญฆใ‚“ใงใ„ใŸใ ใใ€ใ‚ใ‚ŠใŒใจใ†ใ”ใ–ใ„ใพใ™ใ€‚ใ“ใฎใƒใƒฅใƒผใƒˆใƒชใ‚ขใƒซใ‚’ๆฅฝใ—ใ‚“ใงใ„ใŸใ ใ‘ใŸใ‹ใ€ใพใŸใ€ใƒ•ใ‚ฃใƒผใƒ‰ใƒใƒƒใ‚ฏใŒใ‚ใ‚ŒใฐใœใฒใŠ่žใ‹ใ›ใใ ใ•ใ„ใ€‚The GraphใฎDiscordใซๅ‚ๅŠ ใ—ใฆใ€web3ใฎๆ—…ใงใฎ่ณชๅ•ใ‚„ๅ•้กŒใŒใ‚ใ‚Œใฐๆฐ—่ปฝใซใ”้€ฃ็ตกใใ ใ•ใ„๏ผ ๅ‹้”ใ‚ˆใ€ใƒ–ใƒญใƒƒใ‚ฏใƒใ‚งใƒผใƒณ้–‹็™บ๏ผˆBUIDLing๏ผ‰ใ‚’็ถšใ‘ใ‚ˆใ†๏ผ \ No newline at end of file diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-1.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_1_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-1.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_1_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-2.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_1_2.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-2.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_1_2.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-3.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_1_3.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-3.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_1_3.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-4.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_1_4.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson1-4.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_1_4.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-14.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_1_5.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-14.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_1_5.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-1.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_3_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-1.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_3_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-2.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_3_2.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-2.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_3_2.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-3.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_3_3.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-3.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_3_3.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-4.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_3_4.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-4.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_3_4.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-5.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_3_5.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-5.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_3_5.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-6.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_3_6.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson3-6.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_3_6.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson4-1.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_4_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson4-1.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_4_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson5-1.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_5_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson5-1.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_5_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson5-2.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_5_2.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson5-2.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_5_2.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson5-3.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_5_3.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson5-3.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_5_3.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson6-1.png b/public/images/TheGraph-ScaffoldEth2/section-0/0_6_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-0/Lesson6-1.png rename to public/images/TheGraph-ScaffoldEth2/section-0/0_6_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson1-1.png b/public/images/TheGraph-ScaffoldEth2/section-1/1_1_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson1-1.png rename to public/images/TheGraph-ScaffoldEth2/section-1/1_1_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson1-2.png b/public/images/TheGraph-ScaffoldEth2/section-1/1_1_2.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson1-2.png rename to public/images/TheGraph-ScaffoldEth2/section-1/1_1_2.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson1-3.png b/public/images/TheGraph-ScaffoldEth2/section-1/1_1_3.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson1-3.png rename to public/images/TheGraph-ScaffoldEth2/section-1/1_1_3.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-1.png b/public/images/TheGraph-ScaffoldEth2/section-1/1_2_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-1.png rename to public/images/TheGraph-ScaffoldEth2/section-1/1_2_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-2.png b/public/images/TheGraph-ScaffoldEth2/section-1/1_2_2.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-2.png rename to public/images/TheGraph-ScaffoldEth2/section-1/1_2_2.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-3.png b/public/images/TheGraph-ScaffoldEth2/section-1/1_2_3.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-3.png rename to public/images/TheGraph-ScaffoldEth2/section-1/1_2_3.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-4.png b/public/images/TheGraph-ScaffoldEth2/section-1/1_2_4.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson2-4.png rename to public/images/TheGraph-ScaffoldEth2/section-1/1_2_4.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson3-1.png b/public/images/TheGraph-ScaffoldEth2/section-1/1_3_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson3-1.png rename to public/images/TheGraph-ScaffoldEth2/section-1/1_3_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson4-1.png b/public/images/TheGraph-ScaffoldEth2/section-1/1_4_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-1/Lesson4-1.png rename to public/images/TheGraph-ScaffoldEth2/section-1/1_4_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson2-1.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_2_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson2-1.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_2_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson2-2.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_2_2.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson2-2.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_2_2.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson2-3.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_2_3.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson2-3.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_2_3.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson3-1.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_3_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson3-1.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_3_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson3-2.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_3_2.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson3-2.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_3_2.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio1.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_4_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Studio1.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_4_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio2.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_4_2.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Studio2.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_4_2.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio3.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_4_3.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Studio3.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_4_3.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio4.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_4_4.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Studio4.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_4_4.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio5.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_4_5.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Studio5.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_4_5.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio6.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_5_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Studio6.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_5_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_5_2.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_5_2.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5-1.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_5_3.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5-1.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_5_3.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5-3.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_5_4.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5-3.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_5_4.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5-4.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_5_5.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5-4.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_5_5.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Studio7.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_5_6.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Studio7.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_5_6.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-1.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_1.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-1.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_1.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-10.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_10.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-10.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_10.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-11.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_11.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-11.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_11.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-12.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_12.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-12.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_12.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-13.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_13.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-13.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_13.png diff --git a/public/images/TheGraph-ScaffoldEth2/section-2/2_6_14.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_14.png new file mode 100644 index 000000000..e8dfb2c0f Binary files /dev/null and b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_14.png differ diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-2.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_2.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-2.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_2.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-3.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_3.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-3.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_3.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-4.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_4.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-4.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_4.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-5.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_5.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-5.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_5.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-6.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_6.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-6.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_6.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-7.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_7.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-7.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_7.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-8.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_8.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-8.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_8.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-9.png b/public/images/TheGraph-ScaffoldEth2/section-2/2_6_9.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson6-9.png rename to public/images/TheGraph-ScaffoldEth2/section-2/2_6_9.png diff --git a/public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5-2.png b/public/images/TheGraph-ScaffoldEth2/section-2/Lesson5-2.png similarity index 100% rename from public/images/The_Graph-SE2-Subgraph-package/section-2/Lesson5-2.png rename to public/images/TheGraph-ScaffoldEth2/section-2/Lesson5-2.png diff --git a/public/metadata/TheGraph-ScaffoldEth2/description.json b/public/metadata/TheGraph-ScaffoldEth2/description.json new file mode 100644 index 000000000..fb3b5dce4 --- /dev/null +++ b/public/metadata/TheGraph-ScaffoldEth2/description.json @@ -0,0 +1,9 @@ +{ + "project_id": 901, + "title": "TheGraph ScaffoldETH2", + "difficulty": "advanced", + "chain": "Ethereum", + "description": "๐Ÿ‘‰ ScaffoldETH2ใจSubgraphใ‚’ไฝฟใฃใฆใ€ไปปๆ„ใฎใ‚ขใƒ‰ใƒฌใ‚นๅŒๅฃซใงใƒกใƒƒใ‚ปใƒผใ‚ธใ‚’้€ใ‚Šๅˆใˆใ‚‹ๅˆ†ๆ•ฃๅž‹ใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณใ‚’ๆง‹็ฏ‰ใ—ใพใ™ใ€‚", + "total_sections": 3, + "total_lessons": 17 +} diff --git a/public/metadata/TheGraph-ScaffoldEth2/learn-banner.png b/public/metadata/TheGraph-ScaffoldEth2/learn-banner.png new file mode 100644 index 000000000..054301682 Binary files /dev/null and b/public/metadata/TheGraph-ScaffoldEth2/learn-banner.png differ diff --git a/public/metadata/TheGraph-ScaffoldEth2/square.png b/public/metadata/TheGraph-ScaffoldEth2/square.png new file mode 100644 index 000000000..976f35c10 Binary files /dev/null and b/public/metadata/TheGraph-ScaffoldEth2/square.png differ