@polkadot/api-augment 9.14.2 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.js +0 -4
- package/bundle.js +2 -5
- package/cjs/base.js +1 -1
- package/cjs/bundle.js +4 -11
- package/cjs/detectOther.js +5 -12
- package/cjs/detectPackage.js +6 -11
- package/cjs/index.js +3 -15
- package/cjs/kusama/consts.js +2 -1
- package/cjs/kusama/errors.js +2 -1
- package/cjs/kusama/events.js +2 -1
- package/cjs/kusama/index.js +1 -1
- package/cjs/kusama/query.js +2 -1
- package/cjs/kusama/registry.js +1 -1
- package/cjs/kusama/runtime.js +2 -1
- package/cjs/kusama/tx.js +2 -1
- package/cjs/packageInfo.js +2 -16
- package/cjs/polkadot/consts.js +2 -1
- package/cjs/polkadot/errors.js +2 -1
- package/cjs/polkadot/events.js +2 -1
- package/cjs/polkadot/index.js +1 -1
- package/cjs/polkadot/query.js +2 -1
- package/cjs/polkadot/registry.js +1 -1
- package/cjs/polkadot/runtime.js +2 -1
- package/cjs/polkadot/tx.js +2 -1
- package/cjs/substrate/consts.js +2 -1
- package/cjs/substrate/errors.js +2 -1
- package/cjs/substrate/events.js +2 -1
- package/cjs/substrate/index.js +1 -1
- package/cjs/substrate/query.js +2 -1
- package/cjs/substrate/registry.js +1 -1
- package/cjs/substrate/runtime.js +2 -1
- package/cjs/substrate/tx.js +2 -1
- package/detectOther.js +0 -3
- package/detectPackage.js +2 -7
- package/index.js +2 -5
- package/kusama/consts.js +1 -7
- package/kusama/errors.d.ts +4 -0
- package/kusama/errors.js +1 -7
- package/kusama/events.d.ts +2 -2
- package/kusama/events.js +1 -7
- package/kusama/index.js +8 -11
- package/kusama/query.d.ts +16 -1
- package/kusama/query.js +1 -7
- package/kusama/registry.js +0 -3
- package/kusama/runtime.js +1 -7
- package/kusama/tx.d.ts +61 -10
- package/kusama/tx.js +1 -7
- package/package.json +12 -9
- package/packageInfo.js +1 -11
- package/polkadot/consts.js +1 -7
- package/polkadot/errors.d.ts +4 -0
- package/polkadot/errors.js +1 -7
- package/polkadot/events.d.ts +2 -2
- package/polkadot/events.js +1 -7
- package/polkadot/index.js +8 -11
- package/polkadot/query.d.ts +16 -1
- package/polkadot/query.js +1 -7
- package/polkadot/registry.js +0 -3
- package/polkadot/runtime.js +1 -7
- package/polkadot/tx.d.ts +61 -10
- package/polkadot/tx.js +1 -7
- package/substrate/consts.js +1 -7
- package/substrate/errors.d.ts +27 -0
- package/substrate/errors.js +1 -7
- package/substrate/events.d.ts +43 -11
- package/substrate/events.js +1 -7
- package/substrate/index.js +8 -11
- package/substrate/query.d.ts +39 -16
- package/substrate/query.js +1 -7
- package/substrate/registry.js +0 -3
- package/substrate/runtime.js +1 -7
- package/substrate/tx.d.ts +121 -25
- package/substrate/tx.js +1 -7
package/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, 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, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, 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>;
|
|
@@ -2979,12 +2979,39 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
2979
2979
|
* accumulated rewards, see [`BondExtra`].
|
|
2980
2980
|
*
|
|
2981
2981
|
* Bonding extra funds implies an automatic payout of all pending rewards as well.
|
|
2982
|
+
* See `bond_extra_other` to bond pending rewards of `other` members.
|
|
2982
2983
|
**/
|
|
2983
2984
|
bondExtra: AugmentedSubmittable<(extra: PalletNominationPoolsBondExtra | {
|
|
2984
2985
|
FreeBalance: any;
|
|
2985
2986
|
} | {
|
|
2986
2987
|
Rewards: any;
|
|
2987
2988
|
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsBondExtra]>;
|
|
2989
|
+
/**
|
|
2990
|
+
* `origin` bonds funds from `extra` for some pool member `member` into their respective
|
|
2991
|
+
* pools.
|
|
2992
|
+
*
|
|
2993
|
+
* `origin` can bond extra funds from free balance or pending rewards when `origin ==
|
|
2994
|
+
* other`.
|
|
2995
|
+
*
|
|
2996
|
+
* In the case of `origin != other`, `origin` can only bond extra pending rewards of
|
|
2997
|
+
* `other` members assuming set_claim_permission for the given member is
|
|
2998
|
+
* `PermissionlessAll` or `PermissionlessCompound`.
|
|
2999
|
+
**/
|
|
3000
|
+
bondExtraOther: AugmentedSubmittable<(member: MultiAddress | {
|
|
3001
|
+
Id: any;
|
|
3002
|
+
} | {
|
|
3003
|
+
Index: any;
|
|
3004
|
+
} | {
|
|
3005
|
+
Raw: any;
|
|
3006
|
+
} | {
|
|
3007
|
+
Address32: any;
|
|
3008
|
+
} | {
|
|
3009
|
+
Address20: any;
|
|
3010
|
+
} | string | Uint8Array, extra: PalletNominationPoolsBondExtra | {
|
|
3011
|
+
FreeBalance: any;
|
|
3012
|
+
} | {
|
|
3013
|
+
Rewards: any;
|
|
3014
|
+
} | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [MultiAddress, PalletNominationPoolsBondExtra]>;
|
|
2988
3015
|
/**
|
|
2989
3016
|
* Chill on behalf of the pool.
|
|
2990
3017
|
*
|
|
@@ -3002,8 +3029,17 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3002
3029
|
*
|
|
3003
3030
|
* The member will earn rewards pro rata based on the members stake vs the sum of the
|
|
3004
3031
|
* members in the pools stake. Rewards do not "expire".
|
|
3032
|
+
*
|
|
3033
|
+
* See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
|
|
3005
3034
|
**/
|
|
3006
3035
|
claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
|
|
3036
|
+
/**
|
|
3037
|
+
* `origin` can claim payouts on some pool member `other`'s behalf.
|
|
3038
|
+
*
|
|
3039
|
+
* Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
|
|
3040
|
+
* for this call to be successful.
|
|
3041
|
+
**/
|
|
3042
|
+
claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
|
|
3007
3043
|
/**
|
|
3008
3044
|
* Create a new delegation pool.
|
|
3009
3045
|
*
|
|
@@ -3016,7 +3052,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3016
3052
|
* creating multiple pools in the same extrinsic.
|
|
3017
3053
|
* * `root` - The account to set as [`PoolRoles::root`].
|
|
3018
3054
|
* * `nominator` - The account to set as the [`PoolRoles::nominator`].
|
|
3019
|
-
* * `
|
|
3055
|
+
* * `bouncer` - The account to set as the [`PoolRoles::bouncer`].
|
|
3020
3056
|
*
|
|
3021
3057
|
* # Note
|
|
3022
3058
|
*
|
|
@@ -3043,7 +3079,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3043
3079
|
Address32: any;
|
|
3044
3080
|
} | {
|
|
3045
3081
|
Address20: any;
|
|
3046
|
-
} | string | Uint8Array,
|
|
3082
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
3047
3083
|
Id: any;
|
|
3048
3084
|
} | {
|
|
3049
3085
|
Index: any;
|
|
@@ -3082,7 +3118,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3082
3118
|
Address32: any;
|
|
3083
3119
|
} | {
|
|
3084
3120
|
Address20: any;
|
|
3085
|
-
} | string | Uint8Array,
|
|
3121
|
+
} | string | Uint8Array, bouncer: MultiAddress | {
|
|
3086
3122
|
Id: any;
|
|
3087
3123
|
} | {
|
|
3088
3124
|
Index: any;
|
|
@@ -3125,6 +3161,21 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3125
3161
|
* they attempt to unbond.
|
|
3126
3162
|
**/
|
|
3127
3163
|
poolWithdrawUnbonded: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
|
|
3164
|
+
/**
|
|
3165
|
+
* Allows a pool member to set a claim permission to allow or disallow permissionless
|
|
3166
|
+
* bonding and withdrawing.
|
|
3167
|
+
*
|
|
3168
|
+
* By default, this is `Permissioned`, which implies only the pool member themselves can
|
|
3169
|
+
* claim their pending rewards. If a pool member wishes so, they can set this to
|
|
3170
|
+
* `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
|
|
3171
|
+
* pool.
|
|
3172
|
+
*
|
|
3173
|
+
* # Arguments
|
|
3174
|
+
*
|
|
3175
|
+
* * `origin` - Member of a pool.
|
|
3176
|
+
* * `actor` - Account to claim reward. // improve this
|
|
3177
|
+
**/
|
|
3178
|
+
setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
|
|
3128
3179
|
/**
|
|
3129
3180
|
* Update configurations for the nomination pools. The origin for this call must be
|
|
3130
3181
|
* Root.
|
|
@@ -3171,7 +3222,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3171
3222
|
/**
|
|
3172
3223
|
* Set a new metadata for the pool.
|
|
3173
3224
|
*
|
|
3174
|
-
* The dispatch origin of this call must be signed by the
|
|
3225
|
+
* The dispatch origin of this call must be signed by the bouncer, or the root role
|
|
3175
3226
|
* of the pool.
|
|
3176
3227
|
**/
|
|
3177
3228
|
setMetadata: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, metadata: Bytes | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, Bytes]>;
|
|
@@ -3183,7 +3234,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3183
3234
|
*
|
|
3184
3235
|
* The dispatch origin of this call must be either:
|
|
3185
3236
|
*
|
|
3186
|
-
* 1. signed by the
|
|
3237
|
+
* 1. signed by the bouncer, or the root role of the pool,
|
|
3187
3238
|
* 2. if the pool conditions to be open are NOT met (as described by `ok_to_be_open`), and
|
|
3188
3239
|
* then the state of the pool can be permissionlessly changed to `Destroying`.
|
|
3189
3240
|
**/
|
|
@@ -3198,8 +3249,8 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3198
3249
|
*
|
|
3199
3250
|
* # Conditions for a permissionless dispatch.
|
|
3200
3251
|
*
|
|
3201
|
-
* * The pool is blocked and the caller is either the root or
|
|
3202
|
-
*
|
|
3252
|
+
* * The pool is blocked and the caller is either the root or bouncer. This is refereed to
|
|
3253
|
+
* as a kick.
|
|
3203
3254
|
* * The pool is destroying and the member is not the depositor.
|
|
3204
3255
|
* * The pool is destroying, the member is the depositor and no other members are in the
|
|
3205
3256
|
* pool.
|
|
@@ -3253,7 +3304,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3253
3304
|
Set: any;
|
|
3254
3305
|
} | {
|
|
3255
3306
|
Remove: any;
|
|
3256
|
-
} | string | Uint8Array,
|
|
3307
|
+
} | string | Uint8Array, newBouncer: PalletNominationPoolsConfigOpAccountId32 | {
|
|
3257
3308
|
Noop: any;
|
|
3258
3309
|
} | {
|
|
3259
3310
|
Set: any;
|
|
@@ -3271,7 +3322,7 @@ declare module '@polkadot/api-base/types/submittable' {
|
|
|
3271
3322
|
*
|
|
3272
3323
|
* * The pool is in destroy mode and the target is not the depositor.
|
|
3273
3324
|
* * The target is the depositor and they are the only member in the sub pools.
|
|
3274
|
-
* * The pool is blocked and the caller is either the root or
|
|
3325
|
+
* * The pool is blocked and the caller is either the root or bouncer.
|
|
3275
3326
|
*
|
|
3276
3327
|
* # Conditions for permissioned dispatch
|
|
3277
3328
|
*
|
package/kusama/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/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "
|
|
23
|
+
"version": "10.0.1",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -92,7 +92,10 @@
|
|
|
92
92
|
"require": "./cjs/kusama/tx.js",
|
|
93
93
|
"default": "./kusama/tx.js"
|
|
94
94
|
},
|
|
95
|
-
"./package.json":
|
|
95
|
+
"./package.json": {
|
|
96
|
+
"require": "./cjs/package.json",
|
|
97
|
+
"default": "./package.json"
|
|
98
|
+
},
|
|
96
99
|
"./packageInfo.js": {
|
|
97
100
|
"types": "./packageInfo.d.ts",
|
|
98
101
|
"require": "./cjs/packageInfo.js",
|
|
@@ -185,12 +188,12 @@
|
|
|
185
188
|
}
|
|
186
189
|
},
|
|
187
190
|
"dependencies": {
|
|
188
|
-
"@
|
|
189
|
-
"@polkadot/
|
|
190
|
-
"@polkadot/
|
|
191
|
-
"@polkadot/types": "
|
|
192
|
-
"@polkadot/types-
|
|
193
|
-
"@polkadot/
|
|
194
|
-
"
|
|
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",
|
|
197
|
+
"tslib": "^2.5.0"
|
|
195
198
|
}
|
|
196
199
|
}
|
package/packageInfo.js
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
// Do not edit, auto-generated by @polkadot/dev
|
|
5
|
-
|
|
6
|
-
export const packageInfo = {
|
|
7
|
-
name: '@polkadot/api-augment',
|
|
8
|
-
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
9
|
-
type: 'esm',
|
|
10
|
-
version: '9.14.2'
|
|
11
|
-
};
|
|
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' };
|
package/polkadot/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/polkadot/errors.d.ts
CHANGED
|
@@ -852,6 +852,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
852
852
|
* pool at a time.
|
|
853
853
|
**/
|
|
854
854
|
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
|
855
|
+
/**
|
|
856
|
+
* Bonding extra is restricted to the exact pending reward amount.
|
|
857
|
+
**/
|
|
858
|
+
BondExtraRestricted: AugmentedError<ApiType>;
|
|
855
859
|
/**
|
|
856
860
|
* The pools state cannot be changed.
|
|
857
861
|
**/
|
package/polkadot/errors.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/errors';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/errors';
|
package/polkadot/events.d.ts
CHANGED
|
@@ -872,9 +872,9 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
872
872
|
* The roles of a pool have been updated to the given new roles. Note that the depositor
|
|
873
873
|
* can never change.
|
|
874
874
|
**/
|
|
875
|
-
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>,
|
|
875
|
+
RolesUpdated: AugmentedEvent<ApiType, [root: Option<AccountId32>, bouncer: Option<AccountId32>, nominator: Option<AccountId32>], {
|
|
876
876
|
root: Option<AccountId32>;
|
|
877
|
-
|
|
877
|
+
bouncer: Option<AccountId32>;
|
|
878
878
|
nominator: Option<AccountId32>;
|
|
879
879
|
}>;
|
|
880
880
|
/**
|
package/polkadot/events.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/events';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/events';
|
package/polkadot/index.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import "./registry.js";
|
|
10
|
-
import "./runtime.js";
|
|
11
|
-
import "./tx.js";
|
|
1
|
+
import '../base.js';
|
|
2
|
+
import './consts.js';
|
|
3
|
+
import './errors.js';
|
|
4
|
+
import './events.js';
|
|
5
|
+
import './query.js';
|
|
6
|
+
import './registry.js';
|
|
7
|
+
import './runtime.js';
|
|
8
|
+
import './tx.js';
|
package/polkadot/query.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool,
|
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
|
|
7
7
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
8
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
8
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotPrimitivesVstagingExecutorParams, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
|
|
9
9
|
import type { Observable } from '@polkadot/types/types';
|
|
10
10
|
export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
11
11
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -143,6 +143,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
143
143
|
* epoch.
|
|
144
144
|
**/
|
|
145
145
|
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
146
|
+
/**
|
|
147
|
+
* A list of the last 100 skipped epochs and the corresponding session index
|
|
148
|
+
* when the epoch was skipped.
|
|
149
|
+
*
|
|
150
|
+
* This is only used for validating equivocation proofs. An equivocation proof
|
|
151
|
+
* must contains a key-ownership proof for a given session, therefore we need a
|
|
152
|
+
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
|
153
|
+
* a validator was the owner of a given key on a given session, and what the
|
|
154
|
+
* active epoch index was during that session.
|
|
155
|
+
**/
|
|
156
|
+
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
146
157
|
/**
|
|
147
158
|
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
|
148
159
|
**/
|
|
@@ -812,6 +823,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
812
823
|
* Storage for bonded pools.
|
|
813
824
|
**/
|
|
814
825
|
bondedPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsBondedPoolInner>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
826
|
+
/**
|
|
827
|
+
* Map from a pool member account to their opted claim permission.
|
|
828
|
+
**/
|
|
829
|
+
claimPermissions: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletNominationPoolsClaimPermission>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
815
830
|
/**
|
|
816
831
|
* Counter for the related counted storage map
|
|
817
832
|
**/
|
package/polkadot/query.js
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
|
|
2
1
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
// import type lookup before we augment - in some environments
|
|
5
|
-
// this is required to allow for ambient/previous definitions
|
|
6
|
-
import '@polkadot/api-base/types/storage';
|
|
7
|
-
|
|
8
|
-
// declare module
|
|
2
|
+
import '@polkadot/api-base/types/storage';
|
package/polkadot/registry.js
CHANGED
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, 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, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, 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>;
|
|
@@ -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.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
|
@@ -878,6 +878,18 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
878
878
|
**/
|
|
879
879
|
[key: string]: AugmentedError<ApiType>;
|
|
880
880
|
};
|
|
881
|
+
glutton: {
|
|
882
|
+
/**
|
|
883
|
+
* The pallet was already initialized.
|
|
884
|
+
*
|
|
885
|
+
* Set `witness_count` to `Some` to bypass this error.
|
|
886
|
+
**/
|
|
887
|
+
AlreadyInitialized: AugmentedError<ApiType>;
|
|
888
|
+
/**
|
|
889
|
+
* Generic error
|
|
890
|
+
**/
|
|
891
|
+
[key: string]: AugmentedError<ApiType>;
|
|
892
|
+
};
|
|
881
893
|
grandpa: {
|
|
882
894
|
/**
|
|
883
895
|
* Attempt to signal GRANDPA change with one already pending.
|
|
@@ -1092,6 +1104,13 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1092
1104
|
* The message is queued for future execution.
|
|
1093
1105
|
**/
|
|
1094
1106
|
Queued: AugmentedError<ApiType>;
|
|
1107
|
+
/**
|
|
1108
|
+
* This message is temporarily unprocessable.
|
|
1109
|
+
*
|
|
1110
|
+
* Such errors are expected, but not guaranteed, to resolve themselves eventually through
|
|
1111
|
+
* retrying.
|
|
1112
|
+
**/
|
|
1113
|
+
TemporarilyUnprocessable: AugmentedError<ApiType>;
|
|
1095
1114
|
/**
|
|
1096
1115
|
* Generic error
|
|
1097
1116
|
**/
|
|
@@ -1312,6 +1331,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1312
1331
|
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
|
1313
1332
|
**/
|
|
1314
1333
|
WrongDuration: AugmentedError<ApiType>;
|
|
1334
|
+
/**
|
|
1335
|
+
* The provided namespace isn't supported in this call.
|
|
1336
|
+
**/
|
|
1337
|
+
WrongNamespace: AugmentedError<ApiType>;
|
|
1315
1338
|
/**
|
|
1316
1339
|
* The extrinsic was sent by the wrong origin.
|
|
1317
1340
|
**/
|
|
@@ -1406,6 +1429,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1406
1429
|
* pool at a time.
|
|
1407
1430
|
**/
|
|
1408
1431
|
AccountBelongsToOtherPool: AugmentedError<ApiType>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Bonding extra is restricted to the exact pending reward amount.
|
|
1434
|
+
**/
|
|
1435
|
+
BondExtraRestricted: AugmentedError<ApiType>;
|
|
1409
1436
|
/**
|
|
1410
1437
|
* The pools state cannot be changed.
|
|
1411
1438
|
**/
|