Improve IovReader/IovWriter achitecture
See original GitHub issueDependencies
The currently documented way to create an IovReader is complicated:
const knownChains = await withConnectors([await bnsConnector("ws://localhost:22345")]);
// reader is already there: knownChains[0].client, no writer required
const writer = new IovWriter(profile, knownChains);
const chainId = writer.chainIds()[0];
const reader = writer.reader(chainId);
So that the moment we need a reader to make a writer but need a writer to make a reader.
IovReader is responsible for writing to the blockchain
The term “reader” is irritating as IovReader is not only reading from the blockchain but also write signed transactions to it. It serves more as a networking component.
This becomes important when thinking about disconnect()
. Right now, in order to disconnect a writer, you need to disconnect all the readers and as soon as you disconnect a reader, the writer does not work anymore. This behavior would make more sense, if it was clear, that IovReader is IovWriter’s networking component.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
13 Architectural Writing Tips To Enhance Your Skills - Indeed
Understanding how to enhance your architectural writing skills can improve the quality of your work and increase reader engagement.
Read more >Young Architect Guide: 10 Tips for Writing About Architecture
As a highly visual construct, architecture is best framed by words that conjure emotive images in the mind of the reader. London-based writer...
Read more >5 Ways of Writing in Architecture - RTF | Rethinking The Future
Architecture can be portrayed very beautifully as art, something that's frozen in time and stands testimony to a vast number of philosophies, beliefs,...
Read more >Architectural Writing Career Path: New Career Options
We've all heard of architects, but architectural writing is a relatively unknown career path. To break it down for you, architectural writers ......
Read more >How to Write Like An Architect (+ Worksheet) - YouTube
Tips + techniques for learning how to write like an architect with a worksheet to guide you. Sharing my favorite tools and reference ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
MultiChainSigner
seems pretty good and explicit about what it does. I like it.I can live with IovWriter for now until we find a natural fit. It is unique and not misleading. From the ideas that exist now, I like MultiChainSigner most.