@polkadot/api-augment 9.14.2 → 10.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.js +0 -4
- package/bundle.d.ts +2 -2
- package/bundle.js +2 -5
- package/cjs/base.js +1 -1
- package/cjs/bundle.js +5 -12
- package/cjs/detectOther.js +5 -12
- package/cjs/detectPackage.js +6 -11
- package/cjs/index.js +4 -16
- package/cjs/kusama/consts.js +2 -1
- package/cjs/kusama/errors.js +2 -1
- package/cjs/kusama/events.js +2 -1
- package/cjs/kusama/index.js +9 -9
- package/cjs/kusama/query.js +2 -1
- package/cjs/kusama/registry.js +1 -1
- package/cjs/kusama/runtime.js +2 -1
- package/cjs/kusama/tx.js +2 -1
- package/cjs/packageInfo.js +2 -16
- package/cjs/polkadot/consts.js +2 -1
- package/cjs/polkadot/errors.js +2 -1
- package/cjs/polkadot/events.js +2 -1
- package/cjs/polkadot/index.js +9 -9
- package/cjs/polkadot/query.js +2 -1
- package/cjs/polkadot/registry.js +1 -1
- package/cjs/polkadot/runtime.js +2 -1
- package/cjs/polkadot/tx.js +2 -1
- package/cjs/substrate/consts.js +2 -1
- package/cjs/substrate/errors.js +2 -1
- package/cjs/substrate/events.js +2 -1
- package/cjs/substrate/index.js +9 -9
- package/cjs/substrate/query.js +2 -1
- package/cjs/substrate/registry.js +1 -1
- package/cjs/substrate/runtime.js +2 -1
- package/cjs/substrate/tx.js +2 -1
- package/detectOther.js +0 -3
- package/detectPackage.js +2 -7
- package/index.d.ts +2 -2
- package/index.js +2 -5
- package/kusama/consts.js +1 -7
- package/kusama/errors.d.ts +4 -0
- package/kusama/errors.js +1 -7
- package/kusama/events.d.ts +5 -5
- package/kusama/events.js +1 -7
- package/kusama/index.d.ts +8 -8
- package/kusama/index.js +8 -11
- package/kusama/query.d.ts +16 -1
- package/kusama/query.js +1 -7
- package/kusama/registry.js +0 -3
- package/kusama/runtime.d.ts +39 -4
- package/kusama/runtime.js +1 -7
- package/kusama/tx.d.ts +65 -14
- package/kusama/tx.js +1 -7
- package/package.json +12 -9
- package/packageInfo.js +1 -11
- package/polkadot/consts.js +1 -7
- package/polkadot/errors.d.ts +4 -0
- package/polkadot/errors.js +1 -7
- package/polkadot/events.d.ts +5 -5
- package/polkadot/events.js +1 -7
- package/polkadot/index.d.ts +8 -8
- package/polkadot/index.js +8 -11
- package/polkadot/query.d.ts +16 -1
- package/polkadot/query.js +1 -7
- package/polkadot/registry.js +0 -3
- package/polkadot/runtime.d.ts +39 -4
- package/polkadot/runtime.js +1 -7
- package/polkadot/tx.d.ts +65 -14
- package/polkadot/tx.js +1 -7
- package/substrate/consts.d.ts +27 -0
- package/substrate/consts.js +1 -7
- package/substrate/errors.d.ts +89 -0
- package/substrate/errors.js +1 -7
- package/substrate/events.d.ts +100 -17
- package/substrate/events.js +1 -7
- package/substrate/index.d.ts +8 -8
- package/substrate/index.js +8 -11
- package/substrate/query.d.ts +56 -18
- package/substrate/query.js +1 -7
- package/substrate/registry.js +0 -3
- package/substrate/runtime.d.ts +65 -1
- package/substrate/runtime.js +1 -7
- package/substrate/tx.d.ts +207 -36
- package/substrate/tx.js +1 -7
package/polkadot/runtime.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-b
|
|
|
3
3
|
import type { Bytes, Null, Option, Result, Vec, bool, u32 } from '@polkadot/types-codec';
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
6
|
-
import type { ValidatorSet } from '@polkadot/types/interfaces/beefy';
|
|
6
|
+
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
|
7
7
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
|
8
8
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
9
9
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
|
@@ -11,9 +11,10 @@ import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
|
|
|
11
11
|
import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
|
|
12
12
|
import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
|
|
13
13
|
import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
|
|
14
|
+
import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
|
|
14
15
|
import type { CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
|
|
15
16
|
import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
|
|
16
|
-
import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
|
17
|
+
import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
|
|
17
18
|
import type { SessionIndex } from '@polkadot/types/interfaces/session';
|
|
18
19
|
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
|
|
19
20
|
import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
|
|
@@ -81,8 +82,23 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
81
82
|
**/
|
|
82
83
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
83
84
|
};
|
|
84
|
-
/** 0x49eaaf1b548a0cb0/
|
|
85
|
+
/** 0x49eaaf1b548a0cb0/2 */
|
|
85
86
|
beefyApi: {
|
|
87
|
+
/**
|
|
88
|
+
* Return the block number where BEEFY consensus is enabled/started
|
|
89
|
+
**/
|
|
90
|
+
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
|
91
|
+
/**
|
|
92
|
+
* Generates a proof of key ownership for the given authority in the given set.
|
|
93
|
+
**/
|
|
94
|
+
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
|
95
|
+
/**
|
|
96
|
+
* Submits an unsigned extrinsic to report an equivocation.
|
|
97
|
+
**/
|
|
98
|
+
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | {
|
|
99
|
+
first?: any;
|
|
100
|
+
second?: any;
|
|
101
|
+
} | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
|
86
102
|
/**
|
|
87
103
|
* Return the current active BEEFY validator set
|
|
88
104
|
**/
|
|
@@ -187,7 +203,7 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
187
203
|
**/
|
|
188
204
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
189
205
|
};
|
|
190
|
-
/** 0x91d5df18b0d2cf58/
|
|
206
|
+
/** 0x91d5df18b0d2cf58/2 */
|
|
191
207
|
mmrApi: {
|
|
192
208
|
/**
|
|
193
209
|
* Generate MMR proof for a series of leaves under given indices.
|
|
@@ -240,10 +256,18 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
240
256
|
};
|
|
241
257
|
/** 0x17a6bc0d0062aeb3/1 */
|
|
242
258
|
nominationPoolsApi: {
|
|
259
|
+
/**
|
|
260
|
+
* Returns the equivalent points of `new_funds` for a given pool.
|
|
261
|
+
**/
|
|
262
|
+
balanceToPoints: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, newFunds: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
|
243
263
|
/**
|
|
244
264
|
* Returns the pending rewards for the given member.
|
|
245
265
|
**/
|
|
246
266
|
pendingRewards: AugmentedCall<ApiType, (member: AccountId | string | Uint8Array) => Observable<Balance>>;
|
|
267
|
+
/**
|
|
268
|
+
* Returns the equivalent balance of `points` for a given pool.
|
|
269
|
+
**/
|
|
270
|
+
pointsToBalance: AugmentedCall<ApiType, (poolId: NpPoolId | AnyNumber | Uint8Array, points: Balance | AnyNumber | Uint8Array) => Observable<Balance>>;
|
|
247
271
|
/**
|
|
248
272
|
* Generic call
|
|
249
273
|
**/
|
|
@@ -372,6 +396,17 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
372
396
|
**/
|
|
373
397
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
374
398
|
};
|
|
399
|
+
/** 0x18ef58a3b67ba770/1 */
|
|
400
|
+
stakingApi: {
|
|
401
|
+
/**
|
|
402
|
+
* Returns the nominations quota for a nominator with a given balance.
|
|
403
|
+
**/
|
|
404
|
+
nominationsQuota: AugmentedCall<ApiType, (balance: Balance | AnyNumber | Uint8Array) => Observable<u32>>;
|
|
405
|
+
/**
|
|
406
|
+
* Generic call
|
|
407
|
+
**/
|
|
408
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
409
|
+
};
|
|
375
410
|
/** 0xd2bc9897eed08f15/3 */
|
|
376
411
|
taggedTransactionQueue: {
|
|
377
412
|
/**
|
package/polkadot/runtime.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/calls';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/calls';
|
package/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, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor,
|
|
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:
|
|
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>, [
|
|
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:
|
|
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>, [
|
|
1637
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [SpConsensusGrandpaEquivocationProof, SpSessionMembershipProof]>;
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Generic tx
|
|
1640
1640
|
**/
|
|
@@ -2369,12 +2369,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2369
2369
|
* accumulated rewards, see [`BondExtra`].
|
|
2370
2370
|
*
|
|
2371
2371
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
|
2372
|
+
* See `bond_extra_other` to bond pending rewards of `other` members.
|
|
2372
2373
|
**/
|
|
2373
2374
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
2374
2375
|
FreeBalance: any;
|
|
2375
2376
|
} | {
|
|
2376
2377
|
Rewards: any;
|
|
2377
2378
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
|
2379
|
+
/**
|
|
2380
|
+
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
|
2381
|
+
* pools.
|
|
2382
|
+
*
|
|
2383
|
+
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
|
2384
|
+
* other`.
|
|
2385
|
+
*
|
|
2386
|
+
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
|
2387
|
+
* `other` members assuming set_claim_permission for the given member is
|
|
2388
|
+
* `PermissionlessAll` or `PermissionlessCompound`.
|
|
2389
|
+
**/
|
|
2390
|
+
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | {
|
|
2391
|
+
Id: any;
|
|
2392
|
+
} | {
|
|
2393
|
+
Index: any;
|
|
2394
|
+
} | {
|
|
2395
|
+
Raw: any;
|
|
2396
|
+
} | {
|
|
2397
|
+
Address32: any;
|
|
2398
|
+
} | {
|
|
2399
|
+
Address20: any;
|
|
2400
|
+
} | string | Uint8Array, extra: PalletNominationPoolsBondExtra | {
|
|
2401
|
+
FreeBalance: any;
|
|
2402
|
+
} | {
|
|
2403
|
+
Rewards: any;
|
|
2404
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
|
2378
2405
|
/**
|
|
2379
2406
|
* Chill on behalf of the pool.
|
|
2380
2407
|
*
|
|
@@ -2392,8 +2419,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2392
2419
|
*
|
|
2393
2420
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
2394
2421
|
* members in the pools stake. Rewards do not "expire".
|
|
2422
|
+
*
|
|
2423
|
+
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
|
2395
2424
|
**/
|
|
2396
2425
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
2426
|
+
/**
|
|
2427
|
+
* `origin` can claim payouts on some pool member `other`'s behalf.
|
|
2428
|
+
*
|
|
2429
|
+
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
|
2430
|
+
* for this call to be successful.
|
|
2431
|
+
**/
|
|
2432
|
+
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
2397
2433
|
/**
|
|
2398
2434
|
* Create a new delegation pool.
|
|
2399
2435
|
*
|
|
@@ -2406,7 +2442,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2406
2442
|
* creating multiple pools in the same extrinsic.
|
|
2407
2443
|
* * `root` - The account to set as [`PoolRoles::root`].
|
|
2408
2444
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
|
2409
|
-
* * `
|
|
2445
|
+
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
|
2410
2446
|
*
|
|
2411
2447
|
* # Note
|
|
2412
2448
|
*
|
|
@@ -2433,7 +2469,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2433
2469
|
Address32: any;
|
|
2434
2470
|
} | {
|
|
2435
2471
|
Address20: any;
|
|
2436
|
-
} | string | Uint8Array,
|
|
2472
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
2437
2473
|
Id: any;
|
|
2438
2474
|
} | {
|
|
2439
2475
|
Index: any;
|
|
@@ -2472,7 +2508,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2472
2508
|
Address32: any;
|
|
2473
2509
|
} | {
|
|
2474
2510
|
Address20: any;
|
|
2475
|
-
} | string | Uint8Array,
|
|
2511
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
2476
2512
|
Id: any;
|
|
2477
2513
|
} | {
|
|
2478
2514
|
Index: any;
|
|
@@ -2515,6 +2551,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2515
2551
|
* they attempt to unbond.
|
|
2516
2552
|
**/
|
|
2517
2553
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
2554
|
+
/**
|
|
2555
|
+
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
|
2556
|
+
* bonding and withdrawing.
|
|
2557
|
+
*
|
|
2558
|
+
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
|
2559
|
+
* claim their pending rewards. If a pool member wishes so, they can set this to
|
|
2560
|
+
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
|
2561
|
+
* pool.
|
|
2562
|
+
*
|
|
2563
|
+
* # Arguments
|
|
2564
|
+
*
|
|
2565
|
+
* * `origin` - Member of a pool.
|
|
2566
|
+
* * `actor` - Account to claim reward. // improve this
|
|
2567
|
+
**/
|
|
2568
|
+
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
|
2518
2569
|
/**
|
|
2519
2570
|
* Update configurations for the nomination pools. The origin for this call must be
|
|
2520
2571
|
* Root.
|
|
@@ -2561,7 +2612,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2561
2612
|
/**
|
|
2562
2613
|
* Set a new metadata for the pool.
|
|
2563
2614
|
*
|
|
2564
|
-
* The dispatch origin of this call must be signed by the
|
|
2615
|
+
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
|
2565
2616
|
* of the pool.
|
|
2566
2617
|
**/
|
|
2567
2618
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
@@ -2573,7 +2624,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2573
2624
|
*
|
|
2574
2625
|
* The dispatch origin of this call must be either:
|
|
2575
2626
|
*
|
|
2576
|
-
* 1. signed by the
|
|
2627
|
+
* 1. signed by the bouncer, or the root role of the pool,
|
|
2577
2628
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
|
2578
2629
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
|
2579
2630
|
**/
|
|
@@ -2588,8 +2639,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2588
2639
|
*
|
|
2589
2640
|
* # Conditions for a permissionless dispatch.
|
|
2590
2641
|
*
|
|
2591
|
-
* * The pool is blocked and the caller is either the root or
|
|
2592
|
-
*
|
|
2642
|
+
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
|
2643
|
+
* as a kick.
|
|
2593
2644
|
* * The pool is destroying and the member is not the depositor.
|
|
2594
2645
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
|
2595
2646
|
* pool.
|
|
@@ -2643,7 +2694,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2643
2694
|
Set: any;
|
|
2644
2695
|
} | {
|
|
2645
2696
|
Remove: any;
|
|
2646
|
-
} | string | Uint8Array,
|
|
2697
|
+
} | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | {
|
|
2647
2698
|
Noop: any;
|
|
2648
2699
|
} | {
|
|
2649
2700
|
Set: any;
|
|
@@ -2661,7 +2712,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2661
2712
|
*
|
|
2662
2713
|
* * The pool is in destroy mode and the target is not the depositor.
|
|
2663
2714
|
* * The target is the depositor and they are the only member in the sub pools.
|
|
2664
|
-
* * The pool is blocked and the caller is either the root or
|
|
2715
|
+
* * The pool is blocked and the caller is either the root or bouncer.
|
|
2665
2716
|
*
|
|
2666
2717
|
* # Conditions for permissioned dispatch
|
|
2667
2718
|
*
|
package/polkadot/tx.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/submittable';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/submittable';
|
package/substrate/consts.d.ts
CHANGED
|
@@ -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.
|
package/substrate/consts.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/consts';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/consts';
|
package/substrate/errors.d.ts
CHANGED
|
@@ -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
|
/**
|
|
@@ -878,6 +881,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
878
881
|
**/
|
|
879
882
|
[key: string]: AugmentedError<ApiType>;
|
|
880
883
|
};
|
|
884
|
+
glutton: {
|
|
885
|
+
/**
|
|
886
|
+
* The pallet was already initialized.
|
|
887
|
+
*
|
|
888
|
+
* Set `witness_count` to `Some` to bypass this error.
|
|
889
|
+
**/
|
|
890
|
+
AlreadyInitialized: AugmentedError<ApiType>;
|
|
891
|
+
/**
|
|
892
|
+
* Generic error
|
|
893
|
+
**/
|
|
894
|
+
[key: string]: AugmentedError<ApiType>;
|
|
895
|
+
};
|
|
881
896
|
grandpa: {
|
|
882
897
|
/**
|
|
883
898
|
* Attempt to signal GRANDPA change with one already pending.
|
|
@@ -1092,6 +1107,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1092
1107
|
* The message is queued for future execution.
|
|
1093
1108
|
**/
|
|
1094
1109
|
Queued: AugmentedError<ApiType>;
|
|
1110
|
+
/**
|
|
1111
|
+
* This message is temporarily unprocessable.
|
|
1112
|
+
*
|
|
1113
|
+
* Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
|
1114
|
+
* retrying.
|
|
1115
|
+
**/
|
|
1116
|
+
TemporarilyUnprocessable: AugmentedError<ApiType>;
|
|
1095
1117
|
/**
|
|
1096
1118
|
* Generic error
|
|
1097
1119
|
**/
|
|
@@ -1312,6 +1334,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1312
1334
|
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
|
1313
1335
|
**/
|
|
1314
1336
|
WrongDuration: AugmentedError<ApiType>;
|
|
1337
|
+
/**
|
|
1338
|
+
* The provided namespace isn't supported in this call.
|
|
1339
|
+
**/
|
|
1340
|
+
WrongNamespace: AugmentedError<ApiType>;
|
|
1315
1341
|
/**
|
|
1316
1342
|
* The extrinsic was sent by the wrong origin.
|
|
1317
1343
|
**/
|
|
@@ -1406,6 +1432,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1406
1432
|
* pool at a time.
|
|
1407
1433
|
**/
|
|
1408
1434
|
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
|
1435
|
+
/**
|
|
1436
|
+
* Bonding extra is restricted to the exact pending reward amount.
|
|
1437
|
+
**/
|
|
1438
|
+
BondExtraRestricted: AugmentedError<ApiType>;
|
|
1409
1439
|
/**
|
|
1410
1440
|
* The pools state cannot be changed.
|
|
1411
1441
|
**/
|
|
@@ -1816,6 +1846,65 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1816
1846
|
**/
|
|
1817
1847
|
[key: string]: AugmentedError<ApiType>;
|
|
1818
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
|
+
};
|
|
1819
1908
|
scheduler: {
|
|
1820
1909
|
/**
|
|
1821
1910
|
* Failed to schedule a call
|
package/substrate/errors.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/errors';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/errors';
|