proxy
addProxy(delegate: MultiAddress, proxy_type: KitchensinkRuntimeProxyType, delay: u32)
interface:
proxy.addProxysummary: Register a proxy account for the sender that is able to make calls on its behalf.
The dispatch origin for this call must be Signed.
Parameters:
proxy: The account that thecallerwould like to make a proxy.proxy_type: The permissions allowed for this proxy account.delay: The announcement period required of the initial proxy. Will generally be zero.
announce(real: MultiAddress, call_hash: H256)
interface:
proxy.announcesummary: Publish the hash of a proxy-call that will be made in the future.
This must be called some number of blocks before the corresponding
proxyis attempted if the delay associated with the proxy relationship is greater than zero.No more than
MaxPendingannouncements may be made at any one time.This will take a deposit of
AnnouncementDepositFactoras well asAnnouncementDepositBaseif there are no other pending announcements.The dispatch origin for this call must be Signed and a proxy of
real.Parameters:
real: The account that the proxy will make a call on behalf of.call_hash: The hash of the call to be made by therealaccount.
createPure(proxy_type: KitchensinkRuntimeProxyType, delay: u32, index: u16)
interface:
proxy.createPuresummary: Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and initialize it with a proxy of
proxy_typefororiginsender.Requires a
Signedorigin.proxy_type: The type of the proxy that the sender will be registered as over the new account. This will almost always be the most permissiveProxyTypepossible to allow for maximum flexibility.index: A disambiguation index, in case this is called multiple times in the same transaction (e.g. withutility::batch). Unless you’re usingbatchyou probably just want to use0.delay: The announcement period required of the initial proxy. Will generally be zero.
Fails with
Duplicateif this has already been called in this transaction, from the same sender, with the same parameters.Fails if there are insufficient funds to pay for deposit.
killPure(spawner: MultiAddress, proxy_type: KitchensinkRuntimeProxyType, index: u16, height: Compact<u32>, ext_index: Compact<u32>)
interface:
proxy.killPuresummary: Removes a previously spawned pure proxy.
WARNING: All access to this account will be lost. Any funds held in it will be inaccessible.
Requires a
Signedorigin, and the sender account must have been created by a call topurewith corresponding parameters.spawner: The account that originally calledpureto create this account.index: The disambiguation index originally passed topure. Probably0.proxy_type: The proxy type originally passed topure.height: The height of the chain when the call topurewas processed.ext_index: The extrinsic index in which the call topurewas processed.
Fails with
NoPermissionin case the caller is not a previously created pure account whosepurecall has corresponding parameters.
pokeDeposit()
interface:
proxy.pokeDepositsummary: Poke / Adjust deposits made for proxies and announcements based on current values. This can be used by accounts to possibly lower their locked amount.
The dispatch origin for this call must be Signed.
The transaction fee is waived if the deposit amount has changed.
Emits
DepositPokedif successful.
proxy(real: MultiAddress, force_proxy_type: Option<KitchensinkRuntimeProxyType>, call: Call)
interface:
proxy.proxysummary: Dispatch the given
callfrom an account that the sender is authorised for throughadd_proxy.The dispatch origin for this call must be Signed.
Parameters:
real: The account that the proxy will make a call on behalf of.force_proxy_type: Specify the exact proxy type to be used and checked for this call.call: The call to be made by therealaccount.
proxyAnnounced(delegate: MultiAddress, real: MultiAddress, force_proxy_type: Option<KitchensinkRuntimeProxyType>, call: Call)
interface:
proxy.proxyAnnouncedsummary: Dispatch the given
callfrom an account that the sender is authorized for throughadd_proxy.Removes any corresponding announcement(s).
The dispatch origin for this call must be Signed.
Parameters:
real: The account that the proxy will make a call on behalf of.force_proxy_type: Specify the exact proxy type to be used and checked for this call.call: The call to be made by therealaccount.
rejectAnnouncement(delegate: MultiAddress, call_hash: H256)
interface:
proxy.rejectAnnouncementsummary: Remove the given announcement of a delegate.
May be called by a target (proxied) account to remove a call that one of their delegates (
delegate) has announced they want to execute. The deposit is returned.The dispatch origin for this call must be Signed.
Parameters:
delegate: The account that previously announced the call.call_hash: The hash of the call to be made.
removeAnnouncement(real: MultiAddress, call_hash: H256)
interface:
proxy.removeAnnouncementsummary: Remove a given announcement.
May be called by a proxy account to remove a call they previously announced and return the deposit.
The dispatch origin for this call must be Signed.
Parameters:
real: The account that the proxy will make a call on behalf of.call_hash: The hash of the call to be made by therealaccount.
removeProxies()
interface:
proxy.removeProxiessummary: Unregister all proxy accounts for the sender.
The dispatch origin for this call must be Signed.
WARNING: This may be called on accounts created by
pure, however if done, then the unreserved fees will be inaccessible. All access to this account will be lost.
removeProxy(delegate: MultiAddress, proxy_type: KitchensinkRuntimeProxyType, delay: u32)
interface:
proxy.removeProxysummary: Unregister a proxy account for the sender.
The dispatch origin for this call must be Signed.
Parameters:
proxy: The account that thecallerwould like to remove as a proxy.proxy_type: The permissions currently enabled for the removed proxy account.