This is an interface which interacts with the timelock auction contracts. It uses polkadotjs and etf.js to encrypt bids for the future, ensuring that bids can only be revealed after the auction has passed its deadline.
The auction dapp is hosted on our testnet, accessible at https://auction.idealabs.network. It allows participants to participate in auctions of ERC721 tokens.
- install the polkadotjs extension and create an address
- Send us a message on element to request access and tokens.
Create a local .env.local
and fill in the details below. The contract must be deployed on the network that the node is connected to.
NEXT_PUBLIC_CONTRACT_ADDRESS="the address of the proxy contract"
NEXT_PUBLIC_NODE_DETAILS="fully qualified url of the node"
npm i && run dev
The project can be run from the docker image by running:
docker pull ideallabs/etf-auction-ui
docker run -p 3000:3000 --rm ideallabs/etf-auction-ui
To build the docker image, from the root, execute:
docker-compose build
This project can also be run as a static site, which can then be hosted in IPFS, for example.
In order to use as a static site, generate the out
directory by running:
npm run export
The static site is generated in the generated directory. Not that this will run a custom script, replacer.js
, which handles replacing file paths in the generated build. See this open issue on the next.js github for more insights into why this is done.