scio-labs / ethathon

Full-Stack Boilerplate for Smart Contract & DApp Development (EVM)

Home Page:https://ethathon.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Challenge adding a different EVM network

antonionardella opened this issue · comments

Hello,

I am attempting to integrate a public EVM testnet into the boilerplate, but I am encountering some obstacles. I have added the necessary RPC and chain_id where required, but I am unsure of the modifications or additions I need to make in the packages/contracts/deployments subfolder for the new chain to be properly recognized.

I would greatly appreciate it if someone could spare the time to guide me on the steps to take and what adjustments need to be made in order to successfully add a new EVM chain.

Here you can see the changes I applied

main...antonionardella:smrathon:main

Thank you

Hey @antonionardella, after you've added the new chain to your frontend environment (w/o the .example ending) the wagmiClient should automatically be configured correctly and deployments.ts looks for the new deployment files from the contracts package. In the contracts package, you need to set up the environment as well, update the hardhat.config.ts accordingly, add a new deploy script for the chain in the package.json, build the contracts and run the deploy ;) Does that help?

Also, please note that I haven't updated this boilerplate in a while (instead focussed more on ink!athon) but it should still all work. 🫡