@polkadot/api-augment 9.10.2 → 9.10.4

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/kusama/query.d.ts CHANGED
@@ -5,7 +5,7 @@ import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16
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, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KusamaRuntimeSessionKeys, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletConvictionVotingVoteVoting, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, 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>;
@@ -188,6 +188,10 @@ declare module '@polkadot/api-base/types/storage' {
188
188
  * NOTE: This is only used in the case that this pallet is used to store balances.
189
189
  **/
190
190
  account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
191
+ /**
192
+ * The total units of outstanding deactivated balance in the system.
193
+ **/
194
+ inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
191
195
  /**
192
196
  * Any liquidity locks on some account balances.
193
197
  * NOTE: Should only be accessed when setting, changing and freeing a lock.
@@ -197,12 +201,6 @@ declare module '@polkadot/api-base/types/storage' {
197
201
  * Named reserves on some account balances.
198
202
  **/
199
203
  reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
200
- /**
201
- * Storage version of the pallet.
202
- *
203
- * This is set to v2.0.0 for new networks.
204
- **/
205
- storageVersion: AugmentedQuery<ApiType, () => Observable<PalletBalancesReleases>, []> & QueryableStorageEntry<ApiType, []>;
206
204
  /**
207
205
  * The total units issued in the system.
208
206
  **/
@@ -624,32 +622,6 @@ declare module '@polkadot/api-base/types/storage' {
624
622
  **/
625
623
  [key: string]: QueryableStorageEntry<ApiType>;
626
624
  };
627
- gilt: {
628
- /**
629
- * The currently active gilts, indexed according to the order of creation.
630
- **/
631
- active: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletGiltActiveGilt>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
632
- /**
633
- * Information relating to the gilts currently active.
634
- **/
635
- activeTotal: AugmentedQuery<ApiType, () => Observable<PalletGiltActiveGiltsTotal>, []> & QueryableStorageEntry<ApiType, []>;
636
- /**
637
- * The queues of bids ready to become gilts. Indexed by duration (in `Period`s).
638
- **/
639
- queues: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletGiltGiltBid>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
640
- /**
641
- * The totals of items and balances within each queue. Saves a lot of storage reads in the
642
- * case of sparsely packed queues.
643
- *
644
- * The vector is indexed by duration in `Period`s, offset by one, so information on the queue
645
- * whose duration is one `Period` would be storage `0`.
646
- **/
647
- queueTotals: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u128]>>>, []> & QueryableStorageEntry<ApiType, []>;
648
- /**
649
- * Generic query
650
- **/
651
- [key: string]: QueryableStorageEntry<ApiType>;
652
- };
653
625
  grandpa: {
654
626
  /**
655
627
  * The number of changes (both in terms of keys and underlying economic responsibilities)
@@ -891,6 +863,82 @@ declare module '@polkadot/api-base/types/storage' {
891
863
  **/
892
864
  [key: string]: QueryableStorageEntry<ApiType>;
893
865
  };
866
+ nis: {
867
+ /**
868
+ * The queues of bids. Indexed by duration (in `Period`s).
869
+ **/
870
+ queues: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Vec<PalletNisBid>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
871
+ /**
872
+ * The totals of items and balances within each queue. Saves a lot of storage reads in the
873
+ * case of sparsely packed queues.
874
+ *
875
+ * The vector is indexed by duration in `Period`s, offset by one, so information on the queue
876
+ * whose duration is one `Period` would be storage `0`.
877
+ **/
878
+ queueTotals: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u32, u128]>>>, []> & QueryableStorageEntry<ApiType, []>;
879
+ /**
880
+ * The currently outstanding receipts, indexed according to the order of creation.
881
+ **/
882
+ receipts: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNisReceiptRecord>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
883
+ /**
884
+ * Summary information over the general state.
885
+ **/
886
+ summary: AugmentedQuery<ApiType, () => Observable<PalletNisSummaryRecord>, []> & QueryableStorageEntry<ApiType, []>;
887
+ /**
888
+ * Generic query
889
+ **/
890
+ [key: string]: QueryableStorageEntry<ApiType>;
891
+ };
892
+ nisCounterpartBalances: {
893
+ /**
894
+ * The Balances pallet example of storing the balance of an account.
895
+ *
896
+ * # Example
897
+ *
898
+ * ```nocompile
899
+ * impl pallet_balances::Config for Runtime {
900
+ * type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
901
+ * }
902
+ * ```
903
+ *
904
+ * You can also store the balance of an account in the `System` pallet.
905
+ *
906
+ * # Example
907
+ *
908
+ * ```nocompile
909
+ * impl pallet_balances::Config for Runtime {
910
+ * type AccountStore = System
911
+ * }
912
+ * ```
913
+ *
914
+ * But this comes with tradeoffs, storing account balances in the system pallet stores
915
+ * `frame_system` data alongside the account data contrary to storing account balances in the
916
+ * `Balances` pallet, which uses a `StorageMap` to store balances data only.
917
+ * NOTE: This is only used in the case that this pallet is used to store balances.
918
+ **/
919
+ account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
920
+ /**
921
+ * The total units of outstanding deactivated balance in the system.
922
+ **/
923
+ inactiveIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
924
+ /**
925
+ * Any liquidity locks on some account balances.
926
+ * NOTE: Should only be accessed when setting, changing and freeing a lock.
927
+ **/
928
+ locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
929
+ /**
930
+ * Named reserves on some account balances.
931
+ **/
932
+ reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
933
+ /**
934
+ * The total units issued in the system.
935
+ **/
936
+ totalIssuance: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
937
+ /**
938
+ * Generic query
939
+ **/
940
+ [key: string]: QueryableStorageEntry<ApiType>;
941
+ };
894
942
  nominationPools: {
895
943
  /**
896
944
  * Storage for bonded pools.
@@ -1736,6 +1784,10 @@ declare module '@polkadot/api-base/types/storage' {
1736
1784
  * If set to `0`, no limit exists.
1737
1785
  **/
1738
1786
  minCommission: AugmentedQuery<ApiType, () => Observable<Perbill>, []> & QueryableStorageEntry<ApiType, []>;
1787
+ /**
1788
+ * The minimum active nominator stake of the last successful election.
1789
+ **/
1790
+ minimumActiveStake: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
1739
1791
  /**
1740
1792
  * Minimum number of staking participants before emergency conditions are imposed.
1741
1793
  **/
@@ -2005,6 +2057,10 @@ declare module '@polkadot/api-base/types/storage' {
2005
2057
  * Proposal indices that have been approved but not yet awarded.
2006
2058
  **/
2007
2059
  approvals: AugmentedQuery<ApiType, () => Observable<Vec<u32>>, []> & QueryableStorageEntry<ApiType, []>;
2060
+ /**
2061
+ * The amount which has been reported as inactive to Currency.
2062
+ **/
2063
+ inactive: AugmentedQuery<ApiType, () => Observable<u128>, []> & QueryableStorageEntry<ApiType, []>;
2008
2064
  /**
2009
2065
  * Number of proposals that have been made.
2010
2066
  **/
package/kusama/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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
- import type { AccountId32, Call, H256, MultiAddress, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
7
+ import type { AccountId32, Call, H256, MultiAddress, Percent } from '@polkadot/types/interfaces/runtime';
8
8
  import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, 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, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
9
9
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
10
10
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
@@ -292,7 +292,7 @@ declare module '@polkadot/api-base/types/submittable' {
292
292
  * Approve a bounty proposal. At a later time, the bounty will be funded and become active
293
293
  * and the original deposit will be returned.
294
294
  *
295
- * May only be called from `T::ApproveOrigin`.
295
+ * May only be called from `T::SpendOrigin`.
296
296
  *
297
297
  * # <weight>
298
298
  * - O(1).
@@ -379,7 +379,7 @@ declare module '@polkadot/api-base/types/submittable' {
379
379
  /**
380
380
  * Assign a curator to a funded bounty.
381
381
  *
382
- * May only be called from `T::ApproveOrigin`.
382
+ * May only be called from `T::SpendOrigin`.
383
383
  *
384
384
  * # <weight>
385
385
  * - O(1).
@@ -1062,6 +1062,8 @@ declare module '@polkadot/api-base/types/submittable' {
1062
1062
  Standard: any;
1063
1063
  } | {
1064
1064
  Split: any;
1065
+ } | {
1066
+ SplitAbstain: any;
1065
1067
  } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, PalletConvictionVotingVoteAccountVote]>;
1066
1068
  /**
1067
1069
  * Generic tx
@@ -1973,6 +1975,16 @@ declare module '@polkadot/api-base/types/submittable' {
1973
1975
  * Emits `DecisionDepositRefunded`.
1974
1976
  **/
1975
1977
  refundDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1978
+ /**
1979
+ * Refund the Submission Deposit for a closed referendum back to the depositor.
1980
+ *
1981
+ * - `origin`: must be `Signed` or `Root`.
1982
+ * - `index`: The index of a closed referendum whose Submission Deposit has not yet been
1983
+ * refunded.
1984
+ *
1985
+ * Emits `SubmissionDepositRefunded`.
1986
+ **/
1987
+ refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
1976
1988
  /**
1977
1989
  * Propose a referendum on a privileged action.
1978
1990
  *
@@ -2014,57 +2026,6 @@ declare module '@polkadot/api-base/types/submittable' {
2014
2026
  **/
2015
2027
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
2016
2028
  };
2017
- gilt: {
2018
- /**
2019
- * Place a bid for a gilt to be issued.
2020
- *
2021
- * Origin must be Signed, and account must have at least `amount` in free balance.
2022
- *
2023
- * - `amount`: The amount of the bid; these funds will be reserved. If the bid is
2024
- * successfully elevated into an issued gilt, then these funds will continue to be
2025
- * reserved until the gilt expires. Must be at least `MinFreeze`.
2026
- * - `duration`: The number of periods for which the funds will be locked if the gilt is
2027
- * issued. It will expire only after this period has elapsed after the point of issuance.
2028
- * Must be greater than 1 and no more than `QueueCount`.
2029
- *
2030
- * Complexities:
2031
- * - `Queues[duration].len()` (just take max).
2032
- **/
2033
- placeBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
2034
- /**
2035
- * Retract a previously placed bid.
2036
- *
2037
- * Origin must be Signed, and the account should have previously issued a still-active bid
2038
- * of `amount` for `duration`.
2039
- *
2040
- * - `amount`: The amount of the previous bid.
2041
- * - `duration`: The duration of the previous bid.
2042
- **/
2043
- retractBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
2044
- /**
2045
- * Set target proportion of gilt-funds.
2046
- *
2047
- * Origin must be `AdminOrigin`.
2048
- *
2049
- * - `target`: The target proportion of effective issued funds that should be under gilts
2050
- * at any one time.
2051
- **/
2052
- setTarget: AugmentedSubmittable<(target: Compact<Perquintill> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<Perquintill>]>;
2053
- /**
2054
- * Remove an active but expired gilt. Reserved funds under gilt are freed and balance is
2055
- * adjusted to ensure that the funds grow or shrink to maintain the equivalent proportion
2056
- * of effective total issued funds.
2057
- *
2058
- * Origin must be Signed and the account must be the owner of the gilt of the given index.
2059
- *
2060
- * - `index`: The index of the gilt to be thawed.
2061
- **/
2062
- thaw: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
2063
- /**
2064
- * Generic tx
2065
- **/
2066
- [key: string]: SubmittableExtrinsicFunction<ApiType>;
2067
- };
2068
2029
  grandpa: {
2069
2030
  /**
2070
2031
  * Note that the current authority set of the GRANDPA finality gadget has stalled.
@@ -2930,6 +2891,212 @@ declare module '@polkadot/api-base/types/submittable' {
2930
2891
  **/
2931
2892
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
2932
2893
  };
2894
+ nis: {
2895
+ /**
2896
+ * Ensure we have sufficient funding for all potential payouts.
2897
+ *
2898
+ * - `origin`: Must be accepted by `FundOrigin`.
2899
+ **/
2900
+ fundDeficit: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
2901
+ /**
2902
+ * Place a bid.
2903
+ *
2904
+ * Origin must be Signed, and account must have at least `amount` in free balance.
2905
+ *
2906
+ * - `amount`: The amount of the bid; these funds will be reserved, and if/when
2907
+ * consolidated, removed. Must be at least `MinBid`.
2908
+ * - `duration`: The number of periods before which the newly consolidated bid may be
2909
+ * thawed. Must be greater than 1 and no more than `QueueCount`.
2910
+ *
2911
+ * Complexities:
2912
+ * - `Queues[duration].len()` (just take max).
2913
+ **/
2914
+ placeBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
2915
+ /**
2916
+ * Retract a previously placed bid.
2917
+ *
2918
+ * Origin must be Signed, and the account should have previously issued a still-active bid
2919
+ * of `amount` for `duration`.
2920
+ *
2921
+ * - `amount`: The amount of the previous bid.
2922
+ * - `duration`: The duration of the previous bid.
2923
+ **/
2924
+ retractBid: AugmentedSubmittable<(amount: Compact<u128> | AnyNumber | Uint8Array, duration: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>, u32]>;
2925
+ /**
2926
+ * Reduce or remove an outstanding receipt, placing the according proportion of funds into
2927
+ * the account of the owner.
2928
+ *
2929
+ * - `origin`: Must be Signed and the account must be the owner of the receipt `index` as
2930
+ * well as any fungible counterpart.
2931
+ * - `index`: The index of the receipt.
2932
+ * - `portion`: If `Some`, then only the given portion of the receipt should be thawed. If
2933
+ * `None`, then all of it should be.
2934
+ **/
2935
+ thaw: AugmentedSubmittable<(index: Compact<u32> | AnyNumber | Uint8Array, portion: Option<u128> | null | Uint8Array | u128 | AnyNumber) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Option<u128>]>;
2936
+ /**
2937
+ * Generic tx
2938
+ **/
2939
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
2940
+ };
2941
+ nisCounterpartBalances: {
2942
+ /**
2943
+ * Exactly as `transfer`, except the origin must be root and the source account may be
2944
+ * specified.
2945
+ * # <weight>
2946
+ * - Same as transfer, but additional read and write because the source account is not
2947
+ * assumed to be in the overlay.
2948
+ * # </weight>
2949
+ **/
2950
+ forceTransfer: AugmentedSubmittable<(source: MultiAddress | {
2951
+ Id: any;
2952
+ } | {
2953
+ Index: any;
2954
+ } | {
2955
+ Raw: any;
2956
+ } | {
2957
+ Address32: any;
2958
+ } | {
2959
+ Address20: any;
2960
+ } | string | Uint8Array, dest: MultiAddress | {
2961
+ Id: any;
2962
+ } | {
2963
+ Index: any;
2964
+ } | {
2965
+ Raw: any;
2966
+ } | {
2967
+ Address32: any;
2968
+ } | {
2969
+ Address20: any;
2970
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, MultiAddress, Compact<u128>]>;
2971
+ /**
2972
+ * Unreserve some balance from a user by force.
2973
+ *
2974
+ * Can only be called by ROOT.
2975
+ **/
2976
+ forceUnreserve: AugmentedSubmittable<(who: MultiAddress | {
2977
+ Id: any;
2978
+ } | {
2979
+ Index: any;
2980
+ } | {
2981
+ Raw: any;
2982
+ } | {
2983
+ Address32: any;
2984
+ } | {
2985
+ Address20: any;
2986
+ } | string | Uint8Array, amount: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, u128]>;
2987
+ /**
2988
+ * Set the balances of a given account.
2989
+ *
2990
+ * This will alter `FreeBalance` and `ReservedBalance` in storage. it will
2991
+ * also alter the total issuance of the system (`TotalIssuance`) appropriately.
2992
+ * If the new free or reserved balance is below the existential deposit,
2993
+ * it will reset the account nonce (`frame_system::AccountNonce`).
2994
+ *
2995
+ * The dispatch origin for this call is `root`.
2996
+ **/
2997
+ setBalance: AugmentedSubmittable<(who: MultiAddress | {
2998
+ Id: any;
2999
+ } | {
3000
+ Index: any;
3001
+ } | {
3002
+ Raw: any;
3003
+ } | {
3004
+ Address32: any;
3005
+ } | {
3006
+ Address20: any;
3007
+ } | string | Uint8Array, newFree: Compact<u128> | AnyNumber | Uint8Array, newReserved: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>, Compact<u128>]>;
3008
+ /**
3009
+ * Transfer some liquid free balance to another account.
3010
+ *
3011
+ * `transfer` will set the `FreeBalance` of the sender and receiver.
3012
+ * If the sender's account is below the existential deposit as a result
3013
+ * of the transfer, the account will be reaped.
3014
+ *
3015
+ * The dispatch origin for this call must be `Signed` by the transactor.
3016
+ *
3017
+ * # <weight>
3018
+ * - Dependent on arguments but not critical, given proper implementations for input config
3019
+ * types. See related functions below.
3020
+ * - It contains a limited number of reads and writes internally and no complex
3021
+ * computation.
3022
+ *
3023
+ * Related functions:
3024
+ *
3025
+ * - `ensure_can_withdraw` is always called internally but has a bounded complexity.
3026
+ * - Transferring balances to accounts that did not exist before will cause
3027
+ * `T::OnNewAccount::on_new_account` to be called.
3028
+ * - Removing enough funds from an account will trigger `T::DustRemoval::on_unbalanced`.
3029
+ * - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
3030
+ * that the transfer will not kill the origin account.
3031
+ * ---------------------------------
3032
+ * - Origin account is already in memory, so no DB operations for them.
3033
+ * # </weight>
3034
+ **/
3035
+ transfer: AugmentedSubmittable<(dest: MultiAddress | {
3036
+ Id: any;
3037
+ } | {
3038
+ Index: any;
3039
+ } | {
3040
+ Raw: any;
3041
+ } | {
3042
+ Address32: any;
3043
+ } | {
3044
+ Address20: any;
3045
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
3046
+ /**
3047
+ * Transfer the entire transferable balance from the caller account.
3048
+ *
3049
+ * NOTE: This function only attempts to transfer _transferable_ balances. This means that
3050
+ * any locked, reserved, or existential deposits (when `keep_alive` is `true`), will not be
3051
+ * transferred by this function. To ensure that this function results in a killed account,
3052
+ * you might need to prepare the account by removing any reference counters, storage
3053
+ * deposits, etc...
3054
+ *
3055
+ * The dispatch origin of this call must be Signed.
3056
+ *
3057
+ * - `dest`: The recipient of the transfer.
3058
+ * - `keep_alive`: A boolean to determine if the `transfer_all` operation should send all
3059
+ * of the funds the account has, causing the sender account to be killed (false), or
3060
+ * transfer everything except at least the existential deposit, which will guarantee to
3061
+ * keep the sender account alive (true). # <weight>
3062
+ * - O(1). Just like transfer, but reading the user's transferable balance first.
3063
+ * #</weight>
3064
+ **/
3065
+ transferAll: AugmentedSubmittable<(dest: MultiAddress | {
3066
+ Id: any;
3067
+ } | {
3068
+ Index: any;
3069
+ } | {
3070
+ Raw: any;
3071
+ } | {
3072
+ Address32: any;
3073
+ } | {
3074
+ Address20: any;
3075
+ } | string | Uint8Array, keepAlive: bool | boolean | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, bool]>;
3076
+ /**
3077
+ * Same as the [`transfer`] call, but with a check that the transfer will not kill the
3078
+ * origin account.
3079
+ *
3080
+ * 99% of the time you want [`transfer`] instead.
3081
+ *
3082
+ * [`transfer`]: struct.Pallet.html#method.transfer
3083
+ **/
3084
+ transferKeepAlive: AugmentedSubmittable<(dest: MultiAddress | {
3085
+ Id: any;
3086
+ } | {
3087
+ Index: any;
3088
+ } | {
3089
+ Raw: any;
3090
+ } | {
3091
+ Address32: any;
3092
+ } | {
3093
+ Address20: any;
3094
+ } | string | Uint8Array, value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, Compact<u128>]>;
3095
+ /**
3096
+ * Generic tx
3097
+ **/
3098
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
3099
+ };
2933
3100
  nominationPools: {
2934
3101
  /**
2935
3102
  * Bond `extra` more funds from `origin` into the pool to which they already belong.
@@ -4027,6 +4194,16 @@ declare module '@polkadot/api-base/types/submittable' {
4027
4194
  * Emits `DecisionDepositRefunded`.
4028
4195
  **/
4029
4196
  refundDecisionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4197
+ /**
4198
+ * Refund the Submission Deposit for a closed referendum back to the depositor.
4199
+ *
4200
+ * - `origin`: must be `Signed` or `Root`.
4201
+ * - `index`: The index of a closed referendum whose Submission Deposit has not yet been
4202
+ * refunded.
4203
+ *
4204
+ * Emits `SubmissionDepositRefunded`.
4205
+ **/
4206
+ refundSubmissionDeposit: AugmentedSubmittable<(index: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32]>;
4030
4207
  /**
4031
4208
  * Propose a referendum on a privileged action.
4032
4209
  *
@@ -5902,6 +6079,18 @@ declare module '@polkadot/api-base/types/submittable' {
5902
6079
  * # </weight>
5903
6080
  **/
5904
6081
  forceBatch: AugmentedSubmittable<(calls: Vec<Call> | (Call | IMethod | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<Call>]>;
6082
+ /**
6083
+ * Dispatch a function call with a specified weight.
6084
+ *
6085
+ * This function does not check the weight of the call, and instead allows the
6086
+ * Root origin to specify the weight of the call.
6087
+ *
6088
+ * The dispatch origin for this call must be _Root_.
6089
+ **/
6090
+ withWeight: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array, weight: SpWeightsWeightV2Weight | {
6091
+ refTime?: any;
6092
+ proofSize?: any;
6093
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call, SpWeightsWeightV2Weight]>;
5905
6094
  /**
5906
6095
  * Generic tx
5907
6096
  **/
@@ -6111,10 +6300,10 @@ declare module '@polkadot/api-base/types/submittable' {
6111
6300
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
6112
6301
  };
6113
6302
  whitelist: {
6114
- dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callWeightWitness: SpWeightsWeightV2Weight | {
6303
+ dispatchWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array, callEncodedLen: u32 | AnyNumber | Uint8Array, callWeightWitness: SpWeightsWeightV2Weight | {
6115
6304
  refTime?: any;
6116
6305
  proofSize?: any;
6117
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, SpWeightsWeightV2Weight]>;
6306
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256, u32, SpWeightsWeightV2Weight]>;
6118
6307
  dispatchWhitelistedCallWithPreimage: AugmentedSubmittable<(call: Call | IMethod | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Call]>;
6119
6308
  removeWhitelistedCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
6120
6309
  whitelistCall: AugmentedSubmittable<(callHash: H256 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [H256]>;
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "9.10.2",
23
+ "version": "9.10.4",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -186,11 +186,11 @@
186
186
  },
187
187
  "dependencies": {
188
188
  "@babel/runtime": "^7.20.6",
189
- "@polkadot/api-base": "9.10.2",
190
- "@polkadot/rpc-augment": "9.10.2",
191
- "@polkadot/types": "9.10.2",
192
- "@polkadot/types-augment": "9.10.2",
193
- "@polkadot/types-codec": "9.10.2",
189
+ "@polkadot/api-base": "9.10.4",
190
+ "@polkadot/rpc-augment": "9.10.4",
191
+ "@polkadot/types": "9.10.4",
192
+ "@polkadot/types-augment": "9.10.4",
193
+ "@polkadot/types-codec": "9.10.4",
194
194
  "@polkadot/util": "^10.2.1"
195
195
  }
196
196
  }
package/packageInfo.js CHANGED
@@ -7,5 +7,5 @@ export const packageInfo = {
7
7
  name: '@polkadot/api-augment',
8
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
9
  type: 'esm',
10
- version: '9.10.2'
10
+ version: '9.10.4'
11
11
  };
@@ -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 { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
- import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime';
6
+ import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
7
7
  import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, 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' {
@@ -1296,12 +1296,21 @@ declare module '@polkadot/api-base/types/events' {
1296
1296
  amount: u128;
1297
1297
  }>;
1298
1298
  /**
1299
- * One staker (and potentially its nominators) has been slashed by the given amount.
1299
+ * A staker (validator or nominator) has been slashed by the given amount.
1300
1300
  **/
1301
1301
  Slashed: AugmentedEvent<ApiType, [staker: AccountId32, amount: u128], {
1302
1302
  staker: AccountId32;
1303
1303
  amount: u128;
1304
1304
  }>;
1305
+ /**
1306
+ * A slash for the given validator, for the given percentage of their stake, at the given
1307
+ * era as been reported.
1308
+ **/
1309
+ SlashReported: AugmentedEvent<ApiType, [validator: AccountId32, fraction: Perbill, slashEra: u32], {
1310
+ validator: AccountId32;
1311
+ fraction: Perbill;
1312
+ slashEra: u32;
1313
+ }>;
1305
1314
  /**
1306
1315
  * A new set of stakers was elected.
1307
1316
  **/