Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(local-ic): bash driver #1207

Merged
merged 19 commits into from
Aug 20, 2024
Merged

feat(local-ic): bash driver #1207

merged 19 commits into from
Aug 20, 2024

Conversation

Reecepbcups
Copy link
Member

@Reecepbcups Reecepbcups commented Aug 7, 2024

ref #795

Summary

Basic external bash driver which can be imported to interact with local-ic. Why? it's easier sometimes and I find myself wanting a helper constantly.


  • Add to main readme (depends on feat(local-ic): typescript driver #1203 first)
  • External Sourcing
  • PollForStart
  • Arbitrary execution (binary, queries, or the container shell itself)
  • Relayers (Stop, Start, Exec, Get Channels)
  • CosmWasm (Store file, dump state)
  • Faucet
  • Add Full Node
  • Recover & View key/address
  • Store any file

image

Copy link

vercel bot commented Aug 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
interchaintest-docs ⬜️ Ignored (Inspect) Visit Preview Aug 15, 2024 10:53pm

@Reecepbcups Reecepbcups marked this pull request as ready for review August 10, 2024 23:57
@Reecepbcups Reecepbcups requested a review from a team as a code owner August 10, 2024 23:57
@AntiTyping
Copy link

Looks good. One thing that I would add in the future would be some help message if a bash function is called with the wrong number of arguments - but that depends on feedback from users. The scripts are easy to understand and anyone who has knowledge of cosmos should not have an issue with reading them.

ICT_ADD_FULL_NODE() {
API=$1
CHAIN_ID=$2
AMOUNT=$3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would consider using local

local API=$1, CHAIN_ID=$2, AMOUNT=$3

in this way variables will not leak into outside context which might make debugging harder especially if multiple functions are called in succession with different args

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolved in: 92e712f

@Reecepbcups Reecepbcups merged commit a2d674e into main Aug 20, 2024
22 checks passed
@Reecepbcups Reecepbcups deleted the reece/bash-client branch August 20, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants