@polkadot/api-augment 8.2.1 → 8.2.2-10
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/package.json +7 -7
- package/packageInfo.js +1 -1
- package/substrate/consts.d.ts +10 -0
- package/substrate/errors.d.ts +107 -0
- package/substrate/events.d.ts +35 -1
- package/substrate/query.d.ts +81 -1
- package/substrate/tx.d.ts +168 -1
package/cjs/packageInfo.js
CHANGED
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "8.2.
|
|
23
|
+
"version": "8.2.2-10",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -171,11 +171,11 @@
|
|
|
171
171
|
},
|
|
172
172
|
"dependencies": {
|
|
173
173
|
"@babel/runtime": "^7.17.9",
|
|
174
|
-
"@polkadot/api-base": "8.2.
|
|
175
|
-
"@polkadot/rpc-augment": "8.2.
|
|
176
|
-
"@polkadot/types": "8.2.
|
|
177
|
-
"@polkadot/types-augment": "8.2.
|
|
178
|
-
"@polkadot/types-codec": "8.2.
|
|
179
|
-
"@polkadot/util": "^9.
|
|
174
|
+
"@polkadot/api-base": "8.2.2-10",
|
|
175
|
+
"@polkadot/rpc-augment": "8.2.2-10",
|
|
176
|
+
"@polkadot/types": "8.2.2-10",
|
|
177
|
+
"@polkadot/types-augment": "8.2.2-10",
|
|
178
|
+
"@polkadot/types-codec": "8.2.2-10",
|
|
179
|
+
"@polkadot/util": "^9.1.1"
|
|
180
180
|
}
|
|
181
181
|
}
|
package/packageInfo.js
CHANGED
|
@@ -5,5 +5,5 @@ export const packageInfo = {
|
|
|
5
5
|
name: '@polkadot/api-augment',
|
|
6
6
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
7
7
|
type: 'esm',
|
|
8
|
-
version: '8.2.
|
|
8
|
+
version: '8.2.2-10'
|
|
9
9
|
};
|
package/substrate/consts.d.ts
CHANGED
|
@@ -635,6 +635,16 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
635
635
|
**/
|
|
636
636
|
[key: string]: Codec;
|
|
637
637
|
};
|
|
638
|
+
nominationPools: {
|
|
639
|
+
/**
|
|
640
|
+
* The nomination pool's pallet id.
|
|
641
|
+
**/
|
|
642
|
+
palletId: FrameSupportPalletId & AugmentedConst<ApiType>;
|
|
643
|
+
/**
|
|
644
|
+
* Generic const
|
|
645
|
+
**/
|
|
646
|
+
[key: string]: Codec;
|
|
647
|
+
};
|
|
638
648
|
proxy: {
|
|
639
649
|
/**
|
|
640
650
|
* The base amount of currency needed to reserve for creating an announcement.
|
package/substrate/errors.d.ts
CHANGED
|
@@ -1014,6 +1014,113 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1014
1014
|
**/
|
|
1015
1015
|
[key: string]: AugmentedError<ApiType>;
|
|
1016
1016
|
};
|
|
1017
|
+
nominationPools: {
|
|
1018
|
+
/**
|
|
1019
|
+
* An account is already delegating in another pool. An account may only belong to one
|
|
1020
|
+
* pool at a time.
|
|
1021
|
+
**/
|
|
1022
|
+
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
|
1023
|
+
/**
|
|
1024
|
+
* The member is already unbonding in this era.
|
|
1025
|
+
**/
|
|
1026
|
+
AlreadyUnbonding: AugmentedError<ApiType>;
|
|
1027
|
+
/**
|
|
1028
|
+
* The pools state cannot be changed.
|
|
1029
|
+
**/
|
|
1030
|
+
CanNotChangeState: AugmentedError<ApiType>;
|
|
1031
|
+
/**
|
|
1032
|
+
* None of the funds can be withdrawn yet because the bonding duration has not passed.
|
|
1033
|
+
**/
|
|
1034
|
+
CannotWithdrawAny: AugmentedError<ApiType>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Some error occurred that should never happen. This should be reported to the
|
|
1037
|
+
* maintainers.
|
|
1038
|
+
**/
|
|
1039
|
+
DefensiveError: AugmentedError<ApiType>;
|
|
1040
|
+
/**
|
|
1041
|
+
* The caller does not have adequate permissions.
|
|
1042
|
+
**/
|
|
1043
|
+
DoesNotHavePermission: AugmentedError<ApiType>;
|
|
1044
|
+
/**
|
|
1045
|
+
* The member is fully unbonded (and thus cannot access the bonded and reward pool
|
|
1046
|
+
* anymore to, for example, collect rewards).
|
|
1047
|
+
**/
|
|
1048
|
+
FullyUnbonding: AugmentedError<ApiType>;
|
|
1049
|
+
/**
|
|
1050
|
+
* The pool has insufficient balance to bond as a nominator.
|
|
1051
|
+
**/
|
|
1052
|
+
InsufficientBond: AugmentedError<ApiType>;
|
|
1053
|
+
/**
|
|
1054
|
+
* Too many members in the pool or system.
|
|
1055
|
+
**/
|
|
1056
|
+
MaxPoolMembers: AugmentedError<ApiType>;
|
|
1057
|
+
/**
|
|
1058
|
+
* The system is maxed out on pools.
|
|
1059
|
+
**/
|
|
1060
|
+
MaxPools: AugmentedError<ApiType>;
|
|
1061
|
+
/**
|
|
1062
|
+
* The member cannot unbond further chunks due to reaching the limit.
|
|
1063
|
+
**/
|
|
1064
|
+
MaxUnbondingLimit: AugmentedError<ApiType>;
|
|
1065
|
+
/**
|
|
1066
|
+
* Metadata exceeds [`Config::MaxMetadataLen`]
|
|
1067
|
+
**/
|
|
1068
|
+
MetadataExceedsMaxLen: AugmentedError<ApiType>;
|
|
1069
|
+
/**
|
|
1070
|
+
* The amount does not meet the minimum bond to either join or create a pool.
|
|
1071
|
+
**/
|
|
1072
|
+
MinimumBondNotMet: AugmentedError<ApiType>;
|
|
1073
|
+
/**
|
|
1074
|
+
* A pool must be in [`PoolState::Destroying`] in order for the depositor to unbond or for
|
|
1075
|
+
* other members to be permissionlessly unbonded.
|
|
1076
|
+
**/
|
|
1077
|
+
NotDestroying: AugmentedError<ApiType>;
|
|
1078
|
+
/**
|
|
1079
|
+
* Not enough points. Ty unbonding less.
|
|
1080
|
+
**/
|
|
1081
|
+
NotEnoughPointsToUnbond: AugmentedError<ApiType>;
|
|
1082
|
+
/**
|
|
1083
|
+
* Either a) the caller cannot make a valid kick or b) the pool is not destroying.
|
|
1084
|
+
**/
|
|
1085
|
+
NotKickerOrDestroying: AugmentedError<ApiType>;
|
|
1086
|
+
/**
|
|
1087
|
+
* The caller does not have nominating permissions for the pool.
|
|
1088
|
+
**/
|
|
1089
|
+
NotNominator: AugmentedError<ApiType>;
|
|
1090
|
+
/**
|
|
1091
|
+
* The depositor must be the only member in the bonded pool in order to unbond. And the
|
|
1092
|
+
* depositor must be the only member in the sub pools in order to withdraw unbonded.
|
|
1093
|
+
**/
|
|
1094
|
+
NotOnlyPoolMember: AugmentedError<ApiType>;
|
|
1095
|
+
/**
|
|
1096
|
+
* The pool is not open to join
|
|
1097
|
+
**/
|
|
1098
|
+
NotOpen: AugmentedError<ApiType>;
|
|
1099
|
+
/**
|
|
1100
|
+
* The transaction could not be executed due to overflow risk for the pool.
|
|
1101
|
+
**/
|
|
1102
|
+
OverflowRisk: AugmentedError<ApiType>;
|
|
1103
|
+
/**
|
|
1104
|
+
* An account is not a member.
|
|
1105
|
+
**/
|
|
1106
|
+
PoolMemberNotFound: AugmentedError<ApiType>;
|
|
1107
|
+
/**
|
|
1108
|
+
* A (bonded) pool id does not exist.
|
|
1109
|
+
**/
|
|
1110
|
+
PoolNotFound: AugmentedError<ApiType>;
|
|
1111
|
+
/**
|
|
1112
|
+
* A reward pool does not exist. In all cases this is a system logic error.
|
|
1113
|
+
**/
|
|
1114
|
+
RewardPoolNotFound: AugmentedError<ApiType>;
|
|
1115
|
+
/**
|
|
1116
|
+
* A sub pool does not exist.
|
|
1117
|
+
**/
|
|
1118
|
+
SubPoolsNotFound: AugmentedError<ApiType>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Generic error
|
|
1121
|
+
**/
|
|
1122
|
+
[key: string]: AugmentedError<ApiType>;
|
|
1123
|
+
};
|
|
1017
1124
|
preimage: {
|
|
1018
1125
|
/**
|
|
1019
1126
|
* Preimage has already been noted on-chain.
|
package/substrate/events.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ApiTypes } from '@polkadot/api-base/types';
|
|
|
2
2
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
3
3
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
4
4
|
import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
|
|
5
|
-
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
|
5
|
+
import type { FrameSupportScheduleLookupError, FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, FrameSupportWeightsPostDispatchInfo, NodeRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo } from '@polkadot/types/lookup';
|
|
6
6
|
declare module '@polkadot/api-base/types/events' {
|
|
7
7
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
8
8
|
assets: {
|
|
@@ -611,6 +611,40 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
611
611
|
**/
|
|
612
612
|
[key: string]: AugmentedEvent<ApiType>;
|
|
613
613
|
};
|
|
614
|
+
nominationPools: {
|
|
615
|
+
/**
|
|
616
|
+
* A member has became bonded in a pool.
|
|
617
|
+
**/
|
|
618
|
+
Bonded: AugmentedEvent<ApiType, [AccountId32, u32, u128, bool]>;
|
|
619
|
+
/**
|
|
620
|
+
* A pool has been created.
|
|
621
|
+
**/
|
|
622
|
+
Created: AugmentedEvent<ApiType, [AccountId32, u32]>;
|
|
623
|
+
/**
|
|
624
|
+
* A pool has been destroyed.
|
|
625
|
+
**/
|
|
626
|
+
Destroyed: AugmentedEvent<ApiType, [u32]>;
|
|
627
|
+
/**
|
|
628
|
+
* A payout has been made to a member.
|
|
629
|
+
**/
|
|
630
|
+
PaidOut: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
|
631
|
+
/**
|
|
632
|
+
* The state of a pool has changed
|
|
633
|
+
**/
|
|
634
|
+
StateChanged: AugmentedEvent<ApiType, [u32, PalletNominationPoolsPoolState]>;
|
|
635
|
+
/**
|
|
636
|
+
* A member has unbonded from their pool.
|
|
637
|
+
**/
|
|
638
|
+
Unbonded: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
|
639
|
+
/**
|
|
640
|
+
* A member has withdrawn from their pool.
|
|
641
|
+
**/
|
|
642
|
+
Withdrawn: AugmentedEvent<ApiType, [AccountId32, u32, u128]>;
|
|
643
|
+
/**
|
|
644
|
+
* Generic event
|
|
645
|
+
**/
|
|
646
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
647
|
+
};
|
|
614
648
|
offences: {
|
|
615
649
|
/**
|
|
616
650
|
* There is an offence reported of the given `kind` happened at the `session_index` and
|
package/substrate/query.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Data } from '@polkadot/types';
|
|
|
3
3
|
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, 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, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
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, PalletReferendaReferendumInfo, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesClassDetails, PalletUniquesClassMetadata, PalletUniquesInstanceDetails, PalletUniquesInstanceMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, 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> {
|
|
@@ -781,6 +781,86 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
781
781
|
**/
|
|
782
782
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
783
783
|
};
|
|
784
|
+
nominationPools: {
|
|
785
|
+
/**
|
|
786
|
+
* Storage for bonded pools.
|
|
787
|
+
**/
|
|
788
|
+
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
789
|
+
/**
|
|
790
|
+
* Counter for the related counted storage map
|
|
791
|
+
**/
|
|
792
|
+
counterForBondedPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
793
|
+
/**
|
|
794
|
+
* Counter for the related counted storage map
|
|
795
|
+
**/
|
|
796
|
+
counterForMetadata: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
797
|
+
/**
|
|
798
|
+
* Counter for the related counted storage map
|
|
799
|
+
**/
|
|
800
|
+
counterForPoolMembers: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
801
|
+
/**
|
|
802
|
+
* Counter for the related counted storage map
|
|
803
|
+
**/
|
|
804
|
+
counterForReversePoolIdLookup: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
805
|
+
/**
|
|
806
|
+
* Counter for the related counted storage map
|
|
807
|
+
**/
|
|
808
|
+
counterForRewardPools: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
809
|
+
/**
|
|
810
|
+
* Counter for the related counted storage map
|
|
811
|
+
**/
|
|
812
|
+
counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
813
|
+
lastPoolId: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
814
|
+
/**
|
|
815
|
+
* Maximum number of members that can exist in the system. If `None`, then the count
|
|
816
|
+
* members are not bound on a system wide basis.
|
|
817
|
+
**/
|
|
818
|
+
maxPoolMembers: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
819
|
+
/**
|
|
820
|
+
* Maximum number of members that may belong to pool. If `None`, then the count of
|
|
821
|
+
* members is not bound on a per pool basis.
|
|
822
|
+
**/
|
|
823
|
+
maxPoolMembersPerPool: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
824
|
+
/**
|
|
825
|
+
* Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
|
|
826
|
+
* pools can exist.
|
|
827
|
+
**/
|
|
828
|
+
maxPools: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
829
|
+
/**
|
|
830
|
+
* Metadata for the pool.
|
|
831
|
+
**/
|
|
832
|
+
metadata: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Bytes>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
833
|
+
/**
|
|
834
|
+
* Minimum bond required to create a pool.
|
|
835
|
+
*
|
|
836
|
+
* This is the amount that the depositor must put as their initial stake in the pool, as an
|
|
837
|
+
* indication of "skin in the game".
|
|
838
|
+
**/
|
|
839
|
+
minCreateBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
840
|
+
/**
|
|
841
|
+
* Minimum amount to bond to join a pool.
|
|
842
|
+
**/
|
|
843
|
+
minJoinBond: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
|
|
844
|
+
/**
|
|
845
|
+
* Active members.
|
|
846
|
+
**/
|
|
847
|
+
poolMembers: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletNominationPoolsPoolMember>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
848
|
+
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
849
|
+
/**
|
|
850
|
+
* Reward pools. This is where there rewards for each pool accumulate. When a members payout
|
|
851
|
+
* is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
|
852
|
+
**/
|
|
853
|
+
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
854
|
+
/**
|
|
855
|
+
* Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
|
|
856
|
+
* hence the name sub-pools. Keyed by the bonded pools account.
|
|
857
|
+
**/
|
|
858
|
+
subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
859
|
+
/**
|
|
860
|
+
* Generic query
|
|
861
|
+
**/
|
|
862
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
863
|
+
};
|
|
784
864
|
offences: {
|
|
785
865
|
/**
|
|
786
866
|
* A vector of reports of the same kind that happened at the same time slot.
|
package/substrate/tx.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Data } from '@polkadot/types';
|
|
|
3
3
|
import type { Bytes, Compact, Option, U8aFixed, Vec, WrapperKeepOpaque, 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, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
|
6
|
+
import type { FrameSupportScheduleDispatchTime, FrameSupportScheduleMaybeHashed, NodeRuntimeOriginCaller, NodeRuntimeProxyType, NodeRuntimeSessionKeys, PalletAssetsDestroyWitness, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof } from '@polkadot/types/lookup';
|
|
7
7
|
declare module '@polkadot/api-base/types/submittable' {
|
|
8
8
|
interface AugmentedSubmittables<ApiType extends ApiTypes> {
|
|
9
9
|
assets: {
|
|
@@ -3018,6 +3018,173 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3018
3018
|
**/
|
|
3019
3019
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3020
3020
|
};
|
|
3021
|
+
nominationPools: {
|
|
3022
|
+
/**
|
|
3023
|
+
* Bond `extra` more funds from `origin` into the pool to which they already belong.
|
|
3024
|
+
*
|
|
3025
|
+
* Additional funds can come from either the free balance of the account, of from the
|
|
3026
|
+
* accumulated rewards, see [`BondExtra`].
|
|
3027
|
+
**/
|
|
3028
|
+
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
3029
|
+
FreeBalance: any;
|
|
3030
|
+
} | {
|
|
3031
|
+
Rewards: any;
|
|
3032
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
|
3033
|
+
/**
|
|
3034
|
+
* A bonded member can use this to claim their payout based on the rewards that the pool
|
|
3035
|
+
* has accumulated since their last claimed payout (OR since joining if this is there first
|
|
3036
|
+
* time claiming rewards). The payout will be transferred to the member's account.
|
|
3037
|
+
*
|
|
3038
|
+
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
3039
|
+
* members in the pools stake. Rewards do not "expire".
|
|
3040
|
+
**/
|
|
3041
|
+
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3042
|
+
/**
|
|
3043
|
+
* Create a new delegation pool.
|
|
3044
|
+
*
|
|
3045
|
+
* # Arguments
|
|
3046
|
+
*
|
|
3047
|
+
* * `amount` - The amount of funds to delegate to the pool. This also acts of a sort of
|
|
3048
|
+
* deposit since the pools creator cannot fully unbond funds until the pool is being
|
|
3049
|
+
* destroyed.
|
|
3050
|
+
* * `index` - A disambiguation index for creating the account. Likely only useful when
|
|
3051
|
+
* creating multiple pools in the same extrinsic.
|
|
3052
|
+
* * `root` - The account to set as [`PoolRoles::root`].
|
|
3053
|
+
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
|
3054
|
+
* * `state_toggler` - The account to set as the [`PoolRoles::state_toggler`].
|
|
3055
|
+
*
|
|
3056
|
+
* # Note
|
|
3057
|
+
*
|
|
3058
|
+
* In addition to `amount`, the caller will transfer the existential deposit; so the caller
|
|
3059
|
+
* needs at have at least `amount + existential_deposit` transferrable.
|
|
3060
|
+
**/
|
|
3061
|
+
create: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, root: AccountId32 | string | Uint8Array, nominator: AccountId32 | string | Uint8Array, stateToggler: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, AccountId32, AccountId32, AccountId32]>;
|
|
3062
|
+
/**
|
|
3063
|
+
* Stake funds with a pool. The amount to bond is transferred from the member to the
|
|
3064
|
+
* pools account and immediately increases the pools bond.
|
|
3065
|
+
*
|
|
3066
|
+
* # Note
|
|
3067
|
+
*
|
|
3068
|
+
* * An account can only be a member of a single pool.
|
|
3069
|
+
* * An account cannot join the same pool multiple times.
|
|
3070
|
+
* * This call will *not* dust the member account, so the member must have at least
|
|
3071
|
+
* `existential deposit + amount` in their account.
|
|
3072
|
+
* * Only a pool with [`PoolState::Open`] can be joined
|
|
3073
|
+
**/
|
|
3074
|
+
join: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, poolId: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
|
|
3075
|
+
nominate: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, validators: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [u32, Vec<AccountId32>]>;
|
|
3076
|
+
/**
|
|
3077
|
+
* Call `withdraw_unbonded` for the pools account. This call can be made by any account.
|
|
3078
|
+
*
|
|
3079
|
+
* This is useful if their are too many unlocking chunks to call `unbond`, and some
|
|
3080
|
+
* can be cleared by withdrawing. In the case there are too many unlocking chunks, the user
|
|
3081
|
+
* would probably see an error like `NoMoreChunks` emitted from the staking system when
|
|
3082
|
+
* they attempt to unbond.
|
|
3083
|
+
**/
|
|
3084
|
+
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3085
|
+
/**
|
|
3086
|
+
* Update configurations for the nomination pools. The origin must for this call must be
|
|
3087
|
+
* Root.
|
|
3088
|
+
*
|
|
3089
|
+
* # Arguments
|
|
3090
|
+
*
|
|
3091
|
+
* * `min_join_bond` - Set [`MinJoinBond`].
|
|
3092
|
+
* * `min_create_bond` - Set [`MinCreateBond`].
|
|
3093
|
+
* * `max_pools` - Set [`MaxPools`].
|
|
3094
|
+
* * `max_members` - Set [`MaxPoolMembers`].
|
|
3095
|
+
* * `max_members_per_pool` - Set [`MaxPoolMembersPerPool`].
|
|
3096
|
+
**/
|
|
3097
|
+
setConfigs: AugmentedSubmittable<(minJoinBond: PalletNominationPoolsConfigOpU128 | {
|
|
3098
|
+
Noop: any;
|
|
3099
|
+
} | {
|
|
3100
|
+
Set: any;
|
|
3101
|
+
} | {
|
|
3102
|
+
Remove: any;
|
|
3103
|
+
} | string | Uint8Array, minCreateBond: PalletNominationPoolsConfigOpU128 | {
|
|
3104
|
+
Noop: any;
|
|
3105
|
+
} | {
|
|
3106
|
+
Set: any;
|
|
3107
|
+
} | {
|
|
3108
|
+
Remove: any;
|
|
3109
|
+
} | string | Uint8Array, maxPools: PalletNominationPoolsConfigOpU32 | {
|
|
3110
|
+
Noop: any;
|
|
3111
|
+
} | {
|
|
3112
|
+
Set: any;
|
|
3113
|
+
} | {
|
|
3114
|
+
Remove: any;
|
|
3115
|
+
} | string | Uint8Array, maxMembers: PalletNominationPoolsConfigOpU32 | {
|
|
3116
|
+
Noop: any;
|
|
3117
|
+
} | {
|
|
3118
|
+
Set: any;
|
|
3119
|
+
} | {
|
|
3120
|
+
Remove: any;
|
|
3121
|
+
} | string | Uint8Array, maxMembersPerPool: PalletNominationPoolsConfigOpU32 | {
|
|
3122
|
+
Noop: any;
|
|
3123
|
+
} | {
|
|
3124
|
+
Set: any;
|
|
3125
|
+
} | {
|
|
3126
|
+
Remove: any;
|
|
3127
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32, PalletNominationPoolsConfigOpU32]>;
|
|
3128
|
+
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
3129
|
+
setState: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, state: PalletNominationPoolsPoolState | 'Open' | 'Blocked' | 'Destroying' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, PalletNominationPoolsPoolState]>;
|
|
3130
|
+
/**
|
|
3131
|
+
* Unbond up to `unbonding_points` of the `member_account`'s funds from the pool. It
|
|
3132
|
+
* implicitly collects the rewards one last time, since not doing so would mean some
|
|
3133
|
+
* rewards would go forfeited.
|
|
3134
|
+
*
|
|
3135
|
+
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
|
3136
|
+
* account).
|
|
3137
|
+
*
|
|
3138
|
+
* # Conditions for a permissionless dispatch.
|
|
3139
|
+
*
|
|
3140
|
+
* * The pool is blocked and the caller is either the root or state-toggler. This is
|
|
3141
|
+
* refereed to as a kick.
|
|
3142
|
+
* * The pool is destroying and the member is not the depositor.
|
|
3143
|
+
* * The pool is destroying, the member is the depositor and no other members are in the
|
|
3144
|
+
* pool.
|
|
3145
|
+
*
|
|
3146
|
+
* ## Conditions for permissioned dispatch (i.e. the caller is also the
|
|
3147
|
+
* `member_account`):
|
|
3148
|
+
*
|
|
3149
|
+
* * The caller is not the depositor.
|
|
3150
|
+
* * The caller is the depositor, the pool is destroying and no other members are in the
|
|
3151
|
+
* pool.
|
|
3152
|
+
*
|
|
3153
|
+
* # Note
|
|
3154
|
+
*
|
|
3155
|
+
* If there are too many unlocking chunks to unbond with the pool account,
|
|
3156
|
+
* [`Call::pool_withdraw_unbonded`] can be called to try and minimize unlocking chunks. If
|
|
3157
|
+
* there are too many unlocking chunks, the result of this call will likely be the
|
|
3158
|
+
* `NoMoreChunks` error from the staking system.
|
|
3159
|
+
**/
|
|
3160
|
+
unbond: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, unbondingPoints: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, Compact<u128>]>;
|
|
3161
|
+
/**
|
|
3162
|
+
* Withdraw unbonded funds from `member_account`. If no bonded funds can be unbonded, an
|
|
3163
|
+
* error is returned.
|
|
3164
|
+
*
|
|
3165
|
+
* Under certain conditions, this call can be dispatched permissionlessly (i.e. by any
|
|
3166
|
+
* account).
|
|
3167
|
+
*
|
|
3168
|
+
* # Conditions for a permissionless dispatch
|
|
3169
|
+
*
|
|
3170
|
+
* * The pool is in destroy mode and the target is not the depositor.
|
|
3171
|
+
* * The target is the depositor and they are the only member in the sub pools.
|
|
3172
|
+
* * The pool is blocked and the caller is either the root or state-toggler.
|
|
3173
|
+
*
|
|
3174
|
+
* # Conditions for permissioned dispatch
|
|
3175
|
+
*
|
|
3176
|
+
* * The caller is the target and they are not the depositor.
|
|
3177
|
+
*
|
|
3178
|
+
* # Note
|
|
3179
|
+
*
|
|
3180
|
+
* If the target is the depositor, the pool will be destroyed.
|
|
3181
|
+
**/
|
|
3182
|
+
withdrawUnbonded: AugmentedSubmittable<(memberAccount: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
|
|
3183
|
+
/**
|
|
3184
|
+
* Generic tx
|
|
3185
|
+
**/
|
|
3186
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
3187
|
+
};
|
|
3021
3188
|
preimage: {
|
|
3022
3189
|
/**
|
|
3023
3190
|
* Register a preimage on-chain.
|