question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve IovReader/IovWriter achitecture

See original GitHub issue

Dependencies

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:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Isabellocommented, Oct 4, 2018

MultiChainSigner seems pretty good and explicit about what it does. I like it.

1reaction
webmaster128commented, Oct 4, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found