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.
On Netlify:
- 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