@polkadot/api-augment 8.2.2-0 → 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 +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/errors.d.ts +4 -0
- package/polkadot/tx.d.ts +18 -0
- package/substrate/consts.d.ts +10 -0
- package/substrate/errors.d.ts +115 -0
- package/substrate/events.d.ts +35 -1
- package/substrate/query.d.ts +81 -1
- package/substrate/tx.d.ts +186 -79
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-
|
|
179
|
-
"@polkadot/util": "^9.
|
|
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
|
+
"@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/consts.d.ts
CHANGED
|
@@ -635,6 +635,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
635
635
|
**/
|
|
636
636
|
[key: string]: Codec;
|
|
637
637
|
};
|
|
638
|
+
nominationPools: {
|
|
639
|
+
/**
|
|
640
|
+
* The nomination pool's pallet id.
|
|
641
|
+
**/
|
|
642
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
643
|
+
/**
|
|
644
|
+
* Generic const
|
|
645
|
+
**/
|
|
646
|
+
[key: string]: Codec;
|
|
647
|
+
};
|
|
638
648
|
proxy: {
|
|
639
649
|
/**
|
|
640
650
|
* The base amount of currency needed to reserve for creating an announcement.
|
package/substrate/errors.d.ts
CHANGED
|
@@ -1014,6 +1014,113 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1014
1014
|
**/
|
|
1015
1015
|
[key: string]: AugmentedError<ApiType>;
|
|
1016
1016
|
};
|
|
1017
|
+
nominationPools: {
|
|
1018
|
+
/**
|
|
1019
|
+
* An account is already delegating in another pool. An account may only belong to one
|
|
1020
|
+
* pool at a time.
|
|
1021
|
+
**/
|
|
1022
|
+
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
|
1023
|
+
/**
|
|
1024
|
+
* The member is already unbonding in this era.
|
|
1025
|
+
**/
|
|
1026
|
+
AlreadyUnbonding: AugmentedError<ApiType>;
|
|
1027
|
+
/**
|
|
1028
|
+
* The pools state cannot be changed.
|
|
1029
|
+
**/
|
|
1030
|
+
CanNotChangeState: AugmentedError<ApiType>;
|
|
1031
|
+
/**
|
|
1032
|
+
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
|
1033
|
+
**/
|
|
1034
|
+
CannotWithdrawAny: AugmentedError<ApiType>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Some error occurred that should never happen. This should be reported to the
|
|
1037
|
+
* maintainers.
|
|
1038
|
+
**/
|
|
1039
|
+
DefensiveError: AugmentedError<ApiType>;
|
|
1040
|
+
/**
|
|
1041
|
+
* The caller does not have adequate permissions.
|
|
1042
|
+
**/
|
|
1043
|
+
DoesNotHavePermission: AugmentedError<ApiType>;
|
|
1044
|
+
/**
|
|
1045
|
+
* The member is fully unbonded (and thus cannot access the bonded and reward pool
|
|
1046
|
+
* anymore to, for example, collect rewards).
|
|
1047
|
+
**/
|
|
1048
|
+
FullyUnbonding: AugmentedError<ApiType>;
|
|
1049
|
+
/**
|
|
1050
|
+
* The pool has insufficient balance to bond as a nominator.
|
|
1051
|
+
**/
|
|
1052
|
+
InsufficientBond: AugmentedError<ApiType>;
|
|
1053
|
+
/**
|
|
1054
|
+
* Too many members in the pool or system.
|
|
1055
|
+
**/
|
|
1056
|
+
MaxPoolMembers: AugmentedError<ApiType>;
|
|
1057
|
+
/**
|
|
1058
|
+
* The system is maxed out on pools.
|
|
1059
|
+
**/
|
|
1060
|
+
MaxPools: AugmentedError<ApiType>;
|
|
1061
|
+
/**
|
|
1062
|
+
* The member cannot unbond further chunks due to reaching the limit.
|
|
1063
|
+
**/
|
|
1064
|
+
MaxUnbondingLimit: AugmentedError<ApiType>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Metadata exceeds [`Config::MaxMetadataLen`]
|
|
1067
|
+
**/
|
|
1068
|
+
MetadataExceedsMaxLen: AugmentedError<ApiType>;
|
|
1069
|
+
/**
|
|
1070
|
+
* The amount does not meet the minimum bond to either join or create a pool.
|
|
1071
|
+
**/
|
|
1072
|
+
MinimumBondNotMet: AugmentedError<ApiType>;
|
|
1073
|
+
/**
|
|
1074
|
+
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
|
1075
|
+
* other members to be permissionlessly unbonded.
|
|
1076
|
+
**/
|
|
1077
|
+
NotDestroying: AugmentedError<ApiType>;
|
|
1078
|
+
/**
|
|
1079
|
+
* Not enough points. Ty unbonding less.
|
|
1080
|
+
**/
|
|
1081
|
+
NotEnoughPointsToUnbond: AugmentedError<ApiType>;
|
|
1082
|
+
/**
|
|
1083
|
+
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
|
1084
|
+
**/
|
|
1085
|
+
NotKickerOrDestroying: AugmentedError<ApiType>;
|
|
1086
|
+
/**
|
|
1087
|
+
* The caller does not have nominating permissions for the pool.
|
|
1088
|
+
**/
|
|
1089
|
+
NotNominator: AugmentedError<ApiType>;
|
|
1090
|
+
/**
|
|
1091
|
+
* The depositor must be the only member in the bonded pool in order to unbond. And the
|
|
1092
|
+
* depositor must be the only member in the sub pools in order to withdraw unbonded.
|
|
1093
|
+
**/
|
|
1094
|
+
NotOnlyPoolMember: AugmentedError<ApiType>;
|
|
1095
|
+
/**
|
|
1096
|
+
* The pool is not open to join
|
|
1097
|
+
**/
|
|
1098
|
+
NotOpen: AugmentedError<ApiType>;
|
|
1099
|
+
/**
|
|
1100
|
+
* The transaction could not be executed due to overflow risk for the pool.
|
|
1101
|
+
**/
|
|
1102
|
+
OverflowRisk: AugmentedError<ApiType>;
|
|
1103
|
+
/**
|
|
1104
|
+
* An account is not a member.
|
|
1105
|
+
**/
|
|
1106
|
+
PoolMemberNotFound: AugmentedError<ApiType>;
|
|
1107
|
+
/**
|
|
1108
|
+
* A (bonded) pool id does not exist.
|
|
1109
|
+
**/
|
|
1110
|
+
PoolNotFound: AugmentedError<ApiType>;
|
|
1111
|
+
/**
|
|
1112
|
+
* A reward pool does not exist. In all cases this is a system logic error.
|
|
1113
|
+
**/
|
|
1114
|
+
RewardPoolNotFound: AugmentedError<ApiType>;
|
|
1115
|
+
/**
|
|
1116
|
+
* A sub pool does not exist.
|
|
1117
|
+
**/
|
|
1118
|
+
SubPoolsNotFound: AugmentedError<ApiType>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Generic error
|
|
1121
|
+
**/
|
|
1122
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1123
|
+
};
|
|
1017
1124
|
preimage: {
|
|
1018
1125
|
/**
|
|
1019
1126
|
* Preimage has already been noted on-chain.
|
|
@@ -1675,6 +1782,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1675
1782
|
* No proposal or bounty at that index.
|
|
1676
1783
|
**/
|
|
1677
1784
|
InvalidIndex: AugmentedError<ApiType>;
|
|
1785
|
+
/**
|
|
1786
|
+
* Proposal has not been approved.
|
|
1787
|
+
**/
|
|
1788
|
+
ProposalNotApproved: AugmentedError<ApiType>;
|
|
1678
1789
|
/**
|
|
1679
1790
|
* Too many approvals in the queue.
|
|
1680
1791
|
**/
|
|
@@ -1701,6 +1812,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1701
1812
|
* The asset ID is already taken.
|
|
1702
1813
|
**/
|
|
1703
1814
|
InUse: AugmentedError<ApiType>;
|
|
1815
|
+
/**
|
|
1816
|
+
* The asset instance is locked.
|
|
1817
|
+
**/
|
|
1818
|
+
Locked: AugmentedError<ApiType>;
|
|
1704
1819
|
/**
|
|
1705
1820
|
* There is no delegate approved.
|
|
1706
1821
|
**/
|
package/substrate/events.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
|
|
|
2
2
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
3
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
4
4
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
5
|
-
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
|
5
|
+
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
|
6
6
|
declare module '@polkadot/api-base/types/events' {
|
|
7
7
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
8
8
|
assets: {
|
|
@@ -611,6 +611,40 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
611
611
|
**/
|
|
612
612
|
[key: string]: AugmentedEvent<ApiType>;
|
|
613
613
|
};
|
|
614
|
+
nominationPools: {
|
|
615
|
+
/**
|
|
616
|
+
* A member has became bonded in a pool.
|
|
617
|
+
**/
|
|
618
|
+
Bonded: AugmentedEvent<ApiType, [AccountId32, u32, u128, bool]>;
|
|
619
|
+
/**
|
|
620
|
+
* A pool has been created.
|
|
621
|
+
**/
|
|
622
|
+
Created: AugmentedEvent<ApiType, [AccountId32, u32]>;
|
|
623
|
+
/**
|
|
624
|
+
* A pool has been destroyed.
|
|
625
|
+
**/
|
|
626
|
+
Destroyed: AugmentedEvent<ApiType, [u32]>;
|
|
627
|
+
/**
|
|
628
|
+
* A payout has been made to a member.
|
|
629
|
+
**/
|
|
630
|
+
PaidOut: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
|
631
|
+
/**
|
|
632
|
+
* The state of a pool has changed
|
|
633
|
+
**/
|
|
634
|
+
StateChanged: AugmentedEvent<ApiType, [u32, PalletNominationPoolsPoolState]>;
|
|
635
|
+
/**
|
|
636
|
+
* A member has unbonded from their pool.
|
|
637
|
+
**/
|
|
638
|
+
Unbonded: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
|
639
|
+
/**
|
|
640
|
+
* A member has withdrawn from their pool.
|
|
641
|
+
**/
|
|
642
|
+
Withdrawn: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
|
643
|
+
/**
|
|
644
|
+
* Generic event
|
|
645
|
+
**/
|
|
646
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
647
|
+
};
|
|
614
648
|
offences: {
|
|
615
649
|
/**
|
|
616
650
|
* There is an offence reported of the given `kind` happened at the `session_index` and
|
package/substrate/query.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Data } from '@polkadot/types';
|
|
|
3
3
|
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
6
|
+
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageDeletedContract, PalletContractsStorageRawContractInfo, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
7
7
|
import type { Observable } from '@polkadot/types/types';
|
|
8
8
|
declare module '@polkadot/api-base/types/storage' {
|
|
9
9
|
interface AugmentedQueries<ApiType extends ApiTypes> {
|
|
@@ -781,6 +781,86 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
781
781
|
**/
|
|
782
782
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
783
783
|
};
|
|
784
|
+
nominationPools: {
|
|
785
|
+
/**
|
|
786
|
+
* Storage for bonded pools.
|
|
787
|
+
**/
|
|
788
|
+
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
789
|
+
/**
|
|
790
|
+
* Counter for the related counted storage map
|
|
791
|
+
**/
|
|
792
|
+
counterForBondedPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
793
|
+
/**
|
|
794
|
+
* Counter for the related counted storage map
|
|
795
|
+
**/
|
|
796
|
+
counterForMetadata: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
797
|
+
/**
|
|
798
|
+
* Counter for the related counted storage map
|
|
799
|
+
**/
|
|
800
|
+
counterForPoolMembers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
801
|
+
/**
|
|
802
|
+
* Counter for the related counted storage map
|
|
803
|
+
**/
|
|
804
|
+
counterForReversePoolIdLookup: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
805
|
+
/**
|
|
806
|
+
* Counter for the related counted storage map
|
|
807
|
+
**/
|
|
808
|
+
counterForRewardPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
809
|
+
/**
|
|
810
|
+
* Counter for the related counted storage map
|
|
811
|
+
**/
|
|
812
|
+
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
813
|
+
lastPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
814
|
+
/**
|
|
815
|
+
* Maximum number of members that can exist in the system. If `None`, then the count
|
|
816
|
+
* members are not bound on a system wide basis.
|
|
817
|
+
**/
|
|
818
|
+
maxPoolMembers: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
819
|
+
/**
|
|
820
|
+
* Maximum number of members that may belong to pool. If `None`, then the count of
|
|
821
|
+
* members is not bound on a per pool basis.
|
|
822
|
+
**/
|
|
823
|
+
maxPoolMembersPerPool: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
824
|
+
/**
|
|
825
|
+
* Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
|
|
826
|
+
* pools can exist.
|
|
827
|
+
**/
|
|
828
|
+
maxPools: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
829
|
+
/**
|
|
830
|
+
* Metadata for the pool.
|
|
831
|
+
**/
|
|
832
|
+
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
833
|
+
/**
|
|
834
|
+
* Minimum bond required to create a pool.
|
|
835
|
+
*
|
|
836
|
+
* This is the amount that the depositor must put as their initial stake in the pool, as an
|
|
837
|
+
* indication of "skin in the game".
|
|
838
|
+
**/
|
|
839
|
+
minCreateBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
840
|
+
/**
|
|
841
|
+
* Minimum amount to bond to join a pool.
|
|
842
|
+
**/
|
|
843
|
+
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
844
|
+
/**
|
|
845
|
+
* Active members.
|
|
846
|
+
**/
|
|
847
|
+
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
848
|
+
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
849
|
+
/**
|
|
850
|
+
* Reward pools. This is where there rewards for each pool accumulate. When a members payout
|
|
851
|
+
* is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
|
852
|
+
**/
|
|
853
|
+
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
854
|
+
/**
|
|
855
|
+
* Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
|
|
856
|
+
* hence the name sub-pools. Keyed by the bonded pools account.
|
|
857
|
+
**/
|
|
858
|
+
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
859
|
+
/**
|
|
860
|
+
* Generic query
|
|
861
|
+
**/
|
|
862
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
863
|
+
};
|
|
784
864
|
offences: {
|
|
785
865
|
/**
|
|
786
866
|
* A vector of reports of the same kind that happened at the same time slot.
|
package/substrate/tx.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Data } from '@polkadot/types';
|
|
|
3
3
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
|
6
|
+
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
|
7
7
|
declare module '@polkadot/api-base/types/submittable' {
|
|
8
8
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
9
9
|
assets: {
|
|
@@ -3018,6 +3018,173 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3018
3018
|
**/
|
|
3019
3019
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3020
3020
|
};
|
|
3021
|
+
nominationPools: {
|
|
3022
|
+
/**
|
|
3023
|
+
* Bond `extra` more funds from `origin` into the pool to which they already belong.
|
|
3024
|
+
*
|
|
3025
|
+
* Additional funds can come from either the free balance of the account, of from the
|
|
3026
|
+
* accumulated rewards, see [`BondExtra`].
|
|
3027
|
+
**/
|
|
3028
|
+
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
3029
|
+
FreeBalance: any;
|
|
3030
|
+
} | {
|
|
3031
|
+
Rewards: any;
|
|
3032
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
|
3033
|
+
/**
|
|
3034
|
+
* A bonded member can use this to claim their payout based on the rewards that the pool
|
|
3035
|
+
* has accumulated since their last claimed payout (OR since joining if this is there first
|
|
3036
|
+
* time claiming rewards). The payout will be transferred to the member's account.
|
|
3037
|
+
*
|
|
3038
|
+
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
3039
|
+
* members in the pools stake. Rewards do not "expire".
|
|
3040
|
+
**/
|
|
3041
|
+
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3042
|
+
/**
|
|
3043
|
+
* Create a new delegation pool.
|
|
3044
|
+
*
|
|
3045
|
+
* # Arguments
|
|
3046
|
+
*
|
|
3047
|
+
* * `amount` - The amount of funds to delegate to the pool. This also acts of a sort of
|
|
3048
|
+
* deposit since the pools creator cannot fully unbond funds until the pool is being
|
|
3049
|
+
* destroyed.
|
|
3050
|
+
* * `index` - A disambiguation index for creating the account. Likely only useful when
|
|
3051
|
+
* creating multiple pools in the same extrinsic.
|
|
3052
|
+
* * `root` - The account to set as [`PoolRoles::root`].
|
|
3053
|
+
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
|
3054
|
+
* * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
|
|
3055
|
+
*
|
|
3056
|
+
* # Note
|
|
3057
|
+
*
|
|
3058
|
+
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
|
3059
|
+
* needs at have at least `amount + existential_deposit` transferrable.
|
|
3060
|
+
**/
|
|
3061
|
+
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: AccountId32 | string | Uint8Array, nominator: AccountId32 | string | Uint8Array, stateToggler: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId32, AccountId32, AccountId32]>;
|
|
3062
|
+
/**
|
|
3063
|
+
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
|
3064
|
+
* pools account and immediately increases the pools bond.
|
|
3065
|
+
*
|
|
3066
|
+
* # Note
|
|
3067
|
+
*
|
|
3068
|
+
* * An account can only be a member of a single pool.
|
|
3069
|
+
* * An account cannot join the same pool multiple times.
|
|
3070
|
+
* * This call will *not* dust the member account, so the member must have at least
|
|
3071
|
+
* `existential deposit + amount` in their account.
|
|
3072
|
+
* * Only a pool with [`PoolState::Open`] can be joined
|
|
3073
|
+
**/
|
|
3074
|
+
join: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
|
3075
|
+
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
|
3076
|
+
/**
|
|
3077
|
+
* Call `withdraw_unbonded` for the pools account. This call can be made by any account.
|
|
3078
|
+
*
|
|
3079
|
+
* This is useful if their are too many unlocking chunks to call `unbond`, and some
|
|
3080
|
+
* can be cleared by withdrawing. In the case there are too many unlocking chunks, the user
|
|
3081
|
+
* would probably see an error like `NoMoreChunks` emitted from the staking system when
|
|
3082
|
+
* they attempt to unbond.
|
|
3083
|
+
**/
|
|
3084
|
+
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3085
|
+
/**
|
|
3086
|
+
* Update configurations for the nomination pools. The origin must for this call must be
|
|
3087
|
+
* Root.
|
|
3088
|
+
*
|
|
3089
|
+
* # Arguments
|
|
3090
|
+
*
|
|
3091
|
+
* * `min_join_bond` - Set [`MinJoinBond`].
|
|
3092
|
+
* * `min_create_bond` - Set [`MinCreateBond`].
|
|
3093
|
+
* * `max_pools` - Set [`MaxPools`].
|
|
3094
|
+
* * `max_members` - Set [`MaxPoolMembers`].
|
|
3095
|
+
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
|
3096
|
+
**/
|
|
3097
|
+
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | {
|
|
3098
|
+
Noop: any;
|
|
3099
|
+
} | {
|
|
3100
|
+
Set: any;
|
|
3101
|
+
} | {
|
|
3102
|
+
Remove: any;
|
|
3103
|
+
} | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | {
|
|
3104
|
+
Noop: any;
|
|
3105
|
+
} | {
|
|
3106
|
+
Set: any;
|
|
3107
|
+
} | {
|
|
3108
|
+
Remove: any;
|
|
3109
|
+
} | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | {
|
|
3110
|
+
Noop: any;
|
|
3111
|
+
} | {
|
|
3112
|
+
Set: any;
|
|
3113
|
+
} | {
|
|
3114
|
+
Remove: any;
|
|
3115
|
+
} | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | {
|
|
3116
|
+
Noop: any;
|
|
3117
|
+
} | {
|
|
3118
|
+
Set: any;
|
|
3119
|
+
} | {
|
|
3120
|
+
Remove: any;
|
|
3121
|
+
} | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | {
|
|
3122
|
+
Noop: any;
|
|
3123
|
+
} | {
|
|
3124
|
+
Set: any;
|
|
3125
|
+
} | {
|
|
3126
|
+
Remove: any;
|
|
3127
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
|
|
3128
|
+
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
3129
|
+
setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
|
|
3130
|
+
/**
|
|
3131
|
+
* Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It
|
|
3132
|
+
* implicitly collects the rewards one last time, since not doing so would mean some
|
|
3133
|
+
* rewards would go forfeited.
|
|
3134
|
+
*
|
|
3135
|
+
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
|
3136
|
+
* account).
|
|
3137
|
+
*
|
|
3138
|
+
* # Conditions for a permissionless dispatch.
|
|
3139
|
+
*
|
|
3140
|
+
* * The pool is blocked and the caller is either the root or state-toggler. This is
|
|
3141
|
+
* refereed to as a kick.
|
|
3142
|
+
* * The pool is destroying and the member is not the depositor.
|
|
3143
|
+
* * The pool is destroying, the member is the depositor and no other members are in the
|
|
3144
|
+
* pool.
|
|
3145
|
+
*
|
|
3146
|
+
* ## Conditions for permissioned dispatch (i.e. the caller is also the
|
|
3147
|
+
* `member_account`):
|
|
3148
|
+
*
|
|
3149
|
+
* * The caller is not the depositor.
|
|
3150
|
+
* * The caller is the depositor, the pool is destroying and no other members are in the
|
|
3151
|
+
* pool.
|
|
3152
|
+
*
|
|
3153
|
+
* # Note
|
|
3154
|
+
*
|
|
3155
|
+
* If there are too many unlocking chunks to unbond with the pool account,
|
|
3156
|
+
* [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks. If
|
|
3157
|
+
* there are too many unlocking chunks, the result of this call will likely be the
|
|
3158
|
+
* `NoMoreChunks` error from the staking system.
|
|
3159
|
+
**/
|
|
3160
|
+
unbond: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, unbondingPoints: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Compact<u128>]>;
|
|
3161
|
+
/**
|
|
3162
|
+
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
|
3163
|
+
* error is returned.
|
|
3164
|
+
*
|
|
3165
|
+
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
|
3166
|
+
* account).
|
|
3167
|
+
*
|
|
3168
|
+
* # Conditions for a permissionless dispatch
|
|
3169
|
+
*
|
|
3170
|
+
* * The pool is in destroy mode and the target is not the depositor.
|
|
3171
|
+
* * The target is the depositor and they are the only member in the sub pools.
|
|
3172
|
+
* * The pool is blocked and the caller is either the root or state-toggler.
|
|
3173
|
+
*
|
|
3174
|
+
* # Conditions for permissioned dispatch
|
|
3175
|
+
*
|
|
3176
|
+
* * The caller is the target and they are not the depositor.
|
|
3177
|
+
*
|
|
3178
|
+
* # Note
|
|
3179
|
+
*
|
|
3180
|
+
* If the target is the depositor, the pool will be destroyed.
|
|
3181
|
+
**/
|
|
3182
|
+
withdrawUnbonded: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
3183
|
+
/**
|
|
3184
|
+
* Generic tx
|
|
3185
|
+
**/
|
|
3186
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3187
|
+
};
|
|
3021
3188
|
preimage: {
|
|
3022
3189
|
/**
|
|
3023
3190
|
* Register a preimage on-chain.
|
|
@@ -3262,11 +3429,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3262
3429
|
* Parameters:
|
|
3263
3430
|
* - `account`: The recovered account you want to make a call on-behalf-of.
|
|
3264
3431
|
* - `call`: The call you want to make with the recovered account.
|
|
3265
|
-
*
|
|
3266
|
-
* # <weight>
|
|
3267
|
-
* - The weight of the `call` + 10,000.
|
|
3268
|
-
* - One storage lookup to check account is recovered by `who`. O(1)
|
|
3269
|
-
* # </weight>
|
|
3270
3432
|
**/
|
|
3271
3433
|
asRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array, call: Call | {
|
|
3272
3434
|
callIndex?: any;
|
|
@@ -3280,10 +3442,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3280
3442
|
*
|
|
3281
3443
|
* Parameters:
|
|
3282
3444
|
* - `account`: The recovered account you are able to call on-behalf-of.
|
|
3283
|
-
*
|
|
3284
|
-
* # <weight>
|
|
3285
|
-
* - One storage mutation to check account is recovered by `who`. O(1)
|
|
3286
|
-
* # </weight>
|
|
3287
3445
|
**/
|
|
3288
3446
|
cancelRecovered: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3289
3447
|
/**
|
|
@@ -3296,17 +3454,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3296
3454
|
* Parameters:
|
|
3297
3455
|
* - `account`: The lost account that you want to claim has been successfully recovered by
|
|
3298
3456
|
* you.
|
|
3299
|
-
*
|
|
3300
|
-
* # <weight>
|
|
3301
|
-
* Key: F (len of friends in config), V (len of vouching friends)
|
|
3302
|
-
* - One storage read to get the recovery configuration. O(1), Codec O(F)
|
|
3303
|
-
* - One storage read to get the active recovery process. O(1), Codec O(V)
|
|
3304
|
-
* - One storage read to get the current block number. O(1)
|
|
3305
|
-
* - One storage write. O(1), Codec O(V).
|
|
3306
|
-
* - One event.
|
|
3307
|
-
*
|
|
3308
|
-
* Total Complexity: O(F + V)
|
|
3309
|
-
* # </weight>
|
|
3310
3457
|
**/
|
|
3311
3458
|
claimRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3312
3459
|
/**
|
|
@@ -3321,15 +3468,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3321
3468
|
*
|
|
3322
3469
|
* Parameters:
|
|
3323
3470
|
* - `rescuer`: The account trying to rescue this recoverable account.
|
|
3324
|
-
*
|
|
3325
|
-
* # <weight>
|
|
3326
|
-
* Key: V (len of vouching friends)
|
|
3327
|
-
* - One storage read/remove to get the active recovery process. O(1), Codec O(V)
|
|
3328
|
-
* - One balance call to repatriate reserved. O(X)
|
|
3329
|
-
* - One event.
|
|
3330
|
-
*
|
|
3331
|
-
* Total Complexity: O(V + X)
|
|
3332
|
-
* # </weight>
|
|
3333
3471
|
**/
|
|
3334
3472
|
closeRecovery: AugmentedSubmittable<(rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3335
3473
|
/**
|
|
@@ -3349,17 +3487,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3349
3487
|
* friends.
|
|
3350
3488
|
* - `delay_period`: The number of blocks after a recovery attempt is initialized that
|
|
3351
3489
|
* needs to pass before the account can be recovered.
|
|
3352
|
-
*
|
|
3353
|
-
* # <weight>
|
|
3354
|
-
* - Key: F (len of friends)
|
|
3355
|
-
* - One storage read to check that account is not already recoverable. O(1).
|
|
3356
|
-
* - A check that the friends list is sorted and unique. O(F)
|
|
3357
|
-
* - One currency reserve operation. O(X)
|
|
3358
|
-
* - One storage write. O(1). Codec O(F).
|
|
3359
|
-
* - One event.
|
|
3360
|
-
*
|
|
3361
|
-
* Total Complexity: O(F + X)
|
|
3362
|
-
* # </weight>
|
|
3363
3490
|
**/
|
|
3364
3491
|
createRecovery: AugmentedSubmittable<(friends: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], threshold: u16 | AnyNumber | Uint8Array, delayPeriod: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, u16, u32]>;
|
|
3365
3492
|
/**
|
|
@@ -3374,17 +3501,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3374
3501
|
* Parameters:
|
|
3375
3502
|
* - `account`: The lost account that you want to recover. This account needs to be
|
|
3376
3503
|
* recoverable (i.e. have a recovery configuration).
|
|
3377
|
-
*
|
|
3378
|
-
* # <weight>
|
|
3379
|
-
* - One storage read to check that account is recoverable. O(F)
|
|
3380
|
-
* - One storage read to check that this recovery process hasn't already started. O(1)
|
|
3381
|
-
* - One currency reserve operation. O(X)
|
|
3382
|
-
* - One storage read to get the current block number. O(1)
|
|
3383
|
-
* - One storage write. O(1).
|
|
3384
|
-
* - One event.
|
|
3385
|
-
*
|
|
3386
|
-
* Total Complexity: O(F + X)
|
|
3387
|
-
* # </weight>
|
|
3388
3504
|
**/
|
|
3389
3505
|
initiateRecovery: AugmentedSubmittable<(account: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3390
3506
|
/**
|
|
@@ -3399,16 +3515,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3399
3515
|
*
|
|
3400
3516
|
* The dispatch origin for this call must be _Signed_ and must be a
|
|
3401
3517
|
* recoverable account (i.e. has a recovery configuration).
|
|
3402
|
-
*
|
|
3403
|
-
* # <weight>
|
|
3404
|
-
* Key: F (len of friends)
|
|
3405
|
-
* - One storage read to get the prefix iterator for active recoveries. O(1)
|
|
3406
|
-
* - One storage read/remove to get the recovery configuration. O(1), Codec O(F)
|
|
3407
|
-
* - One balance call to unreserved. O(X)
|
|
3408
|
-
* - One event.
|
|
3409
|
-
*
|
|
3410
|
-
* Total Complexity: O(F + X)
|
|
3411
|
-
* # </weight>
|
|
3412
3518
|
**/
|
|
3413
3519
|
removeRecovery: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3414
3520
|
/**
|
|
@@ -3420,11 +3526,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3420
3526
|
* Parameters:
|
|
3421
3527
|
* - `lost`: The "lost account" to be recovered.
|
|
3422
3528
|
* - `rescuer`: The "rescuer account" which can call as the lost account.
|
|
3423
|
-
*
|
|
3424
|
-
* # <weight>
|
|
3425
|
-
* - One storage write O(1)
|
|
3426
|
-
* - One event
|
|
3427
|
-
* # </weight>
|
|
3428
3529
|
**/
|
|
3429
3530
|
setRecovered: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
|
3430
3531
|
/**
|
|
@@ -3440,18 +3541,6 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3440
3541
|
*
|
|
3441
3542
|
* The combination of these two parameters must point to an active recovery
|
|
3442
3543
|
* process.
|
|
3443
|
-
*
|
|
3444
|
-
* # <weight>
|
|
3445
|
-
* Key: F (len of friends in config), V (len of vouching friends)
|
|
3446
|
-
* - One storage read to get the recovery configuration. O(1), Codec O(F)
|
|
3447
|
-
* - One storage read to get the active recovery process. O(1), Codec O(V)
|
|
3448
|
-
* - One binary search to confirm caller is a friend. O(logF)
|
|
3449
|
-
* - One binary search to confirm caller has not already vouched. O(logV)
|
|
3450
|
-
* - One storage write. O(1), Codec O(V).
|
|
3451
|
-
* - One event.
|
|
3452
|
-
*
|
|
3453
|
-
* Total Complexity: O(F + logF + V + logV)
|
|
3454
|
-
* # </weight>
|
|
3455
3544
|
**/
|
|
3456
3545
|
vouchRecovery: AugmentedSubmittable<(lost: AccountId32 | string | Uint8Array, rescuer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, AccountId32]>;
|
|
3457
3546
|
/**
|
|
@@ -5207,6 +5296,24 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
5207
5296
|
* # </weight>
|
|
5208
5297
|
**/
|
|
5209
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>]>;
|
|
5210
5317
|
/**
|
|
5211
5318
|
* Generic tx
|
|
5212
5319
|
**/
|