@polkadot/api-augment 8.2.2-10 → 8.2.2-11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/packageInfo.js +1 -1
- package/kusama/errors.d.ts +4 -0
- package/kusama/tx.d.ts +18 -78
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/polkadot/errors.d.ts +4 -0
- package/polkadot/tx.d.ts +18 -0
- package/substrate/errors.d.ts +8 -0
- package/substrate/tx.d.ts +18 -78
package/cjs/packageInfo.js
CHANGED
package/kusama/errors.d.ts
CHANGED
|
@@ -1798,6 +1798,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1798
1798
|
* No proposal or bounty at that index.
|
|
1799
1799
|
**/
|
|
1800
1800
|
InvalidIndex: AugmentedError<ApiType>;
|
|
1801
|
+
/**
|
|
1802
|
+
* Proposal has not been approved.
|
|
1803
|
+
**/
|
|
1804
|
+
ProposalNotApproved: AugmentedError<ApiType>;
|
|
1801
1805
|
/**
|
|
1802
1806
|
* Too many approvals in the queue.
|
|
1803
1807
|
**/
|
package/kusama/tx.d.ts
CHANGED
|
@@ -2900,11 +2900,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2900
2900
|
* Parameters:
|
|
2901
2901
|
* - `account`: The recovered account you want to make a call on-behalf-of.
|
|
2902
2902
|
* - `call`: The call you want to make with the recovered account.
|
|
2903
|
-
*
|
|
2904
|
-
* # <weight>
|
|
2905
|
-
* - The weight of the `call` + 10,000.
|
|
2906
|
-
* - One storage lookup to check account is recovered by `who`. O(1)
|
|
2907
|
-
* # </weight>
|
|
2908
2903
|
**/
|
|
2909
2904
|
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | {
|
|
2910
2905
|
callIndex?: any;
|
|
@@ -2918,10 +2913,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2918
2913
|
*
|
|
2919
2914
|
* Parameters:
|
|
2920
2915
|
* - `account`: The recovered account you are able to call on-behalf-of.
|
|
2921
|
-
*
|
|
2922
|
-
* # <weight>
|
|
2923
|
-
* - One storage mutation to check account is recovered by `who`. O(1)
|
|
2924
|
-
* # </weight>
|
|
2925
2916
|
**/
|
|
2926
2917
|
cancelRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
2927
2918
|
/**
|
|
@@ -2934,17 +2925,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2934
2925
|
* Parameters:
|
|
2935
2926
|
* - `account`: The lost account that you want to claim has been successfully recovered by
|
|
2936
2927
|
* you.
|
|
2937
|
-
*
|
|
2938
|
-
* # <weight>
|
|
2939
|
-
* Key: F (len of friends in config), V (len of vouching friends)
|
|
2940
|
-
* - One storage read to get the recovery configuration. O(1), Codec O(F)
|
|
2941
|
-
* - One storage read to get the active recovery process. O(1), Codec O(V)
|
|
2942
|
-
* - One storage read to get the current block number. O(1)
|
|
2943
|
-
* - One storage write. O(1), Codec O(V).
|
|
2944
|
-
* - One event.
|
|
2945
|
-
*
|
|
2946
|
-
* Total Complexity: O(F + V)
|
|
2947
|
-
* # </weight>
|
|
2948
2928
|
**/
|
|
2949
2929
|
claimRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
2950
2930
|
/**
|
|
@@ -2959,15 +2939,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2959
2939
|
*
|
|
2960
2940
|
* Parameters:
|
|
2961
2941
|
* - `rescuer`: The account trying to rescue this recoverable account.
|
|
2962
|
-
*
|
|
2963
|
-
* # <weight>
|
|
2964
|
-
* Key: V (len of vouching friends)
|
|
2965
|
-
* - One storage read/remove to get the active recovery process. O(1), Codec O(V)
|
|
2966
|
-
* - One balance call to repatriate reserved. O(X)
|
|
2967
|
-
* - One event.
|
|
2968
|
-
*
|
|
2969
|
-
* Total Complexity: O(V + X)
|
|
2970
|
-
* # </weight>
|
|
2971
2942
|
**/
|
|
2972
2943
|
closeRecovery: AugmentedSubmittable<(rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
2973
2944
|
/**
|
|
@@ -2987,17 +2958,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2987
2958
|
* friends.
|
|
2988
2959
|
* - `delay_period`: The number of blocks after a recovery attempt is initialized that
|
|
2989
2960
|
* needs to pass before the account can be recovered.
|
|
2990
|
-
*
|
|
2991
|
-
* # <weight>
|
|
2992
|
-
* - Key: F (len of friends)
|
|
2993
|
-
* - One storage read to check that account is not already recoverable. O(1).
|
|
2994
|
-
* - A check that the friends list is sorted and unique. O(F)
|
|
2995
|
-
* - One currency reserve operation. O(X)
|
|
2996
|
-
* - One storage write. O(1). Codec O(F).
|
|
2997
|
-
* - One event.
|
|
2998
|
-
*
|
|
2999
|
-
* Total Complexity: O(F + X)
|
|
3000
|
-
* # </weight>
|
|
3001
2961
|
**/
|
|
3002
2962
|
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
|
|
3003
2963
|
/**
|
|
@@ -3012,17 +2972,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3012
2972
|
* Parameters:
|
|
3013
2973
|
* - `account`: The lost account that you want to recover. This account needs to be
|
|
3014
2974
|
* recoverable (i.e. have a recovery configuration).
|
|
3015
|
-
*
|
|
3016
|
-
* # <weight>
|
|
3017
|
-
* - One storage read to check that account is recoverable. O(F)
|
|
3018
|
-
* - One storage read to check that this recovery process hasn't already started. O(1)
|
|
3019
|
-
* - One currency reserve operation. O(X)
|
|
3020
|
-
* - One storage read to get the current block number. O(1)
|
|
3021
|
-
* - One storage write. O(1).
|
|
3022
|
-
* - One event.
|
|
3023
|
-
*
|
|
3024
|
-
* Total Complexity: O(F + X)
|
|
3025
|
-
* # </weight>
|
|
3026
2975
|
**/
|
|
3027
2976
|
initiateRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3028
2977
|
/**
|
|
@@ -3037,16 +2986,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3037
2986
|
*
|
|
3038
2987
|
* The dispatch origin for this call must be _Signed_ and must be a
|
|
3039
2988
|
* recoverable account (i.e. has a recovery configuration).
|
|
3040
|
-
*
|
|
3041
|
-
* # <weight>
|
|
3042
|
-
* Key: F (len of friends)
|
|
3043
|
-
* - One storage read to get the prefix iterator for active recoveries. O(1)
|
|
3044
|
-
* - One storage read/remove to get the recovery configuration. O(1), Codec O(F)
|
|
3045
|
-
* - One balance call to unreserved. O(X)
|
|
3046
|
-
* - One event.
|
|
3047
|
-
*
|
|
3048
|
-
* Total Complexity: O(F + X)
|
|
3049
|
-
* # </weight>
|
|
3050
2989
|
**/
|
|
3051
2990
|
removeRecovery: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3052
2991
|
/**
|
|
@@ -3058,11 +2997,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3058
2997
|
* Parameters:
|
|
3059
2998
|
* - `lost`: The "lost account" to be recovered.
|
|
3060
2999
|
* - `rescuer`: The "rescuer account" which can call as the lost account.
|
|
3061
|
-
*
|
|
3062
|
-
* # <weight>
|
|
3063
|
-
* - One storage write O(1)
|
|
3064
|
-
* - One event
|
|
3065
|
-
* # </weight>
|
|
3066
3000
|
**/
|
|
3067
3001
|
setRecovered: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
|
3068
3002
|
/**
|
|
@@ -3078,18 +3012,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3078
3012
|
*
|
|
3079
3013
|
* The combination of these two parameters must point to an active recovery
|
|
3080
3014
|
* process.
|
|
3081
|
-
*
|
|
3082
|
-
* # <weight>
|
|
3083
|
-
* Key: F (len of friends in config), V (len of vouching friends)
|
|
3084
|
-
* - One storage read to get the recovery configuration. O(1), Codec O(F)
|
|
3085
|
-
* - One storage read to get the active recovery process. O(1), Codec O(V)
|
|
3086
|
-
* - One binary search to confirm caller is a friend. O(logF)
|
|
3087
|
-
* - One binary search to confirm caller has not already vouched. O(logV)
|
|
3088
|
-
* - One storage write. O(1), Codec O(V).
|
|
3089
|
-
* - One event.
|
|
3090
|
-
*
|
|
3091
|
-
* Total Complexity: O(F + logF + V + logV)
|
|
3092
|
-
* # </weight>
|
|
3093
3015
|
**/
|
|
3094
3016
|
vouchRecovery: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
|
3095
3017
|
/**
|
|
@@ -4635,6 +4557,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4635
4557
|
* # </weight>
|
|
4636
4558
|
**/
|
|
4637
4559
|
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
4560
|
+
/**
|
|
4561
|
+
* Force a previously approved proposal to be removed from the approval queue.
|
|
4562
|
+
* The original deposit will no longer be returned.
|
|
4563
|
+
*
|
|
4564
|
+
* May only be called from `T::RejectOrigin`.
|
|
4565
|
+
* - `proposal_id`: The index of a proposal
|
|
4566
|
+
*
|
|
4567
|
+
* # <weight>
|
|
4568
|
+
* - Complexity: O(A) where `A` is the number of approvals
|
|
4569
|
+
* - Db reads and writes: `Approvals`
|
|
4570
|
+
* # </weight>
|
|
4571
|
+
*
|
|
4572
|
+
* Errors:
|
|
4573
|
+
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
|
|
4574
|
+
* i.e., the proposal has not been approved. This could also mean the proposal does not
|
|
4575
|
+
* exist altogether, thus there is no way it would have been approved in the first place.
|
|
4576
|
+
**/
|
|
4577
|
+
removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
4638
4578
|
/**
|
|
4639
4579
|
* Generic tx
|
|
4640
4580
|
**/
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "8.2.2-
|
|
23
|
+
"version": "8.2.2-11",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -171,11 +171,11 @@
|
|
|
171
171
|
},
|
|
172
172
|
"dependencies": {
|
|
173
173
|
"@babel/runtime": "^7.17.9",
|
|
174
|
-
"@polkadot/api-base": "8.2.2-
|
|
175
|
-
"@polkadot/rpc-augment": "8.2.2-
|
|
176
|
-
"@polkadot/types": "8.2.2-
|
|
177
|
-
"@polkadot/types-augment": "8.2.2-
|
|
178
|
-
"@polkadot/types-codec": "8.2.2-
|
|
174
|
+
"@polkadot/api-base": "8.2.2-11",
|
|
175
|
+
"@polkadot/rpc-augment": "8.2.2-11",
|
|
176
|
+
"@polkadot/types": "8.2.2-11",
|
|
177
|
+
"@polkadot/types-augment": "8.2.2-11",
|
|
178
|
+
"@polkadot/types-codec": "8.2.2-11",
|
|
179
179
|
"@polkadot/util": "^9.1.1"
|
|
180
180
|
}
|
|
181
181
|
}
|
package/packageInfo.js
CHANGED
|
@@ -5,5 +5,5 @@ export const packageInfo = {
|
|
|
5
5
|
name: '@polkadot/api-augment',
|
|
6
6
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
7
7
|
type: 'esm',
|
|
8
|
-
version: '8.2.2-
|
|
8
|
+
version: '8.2.2-11'
|
|
9
9
|
};
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -1611,6 +1611,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1611
1611
|
* No proposal or bounty at that index.
|
|
1612
1612
|
**/
|
|
1613
1613
|
InvalidIndex: AugmentedError<ApiType>;
|
|
1614
|
+
/**
|
|
1615
|
+
* Proposal has not been approved.
|
|
1616
|
+
**/
|
|
1617
|
+
ProposalNotApproved: AugmentedError<ApiType>;
|
|
1614
1618
|
/**
|
|
1615
1619
|
* Too many approvals in the queue.
|
|
1616
1620
|
**/
|
package/polkadot/tx.d.ts
CHANGED
|
@@ -4040,6 +4040,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4040
4040
|
* # </weight>
|
|
4041
4041
|
**/
|
|
4042
4042
|
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
4043
|
+
/**
|
|
4044
|
+
* Force a previously approved proposal to be removed from the approval queue.
|
|
4045
|
+
* The original deposit will no longer be returned.
|
|
4046
|
+
*
|
|
4047
|
+
* May only be called from `T::RejectOrigin`.
|
|
4048
|
+
* - `proposal_id`: The index of a proposal
|
|
4049
|
+
*
|
|
4050
|
+
* # <weight>
|
|
4051
|
+
* - Complexity: O(A) where `A` is the number of approvals
|
|
4052
|
+
* - Db reads and writes: `Approvals`
|
|
4053
|
+
* # </weight>
|
|
4054
|
+
*
|
|
4055
|
+
* Errors:
|
|
4056
|
+
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
|
|
4057
|
+
* i.e., the proposal has not been approved. This could also mean the proposal does not
|
|
4058
|
+
* exist altogether, thus there is no way it would have been approved in the first place.
|
|
4059
|
+
**/
|
|
4060
|
+
removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
4043
4061
|
/**
|
|
4044
4062
|
* Generic tx
|
|
4045
4063
|
**/
|
package/substrate/errors.d.ts
CHANGED
|
@@ -1782,6 +1782,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1782
1782
|
* No proposal or bounty at that index.
|
|
1783
1783
|
**/
|
|
1784
1784
|
InvalidIndex: AugmentedError<ApiType>;
|
|
1785
|
+
/**
|
|
1786
|
+
* Proposal has not been approved.
|
|
1787
|
+
**/
|
|
1788
|
+
ProposalNotApproved: AugmentedError<ApiType>;
|
|
1785
1789
|
/**
|
|
1786
1790
|
* Too many approvals in the queue.
|
|
1787
1791
|
**/
|
|
@@ -1808,6 +1812,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1808
1812
|
* The asset ID is already taken.
|
|
1809
1813
|
**/
|
|
1810
1814
|
InUse: AugmentedError<ApiType>;
|
|
1815
|
+
/**
|
|
1816
|
+
* The asset instance is locked.
|
|
1817
|
+
**/
|
|
1818
|
+
Locked: AugmentedError<ApiType>;
|
|
1811
1819
|
/**
|
|
1812
1820
|
* There is no delegate approved.
|
|
1813
1821
|
**/
|
package/substrate/tx.d.ts
CHANGED
|
@@ -3429,11 +3429,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3429
3429
|
* Parameters:
|
|
3430
3430
|
* - `account`: The recovered account you want to make a call on-behalf-of.
|
|
3431
3431
|
* - `call`: The call you want to make with the recovered account.
|
|
3432
|
-
*
|
|
3433
|
-
* # <weight>
|
|
3434
|
-
* - The weight of the `call` + 10,000.
|
|
3435
|
-
* - One storage lookup to check account is recovered by `who`. O(1)
|
|
3436
|
-
* # </weight>
|
|
3437
3432
|
**/
|
|
3438
3433
|
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | {
|
|
3439
3434
|
callIndex?: any;
|
|
@@ -3447,10 +3442,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3447
3442
|
*
|
|
3448
3443
|
* Parameters:
|
|
3449
3444
|
* - `account`: The recovered account you are able to call on-behalf-of.
|
|
3450
|
-
*
|
|
3451
|
-
* # <weight>
|
|
3452
|
-
* - One storage mutation to check account is recovered by `who`. O(1)
|
|
3453
|
-
* # </weight>
|
|
3454
3445
|
**/
|
|
3455
3446
|
cancelRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3456
3447
|
/**
|
|
@@ -3463,17 +3454,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3463
3454
|
* Parameters:
|
|
3464
3455
|
* - `account`: The lost account that you want to claim has been successfully recovered by
|
|
3465
3456
|
* you.
|
|
3466
|
-
*
|
|
3467
|
-
* # <weight>
|
|
3468
|
-
* Key: F (len of friends in config), V (len of vouching friends)
|
|
3469
|
-
* - One storage read to get the recovery configuration. O(1), Codec O(F)
|
|
3470
|
-
* - One storage read to get the active recovery process. O(1), Codec O(V)
|
|
3471
|
-
* - One storage read to get the current block number. O(1)
|
|
3472
|
-
* - One storage write. O(1), Codec O(V).
|
|
3473
|
-
* - One event.
|
|
3474
|
-
*
|
|
3475
|
-
* Total Complexity: O(F + V)
|
|
3476
|
-
* # </weight>
|
|
3477
3457
|
**/
|
|
3478
3458
|
claimRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3479
3459
|
/**
|
|
@@ -3488,15 +3468,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3488
3468
|
*
|
|
3489
3469
|
* Parameters:
|
|
3490
3470
|
* - `rescuer`: The account trying to rescue this recoverable account.
|
|
3491
|
-
*
|
|
3492
|
-
* # <weight>
|
|
3493
|
-
* Key: V (len of vouching friends)
|
|
3494
|
-
* - One storage read/remove to get the active recovery process. O(1), Codec O(V)
|
|
3495
|
-
* - One balance call to repatriate reserved. O(X)
|
|
3496
|
-
* - One event.
|
|
3497
|
-
*
|
|
3498
|
-
* Total Complexity: O(V + X)
|
|
3499
|
-
* # </weight>
|
|
3500
3471
|
**/
|
|
3501
3472
|
closeRecovery: AugmentedSubmittable<(rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3502
3473
|
/**
|
|
@@ -3516,17 +3487,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3516
3487
|
* friends.
|
|
3517
3488
|
* - `delay_period`: The number of blocks after a recovery attempt is initialized that
|
|
3518
3489
|
* needs to pass before the account can be recovered.
|
|
3519
|
-
*
|
|
3520
|
-
* # <weight>
|
|
3521
|
-
* - Key: F (len of friends)
|
|
3522
|
-
* - One storage read to check that account is not already recoverable. O(1).
|
|
3523
|
-
* - A check that the friends list is sorted and unique. O(F)
|
|
3524
|
-
* - One currency reserve operation. O(X)
|
|
3525
|
-
* - One storage write. O(1). Codec O(F).
|
|
3526
|
-
* - One event.
|
|
3527
|
-
*
|
|
3528
|
-
* Total Complexity: O(F + X)
|
|
3529
|
-
* # </weight>
|
|
3530
3490
|
**/
|
|
3531
3491
|
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
|
|
3532
3492
|
/**
|
|
@@ -3541,17 +3501,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3541
3501
|
* Parameters:
|
|
3542
3502
|
* - `account`: The lost account that you want to recover. This account needs to be
|
|
3543
3503
|
* recoverable (i.e. have a recovery configuration).
|
|
3544
|
-
*
|
|
3545
|
-
* # <weight>
|
|
3546
|
-
* - One storage read to check that account is recoverable. O(F)
|
|
3547
|
-
* - One storage read to check that this recovery process hasn't already started. O(1)
|
|
3548
|
-
* - One currency reserve operation. O(X)
|
|
3549
|
-
* - One storage read to get the current block number. O(1)
|
|
3550
|
-
* - One storage write. O(1).
|
|
3551
|
-
* - One event.
|
|
3552
|
-
*
|
|
3553
|
-
* Total Complexity: O(F + X)
|
|
3554
|
-
* # </weight>
|
|
3555
3504
|
**/
|
|
3556
3505
|
initiateRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3557
3506
|
/**
|
|
@@ -3566,16 +3515,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3566
3515
|
*
|
|
3567
3516
|
* The dispatch origin for this call must be _Signed_ and must be a
|
|
3568
3517
|
* recoverable account (i.e. has a recovery configuration).
|
|
3569
|
-
*
|
|
3570
|
-
* # <weight>
|
|
3571
|
-
* Key: F (len of friends)
|
|
3572
|
-
* - One storage read to get the prefix iterator for active recoveries. O(1)
|
|
3573
|
-
* - One storage read/remove to get the recovery configuration. O(1), Codec O(F)
|
|
3574
|
-
* - One balance call to unreserved. O(X)
|
|
3575
|
-
* - One event.
|
|
3576
|
-
*
|
|
3577
|
-
* Total Complexity: O(F + X)
|
|
3578
|
-
* # </weight>
|
|
3579
3518
|
**/
|
|
3580
3519
|
removeRecovery: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3581
3520
|
/**
|
|
@@ -3587,11 +3526,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3587
3526
|
* Parameters:
|
|
3588
3527
|
* - `lost`: The "lost account" to be recovered.
|
|
3589
3528
|
* - `rescuer`: The "rescuer account" which can call as the lost account.
|
|
3590
|
-
*
|
|
3591
|
-
* # <weight>
|
|
3592
|
-
* - One storage write O(1)
|
|
3593
|
-
* - One event
|
|
3594
|
-
* # </weight>
|
|
3595
3529
|
**/
|
|
3596
3530
|
setRecovered: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
|
3597
3531
|
/**
|
|
@@ -3607,18 +3541,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3607
3541
|
*
|
|
3608
3542
|
* The combination of these two parameters must point to an active recovery
|
|
3609
3543
|
* process.
|
|
3610
|
-
*
|
|
3611
|
-
* # <weight>
|
|
3612
|
-
* Key: F (len of friends in config), V (len of vouching friends)
|
|
3613
|
-
* - One storage read to get the recovery configuration. O(1), Codec O(F)
|
|
3614
|
-
* - One storage read to get the active recovery process. O(1), Codec O(V)
|
|
3615
|
-
* - One binary search to confirm caller is a friend. O(logF)
|
|
3616
|
-
* - One binary search to confirm caller has not already vouched. O(logV)
|
|
3617
|
-
* - One storage write. O(1), Codec O(V).
|
|
3618
|
-
* - One event.
|
|
3619
|
-
*
|
|
3620
|
-
* Total Complexity: O(F + logF + V + logV)
|
|
3621
|
-
* # </weight>
|
|
3622
3544
|
**/
|
|
3623
3545
|
vouchRecovery: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
|
3624
3546
|
/**
|
|
@@ -5374,6 +5296,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5374
5296
|
* # </weight>
|
|
5375
5297
|
**/
|
|
5376
5298
|
rejectProposal: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
5299
|
+
/**
|
|
5300
|
+
* Force a previously approved proposal to be removed from the approval queue.
|
|
5301
|
+
* The original deposit will no longer be returned.
|
|
5302
|
+
*
|
|
5303
|
+
* May only be called from `T::RejectOrigin`.
|
|
5304
|
+
* - `proposal_id`: The index of a proposal
|
|
5305
|
+
*
|
|
5306
|
+
* # <weight>
|
|
5307
|
+
* - Complexity: O(A) where `A` is the number of approvals
|
|
5308
|
+
* - Db reads and writes: `Approvals`
|
|
5309
|
+
* # </weight>
|
|
5310
|
+
*
|
|
5311
|
+
* Errors:
|
|
5312
|
+
* - `ProposalNotApproved`: The `proposal_id` supplied was not found in the approval queue,
|
|
5313
|
+
* i.e., the proposal has not been approved. This could also mean the proposal does not
|
|
5314
|
+
* exist altogether, thus there is no way it would have been approved in the first place.
|
|
5315
|
+
**/
|
|
5316
|
+
removeApproval: AugmentedSubmittable<(proposalId: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
|
|
5377
5317
|
/**
|
|
5378
5318
|
* Generic tx
|
|
5379
5319
|
**/
|