Save added ABIs into LocalStorage
stwiname opened this issue · 8 comments
Storing ABIs in local storage rather than the file system via the server would allow the website to be statically hosted
This is a pretty often requested feature! Let me plan out how to implement this. Thanks for making this issue!
Server is no longer required!
You can now use Eth95 via any browser: https://eth95.dev/
But I still want to implement localstorage to save ABIs. So I'll leave this issue open and just change the title.
Any updates for this issue?
PRs are welcomed!
Ok, I will have a try. I am reading the code and locating where should I make changes. I have some experience with React, but not with Express Server. I will first try to implement the localStorage feature. Then I will think about how to store contracts to the server, then read from it.
@adrianmcli I am not familiar with your code. I may need some help from you.
The program will save contracts into local storage when addContract() is triggered.
I am thinking about reading the local storage when the compound is mounted. The program reads from the local storage and overwrites the contracts
. With the correct contracts
, the UI should be updated with saved contracts.
I have two questions here.
- How
contracts
updates the UI. - How can we update
contracts
?
I opened pr #38. Please review it. Feel free to comment on it. @adrianmcli
Fixed by #38