-
Notifications
You must be signed in to change notification settings - Fork 5
Stabilize transactionWatch to version 1
#144
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
Conversation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
|
My views from the other places lean in favour of stabilising this. I think that it's good to expose such a method for when people just want to submit a TX in relative isolation. When we want to coordinate with While having a higher level API like Subxt/PAPI on top is recommended, I'd prefer that one could also talk directly with these JSON-RPC methods to accomplish things. Without My final thought is that this function is in a separate group from others and new light clients etc could simply opt not to implement it if it is too much effort for them. My only reason against this method existing is that we do already have another means of submitting transactions, and so there is a part of me that does not like the fact that there are now two ways of doing something. |
|
For what it's worth, since smoldot is backwards-compatible with the |
|
We'll plan to merge this PR in the next few days (prob Monday) if there are no further objections. Ideall #146 should get merged first |
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
|
It would have been appreciated to not merge #146 (which modifies the API) and this PR together. The point of stabilizing is to finalize a specific API. Modifying the API right before stabilizing it isn't great. |
This reverts commit 602068f.
|
Sorry about that @tomaka! i'd forgotten that you were on holiday and had taken the lack of repsonse to mean there were no objections :) |
This PR ensures that the transaction API generates an `Invalid` events for transaction bytes that fail to decode. The spec mentioned the `Invalid` event at the jsonrpc error section, however this spec PR makes things clearer: - paritytech/json-rpc-interface-spec#146 While at it have discovered an inconsistency with the generated events. The drop event from the transaction pool was incorrectly mapped to the `invalid` event. Added tests for the API stabilize the API soon: - paritytech/json-rpc-interface-spec#144 Closes: #3083 cc @paritytech/subxt-team --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This PR stabilizes the following methods:
transactionWatch_unstable_submitAndWatch->transactionWatch_v1_submitAndWatchtransactionWatch_unstable_unwatch->transactionWatch_v1_unwatchOpened this PR to discuss the best path forward for
transactionWatch.We had different views about this method class on #139, and would love to get your feedback on this 🙏
cc @paritytech/subxt-team @tomaka @josepot