neo-project / neo

NEO Smart Economy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove ONE OF THE duplicated PLUGINS StatesDumper and StorageDumper

vncoelho opened this issue · comments

These two plugins were created with very similar ideas.
They can be merged into one with parameters or functions to guide its functionality.

It will also improve maintenance and organization.

@superboyiii, can you confirm that? I believe that one of them was created by you, and the other by Igor and I.

Makes sense. My only concern is compatibility here, we (and I suspect we're not alone) have some tooling that uses StorageDumper output.

Good idea but plugins are already there, can merge into one, but keep the original.

Makes sense. My only concern is compatibility here, we (and I suspect we're not alone) have some tooling that uses StorageDumper output.

This is the one we originally created. Glad to know you use it.

I would sure keep compatibility, maybe just the name of the plugin will change.

We can configure what kind of output we want, but it's better to unify

I can make a new one If needed, with the two combined. I would be rewriting it. Also would be more features and Unit tests, If needed.

let me do this with time, there is no rush in this task.

I can make a new one If needed, with the two combined. I would be rewriting it. Also would be more features and Unit tests, If needed.

but I appreciate your initiative, @cschuchardt88

I can make a new one If needed, with the two combined. I would be rewriting it. Also would be more features and Unit tests, If needed.

vitor started, should let vitor do it.

I did not yet started and it may take time...aheuahuea

@superboyiii @roman-khimov

I checked here with careful.
Both plugins are the same. ahueaheuaea
There are just some minor differences in the saving procedure of each of them.

Have you been using one of these plugins?
If so, which of them?

I updated the title from unify to remove duplicated.
There is nothing to UNIFY from these two plugins.

I checked the history on neo-modules and also verified code here.
I do not know why, in the past, @Ashuaidehao and @superboyiii pushed this new module instead of refactoring StateDumper.
Since then, we have these two DUPLICATED code.

As @roman-khimov said he was using StorageDumper and I also verified its code is more compact than my previous StateDumper plugin.
Thus, I kept StorageDumper