# 🏗 Firefly Shared Library Refactor - Phase No. 2 ###### last updated: 02/02/2022 ###### tags: `iota` `firefly` `documentation` ## Summary TODO ## Details TODO ### Module Re-Organization TODO: Write about re-organizing the flat directory of `*.ts` files to a hierarchy of modules. ### Error Handling TODO: Write about improving error handling infrastructure according to spec laid out in phase no. 1 (i.e. specific error types per-module, ease of throwing, more segmented / layered error handling). TODO: Write about the master list of errors for global API object corresponding with errors from `wallet.rs`, _but_ we can create another layer between the UI per-module that we throw from the wrapped API functions... :wink: ## Notes _None_ ## Other Parts - [Overview](https://hackmd.io/nzaGPEY5QnuaOomOoz5MCg) - [WIP] [Phase No. 1](https://hackmd.io/FpiM5-uWSGavKfFY89omxw)