RCasatta / liquid-web-wallet

Home Page:https://liquidwebwallet.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Liquid web wallet

NOTE: only a mock up for now

A Liquid web wallet that runs in the browser.

Watch-only mode works in any modern browser, connection with JADE requires web serial and works on chrome, chromium, edge.

Based on LWK wasm

Try locally

Requirements:

  • npm
  • wasm-pack

With nix install those with nix-shell

Execute once (and every time to update lwk_wasm dep):

$ npm install

Then

$ npm run start

Deploy

$ npm run build

Copy dist folder to the web server

Avoid ids

When possible avoid ids, use web components as "namespace" and querySelector on html elements, in case of multiple elements use querySelectorAll and maps in the js class

ADR

  • Avoid js frameworks, use vanilla JS and web standards
  • Use only lwk_wasm as npm dep
  • Keep it simple and maintainable
  • No images and almost no custom css, only picocss
  • encapsulate logics in web components
  • Global state, but every web component is in charge of itself, use events to communicates changes to other
  • Most html stay in a .html -> use html templates

About

https://liquidwebwallet.org/


Languages

Language:JavaScript 83.5%Language:HTML 16.5%