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

Refactor traceTransactions and estimateFee, and rename STRK to FRI #174

Merged
merged 5 commits into from
Nov 27, 2023

Conversation

ArielElp
Copy link
Collaborator

@ArielElp ArielElp commented Nov 24, 2023

This change is Reviewable

Copy link
Contributor

@yair-starkware yair-starkware left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, 1 of 1 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArielElp)


api/starknet_api_openrpc.json line 3641 at r1 (raw file):

                "description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally"
            },
            "FEE_ESTIMATE": {

Should fee estimates remain in gwei only?

Code quote:

"FEE_ESTIMATE"

Copy link
Contributor

@yair-starkware yair-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @ArielElp)


api/starknet_api_openrpc.json line 3900 at r3 (raw file):

                            "description": "a string encoding the execution trace up to the point of failure",
                            "type": "string"
                        }

It should not be called revert_error anymore (if called from starknet_call for example)

Code quote:

                        "revert_error": {
                            "title": "revert error",
                            "description": "a string encoding the execution trace up to the point of failure",
                            "type": "string"
                        }

Copy link
Collaborator Author

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @yair-starkware)


api/starknet_api_openrpc.json line 3641 at r1 (raw file):

Previously, yair-starkware (Yair) wrote…

Should fee estimates remain in gwei only?

They are gwei or fri, depending on the tx version (in practice, nodes will use the gas price published in blocks same as today, and will use price in wei/fri depending on the version). ATM I only changed the description, we can consider adding a unit field as we did for FEE_PAYMENT.


api/starknet_api_openrpc.json line 3900 at r3 (raw file):

Previously, yair-starkware (Yair) wrote…

It should not be called revert_error anymore (if called from starknet_call for example)

I think it's fine, IIUC this is the standard terminology in Ethereum (there is no tx to revert, but my "execution reverts).

Copy link
Contributor

@yair-starkware yair-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArielElp)

Copy link
Collaborator Author

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2, 1 of 1 files at r3.
Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @yair-starkware)

Copy link
Collaborator Author

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r4, 1 of 1 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @yair-starkware)

@ArielElp ArielElp merged commit bec6939 into master Nov 27, 2023
1 check passed
@ArielElp ArielElp deleted the refactor_simulate_and_estiamte branch November 27, 2023 13:20
},
"required": [
"transaction_index",
"revert_error"

Choose a reason for hiding this comment

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

This should be execution_error.

kkovaacs added a commit to eqlabs/pathfinder that referenced this pull request Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants