@polkadot/api-augment 9.14.2 → 10.1.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/base.js +0 -4
- package/bundle.d.ts +2 -2
- package/bundle.js +2 -5
- package/cjs/base.js +1 -1
- package/cjs/bundle.js +5 -12
- package/cjs/detectOther.js +5 -12
- package/cjs/detectPackage.js +6 -11
- package/cjs/index.js +4 -16
- package/cjs/kusama/consts.js +2 -1
- package/cjs/kusama/errors.js +2 -1
- package/cjs/kusama/events.js +2 -1
- package/cjs/kusama/index.js +9 -9
- package/cjs/kusama/query.js +2 -1
- package/cjs/kusama/registry.js +1 -1
- package/cjs/kusama/runtime.js +2 -1
- package/cjs/kusama/tx.js +2 -1
- package/cjs/packageInfo.js +2 -16
- package/cjs/polkadot/consts.js +2 -1
- package/cjs/polkadot/errors.js +2 -1
- package/cjs/polkadot/events.js +2 -1
- package/cjs/polkadot/index.js +9 -9
- package/cjs/polkadot/query.js +2 -1
- package/cjs/polkadot/registry.js +1 -1
- package/cjs/polkadot/runtime.js +2 -1
- package/cjs/polkadot/tx.js +2 -1
- package/cjs/substrate/consts.js +2 -1
- package/cjs/substrate/errors.js +2 -1
- package/cjs/substrate/events.js +2 -1
- package/cjs/substrate/index.js +9 -9
- package/cjs/substrate/query.js +2 -1
- package/cjs/substrate/registry.js +1 -1
- package/cjs/substrate/runtime.js +2 -1
- package/cjs/substrate/tx.js +2 -1
- package/detectOther.js +0 -3
- package/detectPackage.js +2 -7
- package/index.d.ts +2 -2
- package/index.js +2 -5
- package/kusama/consts.js +1 -7
- package/kusama/errors.d.ts +4 -0
- package/kusama/errors.js +1 -7
- package/kusama/events.d.ts +5 -5
- package/kusama/events.js +1 -7
- package/kusama/index.d.ts +8 -8
- package/kusama/index.js +8 -11
- package/kusama/query.d.ts +16 -1
- package/kusama/query.js +1 -7
- package/kusama/registry.js +0 -3
- package/kusama/runtime.d.ts +39 -4
- package/kusama/runtime.js +1 -7
- package/kusama/tx.d.ts +65 -14
- package/kusama/tx.js +1 -7
- package/package.json +12 -9
- package/packageInfo.js +1 -11
- package/polkadot/consts.js +1 -7
- package/polkadot/errors.d.ts +4 -0
- package/polkadot/errors.js +1 -7
- package/polkadot/events.d.ts +5 -5
- package/polkadot/events.js +1 -7
- package/polkadot/index.d.ts +8 -8
- package/polkadot/index.js +8 -11
- package/polkadot/query.d.ts +16 -1
- package/polkadot/query.js +1 -7
- package/polkadot/registry.js +0 -3
- package/polkadot/runtime.d.ts +39 -4
- package/polkadot/runtime.js +1 -7
- package/polkadot/tx.d.ts +65 -14
- package/polkadot/tx.js +1 -7
- package/substrate/consts.d.ts +27 -0
- package/substrate/consts.js +1 -7
- package/substrate/errors.d.ts +89 -0
- package/substrate/errors.js +1 -7
- package/substrate/events.d.ts +100 -17
- package/substrate/events.js +1 -7
- package/substrate/index.d.ts +8 -8
- package/substrate/index.js +8 -11
- package/substrate/query.d.ts +56 -18
- package/substrate/query.js +1 -7
- package/substrate/registry.js +0 -3
- package/substrate/runtime.d.ts +65 -1
- package/substrate/runtime.js +1 -7
- package/substrate/tx.d.ts +207 -36
- package/substrate/tx.js +1 -7
package/kusama/runtime.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-b
|
|
|
3
3
|
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
6
|
-
import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
|
|
6
|
+
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
|
7
7
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
|
8
8
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
9
9
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
|
@@ -11,9 +11,10 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
|
11
11
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
|
12
12
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
13
13
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
|
14
|
+
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
|
14
15
|
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
|
15
16
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
|
16
|
-
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
|
17
|
+
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
|
17
18
|
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
|
18
19
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
19
20
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
@@ -81,8 +82,23 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
81
82
|
**/
|
|
82
83
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
83
84
|
};
|
|
84
|
-
/** 0x49eaaf1b548a0cb0/
|
|
85
|
+
/** 0x49eaaf1b548a0cb0/2 */
|
|
85
86
|
beefyApi: {
|
|
87
|
+
/**
|
|
88
|
+
* Return the block number where BEEFY consensus is enabled/started
|
|
89
|
+
**/
|
|
90
|
+
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
|
91
|
+
/**
|
|
92
|
+
* Generates a proof of key ownership for the given authority in the given set.
|
|
93
|
+
**/
|
|
94
|
+
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
|
95
|
+
/**
|
|
96
|
+
* Submits an unsigned extrinsic to report an equivocation.
|
|
97
|
+
**/
|
|
98
|
+
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | {
|
|
99
|
+
first?: any;
|
|
100
|
+
second?: any;
|
|
101
|
+
} | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
|
86
102
|
/**
|
|
87
103
|
* Return the current active BEEFY validator set
|
|
88
104
|
**/
|
|
@@ -187,7 +203,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
187
203
|
**/
|
|
188
204
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
189
205
|
};
|
|
190
|
-
/** 0x91d5df18b0d2cf58/
|
|
206
|
+
/** 0x91d5df18b0d2cf58/2 */
|
|
191
207
|
mmrApi: {
|
|
192
208
|
/**
|
|
193
209
|
* Generate MMR proof for a series of leaves under given indices.
|
|
@@ -240,10 +256,18 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
240
256
|
};
|
|
241
257
|
/** 0x17a6bc0d0062aeb3/1 */
|
|
242
258
|
nominationPoolsApi: {
|
|
259
|
+
/**
|
|
260
|
+
* Returns the equivalent points of `new_funds` for a given pool.
|
|
261
|
+
**/
|
|
262
|
+
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
|
243
263
|
/**
|
|
244
264
|
* Returns the pending rewards for the given member.
|
|
245
265
|
**/
|
|
246
266
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
|
267
|
+
/**
|
|
268
|
+
* Returns the equivalent balance of `points` for a given pool.
|
|
269
|
+
**/
|
|
270
|
+
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
|
247
271
|
/**
|
|
248
272
|
* Generic call
|
|
249
273
|
**/
|
|
@@ -372,6 +396,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
372
396
|
**/
|
|
373
397
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
374
398
|
};
|
|
399
|
+
/** 0x18ef58a3b67ba770/1 */
|
|
400
|
+
stakingApi: {
|
|
401
|
+
/**
|
|
402
|
+
* Returns the nominations quota for a nominator with a given balance.
|
|
403
|
+
**/
|
|
404
|
+
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
|
405
|
+
/**
|
|
406
|
+
* Generic call
|
|
407
|
+
**/
|
|
408
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
409
|
+
};
|
|
375
410
|
/** 0xd2bc9897eed08f15/3 */
|
|
376
411
|
taggedTransactionQueue: {
|
|
377
412
|
/**
|
package/kusama/runtime.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/calls';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/calls';
|
package/kusama/tx.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
|
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor,
|
|
8
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
|
|
9
9
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
10
10
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
11
11
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -2000,14 +2000,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2000
2000
|
* against the extracted offender. If both are valid, the offence
|
|
2001
2001
|
* will be reported.
|
|
2002
2002
|
**/
|
|
2003
|
-
reportEquivocation: AugmentedSubmittable<(equivocationProof:
|
|
2003
|
+
reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
|
|
2004
2004
|
setId?: any;
|
|
2005
2005
|
equivocation?: any;
|
|
2006
2006
|
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
2007
2007
|
session?: any;
|
|
2008
2008
|
trieNodes?: any;
|
|
2009
2009
|
validatorCount?: any;
|
|
2010
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2010
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
|
2011
2011
|
/**
|
|
2012
2012
|
* Report voter equivocation/misbehavior. This method will verify the
|
|
2013
2013
|
* equivocation proof and validate the given key ownership proof
|
|
@@ -2019,14 +2019,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2019
2019
|
* if the block author is defined it will be defined as the equivocation
|
|
2020
2020
|
* reporter.
|
|
2021
2021
|
**/
|
|
2022
|
-
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof:
|
|
2022
|
+
reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
|
|
2023
2023
|
setId?: any;
|
|
2024
2024
|
equivocation?: any;
|
|
2025
2025
|
} | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
|
|
2026
2026
|
session?: any;
|
|
2027
2027
|
trieNodes?: any;
|
|
2028
2028
|
validatorCount?: any;
|
|
2029
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
2029
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
|
2030
2030
|
/**
|
|
2031
2031
|
* Generic tx
|
|
2032
2032
|
**/
|
|
@@ -2979,12 +2979,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2979
2979
|
* accumulated rewards, see [`BondExtra`].
|
|
2980
2980
|
*
|
|
2981
2981
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
|
2982
|
+
* See `bond_extra_other` to bond pending rewards of `other` members.
|
|
2982
2983
|
**/
|
|
2983
2984
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
2984
2985
|
FreeBalance: any;
|
|
2985
2986
|
} | {
|
|
2986
2987
|
Rewards: any;
|
|
2987
2988
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
|
2989
|
+
/**
|
|
2990
|
+
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
|
2991
|
+
* pools.
|
|
2992
|
+
*
|
|
2993
|
+
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
|
2994
|
+
* other`.
|
|
2995
|
+
*
|
|
2996
|
+
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
|
2997
|
+
* `other` members assuming set_claim_permission for the given member is
|
|
2998
|
+
* `PermissionlessAll` or `PermissionlessCompound`.
|
|
2999
|
+
**/
|
|
3000
|
+
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | {
|
|
3001
|
+
Id: any;
|
|
3002
|
+
} | {
|
|
3003
|
+
Index: any;
|
|
3004
|
+
} | {
|
|
3005
|
+
Raw: any;
|
|
3006
|
+
} | {
|
|
3007
|
+
Address32: any;
|
|
3008
|
+
} | {
|
|
3009
|
+
Address20: any;
|
|
3010
|
+
} | string | Uint8Array, extra: PalletNominationPoolsBondExtra | {
|
|
3011
|
+
FreeBalance: any;
|
|
3012
|
+
} | {
|
|
3013
|
+
Rewards: any;
|
|
3014
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
|
2988
3015
|
/**
|
|
2989
3016
|
* Chill on behalf of the pool.
|
|
2990
3017
|
*
|
|
@@ -3002,8 +3029,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3002
3029
|
*
|
|
3003
3030
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
3004
3031
|
* members in the pools stake. Rewards do not "expire".
|
|
3032
|
+
*
|
|
3033
|
+
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
|
3005
3034
|
**/
|
|
3006
3035
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3036
|
+
/**
|
|
3037
|
+
* `origin` can claim payouts on some pool member `other`'s behalf.
|
|
3038
|
+
*
|
|
3039
|
+
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
|
3040
|
+
* for this call to be successful.
|
|
3041
|
+
**/
|
|
3042
|
+
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3007
3043
|
/**
|
|
3008
3044
|
* Create a new delegation pool.
|
|
3009
3045
|
*
|
|
@@ -3016,7 +3052,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3016
3052
|
* creating multiple pools in the same extrinsic.
|
|
3017
3053
|
* * `root` - The account to set as [`PoolRoles::root`].
|
|
3018
3054
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
|
3019
|
-
* * `
|
|
3055
|
+
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
|
3020
3056
|
*
|
|
3021
3057
|
* # Note
|
|
3022
3058
|
*
|
|
@@ -3043,7 +3079,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3043
3079
|
Address32: any;
|
|
3044
3080
|
} | {
|
|
3045
3081
|
Address20: any;
|
|
3046
|
-
} | string | Uint8Array,
|
|
3082
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
3047
3083
|
Id: any;
|
|
3048
3084
|
} | {
|
|
3049
3085
|
Index: any;
|
|
@@ -3082,7 +3118,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3082
3118
|
Address32: any;
|
|
3083
3119
|
} | {
|
|
3084
3120
|
Address20: any;
|
|
3085
|
-
} | string | Uint8Array,
|
|
3121
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
3086
3122
|
Id: any;
|
|
3087
3123
|
} | {
|
|
3088
3124
|
Index: any;
|
|
@@ -3125,6 +3161,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3125
3161
|
* they attempt to unbond.
|
|
3126
3162
|
**/
|
|
3127
3163
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3164
|
+
/**
|
|
3165
|
+
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
|
3166
|
+
* bonding and withdrawing.
|
|
3167
|
+
*
|
|
3168
|
+
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
|
3169
|
+
* claim their pending rewards. If a pool member wishes so, they can set this to
|
|
3170
|
+
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
|
3171
|
+
* pool.
|
|
3172
|
+
*
|
|
3173
|
+
* # Arguments
|
|
3174
|
+
*
|
|
3175
|
+
* * `origin` - Member of a pool.
|
|
3176
|
+
* * `actor` - Account to claim reward. // improve this
|
|
3177
|
+
**/
|
|
3178
|
+
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
|
3128
3179
|
/**
|
|
3129
3180
|
* Update configurations for the nomination pools. The origin for this call must be
|
|
3130
3181
|
* Root.
|
|
@@ -3171,7 +3222,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3171
3222
|
/**
|
|
3172
3223
|
* Set a new metadata for the pool.
|
|
3173
3224
|
*
|
|
3174
|
-
* The dispatch origin of this call must be signed by the
|
|
3225
|
+
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
|
3175
3226
|
* of the pool.
|
|
3176
3227
|
**/
|
|
3177
3228
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
@@ -3183,7 +3234,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3183
3234
|
*
|
|
3184
3235
|
* The dispatch origin of this call must be either:
|
|
3185
3236
|
*
|
|
3186
|
-
* 1. signed by the
|
|
3237
|
+
* 1. signed by the bouncer, or the root role of the pool,
|
|
3187
3238
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
|
3188
3239
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
|
3189
3240
|
**/
|
|
@@ -3198,8 +3249,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3198
3249
|
*
|
|
3199
3250
|
* # Conditions for a permissionless dispatch.
|
|
3200
3251
|
*
|
|
3201
|
-
* * The pool is blocked and the caller is either the root or
|
|
3202
|
-
*
|
|
3252
|
+
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
|
3253
|
+
* as a kick.
|
|
3203
3254
|
* * The pool is destroying and the member is not the depositor.
|
|
3204
3255
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
|
3205
3256
|
* pool.
|
|
@@ -3253,7 +3304,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3253
3304
|
Set: any;
|
|
3254
3305
|
} | {
|
|
3255
3306
|
Remove: any;
|
|
3256
|
-
} | string | Uint8Array,
|
|
3307
|
+
} | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | {
|
|
3257
3308
|
Noop: any;
|
|
3258
3309
|
} | {
|
|
3259
3310
|
Set: any;
|
|
@@ -3271,7 +3322,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3271
3322
|
*
|
|
3272
3323
|
* * The pool is in destroy mode and the target is not the depositor.
|
|
3273
3324
|
* * The target is the depositor and they are the only member in the sub pools.
|
|
3274
|
-
* * The pool is blocked and the caller is either the root or
|
|
3325
|
+
* * The pool is blocked and the caller is either the root or bouncer.
|
|
3275
3326
|
*
|
|
3276
3327
|
* # Conditions for permissioned dispatch
|
|
3277
3328
|
*
|
package/kusama/tx.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/submittable';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/submittable';
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "
|
|
23
|
+
"version": "10.1.1",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -92,7 +92,10 @@
|
|
|
92
92
|
"require": "./cjs/kusama/tx.js",
|
|
93
93
|
"default": "./kusama/tx.js"
|
|
94
94
|
},
|
|
95
|
-
"./package.json":
|
|
95
|
+
"./package.json": {
|
|
96
|
+
"require": "./cjs/package.json",
|
|
97
|
+
"default": "./package.json"
|
|
98
|
+
},
|
|
96
99
|
"./packageInfo.js": {
|
|
97
100
|
"types": "./packageInfo.d.ts",
|
|
98
101
|
"require": "./cjs/packageInfo.js",
|
|
@@ -185,12 +188,12 @@
|
|
|
185
188
|
}
|
|
186
189
|
},
|
|
187
190
|
"dependencies": {
|
|
188
|
-
"@
|
|
189
|
-
"@polkadot/
|
|
190
|
-
"@polkadot/
|
|
191
|
-
"@polkadot/types": "
|
|
192
|
-
"@polkadot/types-
|
|
193
|
-
"@polkadot/
|
|
194
|
-
"
|
|
191
|
+
"@polkadot/api-base": "10.1.1",
|
|
192
|
+
"@polkadot/rpc-augment": "10.1.1",
|
|
193
|
+
"@polkadot/types": "10.1.1",
|
|
194
|
+
"@polkadot/types-augment": "10.1.1",
|
|
195
|
+
"@polkadot/types-codec": "10.1.1",
|
|
196
|
+
"@polkadot/util": "^11.0.2",
|
|
197
|
+
"tslib": "^2.5.0"
|
|
195
198
|
}
|
|
196
199
|
}
|
package/packageInfo.js
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
// Do not edit, auto-generated by @polkadot/dev
|
|
5
|
-
|
|
6
|
-
export const packageInfo = {
|
|
7
|
-
name: '@polkadot/api-augment',
|
|
8
|
-
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
9
|
-
type: 'esm',
|
|
10
|
-
version: '9.14.2'
|
|
11
|
-
};
|
|
1
|
+
export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.1.1' };
|
package/polkadot/consts.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/consts';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/consts';
|
package/polkadot/errors.d.ts
CHANGED
|
@@ -852,6 +852,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
852
852
|
* pool at a time.
|
|
853
853
|
**/
|
|
854
854
|
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
|
855
|
+
/**
|
|
856
|
+
* Bonding extra is restricted to the exact pending reward amount.
|
|
857
|
+
**/
|
|
858
|
+
BondExtraRestricted: AugmentedError<ApiType>;
|
|
855
859
|
/**
|
|
856
860
|
* The pools state cannot be changed.
|
|
857
861
|
**/
|
package/polkadot/errors.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/errors';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/errors';
|
package/polkadot/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 } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType,
|
|
7
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, 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> {
|
|
@@ -608,8 +608,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
608
608
|
/**
|
|
609
609
|
* New authority set has been applied.
|
|
610
610
|
**/
|
|
611
|
-
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[
|
|
612
|
-
authoritySet: Vec<ITuple<[
|
|
611
|
+
NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], {
|
|
612
|
+
authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>;
|
|
613
613
|
}>;
|
|
614
614
|
/**
|
|
615
615
|
* Current authority set has been paused.
|
|
@@ -872,9 +872,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
872
872
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
|
873
873
|
* can never change.
|
|
874
874
|
**/
|
|
875
|
-
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>,
|
|
875
|
+
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32>], {
|
|
876
876
|
root: Option<AccountId32>;
|
|
877
|
-
|
|
877
|
+
bouncer: Option<AccountId32>;
|
|
878
878
|
nominator: Option<AccountId32>;
|
|
879
879
|
}>;
|
|
880
880
|
/**
|
package/polkadot/events.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/events';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/events';
|
package/polkadot/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import '../base';
|
|
2
|
-
import './consts';
|
|
3
|
-
import './errors';
|
|
4
|
-
import './events';
|
|
5
|
-
import './query';
|
|
6
|
-
import './registry';
|
|
7
|
-
import './runtime';
|
|
8
|
-
import './tx';
|
|
1
|
+
import '../base.js';
|
|
2
|
+
import './consts.js';
|
|
3
|
+
import './errors.js';
|
|
4
|
+
import './events.js';
|
|
5
|
+
import './query.js';
|
|
6
|
+
import './registry.js';
|
|
7
|
+
import './runtime.js';
|
|
8
|
+
import './tx.js';
|
package/polkadot/index.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import "./registry.js";
|
|
10
|
-
import "./runtime.js";
|
|
11
|
-
import "./tx.js";
|
|
1
|
+
import '../base.js';
|
|
2
|
+
import './consts.js';
|
|
3
|
+
import './errors.js';
|
|
4
|
+
import './events.js';
|
|
5
|
+
import './query.js';
|
|
6
|
+
import './registry.js';
|
|
7
|
+
import './runtime.js';
|
|
8
|
+
import './tx.js';
|
package/polkadot/query.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool,
|
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
8
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
9
9
|
import type { Observable } from '@polkadot/types/types';
|
|
10
10
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
11
11
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -143,6 +143,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
143
143
|
* epoch.
|
|
144
144
|
**/
|
|
145
145
|
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
146
|
+
/**
|
|
147
|
+
* A list of the last 100 skipped epochs and the corresponding session index
|
|
148
|
+
* when the epoch was skipped.
|
|
149
|
+
*
|
|
150
|
+
* This is only used for validating equivocation proofs. An equivocation proof
|
|
151
|
+
* must contains a key-ownership proof for a given session, therefore we need a
|
|
152
|
+
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
|
153
|
+
* a validator was the owner of a given key on a given session, and what the
|
|
154
|
+
* active epoch index was during that session.
|
|
155
|
+
**/
|
|
156
|
+
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
146
157
|
/**
|
|
147
158
|
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
|
148
159
|
**/
|
|
@@ -812,6 +823,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
812
823
|
* Storage for bonded pools.
|
|
813
824
|
**/
|
|
814
825
|
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
826
|
+
/**
|
|
827
|
+
* Map from a pool member account to their opted claim permission.
|
|
828
|
+
**/
|
|
829
|
+
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
815
830
|
/**
|
|
816
831
|
* Counter for the related counted storage map
|
|
817
832
|
**/
|
package/polkadot/query.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/storage';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/storage';
|