Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
It would be beneficial for wallets or dapps to be able to obtain the following information from the chain:
- Whather a certain
RuntimeCall passes InstanceFilter for a certain ProxyType
- Whather one
ProxyType is superset of another ProxyType
to be able to easily support "smart" proxy managment features on any Substrate chain with proxy pallet
Request
I would like to propose a new runtime api, e.g. ProxyApi with the following methods (or similar):
check_permissions(call: RuntimeCall, proxyType: ProxyType) : boolean
is_superset(type: ProxyType, against: ProxyType): boolean
Solution
Alternative solution would be to use already existing DryRunApi to simluate the actuall call execution, but the requested feature will provide more ergonomics compared to DryRunApi which is a general-purpose API
Are you willing to help with this request?
No.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
It would be beneficial for wallets or dapps to be able to obtain the following information from the chain:
RuntimeCallpassesInstanceFilterfor a certainProxyTypeProxyTypeis superset of anotherProxyTypeto be able to easily support "smart" proxy managment features on any Substrate chain with proxy pallet
Request
I would like to propose a new runtime api, e.g.
ProxyApiwith the following methods (or similar):check_permissions(call: RuntimeCall, proxyType: ProxyType) : booleanis_superset(type: ProxyType, against: ProxyType): booleanSolution
Alternative solution would be to use already existing
DryRunApito simluate the actuall call execution, but the requested feature will provide more ergonomics compared toDryRunApiwhich is a general-purpose APIAre you willing to help with this request?
No.