@polkadot/api-augment 8.7.2-9 → 8.8.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/events.d.ts +734 -180
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/polkadot/events.d.ts +592 -145
- package/substrate/consts.d.ts +83 -1
- package/substrate/errors.d.ts +249 -9
- package/substrate/events.d.ts +1261 -233
- package/substrate/query.d.ts +133 -7
- package/substrate/tx.d.ts +521 -15
package/substrate/query.d.ts
CHANGED
|
@@ -1,12 +1,81 @@
|
|
|
1
1
|
import type { ApiTypes } from '@polkadot/api-base/types';
|
|
2
2
|
import type { Data } from '@polkadot/types';
|
|
3
|
-
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
|
+
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, 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, 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, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig,
|
|
6
|
+
import type { FrameSupportWeightsPerDispatchClassU64, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, NodeRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, 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, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, 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> {
|
|
10
|
+
alliance: {
|
|
11
|
+
/**
|
|
12
|
+
* The current IPFS CIDs of any announcements.
|
|
13
|
+
**/
|
|
14
|
+
announcements: AugmentedQuery<ApiType, () => Observable<Vec<PalletAllianceCid>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
15
|
+
/**
|
|
16
|
+
* Maps members to their candidacy deposit.
|
|
17
|
+
**/
|
|
18
|
+
depositOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u128>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
19
|
+
/**
|
|
20
|
+
* Maps member type to members of each type.
|
|
21
|
+
**/
|
|
22
|
+
members: AugmentedQuery<ApiType, (arg: PalletAllianceMemberRole | 'Founder' | 'Fellow' | 'Ally' | number | Uint8Array) => Observable<Vec<AccountId32>>, [PalletAllianceMemberRole]> & QueryableStorageEntry<ApiType, [PalletAllianceMemberRole]>;
|
|
23
|
+
/**
|
|
24
|
+
* The IPFS CID of the alliance rule.
|
|
25
|
+
* Founders and fellows can propose a new rule with a super-majority.
|
|
26
|
+
*
|
|
27
|
+
* Any founder has a special one-vote veto right to the rule setting.
|
|
28
|
+
**/
|
|
29
|
+
rule: AugmentedQuery<ApiType, () => Observable<Option<PalletAllianceCid>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
30
|
+
/**
|
|
31
|
+
* The current list of accounts deemed unscrupulous. These accounts non grata cannot submit
|
|
32
|
+
* candidacy.
|
|
33
|
+
**/
|
|
34
|
+
unscrupulousAccounts: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
35
|
+
/**
|
|
36
|
+
* The current list of websites deemed unscrupulous.
|
|
37
|
+
**/
|
|
38
|
+
unscrupulousWebsites: AugmentedQuery<ApiType, () => Observable<Vec<Bytes>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
39
|
+
/**
|
|
40
|
+
* A set of members that are (potentially) being kicked out. They cannot retire until the
|
|
41
|
+
* motion is settled.
|
|
42
|
+
**/
|
|
43
|
+
upForKicking: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<bool>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
44
|
+
/**
|
|
45
|
+
* Generic query
|
|
46
|
+
**/
|
|
47
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
48
|
+
};
|
|
49
|
+
allianceMotion: {
|
|
50
|
+
/**
|
|
51
|
+
* The current members of the collective. This is stored sorted (just by value).
|
|
52
|
+
**/
|
|
53
|
+
members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
54
|
+
/**
|
|
55
|
+
* The prime member that helps determine the default vote behavior in case of absentations.
|
|
56
|
+
**/
|
|
57
|
+
prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
58
|
+
/**
|
|
59
|
+
* Proposals so far.
|
|
60
|
+
**/
|
|
61
|
+
proposalCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
62
|
+
/**
|
|
63
|
+
* Actual proposal for a given hash, if it's current.
|
|
64
|
+
**/
|
|
65
|
+
proposalOf: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Call>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
66
|
+
/**
|
|
67
|
+
* The hashes of the active proposals.
|
|
68
|
+
**/
|
|
69
|
+
proposals: AugmentedQuery<ApiType, () => Observable<Vec<H256>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
70
|
+
/**
|
|
71
|
+
* Votes on a given proposal, if it is ongoing.
|
|
72
|
+
**/
|
|
73
|
+
voting: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<PalletCollectiveVotes>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
74
|
+
/**
|
|
75
|
+
* Generic query
|
|
76
|
+
**/
|
|
77
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
78
|
+
};
|
|
10
79
|
assets: {
|
|
11
80
|
/**
|
|
12
81
|
* The holdings of a specific account for a specific asset.
|
|
@@ -350,12 +419,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
350
419
|
* require. The actual amount locked on behalf of this pallet should always be the maximum of
|
|
351
420
|
* this list.
|
|
352
421
|
**/
|
|
353
|
-
classLocksFor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[
|
|
422
|
+
classLocksFor: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<ITuple<[u16, u128]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
354
423
|
/**
|
|
355
424
|
* All voting for a particular voter in a particular voting class. We store the balance for the
|
|
356
425
|
* number of votes that we have recorded.
|
|
357
426
|
**/
|
|
358
|
-
votingFor: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2:
|
|
427
|
+
votingFor: AugmentedQuery<ApiType, (arg1: AccountId32 | string | Uint8Array, arg2: u16 | AnyNumber | Uint8Array) => Observable<PalletConvictionVotingVoteVoting>, [AccountId32, u16]> & QueryableStorageEntry<ApiType, [AccountId32, u16]>;
|
|
359
428
|
/**
|
|
360
429
|
* Generic query
|
|
361
430
|
**/
|
|
@@ -838,6 +907,9 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
838
907
|
*
|
|
839
908
|
* This is the amount that the depositor must put as their initial stake in the pool, as an
|
|
840
909
|
* indication of "skin in the game".
|
|
910
|
+
*
|
|
911
|
+
* This is the value that will always exist in the staking ledger of the pool bonded account
|
|
912
|
+
* while all other accounts leave.
|
|
841
913
|
**/
|
|
842
914
|
minCreateBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
843
915
|
/**
|
|
@@ -934,6 +1006,60 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
934
1006
|
**/
|
|
935
1007
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
936
1008
|
};
|
|
1009
|
+
rankedCollective: {
|
|
1010
|
+
/**
|
|
1011
|
+
* The index of each ranks's member into the group of members who have at least that rank.
|
|
1012
|
+
**/
|
|
1013
|
+
idToIndex: AugmentedQuery<ApiType, (arg1: u16 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [u16, AccountId32]> & QueryableStorageEntry<ApiType, [u16, AccountId32]>;
|
|
1014
|
+
/**
|
|
1015
|
+
* The members in the collective by index. All indices in the range `0..MemberCount` will
|
|
1016
|
+
* return `Some`, however a member's index is not guaranteed to remain unchanged over time.
|
|
1017
|
+
**/
|
|
1018
|
+
indexToId: AugmentedQuery<ApiType, (arg1: u16 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<AccountId32>>, [u16, u32]> & QueryableStorageEntry<ApiType, [u16, u32]>;
|
|
1019
|
+
/**
|
|
1020
|
+
* The number of members in the collective who have at least the rank according to the index
|
|
1021
|
+
* of the vec.
|
|
1022
|
+
**/
|
|
1023
|
+
memberCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
1024
|
+
/**
|
|
1025
|
+
* The current members of the collective.
|
|
1026
|
+
**/
|
|
1027
|
+
members: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletRankedCollectiveMemberRecord>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1028
|
+
/**
|
|
1029
|
+
* Votes on a given proposal, if it is ongoing.
|
|
1030
|
+
**/
|
|
1031
|
+
voting: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: AccountId32 | string | Uint8Array) => Observable<Option<PalletRankedCollectiveVoteRecord>>, [u32, AccountId32]> & QueryableStorageEntry<ApiType, [u32, AccountId32]>;
|
|
1032
|
+
votingCleanup: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1033
|
+
/**
|
|
1034
|
+
* Generic query
|
|
1035
|
+
**/
|
|
1036
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1037
|
+
};
|
|
1038
|
+
rankedPolls: {
|
|
1039
|
+
/**
|
|
1040
|
+
* The number of referenda being decided currently.
|
|
1041
|
+
**/
|
|
1042
|
+
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
1043
|
+
/**
|
|
1044
|
+
* The next free referendum index, aka the number of referenda started so far.
|
|
1045
|
+
**/
|
|
1046
|
+
referendumCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1047
|
+
/**
|
|
1048
|
+
* Information concerning any given referendum.
|
|
1049
|
+
**/
|
|
1050
|
+
referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReferendaReferendumInfoRankedCollectiveTally>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1051
|
+
/**
|
|
1052
|
+
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
1053
|
+
* conviction-weighted approvals.
|
|
1054
|
+
*
|
|
1055
|
+
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
|
1056
|
+
**/
|
|
1057
|
+
trackQueue: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, u32]>>>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
1058
|
+
/**
|
|
1059
|
+
* Generic query
|
|
1060
|
+
**/
|
|
1061
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1062
|
+
};
|
|
937
1063
|
recovery: {
|
|
938
1064
|
/**
|
|
939
1065
|
* Active recovery attempts.
|
|
@@ -961,7 +1087,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
961
1087
|
/**
|
|
962
1088
|
* The number of referenda being decided currently.
|
|
963
1089
|
**/
|
|
964
|
-
decidingCount: AugmentedQuery<ApiType, (arg:
|
|
1090
|
+
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
965
1091
|
/**
|
|
966
1092
|
* The next free referendum index, aka the number of referenda started so far.
|
|
967
1093
|
**/
|
|
@@ -969,14 +1095,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
969
1095
|
/**
|
|
970
1096
|
* Information concerning any given referendum.
|
|
971
1097
|
**/
|
|
972
|
-
referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<
|
|
1098
|
+
referendumInfoFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletReferendaReferendumInfoConvictionVotingTally>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
973
1099
|
/**
|
|
974
1100
|
* The sorted list of referenda ready to be decided but not yet being decided, ordered by
|
|
975
1101
|
* conviction-weighted approvals.
|
|
976
1102
|
*
|
|
977
1103
|
* This should be empty if `DecidingCount` is less than `TrackInfo::max_deciding`.
|
|
978
1104
|
**/
|
|
979
|
-
trackQueue: AugmentedQuery<ApiType, (arg:
|
|
1105
|
+
trackQueue: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<Vec<ITuple<[u32, u128]>>>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
980
1106
|
/**
|
|
981
1107
|
* Generic query
|
|
982
1108
|
**/
|