polaris icon indicating copy to clipboard operation
polaris copied to clipboard

refactor(scripts): Refactor the init.sh script into a genesis builder golang cli tool.

Open itsdevbear opened this issue 3 years ago • 10 comments

itsdevbear avatar Mar 16 '23 18:03 itsdevbear

Can I take this issue and start contributing?

LPLemnij avatar Mar 18 '23 17:03 LPLemnij

absolutely 🙏 thanks for wanting to contribute

itsdevbear avatar Mar 18 '23 18:03 itsdevbear

Was thinking it could be a executable that prompts you and stuff to add accounts, params etc.

itsdevbear avatar Mar 18 '23 18:03 itsdevbear

Ill take a look at the script more in depth and make a minimal one, then I can add whatever features and extra prompts you would like. Does that sound good?

LPLemnij avatar Mar 18 '23 18:03 LPLemnij

Sounds awesome :) thanks for contributing!

itsdevbear avatar Mar 18 '23 20:03 itsdevbear

@itsdevbear Hey, still working on this. Sorry it's slow, it's taken me a while to read up on the inner workings/fundamentals of cosmos and put everything together. I'm about half way done, hoping to have something out in the next 2 days or so. Currently I'm able to prompt user for editing whatever portion of the automatically generated genesis.json file they'd like. After that my plan is to prompt user for adding accounts, and then should be good to go.

LPLemnij avatar Mar 21 '23 00:03 LPLemnij

No need to apologize my friend :) sounds bullish

itsdevbear avatar Mar 21 '23 00:03 itsdevbear

@itsdevbear Unfortunately after we last talked I got a gnarly stomach virus that put me out until today. I'd love to still work on this, but probably won't be able to get it done for a week or two since I need to play catchup at work. If that's not too much time for you guys, I'll keep chipping away when possible. If it is, please let me know so I can stop work and hopefully contribute again later.

LPLemnij avatar Mar 26 '23 22:03 LPLemnij

No stress my friend hope you're feeling better

We've been chatting internally about this too, and would love to see wherever you're at now and give feedback :)

itsdevbear avatar Mar 27 '23 13:03 itsdevbear

@technicallyty

smsunarto avatar Mar 27 '23 23:03 smsunarto

working on this 🫡

anukul avatar Jul 25 '23 23:07 anukul

felt the need for this while trying to decouple e2e test fixture from containerized node
for running e2e tests against an in-process node (easier to debug in dev)

https://github.com/berachain/polaris/pull/928 was migrating the seed scripts to go as a starting point, but i believe the CLI can be extended to suit more cases (setting up nodes for e2e docker / local, hive etc), which is where shell scripts -> go should make more sense

anukul avatar Aug 13 '23 23:08 anukul