@polkadot/api-augment 10.11.3 → 10.12.2
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/cjs/packageInfo.js +1 -1
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/substrate/consts.d.ts +51 -19
- package/substrate/errors.d.ts +94 -34
- package/substrate/events.d.ts +137 -34
- package/substrate/query.d.ts +136 -12
- package/substrate/runtime.d.ts +27 -0
- package/substrate/tx.d.ts +204 -29
package/substrate/events.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
|
3
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, H256, Perbill, Permill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType,
|
|
6
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletBrokerCoretimeInterfaceCoreAssignment, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsOrigin, PalletConvictionVotingTally, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsPalletAttributes, PalletNftsPriceWithDirection, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletSafeModeExitReason, PalletSocietyGroupParams, PalletStakingForcing, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpConsensusGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpStakingExposure, SpStatementStoreStatement, 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> {
|
|
@@ -163,10 +163,10 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
163
163
|
/**
|
|
164
164
|
* A successful call of the `AddLiquidity` extrinsic will create this event.
|
|
165
165
|
**/
|
|
166
|
-
LiquidityAdded: AugmentedEvent<ApiType, [who: AccountId32, mintTo: AccountId32, poolId: ITuple<[
|
|
166
|
+
LiquidityAdded: AugmentedEvent<ApiType, [who: AccountId32, mintTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1Provided: u128, amount2Provided: u128, lpToken: u32, lpTokenMinted: u128], {
|
|
167
167
|
who: AccountId32;
|
|
168
168
|
mintTo: AccountId32;
|
|
169
|
-
poolId: ITuple<[
|
|
169
|
+
poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
|
|
170
170
|
amount1Provided: u128;
|
|
171
171
|
amount2Provided: u128;
|
|
172
172
|
lpToken: u32;
|
|
@@ -175,10 +175,10 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
175
175
|
/**
|
|
176
176
|
* A successful call of the `RemoveLiquidity` extrinsic will create this event.
|
|
177
177
|
**/
|
|
178
|
-
LiquidityRemoved: AugmentedEvent<ApiType, [who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[
|
|
178
|
+
LiquidityRemoved: AugmentedEvent<ApiType, [who: AccountId32, withdrawTo: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, amount1: u128, amount2: u128, lpToken: u32, lpTokenBurned: u128, withdrawalFee: Permill], {
|
|
179
179
|
who: AccountId32;
|
|
180
180
|
withdrawTo: AccountId32;
|
|
181
|
-
poolId: ITuple<[
|
|
181
|
+
poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
|
|
182
182
|
amount1: u128;
|
|
183
183
|
amount2: u128;
|
|
184
184
|
lpToken: u32;
|
|
@@ -188,31 +188,30 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
188
188
|
/**
|
|
189
189
|
* A successful call of the `CretaPool` extrinsic will create this event.
|
|
190
190
|
**/
|
|
191
|
-
PoolCreated: AugmentedEvent<ApiType, [creator: AccountId32, poolId: ITuple<[
|
|
191
|
+
PoolCreated: AugmentedEvent<ApiType, [creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32], {
|
|
192
192
|
creator: AccountId32;
|
|
193
|
-
poolId: ITuple<[
|
|
193
|
+
poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>;
|
|
194
194
|
poolAccount: AccountId32;
|
|
195
195
|
lpToken: u32;
|
|
196
196
|
}>;
|
|
197
|
+
/**
|
|
198
|
+
* Assets have been converted from one to another.
|
|
199
|
+
**/
|
|
200
|
+
SwapCreditExecuted: AugmentedEvent<ApiType, [amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>], {
|
|
201
|
+
amountIn: u128;
|
|
202
|
+
amountOut: u128;
|
|
203
|
+
path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>;
|
|
204
|
+
}>;
|
|
197
205
|
/**
|
|
198
206
|
* Assets have been converted from one to another. Both `SwapExactTokenForToken`
|
|
199
207
|
* and `SwapTokenForExactToken` will generate this event.
|
|
200
208
|
**/
|
|
201
|
-
SwapExecuted: AugmentedEvent<ApiType, [who: AccountId32, sendTo: AccountId32,
|
|
209
|
+
SwapExecuted: AugmentedEvent<ApiType, [who: AccountId32, sendTo: AccountId32, amountIn: u128, amountOut: u128, path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>], {
|
|
202
210
|
who: AccountId32;
|
|
203
211
|
sendTo: AccountId32;
|
|
204
|
-
path: Vec<PalletAssetConversionNativeOrAssetId>;
|
|
205
212
|
amountIn: u128;
|
|
206
213
|
amountOut: u128;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* An amount has been transferred from one account to another.
|
|
210
|
-
**/
|
|
211
|
-
Transfer: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, asset: PalletAssetConversionNativeOrAssetId, amount: u128], {
|
|
212
|
-
from: AccountId32;
|
|
213
|
-
to: AccountId32;
|
|
214
|
-
asset: PalletAssetConversionNativeOrAssetId;
|
|
215
|
-
amount: u128;
|
|
214
|
+
path: Vec<ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, u128]>>;
|
|
216
215
|
}>;
|
|
217
216
|
/**
|
|
218
217
|
* Generic event
|
|
@@ -578,6 +577,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
578
577
|
who: AccountId32;
|
|
579
578
|
amount: u128;
|
|
580
579
|
}>;
|
|
580
|
+
/**
|
|
581
|
+
* The `TotalIssuance` was forcefully changed.
|
|
582
|
+
**/
|
|
583
|
+
TotalIssuanceForced: AugmentedEvent<ApiType, [old: u128, new_: u128], {
|
|
584
|
+
old: u128;
|
|
585
|
+
new_: u128;
|
|
586
|
+
}>;
|
|
581
587
|
/**
|
|
582
588
|
* Transfer succeeded.
|
|
583
589
|
**/
|
|
@@ -1141,6 +1147,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1141
1147
|
who: AccountId32;
|
|
1142
1148
|
wish: PalletCoreFellowshipWish;
|
|
1143
1149
|
}>;
|
|
1150
|
+
/**
|
|
1151
|
+
* A member had its AccountId swapped.
|
|
1152
|
+
**/
|
|
1153
|
+
Swapped: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], {
|
|
1154
|
+
who: AccountId32;
|
|
1155
|
+
newWho: AccountId32;
|
|
1156
|
+
}>;
|
|
1144
1157
|
/**
|
|
1145
1158
|
* Generic event
|
|
1146
1159
|
**/
|
|
@@ -1520,6 +1533,26 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1520
1533
|
[key: string]: AugmentedEvent<ApiType>;
|
|
1521
1534
|
};
|
|
1522
1535
|
identity: {
|
|
1536
|
+
/**
|
|
1537
|
+
* A username authority was added.
|
|
1538
|
+
**/
|
|
1539
|
+
AuthorityAdded: AugmentedEvent<ApiType, [authority: AccountId32], {
|
|
1540
|
+
authority: AccountId32;
|
|
1541
|
+
}>;
|
|
1542
|
+
/**
|
|
1543
|
+
* A username authority was removed.
|
|
1544
|
+
**/
|
|
1545
|
+
AuthorityRemoved: AugmentedEvent<ApiType, [authority: AccountId32], {
|
|
1546
|
+
authority: AccountId32;
|
|
1547
|
+
}>;
|
|
1548
|
+
/**
|
|
1549
|
+
* A dangling username (as in, a username corresponding to an account that has removed its
|
|
1550
|
+
* identity) has been removed.
|
|
1551
|
+
**/
|
|
1552
|
+
DanglingUsernameRemoved: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], {
|
|
1553
|
+
who: AccountId32;
|
|
1554
|
+
username: Bytes;
|
|
1555
|
+
}>;
|
|
1523
1556
|
/**
|
|
1524
1557
|
* A name was cleared, and the given balance returned.
|
|
1525
1558
|
**/
|
|
@@ -1561,6 +1594,19 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1561
1594
|
who: AccountId32;
|
|
1562
1595
|
registrarIndex: u32;
|
|
1563
1596
|
}>;
|
|
1597
|
+
/**
|
|
1598
|
+
* A queued username passed its expiration without being claimed and was removed.
|
|
1599
|
+
**/
|
|
1600
|
+
PreapprovalExpired: AugmentedEvent<ApiType, [whose: AccountId32], {
|
|
1601
|
+
whose: AccountId32;
|
|
1602
|
+
}>;
|
|
1603
|
+
/**
|
|
1604
|
+
* A username was set as a primary and can be looked up from `who`.
|
|
1605
|
+
**/
|
|
1606
|
+
PrimaryUsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], {
|
|
1607
|
+
who: AccountId32;
|
|
1608
|
+
username: Bytes;
|
|
1609
|
+
}>;
|
|
1564
1610
|
/**
|
|
1565
1611
|
* A registrar was added.
|
|
1566
1612
|
**/
|
|
@@ -1592,6 +1638,21 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1592
1638
|
main: AccountId32;
|
|
1593
1639
|
deposit: u128;
|
|
1594
1640
|
}>;
|
|
1641
|
+
/**
|
|
1642
|
+
* A username was queued, but `who` must accept it prior to `expiration`.
|
|
1643
|
+
**/
|
|
1644
|
+
UsernameQueued: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes, expiration: u32], {
|
|
1645
|
+
who: AccountId32;
|
|
1646
|
+
username: Bytes;
|
|
1647
|
+
expiration: u32;
|
|
1648
|
+
}>;
|
|
1649
|
+
/**
|
|
1650
|
+
* A username was set for `who`.
|
|
1651
|
+
**/
|
|
1652
|
+
UsernameSet: AugmentedEvent<ApiType, [who: AccountId32, username: Bytes], {
|
|
1653
|
+
who: AccountId32;
|
|
1654
|
+
username: Bytes;
|
|
1655
|
+
}>;
|
|
1595
1656
|
/**
|
|
1596
1657
|
* Generic event
|
|
1597
1658
|
**/
|
|
@@ -2334,6 +2395,22 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2334
2395
|
**/
|
|
2335
2396
|
[key: string]: AugmentedEvent<ApiType>;
|
|
2336
2397
|
};
|
|
2398
|
+
parameters: {
|
|
2399
|
+
/**
|
|
2400
|
+
* A Parameter was set.
|
|
2401
|
+
*
|
|
2402
|
+
* Is also emitted when the value was not changed.
|
|
2403
|
+
**/
|
|
2404
|
+
Updated: AugmentedEvent<ApiType, [key: KitchensinkRuntimeRuntimeParametersKey, oldValue: Option<KitchensinkRuntimeRuntimeParametersValue>, newValue: Option<KitchensinkRuntimeRuntimeParametersValue>], {
|
|
2405
|
+
key: KitchensinkRuntimeRuntimeParametersKey;
|
|
2406
|
+
oldValue: Option<KitchensinkRuntimeRuntimeParametersValue>;
|
|
2407
|
+
newValue: Option<KitchensinkRuntimeRuntimeParametersValue>;
|
|
2408
|
+
}>;
|
|
2409
|
+
/**
|
|
2410
|
+
* Generic event
|
|
2411
|
+
**/
|
|
2412
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
2413
|
+
};
|
|
2337
2414
|
poolAssets: {
|
|
2338
2415
|
/**
|
|
2339
2416
|
* Accounts were destroyed for given asset.
|
|
@@ -2608,6 +2685,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2608
2685
|
MemberAdded: AugmentedEvent<ApiType, [who: AccountId32], {
|
|
2609
2686
|
who: AccountId32;
|
|
2610
2687
|
}>;
|
|
2688
|
+
/**
|
|
2689
|
+
* The member `who` had their `AccountId` changed to `new_who`.
|
|
2690
|
+
**/
|
|
2691
|
+
MemberExchanged: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], {
|
|
2692
|
+
who: AccountId32;
|
|
2693
|
+
newWho: AccountId32;
|
|
2694
|
+
}>;
|
|
2611
2695
|
/**
|
|
2612
2696
|
* The member `who` of given `rank` has been removed from the collective.
|
|
2613
2697
|
**/
|
|
@@ -3023,6 +3107,13 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
3023
3107
|
who: AccountId32;
|
|
3024
3108
|
amount: u128;
|
|
3025
3109
|
}>;
|
|
3110
|
+
/**
|
|
3111
|
+
* A member swapped their account.
|
|
3112
|
+
**/
|
|
3113
|
+
Swapped: AugmentedEvent<ApiType, [who: AccountId32, newWho: AccountId32], {
|
|
3114
|
+
who: AccountId32;
|
|
3115
|
+
newWho: AccountId32;
|
|
3116
|
+
}>;
|
|
3026
3117
|
/**
|
|
3027
3118
|
* Generic event
|
|
3028
3119
|
**/
|
|
@@ -3065,6 +3156,30 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
3065
3156
|
task: ITuple<[u32, u32]>;
|
|
3066
3157
|
id: Option<U8aFixed>;
|
|
3067
3158
|
}>;
|
|
3159
|
+
/**
|
|
3160
|
+
* Cancel a retry configuration for some task.
|
|
3161
|
+
**/
|
|
3162
|
+
RetryCancelled: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], {
|
|
3163
|
+
task: ITuple<[u32, u32]>;
|
|
3164
|
+
id: Option<U8aFixed>;
|
|
3165
|
+
}>;
|
|
3166
|
+
/**
|
|
3167
|
+
* The given task was unable to be retried since the agenda is full at that block or there
|
|
3168
|
+
* was not enough weight to reschedule it.
|
|
3169
|
+
**/
|
|
3170
|
+
RetryFailed: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>], {
|
|
3171
|
+
task: ITuple<[u32, u32]>;
|
|
3172
|
+
id: Option<U8aFixed>;
|
|
3173
|
+
}>;
|
|
3174
|
+
/**
|
|
3175
|
+
* Set a retry configuration for some task.
|
|
3176
|
+
**/
|
|
3177
|
+
RetrySet: AugmentedEvent<ApiType, [task: ITuple<[u32, u32]>, id: Option<U8aFixed>, period: u32, retries: u8], {
|
|
3178
|
+
task: ITuple<[u32, u32]>;
|
|
3179
|
+
id: Option<U8aFixed>;
|
|
3180
|
+
period: u32;
|
|
3181
|
+
retries: u8;
|
|
3182
|
+
}>;
|
|
3068
3183
|
/**
|
|
3069
3184
|
* Scheduled some task.
|
|
3070
3185
|
**/
|
|
@@ -3458,23 +3573,11 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
3458
3573
|
hash_: H256;
|
|
3459
3574
|
}>;
|
|
3460
3575
|
/**
|
|
3461
|
-
*
|
|
3462
|
-
**/
|
|
3463
|
-
TaskCompleted: AugmentedEvent<ApiType, [task: KitchensinkRuntimeRuntimeTask], {
|
|
3464
|
-
task: KitchensinkRuntimeRuntimeTask;
|
|
3465
|
-
}>;
|
|
3466
|
-
/**
|
|
3467
|
-
* A [`Task`] failed during execution.
|
|
3576
|
+
* An upgrade was authorized.
|
|
3468
3577
|
**/
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
}>;
|
|
3473
|
-
/**
|
|
3474
|
-
* A [`Task`] has started executing
|
|
3475
|
-
**/
|
|
3476
|
-
TaskStarted: AugmentedEvent<ApiType, [task: KitchensinkRuntimeRuntimeTask], {
|
|
3477
|
-
task: KitchensinkRuntimeRuntimeTask;
|
|
3578
|
+
UpgradeAuthorized: AugmentedEvent<ApiType, [codeHash: H256, checkVersion: bool], {
|
|
3579
|
+
codeHash: H256;
|
|
3580
|
+
checkVersion: bool;
|
|
3478
3581
|
}>;
|
|
3479
3582
|
/**
|
|
3480
3583
|
* Generic event
|
package/substrate/query.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, 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, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole,
|
|
7
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSystemAccountInfo, FrameSystemCodeUpgradeAuthorization, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeRuntimeParametersKey, KitchensinkRuntimeRuntimeParametersValue, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetConversionPoolInfo, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmountRuntimeFreezeReason, PalletBalancesIdAmountRuntimeHoldReason, PalletBalancesReserveData, PalletBountiesBounty, PalletBrokerAllowedRenewalId, PalletBrokerAllowedRenewalRecord, PalletBrokerConfigRecord, PalletBrokerContributionRecord, PalletBrokerInstaPoolHistoryRecord, PalletBrokerLeaseRecordItem, PalletBrokerPoolIoRecord, PalletBrokerRegionId, PalletBrokerRegionRecord, PalletBrokerSaleInfoRecord, PalletBrokerScheduleItem, PalletBrokerStatusRecord, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmCodeInfo, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityAuthorityProperties, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMixnetBoundedMixnode, PalletMultisigMultisig, PalletNftFractionalizationDetails, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageOldRequestStatus, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, PalletSchedulerRetryConfig, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyCandidacy, PalletSocietyGroupParams, PalletSocietyIntakeRecord, PalletSocietyMemberRecord, PalletSocietyPayoutRecord, PalletSocietyTally, PalletSocietyVote, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletTreasurySpendStatus, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpConsensusBeefyEcdsaCryptoPublic, SpConsensusBeefyMmrBeefyAuthoritySet, SpConsensusGrandpaAppPublic, SpCoreCryptoKeyTypeId, SpMixnetAppPublic, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingExposure, SpStakingExposurePage, SpStakingOffenceOffenceDetails, SpStakingPagedExposureMetadata } 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>;
|
|
@@ -87,15 +87,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
87
87
|
* Map from `PoolAssetId` to `PoolInfo`. This establishes whether a pool has been officially
|
|
88
88
|
* created rather than people sending tokens directly to a pool's public account.
|
|
89
89
|
**/
|
|
90
|
-
pools: AugmentedQuery<ApiType, (arg: ITuple<[
|
|
90
|
+
pools: AugmentedQuery<ApiType, (arg: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]> | [FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
91
91
|
Native: any;
|
|
92
92
|
} | {
|
|
93
|
-
|
|
94
|
-
} | string | Uint8Array,
|
|
93
|
+
WithId: any;
|
|
94
|
+
} | string | Uint8Array, FrameSupportTokensFungibleUnionOfNativeOrWithId | {
|
|
95
95
|
Native: any;
|
|
96
96
|
} | {
|
|
97
|
-
|
|
98
|
-
} | string | Uint8Array]) => Observable<Option<PalletAssetConversionPoolInfo>>, [ITuple<[
|
|
97
|
+
WithId: any;
|
|
98
|
+
} | string | Uint8Array]) => Observable<Option<PalletAssetConversionPoolInfo>>, [ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>]> & QueryableStorageEntry<ApiType, [ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>]>;
|
|
99
99
|
/**
|
|
100
100
|
* Generic query
|
|
101
101
|
**/
|
|
@@ -332,6 +332,43 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
332
332
|
**/
|
|
333
333
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
334
334
|
};
|
|
335
|
+
beefy: {
|
|
336
|
+
/**
|
|
337
|
+
* The current authorities set
|
|
338
|
+
**/
|
|
339
|
+
authorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
340
|
+
/**
|
|
341
|
+
* Block number where BEEFY consensus is enabled/started.
|
|
342
|
+
* By changing this (through privileged `set_new_genesis()`), BEEFY consensus is effectively
|
|
343
|
+
* restarted from the newly set block number.
|
|
344
|
+
**/
|
|
345
|
+
genesisBlock: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
346
|
+
/**
|
|
347
|
+
* Authorities set scheduled to be used with the next session
|
|
348
|
+
**/
|
|
349
|
+
nextAuthorities: AugmentedQuery<ApiType, () => Observable<Vec<SpConsensusBeefyEcdsaCryptoPublic>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
350
|
+
/**
|
|
351
|
+
* A mapping from BEEFY set ID to the index of the *most recent* session for which its
|
|
352
|
+
* members were responsible.
|
|
353
|
+
*
|
|
354
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
355
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
356
|
+
* together sessions and BEEFY set ids, i.e. we need to validate that a validator
|
|
357
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
358
|
+
* during that session.
|
|
359
|
+
*
|
|
360
|
+
* TWOX-NOTE: `ValidatorSetId` is not under user control.
|
|
361
|
+
**/
|
|
362
|
+
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
363
|
+
/**
|
|
364
|
+
* The current validator set id
|
|
365
|
+
**/
|
|
366
|
+
validatorSetId: AugmentedQuery<ApiType, () => Observable<u64>, []> & QueryableStorageEntry<ApiType, []>;
|
|
367
|
+
/**
|
|
368
|
+
* Generic query
|
|
369
|
+
**/
|
|
370
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
371
|
+
};
|
|
335
372
|
bounties: {
|
|
336
373
|
/**
|
|
337
374
|
* Bounties that have been made.
|
|
@@ -366,6 +403,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
366
403
|
* The current configuration of this pallet.
|
|
367
404
|
**/
|
|
368
405
|
configuration: AugmentedQuery<ApiType, () => Observable<Option<PalletBrokerConfigRecord>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
406
|
+
/**
|
|
407
|
+
* Received core count change from the relay chain.
|
|
408
|
+
**/
|
|
409
|
+
coreCountInbox: AugmentedQuery<ApiType, () => Observable<Option<u16>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
369
410
|
/**
|
|
370
411
|
* Record of a single contribution to the Instantaneous Coretime Pool.
|
|
371
412
|
**/
|
|
@@ -660,6 +701,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
660
701
|
* Desired number of targets to elect for this round.
|
|
661
702
|
*
|
|
662
703
|
* Only exists when [`Snapshot`] is present.
|
|
704
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
663
705
|
**/
|
|
664
706
|
desiredTargets: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
665
707
|
/**
|
|
@@ -719,12 +761,14 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
719
761
|
* Snapshot data of the round.
|
|
720
762
|
*
|
|
721
763
|
* This is created at the beginning of the signed phase and cleared upon calling `elect`.
|
|
764
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
722
765
|
**/
|
|
723
766
|
snapshot: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseRoundSnapshot>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
724
767
|
/**
|
|
725
768
|
* The metadata of the [`RoundSnapshot`]
|
|
726
769
|
*
|
|
727
770
|
* Only exists when [`Snapshot`] is present.
|
|
771
|
+
* Note: This storage type must only be mutated through [`SnapshotWrapper`].
|
|
728
772
|
**/
|
|
729
773
|
snapshotMetadata: AugmentedQuery<ApiType, () => Observable<Option<PalletElectionProviderMultiPhaseSolutionOrSnapshotSize>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
730
774
|
/**
|
|
@@ -882,13 +926,45 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
882
926
|
**/
|
|
883
927
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
884
928
|
};
|
|
929
|
+
historical: {
|
|
930
|
+
/**
|
|
931
|
+
* Mapping from historical session indices to session-data root hash and validator count.
|
|
932
|
+
**/
|
|
933
|
+
historicalSessions: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<ITuple<[H256, u32]>>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
934
|
+
/**
|
|
935
|
+
* The range of historical sessions we store. [first, last)
|
|
936
|
+
**/
|
|
937
|
+
storedRange: AugmentedQuery<ApiType, () => Observable<Option<ITuple<[u32, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
938
|
+
/**
|
|
939
|
+
* Generic query
|
|
940
|
+
**/
|
|
941
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
942
|
+
};
|
|
885
943
|
identity: {
|
|
886
944
|
/**
|
|
887
|
-
*
|
|
945
|
+
* Reverse lookup from `username` to the `AccountId` that has registered it. The value should
|
|
946
|
+
* be a key in the `IdentityOf` map, but it may not if the user has cleared their identity.
|
|
947
|
+
*
|
|
948
|
+
* Multiple usernames may map to the same `AccountId`, but `IdentityOf` will only map to one
|
|
949
|
+
* primary username.
|
|
950
|
+
**/
|
|
951
|
+
accountOfUsername: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<AccountId32>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
|
952
|
+
/**
|
|
953
|
+
* Information that is pertinent to identify the entity behind an account. First item is the
|
|
954
|
+
* registration, second is the account's primary username.
|
|
888
955
|
*
|
|
889
956
|
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
890
957
|
**/
|
|
891
|
-
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityRegistration
|
|
958
|
+
identityOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletIdentityRegistration, Option<Bytes>]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
959
|
+
/**
|
|
960
|
+
* Usernames that an authority has granted, but that the account controller has not confirmed
|
|
961
|
+
* that they want it. Used primarily in cases where the `AccountId` cannot provide a signature
|
|
962
|
+
* because they are a pure proxy, multisig, etc. In order to confirm it, they should call
|
|
963
|
+
* [`Call::accept_username`].
|
|
964
|
+
*
|
|
965
|
+
* First tuple item is the account and second is the acceptance deadline.
|
|
966
|
+
**/
|
|
967
|
+
pendingUsernames: AugmentedQuery<ApiType, (arg: Bytes | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, u32]>>>, [Bytes]> & QueryableStorageEntry<ApiType, [Bytes]>;
|
|
892
968
|
/**
|
|
893
969
|
* The set of registrars. Not expected to get very big as can only be added through a
|
|
894
970
|
* special origin (likely a council motion).
|
|
@@ -909,6 +985,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
909
985
|
* context. If the account is not some other account's sub-identity, then just `None`.
|
|
910
986
|
**/
|
|
911
987
|
superOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[AccountId32, Data]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
988
|
+
/**
|
|
989
|
+
* A map of the accounts who are authorized to grant usernames.
|
|
990
|
+
**/
|
|
991
|
+
usernameAuthorities: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletIdentityAuthorityProperties>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
912
992
|
/**
|
|
913
993
|
* Generic query
|
|
914
994
|
**/
|
|
@@ -1055,6 +1135,22 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1055
1135
|
**/
|
|
1056
1136
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1057
1137
|
};
|
|
1138
|
+
mmrLeaf: {
|
|
1139
|
+
/**
|
|
1140
|
+
* Details of current BEEFY authority set.
|
|
1141
|
+
**/
|
|
1142
|
+
beefyAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1143
|
+
/**
|
|
1144
|
+
* Details of next BEEFY authority set.
|
|
1145
|
+
*
|
|
1146
|
+
* This storage entry is used as cache for calls to `update_beefy_next_authority_set`.
|
|
1147
|
+
**/
|
|
1148
|
+
beefyNextAuthorities: AugmentedQuery<ApiType, () => Observable<SpConsensusBeefyMmrBeefyAuthoritySet>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1149
|
+
/**
|
|
1150
|
+
* Generic query
|
|
1151
|
+
**/
|
|
1152
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1153
|
+
};
|
|
1058
1154
|
multisig: {
|
|
1059
1155
|
/**
|
|
1060
1156
|
* The set of open multisig operations.
|
|
@@ -1264,13 +1360,13 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1264
1360
|
/**
|
|
1265
1361
|
* A reverse lookup from the pool's account id to its id.
|
|
1266
1362
|
*
|
|
1267
|
-
* This is only used for slashing. In all other instances, the
|
|
1268
|
-
* accounts are deterministically derived from it.
|
|
1363
|
+
* This is only used for slashing and on automatic withdraw update. In all other instances, the
|
|
1364
|
+
* pool id is used, and the accounts are deterministically derived from it.
|
|
1269
1365
|
**/
|
|
1270
1366
|
reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1271
1367
|
/**
|
|
1272
1368
|
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
|
1273
|
-
* claimed, the balance comes out
|
|
1369
|
+
* claimed, the balance comes out of the reward pool. Keyed by the bonded pools account.
|
|
1274
1370
|
**/
|
|
1275
1371
|
rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1276
1372
|
/**
|
|
@@ -1305,6 +1401,20 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1305
1401
|
**/
|
|
1306
1402
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1307
1403
|
};
|
|
1404
|
+
parameters: {
|
|
1405
|
+
/**
|
|
1406
|
+
* Stored parameters.
|
|
1407
|
+
**/
|
|
1408
|
+
parameters: AugmentedQuery<ApiType, (arg: KitchensinkRuntimeRuntimeParametersKey | {
|
|
1409
|
+
Storage: any;
|
|
1410
|
+
} | {
|
|
1411
|
+
Contract: any;
|
|
1412
|
+
} | string | Uint8Array) => Observable<Option<KitchensinkRuntimeRuntimeParametersValue>>, [KitchensinkRuntimeRuntimeParametersKey]> & QueryableStorageEntry<ApiType, [KitchensinkRuntimeRuntimeParametersKey]>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Generic query
|
|
1415
|
+
**/
|
|
1416
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1417
|
+
};
|
|
1308
1418
|
poolAssets: {
|
|
1309
1419
|
/**
|
|
1310
1420
|
* The holdings of a specific account for a specific asset.
|
|
@@ -1572,6 +1682,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1572
1682
|
* identities.
|
|
1573
1683
|
**/
|
|
1574
1684
|
lookup: AugmentedQuery<ApiType, (arg: U8aFixed | string | Uint8Array) => Observable<Option<ITuple<[u32, u32]>>>, [U8aFixed]> & QueryableStorageEntry<ApiType, [U8aFixed]>;
|
|
1685
|
+
/**
|
|
1686
|
+
* Retry configurations for items to be executed, indexed by task address.
|
|
1687
|
+
**/
|
|
1688
|
+
retries: AugmentedQuery<ApiType, (arg: ITuple<[u32, u32]> | [u32 | AnyNumber | Uint8Array, u32 | AnyNumber | Uint8Array]) => Observable<Option<PalletSchedulerRetryConfig>>, [ITuple<[u32, u32]>]> & QueryableStorageEntry<ApiType, [ITuple<[u32, u32]>]>;
|
|
1575
1689
|
/**
|
|
1576
1690
|
* Generic query
|
|
1577
1691
|
**/
|
|
@@ -1874,6 +1988,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1874
1988
|
* When this value is not set, no limits are enforced.
|
|
1875
1989
|
**/
|
|
1876
1990
|
maxNominatorsCount: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1991
|
+
/**
|
|
1992
|
+
* Maximum staked rewards, i.e. the percentage of the era inflation that
|
|
1993
|
+
* is used for stake rewards.
|
|
1994
|
+
* See [Era payout](./index.html#era-payout).
|
|
1995
|
+
**/
|
|
1996
|
+
maxStakedRewards: AugmentedQuery<ApiType, () => Observable<Option<Percent>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1877
1997
|
/**
|
|
1878
1998
|
* The maximum validator count before we stop allowing new validators to join.
|
|
1879
1999
|
*
|
|
@@ -1945,7 +2065,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1945
2065
|
*
|
|
1946
2066
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1947
2067
|
**/
|
|
1948
|
-
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletStakingRewardDestination
|
|
2068
|
+
payee: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletStakingRewardDestination>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1949
2069
|
/**
|
|
1950
2070
|
* Slashing spans for stash accounts.
|
|
1951
2071
|
**/
|
|
@@ -2029,6 +2149,10 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
2029
2149
|
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
2030
2150
|
**/
|
|
2031
2151
|
allExtrinsicsLen: AugmentedQuery<ApiType, () => Observable<Option<u32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2152
|
+
/**
|
|
2153
|
+
* `Some` if a code upgrade has been authorized.
|
|
2154
|
+
**/
|
|
2155
|
+
authorizedUpgrade: AugmentedQuery<ApiType, () => Observable<Option<FrameSystemCodeUpgradeAuthorization>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
2032
2156
|
/**
|
|
2033
2157
|
* Map of block numbers to block hashes.
|
|
2034
2158
|
**/
|
package/substrate/runtime.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { Bytes, Null, Option, Result, Vec, bool, u128, u32 } from '@polkado
|
|
|
4
4
|
import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { TAssetBalance } from '@polkadot/types/interfaces/assets';
|
|
6
6
|
import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
|
|
7
|
+
import type { BeefyEquivocationProof, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
|
|
7
8
|
import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfaces/blockbuilder';
|
|
8
9
|
import type { BlockHash } from '@polkadot/types/interfaces/chain';
|
|
9
10
|
import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
|
|
@@ -113,6 +114,32 @@ declare module '@polkadot/api-base/types/calls' {
|
|
|
113
114
|
**/
|
|
114
115
|
[key: string]: DecoratedCallBase<ApiType>;
|
|
115
116
|
};
|
|
117
|
+
/** 0x49eaaf1b548a0cb0/3 */
|
|
118
|
+
beefyApi: {
|
|
119
|
+
/**
|
|
120
|
+
* Return the block number where BEEFY consensus is enabled/started
|
|
121
|
+
**/
|
|
122
|
+
beefyGenesis: AugmentedCall<ApiType, () => Observable<Option<BlockNumber>>>;
|
|
123
|
+
/**
|
|
124
|
+
* Generates a proof of key ownership for the given authority in the given set.
|
|
125
|
+
**/
|
|
126
|
+
generateKeyOwnershipProof: AugmentedCall<ApiType, (setId: ValidatorSetId | AnyNumber | Uint8Array, authorityId: AuthorityId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
|
|
127
|
+
/**
|
|
128
|
+
* Submits an unsigned extrinsic to report an equivocation.
|
|
129
|
+
**/
|
|
130
|
+
submitReportEquivocationUnsignedExtrinsic: AugmentedCall<ApiType, (equivocationProof: BeefyEquivocationProof | {
|
|
131
|
+
first?: any;
|
|
132
|
+
second?: any;
|
|
133
|
+
} | string | Uint8Array, keyOwnerProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
|
|
134
|
+
/**
|
|
135
|
+
* Return the current active BEEFY validator set
|
|
136
|
+
**/
|
|
137
|
+
validatorSet: AugmentedCall<ApiType, () => Observable<Option<ValidatorSet>>>;
|
|
138
|
+
/**
|
|
139
|
+
* Generic call
|
|
140
|
+
**/
|
|
141
|
+
[key: string]: DecoratedCallBase<ApiType>;
|
|
142
|
+
};
|
|
116
143
|
/** 0x40fe3ad401f8959a/6 */
|
|
117
144
|
blockBuilder: {
|
|
118
145
|
/**
|