Skip to content

0xfoobar/delegate-cash-frontend

Repository files navigation

delegate-cash-frontend

An interface for EIP-5639: Delegation Registry, with source code available at 0xfoobar/token-delegation,

Built with svelte-kit, ethers and svelte-ethers-store.

Quick start

A nix dev environment with all the needed dependencies for running the frontend and compiling the contracts, and running an evm local chain is included for convenience

  1. Clone the project with submodules git clone --recurse-submodules git@github.com:0xfoobar/delegate-cash-frontend.git
  2. Install nix
  3. Enable flake support
  4. Run nix develop, this will install all npm deps and compile the contracts
  5. (optional) install direnv and run echo "use flake > .envrc to automatically load all deps when entering the folder
  6. On a new terminal enter anvil --chain-id 1337 to run an ethereum local node, copy one of the private keys and import to metamask to be able to sign transactions
  7. On a separate terminal enter ./deploy-contracts.sh to deploy the contracts to a local fork
  8. Run npm run dev to start a frontend dev server

Credits

Initial version by 0xnook

Illustrations by denkishi

UI components table, floating label inputs, theme toggler and hammer loader, where taken and adapted from individual codepen authors.

Design inspired by a beloved swedish furniture manufacturer.