Skip to content

Remove create_topic RPC and watch API#101

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/remove-create-topic-rpc
Draft

Remove create_topic RPC and watch API#101
Copilot wants to merge 2 commits intomainfrom
copilot/remove-create-topic-rpc

Conversation

Copy link

Copilot AI commented Feb 20, 2026

Removes the wc_createTopic RPC method and the irn_watchRegister/irn_watchUnregister watch API, including all associated types, client methods, and the webhook example.

relay_rpc

  • Removed CreateTopic, CreateTopicError and all watch types (WatchRegister, WatchUnregister, WatchError, WatchRegisterResponse)
  • Removed Params::CreateTopic, Params::WatchRegister, Params::WatchUnregister enum variants
  • Deleted rpc/watch.rs module entirely

relay_client

  • Removed http::Client::create_topic, watch_register, watch_register_behalf, watch_unregister
  • Removed WatchRegisterRequest, WatchUnregisterRequest, HttpClientError::Jwt
  • Removed websocket::Client::create_topic
  • Dropped unused origin field from http::Client (was only populated to support watch JWT claims)

root

  • Deleted examples/webhook.rs and removed its [[example]] entry and warp dev-dependency

How Has This Been Tested?

Existing unit tests pass (cargo test -p relay_rpc -p relay_client).

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • binaries.soliditylang.org
    • Triggering command: /home/REDACTED/work/reown-rust/reown-rust/target/debug/build/relay_rpc-c16ca19e5d190591/out/../../../../.foundry/bin/forge /home/REDACTED/work/reown-rust/reown-rust/target/debug/build/relay_rpc-c16ca19e5d190591/out/../../../../.foundry/bin/forge build --contracts=relay_rpc/contracts --cache-path /home/REDACTED/work/reown-rust/reown-rust/target/debug/build/relay_rpc-c16ca19e5d190591/out/../../../../.foundry/forge/cache --out /home/REDACTED/work/reown-rust/reown-rust/target/debug/build/relay_rpc-c16ca19e5d190591/out/../../../../.foundry/forge/out 8bff5/build_script_build-7f48b6ffb558bff5.25hh9b8cgpung0klf2eux2wr6.0yetwzb.rcgucfg(feature, values()) 8bff5/build_script_build-7f48b6ffb558bff5.26nxbzwnhj0jun2idwhmpp51o.0yetwzb.rcgu-C 8bff5/build_script_build-7f48b6ffb558bff5.26phwlp9tw2xm5fx3bo2yxwjg.0yetwzb.rcgu.o 8bff5/build_script_build-7f48b6ffb558bff5.2g06m1oemylgspsn6o6b9qqjd.0yetwzb.rcgu.o 8bff5/build_script_build-7f48b6ffb558bff5.2gwcqiuke1fkyot6v86n0v7s6.0yetwzb.rcgu.o 8bff�� 8bff5/build_script_build-7f48b6ffb558bff5.2nf96x6renfbnl12hu9nfhx9h.0yetwzb.rcgu.o 8bff5/build_script_build-7f48b6ffb558bff5.2xjdbkpd3hnfhi2pztm3bp85k.0yetwzb.rcgu.o de/node/bin/as c 826f7a68079e6751-E pointer os.358bef6722a45-Wall (dns block)
    • Triggering command: /home/REDACTED/work/reown-rust/.codeql-scratch/dbs/rust/working/target/debug/build/relay_rpc-37c5f631bf17a953/out/../../../../.foundry/bin/forge /home/REDACTED/work/reown-rust/.codeql-scratch/dbs/rust/working/target/debug/build/relay_rpc-37c5f631bf17a953/out/../../../../.foundry/bin/forge build --contracts=relay_rpc/contracts --cache-path /home/REDACTED/work/reown-rust/.codeql-scratch/dbs/rust/working/target/debug/build/relay_rpc-37c5f631bf17a953/out/../../../../.foundry/forge/cache --out /home/REDACTED/work/reown-rust/.codeql-scratch/dbs/rust/working/target/debug/build/relay_rpc-37c5f631bf17a953/out/../../../../.foundry/forge/out /home/REDACTED/work/reown-rust/.codeql-scratch/dbs/rust/working/target/debug/deps/libsyn-e1c96a7797b61fd0.rlib futures_macro-3927f55cf91621ae.futures_macro.450e5fcfc49ae9a8-cgu.0.rcgu.o futures_macro-3927f55cf91621ae.futures_macro.450e5fcfc49ae9a8-cgu.1.rcgu.o futures_macro-3927f55cf91621ae.futures_macro.450e5fcfc49ae9a8-cgu.2.rcgu.o futures_macro-3927f55cf91621ae.futures_macro.450e5fcfc49ae9a8-cgu.3.rcgu.o futures_macro-3927f55cf91621ae.futures_macro.450e5fcfc49ae9a8-cgu.4.rcgu.o futures_macro-3927f55cf91621ae.futures_macro.450e5fcfc49ae9a8-cgu.5.rcgu.o /home/REDACTED/wor--json=diagnostic-rendered-ansi,artifacts,future-incompat futures_macro-3927f55cf91621ae.5ch9vxvn74xfbsh7re80ie1oa.rcgu.o 7543991641147detcc deql-scratch/dbs-Wl,--version-script=/tmp/rustcpflWNT/list libsyn-e1c96a7797b61fd0.rlib libquote-819bddae12a512e2.rlib (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: xDarksome <22872975+xDarksome@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove create_topic RPC and watch API Remove create_topic RPC and watch API Feb 20, 2026
Copilot AI requested a review from xDarksome February 20, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants