This repository contains the frontend of the GrindURUS Protocol, deployed on the Internet Computer (ICP) using a frontend canister. The frontend is built with TypeScript and leverages dfx for canister management and deployment.
GrindURUS is a decentralized protocol with multiple components. This frontend provides an interface for interacting with various parts of the protocol, including minting, burning, depositing tokens, and accessing AI-powered tools.
src/grindurus-frontend— Source files for the frontend canister.package.json— Dependencies and scripts for the frontend.dfx.json— Configuration file for canisters on the Internet Computer.
- Panel Section:
- Displays main protocol features.
- Includes:
- TotalInfo: Shows total agents created, funds deposited, pools minted, grETH grinded
- IntentNFT Form: Allows users to mint an
IntentNFTwhich allow to auto grinds pools. - Create Form: Enables users to deposit tokens and mint a new isolated pool or agent.
- Tables Section:
- Allow to choose and view table
- Includes:
- Pools: Shows all minted pools, allow user to search by pool id
- Intents: Shows all minted intents, allow user to search by token id
- Agents: Shows all created agents, allow user to search by agent id
- Burn
grETHand receive tokens. - Mint new
grETHat a 1:1 ratio with ETH.
- Interface for the bridge
grAItoken. - Functionality under development.
- Allows to grind pool choosen by GrinderAI.
- Panel Section:
- Displays main pool features.
- Includes:
- PoolInfo: Shows addresses of oracles, tokens, pool owner and royalty receiver
- Interaction: Allows to interact with pool: desposit, withdraw, exist, buy royalty.
- Configuration: Enables users to configure pool parameters.
- Tables Section:
- Shows tables that include pool configs.
- Includes:
- Positions: Shows positions info
- Thresholds: Shows thresholds info
- Interface to interation with agent
- AI-powered assistant chat.
- Helps users navigate the protocol and get pool-related info.
First, install the project dependencies:
npm install-
Start the local replica:
dfx start --background
-
Deploy the frontend canister locally:
dfx deploy
-
Access the frontend:
After deployment, open the local frontend in your browser. The URL will look like:
http://<canister_id>.localhost:4943You can find the canister ID in
.dfx/local/canister_ids.json.
Make sure you're authenticated with your Internet Identity or have access to a wallet that can sign deployments.
-
Deploy to the Internet Computer mainnet:
dfx deploy --network ic
-
Access the frontend:
After a successful deployment, you'll get a public URL like:
https://<canister_id>.icp0.io
💡 You can edit environment-specific configurations in
dfx.jsonand optionally use.envfiles to manage variables.