@polkadot/api-augment 12.0.2 → 12.2.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 +0 -71
- package/kusama/errors.d.ts +4 -146
- package/kusama/events.d.ts +8 -160
- package/kusama/query.d.ts +1 -81
- package/kusama/tx.d.ts +64 -325
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +30 -0
- package/polkadot/errors.d.ts +40 -0
- package/polkadot/events.d.ts +40 -2
- package/polkadot/query.d.ts +26 -1
- package/polkadot/runtime.d.ts +27 -2
- package/polkadot/tx.d.ts +115 -1
- package/substrate/consts.d.ts +0 -13
- package/substrate/errors.d.ts +16 -4
- package/substrate/events.d.ts +9 -16
- package/substrate/query.d.ts +39 -4
- package/substrate/tx.d.ts +49 -75
package/cjs/packageInfo.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageInfo = void 0;
|
|
4
|
-
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.2.1' };
|
package/kusama/consts.d.ts
CHANGED
|
@@ -362,47 +362,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
362
362
|
**/
|
|
363
363
|
[key: string]: Codec;
|
|
364
364
|
};
|
|
365
|
-
identity: {
|
|
366
|
-
/**
|
|
367
|
-
* The amount held on deposit for a registered identity.
|
|
368
|
-
**/
|
|
369
|
-
basicDeposit: u128 & AugmentedConst<ApiType>;
|
|
370
|
-
/**
|
|
371
|
-
* The amount held on deposit per encoded byte for a registered identity.
|
|
372
|
-
**/
|
|
373
|
-
byteDeposit: u128 & AugmentedConst<ApiType>;
|
|
374
|
-
/**
|
|
375
|
-
* Maxmimum number of registrars allowed in the system. Needed to bound the complexity
|
|
376
|
-
* of, e.g., updating judgements.
|
|
377
|
-
**/
|
|
378
|
-
maxRegistrars: u32 & AugmentedConst<ApiType>;
|
|
379
|
-
/**
|
|
380
|
-
* The maximum number of sub-accounts allowed per identified account.
|
|
381
|
-
**/
|
|
382
|
-
maxSubAccounts: u32 & AugmentedConst<ApiType>;
|
|
383
|
-
/**
|
|
384
|
-
* The maximum length of a suffix.
|
|
385
|
-
**/
|
|
386
|
-
maxSuffixLength: u32 & AugmentedConst<ApiType>;
|
|
387
|
-
/**
|
|
388
|
-
* The maximum length of a username, including its suffix and any system-added delimiters.
|
|
389
|
-
**/
|
|
390
|
-
maxUsernameLength: u32 & AugmentedConst<ApiType>;
|
|
391
|
-
/**
|
|
392
|
-
* The number of blocks within which a username grant must be accepted.
|
|
393
|
-
**/
|
|
394
|
-
pendingUsernameExpiration: u32 & AugmentedConst<ApiType>;
|
|
395
|
-
/**
|
|
396
|
-
* The amount held on deposit for a registered subaccount. This should account for the fact
|
|
397
|
-
* that one storage item's value will increase by the size of an account ID, and there will
|
|
398
|
-
* be another trie item whose value is the size of an account ID plus 32 bytes.
|
|
399
|
-
**/
|
|
400
|
-
subAccountDeposit: u128 & AugmentedConst<ApiType>;
|
|
401
|
-
/**
|
|
402
|
-
* Generic const
|
|
403
|
-
**/
|
|
404
|
-
[key: string]: Codec;
|
|
405
|
-
};
|
|
406
365
|
indices: {
|
|
407
366
|
/**
|
|
408
367
|
* The deposit needed for reserving an index.
|
|
@@ -879,36 +838,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
879
838
|
**/
|
|
880
839
|
[key: string]: Codec;
|
|
881
840
|
};
|
|
882
|
-
stateTrieMigration: {
|
|
883
|
-
/**
|
|
884
|
-
* Maximal number of bytes that a key can have.
|
|
885
|
-
*
|
|
886
|
-
* FRAME itself does not limit the key length.
|
|
887
|
-
* The concrete value must therefore depend on your storage usage.
|
|
888
|
-
* A [`frame_support::storage::StorageNMap`] for example can have an arbitrary number of
|
|
889
|
-
* keys which are then hashed and concatenated, resulting in arbitrarily long keys.
|
|
890
|
-
*
|
|
891
|
-
* Use the *state migration RPC* to retrieve the length of the longest key in your
|
|
892
|
-
* storage: <https://github.com/paritytech/substrate/issues/11642>
|
|
893
|
-
*
|
|
894
|
-
* The migration will halt with a `Halted` event if this value is too small.
|
|
895
|
-
* Since there is no real penalty from over-estimating, it is advised to use a large
|
|
896
|
-
* value. The default is 512 byte.
|
|
897
|
-
*
|
|
898
|
-
* Some key lengths for reference:
|
|
899
|
-
* - [`frame_support::storage::StorageValue`]: 32 byte
|
|
900
|
-
* - [`frame_support::storage::StorageMap`]: 64 byte
|
|
901
|
-
* - [`frame_support::storage::StorageDoubleMap`]: 96 byte
|
|
902
|
-
*
|
|
903
|
-
* For more info see
|
|
904
|
-
* <https://www.shawntabrizi.com/blog/substrate/querying-substrate-storage-via-rpc/>
|
|
905
|
-
**/
|
|
906
|
-
maxKeyLen: u32 & AugmentedConst<ApiType>;
|
|
907
|
-
/**
|
|
908
|
-
* Generic const
|
|
909
|
-
**/
|
|
910
|
-
[key: string]: Codec;
|
|
911
|
-
};
|
|
912
841
|
system: {
|
|
913
842
|
/**
|
|
914
843
|
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
|
package/kusama/errors.d.ts
CHANGED
|
@@ -775,116 +775,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
775
775
|
**/
|
|
776
776
|
[key: string]: AugmentedError<ApiType>;
|
|
777
777
|
};
|
|
778
|
-
identity: {
|
|
779
|
-
/**
|
|
780
|
-
* Account ID is already named.
|
|
781
|
-
**/
|
|
782
|
-
AlreadyClaimed: AugmentedError<ApiType>;
|
|
783
|
-
/**
|
|
784
|
-
* Empty index.
|
|
785
|
-
**/
|
|
786
|
-
EmptyIndex: AugmentedError<ApiType>;
|
|
787
|
-
/**
|
|
788
|
-
* Fee is changed.
|
|
789
|
-
**/
|
|
790
|
-
FeeChanged: AugmentedError<ApiType>;
|
|
791
|
-
/**
|
|
792
|
-
* The index is invalid.
|
|
793
|
-
**/
|
|
794
|
-
InvalidIndex: AugmentedError<ApiType>;
|
|
795
|
-
/**
|
|
796
|
-
* Invalid judgement.
|
|
797
|
-
**/
|
|
798
|
-
InvalidJudgement: AugmentedError<ApiType>;
|
|
799
|
-
/**
|
|
800
|
-
* The signature on a username was not valid.
|
|
801
|
-
**/
|
|
802
|
-
InvalidSignature: AugmentedError<ApiType>;
|
|
803
|
-
/**
|
|
804
|
-
* The provided suffix is too long.
|
|
805
|
-
**/
|
|
806
|
-
InvalidSuffix: AugmentedError<ApiType>;
|
|
807
|
-
/**
|
|
808
|
-
* The target is invalid.
|
|
809
|
-
**/
|
|
810
|
-
InvalidTarget: AugmentedError<ApiType>;
|
|
811
|
-
/**
|
|
812
|
-
* The username does not meet the requirements.
|
|
813
|
-
**/
|
|
814
|
-
InvalidUsername: AugmentedError<ApiType>;
|
|
815
|
-
/**
|
|
816
|
-
* The provided judgement was for a different identity.
|
|
817
|
-
**/
|
|
818
|
-
JudgementForDifferentIdentity: AugmentedError<ApiType>;
|
|
819
|
-
/**
|
|
820
|
-
* Judgement given.
|
|
821
|
-
**/
|
|
822
|
-
JudgementGiven: AugmentedError<ApiType>;
|
|
823
|
-
/**
|
|
824
|
-
* Error that occurs when there is an issue paying for judgement.
|
|
825
|
-
**/
|
|
826
|
-
JudgementPaymentFailed: AugmentedError<ApiType>;
|
|
827
|
-
/**
|
|
828
|
-
* The authority cannot allocate any more usernames.
|
|
829
|
-
**/
|
|
830
|
-
NoAllocation: AugmentedError<ApiType>;
|
|
831
|
-
/**
|
|
832
|
-
* No identity found.
|
|
833
|
-
**/
|
|
834
|
-
NoIdentity: AugmentedError<ApiType>;
|
|
835
|
-
/**
|
|
836
|
-
* The username cannot be forcefully removed because it can still be accepted.
|
|
837
|
-
**/
|
|
838
|
-
NotExpired: AugmentedError<ApiType>;
|
|
839
|
-
/**
|
|
840
|
-
* Account isn't found.
|
|
841
|
-
**/
|
|
842
|
-
NotFound: AugmentedError<ApiType>;
|
|
843
|
-
/**
|
|
844
|
-
* Account isn't named.
|
|
845
|
-
**/
|
|
846
|
-
NotNamed: AugmentedError<ApiType>;
|
|
847
|
-
/**
|
|
848
|
-
* Sub-account isn't owned by sender.
|
|
849
|
-
**/
|
|
850
|
-
NotOwned: AugmentedError<ApiType>;
|
|
851
|
-
/**
|
|
852
|
-
* Sender is not a sub-account.
|
|
853
|
-
**/
|
|
854
|
-
NotSub: AugmentedError<ApiType>;
|
|
855
|
-
/**
|
|
856
|
-
* The sender does not have permission to issue a username.
|
|
857
|
-
**/
|
|
858
|
-
NotUsernameAuthority: AugmentedError<ApiType>;
|
|
859
|
-
/**
|
|
860
|
-
* The requested username does not exist.
|
|
861
|
-
**/
|
|
862
|
-
NoUsername: AugmentedError<ApiType>;
|
|
863
|
-
/**
|
|
864
|
-
* Setting this username requires a signature, but none was provided.
|
|
865
|
-
**/
|
|
866
|
-
RequiresSignature: AugmentedError<ApiType>;
|
|
867
|
-
/**
|
|
868
|
-
* Sticky judgement.
|
|
869
|
-
**/
|
|
870
|
-
StickyJudgement: AugmentedError<ApiType>;
|
|
871
|
-
/**
|
|
872
|
-
* Maximum amount of registrars reached. Cannot add any more.
|
|
873
|
-
**/
|
|
874
|
-
TooManyRegistrars: AugmentedError<ApiType>;
|
|
875
|
-
/**
|
|
876
|
-
* Too many subs-accounts.
|
|
877
|
-
**/
|
|
878
|
-
TooManySubAccounts: AugmentedError<ApiType>;
|
|
879
|
-
/**
|
|
880
|
-
* The username is already taken.
|
|
881
|
-
**/
|
|
882
|
-
UsernameTaken: AugmentedError<ApiType>;
|
|
883
|
-
/**
|
|
884
|
-
* Generic error
|
|
885
|
-
**/
|
|
886
|
-
[key: string]: AugmentedError<ApiType>;
|
|
887
|
-
};
|
|
888
778
|
indices: {
|
|
889
779
|
/**
|
|
890
780
|
* The index was not available.
|
|
@@ -2098,6 +1988,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2098
1988
|
* The user has enough bond and thus cannot be chilled forcefully by an external person.
|
|
2099
1989
|
**/
|
|
2100
1990
|
CannotChillOther: AugmentedError<ApiType>;
|
|
1991
|
+
/**
|
|
1992
|
+
* Cannot reset a ledger.
|
|
1993
|
+
**/
|
|
1994
|
+
CannotRestoreLedger: AugmentedError<ApiType>;
|
|
2101
1995
|
/**
|
|
2102
1996
|
* Commission is too low. Must be at least `MinCommission`.
|
|
2103
1997
|
**/
|
|
@@ -2187,42 +2081,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2187
2081
|
**/
|
|
2188
2082
|
[key: string]: AugmentedError<ApiType>;
|
|
2189
2083
|
};
|
|
2190
|
-
stateTrieMigration: {
|
|
2191
|
-
/**
|
|
2192
|
-
* Bad child root provided.
|
|
2193
|
-
**/
|
|
2194
|
-
BadChildRoot: AugmentedError<ApiType>;
|
|
2195
|
-
/**
|
|
2196
|
-
* Bad witness data provided.
|
|
2197
|
-
**/
|
|
2198
|
-
BadWitness: AugmentedError<ApiType>;
|
|
2199
|
-
/**
|
|
2200
|
-
* A key was longer than the configured maximum.
|
|
2201
|
-
*
|
|
2202
|
-
* This means that the migration halted at the current [`Progress`] and
|
|
2203
|
-
* can be resumed with a larger [`crate::Config::MaxKeyLen`] value.
|
|
2204
|
-
* Retrying with the same [`crate::Config::MaxKeyLen`] value will not work.
|
|
2205
|
-
* The value should only be increased to avoid a storage migration for the currently
|
|
2206
|
-
* stored [`crate::Progress::LastKey`].
|
|
2207
|
-
**/
|
|
2208
|
-
KeyTooLong: AugmentedError<ApiType>;
|
|
2209
|
-
/**
|
|
2210
|
-
* Max signed limits not respected.
|
|
2211
|
-
**/
|
|
2212
|
-
MaxSignedLimits: AugmentedError<ApiType>;
|
|
2213
|
-
/**
|
|
2214
|
-
* submitter does not have enough funds.
|
|
2215
|
-
**/
|
|
2216
|
-
NotEnoughFunds: AugmentedError<ApiType>;
|
|
2217
|
-
/**
|
|
2218
|
-
* Signed migration is not allowed because the maximum limit is not set yet.
|
|
2219
|
-
**/
|
|
2220
|
-
SignedMigrationNotAllowed: AugmentedError<ApiType>;
|
|
2221
|
-
/**
|
|
2222
|
-
* Generic error
|
|
2223
|
-
**/
|
|
2224
|
-
[key: string]: AugmentedError<ApiType>;
|
|
2225
|
-
};
|
|
2226
2084
|
system: {
|
|
2227
2085
|
/**
|
|
2228
2086
|
* The origin filter prevent the call to be dispatched.
|
package/kusama/events.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
|
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
6
6
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs,
|
|
7
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6CandidateReceipt, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, StagingKusamaRuntimeProxyType, StagingXcmV4AssetAssets, StagingXcmV4Location, StagingXcmV4Response, StagingXcmV4TraitsOutcome, StagingXcmV4Xcm, XcmV3TraitsError, XcmVersionedAssets, XcmVersionedLocation } from '@polkadot/types/lookup';
|
|
8
8
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
9
9
|
declare module '@polkadot/api-base/types/events' {
|
|
10
10
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -777,7 +777,7 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
777
777
|
proposedMaxMessageSize: u32;
|
|
778
778
|
}>;
|
|
779
779
|
/**
|
|
780
|
-
* An HRMP channel was opened
|
|
780
|
+
* An HRMP channel was opened with a system chain.
|
|
781
781
|
**/
|
|
782
782
|
HrmpSystemChannelOpened: AugmentedEvent<ApiType, [sender: u32, recipient: u32, proposedMaxCapacity: u32, proposedMaxMessageSize: u32], {
|
|
783
783
|
sender: u32;
|
|
@@ -820,132 +820,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
820
820
|
**/
|
|
821
821
|
[key: string]: AugmentedEvent<ApiType>;
|
|
822
822
|
};
|
|
823
|
-
identity: {
|
|
824
|
-
/**
|
|
825
|
-
* A username authority was added.
|
|
826
|
-
**/
|
|
827
|
-
AuthorityAdded: AugmentedEvent<ApiType, [authority: AccountId32], {
|
|
828
|
-
authority: AccountId32;
|
|
829
|
-
}>;
|
|
830
|
-
/**
|
|
831
|
-
* A username authority was removed.
|
|
832
|
-
**/
|
|
833
|
-
AuthorityRemoved: AugmentedEvent<ApiType, [authority: AccountId32], {
|
|
834
|
-
authority: AccountId32;
|
|
835
|
-
}>;
|
|
836
|
-
/**
|
|
837
|
-
* A dangling username (as in, a username corresponding to an account that has removed its
|
|
838
|
-
* identity) has been removed.
|
|
839
|
-
**/
|
|
840
|
-
DanglingUsernameRemoved: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], {
|
|
841
|
-
who: AccountId32;
|
|
842
|
-
username: Bytes;
|
|
843
|
-
}>;
|
|
844
|
-
/**
|
|
845
|
-
* A name was cleared, and the given balance returned.
|
|
846
|
-
**/
|
|
847
|
-
IdentityCleared: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], {
|
|
848
|
-
who: AccountId32;
|
|
849
|
-
deposit: u128;
|
|
850
|
-
}>;
|
|
851
|
-
/**
|
|
852
|
-
* A name was removed and the given balance slashed.
|
|
853
|
-
**/
|
|
854
|
-
IdentityKilled: AugmentedEvent<ApiType, [who: AccountId32, deposit: u128], {
|
|
855
|
-
who: AccountId32;
|
|
856
|
-
deposit: u128;
|
|
857
|
-
}>;
|
|
858
|
-
/**
|
|
859
|
-
* A name was set or reset (which will remove all judgements).
|
|
860
|
-
**/
|
|
861
|
-
IdentitySet: AugmentedEvent<ApiType, [who: AccountId32], {
|
|
862
|
-
who: AccountId32;
|
|
863
|
-
}>;
|
|
864
|
-
/**
|
|
865
|
-
* A judgement was given by a registrar.
|
|
866
|
-
**/
|
|
867
|
-
JudgementGiven: AugmentedEvent<ApiType, [target: AccountId32, registrarIndex: u32], {
|
|
868
|
-
target: AccountId32;
|
|
869
|
-
registrarIndex: u32;
|
|
870
|
-
}>;
|
|
871
|
-
/**
|
|
872
|
-
* A judgement was asked from a registrar.
|
|
873
|
-
**/
|
|
874
|
-
JudgementRequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], {
|
|
875
|
-
who: AccountId32;
|
|
876
|
-
registrarIndex: u32;
|
|
877
|
-
}>;
|
|
878
|
-
/**
|
|
879
|
-
* A judgement request was retracted.
|
|
880
|
-
**/
|
|
881
|
-
JudgementUnrequested: AugmentedEvent<ApiType, [who: AccountId32, registrarIndex: u32], {
|
|
882
|
-
who: AccountId32;
|
|
883
|
-
registrarIndex: u32;
|
|
884
|
-
}>;
|
|
885
|
-
/**
|
|
886
|
-
* A queued username passed its expiration without being claimed and was removed.
|
|
887
|
-
**/
|
|
888
|
-
PreapprovalExpired: AugmentedEvent<ApiType, [whose: AccountId32], {
|
|
889
|
-
whose: AccountId32;
|
|
890
|
-
}>;
|
|
891
|
-
/**
|
|
892
|
-
* A username was set as a primary and can be looked up from `who`.
|
|
893
|
-
**/
|
|
894
|
-
PrimaryUsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], {
|
|
895
|
-
who: AccountId32;
|
|
896
|
-
username: Bytes;
|
|
897
|
-
}>;
|
|
898
|
-
/**
|
|
899
|
-
* A registrar was added.
|
|
900
|
-
**/
|
|
901
|
-
RegistrarAdded: AugmentedEvent<ApiType, [registrarIndex: u32], {
|
|
902
|
-
registrarIndex: u32;
|
|
903
|
-
}>;
|
|
904
|
-
/**
|
|
905
|
-
* A sub-identity was added to an identity and the deposit paid.
|
|
906
|
-
**/
|
|
907
|
-
SubIdentityAdded: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], {
|
|
908
|
-
sub: AccountId32;
|
|
909
|
-
main: AccountId32;
|
|
910
|
-
deposit: u128;
|
|
911
|
-
}>;
|
|
912
|
-
/**
|
|
913
|
-
* A sub-identity was removed from an identity and the deposit freed.
|
|
914
|
-
**/
|
|
915
|
-
SubIdentityRemoved: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], {
|
|
916
|
-
sub: AccountId32;
|
|
917
|
-
main: AccountId32;
|
|
918
|
-
deposit: u128;
|
|
919
|
-
}>;
|
|
920
|
-
/**
|
|
921
|
-
* A sub-identity was cleared, and the given deposit repatriated from the
|
|
922
|
-
* main identity account to the sub-identity account.
|
|
923
|
-
**/
|
|
924
|
-
SubIdentityRevoked: AugmentedEvent<ApiType, [sub: AccountId32, main: AccountId32, deposit: u128], {
|
|
925
|
-
sub: AccountId32;
|
|
926
|
-
main: AccountId32;
|
|
927
|
-
deposit: u128;
|
|
928
|
-
}>;
|
|
929
|
-
/**
|
|
930
|
-
* A username was queued, but `who` must accept it prior to `expiration`.
|
|
931
|
-
**/
|
|
932
|
-
UsernameQueued: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes, expiration: u32], {
|
|
933
|
-
who: AccountId32;
|
|
934
|
-
username: Bytes;
|
|
935
|
-
expiration: u32;
|
|
936
|
-
}>;
|
|
937
|
-
/**
|
|
938
|
-
* A username was set for `who`.
|
|
939
|
-
**/
|
|
940
|
-
UsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], {
|
|
941
|
-
who: AccountId32;
|
|
942
|
-
username: Bytes;
|
|
943
|
-
}>;
|
|
944
|
-
/**
|
|
945
|
-
* Generic event
|
|
946
|
-
**/
|
|
947
|
-
[key: string]: AugmentedEvent<ApiType>;
|
|
948
|
-
};
|
|
949
823
|
indices: {
|
|
950
824
|
/**
|
|
951
825
|
* A account index was assigned.
|
|
@@ -2039,6 +1913,12 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2039
1913
|
Chilled: AugmentedEvent<ApiType, [stash: AccountId32], {
|
|
2040
1914
|
stash: AccountId32;
|
|
2041
1915
|
}>;
|
|
1916
|
+
/**
|
|
1917
|
+
* Report of a controller batch deprecation.
|
|
1918
|
+
**/
|
|
1919
|
+
ControllerBatchDeprecated: AugmentedEvent<ApiType, [failures: u32], {
|
|
1920
|
+
failures: u32;
|
|
1921
|
+
}>;
|
|
2042
1922
|
/**
|
|
2043
1923
|
* The era payout has been set; the first balance is the validator-payout; the second is
|
|
2044
1924
|
* the remainder from the maximum amount of reward.
|
|
@@ -2146,38 +2026,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2146
2026
|
**/
|
|
2147
2027
|
[key: string]: AugmentedEvent<ApiType>;
|
|
2148
2028
|
};
|
|
2149
|
-
stateTrieMigration: {
|
|
2150
|
-
/**
|
|
2151
|
-
* The auto migration task finished.
|
|
2152
|
-
**/
|
|
2153
|
-
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
|
|
2154
|
-
/**
|
|
2155
|
-
* Migration got halted due to an error or miss-configuration.
|
|
2156
|
-
**/
|
|
2157
|
-
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], {
|
|
2158
|
-
error: PalletStateTrieMigrationError;
|
|
2159
|
-
}>;
|
|
2160
|
-
/**
|
|
2161
|
-
* Given number of `(top, child)` keys were migrated respectively, with the given
|
|
2162
|
-
* `compute`.
|
|
2163
|
-
**/
|
|
2164
|
-
Migrated: AugmentedEvent<ApiType, [top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute], {
|
|
2165
|
-
top: u32;
|
|
2166
|
-
child: u32;
|
|
2167
|
-
compute: PalletStateTrieMigrationMigrationCompute;
|
|
2168
|
-
}>;
|
|
2169
|
-
/**
|
|
2170
|
-
* Some account got slashed by the given amount.
|
|
2171
|
-
**/
|
|
2172
|
-
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
2173
|
-
who: AccountId32;
|
|
2174
|
-
amount: u128;
|
|
2175
|
-
}>;
|
|
2176
|
-
/**
|
|
2177
|
-
* Generic event
|
|
2178
|
-
**/
|
|
2179
|
-
[key: string]: AugmentedEvent<ApiType>;
|
|
2180
|
-
};
|
|
2181
2029
|
system: {
|
|
2182
2030
|
/**
|
|
2183
2031
|
* `:code` was updated.
|
package/kusama/query.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import '@polkadot/api-base/types/storage';
|
|
2
2
|
import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
|
|
3
|
-
import type { Data } from '@polkadot/types';
|
|
4
3
|
import type { BTreeMap, BTreeSet, Bytes, Null, Option, Struct, U8aFixed, Vec, bool, u128, u16, u32, u64 } from '@polkadot/types-codec';
|
|
5
4
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
5
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
6
|
import type { AccountId32, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState,
|
|
7
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletConvictionVotingVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesPrimitivesHrmpChannelId, PolkadotPrimitivesV6AssignmentAppPublic, PolkadotPrimitivesV6CandidateCommitments, PolkadotPrimitivesV6DisputeState, PolkadotPrimitivesV6ExecutorParams, PolkadotPrimitivesV6ScrapedOnChainVotes, PolkadotPrimitivesV6SessionInfo, PolkadotPrimitivesV6SlashingPendingSlashes, PolkadotPrimitivesV6UpgradeGoAhead, PolkadotPrimitivesV6UpgradeRestriction, PolkadotPrimitivesV6ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonImplsVersionedLocatableAsset, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor, PolkadotRuntimeParachainsAssignerCoretimeSchedule, PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount, PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerPalletCoreOccupied, PolkadotRuntimeParachainsSchedulerPalletParasEntry, PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata, SpWeightsWeightV2Weight, StagingKusamaRuntimeRuntimeFreezeReason, StagingKusamaRuntimeRuntimeHoldReason, StagingKusamaRuntimeSessionKeys, XcmVersionedAssetId, XcmVersionedLocation } from '@polkadot/types/lookup';
|
|
9
8
|
import type { Observable } from '@polkadot/types/types';
|
|
10
9
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
11
10
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -824,60 +823,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
824
823
|
**/
|
|
825
824
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
826
825
|
};
|
|
827
|
-
identity: {
|
|
828
|
-
/**
|
|
829
|
-
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
|
|
830
|
-
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
|
|
831
|
-
*
|
|
832
|
-
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
|
|
833
|
-
* primary username.
|
|
834
|
-
**/
|
|
835
|
-
accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
|
836
|
-
/**
|
|
837
|
-
* Information that is pertinent to identify the entity behind an account. First item is the
|
|
838
|
-
* registration, second is the account's primary username.
|
|
839
|
-
*
|
|
840
|
-
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
841
|
-
**/
|
|
842
|
-
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
843
|
-
/**
|
|
844
|
-
* Usernames that an authority has granted, but that the account controller has not confirmed
|
|
845
|
-
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
|
|
846
|
-
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
|
|
847
|
-
* [`Call::accept_username`].
|
|
848
|
-
*
|
|
849
|
-
* First tuple item is the account and second is the acceptance deadline.
|
|
850
|
-
**/
|
|
851
|
-
pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
|
852
|
-
/**
|
|
853
|
-
* The set of registrars. Not expected to get very big as can only be added through a
|
|
854
|
-
* special origin (likely a council motion).
|
|
855
|
-
*
|
|
856
|
-
* The index into this can be cast to `RegistrarIndex` to get a valid value.
|
|
857
|
-
**/
|
|
858
|
-
registrars: AugmentedQuery<ApiType, () => Observable<Vec<Option<PalletIdentityRegistrarInfo>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
859
|
-
/**
|
|
860
|
-
* Alternative "sub" identities of this account.
|
|
861
|
-
*
|
|
862
|
-
* The first item is the deposit, the second is a vector of the accounts.
|
|
863
|
-
*
|
|
864
|
-
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
865
|
-
**/
|
|
866
|
-
subsOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<ITuple<[u128, Vec<AccountId32>]>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
867
|
-
/**
|
|
868
|
-
* The super-identity of an alternative "sub" identity together with its name, within that
|
|
869
|
-
* context. If the account is not some other account's sub-identity, then just `None`.
|
|
870
|
-
**/
|
|
871
|
-
superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
872
|
-
/**
|
|
873
|
-
* A map of the accounts who are authorized to grant usernames.
|
|
874
|
-
**/
|
|
875
|
-
usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
876
|
-
/**
|
|
877
|
-
* Generic query
|
|
878
|
-
**/
|
|
879
|
-
[key: string]: QueryableStorageEntry<ApiType>;
|
|
880
|
-
};
|
|
881
826
|
indices: {
|
|
882
827
|
/**
|
|
883
828
|
* The lookup from index to account.
|
|
@@ -2080,31 +2025,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2080
2025
|
**/
|
|
2081
2026
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2082
2027
|
};
|
|
2083
|
-
stateTrieMigration: {
|
|
2084
|
-
/**
|
|
2085
|
-
* The limits that are imposed on automatic migrations.
|
|
2086
|
-
*
|
|
2087
|
-
* If set to None, then no automatic migration happens.
|
|
2088
|
-
**/
|
|
2089
|
-
autoLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2090
|
-
/**
|
|
2091
|
-
* Migration progress.
|
|
2092
|
-
*
|
|
2093
|
-
* This stores the snapshot of the last migrated keys. It can be set into motion and move
|
|
2094
|
-
* forward by any of the means provided by this pallet.
|
|
2095
|
-
**/
|
|
2096
|
-
migrationProcess: AugmentedQuery<ApiType, () => Observable<PalletStateTrieMigrationMigrationTask>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2097
|
-
/**
|
|
2098
|
-
* The maximum limits that the signed migration could use.
|
|
2099
|
-
*
|
|
2100
|
-
* If not set, no signed submission is allowed.
|
|
2101
|
-
**/
|
|
2102
|
-
signedMigrationMaxLimits: AugmentedQuery<ApiType, () => Observable<Option<PalletStateTrieMigrationMigrationLimits>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2103
|
-
/**
|
|
2104
|
-
* Generic query
|
|
2105
|
-
**/
|
|
2106
|
-
[key: string]: QueryableStorageEntry<ApiType>;
|
|
2107
|
-
};
|
|
2108
2028
|
system: {
|
|
2109
2029
|
/**
|
|
2110
2030
|
* The full account information for a particular account ID.
|