Skip to content

Add Cancel proxy type for rejecting time-delayed announcements#2507

Open
lindsey-comet wants to merge 1 commit intoopentensor:mainfrom
lindsey-comet:feature/cancel-proxy-type
Open

Add Cancel proxy type for rejecting time-delayed announcements#2507
lindsey-comet wants to merge 1 commit intoopentensor:mainfrom
lindsey-comet:feature/cancel-proxy-type

Conversation

@lindsey-comet
Copy link

Summary

This PR adds a new Cancel proxy type that allows users to create proxies specifically for rejecting/canceling time-delayed proxy announcements.

Motivation

From #590: Users want to analyze any transaction created by an account before accepting them. With the time-delayed proxy feature, if an account has a delay configured, calls must be announced before execution. The Cancel proxy type enables users to grant permission to another account to reject these announcements.

Changes

  • Add Cancel variant to ProxyType enum common/src/lib.rs
  • Add TryFrom<u8> conversion (value 18) for Cancel type
  • Add From<ProxyType> conversion for Cancel type
  • Add InstanceFilter implementation that allows pallet_proxy::Call::reject_announcement calls

Testing

The changes compile successfully:

  • cargo check -p subtensor-runtime-common
  • cargo check -p node-subtensor-runtime

Related Issue

Closes #590

Adds a new ProxyType::Cancel variant that allows a proxy to reject
(proxy_kill) time-delayed proxy announcements. This enables users to
create a proxy that can veto/cancel announced transactions before they
are executed.

Changes:
- Add Cancel variant to ProxyType enum in common/src/lib.rs
- Add TryFrom<u8> and From<ProxyType> conversions for value 18
- Add InstanceFilter implementation for Cancel in runtime/src/lib.rs
  that matches pallet_proxy::Call::reject_announcement

Closes opentensor#590
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.

Include Cancel proxy type

1 participant