-
Notifications
You must be signed in to change notification settings - Fork 107
Feat/only fee #2040
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/only fee #2040
Conversation
* Make envelope the default fetch when no subcommand is given In order to flatten an optional field, I needed to remove the group(skip) on network::Args. But this lead to a conflict because there are multiple groups with an implicit name of 'Args' that were all trying to be flattened. The solution to this was add a specific group id to network::Args. * Make envelope the default fetch when no subcommand is given * Refactor to use args impl * Clean up
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
e9e1369 to
bb3f216
Compare
|
I was able to test out fetching a failed soroban tx, and here was the result:
The way I was able to test a failed tx was to create a fn in the contract that was time based - so after a certain timestamp it would panic. And then I simulated the tx with a "passing" timestamp, and then sent it with a failing timestamp. Not sure if there is an easier way to reproduce this scenario, I was running into txns failing during simulation and therefore not making it to the ledger to be fetched later. |
|
Btw, this work really elucidates the fees for soroban transactions which is hugely beneficial for devs! Thank you @elizabethengelman |
|
Just pushed up a change to the table, to include max fees. For a soroban tx: And for a fee bump tx: For the fee bump txns, should the inclusion fee be included in the table? Or are we okay with just the fee charged and max fee? |
|
The table presentation was very effective when all of the rows visually communicated that fees came together to make up the larger amounts (#2040 (comment)). But in the new table (#2040 (comment)), that property is lost a bit because the max fee is in the same table and its cell is the same size. Is there a way we can represent the refund maybe as a component? The refund is a first class concept. The way that it shows up in events for example in protocol 23 is that there are two events, an initial fee event charging the max fee, and then a refund fee that pays back an amount. For example, something like: |
I like it! The refunded amount is the proposed fee - the charged fee, is that correct? |
|
@leighmcculloch @janewang updated. I can also play with bolding and making text different colors as well. |
|
@elizabethengelman is this ready to go in? |
|
@elizabethengelman #2035 is merged. Could we resolve conflicts and merge this one too? |
|
@janewang conflicts have been resolved! Besides waiting for CI to finish, i think we'd also need an approval to get this merged in. |
What
Based on #2035
Closes #2064
Adds another command for seeing the breakdown of the transaction's fee.
stellar tx fetch fee <HASH>Why
To help with understanding and clarity around fees.
Known limitations
I'd love some feedback/ideas about the specifics of how we display the fee table.