Skip to content

santanaruben/corewriter-example

Repository files navigation

CoreWriter dApp - Scaffold-ETH 2 + hyperEVM

This project is a real integration of CoreWriter on hyperEVM testnet, using Scaffold-ETH 2 (NextJS, Hardhat, Wagmi, Typescript).

🚀 Main Features

  • Real CoreWriter contract: All main CoreWriter functions implemented and exposed.
  • Deployment and testing on hyperEVM testnet.
  • NextJS frontend with a dedicated UI to interact with the contract.
  • Support for quick actions, history, and contextual help.

📦 Project Structure

  • packages/hardhat/ - Contracts, deployment scripts, and tests.
  • packages/nextjs/ - NextJS frontend, hooks, and components to interact with the contract.
  • Main page: / - Full CoreWriter interface

🛠️ Installation and Setup

  1. Install dependencies
    yarn install
  2. Set up your account and mnemonic
    • Create the file packages/hardhat/.env:
      MNEMONIC="your 12 words here"
  3. Getting funds from the Faucet
  4. Configure your account to use HyperEVM Big Blocks
  5. Deploy the contract
    yarn deploy:hyperevmTestnet
  6. Start the frontend
    yarn start
  7. Open the main interface

✨ What can you do?

  • Use quick actions to test all main CoreWriter functions:
    • Send limit orders
    • Transfer vault
    • Delegate tokens
    • Staking
    • Send spot tokens
    • Transfer USD class
    • Finalize EVM contracts
    • Add API wallets
  • View the history of actions created and executed by your account.
  • Consult contextual help and usage examples.

🧪 Testing

yarn test

🌐 Supported Networks


📚 Useful Resources


📝 Notes

  • The main page is fully adapted for CoreWriter with user-friendly forms and action history.
  • You can still use /debug to interact with any deployed contract in an advanced way.
  • If you have questions, check the COREWRITER_README.md file for technical details and advanced examples.

About

HyperEVM corewriter use example

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published