Skip to content

Rogue-NET/juno_faucet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

juno_faucet_frontend

What is this?

A front end for the Junox faucet hosted here

Could also be used as boilerplate for wasm web apps

Powered by Juno Network + cosmjs

Web Server + Cosmjs deployment by donkeydonkey

Front end by LeTurt

Front end stack (Rust)

  • Yew - Framework for building wasm web apps
  • Trunk - Wasm web app bundler
  • Wasm-bindgen - Library for wasm <> javascript interactions
  • Gloo net - Library of HTTP wrappers for wasm apps
  • Bech32 - Library for encoding/decoding bech 32 format

Why?

  1. We saw a need for web testnet faucet in the ecosystem
  2. We put the faucet on a roguenet.io page to help spread awareness about our main project
  3. Builders gonna build

Usage

  • You could use the app to get some testnet juno
  • You could fork this front end to use as boilerplate for a wasm web app (just rip out anything you don't need)
  • You could use this as a template for building your own faucet implementation

Wanna fork?

Requirements

  • Rust - Programming language for 🦀
  • Trunk - Wasm web app bundler

Set target:

$ rustup target add wasm32-unknown-unknown

Clone this repo:

$ git clone https://github.com/LeTurt333/juno_faucet

In the root of the repo you just cloned, run:

$ trunk serve

Open a browser window & go to:

http://127.0.0.1:8080/

Note: Trying to use the faucet on your own local trunk build will not work. You will need to spin up an instance of the cosmjs faucet and change the url in main.rs