1.0.1 • Published 10 months ago

@morphl2/create-pyth-app v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

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:

  1. Navigate into the project directory:

    cd your-project-name
  2. Set up the frontend:

    cd frontend
  3. Create a .env.local file in the frontend directory:

    touch .env.local
  4. 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.

  5. Install frontend dependencies:

    yarn install
  6. Return to the project root and set up Hardhat:

    cd ../contracts/hardhat
    yarn install
  7. Set up Foundry:

    cd ../foundry
    forge install
  8. 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.

1.0.1

10 months ago

1.0.0

10 months ago