mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 18:11:03 +00:00
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:
@@ -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
|
/// See [`TransactionEvent`](crate::transaction::event::TransactionEvent) for details on
|
||||||
/// transaction life cycle.
|
/// transaction life cycle.
|
||||||
#[subscription(
|
#[subscription(
|
||||||
name = "transaction_unstable_submitAndWatch" => "transaction_unstable_watchEvent",
|
name = "transactionWatch_unstable_submitAndWatch" => "transactionWatch_unstable_watchEvent",
|
||||||
unsubscribe = "transaction_unstable_unwatch",
|
unsubscribe = "transactionWatch_unstable_unwatch",
|
||||||
item = TransactionEvent<Hash>,
|
item = TransactionEvent<Hash>,
|
||||||
)]
|
)]
|
||||||
fn submit_and_watch(&self, bytes: Bytes);
|
fn submit_and_watch(&self, bytes: Bytes);
|
||||||
|
|||||||
Reference in New Issue
Block a user