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: improve PayForBlobs CLI (backport #2411) #2435

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Sep 5, 2023

This is an automatic backport of pull request #2411 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

Closes #1600
Closes #2388
Closes #2392

Sorry for bundling so many logical changes in one PR.

## Description

- Accept `0x` prefixed arguments
- Improve error message if namespaceID is not 10 bytes
- Improve error message if no arguments are provided
- Mark `--from` as a required flag
- Add an example command
- Add an alias for `PayForBlob`
- Improve help message
- Remove `[]` brackets around required arguments
- Describe default for `--share-version`
- Describe default for `--namespace-version`

## Testing

```
$ celestia-appd tx blob PayForBlobs --help
Pay for a data blob to be published to Celestia.
namespaceID is the user-specifiable portion of a version 0 namespace. It must be a hex encoded string of 10 bytes.
blob must be a hex encoded string of any length.
This command currently only supports a single blob per invocation.

Usage:
  celestia-appd tx blob PayForBlobs namespaceID blob [flags]

Aliases:
  PayForBlobs, PayForBlob

Examples:
celestia-appd tx blob PayForBlobs 0x00010203040506070809 0x48656c6c6f2c20576f726c6421 \
	--chain-id private \
	--from validator \
	--keyring-backend test \
	--fees 21000utia \
	--yes
```

(cherry picked from commit 2ddb801)
@github-actions github-actions bot added the bot item was created by a bot label Sep 5, 2023
@rootulp rootulp self-assigned this Sep 5, 2023
@celestia-bot celestia-bot requested a review from a team September 5, 2023 20:59
@rootulp rootulp enabled auto-merge (squash) September 5, 2023 20:59
@codecov-commenter
Copy link

Codecov Report

Merging #2435 (a5b5c85) into v1.x (c4c77d7) will not change coverage.
Report is 1 commits behind head on v1.x.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             v1.x    #2435   +/-   ##
=======================================
  Coverage   20.52%   20.52%           
=======================================
  Files         138      138           
  Lines       15761    15761           
=======================================
  Hits         3235     3235           
  Misses      12219    12219           
  Partials      307      307           

@rootulp rootulp merged commit 4f677b8 into v1.x Sep 6, 2023
22 checks passed
@rootulp rootulp deleted the mergify/bp/v1.x/pr-2411 branch September 6, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot item was created by a bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants