An interface for EIP-5636: Delegation Registry, with source code available at 0xfoobar/token-delegation,
Built with svelte-kit, ethers and svelte-ethers-store.
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
- Clone the project with submodules
git clone --recurse-submodules [email protected]:0xnook/token-delegation-interface.git
- Install nix
- Enable flake support
- Run
nix develop
, this will install all npm deps and compile the contracts - (optional) install direnv and run
echo "use flake > .envrc
to automatically load all deps when entering the folder - 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 - On a separate terminal enter
./deploy-contracts.sh
to deploy the contracts to a local fork - Run
npm run dev
to start a frontend dev server
Illustrations made 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.