@morphl2/create-pyth-app
v1.0.1
Published
Create a new Morph application with Pyth Oracle integration
Downloads
16
Maintainers
Readme
Create Morph Pyth Kit
This package allows you to quickly set up a new Morph application with Pyth Oracle integration.
Usage
Run the following command to create a new Morph Pyth app:
npx @morphl2/create-pyth-app@latest
Follow the prompts to set up your new project.
What's Included
- Hardhat setup for smart contract development
- Foundry setup for additional testing options
- Next.js frontend with Web3 integration
- Pyth Oracle integration for price feed data
- Basic smart contract and frontend examples
Getting Started
After creating your project, follow these steps:
Navigate into the project directory:
cd your-project-name
Set up the frontend:
cd frontend
Create a
.env.local
file in the frontend directory:touch .env.local
Open the
.env.local
file and add your WalletConnect Project ID:NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=your_walletconnect_project_id_here
Replace
your_walletconnect_project_id_here
with your actual WalletConnect Project ID. You can get this ID by signing up at WalletConnect Cloud.Install frontend dependencies:
yarn install
Return to the project root and set up Hardhat:
cd ../contracts/hardhat yarn install
Set up Foundry:
cd ../foundry forge install
Return to the project root:
cd ../../
Refer to the README files in each directory for more information on how to use and develop your app.
Important Note
Make sure to keep your .env.local
file secure and never commit it to version control, as it contains sensitive information.
License
This project is licensed under the MIT License.