Improve way of seeing simulated costs of any tx
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 70/100
Research direction
Start with the stellar tx simulate command and compare its behavior with the existing stellar contract invoke --cost option. Trace how simulated transactions are processed and how cost information is written to stderr. Done means users can request simulation fee or cost information for any transaction without decoding the transaction manually.
Written by the indexing model from the issue text.
Description
What problem does your feature solve?
It is not easy to see the simulated cost of some of the transactions that the CLI generates and submits.
For example, when uploading a contract, there's no easy way to identify what the cost is going to be:
$ stellar contract upload --wasm contract.wasm --build-only \
| stellar tx simulate \
| stellar tx decode \
| jq '.tx.tx.fee'
1379621
What would you like to see?
An easier way to see the fees related to a tx simulation so that cost can be viewed for any operation before submitting.
The stellar contract invoke command has a --cost flag that when included causes cost information to be output to stderr. The same option could be added to stellar tx simulate.
Related
Discussed at https://discord.com/channels/897514728459468821/1533388251350568990/1533388251350568990
- Dominant language
- Rust
- Stars
- 123
- Forks
- 141
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 17
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stellar/stellar-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stellar/stellar-cli#2384 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
stellar/stellar-cli#2347 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
stellar/stellar-cli#2723 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
stellar/stellar-cli#2722 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
stellar/stellar-cli#2703 ·
All issues in stellar/stellar-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100