-
Notifications
You must be signed in to change notification settings - Fork 204
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
Document or don't rename transaction fields #144
Comments
Hi @jeapostrophe Thanks for the comment and apologies for the delayed response. |
I think it makes a lot of sense to change the naming here to be consistent with our naming spec for Transactions. But doing so would mean a breaking change. I'm adding this issue to #654 to track it whenever we want to make a major version bump. |
I went through the list, here are names that are confusingly different (there are others that have some variation but semantically the same): from - Sender It's not totally clear to me whether it's worth changing some of these now (maybe it was 3 years ago when this issue was opened). We are about to do a major version bump so if we want to change them, now would be a good time. But this will likely cause a good amount of churn for people using this SDK when they upgrade to version 3. |
#804 addresses this -- we have closed the gap on naming consistencies, and the changes will go out in a breaking version bump |
The Algorand document lists names for the fields --- https://developer.algorand.org/docs/reference/transactions/ --- and the JS SDK (maybe the other's too, but I don't know) doesn't uses these names.
For example, the JS SDK uses
firstRound
rather thanFirstValid
(field name) orfv
(codec name). Basically every field has a different name.There's no documentation that I can find anywhere that lists what the actual names the JS SDK uses. Instead, I just have to always have the source code open (https://github.com/algorand/js-algorand-sdk/blob/develop/src/transaction.ts#L70)
This is really disruptive and difficult for developing.
The text was updated successfully, but these errors were encountered: