@polkadot/api-augment 10.9.1 → 10.10.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 +82 -34
- package/kusama/errors.d.ts +150 -26
- package/kusama/events.d.ts +66 -19
- package/kusama/query.d.ts +206 -87
- package/kusama/runtime.d.ts +36 -4
- package/kusama/tx.d.ts +192 -53
- package/package.json +8 -8
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +15 -198
- package/polkadot/errors.d.ts +37 -340
- package/polkadot/events.d.ts +24 -376
- package/polkadot/query.d.ts +63 -272
- package/polkadot/runtime.d.ts +20 -3
- package/polkadot/tx.d.ts +62 -441
- package/substrate/consts.d.ts +118 -34
- package/substrate/errors.d.ts +303 -8
- package/substrate/events.d.ts +379 -25
- package/substrate/query.d.ts +160 -44
- package/substrate/runtime.d.ts +21 -1
- package/substrate/tx.d.ts +252 -29
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, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId,
|
|
7
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSocietyGroupParams, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV5CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeParachainsInclusionAggregateMessageOrigin, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } 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> {
|
|
@@ -35,8 +35,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
35
35
|
lastSlot: u32;
|
|
36
36
|
}>;
|
|
37
37
|
/**
|
|
38
|
-
* Someone attempted to lease the same slot twice for a parachain. The amount is held in
|
|
39
|
-
* but no parachain slot has been leased.
|
|
38
|
+
* Someone attempted to lease the same slot twice for a parachain. The amount is held in
|
|
39
|
+
* reserve but no parachain slot has been leased.
|
|
40
40
|
**/
|
|
41
41
|
ReserveConfiscated: AugmentedEvent<ApiType, [paraId: u32, leaser: AccountId32, amount: u128], {
|
|
42
42
|
paraId: u32;
|
|
@@ -60,7 +60,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
60
60
|
amount: u128;
|
|
61
61
|
}>;
|
|
62
62
|
/**
|
|
63
|
-
* The winning offset was chosen for an auction. This will map into the `Winning` storage
|
|
63
|
+
* The winning offset was chosen for an auction. This will map into the `Winning` storage
|
|
64
|
+
* map.
|
|
64
65
|
**/
|
|
65
66
|
WinningOffset: AugmentedEvent<ApiType, [auctionIndex: u32, blockNumber: u32], {
|
|
66
67
|
auctionIndex: u32;
|
|
@@ -1294,15 +1295,15 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1294
1295
|
/**
|
|
1295
1296
|
* A candidate was backed. `[candidate, head_data]`
|
|
1296
1297
|
**/
|
|
1297
|
-
CandidateBacked: AugmentedEvent<ApiType, [
|
|
1298
|
+
CandidateBacked: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
|
|
1298
1299
|
/**
|
|
1299
1300
|
* A candidate was included. `[candidate, head_data]`
|
|
1300
1301
|
**/
|
|
1301
|
-
CandidateIncluded: AugmentedEvent<ApiType, [
|
|
1302
|
+
CandidateIncluded: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32, u32]>;
|
|
1302
1303
|
/**
|
|
1303
1304
|
* A candidate timed out. `[candidate, head_data]`
|
|
1304
1305
|
**/
|
|
1305
|
-
CandidateTimedOut: AugmentedEvent<ApiType, [
|
|
1306
|
+
CandidateTimedOut: AugmentedEvent<ApiType, [PolkadotPrimitivesV5CandidateReceipt, Bytes, u32]>;
|
|
1306
1307
|
/**
|
|
1307
1308
|
* Some upward messages have been received and will be processed.
|
|
1308
1309
|
**/
|
|
@@ -1760,6 +1761,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1760
1761
|
Deposit: AugmentedEvent<ApiType, [value: u128], {
|
|
1761
1762
|
value: u128;
|
|
1762
1763
|
}>;
|
|
1764
|
+
/**
|
|
1765
|
+
* A \[member\] got elevated to \[rank\].
|
|
1766
|
+
**/
|
|
1767
|
+
Elevated: AugmentedEvent<ApiType, [member: AccountId32, rank: u32], {
|
|
1768
|
+
member: AccountId32;
|
|
1769
|
+
rank: u32;
|
|
1770
|
+
}>;
|
|
1763
1771
|
/**
|
|
1764
1772
|
* The society is founded by the given identity.
|
|
1765
1773
|
**/
|
|
@@ -1781,16 +1789,10 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1781
1789
|
member: AccountId32;
|
|
1782
1790
|
}>;
|
|
1783
1791
|
/**
|
|
1784
|
-
* A new \[
|
|
1792
|
+
* A new set of \[params\] has been set for the group.
|
|
1785
1793
|
**/
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
}>;
|
|
1789
|
-
/**
|
|
1790
|
-
* A group of members has been choosen as Skeptics
|
|
1791
|
-
**/
|
|
1792
|
-
SkepticsChosen: AugmentedEvent<ApiType, [skeptics: Vec<AccountId32>], {
|
|
1793
|
-
skeptics: Vec<AccountId32>;
|
|
1794
|
+
NewParams: AugmentedEvent<ApiType, [params: PalletSocietyGroupParams], {
|
|
1795
|
+
params: PalletSocietyGroupParams;
|
|
1794
1796
|
}>;
|
|
1795
1797
|
/**
|
|
1796
1798
|
* A suspended member has been judged.
|
|
@@ -1915,6 +1917,18 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1915
1917
|
fraction: Perbill;
|
|
1916
1918
|
slashEra: u32;
|
|
1917
1919
|
}>;
|
|
1920
|
+
/**
|
|
1921
|
+
* Targets size limit reached.
|
|
1922
|
+
**/
|
|
1923
|
+
SnapshotTargetsSizeExceeded: AugmentedEvent<ApiType, [size_: u32], {
|
|
1924
|
+
size_: u32;
|
|
1925
|
+
}>;
|
|
1926
|
+
/**
|
|
1927
|
+
* Voters size limit reached.
|
|
1928
|
+
**/
|
|
1929
|
+
SnapshotVotersSizeExceeded: AugmentedEvent<ApiType, [size_: u32], {
|
|
1930
|
+
size_: u32;
|
|
1931
|
+
}>;
|
|
1918
1932
|
/**
|
|
1919
1933
|
* A new set of stakers was elected.
|
|
1920
1934
|
**/
|
|
@@ -1950,6 +1964,38 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1950
1964
|
**/
|
|
1951
1965
|
[key: string]: AugmentedEvent<ApiType>;
|
|
1952
1966
|
};
|
|
1967
|
+
stateTrieMigration: {
|
|
1968
|
+
/**
|
|
1969
|
+
* The auto migration task finished.
|
|
1970
|
+
**/
|
|
1971
|
+
AutoMigrationFinished: AugmentedEvent<ApiType, []>;
|
|
1972
|
+
/**
|
|
1973
|
+
* Migration got halted due to an error or miss-configuration.
|
|
1974
|
+
**/
|
|
1975
|
+
Halted: AugmentedEvent<ApiType, [error: PalletStateTrieMigrationError], {
|
|
1976
|
+
error: PalletStateTrieMigrationError;
|
|
1977
|
+
}>;
|
|
1978
|
+
/**
|
|
1979
|
+
* Given number of `(top, child)` keys were migrated respectively, with the given
|
|
1980
|
+
* `compute`.
|
|
1981
|
+
**/
|
|
1982
|
+
Migrated: AugmentedEvent<ApiType, [top: u32, child: u32, compute: PalletStateTrieMigrationMigrationCompute], {
|
|
1983
|
+
top: u32;
|
|
1984
|
+
child: u32;
|
|
1985
|
+
compute: PalletStateTrieMigrationMigrationCompute;
|
|
1986
|
+
}>;
|
|
1987
|
+
/**
|
|
1988
|
+
* Some account got slashed by the given amount.
|
|
1989
|
+
**/
|
|
1990
|
+
Slashed: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
|
|
1991
|
+
who: AccountId32;
|
|
1992
|
+
amount: u128;
|
|
1993
|
+
}>;
|
|
1994
|
+
/**
|
|
1995
|
+
* Generic event
|
|
1996
|
+
**/
|
|
1997
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
1998
|
+
};
|
|
1953
1999
|
system: {
|
|
1954
2000
|
/**
|
|
1955
2001
|
* `:code` was updated.
|
|
@@ -2274,8 +2320,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2274
2320
|
callIndex: u8;
|
|
2275
2321
|
}>;
|
|
2276
2322
|
/**
|
|
2277
|
-
* Query response has been received and query is removed. The registered notification
|
|
2278
|
-
* not be dispatched because the dispatch weight is greater than the maximum weight
|
|
2323
|
+
* Query response has been received and query is removed. The registered notification
|
|
2324
|
+
* could not be dispatched because the dispatch weight is greater than the maximum weight
|
|
2279
2325
|
* originally budgeted by this runtime for the query result.
|
|
2280
2326
|
**/
|
|
2281
2327
|
NotifyOverweight: AugmentedEvent<ApiType, [queryId: u64, palletIndex: u8, callIndex: u8, actualWeight: SpWeightsWeightV2Weight, maxBudgetedWeight: SpWeightsWeightV2Weight], {
|
|
@@ -2371,7 +2417,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2371
2417
|
messageId: U8aFixed;
|
|
2372
2418
|
}>;
|
|
2373
2419
|
/**
|
|
2374
|
-
* We have requested that a remote chain stops sending us XCM version change
|
|
2420
|
+
* We have requested that a remote chain stops sending us XCM version change
|
|
2421
|
+
* notifications.
|
|
2375
2422
|
**/
|
|
2376
2423
|
VersionNotifyUnrequested: AugmentedEvent<ApiType, [destination: XcmV3MultiLocation, cost: XcmV3MultiassetMultiAssets, messageId: U8aFixed], {
|
|
2377
2424
|
destination: XcmV3MultiLocation;
|