|
|
|
@@ -14,7 +14,7 @@ import { GrandpaEquivocationProof, KeyOwnerProof } from '@polkadot/types/interfa
|
|
|
|
|
import { IdentityFields, IdentityInfo, IdentityJudgement, RegistrarIndex } from '@polkadot/types/interfaces/identity';
|
|
|
|
|
import { Heartbeat } from '@polkadot/types/interfaces/imOnline';
|
|
|
|
|
import { ProxyType } from '@polkadot/types/interfaces/proxy';
|
|
|
|
|
import { AccountId, AccountIndex, Address, Balance, BalanceOf, BlockNumber, Call, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, OpaqueCall, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
|
|
|
|
|
import { AccountId, AccountIndex, Address, Balance, BalanceOf, BlockNumber, Call, CallHashOf, ChangesTrieConfiguration, Hash, Header, KeyValue, LookupSource, Moment, OpaqueCall, Perbill, Percent, Weight } from '@polkadot/types/interfaces/runtime';
|
|
|
|
|
import { Period, Priority } from '@polkadot/types/interfaces/scheduler';
|
|
|
|
|
import { Keys } from '@polkadot/types/interfaces/session';
|
|
|
|
|
import { SocietyJudgement } from '@polkadot/types/interfaces/society';
|
|
|
|
@@ -218,7 +218,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* Complexity: O(P) where P is the number of max proposals
|
|
|
|
|
* Base Weight: .49 * P
|
|
|
|
|
* DB Weight:
|
|
|
|
|
* * Reads: Proposals
|
|
|
|
|
* * Writes: Voting, Proposals, ProposalOf
|
|
|
|
@@ -278,7 +277,7 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
*
|
|
|
|
|
* Requires root origin.
|
|
|
|
|
*
|
|
|
|
|
* NOTE: Does not enforce the expected `MAX_MEMBERS` limit on the amount of members, but
|
|
|
|
|
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
|
|
|
* the weight estimations rely on it to estimate dispatchable weight.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
@@ -324,7 +323,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* - `O(D)` where `D` is the items in the dispatch queue. Weighted as `D = 10`.
|
|
|
|
|
* - Db reads: `scheduler lookup`, scheduler agenda`
|
|
|
|
|
* - Db writes: `scheduler lookup`, scheduler agenda`
|
|
|
|
|
* - Base Weight: 36.78 + 3.277 * D µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
cancelQueued: AugmentedSubmittable<(which: ReferendumIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -338,7 +336,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* # <weight>
|
|
|
|
|
* - Complexity: `O(1)`.
|
|
|
|
|
* - Db writes: `ReferendumInfoOf`
|
|
|
|
|
* - Base Weight: 21.57 µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
cancelReferendum: AugmentedSubmittable<(refIndex: Compact<ReferendumIndex> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -350,7 +347,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* # <weight>
|
|
|
|
|
* - `O(1)`.
|
|
|
|
|
* - Db writes: `PublicProps`
|
|
|
|
|
* - Base Weight: 2.505 µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
clearPublicProposals: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -376,11 +372,10 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* # <weight>
|
|
|
|
|
* - Complexity: `O(R)` where R is the number of referendums the voter delegating to has
|
|
|
|
|
* voted on. Weight is charged as if maximum votes.
|
|
|
|
|
* - Db reads: 2*`VotingOf`, `balances locks`
|
|
|
|
|
* - Db writes: 2*`VotingOf`, `balances locks`
|
|
|
|
|
* - Db reads: 3*`VotingOf`, `origin account locks`
|
|
|
|
|
* - Db writes: 3*`VotingOf`, `origin account locks`
|
|
|
|
|
* - Db reads per votes: `ReferendumInfoOf`
|
|
|
|
|
* - Db writes per votes: `ReferendumInfoOf`
|
|
|
|
|
* - Base Weight: 65.78 + 8.229 * R µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
delegate: AugmentedSubmittable<(to: AccountId | string | Uint8Array, conviction: Conviction | 'None'|'Locked1x'|'Locked2x'|'Locked3x'|'Locked4x'|'Locked5x'|'Locked6x' | number | Uint8Array, balance: BalanceOf | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -396,8 +391,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* - Complexity: `O(1)`.
|
|
|
|
|
* - Db reads: `ReferendumInfoOf`, `Cancellations`
|
|
|
|
|
* - Db writes: `ReferendumInfoOf`, `Cancellations`
|
|
|
|
|
* -------------
|
|
|
|
|
* - Base Weight: 34.25 µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
emergencyCancel: AugmentedSubmittable<(refIndex: ReferendumIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -418,7 +411,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* Decoding vec of length V. Charged as maximum
|
|
|
|
|
* - Db reads: `NextExternal`, `Blacklist`
|
|
|
|
|
* - Db writes: `NextExternal`
|
|
|
|
|
* - Base Weight: 13.8 + .106 * V µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
externalPropose: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -436,7 +428,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* # <weight>
|
|
|
|
|
* - Complexity: `O(1)`
|
|
|
|
|
* - Db write: `NextExternal`
|
|
|
|
|
* - Base Weight: 3.087 µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
externalProposeDefault: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -454,7 +445,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* # <weight>
|
|
|
|
|
* - Complexity: `O(1)`
|
|
|
|
|
* - Db write: `NextExternal`
|
|
|
|
|
* - Base Weight: 3.065 µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
externalProposeMajority: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -483,7 +473,9 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
fastTrack: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array, votingPeriod: BlockNumber | AnyNumber | Uint8Array, delay: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
/**
|
|
|
|
|
* Register the preimage for an upcoming proposal. This requires the proposal to be
|
|
|
|
|
* in the dispatch queue. No deposit is needed.
|
|
|
|
|
* in the dispatch queue. No deposit is needed. When this call is successful, i.e.
|
|
|
|
|
* the preimage has not been uploaded before and matches some imminent proposal,
|
|
|
|
|
* no fee is paid.
|
|
|
|
|
*
|
|
|
|
|
* The dispatch origin of this call must be _Signed_.
|
|
|
|
|
*
|
|
|
|
@@ -492,7 +484,9 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* Emits `PreimageNoted`.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* see `weight_for::note_preimage`
|
|
|
|
|
* - Complexity: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).
|
|
|
|
|
* - Db reads: `Preimages`
|
|
|
|
|
* - Db writes: `Preimages`
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
noteImminentPreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -511,7 +505,9 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* Emits `PreimageNoted`.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* see `weight_for::note_preimage`
|
|
|
|
|
* - Complexity: `O(E)` with E size of `encoded_proposal` (protected by a required deposit).
|
|
|
|
|
* - Db reads: `Preimages`
|
|
|
|
|
* - Db writes: `Preimages`
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
notePreimage: AugmentedSubmittable<(encodedProposal: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -534,8 +530,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* - Complexity: `O(1)`
|
|
|
|
|
* - Db reads: `PublicPropCount`, `PublicProps`
|
|
|
|
|
* - Db writes: `PublicPropCount`, `PublicProps`, `DepositOf`
|
|
|
|
|
* -------------------
|
|
|
|
|
* Base Weight: 42.58 + .127 * P µs with `P` the number of proposals `PublicProps`
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
propose: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array, value: Compact<BalanceOf> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -556,9 +550,8 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* - Complexity: `O(D)` where D is length of proposal.
|
|
|
|
|
* - Db reads: `Preimages`
|
|
|
|
|
* - Db writes: `Preimages`
|
|
|
|
|
* - Base Weight: 39.31 + .003 * b µs
|
|
|
|
|
* - Db reads: `Preimages`, provider account data
|
|
|
|
|
* - Db writes: `Preimages` provider account data
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
reapPreimage: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array, proposalLenUpperBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -581,7 +574,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* Weight is calculated for the maximum number of vote.
|
|
|
|
|
* - Db reads: `ReferendumInfoOf`, `VotingOf`
|
|
|
|
|
* - Db writes: `ReferendumInfoOf`, `VotingOf`
|
|
|
|
|
* - Base Weight: 19.15 + .372 * R
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
removeOtherVote: AugmentedSubmittable<(target: AccountId | string | Uint8Array, index: ReferendumIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -616,7 +608,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* Weight is calculated for the maximum number of vote.
|
|
|
|
|
* - Db reads: `ReferendumInfoOf`, `VotingOf`
|
|
|
|
|
* - Db writes: `ReferendumInfoOf`, `VotingOf`
|
|
|
|
|
* - Base Weight: 21.03 + .359 * R
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
removeVote: AugmentedSubmittable<(index: ReferendumIndex | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -634,8 +625,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* - Complexity: `O(S)` where S is the number of seconds a proposal already has.
|
|
|
|
|
* - Db reads: `DepositOf`
|
|
|
|
|
* - Db writes: `DepositOf`
|
|
|
|
|
* ---------
|
|
|
|
|
* - Base Weight: 22.28 + .229 * S µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
second: AugmentedSubmittable<(proposal: Compact<PropIndex> | AnyNumber | Uint8Array, secondsUpperBound: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -657,7 +646,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* - Db writes: 2*`VotingOf`
|
|
|
|
|
* - Db reads per votes: `ReferendumInfoOf`
|
|
|
|
|
* - Db writes per votes: `ReferendumInfoOf`
|
|
|
|
|
* - Base Weight: 33.29 + 8.104 * R µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
undelegate: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -672,9 +660,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* - Complexity `O(R)` with R number of vote of target.
|
|
|
|
|
* - Db reads: `VotingOf`, `balances locks`, `target account`
|
|
|
|
|
* - Db writes: `VotingOf`, `balances locks`, `target account`
|
|
|
|
|
* - Base Weight:
|
|
|
|
|
* - Unlock Remove: 42.96 + .048 * R
|
|
|
|
|
* - Unlock Set: 37.63 + .327 * R
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
unlock: AugmentedSubmittable<(target: AccountId | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -692,7 +677,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* Performs a binary search on `existing_vetoers` which should not be very large.
|
|
|
|
|
* - Db reads: `NextExternal`, `Blacklist`
|
|
|
|
|
* - Db writes: `NextExternal`, `Blacklist`
|
|
|
|
|
* - Base Weight: 29.87 + .188 * V µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
vetoExternal: AugmentedSubmittable<(proposalHash: Hash | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -710,10 +694,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* weight is charged as if maximum votes.
|
|
|
|
|
* - Db reads: `ReferendumInfoOf`, `VotingOf`, `balances locks`
|
|
|
|
|
* - Db writes: `ReferendumInfoOf`, `VotingOf`, `balances locks`
|
|
|
|
|
* --------------------
|
|
|
|
|
* - Base Weight:
|
|
|
|
|
* - Vote New: 49.24 + .333 * R µs
|
|
|
|
|
* - Vote Existing: 49.94 + .343 * R µs
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
vote: AugmentedSubmittable<(refIndex: Compact<ReferendumIndex> | AnyNumber | Uint8Array, vote: AccountVote | { Standard: any } | { Split: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -1479,12 +1459,34 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* - `proxy_type`: The permissions allowed for this proxy account.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* P is the number of proxies the user has
|
|
|
|
|
* - Base weight: 17.48 + .176 * P µs
|
|
|
|
|
* - DB weight: 1 storage read and write.
|
|
|
|
|
* Weight is a function of the number of proxies the user has (P).
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
addProxy: AugmentedSubmittable<(proxy: AccountId | string | Uint8Array, proxyType: ProxyType | 'Any'|'NonTransfer'|'Governance'|'Staking' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
addProxy: AugmentedSubmittable<(delegate: AccountId | string | Uint8Array, proxyType: ProxyType | 'Any'|'NonTransfer'|'Governance'|'Staking' | number | Uint8Array, delay: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
/**
|
|
|
|
|
* 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 `proxy` is attempted
|
|
|
|
|
* if the delay associated with the proxy relationship is greater than zero.
|
|
|
|
|
*
|
|
|
|
|
* No more than `MaxPending` announcements may be made at any one time.
|
|
|
|
|
*
|
|
|
|
|
* This will take a deposit of `AnnouncementDepositFactor` as well as
|
|
|
|
|
* `AnnouncementDepositBase` if 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 the `real` account.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* Weight is a function of:
|
|
|
|
|
* - A: the number of announcements made.
|
|
|
|
|
* - P: the number of proxies the user has.
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
announce: AugmentedSubmittable<(real: AccountId | string | Uint8Array, callHash: CallHashOf | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
/**
|
|
|
|
|
* Spawn a fresh new account that is guaranteed to be otherwise inaccessible, and
|
|
|
|
|
* initialize it with a proxy of `proxy_type` for `origin` sender.
|
|
|
|
@@ -1497,6 +1499,8 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* - `index`: A disambiguation index, in case this is called multiple times in the same
|
|
|
|
|
* transaction (e.g. with `utility::batch`). Unless you're using `batch` you probably just
|
|
|
|
|
* want to use `0`.
|
|
|
|
|
* - `delay`: The announcement period required of the initial proxy. Will generally be
|
|
|
|
|
* zero.
|
|
|
|
|
*
|
|
|
|
|
* Fails with `Duplicate` if this has already been called in this transaction, from the
|
|
|
|
|
* same sender, with the same parameters.
|
|
|
|
@@ -1504,12 +1508,11 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* Fails if there are insufficient funds to pay for deposit.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* P is the number of proxies the user has
|
|
|
|
|
* - Base weight: 36.48 + .039 * P µs
|
|
|
|
|
* - DB weight: 1 storage read and write.
|
|
|
|
|
* Weight is a function of the number of proxies the user has (P).
|
|
|
|
|
* # </weight>
|
|
|
|
|
* TODO: Might be over counting 1 read
|
|
|
|
|
**/
|
|
|
|
|
anonymous: AugmentedSubmittable<(proxyType: ProxyType | 'Any'|'NonTransfer'|'Governance'|'Staking' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
anonymous: AugmentedSubmittable<(proxyType: ProxyType | 'Any'|'NonTransfer'|'Governance'|'Staking' | number | Uint8Array, delay: BlockNumber | AnyNumber | Uint8Array, index: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
/**
|
|
|
|
|
* Removes a previously spawned anonymous proxy.
|
|
|
|
|
*
|
|
|
|
@@ -1529,9 +1532,7 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* account whose `anonymous` call has corresponding parameters.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* P is the number of proxies the user has
|
|
|
|
|
* - Base weight: 15.65 + .137 * P µs
|
|
|
|
|
* - DB weight: 1 storage read and write.
|
|
|
|
|
* Weight is a function of the number of proxies the user has (P).
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
killAnonymous: AugmentedSubmittable<(spawner: AccountId | string | Uint8Array, proxyType: ProxyType | 'Any'|'NonTransfer'|'Governance'|'Staking' | number | Uint8Array, index: u16 | AnyNumber | Uint8Array, height: Compact<BlockNumber> | AnyNumber | Uint8Array, extIndex: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -1539,6 +1540,8 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
|
|
|
|
* `add_proxy`.
|
|
|
|
|
*
|
|
|
|
|
* Removes any corresponding announcement(s).
|
|
|
|
|
*
|
|
|
|
|
* The dispatch origin for this call must be _Signed_.
|
|
|
|
|
*
|
|
|
|
|
* Parameters:
|
|
|
|
@@ -1547,13 +1550,68 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* - `call`: The call to be made by the `real` account.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* P is the number of proxies the user has
|
|
|
|
|
* - Base weight: 19.87 + .141 * P µs
|
|
|
|
|
* - DB weight: 1 storage read.
|
|
|
|
|
* - Plus the weight of the `call`
|
|
|
|
|
* Weight is a function of the number of proxies the user has (P).
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
proxy: AugmentedSubmittable<(real: AccountId | string | Uint8Array, forceProxyType: Option<ProxyType> | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
/**
|
|
|
|
|
* Dispatch the given `call` from an account that the sender is authorised for through
|
|
|
|
|
* `add_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 the `real` account.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* Weight is a function of:
|
|
|
|
|
* - A: the number of announcements made.
|
|
|
|
|
* - P: the number of proxies the user has.
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
proxyAnnounced: AugmentedSubmittable<(delegate: AccountId | string | Uint8Array, real: AccountId | string | Uint8Array, forceProxyType: Option<ProxyType> | null | object | string | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
/**
|
|
|
|
|
* 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.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* Weight is a function of:
|
|
|
|
|
* - A: the number of announcements made.
|
|
|
|
|
* - P: the number of proxies the user has.
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
rejectAnnouncement: AugmentedSubmittable<(delegate: AccountId | string | Uint8Array, callHash: CallHashOf | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
/**
|
|
|
|
|
* 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 the `real` account.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* Weight is a function of:
|
|
|
|
|
* - A: the number of announcements made.
|
|
|
|
|
* - P: the number of proxies the user has.
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
removeAnnouncement: AugmentedSubmittable<(real: AccountId | string | Uint8Array, callHash: CallHashOf | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
/**
|
|
|
|
|
* Unregister all proxy accounts for the sender.
|
|
|
|
|
*
|
|
|
|
@@ -1563,9 +1621,7 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* the unreserved fees will be inaccessible. **All access to this account will be lost.**
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* P is the number of proxies the user has
|
|
|
|
|
* - Base weight: 13.73 + .129 * P µs
|
|
|
|
|
* - DB weight: 1 storage read and write.
|
|
|
|
|
* Weight is a function of the number of proxies the user has (P).
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
removeProxies: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -1579,12 +1635,10 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* - `proxy_type`: The permissions currently enabled for the removed proxy account.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* P is the number of proxies the user has
|
|
|
|
|
* - Base weight: 14.37 + .164 * P µs
|
|
|
|
|
* - DB weight: 1 storage read and write.
|
|
|
|
|
* Weight is a function of the number of proxies the user has (P).
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
removeProxy: AugmentedSubmittable<(proxy: AccountId | string | Uint8Array, proxyType: ProxyType | 'Any'|'NonTransfer'|'Governance'|'Staking' | number | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
removeProxy: AugmentedSubmittable<(delegate: AccountId | string | Uint8Array, proxyType: ProxyType | 'Any'|'NonTransfer'|'Governance'|'Staking' | number | Uint8Array, delay: BlockNumber | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
};
|
|
|
|
|
recovery: {
|
|
|
|
|
[index: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
|
|
@@ -2909,7 +2963,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* Complexity: O(P) where P is the number of max proposals
|
|
|
|
|
* Base Weight: .49 * P
|
|
|
|
|
* DB Weight:
|
|
|
|
|
* * Reads: Proposals
|
|
|
|
|
* * Writes: Voting, Proposals, ProposalOf
|
|
|
|
@@ -2969,7 +3022,7 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
*
|
|
|
|
|
* Requires root origin.
|
|
|
|
|
*
|
|
|
|
|
* NOTE: Does not enforce the expected `MAX_MEMBERS` limit on the amount of members, but
|
|
|
|
|
* NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
|
|
|
|
* the weight estimations rely on it to estimate dispatchable weight.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
@@ -3069,9 +3122,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* - `O(T)` where `T` complexity of `on_timestamp_set`
|
|
|
|
|
* - 1 storage read and 1 storage mutation (codec `O(1)`). (because of `DidUpdate::take` in `on_finalize`)
|
|
|
|
|
* - 1 event handler `on_timestamp_set` `O(T)`.
|
|
|
|
|
* - Benchmark: 7.678 (min squares analysis)
|
|
|
|
|
* - NOTE: This benchmark was done for a runtime with insignificant `on_timestamp_set` handlers.
|
|
|
|
|
* New benchmarking is needed when adding new handlers.
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
set: AugmentedSubmittable<(now: Compact<Moment> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
@@ -3249,11 +3299,6 @@ declare module '@polkadot/api/types/submittable' {
|
|
|
|
|
* NOTE: Prior to version *12, this was called `as_limited_sub`.
|
|
|
|
|
*
|
|
|
|
|
* The dispatch origin for this call must be _Signed_.
|
|
|
|
|
*
|
|
|
|
|
* # <weight>
|
|
|
|
|
* - Base weight: 2.861 µs
|
|
|
|
|
* - Plus the weight of the `call`
|
|
|
|
|
* # </weight>
|
|
|
|
|
**/
|
|
|
|
|
asDerivative: AugmentedSubmittable<(index: u16 | AnyNumber | Uint8Array, call: Call | { callIndex?: any; args?: any } | string | Uint8Array) => SubmittableExtrinsic<ApiType>>;
|
|
|
|
|
/**
|
|
|
|
|