This project is a real integration of CoreWriter on hyperEVM testnet, using Scaffold-ETH 2 (NextJS, Hardhat, Wagmi, Typescript).
- 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.
packages/hardhat/- Contracts, deployment scripts, and tests.packages/nextjs/- NextJS frontend, hooks, and components to interact with the contract.- Main page:
/- Full CoreWriter interface
- Install dependencies
yarn install
- Set up your account and mnemonic
- Create the file
packages/hardhat/.env:MNEMONIC="your 12 words here"
- Create the file
- Getting funds from the Faucet
- Get some hyperEVM testnet USDC on the faucet https://app.hyperliquid-testnet.xyz/drip (you need 10 usdc on arbitrum mainnet).
- You can route the assets between hyperEVM and hyperCORE in https://app.hyperliquid-testnet.xyz/portfolio
- In order to get HYPE to deploy and make txs you need to trade that USDC in https://app.hyperliquid-testnet.xyz/trade and send HYPE to hyperEVM
- Configure your account to use HyperEVM Big Blocks
- Go to https://hyperevm-block-toggle.vercel.app/
- Make sure you have funds on the hyperEVM testnet.
- Set the top toggle to Testnet
- Click the "BIG" button to enable HyperEVM Big Blocks
- Accept the tx
- Deploy the contract
yarn deploy:hyperevmTestnet
- Start the frontend
yarn start
- Open the main interface
- Go to http://localhost:3000
- 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.
yarn test- hyperEVM Testnet
- Chain ID: 998
- RPC: https://rpc.hyperliquid-testnet.xyz/evm
- Explorer: https://testnet.purrsec.com/
- The main page is fully adapted for CoreWriter with user-friendly forms and action history.
- You can still use
/debugto interact with any deployed contract in an advanced way. - If you have questions, check the
COREWRITER_README.mdfile for technical details and advanced examples.