@dedot/chaintypes 0.3.0 → 0.5.0
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/package.json +3 -3
- package/westend/errors.d.ts +17 -2
- package/westend/runtime.d.ts +4 -4
- package/westend/tx.d.ts +122 -4
- package/westend/types.d.ts +127 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@coongcrafts.io>",
|
|
6
6
|
"main": "",
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"copy": "cp -R ./src/* ./dist"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"dedot": "^0.
|
|
15
|
+
"dedot": "^0.3.0"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public",
|
|
19
19
|
"directory": "dist"
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "cd07463f5a68ed9026185960bd23598e487e0d71",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
package/westend/errors.d.ts
CHANGED
|
@@ -2714,9 +2714,24 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
2714
2714
|
InvalidKeyOwnershipProof: GenericPalletError<Rv>;
|
|
2715
2715
|
|
|
2716
2716
|
/**
|
|
2717
|
-
*
|
|
2717
|
+
* A double voting proof provided as part of an equivocation report is invalid.
|
|
2718
2718
|
**/
|
|
2719
|
-
|
|
2719
|
+
InvalidDoubleVotingProof: GenericPalletError<Rv>;
|
|
2720
|
+
|
|
2721
|
+
/**
|
|
2722
|
+
* A fork voting proof provided as part of an equivocation report is invalid.
|
|
2723
|
+
**/
|
|
2724
|
+
InvalidForkVotingProof: GenericPalletError<Rv>;
|
|
2725
|
+
|
|
2726
|
+
/**
|
|
2727
|
+
* A future block voting proof provided as part of an equivocation report is invalid.
|
|
2728
|
+
**/
|
|
2729
|
+
InvalidFutureBlockVotingProof: GenericPalletError<Rv>;
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* The session of the equivocation proof is invalid
|
|
2733
|
+
**/
|
|
2734
|
+
InvalidEquivocationProofSession: GenericPalletError<Rv>;
|
|
2720
2735
|
|
|
2721
2736
|
/**
|
|
2722
2737
|
* A given equivocation report is valid but already previously reported.
|
package/westend/runtime.d.ts
CHANGED
|
@@ -654,8 +654,8 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
654
654
|
validatorSet: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusBeefyValidatorSet | undefined>>;
|
|
655
655
|
|
|
656
656
|
/**
|
|
657
|
-
* Submits an unsigned extrinsic to report
|
|
658
|
-
* must provide the
|
|
657
|
+
* Submits an unsigned extrinsic to report a double voting equivocation. The caller
|
|
658
|
+
* must provide the double voting proof and a key ownership proof
|
|
659
659
|
* (should be obtained using `generate_key_ownership_proof`). The
|
|
660
660
|
* extrinsic will be unsigned and should only be accepted for local
|
|
661
661
|
* authorship (not to be broadcast to the network). This method returns
|
|
@@ -663,11 +663,11 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
|
|
|
663
663
|
* reporting is disabled for the given runtime (i.e. this method is
|
|
664
664
|
* hardcoded to return `None`). Only useful in an offchain context.
|
|
665
665
|
*
|
|
666
|
-
* @callname:
|
|
666
|
+
* @callname: BeefyApi_submit_report_double_voting_unsigned_extrinsic
|
|
667
667
|
* @param {SpConsensusBeefyDoubleVotingProof} equivocation_proof
|
|
668
668
|
* @param {SpRuntimeOpaqueValue} key_owner_proof
|
|
669
669
|
**/
|
|
670
|
-
|
|
670
|
+
submitReportDoubleVotingUnsignedExtrinsic: GenericRuntimeApiMethod<
|
|
671
671
|
Rv,
|
|
672
672
|
(
|
|
673
673
|
equivocationProof: SpConsensusBeefyDoubleVotingProof,
|
package/westend/tx.d.ts
CHANGED
|
@@ -91,6 +91,8 @@ import type {
|
|
|
91
91
|
XcmVersionedAssetId,
|
|
92
92
|
PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
|
|
93
93
|
SpConsensusBeefyDoubleVotingProof,
|
|
94
|
+
SpConsensusBeefyForkVotingProof,
|
|
95
|
+
SpConsensusBeefyFutureBlockVotingProof,
|
|
94
96
|
} from './types';
|
|
95
97
|
|
|
96
98
|
export type ChainSubmittableExtrinsic<
|
|
@@ -10121,7 +10123,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10121
10123
|
* @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
|
|
10122
10124
|
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
10123
10125
|
**/
|
|
10124
|
-
|
|
10126
|
+
reportDoubleVoting: GenericTxCall<
|
|
10125
10127
|
Rv,
|
|
10126
10128
|
(
|
|
10127
10129
|
equivocationProof: SpConsensusBeefyDoubleVotingProof,
|
|
@@ -10131,7 +10133,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10131
10133
|
{
|
|
10132
10134
|
pallet: 'Beefy';
|
|
10133
10135
|
palletCall: {
|
|
10134
|
-
name: '
|
|
10136
|
+
name: 'ReportDoubleVoting';
|
|
10135
10137
|
params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10136
10138
|
};
|
|
10137
10139
|
}
|
|
@@ -10152,7 +10154,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10152
10154
|
* @param {SpConsensusBeefyDoubleVotingProof} equivocationProof
|
|
10153
10155
|
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
10154
10156
|
**/
|
|
10155
|
-
|
|
10157
|
+
reportDoubleVotingUnsigned: GenericTxCall<
|
|
10156
10158
|
Rv,
|
|
10157
10159
|
(
|
|
10158
10160
|
equivocationProof: SpConsensusBeefyDoubleVotingProof,
|
|
@@ -10162,7 +10164,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10162
10164
|
{
|
|
10163
10165
|
pallet: 'Beefy';
|
|
10164
10166
|
palletCall: {
|
|
10165
|
-
name: '
|
|
10167
|
+
name: 'ReportDoubleVotingUnsigned';
|
|
10166
10168
|
params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10167
10169
|
};
|
|
10168
10170
|
}
|
|
@@ -10191,6 +10193,122 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
10191
10193
|
>
|
|
10192
10194
|
>;
|
|
10193
10195
|
|
|
10196
|
+
/**
|
|
10197
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
10198
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10199
|
+
* If both are valid, the offence will be reported.
|
|
10200
|
+
*
|
|
10201
|
+
* @param {SpConsensusBeefyForkVotingProof} equivocationProof
|
|
10202
|
+
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
10203
|
+
**/
|
|
10204
|
+
reportForkVoting: GenericTxCall<
|
|
10205
|
+
Rv,
|
|
10206
|
+
(
|
|
10207
|
+
equivocationProof: SpConsensusBeefyForkVotingProof,
|
|
10208
|
+
keyOwnerProof: SpSessionMembershipProof,
|
|
10209
|
+
) => ChainSubmittableExtrinsic<
|
|
10210
|
+
Rv,
|
|
10211
|
+
{
|
|
10212
|
+
pallet: 'Beefy';
|
|
10213
|
+
palletCall: {
|
|
10214
|
+
name: 'ReportForkVoting';
|
|
10215
|
+
params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10216
|
+
};
|
|
10217
|
+
}
|
|
10218
|
+
>
|
|
10219
|
+
>;
|
|
10220
|
+
|
|
10221
|
+
/**
|
|
10222
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
10223
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10224
|
+
* If both are valid, the offence will be reported.
|
|
10225
|
+
*
|
|
10226
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
10227
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
10228
|
+
* if the block author is defined it will be defined as the equivocation
|
|
10229
|
+
* reporter.
|
|
10230
|
+
*
|
|
10231
|
+
* @param {SpConsensusBeefyForkVotingProof} equivocationProof
|
|
10232
|
+
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
10233
|
+
**/
|
|
10234
|
+
reportForkVotingUnsigned: GenericTxCall<
|
|
10235
|
+
Rv,
|
|
10236
|
+
(
|
|
10237
|
+
equivocationProof: SpConsensusBeefyForkVotingProof,
|
|
10238
|
+
keyOwnerProof: SpSessionMembershipProof,
|
|
10239
|
+
) => ChainSubmittableExtrinsic<
|
|
10240
|
+
Rv,
|
|
10241
|
+
{
|
|
10242
|
+
pallet: 'Beefy';
|
|
10243
|
+
palletCall: {
|
|
10244
|
+
name: 'ReportForkVotingUnsigned';
|
|
10245
|
+
params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10246
|
+
};
|
|
10247
|
+
}
|
|
10248
|
+
>
|
|
10249
|
+
>;
|
|
10250
|
+
|
|
10251
|
+
/**
|
|
10252
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
10253
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10254
|
+
* If both are valid, the offence will be reported.
|
|
10255
|
+
*
|
|
10256
|
+
* @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
|
|
10257
|
+
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
10258
|
+
**/
|
|
10259
|
+
reportFutureBlockVoting: GenericTxCall<
|
|
10260
|
+
Rv,
|
|
10261
|
+
(
|
|
10262
|
+
equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
|
|
10263
|
+
keyOwnerProof: SpSessionMembershipProof,
|
|
10264
|
+
) => ChainSubmittableExtrinsic<
|
|
10265
|
+
Rv,
|
|
10266
|
+
{
|
|
10267
|
+
pallet: 'Beefy';
|
|
10268
|
+
palletCall: {
|
|
10269
|
+
name: 'ReportFutureBlockVoting';
|
|
10270
|
+
params: {
|
|
10271
|
+
equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
|
|
10272
|
+
keyOwnerProof: SpSessionMembershipProof;
|
|
10273
|
+
};
|
|
10274
|
+
};
|
|
10275
|
+
}
|
|
10276
|
+
>
|
|
10277
|
+
>;
|
|
10278
|
+
|
|
10279
|
+
/**
|
|
10280
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
10281
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10282
|
+
* If both are valid, the offence will be reported.
|
|
10283
|
+
*
|
|
10284
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
10285
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
10286
|
+
* if the block author is defined it will be defined as the equivocation
|
|
10287
|
+
* reporter.
|
|
10288
|
+
*
|
|
10289
|
+
* @param {SpConsensusBeefyFutureBlockVotingProof} equivocationProof
|
|
10290
|
+
* @param {SpSessionMembershipProof} keyOwnerProof
|
|
10291
|
+
**/
|
|
10292
|
+
reportFutureBlockVotingUnsigned: GenericTxCall<
|
|
10293
|
+
Rv,
|
|
10294
|
+
(
|
|
10295
|
+
equivocationProof: SpConsensusBeefyFutureBlockVotingProof,
|
|
10296
|
+
keyOwnerProof: SpSessionMembershipProof,
|
|
10297
|
+
) => ChainSubmittableExtrinsic<
|
|
10298
|
+
Rv,
|
|
10299
|
+
{
|
|
10300
|
+
pallet: 'Beefy';
|
|
10301
|
+
palletCall: {
|
|
10302
|
+
name: 'ReportFutureBlockVotingUnsigned';
|
|
10303
|
+
params: {
|
|
10304
|
+
equivocationProof: SpConsensusBeefyFutureBlockVotingProof;
|
|
10305
|
+
keyOwnerProof: SpSessionMembershipProof;
|
|
10306
|
+
};
|
|
10307
|
+
};
|
|
10308
|
+
}
|
|
10309
|
+
>
|
|
10310
|
+
>;
|
|
10311
|
+
|
|
10194
10312
|
/**
|
|
10195
10313
|
* Generic pallet tx call
|
|
10196
10314
|
**/
|
package/westend/types.d.ts
CHANGED
|
@@ -10722,7 +10722,7 @@ export type PalletBeefyCall =
|
|
|
10722
10722
|
* will be reported.
|
|
10723
10723
|
**/
|
|
10724
10724
|
| {
|
|
10725
|
-
name: '
|
|
10725
|
+
name: 'ReportDoubleVoting';
|
|
10726
10726
|
params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10727
10727
|
}
|
|
10728
10728
|
/**
|
|
@@ -10737,7 +10737,7 @@ export type PalletBeefyCall =
|
|
|
10737
10737
|
* reporter.
|
|
10738
10738
|
**/
|
|
10739
10739
|
| {
|
|
10740
|
-
name: '
|
|
10740
|
+
name: 'ReportDoubleVotingUnsigned';
|
|
10741
10741
|
params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10742
10742
|
}
|
|
10743
10743
|
/**
|
|
@@ -10746,7 +10746,53 @@ export type PalletBeefyCall =
|
|
|
10746
10746
|
*
|
|
10747
10747
|
* Note: `delay_in_blocks` has to be at least 1.
|
|
10748
10748
|
**/
|
|
10749
|
-
| { name: 'SetNewGenesis'; params: { delayInBlocks: number } }
|
|
10749
|
+
| { name: 'SetNewGenesis'; params: { delayInBlocks: number } }
|
|
10750
|
+
/**
|
|
10751
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
10752
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10753
|
+
* If both are valid, the offence will be reported.
|
|
10754
|
+
**/
|
|
10755
|
+
| {
|
|
10756
|
+
name: 'ReportForkVoting';
|
|
10757
|
+
params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10758
|
+
}
|
|
10759
|
+
/**
|
|
10760
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
10761
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10762
|
+
* If both are valid, the offence will be reported.
|
|
10763
|
+
*
|
|
10764
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
10765
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
10766
|
+
* if the block author is defined it will be defined as the equivocation
|
|
10767
|
+
* reporter.
|
|
10768
|
+
**/
|
|
10769
|
+
| {
|
|
10770
|
+
name: 'ReportForkVotingUnsigned';
|
|
10771
|
+
params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10772
|
+
}
|
|
10773
|
+
/**
|
|
10774
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
10775
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10776
|
+
* If both are valid, the offence will be reported.
|
|
10777
|
+
**/
|
|
10778
|
+
| {
|
|
10779
|
+
name: 'ReportFutureBlockVoting';
|
|
10780
|
+
params: { equivocationProof: SpConsensusBeefyFutureBlockVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10781
|
+
}
|
|
10782
|
+
/**
|
|
10783
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
10784
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10785
|
+
* If both are valid, the offence will be reported.
|
|
10786
|
+
*
|
|
10787
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
10788
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
10789
|
+
* if the block author is defined it will be defined as the equivocation
|
|
10790
|
+
* reporter.
|
|
10791
|
+
**/
|
|
10792
|
+
| {
|
|
10793
|
+
name: 'ReportFutureBlockVotingUnsigned';
|
|
10794
|
+
params: { equivocationProof: SpConsensusBeefyFutureBlockVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10795
|
+
};
|
|
10750
10796
|
|
|
10751
10797
|
export type PalletBeefyCallLike =
|
|
10752
10798
|
/**
|
|
@@ -10756,7 +10802,7 @@ export type PalletBeefyCallLike =
|
|
|
10756
10802
|
* will be reported.
|
|
10757
10803
|
**/
|
|
10758
10804
|
| {
|
|
10759
|
-
name: '
|
|
10805
|
+
name: 'ReportDoubleVoting';
|
|
10760
10806
|
params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10761
10807
|
}
|
|
10762
10808
|
/**
|
|
@@ -10771,7 +10817,7 @@ export type PalletBeefyCallLike =
|
|
|
10771
10817
|
* reporter.
|
|
10772
10818
|
**/
|
|
10773
10819
|
| {
|
|
10774
|
-
name: '
|
|
10820
|
+
name: 'ReportDoubleVotingUnsigned';
|
|
10775
10821
|
params: { equivocationProof: SpConsensusBeefyDoubleVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10776
10822
|
}
|
|
10777
10823
|
/**
|
|
@@ -10780,7 +10826,53 @@ export type PalletBeefyCallLike =
|
|
|
10780
10826
|
*
|
|
10781
10827
|
* Note: `delay_in_blocks` has to be at least 1.
|
|
10782
10828
|
**/
|
|
10783
|
-
| { name: 'SetNewGenesis'; params: { delayInBlocks: number } }
|
|
10829
|
+
| { name: 'SetNewGenesis'; params: { delayInBlocks: number } }
|
|
10830
|
+
/**
|
|
10831
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
10832
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10833
|
+
* If both are valid, the offence will be reported.
|
|
10834
|
+
**/
|
|
10835
|
+
| {
|
|
10836
|
+
name: 'ReportForkVoting';
|
|
10837
|
+
params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10838
|
+
}
|
|
10839
|
+
/**
|
|
10840
|
+
* Report fork voting equivocation. This method will verify the equivocation proof
|
|
10841
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10842
|
+
* If both are valid, the offence will be reported.
|
|
10843
|
+
*
|
|
10844
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
10845
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
10846
|
+
* if the block author is defined it will be defined as the equivocation
|
|
10847
|
+
* reporter.
|
|
10848
|
+
**/
|
|
10849
|
+
| {
|
|
10850
|
+
name: 'ReportForkVotingUnsigned';
|
|
10851
|
+
params: { equivocationProof: SpConsensusBeefyForkVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10852
|
+
}
|
|
10853
|
+
/**
|
|
10854
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
10855
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10856
|
+
* If both are valid, the offence will be reported.
|
|
10857
|
+
**/
|
|
10858
|
+
| {
|
|
10859
|
+
name: 'ReportFutureBlockVoting';
|
|
10860
|
+
params: { equivocationProof: SpConsensusBeefyFutureBlockVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10861
|
+
}
|
|
10862
|
+
/**
|
|
10863
|
+
* Report future block voting equivocation. This method will verify the equivocation proof
|
|
10864
|
+
* and validate the given key ownership proof against the extracted offender.
|
|
10865
|
+
* If both are valid, the offence will be reported.
|
|
10866
|
+
*
|
|
10867
|
+
* This extrinsic must be called unsigned and it is expected that only
|
|
10868
|
+
* block authors will call it (validated in `ValidateUnsigned`), as such
|
|
10869
|
+
* if the block author is defined it will be defined as the equivocation
|
|
10870
|
+
* reporter.
|
|
10871
|
+
**/
|
|
10872
|
+
| {
|
|
10873
|
+
name: 'ReportFutureBlockVotingUnsigned';
|
|
10874
|
+
params: { equivocationProof: SpConsensusBeefyFutureBlockVotingProof; keyOwnerProof: SpSessionMembershipProof };
|
|
10875
|
+
};
|
|
10784
10876
|
|
|
10785
10877
|
export type SpConsensusBeefyDoubleVotingProof = {
|
|
10786
10878
|
first: SpConsensusBeefyVoteMessage;
|
|
@@ -10803,6 +10895,21 @@ export type SpConsensusBeefyCommitment = {
|
|
|
10803
10895
|
|
|
10804
10896
|
export type SpConsensusBeefyPayload = Array<[FixedBytes<2>, Bytes]>;
|
|
10805
10897
|
|
|
10898
|
+
export type SpConsensusBeefyForkVotingProof = {
|
|
10899
|
+
vote: SpConsensusBeefyVoteMessage;
|
|
10900
|
+
ancestryProof: SpMmrPrimitivesAncestryProof;
|
|
10901
|
+
header: Header;
|
|
10902
|
+
};
|
|
10903
|
+
|
|
10904
|
+
export type SpMmrPrimitivesAncestryProof = {
|
|
10905
|
+
prevPeaks: Array<H256>;
|
|
10906
|
+
prevLeafCount: bigint;
|
|
10907
|
+
leafCount: bigint;
|
|
10908
|
+
items: Array<[bigint, H256]>;
|
|
10909
|
+
};
|
|
10910
|
+
|
|
10911
|
+
export type SpConsensusBeefyFutureBlockVotingProof = { vote: SpConsensusBeefyVoteMessage };
|
|
10912
|
+
|
|
10806
10913
|
/**
|
|
10807
10914
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
10808
10915
|
**/
|
|
@@ -14460,9 +14567,21 @@ export type PalletBeefyError =
|
|
|
14460
14567
|
**/
|
|
14461
14568
|
| 'InvalidKeyOwnershipProof'
|
|
14462
14569
|
/**
|
|
14463
|
-
*
|
|
14570
|
+
* A double voting proof provided as part of an equivocation report is invalid.
|
|
14464
14571
|
**/
|
|
14465
|
-
| '
|
|
14572
|
+
| 'InvalidDoubleVotingProof'
|
|
14573
|
+
/**
|
|
14574
|
+
* A fork voting proof provided as part of an equivocation report is invalid.
|
|
14575
|
+
**/
|
|
14576
|
+
| 'InvalidForkVotingProof'
|
|
14577
|
+
/**
|
|
14578
|
+
* A future block voting proof provided as part of an equivocation report is invalid.
|
|
14579
|
+
**/
|
|
14580
|
+
| 'InvalidFutureBlockVotingProof'
|
|
14581
|
+
/**
|
|
14582
|
+
* The session of the equivocation proof is invalid
|
|
14583
|
+
**/
|
|
14584
|
+
| 'InvalidEquivocationProofSession'
|
|
14466
14585
|
/**
|
|
14467
14586
|
* A given equivocation report is valid but already previously reported.
|
|
14468
14587
|
**/
|