mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 15:41:02 +00:00
rpc-v2: Change method name for provided events (#1593)
This PR changes the method name of the subscription that provides JSON-RPC notifications (ie subscription events). This brings the raw JSON response in sync with the rpc-spec-v2 format. Changes: - `chainHead_unstable_follow` to `chainHead_unstable_followEvent` [spec/chainHead](https://github.com/paritytech/json-rpc-interface-spec/blob/main/src/api/chainHead_unstable_follow.md#notifications-format) - `transaction_unstable_submitAndWatch` to `transaction_unstable_watchEvent` [spec/tx](https://github.com/paritytech/json-rpc-interface-spec/blob/main/src/api/transaction_unstable_submitAndWatch.md#notifications-format) @paritytech/subxt-team --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -30,7 +30,7 @@ pub trait ChainHeadApi<Hash> {
|
|||||||
///
|
///
|
||||||
/// This method is unstable and subject to change in the future.
|
/// This method is unstable and subject to change in the future.
|
||||||
#[subscription(
|
#[subscription(
|
||||||
name = "chainHead_unstable_follow",
|
name = "chainHead_unstable_follow" => "chainHead_unstable_followEvent",
|
||||||
unsubscribe = "chainHead_unstable_unfollow",
|
unsubscribe = "chainHead_unstable_unfollow",
|
||||||
item = FollowEvent<Hash>,
|
item = FollowEvent<Hash>,
|
||||||
)]
|
)]
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ 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_submitExtrinsic",
|
name = "transaction_unstable_submitAndWatch" => "transaction_unstable_watchEvent",
|
||||||
unsubscribe = "transaction_unstable_unwatch",
|
unsubscribe = "transaction_unstable_unwatch",
|
||||||
item = TransactionEvent<Hash>,
|
item = TransactionEvent<Hash>,
|
||||||
)]
|
)]
|
||||||
|
|||||||
Reference in New Issue
Block a user