@polkadot/api-augment 8.4.3-5 → 8.5.1
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/consts.d.ts +73 -67
- package/kusama/errors.d.ts +125 -10
- package/kusama/events.d.ts +71 -27
- package/kusama/query.d.ts +116 -23
- package/kusama/tx.d.ts +226 -29
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +55 -67
- package/polkadot/errors.d.ts +14 -10
- package/polkadot/events.d.ts +25 -26
- package/polkadot/query.d.ts +26 -22
- package/polkadot/tx.d.ts +30 -28
- package/substrate/consts.d.ts +38 -21
- package/substrate/errors.d.ts +23 -7
- package/substrate/events.d.ts +42 -29
- package/substrate/query.d.ts +27 -14
- package/substrate/tx.d.ts +238 -171
package/cjs/packageInfo.js
CHANGED
package/kusama/consts.d.ts
CHANGED
|
@@ -59,58 +59,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
59
59
|
**/
|
|
60
60
|
[key: string]: Codec;
|
|
61
61
|
};
|
|
62
|
-
bagsList: {
|
|
63
|
-
/**
|
|
64
|
-
* The list of thresholds separating the various bags.
|
|
65
|
-
*
|
|
66
|
-
* Ids are separated into unsorted bags according to their score. This specifies the
|
|
67
|
-
* thresholds separating the bags. An id's bag is the largest bag for which the id's score
|
|
68
|
-
* is less than or equal to its upper threshold.
|
|
69
|
-
*
|
|
70
|
-
* When ids are iterated, higher bags are iterated completely before lower bags. This means
|
|
71
|
-
* that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
|
|
72
|
-
* score, but peer ids within a particular bag are sorted in insertion order.
|
|
73
|
-
*
|
|
74
|
-
* # Expressing the constant
|
|
75
|
-
*
|
|
76
|
-
* This constant must be sorted in strictly increasing order. Duplicate items are not
|
|
77
|
-
* permitted.
|
|
78
|
-
*
|
|
79
|
-
* There is an implied upper limit of `Score::MAX`; that value does not need to be
|
|
80
|
-
* specified within the bag. For any two threshold lists, if one ends with
|
|
81
|
-
* `Score::MAX`, the other one does not, and they are otherwise equal, the two
|
|
82
|
-
* lists will behave identically.
|
|
83
|
-
*
|
|
84
|
-
* # Calculation
|
|
85
|
-
*
|
|
86
|
-
* It is recommended to generate the set of thresholds in a geometric series, such that
|
|
87
|
-
* there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
|
|
88
|
-
* constant_ratio).max(threshold[k] + 1)` for all `k`.
|
|
89
|
-
*
|
|
90
|
-
* The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
|
|
91
|
-
*
|
|
92
|
-
* # Examples
|
|
93
|
-
*
|
|
94
|
-
* - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
|
|
95
|
-
* iteration is strictly in insertion order.
|
|
96
|
-
* - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
|
|
97
|
-
* the procedure given above, then the constant ratio is equal to 2.
|
|
98
|
-
* - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
|
|
99
|
-
* the procedure given above, then the constant ratio is approximately equal to 1.248.
|
|
100
|
-
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
|
|
101
|
-
* into bag 0, an id with score 2 will fall into bag 1, etc.
|
|
102
|
-
*
|
|
103
|
-
* # Migration
|
|
104
|
-
*
|
|
105
|
-
* In the event that this list ever changes, a copy of the old bags list must be retained.
|
|
106
|
-
* With that `List::migrate` can be called, which will perform the appropriate migration.
|
|
107
|
-
**/
|
|
108
|
-
bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
|
|
109
|
-
/**
|
|
110
|
-
* Generic const
|
|
111
|
-
**/
|
|
112
|
-
[key: string]: Codec;
|
|
113
|
-
};
|
|
114
62
|
balances: {
|
|
115
63
|
/**
|
|
116
64
|
* The minimum amount required to keep an account open.
|
|
@@ -300,20 +248,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
300
248
|
* take place over multiple blocks.
|
|
301
249
|
**/
|
|
302
250
|
maxElectingVoters: u32 & AugmentedConst<ApiType>;
|
|
303
|
-
/**
|
|
304
|
-
* Maximum length (bytes) that the mined solution should consume.
|
|
305
|
-
*
|
|
306
|
-
* The miner will ensure that the total length of the unsigned solution will not exceed
|
|
307
|
-
* this value.
|
|
308
|
-
**/
|
|
309
|
-
minerMaxLength: u32 & AugmentedConst<ApiType>;
|
|
310
|
-
/**
|
|
311
|
-
* Maximum weight that the miner should consume.
|
|
312
|
-
*
|
|
313
|
-
* The miner will ensure that the total weight of the unsigned solution will not exceed
|
|
314
|
-
* this value, based on [`WeightInfo::submit_unsigned`].
|
|
315
|
-
**/
|
|
316
|
-
minerMaxWeight: u64 & AugmentedConst<ApiType>;
|
|
317
251
|
/**
|
|
318
252
|
* The priority of the unsigned transaction submitted in the unsigned-phase
|
|
319
253
|
**/
|
|
@@ -354,7 +288,9 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
354
288
|
/**
|
|
355
289
|
* Maximum weight of a signed solution.
|
|
356
290
|
*
|
|
357
|
-
*
|
|
291
|
+
* If [`Config::MinerConfig`] is being implemented to submit signed solutions (outside of
|
|
292
|
+
* this pallet), then [`MinerConfig::solution_weight`] is used to compare against
|
|
293
|
+
* this value.
|
|
358
294
|
**/
|
|
359
295
|
signedMaxWeight: u64 & AugmentedConst<ApiType>;
|
|
360
296
|
/**
|
|
@@ -515,6 +451,24 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
515
451
|
**/
|
|
516
452
|
[key: string]: Codec;
|
|
517
453
|
};
|
|
454
|
+
nominationPools: {
|
|
455
|
+
/**
|
|
456
|
+
* The minimum pool points-to-balance ratio that must be maintained for it to be `open`.
|
|
457
|
+
* This is important in the event slashing takes place and the pool's points-to-balance
|
|
458
|
+
* ratio becomes disproportional.
|
|
459
|
+
* For a value of 10, the threshold would be a pool points-to-balance ratio of 10:1.
|
|
460
|
+
* Such a scenario would also be the equivalent of the pool being 90% slashed.
|
|
461
|
+
**/
|
|
462
|
+
minPointsToBalance: u32 & AugmentedConst<ApiType>;
|
|
463
|
+
/**
|
|
464
|
+
* The nomination pool's pallet id.
|
|
465
|
+
**/
|
|
466
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
467
|
+
/**
|
|
468
|
+
* Generic const
|
|
469
|
+
**/
|
|
470
|
+
[key: string]: Codec;
|
|
471
|
+
};
|
|
518
472
|
paras: {
|
|
519
473
|
unsignedPriority: u64 & AugmentedConst<ApiType>;
|
|
520
474
|
/**
|
|
@@ -941,5 +895,57 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
941
895
|
**/
|
|
942
896
|
[key: string]: Codec;
|
|
943
897
|
};
|
|
898
|
+
voterList: {
|
|
899
|
+
/**
|
|
900
|
+
* The list of thresholds separating the various bags.
|
|
901
|
+
*
|
|
902
|
+
* Ids are separated into unsorted bags according to their score. This specifies the
|
|
903
|
+
* thresholds separating the bags. An id's bag is the largest bag for which the id's score
|
|
904
|
+
* is less than or equal to its upper threshold.
|
|
905
|
+
*
|
|
906
|
+
* When ids are iterated, higher bags are iterated completely before lower bags. This means
|
|
907
|
+
* that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
|
|
908
|
+
* score, but peer ids within a particular bag are sorted in insertion order.
|
|
909
|
+
*
|
|
910
|
+
* # Expressing the constant
|
|
911
|
+
*
|
|
912
|
+
* This constant must be sorted in strictly increasing order. Duplicate items are not
|
|
913
|
+
* permitted.
|
|
914
|
+
*
|
|
915
|
+
* There is an implied upper limit of `Score::MAX`; that value does not need to be
|
|
916
|
+
* specified within the bag. For any two threshold lists, if one ends with
|
|
917
|
+
* `Score::MAX`, the other one does not, and they are otherwise equal, the two
|
|
918
|
+
* lists will behave identically.
|
|
919
|
+
*
|
|
920
|
+
* # Calculation
|
|
921
|
+
*
|
|
922
|
+
* It is recommended to generate the set of thresholds in a geometric series, such that
|
|
923
|
+
* there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
|
|
924
|
+
* constant_ratio).max(threshold[k] + 1)` for all `k`.
|
|
925
|
+
*
|
|
926
|
+
* The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
|
|
927
|
+
*
|
|
928
|
+
* # Examples
|
|
929
|
+
*
|
|
930
|
+
* - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
|
|
931
|
+
* iteration is strictly in insertion order.
|
|
932
|
+
* - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
|
|
933
|
+
* the procedure given above, then the constant ratio is equal to 2.
|
|
934
|
+
* - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
|
|
935
|
+
* the procedure given above, then the constant ratio is approximately equal to 1.248.
|
|
936
|
+
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
|
|
937
|
+
* into bag 0, an id with score 2 will fall into bag 1, etc.
|
|
938
|
+
*
|
|
939
|
+
* # Migration
|
|
940
|
+
*
|
|
941
|
+
* In the event that this list ever changes, a copy of the old bags list must be retained.
|
|
942
|
+
* With that `List::migrate` can be called, which will perform the appropriate migration.
|
|
943
|
+
**/
|
|
944
|
+
bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
|
|
945
|
+
/**
|
|
946
|
+
* Generic const
|
|
947
|
+
**/
|
|
948
|
+
[key: string]: Codec;
|
|
949
|
+
};
|
|
944
950
|
}
|
|
945
951
|
}
|
package/kusama/errors.d.ts
CHANGED
|
@@ -74,6 +74,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
74
74
|
* A given equivocation report is valid but already previously reported.
|
|
75
75
|
**/
|
|
76
76
|
DuplicateOffenceReport: AugmentedError<ApiType>;
|
|
77
|
+
/**
|
|
78
|
+
* Submitted configuration is invalid.
|
|
79
|
+
**/
|
|
80
|
+
InvalidConfiguration: AugmentedError<ApiType>;
|
|
77
81
|
/**
|
|
78
82
|
* An equivocation proof provided as part of an equivocation report is invalid.
|
|
79
83
|
**/
|
|
@@ -87,16 +91,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
87
91
|
**/
|
|
88
92
|
[key: string]: AugmentedError<ApiType>;
|
|
89
93
|
};
|
|
90
|
-
bagsList: {
|
|
91
|
-
/**
|
|
92
|
-
* A error in the list interface implementation.
|
|
93
|
-
**/
|
|
94
|
-
List: AugmentedError<ApiType>;
|
|
95
|
-
/**
|
|
96
|
-
* Generic error
|
|
97
|
-
**/
|
|
98
|
-
[key: string]: AugmentedError<ApiType>;
|
|
99
|
-
};
|
|
100
94
|
balances: {
|
|
101
95
|
/**
|
|
102
96
|
* Beneficiary account must pre-exist
|
|
@@ -891,6 +885,117 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
891
885
|
**/
|
|
892
886
|
[key: string]: AugmentedError<ApiType>;
|
|
893
887
|
};
|
|
888
|
+
nominationPools: {
|
|
889
|
+
/**
|
|
890
|
+
* An account is already delegating in another pool. An account may only belong to one
|
|
891
|
+
* pool at a time.
|
|
892
|
+
**/
|
|
893
|
+
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
|
894
|
+
/**
|
|
895
|
+
* The member is already unbonding in this era.
|
|
896
|
+
**/
|
|
897
|
+
AlreadyUnbonding: AugmentedError<ApiType>;
|
|
898
|
+
/**
|
|
899
|
+
* The pools state cannot be changed.
|
|
900
|
+
**/
|
|
901
|
+
CanNotChangeState: AugmentedError<ApiType>;
|
|
902
|
+
/**
|
|
903
|
+
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
|
904
|
+
**/
|
|
905
|
+
CannotWithdrawAny: AugmentedError<ApiType>;
|
|
906
|
+
/**
|
|
907
|
+
* Some error occurred that should never happen. This should be reported to the
|
|
908
|
+
* maintainers.
|
|
909
|
+
**/
|
|
910
|
+
DefensiveError: AugmentedError<ApiType>;
|
|
911
|
+
/**
|
|
912
|
+
* The caller does not have adequate permissions.
|
|
913
|
+
**/
|
|
914
|
+
DoesNotHavePermission: AugmentedError<ApiType>;
|
|
915
|
+
/**
|
|
916
|
+
* The member is fully unbonded (and thus cannot access the bonded and reward pool
|
|
917
|
+
* anymore to, for example, collect rewards).
|
|
918
|
+
**/
|
|
919
|
+
FullyUnbonding: AugmentedError<ApiType>;
|
|
920
|
+
/**
|
|
921
|
+
* The pool has insufficient balance to bond as a nominator.
|
|
922
|
+
**/
|
|
923
|
+
InsufficientBond: AugmentedError<ApiType>;
|
|
924
|
+
/**
|
|
925
|
+
* Too many members in the pool or system.
|
|
926
|
+
**/
|
|
927
|
+
MaxPoolMembers: AugmentedError<ApiType>;
|
|
928
|
+
/**
|
|
929
|
+
* The system is maxed out on pools.
|
|
930
|
+
**/
|
|
931
|
+
MaxPools: AugmentedError<ApiType>;
|
|
932
|
+
/**
|
|
933
|
+
* The member cannot unbond further chunks due to reaching the limit.
|
|
934
|
+
**/
|
|
935
|
+
MaxUnbondingLimit: AugmentedError<ApiType>;
|
|
936
|
+
/**
|
|
937
|
+
* Metadata exceeds [`Config::MaxMetadataLen`]
|
|
938
|
+
**/
|
|
939
|
+
MetadataExceedsMaxLen: AugmentedError<ApiType>;
|
|
940
|
+
/**
|
|
941
|
+
* The amount does not meet the minimum bond to either join or create a pool.
|
|
942
|
+
**/
|
|
943
|
+
MinimumBondNotMet: AugmentedError<ApiType>;
|
|
944
|
+
/**
|
|
945
|
+
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
|
946
|
+
* other members to be permissionlessly unbonded.
|
|
947
|
+
**/
|
|
948
|
+
NotDestroying: AugmentedError<ApiType>;
|
|
949
|
+
/**
|
|
950
|
+
* Not enough points. Ty unbonding less.
|
|
951
|
+
**/
|
|
952
|
+
NotEnoughPointsToUnbond: AugmentedError<ApiType>;
|
|
953
|
+
/**
|
|
954
|
+
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
|
955
|
+
**/
|
|
956
|
+
NotKickerOrDestroying: AugmentedError<ApiType>;
|
|
957
|
+
/**
|
|
958
|
+
* The caller does not have nominating permissions for the pool.
|
|
959
|
+
**/
|
|
960
|
+
NotNominator: AugmentedError<ApiType>;
|
|
961
|
+
/**
|
|
962
|
+
* The depositor must be the only member in the bonded pool in order to unbond. And the
|
|
963
|
+
* depositor must be the only member in the sub pools in order to withdraw unbonded.
|
|
964
|
+
**/
|
|
965
|
+
NotOnlyPoolMember: AugmentedError<ApiType>;
|
|
966
|
+
/**
|
|
967
|
+
* The pool is not open to join
|
|
968
|
+
**/
|
|
969
|
+
NotOpen: AugmentedError<ApiType>;
|
|
970
|
+
/**
|
|
971
|
+
* The transaction could not be executed due to overflow risk for the pool.
|
|
972
|
+
**/
|
|
973
|
+
OverflowRisk: AugmentedError<ApiType>;
|
|
974
|
+
/**
|
|
975
|
+
* Partial unbonding now allowed permissionlessly.
|
|
976
|
+
**/
|
|
977
|
+
PartialUnbondNotAllowedPermissionlessly: AugmentedError<ApiType>;
|
|
978
|
+
/**
|
|
979
|
+
* An account is not a member.
|
|
980
|
+
**/
|
|
981
|
+
PoolMemberNotFound: AugmentedError<ApiType>;
|
|
982
|
+
/**
|
|
983
|
+
* A (bonded) pool id does not exist.
|
|
984
|
+
**/
|
|
985
|
+
PoolNotFound: AugmentedError<ApiType>;
|
|
986
|
+
/**
|
|
987
|
+
* A reward pool does not exist. In all cases this is a system logic error.
|
|
988
|
+
**/
|
|
989
|
+
RewardPoolNotFound: AugmentedError<ApiType>;
|
|
990
|
+
/**
|
|
991
|
+
* A sub pool does not exist.
|
|
992
|
+
**/
|
|
993
|
+
SubPoolsNotFound: AugmentedError<ApiType>;
|
|
994
|
+
/**
|
|
995
|
+
* Generic error
|
|
996
|
+
**/
|
|
997
|
+
[key: string]: AugmentedError<ApiType>;
|
|
998
|
+
};
|
|
894
999
|
paraInclusion: {
|
|
895
1000
|
/**
|
|
896
1001
|
* Bitfield consists of zeros only.
|
|
@@ -1854,6 +1959,16 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1854
1959
|
**/
|
|
1855
1960
|
[key: string]: AugmentedError<ApiType>;
|
|
1856
1961
|
};
|
|
1962
|
+
voterList: {
|
|
1963
|
+
/**
|
|
1964
|
+
* A error in the list interface implementation.
|
|
1965
|
+
**/
|
|
1966
|
+
List: AugmentedError<ApiType>;
|
|
1967
|
+
/**
|
|
1968
|
+
* Generic error
|
|
1969
|
+
**/
|
|
1970
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1971
|
+
};
|
|
1857
1972
|
xcmPallet: {
|
|
1858
1973
|
/**
|
|
1859
1974
|
* The location is invalid since it already has a subscription from us.
|
package/kusama/events.d.ts
CHANGED
|
@@ -3,34 +3,31 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
|
|
3
3
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
4
4
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
5
5
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
6
|
+
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, KusamaRuntimeProxyType, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
7
7
|
declare module '@polkadot/api-base/types/events' {
|
|
8
8
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
9
9
|
auctions: {
|
|
10
10
|
/**
|
|
11
|
-
* An auction ended. All funds become unreserved.
|
|
11
|
+
* An auction ended. All funds become unreserved.
|
|
12
12
|
**/
|
|
13
13
|
AuctionClosed: AugmentedEvent<ApiType, [u32]>;
|
|
14
14
|
/**
|
|
15
15
|
* An auction started. Provides its index and the block number where it will begin to
|
|
16
16
|
* close and the first lease period of the quadruplet that is auctioned.
|
|
17
|
-
* `[auction_index, lease_period, ending]`
|
|
18
17
|
**/
|
|
19
18
|
AuctionStarted: AugmentedEvent<ApiType, [u32, u32, u32]>;
|
|
20
19
|
/**
|
|
21
20
|
* A new bid has been accepted as the current winner.
|
|
22
|
-
* `[who, para_id, amount, first_slot, last_slot]`
|
|
23
21
|
**/
|
|
24
22
|
BidAccepted: AugmentedEvent<ApiType, [AccountId32, u32, u128, u32, u32]>;
|
|
25
23
|
/**
|
|
26
24
|
* Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve
|
|
27
25
|
* but no parachain slot has been leased.
|
|
28
|
-
* `[parachain_id, leaser, amount]`
|
|
29
26
|
**/
|
|
30
27
|
ReserveConfiscated: AugmentedEvent<ApiType, [u32, AccountId32, u128]>;
|
|
31
28
|
/**
|
|
32
29
|
* Funds were reserved for a winning bid. First balance is the extra amount reserved.
|
|
33
|
-
* Second is the total.
|
|
30
|
+
* Second is the total.
|
|
34
31
|
**/
|
|
35
32
|
Reserved: AugmentedEvent<ApiType, [AccountId32, u128, u128]>;
|
|
36
33
|
/**
|
|
@@ -39,7 +36,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
39
36
|
Unreserved: AugmentedEvent<ApiType, [AccountId32, u128]>;
|
|
40
37
|
/**
|
|
41
38
|
* The winning offset was chosen for an auction. This will map into the `Winning` storage map.
|
|
42
|
-
* `[auction_index, block_number]`
|
|
43
39
|
**/
|
|
44
40
|
WinningOffset: AugmentedEvent<ApiType, [u32, u32]>;
|
|
45
41
|
/**
|
|
@@ -47,16 +43,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
47
43
|
**/
|
|
48
44
|
[key: string]: AugmentedEvent<ApiType>;
|
|
49
45
|
};
|
|
50
|
-
bagsList: {
|
|
51
|
-
/**
|
|
52
|
-
* Moved an account from one bag to another.
|
|
53
|
-
**/
|
|
54
|
-
Rebagged: AugmentedEvent<ApiType, [AccountId32, u64, u64]>;
|
|
55
|
-
/**
|
|
56
|
-
* Generic event
|
|
57
|
-
**/
|
|
58
|
-
[key: string]: AugmentedEvent<ApiType>;
|
|
59
|
-
};
|
|
60
46
|
balances: {
|
|
61
47
|
/**
|
|
62
48
|
* A balance was set by root.
|
|
@@ -163,7 +149,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
163
149
|
};
|
|
164
150
|
claims: {
|
|
165
151
|
/**
|
|
166
|
-
* Someone claimed some DOTs.
|
|
152
|
+
* Someone claimed some DOTs.
|
|
167
153
|
**/
|
|
168
154
|
Claimed: AugmentedEvent<ApiType, [AccountId32, EthereumAddress, u128]>;
|
|
169
155
|
/**
|
|
@@ -213,23 +199,23 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
213
199
|
**/
|
|
214
200
|
AddedToNewRaise: AugmentedEvent<ApiType, [u32]>;
|
|
215
201
|
/**
|
|
216
|
-
* All loans in a fund have been refunded.
|
|
202
|
+
* All loans in a fund have been refunded.
|
|
217
203
|
**/
|
|
218
204
|
AllRefunded: AugmentedEvent<ApiType, [u32]>;
|
|
219
205
|
/**
|
|
220
|
-
* Contributed to a crowd sale.
|
|
206
|
+
* Contributed to a crowd sale.
|
|
221
207
|
**/
|
|
222
208
|
Contributed: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
|
223
209
|
/**
|
|
224
|
-
* Create a new crowdloaning campaign.
|
|
210
|
+
* Create a new crowdloaning campaign.
|
|
225
211
|
**/
|
|
226
212
|
Created: AugmentedEvent<ApiType, [u32]>;
|
|
227
213
|
/**
|
|
228
|
-
* Fund is dissolved.
|
|
214
|
+
* Fund is dissolved.
|
|
229
215
|
**/
|
|
230
216
|
Dissolved: AugmentedEvent<ApiType, [u32]>;
|
|
231
217
|
/**
|
|
232
|
-
* The configuration to a crowdloan has been edited.
|
|
218
|
+
* The configuration to a crowdloan has been edited.
|
|
233
219
|
**/
|
|
234
220
|
Edited: AugmentedEvent<ApiType, [u32]>;
|
|
235
221
|
/**
|
|
@@ -237,16 +223,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
237
223
|
**/
|
|
238
224
|
HandleBidResult: AugmentedEvent<ApiType, [u32, Result<Null, SpRuntimeDispatchError>]>;
|
|
239
225
|
/**
|
|
240
|
-
* A memo has been updated.
|
|
226
|
+
* A memo has been updated.
|
|
241
227
|
**/
|
|
242
228
|
MemoUpdated: AugmentedEvent<ApiType, [AccountId32, u32, Bytes]>;
|
|
243
229
|
/**
|
|
244
230
|
* The loans in a fund have been partially dissolved, i.e. there are some left
|
|
245
|
-
* over child keys that still need to be killed.
|
|
231
|
+
* over child keys that still need to be killed.
|
|
246
232
|
**/
|
|
247
233
|
PartiallyRefunded: AugmentedEvent<ApiType, [u32]>;
|
|
248
234
|
/**
|
|
249
|
-
* Withdrew full balance of a contributor.
|
|
235
|
+
* Withdrew full balance of a contributor.
|
|
250
236
|
**/
|
|
251
237
|
Withdrew: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
|
252
238
|
/**
|
|
@@ -541,6 +527,51 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
541
527
|
**/
|
|
542
528
|
[key: string]: AugmentedEvent<ApiType>;
|
|
543
529
|
};
|
|
530
|
+
nominationPools: {
|
|
531
|
+
/**
|
|
532
|
+
* A member has became bonded in a pool.
|
|
533
|
+
**/
|
|
534
|
+
Bonded: AugmentedEvent<ApiType, [AccountId32, u32, u128, bool]>;
|
|
535
|
+
/**
|
|
536
|
+
* A pool has been created.
|
|
537
|
+
**/
|
|
538
|
+
Created: AugmentedEvent<ApiType, [AccountId32, u32]>;
|
|
539
|
+
/**
|
|
540
|
+
* A pool has been destroyed.
|
|
541
|
+
**/
|
|
542
|
+
Destroyed: AugmentedEvent<ApiType, [u32]>;
|
|
543
|
+
/**
|
|
544
|
+
* A member has been removed from a pool.
|
|
545
|
+
*
|
|
546
|
+
* The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
|
|
547
|
+
**/
|
|
548
|
+
MemberRemoved: AugmentedEvent<ApiType, [u32, AccountId32]>;
|
|
549
|
+
/**
|
|
550
|
+
* A payout has been made to a member.
|
|
551
|
+
**/
|
|
552
|
+
PaidOut: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
|
553
|
+
/**
|
|
554
|
+
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
|
555
|
+
* can never change.
|
|
556
|
+
**/
|
|
557
|
+
RolesUpdated: AugmentedEvent<ApiType, [Option<AccountId32>, Option<AccountId32>, Option<AccountId32>]>;
|
|
558
|
+
/**
|
|
559
|
+
* The state of a pool has changed
|
|
560
|
+
**/
|
|
561
|
+
StateChanged: AugmentedEvent<ApiType, [u32, PalletNominationPoolsPoolState]>;
|
|
562
|
+
/**
|
|
563
|
+
* A member has unbonded from their pool.
|
|
564
|
+
**/
|
|
565
|
+
Unbonded: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
|
566
|
+
/**
|
|
567
|
+
* A member has withdrawn from their pool.
|
|
568
|
+
**/
|
|
569
|
+
Withdrawn: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
|
570
|
+
/**
|
|
571
|
+
* Generic event
|
|
572
|
+
**/
|
|
573
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
574
|
+
};
|
|
544
575
|
offences: {
|
|
545
576
|
/**
|
|
546
577
|
* There is an offence reported of the given `kind` happened at the `session_index` and
|
|
@@ -804,7 +835,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
804
835
|
* A para has won the right to a continuous set of lease periods as a parachain.
|
|
805
836
|
* First balance is any extra amount reserved on top of the para's existing deposit.
|
|
806
837
|
* Second balance is the total amount reserved.
|
|
807
|
-
* `[parachain_id, leaser, period_begin, period_count, extra_reserved, total_amount]`
|
|
808
838
|
**/
|
|
809
839
|
Leased: AugmentedEvent<ApiType, [u32, AccountId32, u32, u32, u128, u128]>;
|
|
810
840
|
/**
|
|
@@ -1205,6 +1235,20 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1205
1235
|
**/
|
|
1206
1236
|
[key: string]: AugmentedEvent<ApiType>;
|
|
1207
1237
|
};
|
|
1238
|
+
voterList: {
|
|
1239
|
+
/**
|
|
1240
|
+
* Moved an account from one bag to another.
|
|
1241
|
+
**/
|
|
1242
|
+
Rebagged: AugmentedEvent<ApiType, [AccountId32, u64, u64]>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Updated the score of some account to the given amount.
|
|
1245
|
+
**/
|
|
1246
|
+
ScoreUpdated: AugmentedEvent<ApiType, [AccountId32, u64]>;
|
|
1247
|
+
/**
|
|
1248
|
+
* Generic event
|
|
1249
|
+
**/
|
|
1250
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
1251
|
+
};
|
|
1208
1252
|
xcmPallet: {
|
|
1209
1253
|
/**
|
|
1210
1254
|
* Some assets have been placed in an asset trap.
|