Skip to content

Commit 49b07bd

Browse files
committed
docs: add RemoveProxyV1 to chain extension documentation
Document RemoveProxyV1 function (ID 14) and ProxyNotFound error code.
1 parent 0a362f2 commit 49b07bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/contracts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Subtensor provides a custom chain extension that allows smart contracts to inter
3535
| 11 | `remove_stake_full_limit` | Fully withdraw stake with optional price limit | `(AccountId, NetUid, Option<TaoCurrency>)` | Error code |
3636
| 12 | `set_coldkey_auto_stake_hotkey` | Configure automatic stake destination | `(NetUid, AccountId)` | Error code |
3737
| 13 | `add_proxy` | Add a staking proxy for the caller | `(AccountId)` | Error code |
38+
| 14 | `remove_proxy` | Remove a staking proxy for the caller | `(AccountId)` | Error code |
3839

3940
Example usage in your ink! contract:
4041
```rust
@@ -76,6 +77,7 @@ Chain extension functions that modify state return error codes as `u32` values.
7677
| 16 | `ProxyTooMany` | Too many proxies registered |
7778
| 17 | `ProxyDuplicate` | Proxy already exists |
7879
| 18 | `ProxyNoSelfProxy` | Cannot add self as proxy |
80+
| 19 | `ProxyNotFound` | Proxy relationship not found |
7981

8082
### Call Filter
8183

0 commit comments

Comments
 (0)