@polkadot/api-augment 9.14.2 → 10.0.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.js +2 -5
- package/cjs/base.js +1 -1
- package/cjs/bundle.js +4 -11
- package/cjs/detectOther.js +5 -12
- package/cjs/detectPackage.js +6 -11
- package/cjs/index.js +3 -15
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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.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 +2 -2
- package/kusama/events.js +1 -7
- 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.js +1 -7
- package/kusama/tx.d.ts +61 -10
- 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 +2 -2
- package/polkadot/events.js +1 -7
- 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.js +1 -7
- package/polkadot/tx.d.ts +61 -10
- package/polkadot/tx.js +1 -7
- package/substrate/consts.js +1 -7
- package/substrate/errors.d.ts +27 -0
- package/substrate/errors.js +1 -7
- package/substrate/events.d.ts +43 -11
- package/substrate/events.js +1 -7
- package/substrate/index.js +8 -11
- package/substrate/query.d.ts +39 -16
- package/substrate/query.js +1 -7
- package/substrate/registry.js +0 -3
- package/substrate/runtime.js +1 -7
- package/substrate/tx.d.ts +121 -25
- package/substrate/tx.js +1 -7
package/substrate/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/substrate/events.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
|
3
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public,
|
|
6
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/events' {
|
|
9
9
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -933,6 +933,30 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
933
933
|
**/
|
|
934
934
|
[key: string]: AugmentedEvent<ApiType>;
|
|
935
935
|
};
|
|
936
|
+
glutton: {
|
|
937
|
+
/**
|
|
938
|
+
* The computation limit has been updated by root.
|
|
939
|
+
**/
|
|
940
|
+
ComputationLimitSet: AugmentedEvent<ApiType, [compute: Perbill], {
|
|
941
|
+
compute: Perbill;
|
|
942
|
+
}>;
|
|
943
|
+
/**
|
|
944
|
+
* The pallet has been (re)initialized by root.
|
|
945
|
+
**/
|
|
946
|
+
PalletInitialized: AugmentedEvent<ApiType, [reinit: bool], {
|
|
947
|
+
reinit: bool;
|
|
948
|
+
}>;
|
|
949
|
+
/**
|
|
950
|
+
* The storage limit has been updated by root.
|
|
951
|
+
**/
|
|
952
|
+
StorageLimitSet: AugmentedEvent<ApiType, [storage: Perbill], {
|
|
953
|
+
storage: Perbill;
|
|
954
|
+
}>;
|
|
955
|
+
/**
|
|
956
|
+
* Generic event
|
|
957
|
+
**/
|
|
958
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
959
|
+
};
|
|
936
960
|
grandpa: {
|
|
937
961
|
/**
|
|
938
962
|
* New authority set has been applied.
|
|
@@ -1118,34 +1142,34 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1118
1142
|
/**
|
|
1119
1143
|
* Message placed in overweight queue.
|
|
1120
1144
|
**/
|
|
1121
|
-
OverweightEnqueued: AugmentedEvent<ApiType, [hash_: H256, origin:
|
|
1145
|
+
OverweightEnqueued: AugmentedEvent<ApiType, [hash_: H256, origin: u32, pageIndex: u32, messageIndex: u32], {
|
|
1122
1146
|
hash_: H256;
|
|
1123
|
-
origin:
|
|
1147
|
+
origin: u32;
|
|
1124
1148
|
pageIndex: u32;
|
|
1125
1149
|
messageIndex: u32;
|
|
1126
1150
|
}>;
|
|
1127
1151
|
/**
|
|
1128
1152
|
* This page was reaped.
|
|
1129
1153
|
**/
|
|
1130
|
-
PageReaped: AugmentedEvent<ApiType, [origin:
|
|
1131
|
-
origin:
|
|
1154
|
+
PageReaped: AugmentedEvent<ApiType, [origin: u32, index: u32], {
|
|
1155
|
+
origin: u32;
|
|
1132
1156
|
index: u32;
|
|
1133
1157
|
}>;
|
|
1134
1158
|
/**
|
|
1135
1159
|
* Message is processed.
|
|
1136
1160
|
**/
|
|
1137
|
-
Processed: AugmentedEvent<ApiType, [hash_: H256, origin:
|
|
1161
|
+
Processed: AugmentedEvent<ApiType, [hash_: H256, origin: u32, weightUsed: SpWeightsWeightV2Weight, success: bool], {
|
|
1138
1162
|
hash_: H256;
|
|
1139
|
-
origin:
|
|
1163
|
+
origin: u32;
|
|
1140
1164
|
weightUsed: SpWeightsWeightV2Weight;
|
|
1141
1165
|
success: bool;
|
|
1142
1166
|
}>;
|
|
1143
1167
|
/**
|
|
1144
1168
|
* Message discarded due to an error in the `MessageProcessor` (usually a format error).
|
|
1145
1169
|
**/
|
|
1146
|
-
ProcessingFailed: AugmentedEvent<ApiType, [hash_: H256, origin:
|
|
1170
|
+
ProcessingFailed: AugmentedEvent<ApiType, [hash_: H256, origin: u32, error: FrameSupportMessagesProcessMessageError], {
|
|
1147
1171
|
hash_: H256;
|
|
1148
|
-
origin:
|
|
1172
|
+
origin: u32;
|
|
1149
1173
|
error: FrameSupportMessagesProcessMessageError;
|
|
1150
1174
|
}>;
|
|
1151
1175
|
/**
|
|
@@ -1408,6 +1432,14 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1408
1432
|
who: AccountId32;
|
|
1409
1433
|
maybeCollection: Option<u32>;
|
|
1410
1434
|
}>;
|
|
1435
|
+
/**
|
|
1436
|
+
* New attributes have been set for an `item` of the `collection`.
|
|
1437
|
+
**/
|
|
1438
|
+
PreSignedAttributesSet: AugmentedEvent<ApiType, [collection: u32, item: u32, namespace: FrameSupportTokensMiscAttributeNamespace], {
|
|
1439
|
+
collection: u32;
|
|
1440
|
+
item: u32;
|
|
1441
|
+
namespace: FrameSupportTokensMiscAttributeNamespace;
|
|
1442
|
+
}>;
|
|
1411
1443
|
/**
|
|
1412
1444
|
* The deposit for a set of `item`s within a `collection` has been updated.
|
|
1413
1445
|
**/
|
|
@@ -1609,9 +1641,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1609
1641
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
|
1610
1642
|
* can never change.
|
|
1611
1643
|
**/
|
|
1612
|
-
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>,
|
|
1644
|
+
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32>], {
|
|
1613
1645
|
root: Option<AccountId32>;
|
|
1614
|
-
|
|
1646
|
+
bouncer: Option<AccountId32>;
|
|
1615
1647
|
nominator: Option<AccountId32>;
|
|
1616
1648
|
}>;
|
|
1617
1649
|
/**
|
package/substrate/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/substrate/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/substrate/query.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState,
|
|
7
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, 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';
|
|
8
8
|
import type { Observable } from '@polkadot/types/types';
|
|
9
9
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
10
10
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -666,6 +666,37 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
666
666
|
**/
|
|
667
667
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
668
668
|
};
|
|
669
|
+
glutton: {
|
|
670
|
+
/**
|
|
671
|
+
* Storage value used to specify what percentage of the left over `ref_time`
|
|
672
|
+
* to consume during `on_idle`.
|
|
673
|
+
**/
|
|
674
|
+
compute: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
|
675
|
+
/**
|
|
676
|
+
* Storage value used the specify what percentage of left over `proof_size`
|
|
677
|
+
* to consume during `on_idle`.
|
|
678
|
+
**/
|
|
679
|
+
storage: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
|
|
680
|
+
/**
|
|
681
|
+
* Storage map used for wasting proof size.
|
|
682
|
+
*
|
|
683
|
+
* It contains no meaningful data - hence the name "Trash". The maximal number of entries is
|
|
684
|
+
* set to 65k, which is just below the next jump at 16^4. This is important to reduce the proof
|
|
685
|
+
* size benchmarking overestimate. The assumption here is that we won't have more than 65k *
|
|
686
|
+
* 1KiB = 65MiB of proof size wasting in practice. However, this limit is not enforced, so the
|
|
687
|
+
* pallet would also work out of the box with more entries, but its benchmarked proof weight
|
|
688
|
+
* would possibly be underestimated in that case.
|
|
689
|
+
**/
|
|
690
|
+
trashData: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<U8aFixed>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
691
|
+
/**
|
|
692
|
+
* The current number of entries in `TrashData`.
|
|
693
|
+
**/
|
|
694
|
+
trashDataCount: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
695
|
+
/**
|
|
696
|
+
* Generic query
|
|
697
|
+
**/
|
|
698
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
699
|
+
};
|
|
669
700
|
grandpa: {
|
|
670
701
|
/**
|
|
671
702
|
* The number of changes (both in terms of keys and underlying economic responsibilities)
|
|
@@ -817,27 +848,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
817
848
|
/**
|
|
818
849
|
* The index of the first and last (non-empty) pages.
|
|
819
850
|
**/
|
|
820
|
-
bookStateFor: AugmentedQuery<ApiType, (arg:
|
|
821
|
-
Here: any;
|
|
822
|
-
} | {
|
|
823
|
-
There: any;
|
|
824
|
-
} | {
|
|
825
|
-
Everywhere: any;
|
|
826
|
-
} | string | Uint8Array) => Observable<PalletMessageQueueBookState>, [PalletMessageQueueMockHelpersMessageOrigin]> & QueryableStorageEntry<ApiType, [PalletMessageQueueMockHelpersMessageOrigin]>;
|
|
851
|
+
bookStateFor: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<PalletMessageQueueBookState>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
827
852
|
/**
|
|
828
853
|
* The map of page indices to pages.
|
|
829
854
|
**/
|
|
830
|
-
pages: AugmentedQuery<ApiType, (arg1:
|
|
831
|
-
Here: any;
|
|
832
|
-
} | {
|
|
833
|
-
There: any;
|
|
834
|
-
} | {
|
|
835
|
-
Everywhere: any;
|
|
836
|
-
} | string | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [PalletMessageQueueMockHelpersMessageOrigin, u32]> & QueryableStorageEntry<ApiType, [PalletMessageQueueMockHelpersMessageOrigin, u32]>;
|
|
855
|
+
pages: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletMessageQueuePage>>, [u32, u32]> & QueryableStorageEntry<ApiType, [u32, u32]>;
|
|
837
856
|
/**
|
|
838
857
|
* The origin at which we should begin servicing.
|
|
839
858
|
**/
|
|
840
|
-
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<
|
|
859
|
+
serviceHead: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
841
860
|
/**
|
|
842
861
|
* Generic query
|
|
843
862
|
**/
|
|
@@ -983,6 +1002,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
983
1002
|
* Storage for bonded pools.
|
|
984
1003
|
**/
|
|
985
1004
|
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Map from a pool member account to their opted claim permission.
|
|
1007
|
+
**/
|
|
1008
|
+
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
986
1009
|
/**
|
|
987
1010
|
* Counter for the related counted storage map
|
|
988
1011
|
**/
|
package/substrate/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';
|
package/substrate/registry.js
CHANGED
package/substrate/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/substrate/tx.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature,
|
|
7
|
+
import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensMiscAttributeNamespace, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
8
8
|
export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
|
|
9
9
|
export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
|
|
10
10
|
export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
|
|
@@ -2597,6 +2597,32 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2597
2597
|
**/
|
|
2598
2598
|
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2599
2599
|
};
|
|
2600
|
+
glutton: {
|
|
2601
|
+
/**
|
|
2602
|
+
* Initializes the pallet by writing into `TrashData`.
|
|
2603
|
+
*
|
|
2604
|
+
* Only callable by Root. A good default for `trash_count` is `5_000`.
|
|
2605
|
+
**/
|
|
2606
|
+
initializePallet: AugmentedSubmittable<(newCount: u32 | AnyNumber | Uint8Array, witnessCount: Option<u32> | null | Uint8Array | u32 | AnyNumber) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>]>;
|
|
2607
|
+
/**
|
|
2608
|
+
* Set the `Compute` storage value that determines how much of the
|
|
2609
|
+
* block's weight `ref_time` to use during `on_idle`.
|
|
2610
|
+
*
|
|
2611
|
+
* Only callable by Root.
|
|
2612
|
+
**/
|
|
2613
|
+
setCompute: AugmentedSubmittable<(compute: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
2614
|
+
/**
|
|
2615
|
+
* Set the `Storage` storage value that determines the PoV size usage
|
|
2616
|
+
* for each block.
|
|
2617
|
+
*
|
|
2618
|
+
* Only callable by Root.
|
|
2619
|
+
**/
|
|
2620
|
+
setStorage: AugmentedSubmittable<(storage: Perbill | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Perbill]>;
|
|
2621
|
+
/**
|
|
2622
|
+
* Generic tx
|
|
2623
|
+
**/
|
|
2624
|
+
[key: string]: SubmittableExtrinsicFunction<ApiType>;
|
|
2625
|
+
};
|
|
2600
2626
|
grandpa: {
|
|
2601
2627
|
/**
|
|
2602
2628
|
* Note that the current authority set of the GRANDPA finality gadget has stalled.
|
|
@@ -3192,6 +3218,9 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3192
3218
|
/**
|
|
3193
3219
|
* Execute an overweight message.
|
|
3194
3220
|
*
|
|
3221
|
+
* Temporary processing errors will be propagated whereas permanent errors are treated
|
|
3222
|
+
* as success condition.
|
|
3223
|
+
*
|
|
3195
3224
|
* - `origin`: Must be `Signed`.
|
|
3196
3225
|
* - `message_origin`: The origin from which the message to be executed arrived.
|
|
3197
3226
|
* - `page`: The page in the queue in which the message to be executed is sitting.
|
|
@@ -3201,26 +3230,14 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3201
3230
|
*
|
|
3202
3231
|
* Benchmark complexity considerations: O(index + weight_limit).
|
|
3203
3232
|
**/
|
|
3204
|
-
executeOverweight: AugmentedSubmittable<(messageOrigin:
|
|
3205
|
-
Here: any;
|
|
3206
|
-
} | {
|
|
3207
|
-
There: any;
|
|
3208
|
-
} | {
|
|
3209
|
-
Everywhere: any;
|
|
3210
|
-
} | string | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
|
|
3233
|
+
executeOverweight: AugmentedSubmittable<(messageOrigin: u32 | AnyNumber | Uint8Array, page: u32 | AnyNumber | Uint8Array, index: u32 | AnyNumber | Uint8Array, weightLimit: SpWeightsWeightV2Weight | {
|
|
3211
3234
|
refTime?: any;
|
|
3212
3235
|
proofSize?: any;
|
|
3213
|
-
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [
|
|
3236
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32, u32, SpWeightsWeightV2Weight]>;
|
|
3214
3237
|
/**
|
|
3215
3238
|
* Remove a page which has no more messages remaining to be processed or is stale.
|
|
3216
3239
|
**/
|
|
3217
|
-
reapPage: AugmentedSubmittable<(messageOrigin:
|
|
3218
|
-
Here: any;
|
|
3219
|
-
} | {
|
|
3220
|
-
There: any;
|
|
3221
|
-
} | {
|
|
3222
|
-
Everywhere: any;
|
|
3223
|
-
} | string | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletMessageQueueMockHelpersMessageOrigin, u32]>;
|
|
3240
|
+
reapPage: AugmentedSubmittable<(messageOrigin: u32 | AnyNumber | Uint8Array, pageIndex: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3224
3241
|
/**
|
|
3225
3242
|
* Generic tx
|
|
3226
3243
|
**/
|
|
@@ -3999,6 +4016,34 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3999
4016
|
} | {
|
|
4000
4017
|
Account: any;
|
|
4001
4018
|
} | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
|
|
4019
|
+
/**
|
|
4020
|
+
* Set attributes for an item by providing the pre-signed approval.
|
|
4021
|
+
*
|
|
4022
|
+
* Origin must be Signed and must be an owner of the `data.item`.
|
|
4023
|
+
*
|
|
4024
|
+
* - `data`: The pre-signed approval that consists of the information about the item,
|
|
4025
|
+
* attributes to update and until what block number.
|
|
4026
|
+
* - `signature`: The signature of the `data` object.
|
|
4027
|
+
* - `signer`: The `data` object's signer. Should be an owner of the collection for the
|
|
4028
|
+
* `CollectionOwner` namespace.
|
|
4029
|
+
*
|
|
4030
|
+
* Emits `AttributeSet` for each provided attribute.
|
|
4031
|
+
* Emits `ItemAttributesApprovalAdded` if the approval wasn't set before.
|
|
4032
|
+
* Emits `PreSignedAttributesSet` on success.
|
|
4033
|
+
**/
|
|
4034
|
+
setAttributesPreSigned: AugmentedSubmittable<(data: PalletNftsPreSignedAttributes | {
|
|
4035
|
+
collection?: any;
|
|
4036
|
+
item?: any;
|
|
4037
|
+
attributes?: any;
|
|
4038
|
+
namespace?: any;
|
|
4039
|
+
deadline?: any;
|
|
4040
|
+
} | string | Uint8Array, signature: SpRuntimeMultiSignature | {
|
|
4041
|
+
Ed25519: any;
|
|
4042
|
+
} | {
|
|
4043
|
+
Sr25519: any;
|
|
4044
|
+
} | {
|
|
4045
|
+
Ecdsa: any;
|
|
4046
|
+
} | string | Uint8Array, signer: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNftsPreSignedAttributes, SpRuntimeMultiSignature, AccountId32]>;
|
|
4002
4047
|
/**
|
|
4003
4048
|
* Set the maximum number of items a collection could have.
|
|
4004
4049
|
*
|
|
@@ -4278,12 +4323,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4278
4323
|
* accumulated rewards, see [`BondExtra`].
|
|
4279
4324
|
*
|
|
4280
4325
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
|
4326
|
+
* See `bond_extra_other` to bond pending rewards of `other` members.
|
|
4281
4327
|
**/
|
|
4282
4328
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
4283
4329
|
FreeBalance: any;
|
|
4284
4330
|
} | {
|
|
4285
4331
|
Rewards: any;
|
|
4286
4332
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
|
4333
|
+
/**
|
|
4334
|
+
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
|
4335
|
+
* pools.
|
|
4336
|
+
*
|
|
4337
|
+
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
|
4338
|
+
* other`.
|
|
4339
|
+
*
|
|
4340
|
+
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
|
4341
|
+
* `other` members assuming set_claim_permission for the given member is
|
|
4342
|
+
* `PermissionlessAll` or `PermissionlessCompound`.
|
|
4343
|
+
**/
|
|
4344
|
+
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | {
|
|
4345
|
+
Id: any;
|
|
4346
|
+
} | {
|
|
4347
|
+
Index: any;
|
|
4348
|
+
} | {
|
|
4349
|
+
Raw: any;
|
|
4350
|
+
} | {
|
|
4351
|
+
Address32: any;
|
|
4352
|
+
} | {
|
|
4353
|
+
Address20: any;
|
|
4354
|
+
} | string | Uint8Array, extra: PalletNominationPoolsBondExtra | {
|
|
4355
|
+
FreeBalance: any;
|
|
4356
|
+
} | {
|
|
4357
|
+
Rewards: any;
|
|
4358
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
|
4287
4359
|
/**
|
|
4288
4360
|
* Chill on behalf of the pool.
|
|
4289
4361
|
*
|
|
@@ -4301,8 +4373,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4301
4373
|
*
|
|
4302
4374
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
4303
4375
|
* members in the pools stake. Rewards do not "expire".
|
|
4376
|
+
*
|
|
4377
|
+
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
|
4304
4378
|
**/
|
|
4305
4379
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
4380
|
+
/**
|
|
4381
|
+
* `origin` can claim payouts on some pool member `other`'s behalf.
|
|
4382
|
+
*
|
|
4383
|
+
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
|
4384
|
+
* for this call to be successful.
|
|
4385
|
+
**/
|
|
4386
|
+
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
4306
4387
|
/**
|
|
4307
4388
|
* Create a new delegation pool.
|
|
4308
4389
|
*
|
|
@@ -4315,7 +4396,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4315
4396
|
* creating multiple pools in the same extrinsic.
|
|
4316
4397
|
* * `root` - The account to set as [`PoolRoles::root`].
|
|
4317
4398
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
|
4318
|
-
* * `
|
|
4399
|
+
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
|
4319
4400
|
*
|
|
4320
4401
|
* # Note
|
|
4321
4402
|
*
|
|
@@ -4342,7 +4423,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4342
4423
|
Address32: any;
|
|
4343
4424
|
} | {
|
|
4344
4425
|
Address20: any;
|
|
4345
|
-
} | string | Uint8Array,
|
|
4426
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
4346
4427
|
Id: any;
|
|
4347
4428
|
} | {
|
|
4348
4429
|
Index: any;
|
|
@@ -4381,7 +4462,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4381
4462
|
Address32: any;
|
|
4382
4463
|
} | {
|
|
4383
4464
|
Address20: any;
|
|
4384
|
-
} | string | Uint8Array,
|
|
4465
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
4385
4466
|
Id: any;
|
|
4386
4467
|
} | {
|
|
4387
4468
|
Index: any;
|
|
@@ -4424,6 +4505,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4424
4505
|
* they attempt to unbond.
|
|
4425
4506
|
**/
|
|
4426
4507
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
4508
|
+
/**
|
|
4509
|
+
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
|
4510
|
+
* bonding and withdrawing.
|
|
4511
|
+
*
|
|
4512
|
+
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
|
4513
|
+
* claim their pending rewards. If a pool member wishes so, they can set this to
|
|
4514
|
+
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
|
4515
|
+
* pool.
|
|
4516
|
+
*
|
|
4517
|
+
* # Arguments
|
|
4518
|
+
*
|
|
4519
|
+
* * `origin` - Member of a pool.
|
|
4520
|
+
* * `actor` - Account to claim reward. // improve this
|
|
4521
|
+
**/
|
|
4522
|
+
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
|
4427
4523
|
/**
|
|
4428
4524
|
* Update configurations for the nomination pools. The origin for this call must be
|
|
4429
4525
|
* Root.
|
|
@@ -4470,7 +4566,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4470
4566
|
/**
|
|
4471
4567
|
* Set a new metadata for the pool.
|
|
4472
4568
|
*
|
|
4473
|
-
* The dispatch origin of this call must be signed by the
|
|
4569
|
+
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
|
4474
4570
|
* of the pool.
|
|
4475
4571
|
**/
|
|
4476
4572
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
@@ -4482,7 +4578,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4482
4578
|
*
|
|
4483
4579
|
* The dispatch origin of this call must be either:
|
|
4484
4580
|
*
|
|
4485
|
-
* 1. signed by the
|
|
4581
|
+
* 1. signed by the bouncer, or the root role of the pool,
|
|
4486
4582
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
|
4487
4583
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
|
4488
4584
|
**/
|
|
@@ -4497,8 +4593,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4497
4593
|
*
|
|
4498
4594
|
* # Conditions for a permissionless dispatch.
|
|
4499
4595
|
*
|
|
4500
|
-
* * The pool is blocked and the caller is either the root or
|
|
4501
|
-
*
|
|
4596
|
+
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
|
4597
|
+
* as a kick.
|
|
4502
4598
|
* * The pool is destroying and the member is not the depositor.
|
|
4503
4599
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
|
4504
4600
|
* pool.
|
|
@@ -4552,7 +4648,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4552
4648
|
Set: any;
|
|
4553
4649
|
} | {
|
|
4554
4650
|
Remove: any;
|
|
4555
|
-
} | string | Uint8Array,
|
|
4651
|
+
} | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | {
|
|
4556
4652
|
Noop: any;
|
|
4557
4653
|
} | {
|
|
4558
4654
|
Set: any;
|
|
@@ -4570,7 +4666,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
4570
4666
|
*
|
|
4571
4667
|
* * The pool is in destroy mode and the target is not the depositor.
|
|
4572
4668
|
* * The target is the depositor and they are the only member in the sub pools.
|
|
4573
|
-
* * The pool is blocked and the caller is either the root or
|
|
4669
|
+
* * The pool is blocked and the caller is either the root or bouncer.
|
|
4574
4670
|
*
|
|
4575
4671
|
* # Conditions for permissioned dispatch
|
|
4576
4672
|
*
|
package/substrate/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';
|