@polkadot/api-augment 10.0.1 → 10.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bundle.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import './substrate';
2
- export { packageInfo } from './packageInfo';
1
+ import './substrate/index.js';
2
+ export { packageInfo } from './packageInfo.js';
package/cjs/bundle.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- require("./substrate");
5
- var packageInfo_1 = require("./packageInfo");
6
- Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_1.packageInfo; } });
4
+ require("./substrate/index.js");
5
+ var packageInfo_js_1 = require("./packageInfo.js");
6
+ Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const util_1 = require("@polkadot/util");
5
- const detectOther_1 = tslib_1.__importDefault(require("./detectOther"));
6
- const packageInfo_1 = require("./packageInfo");
7
- (0, util_1.detectPackage)(packageInfo_1.packageInfo, null, detectOther_1.default);
5
+ const detectOther_js_1 = tslib_1.__importDefault(require("./detectOther.js"));
6
+ const packageInfo_js_1 = require("./packageInfo.js");
7
+ (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, detectOther_js_1.default);
package/cjs/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- require("./detectPackage");
5
- tslib_1.__exportStar(require("./bundle"), exports);
4
+ require("./detectPackage.js");
5
+ tslib_1.__exportStar(require("./bundle.js"), exports);
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require("../base");
4
- require("./consts");
5
- require("./errors");
6
- require("./events");
7
- require("./query");
8
- require("./registry");
9
- require("./runtime");
10
- require("./tx");
3
+ require("../base.js");
4
+ require("./consts.js");
5
+ require("./errors.js");
6
+ require("./events.js");
7
+ require("./query.js");
8
+ require("./registry.js");
9
+ require("./runtime.js");
10
+ require("./tx.js");
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.0.1' };
4
+ exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.1.1' };
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require("../base");
4
- require("./consts");
5
- require("./errors");
6
- require("./events");
7
- require("./query");
8
- require("./registry");
9
- require("./runtime");
10
- require("./tx");
3
+ require("../base.js");
4
+ require("./consts.js");
5
+ require("./errors.js");
6
+ require("./events.js");
7
+ require("./query.js");
8
+ require("./registry.js");
9
+ require("./runtime.js");
10
+ require("./tx.js");
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require("../base");
4
- require("./consts");
5
- require("./errors");
6
- require("./events");
7
- require("./query");
8
- require("./registry");
9
- require("./runtime");
10
- require("./tx");
3
+ require("../base.js");
4
+ require("./consts.js");
5
+ require("./errors.js");
6
+ require("./events.js");
7
+ require("./query.js");
8
+ require("./registry.js");
9
+ require("./runtime.js");
10
+ require("./tx.js");
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import './detectPackage';
2
- export * from './bundle';
1
+ import './detectPackage.js';
2
+ export * from './bundle.js';
@@ -4,7 +4,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
+ import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KusamaRuntimeProxyType, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
8
  export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
9
9
  declare module '@polkadot/api-base/types/events' {
10
10
  interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -773,8 +773,8 @@ declare module '@polkadot/api-base/types/events' {
773
773
  /**
774
774
  * New authority set has been applied.
775
775
  **/
776
- NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], {
777
- authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>;
776
+ NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], {
777
+ authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>;
778
778
  }>;
779
779
  /**
780
780
  * Current authority set has been paused.
package/kusama/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import '../base';
2
- import './consts';
3
- import './errors';
4
- import './events';
5
- import './query';
6
- import './registry';
7
- import './runtime';
8
- import './tx';
1
+ import '../base.js';
2
+ import './consts.js';
3
+ import './errors.js';
4
+ import './events.js';
5
+ import './query.js';
6
+ import './registry.js';
7
+ import './runtime.js';
8
+ import './tx.js';
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-b
3
3
  import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
6
- import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
6
+ import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
7
7
  import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
8
8
  import type { BlockHash } from '@polkadot/types/interfaces/chain';
9
9
  import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
@@ -11,9 +11,10 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
11
11
  import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
12
12
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
13
  import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
14
+ import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
14
15
  import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
15
16
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
16
- import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
17
+ import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
17
18
  import type { SessionIndex } from '@polkadot/types/interfaces/session';
18
19
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
19
20
  import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
@@ -81,8 +82,23 @@ declare module '@polkadot/api-base/types/calls' {
81
82
  **/
82
83
  [key: string]: DecoratedCallBase<ApiType>;
83
84
  };
84
- /** 0x49eaaf1b548a0cb0/1 */
85
+ /** 0x49eaaf1b548a0cb0/2 */
85
86
  beefyApi: {
87
+ /**
88
+ * Return the block number where BEEFY consensus is enabled/started
89
+ **/
90
+ beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
91
+ /**
92
+ * Generates a proof of key ownership for the given authority in the given set.
93
+ **/
94
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
95
+ /**
96
+ * Submits an unsigned extrinsic to report an equivocation.
97
+ **/
98
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | {
99
+ first?: any;
100
+ second?: any;
101
+ } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
86
102
  /**
87
103
  * Return the current active BEEFY validator set
88
104
  **/
@@ -187,7 +203,7 @@ declare module '@polkadot/api-base/types/calls' {
187
203
  **/
188
204
  [key: string]: DecoratedCallBase<ApiType>;
189
205
  };
190
- /** 0x91d5df18b0d2cf58/1 */
206
+ /** 0x91d5df18b0d2cf58/2 */
191
207
  mmrApi: {
192
208
  /**
193
209
  * Generate MMR proof for a series of leaves under given indices.
@@ -240,10 +256,18 @@ declare module '@polkadot/api-base/types/calls' {
240
256
  };
241
257
  /** 0x17a6bc0d0062aeb3/1 */
242
258
  nominationPoolsApi: {
259
+ /**
260
+ * Returns the equivalent points of `new_funds` for a given pool.
261
+ **/
262
+ balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
243
263
  /**
244
264
  * Returns the pending rewards for the given member.
245
265
  **/
246
266
  pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
267
+ /**
268
+ * Returns the equivalent balance of `points` for a given pool.
269
+ **/
270
+ pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
247
271
  /**
248
272
  * Generic call
249
273
  **/
@@ -372,6 +396,17 @@ declare module '@polkadot/api-base/types/calls' {
372
396
  **/
373
397
  [key: string]: DecoratedCallBase<ApiType>;
374
398
  };
399
+ /** 0x18ef58a3b67ba770/1 */
400
+ stakingApi: {
401
+ /**
402
+ * Returns the nominations quota for a nominator with a given balance.
403
+ **/
404
+ nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
405
+ /**
406
+ * Generic call
407
+ **/
408
+ [key: string]: DecoratedCallBase<ApiType>;
409
+ };
375
410
  /** 0xd2bc9897eed08f15/3 */
376
411
  taggedTransactionQueue: {
377
412
  /**
package/kusama/tx.d.ts CHANGED
@@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
7
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
8
- import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
8
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KusamaRuntimeOriginCaller, KusamaRuntimeProxyType, KusamaRuntimeSessionKeys, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletSocietyJudgement, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
9
9
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
10
10
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
11
11
  export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -2000,14 +2000,14 @@ declare module '@polkadot/api-base/types/submittable' {
2000
2000
  * against the extracted offender. If both are valid, the offence
2001
2001
  * will be reported.
2002
2002
  **/
2003
- reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | {
2003
+ reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
2004
2004
  setId?: any;
2005
2005
  equivocation?: any;
2006
2006
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
2007
2007
  session?: any;
2008
2008
  trieNodes?: any;
2009
2009
  validatorCount?: any;
2010
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
2010
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
2011
2011
  /**
2012
2012
  * Report voter equivocation/misbehavior. This method will verify the
2013
2013
  * equivocation proof and validate the given key ownership proof
@@ -2019,14 +2019,14 @@ declare module '@polkadot/api-base/types/submittable' {
2019
2019
  * if the block author is defined it will be defined as the equivocation
2020
2020
  * reporter.
2021
2021
  **/
2022
- reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | {
2022
+ reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
2023
2023
  setId?: any;
2024
2024
  equivocation?: any;
2025
2025
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
2026
2026
  session?: any;
2027
2027
  trieNodes?: any;
2028
2028
  validatorCount?: any;
2029
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
2029
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
2030
2030
  /**
2031
2031
  * Generic tx
2032
2032
  **/
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "10.0.1",
23
+ "version": "10.1.1",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -188,12 +188,12 @@
188
188
  }
189
189
  },
190
190
  "dependencies": {
191
- "@polkadot/api-base": "10.0.1",
192
- "@polkadot/rpc-augment": "10.0.1",
193
- "@polkadot/types": "10.0.1",
194
- "@polkadot/types-augment": "10.0.1",
195
- "@polkadot/types-codec": "10.0.1",
196
- "@polkadot/util": "^11.0.1",
191
+ "@polkadot/api-base": "10.1.1",
192
+ "@polkadot/rpc-augment": "10.1.1",
193
+ "@polkadot/types": "10.1.1",
194
+ "@polkadot/types-augment": "10.1.1",
195
+ "@polkadot/types-codec": "10.1.1",
196
+ "@polkadot/util": "^11.0.2",
197
197
  "tslib": "^2.5.0"
198
198
  }
199
199
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.0.1' };
1
+ export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.1.1' };
@@ -4,7 +4,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
+ import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
8
  export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
9
9
  declare module '@polkadot/api-base/types/events' {
10
10
  interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -608,8 +608,8 @@ declare module '@polkadot/api-base/types/events' {
608
608
  /**
609
609
  * New authority set has been applied.
610
610
  **/
611
- NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], {
612
- authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>;
611
+ NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], {
612
+ authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>;
613
613
  }>;
614
614
  /**
615
615
  * Current authority set has been paused.
@@ -1,8 +1,8 @@
1
- import '../base';
2
- import './consts';
3
- import './errors';
4
- import './events';
5
- import './query';
6
- import './registry';
7
- import './runtime';
8
- import './tx';
1
+ import '../base.js';
2
+ import './consts.js';
3
+ import './errors.js';
4
+ import './events.js';
5
+ import './query.js';
6
+ import './registry.js';
7
+ import './runtime.js';
8
+ import './tx.js';
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-b
3
3
  import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
6
- import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
6
+ import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
7
7
  import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
8
8
  import type { BlockHash } from '@polkadot/types/interfaces/chain';
9
9
  import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
@@ -11,9 +11,10 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
11
11
  import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
12
12
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
13
  import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
14
+ import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
14
15
  import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
15
16
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
16
- import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
17
+ import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
17
18
  import type { SessionIndex } from '@polkadot/types/interfaces/session';
18
19
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
19
20
  import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
@@ -81,8 +82,23 @@ declare module '@polkadot/api-base/types/calls' {
81
82
  **/
82
83
  [key: string]: DecoratedCallBase<ApiType>;
83
84
  };
84
- /** 0x49eaaf1b548a0cb0/1 */
85
+ /** 0x49eaaf1b548a0cb0/2 */
85
86
  beefyApi: {
87
+ /**
88
+ * Return the block number where BEEFY consensus is enabled/started
89
+ **/
90
+ beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
91
+ /**
92
+ * Generates a proof of key ownership for the given authority in the given set.
93
+ **/
94
+ generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
95
+ /**
96
+ * Submits an unsigned extrinsic to report an equivocation.
97
+ **/
98
+ submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | {
99
+ first?: any;
100
+ second?: any;
101
+ } | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
86
102
  /**
87
103
  * Return the current active BEEFY validator set
88
104
  **/
@@ -187,7 +203,7 @@ declare module '@polkadot/api-base/types/calls' {
187
203
  **/
188
204
  [key: string]: DecoratedCallBase<ApiType>;
189
205
  };
190
- /** 0x91d5df18b0d2cf58/1 */
206
+ /** 0x91d5df18b0d2cf58/2 */
191
207
  mmrApi: {
192
208
  /**
193
209
  * Generate MMR proof for a series of leaves under given indices.
@@ -240,10 +256,18 @@ declare module '@polkadot/api-base/types/calls' {
240
256
  };
241
257
  /** 0x17a6bc0d0062aeb3/1 */
242
258
  nominationPoolsApi: {
259
+ /**
260
+ * Returns the equivalent points of `new_funds` for a given pool.
261
+ **/
262
+ balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
243
263
  /**
244
264
  * Returns the pending rewards for the given member.
245
265
  **/
246
266
  pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
267
+ /**
268
+ * Returns the equivalent balance of `points` for a given pool.
269
+ **/
270
+ pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
247
271
  /**
248
272
  * Generic call
249
273
  **/
@@ -372,6 +396,17 @@ declare module '@polkadot/api-base/types/calls' {
372
396
  **/
373
397
  [key: string]: DecoratedCallBase<ApiType>;
374
398
  };
399
+ /** 0x18ef58a3b67ba770/1 */
400
+ stakingApi: {
401
+ /**
402
+ * Returns the nominations quota for a nominator with a given balance.
403
+ **/
404
+ nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
405
+ /**
406
+ * Generic call
407
+ **/
408
+ [key: string]: DecoratedCallBase<ApiType>;
409
+ };
375
410
  /** 0xd2bc9897eed08f15/3 */
376
411
  taggedTransactionQueue: {
377
412
  /**
package/polkadot/tx.d.ts CHANGED
@@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
7
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
- import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
8
+ import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
9
9
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
10
10
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
11
11
  export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -1608,14 +1608,14 @@ declare module '@polkadot/api-base/types/submittable' {
1608
1608
  * against the extracted offender. If both are valid, the offence
1609
1609
  * will be reported.
1610
1610
  **/
1611
- reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | {
1611
+ reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
1612
1612
  setId?: any;
1613
1613
  equivocation?: any;
1614
1614
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
1615
1615
  session?: any;
1616
1616
  trieNodes?: any;
1617
1617
  validatorCount?: any;
1618
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
1618
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
1619
1619
  /**
1620
1620
  * Report voter equivocation/misbehavior. This method will verify the
1621
1621
  * equivocation proof and validate the given key ownership proof
@@ -1627,14 +1627,14 @@ declare module '@polkadot/api-base/types/submittable' {
1627
1627
  * if the block author is defined it will be defined as the equivocation
1628
1628
  * reporter.
1629
1629
  **/
1630
- reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | {
1630
+ reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
1631
1631
  setId?: any;
1632
1632
  equivocation?: any;
1633
1633
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
1634
1634
  session?: any;
1635
1635
  trieNodes?: any;
1636
1636
  validatorCount?: any;
1637
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
1637
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
1638
1638
  /**
1639
1639
  * Generic tx
1640
1640
  **/
@@ -957,6 +957,33 @@ declare module '@polkadot/api-base/types/consts' {
957
957
  **/
958
958
  [key: string]: Codec;
959
959
  };
960
+ salary: {
961
+ /**
962
+ * The total budget per cycle.
963
+ *
964
+ * This may change over the course of a cycle without any problem.
965
+ **/
966
+ budget: u128 & AugmentedConst<ApiType>;
967
+ /**
968
+ * The number of blocks within a cycle which accounts have to claim the payout.
969
+ *
970
+ * The number of blocks between sequential payout cycles is the sum of this and
971
+ * `RegistrationPeriod`.
972
+ **/
973
+ payoutPeriod: u32 & AugmentedConst<ApiType>;
974
+ /**
975
+ * The number of blocks within a cycle which accounts have to register their intent to
976
+ * claim.
977
+ *
978
+ * The number of blocks between sequential payout cycles is the sum of this and
979
+ * `PayoutPeriod`.
980
+ **/
981
+ registrationPeriod: u32 & AugmentedConst<ApiType>;
982
+ /**
983
+ * Generic const
984
+ **/
985
+ [key: string]: Codec;
986
+ };
960
987
  scheduler: {
961
988
  /**
962
989
  * The maximum weight that may be scheduled per block for any dispatchables.
@@ -467,6 +467,9 @@ declare module '@polkadot/api-base/types/errors' {
467
467
  RandomSubjectTooLong: AugmentedError<ApiType>;
468
468
  /**
469
469
  * A call tried to invoke a contract that is flagged as non-reentrant.
470
+ * The only other cause is that a call from a contract into the runtime tried to call back
471
+ * into `pallet-contracts`. This would make the whole pallet reentrant with regard to
472
+ * contract code execution which is not supported.
470
473
  **/
471
474
  ReentranceDenied: AugmentedError<ApiType>;
472
475
  /**
@@ -1843,6 +1846,65 @@ declare module '@polkadot/api-base/types/errors' {
1843
1846
  **/
1844
1847
  [key: string]: AugmentedError<ApiType>;
1845
1848
  };
1849
+ salary: {
1850
+ /**
1851
+ * The account is already inducted.
1852
+ **/
1853
+ AlreadyInducted: AugmentedError<ApiType>;
1854
+ /**
1855
+ * The salary system has already been started.
1856
+ **/
1857
+ AlreadyStarted: AugmentedError<ApiType>;
1858
+ /**
1859
+ * There is no budget left for the payout.
1860
+ **/
1861
+ Bankrupt: AugmentedError<ApiType>;
1862
+ /**
1863
+ * The member's claim is zero.
1864
+ **/
1865
+ ClaimZero: AugmentedError<ApiType>;
1866
+ /**
1867
+ * The payment has neither failed nor succeeded yet.
1868
+ **/
1869
+ Inconclusive: AugmentedError<ApiType>;
1870
+ /**
1871
+ * The member does not have a current valid claim.
1872
+ **/
1873
+ NoClaim: AugmentedError<ApiType>;
1874
+ /**
1875
+ * The cycle is after that in which the payment was made.
1876
+ **/
1877
+ NotCurrent: AugmentedError<ApiType>;
1878
+ NotInducted: AugmentedError<ApiType>;
1879
+ /**
1880
+ * The account is not a ranked member.
1881
+ **/
1882
+ NotMember: AugmentedError<ApiType>;
1883
+ /**
1884
+ * The payout cycles have not yet started.
1885
+ **/
1886
+ NotStarted: AugmentedError<ApiType>;
1887
+ /**
1888
+ * Cycle is not yet over.
1889
+ **/
1890
+ NotYet: AugmentedError<ApiType>;
1891
+ /**
1892
+ * There was some issue with the mechanism of payment.
1893
+ **/
1894
+ PayError: AugmentedError<ApiType>;
1895
+ /**
1896
+ * Current cycle's payment period is not yet begun.
1897
+ **/
1898
+ TooEarly: AugmentedError<ApiType>;
1899
+ /**
1900
+ * Current cycle's registration period is over.
1901
+ **/
1902
+ TooLate: AugmentedError<ApiType>;
1903
+ /**
1904
+ * Generic error
1905
+ **/
1906
+ [key: string]: AugmentedError<ApiType>;
1907
+ };
1846
1908
  scheduler: {
1847
1909
  /**
1848
1910
  * Failed to schedule a call
@@ -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, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
6
+ import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, 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> {
@@ -199,6 +199,13 @@ declare module '@polkadot/api-base/types/events' {
199
199
  AssetFrozen: AugmentedEvent<ApiType, [assetId: u32], {
200
200
  assetId: u32;
201
201
  }>;
202
+ /**
203
+ * The min_balance of an asset has been updated by the asset owner.
204
+ **/
205
+ AssetMinBalanceChanged: AugmentedEvent<ApiType, [assetId: u32, newMinBalance: u128], {
206
+ assetId: u32;
207
+ newMinBalance: u128;
208
+ }>;
202
209
  /**
203
210
  * An asset has had its attributes changed by the `Force` origin.
204
211
  **/
@@ -961,8 +968,8 @@ declare module '@polkadot/api-base/types/events' {
961
968
  /**
962
969
  * New authority set has been applied.
963
970
  **/
964
- NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>], {
965
- authoritySet: Vec<ITuple<[SpFinalityGrandpaAppPublic, u64]>>;
971
+ NewAuthorities: AugmentedEvent<ApiType, [authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>], {
972
+ authoritySet: Vec<ITuple<[SpConsensusGrandpaAppPublic, u64]>>;
966
973
  }>;
967
974
  /**
968
975
  * Current authority set has been paused.
@@ -1241,21 +1248,21 @@ declare module '@polkadot/api-base/types/events' {
1241
1248
  /**
1242
1249
  * Attribute metadata has been cleared for a `collection` or `item`.
1243
1250
  **/
1244
- AttributeCleared: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace], {
1251
+ AttributeCleared: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, namespace: PalletNftsAttributeNamespace], {
1245
1252
  collection: u32;
1246
1253
  maybeItem: Option<u32>;
1247
1254
  key: Bytes;
1248
- namespace: FrameSupportTokensMiscAttributeNamespace;
1255
+ namespace: PalletNftsAttributeNamespace;
1249
1256
  }>;
1250
1257
  /**
1251
1258
  * New attribute metadata has been set for a `collection` or `item`.
1252
1259
  **/
1253
- AttributeSet: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: FrameSupportTokensMiscAttributeNamespace], {
1260
+ AttributeSet: AugmentedEvent<ApiType, [collection: u32, maybeItem: Option<u32>, key: Bytes, value: Bytes, namespace: PalletNftsAttributeNamespace], {
1254
1261
  collection: u32;
1255
1262
  maybeItem: Option<u32>;
1256
1263
  key: Bytes;
1257
1264
  value: Bytes;
1258
- namespace: FrameSupportTokensMiscAttributeNamespace;
1265
+ namespace: PalletNftsAttributeNamespace;
1259
1266
  }>;
1260
1267
  /**
1261
1268
  * An `item` was destroyed.
@@ -1432,13 +1439,23 @@ declare module '@polkadot/api-base/types/events' {
1432
1439
  who: AccountId32;
1433
1440
  maybeCollection: Option<u32>;
1434
1441
  }>;
1442
+ /**
1443
+ * A new attribute in the `Pallet` namespace was set for the `collection` or an `item`
1444
+ * within that `collection`.
1445
+ **/
1446
+ PalletAttributeSet: AugmentedEvent<ApiType, [collection: u32, item: Option<u32>, attribute: PalletNftsPalletAttributes, value: Bytes], {
1447
+ collection: u32;
1448
+ item: Option<u32>;
1449
+ attribute: PalletNftsPalletAttributes;
1450
+ value: Bytes;
1451
+ }>;
1435
1452
  /**
1436
1453
  * New attributes have been set for an `item` of the `collection`.
1437
1454
  **/
1438
- PreSignedAttributesSet: AugmentedEvent<ApiType, [collection: u32, item: u32, namespace: FrameSupportTokensMiscAttributeNamespace], {
1455
+ PreSignedAttributesSet: AugmentedEvent<ApiType, [collection: u32, item: u32, namespace: PalletNftsAttributeNamespace], {
1439
1456
  collection: u32;
1440
1457
  item: u32;
1441
- namespace: FrameSupportTokensMiscAttributeNamespace;
1458
+ namespace: PalletNftsAttributeNamespace;
1442
1459
  }>;
1443
1460
  /**
1444
1461
  * The deposit for a set of `item`s within a `collection` has been updated.
@@ -2120,6 +2137,40 @@ declare module '@polkadot/api-base/types/events' {
2120
2137
  **/
2121
2138
  [key: string]: AugmentedEvent<ApiType>;
2122
2139
  };
2140
+ salary: {
2141
+ /**
2142
+ * The next cycle begins.
2143
+ **/
2144
+ CycleStarted: AugmentedEvent<ApiType, [index: u32], {
2145
+ index: u32;
2146
+ }>;
2147
+ /**
2148
+ * A member is inducted into the payroll.
2149
+ **/
2150
+ Inducted: AugmentedEvent<ApiType, [who: AccountId32], {
2151
+ who: AccountId32;
2152
+ }>;
2153
+ /**
2154
+ * A payment happened.
2155
+ **/
2156
+ Paid: AugmentedEvent<ApiType, [who: AccountId32, beneficiary: AccountId32, amount: u128, id: Null], {
2157
+ who: AccountId32;
2158
+ beneficiary: AccountId32;
2159
+ amount: u128;
2160
+ id: Null;
2161
+ }>;
2162
+ /**
2163
+ * A member registered for a payout.
2164
+ **/
2165
+ Registered: AugmentedEvent<ApiType, [who: AccountId32, amount: u128], {
2166
+ who: AccountId32;
2167
+ amount: u128;
2168
+ }>;
2169
+ /**
2170
+ * Generic event
2171
+ **/
2172
+ [key: string]: AugmentedEvent<ApiType>;
2173
+ };
2123
2174
  scheduler: {
2124
2175
  /**
2125
2176
  * The call for the provided hash was not found so the task has been aborted.
@@ -1,8 +1,8 @@
1
- import '../base';
2
- import './consts';
3
- import './errors';
4
- import './events';
5
- import './query';
6
- import './registry';
7
- import './runtime';
8
- import './tx';
1
+ import '../base.js';
2
+ import './consts.js';
3
+ import './errors.js';
4
+ import './events.js';
5
+ import './query.js';
6
+ import './registry.js';
7
+ import './runtime.js';
8
+ import './tx.js';
@@ -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, 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';
7
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, 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, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, 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>;
@@ -902,7 +902,7 @@ declare module '@polkadot/api-base/types/storage' {
902
902
  /**
903
903
  * Attributes of a collection.
904
904
  **/
905
- attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: FrameSupportTokensMiscAttributeNamespace | {
905
+ attribute: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: Option<u32> | null | Uint8Array | u32 | AnyNumber, arg3: PalletNftsAttributeNamespace | {
906
906
  Pallet: any;
907
907
  } | {
908
908
  CollectionOwner: any;
@@ -910,7 +910,7 @@ declare module '@polkadot/api-base/types/storage' {
910
910
  ItemOwner: any;
911
911
  } | {
912
912
  Account: any;
913
- } | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]>;
913
+ } | string | Uint8Array, arg4: Bytes | string | Uint8Array) => Observable<Option<ITuple<[Bytes, PalletNftsAttributeDeposit]>>>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]> & QueryableStorageEntry<ApiType, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
914
914
  /**
915
915
  * Details of a collection.
916
916
  **/
@@ -1139,6 +1139,7 @@ declare module '@polkadot/api-base/types/storage' {
1139
1139
  map1M: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1140
1140
  unboundedMap: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1141
1141
  unboundedMap2: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1142
+ unboundedMapTwox: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Vec<u32>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1142
1143
  /**
1143
1144
  * A value without a MEL bound.
1144
1145
  **/
@@ -1308,6 +1309,20 @@ declare module '@polkadot/api-base/types/storage' {
1308
1309
  **/
1309
1310
  [key: string]: QueryableStorageEntry<ApiType>;
1310
1311
  };
1312
+ salary: {
1313
+ /**
1314
+ * The status of a claimant.
1315
+ **/
1316
+ claimant: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletSalaryClaimantStatus>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1317
+ /**
1318
+ * The overall status of the system.
1319
+ **/
1320
+ status: AugmentedQuery<ApiType, () => Observable<Option<PalletSalaryStatusType>>, []> & QueryableStorageEntry<ApiType, []>;
1321
+ /**
1322
+ * Generic query
1323
+ **/
1324
+ [key: string]: QueryableStorageEntry<ApiType>;
1325
+ };
1311
1326
  scheduler: {
1312
1327
  /**
1313
1328
  * Items to be executed, indexed by the block number that they should be executed on.
@@ -2,6 +2,7 @@ import '@polkadot/api-base/types/calls';
2
2
  import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
3
3
  import type { Bytes, Null, Option, Result, Vec, u32 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
+ import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
5
6
  import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
6
7
  import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
7
8
  import type { BlockHash } from '@polkadot/types/interfaces/chain';
@@ -11,6 +12,8 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
11
12
  import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
12
13
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
14
  import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
15
+ import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
16
+ import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
14
17
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
15
18
  import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
16
19
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
@@ -32,6 +35,17 @@ declare module '@polkadot/api-base/types/calls' {
32
35
  **/
33
36
  [key: string]: DecoratedCallBase<ApiType>;
34
37
  };
38
+ /** 0x8453b50b22293977/1 */
39
+ assetsApi: {
40
+ /**
41
+ * Return the current set of authorities.
42
+ **/
43
+ accountBalances: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array) => Observable<Vec<ITuple<[u32, TAssetBalance]>>>>;
44
+ /**
45
+ * Generic call
46
+ **/
47
+ [key: string]: DecoratedCallBase<ApiType>;
48
+ };
35
49
  /** 0x687ad44ad37f03c2/1 */
36
50
  authorityDiscoveryApi: {
37
51
  /**
@@ -207,7 +221,7 @@ declare module '@polkadot/api-base/types/calls' {
207
221
  **/
208
222
  [key: string]: DecoratedCallBase<ApiType>;
209
223
  };
210
- /** 0x91d5df18b0d2cf58/1 */
224
+ /** 0x91d5df18b0d2cf58/2 */
211
225
  mmrApi: {
212
226
  /**
213
227
  * Generate MMR proof for a series of leaves under given indices.
@@ -258,12 +272,51 @@ declare module '@polkadot/api-base/types/calls' {
258
272
  **/
259
273
  [key: string]: DecoratedCallBase<ApiType>;
260
274
  };
275
+ /** 0x899a250cbe84f250/1 */
276
+ nftsApi: {
277
+ /**
278
+ * An attribute
279
+ **/
280
+ attribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
281
+ /**
282
+ * A collection attribute
283
+ **/
284
+ collectionAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
285
+ /**
286
+ * A collection owner
287
+ **/
288
+ collectionOwner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
289
+ /**
290
+ * A custom attribute
291
+ **/
292
+ customAttribute: AugmentedCall<ApiType, (account: AccountId | string | Uint8Array, collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
293
+ /**
294
+ * Collection owner
295
+ **/
296
+ owner: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array) => Observable<Option<AccountId>>>;
297
+ /**
298
+ * System attribute
299
+ **/
300
+ systemAttribute: AugmentedCall<ApiType, (collection: NftCollectionId | AnyNumber | Uint8Array, item: NftItemId | AnyNumber | Uint8Array, key: Bytes | string | Uint8Array) => Observable<Option<Bytes>>>;
301
+ /**
302
+ * Generic call
303
+ **/
304
+ [key: string]: DecoratedCallBase<ApiType>;
305
+ };
261
306
  /** 0x17a6bc0d0062aeb3/1 */
262
307
  nominationPoolsApi: {
308
+ /**
309
+ * Returns the equivalent points of `new_funds` for a given pool.
310
+ **/
311
+ balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
263
312
  /**
264
313
  * Returns the pending rewards for the given member.
265
314
  **/
266
315
  pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
316
+ /**
317
+ * Returns the equivalent balance of `points` for a given pool.
318
+ **/
319
+ pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
267
320
  /**
268
321
  * Generic call
269
322
  **/
@@ -301,6 +354,17 @@ declare module '@polkadot/api-base/types/calls' {
301
354
  **/
302
355
  [key: string]: DecoratedCallBase<ApiType>;
303
356
  };
357
+ /** 0x18ef58a3b67ba770/1 */
358
+ stakingApi: {
359
+ /**
360
+ * Returns the nominations quota for a nominator with a given balance.
361
+ **/
362
+ nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
363
+ /**
364
+ * Generic call
365
+ **/
366
+ [key: string]: DecoratedCallBase<ApiType>;
367
+ };
304
368
  /** 0xd2bc9897eed08f15/3 */
305
369
  taggedTransactionQueue: {
306
370
  /**
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, 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';
7
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNftsAttributeNamespace, 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, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, 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>;
@@ -782,6 +782,21 @@ declare module '@polkadot/api-base/types/submittable' {
782
782
  * Weight: `O(1)`
783
783
  **/
784
784
  setMetadata: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, name: Bytes | string | Uint8Array, symbol: Bytes | string | Uint8Array, decimals: u8 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, Bytes, Bytes, u8]>;
785
+ /**
786
+ * Sets the minimum balance of an asset.
787
+ *
788
+ * Only works if there aren't any accounts that are holding the asset or if
789
+ * the new value of `min_balance` is less than the old one.
790
+ *
791
+ * Origin must be Signed and the sender has to be the Owner of the
792
+ * asset `id`.
793
+ *
794
+ * - `id`: The identifier of the asset.
795
+ * - `min_balance`: The new value of `min_balance`.
796
+ *
797
+ * Emits `AssetMinBalanceChanged` event when successful.
798
+ **/
799
+ setMinBalance: AugmentedSubmittable<(id: Compact<u32> | AnyNumber | Uint8Array, minBalance: u128 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>, u128]>;
785
800
  /**
786
801
  * Change the Issuer, Admin and Freezer of an asset.
787
802
  *
@@ -2645,14 +2660,14 @@ declare module '@polkadot/api-base/types/submittable' {
2645
2660
  * against the extracted offender. If both are valid, the offence
2646
2661
  * will be reported.
2647
2662
  **/
2648
- reportEquivocation: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | {
2663
+ reportEquivocation: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
2649
2664
  setId?: any;
2650
2665
  equivocation?: any;
2651
2666
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
2652
2667
  session?: any;
2653
2668
  trieNodes?: any;
2654
2669
  validatorCount?: any;
2655
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
2670
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
2656
2671
  /**
2657
2672
  * Report voter equivocation/misbehavior. This method will verify the
2658
2673
  * equivocation proof and validate the given key ownership proof
@@ -2664,14 +2679,14 @@ declare module '@polkadot/api-base/types/submittable' {
2664
2679
  * if the block author is defined it will be defined as the equivocation
2665
2680
  * reporter.
2666
2681
  **/
2667
- reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpFinalityGrandpaEquivocationProof | {
2682
+ reportEquivocationUnsigned: AugmentedSubmittable<(equivocationProof: SpConsensusGrandpaEquivocationProof | {
2668
2683
  setId?: any;
2669
2684
  equivocation?: any;
2670
2685
  } | string | Uint8Array, keyOwnerProof: SpSessionMembershipProof | {
2671
2686
  session?: any;
2672
2687
  trieNodes?: any;
2673
2688
  validatorCount?: any;
2674
- } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpFinalityGrandpaEquivocationProof, SpSessionMembershipProof]>;
2689
+ } | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
2675
2690
  /**
2676
2691
  * Generic tx
2677
2692
  **/
@@ -3585,7 +3600,7 @@ declare module '@polkadot/api-base/types/submittable' {
3585
3600
  *
3586
3601
  * Weight: `O(1)`
3587
3602
  **/
3588
- clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | {
3603
+ clearAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | {
3589
3604
  Pallet: any;
3590
3605
  } | {
3591
3606
  CollectionOwner: any;
@@ -3593,7 +3608,7 @@ declare module '@polkadot/api-base/types/submittable' {
3593
3608
  ItemOwner: any;
3594
3609
  } | {
3595
3610
  Account: any;
3596
- } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes]>;
3611
+ } | string | Uint8Array, key: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes]>;
3597
3612
  /**
3598
3613
  * Clear the metadata for a collection.
3599
3614
  *
@@ -3820,7 +3835,7 @@ declare module '@polkadot/api-base/types/submittable' {
3820
3835
  *
3821
3836
  * Weight: `O(1)`
3822
3837
  **/
3823
- forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | {
3838
+ forceSetAttribute: AugmentedSubmittable<(setAs: Option<AccountId32> | null | Uint8Array | AccountId32 | string, collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | {
3824
3839
  Pallet: any;
3825
3840
  } | {
3826
3841
  CollectionOwner: any;
@@ -3828,7 +3843,7 @@ declare module '@polkadot/api-base/types/submittable' {
3828
3843
  ItemOwner: any;
3829
3844
  } | {
3830
3845
  Account: any;
3831
- } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
3846
+ } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [Option<AccountId32>, u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]>;
3832
3847
  /**
3833
3848
  * Disallows specified settings for the whole collection.
3834
3849
  *
@@ -3904,7 +3919,7 @@ declare module '@polkadot/api-base/types/submittable' {
3904
3919
  } | {
3905
3920
  Address20: any;
3906
3921
  } | string | Uint8Array, witnessData: Option<PalletNftsMintWitness> | null | Uint8Array | PalletNftsMintWitness | {
3907
- ownerOfItem?: any;
3922
+ ownedItem?: any;
3908
3923
  } | string) => SubmittableExtrinsic<ApiType>, [u32, u32, MultiAddress, Option<PalletNftsMintWitness>]>;
3909
3924
  /**
3910
3925
  * Mint an item by providing the pre-signed approval.
@@ -4007,7 +4022,7 @@ declare module '@polkadot/api-base/types/submittable' {
4007
4022
  *
4008
4023
  * Weight: `O(1)`
4009
4024
  **/
4010
- setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: FrameSupportTokensMiscAttributeNamespace | {
4025
+ setAttribute: AugmentedSubmittable<(collection: u32 | AnyNumber | Uint8Array, maybeItem: Option<u32> | null | Uint8Array | u32 | AnyNumber, namespace: PalletNftsAttributeNamespace | {
4011
4026
  Pallet: any;
4012
4027
  } | {
4013
4028
  CollectionOwner: any;
@@ -4015,7 +4030,7 @@ declare module '@polkadot/api-base/types/submittable' {
4015
4030
  ItemOwner: any;
4016
4031
  } | {
4017
4032
  Account: any;
4018
- } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, FrameSupportTokensMiscAttributeNamespace, Bytes, Bytes]>;
4033
+ } | string | Uint8Array, key: Bytes | string | Uint8Array, value: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Option<u32>, PalletNftsAttributeNamespace, Bytes, Bytes]>;
4019
4034
  /**
4020
4035
  * Set attributes for an item by providing the pre-signed approval.
4021
4036
  *
@@ -5552,6 +5567,66 @@ declare module '@polkadot/api-base/types/submittable' {
5552
5567
  **/
5553
5568
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
5554
5569
  };
5570
+ salary: {
5571
+ /**
5572
+ * Move to next payout cycle, assuming that the present block is now within that cycle.
5573
+ *
5574
+ * - `origin`: A `Signed` origin of an account.
5575
+ **/
5576
+ bump: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5577
+ /**
5578
+ * Update a payment's status; if it failed, alter the state so the payment can be retried.
5579
+ *
5580
+ * This must be called within the same cycle as the failed payment. It will fail with
5581
+ * `Event::NotCurrent` otherwise.
5582
+ *
5583
+ * - `origin`: A `Signed` origin of an account which is a member of `Members` who has
5584
+ * received a payment this cycle.
5585
+ **/
5586
+ checkPayment: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5587
+ /**
5588
+ * Induct oneself into the payout system.
5589
+ **/
5590
+ induct: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5591
+ /**
5592
+ * Start the first payout cycle.
5593
+ *
5594
+ * - `origin`: A `Signed` origin of an account.
5595
+ **/
5596
+ init: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5597
+ /**
5598
+ * Request a payout.
5599
+ *
5600
+ * Will only work if we are after the first `RegistrationPeriod` blocks since the cycle
5601
+ * started but by no more than `PayoutPeriod` blocks.
5602
+ *
5603
+ * - `origin`: A `Signed` origin of an account which is a member of `Members`.
5604
+ **/
5605
+ payout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5606
+ /**
5607
+ * Request a payout to a secondary account.
5608
+ *
5609
+ * Will only work if we are after the first `RegistrationPeriod` blocks since the cycle
5610
+ * started but by no more than `PayoutPeriod` blocks.
5611
+ *
5612
+ * - `origin`: A `Signed` origin of an account which is a member of `Members`.
5613
+ * - `beneficiary`: The account to receive payment.
5614
+ **/
5615
+ payoutOther: AugmentedSubmittable<(beneficiary: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
5616
+ /**
5617
+ * Register for a payout.
5618
+ *
5619
+ * Will only work if we are in the first `RegistrationPeriod` blocks since the cycle
5620
+ * started.
5621
+ *
5622
+ * - `origin`: A `Signed` origin of an account which is a member of `Members`.
5623
+ **/
5624
+ register: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5625
+ /**
5626
+ * Generic tx
5627
+ **/
5628
+ [key: string]: SubmittableExtrinsicFunction<ApiType>;
5629
+ };
5555
5630
  scheduler: {
5556
5631
  /**
5557
5632
  * Cancel an anonymously scheduled task.