rpc-v2/tx: Rename transaction to transactionWatch (#3040)

This PR backports the changes from
https://github.com/paritytech/json-rpc-interface-spec/pull/107.

The `transaction` class becomes `transactionWatch`, and the other
functionality remains the same.

// cc @paritytech/subxt-team

---------

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2024-01-25 19:07:44 +02:00
committed by GitHub
parent 47e46d178b
commit 5c79ed37dc
2 changed files with 16 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json
title: Rename transaction to transactionWatch
doc:
- audience: Node Dev
description: |
Renamed `transaction_unstable_submitAndWatch` to `transactionWatch_unstable_submitAndWatch`,
`transaction_unstable_watchEvent` to `transactionWatch_unstable_watchEvent` and
`transaction_unstable_unwatch` to `transactionWatch_unstable_unwatch`.
crates:
- name: sc-rpc-spec-v2
@@ -29,8 +29,8 @@ pub trait TransactionApi<Hash: Clone> {
/// See [`TransactionEvent`](crate::transaction::event::TransactionEvent) for details on
/// transaction life cycle.
#[subscription(
name = "transaction_unstable_submitAndWatch" => "transaction_unstable_watchEvent",
unsubscribe = "transaction_unstable_unwatch",
name = "transactionWatch_unstable_submitAndWatch" => "transactionWatch_unstable_watchEvent",
unsubscribe = "transactionWatch_unstable_unwatch",
item = TransactionEvent<Hash>,
)]
fn submit_and_watch(&self, bytes: Bytes);