-
Notifications
You must be signed in to change notification settings - Fork 76
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
Conversation
There was a problem hiding this 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"
There was a problem hiding this 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"
}
There was a problem hiding this 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).
There was a problem hiding this 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)
There was a problem hiding this 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)
There was a problem hiding this 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: complete! all files reviewed, all discussions resolved (waiting on @yair-starkware)
}, | ||
"required": [ | ||
"transaction_index", | ||
"revert_error" |
There was a problem hiding this comment.
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
.
To follow-up changes in the upstream spec: starkware-libs/starknet-specs#174
This change is