CoretimeHub
A central hub where users can perform operations on their Coretime and easily access the marketplace.
The UI currently supports:
/regions
- Region partitioning
- Region interlacing
- Region transferring
- Naming Regions
- Region task assignment
- Listing regions on sale
/transfer
- Cross-Chain Region transfers (RegionX parachain <-> Coretime chain)
- Cross-Chain token transfers
/purchase
- Bulk sale dashboard
- Core procurement
/paras
- Parachain dashboard
- Parachain Id reservation
- Parachain code registration
/renew
/marketplace
- Browsing regions listed on sale
- Purchasing regions from the market
- Unlisting regions from the market
/orders
- Coretime order creation
- Coretime order contribution
Set up development environment
Before running the webapp locally it is required to have the proper environment set up. To be able to test all of the frontend functionality you should run the full Coretime-Mock network as described here.
Run locally
Before running locally the environment variables must be specified properly.
- Install NodeJs
npm i
npm run build
npm start
- Go to
http://localhost:3000
to interact with the webapp
Run with docker
The environment variables are automatically set in the Dockerfile; however, if you modify anything, those will need to be updated accordingly.
- Make sure to have Docker installed
- To build an image run:
docker build -t coretime-hub .
- To run the app:
docker run -dp 3000:3000 coretime-hub
- Go to
http://localhost:3000/
to interact with the webapp
Testing cross-chain region transfers
- Build the RegionX-Node
- Follow the Getting started with zombienet steps and run
npm run zombienet
- Set up the environment by running the initialization script after the parachains started producing blocks.
- Set the environment variables to the following:
WS_KUSAMA_RELAY_CHAIN="ws://127.0.0.1:9900"
WS_KUSAMA_CORETIME_CHAIN="ws://127.0.0.1:9910"
WS_REGIONX_PASEO_CHAIN="ws://127.0.0.1:9920"
EXPERIMENTAL=true
- Run
npm run dev
- Purchase a core from the bulk market
- Cross chain transfer the core from the Coretime chain to the RegionX parachain.
- Upon successful transfer the region record should be set on the RegionX parachain, and you should see the region location set to
RegionX chain
.