Hello! 👋 Welcome to the Lunie Light Beta repo.
Lunie Light is a staking interface for proof-of-stake blockchains in the Cosmos ecosystem — built for speed, simplicity, and ease-of-use.
Lunie Light uses Nuxt.js, and relies on the REST API of a Cosmos node for data.
Lunie Light will work with the Keplr Browser Extension and the Ledger Nano. Local key management should only be used for testing and development purposes.
Features:
- ✅ Super simple — one config file
- 🏎 Fast, modern web technologies
- 📱 Fully responsive
- ⛓ Real-time on-chain data
- 🔭 Explore mode
- 💸 Multi-denom balances support
- 🥩 Staking and unstaking management
- 💯 Complete validator list with instant search
- 🤗 Validator profiles for every validator
- 🧾 Transaction history
- Edit the
networks.js
config file with the relevant details for your project - Run
yarn install
to install the app dependencies - Run
yarn dev
to serve the app atlocalhost:3000
If the node you want to connect to doesn't have CORS enabled, you can't use it with the application. In this case use a CORS proxy (only in development) i.e. https://cors-anywhere.herokuapp.com/.
On-chain data is managed using the Vuex store. Understanding how Vuex works will be helpful for manipulating data in Lunie Light.
- Middleware in the
default.vue
file will calldata/init
to initialize the connection the Cosmos REST API before any pages are rendered. If the API is not initialized, requests will fail and data will not flow 🏄♂️ - Mutations and Actions are stored in the
data.js
file which manages the Vuex store and API requests - Actions in
data.js
will call query functions in thecosmos-source.js
file. - Reducers in
cosmos-reducers.js
parse the responses from the API into a format that is easy for frontend Vue components to understand and work with
Lunie Light will work out of the box with Cosmos-SDK v0.40 assuming there are no missing modules or modifications.
Check the /apis
folder for the files responsible for mapping chain data to the Lunie frontend. There are deprecated Cosmos-SDK v0.39 files there for your convenience.
It is recommended that you manually go through the UI and check which requests are throwing errors. You should also manually test all functions and actions to make sure everything works as expected on your chain.
If your chain is missing modules or you have changed the Cosmos data model you will have to update the source and reducer files to accomodate these changes.
- Add your forked 🍴 repo
- Go to "Site Settings" > "Build & Deploy" > "Edit Settings"
- Set the build command to
yarn generate
- Set the publish directory to
dist
Running the container: You can run the image using make run
, or the below:
docker run -it --rm -e PORT=8080 -e NODE_ENV=production -p 8080:8080 ovrclk/lunie-lite
You can access the applicaiton on http://localhost:8080
Building the image: The simplest way you can build a container is using Buildpacks, after you install Buildpacks, run make image
or the below:
pack build ovrclk/lunie-lite --builder heroku/buildpacks:18