@dedot/chaintypes 0.260.0 → 0.261.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.
@@ -507,6 +507,24 @@ export interface ChainConsts extends GenericChainConsts {
507
507
  **/
508
508
  [name: string]: any;
509
509
  };
510
+ /**
511
+ * Pallet `MetaTx`'s constants
512
+ **/
513
+ metaTx: {
514
+ /**
515
+ * Generic pallet constant
516
+ **/
517
+ [name: string]: any;
518
+ };
519
+ /**
520
+ * Pallet `VerifySignature`'s constants
521
+ **/
522
+ verifySignature: {
523
+ /**
524
+ * Generic pallet constant
525
+ **/
526
+ [name: string]: any;
527
+ };
510
528
  /**
511
529
  * Pallet `Identity`'s constants
512
530
  **/
@@ -690,6 +690,50 @@ export interface ChainErrors extends GenericChainErrors {
690
690
  **/
691
691
  [error: string]: GenericPalletError;
692
692
  };
693
+ /**
694
+ * Pallet `MetaTx`'s errors
695
+ **/
696
+ metaTx: {
697
+ /**
698
+ * Invalid proof (e.g. signature).
699
+ **/
700
+ BadProof: GenericPalletError;
701
+
702
+ /**
703
+ * The meta transaction is not yet valid (e.g. nonce too high).
704
+ **/
705
+ Future: GenericPalletError;
706
+
707
+ /**
708
+ * The meta transaction is outdated (e.g. nonce too low).
709
+ **/
710
+ Stale: GenericPalletError;
711
+
712
+ /**
713
+ * The meta transactions's birth block is ancient.
714
+ **/
715
+ AncientBirthBlock: GenericPalletError;
716
+
717
+ /**
718
+ * The transaction extension did not authorize any origin.
719
+ **/
720
+ UnknownOrigin: GenericPalletError;
721
+
722
+ /**
723
+ * The meta transaction is invalid.
724
+ **/
725
+ Invalid: GenericPalletError;
726
+
727
+ /**
728
+ * The meta transaction length is invalid.
729
+ **/
730
+ InvalidLength: GenericPalletError;
731
+
732
+ /**
733
+ * Generic pallet error
734
+ **/
735
+ [error: string]: GenericPalletError;
736
+ };
693
737
  /**
694
738
  * Pallet `Identity`'s errors
695
739
  **/
@@ -22,6 +22,8 @@ import type {
22
22
  PalletMultisigTimepoint,
23
23
  PeopleWestendRuntimeProxyType,
24
24
  PalletProxyDepositKind,
25
+ FrameSupportDispatchPostDispatchInfo,
26
+ SpRuntimeDispatchErrorWithPostInfo,
25
27
  } from './types.js';
26
28
 
27
29
  export interface ChainEvents extends GenericChainEvents {
@@ -1105,6 +1107,27 @@ export interface ChainEvents extends GenericChainEvents {
1105
1107
  **/
1106
1108
  [prop: string]: GenericPalletEvent;
1107
1109
  };
1110
+ /**
1111
+ * Pallet `MetaTx`'s events
1112
+ **/
1113
+ metaTx: {
1114
+ /**
1115
+ * A meta transaction has been dispatched.
1116
+ *
1117
+ * Contains the dispatch result of the meta transaction along with post-dispatch
1118
+ * information.
1119
+ **/
1120
+ Dispatched: GenericPalletEvent<
1121
+ 'MetaTx',
1122
+ 'Dispatched',
1123
+ { result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> }
1124
+ >;
1125
+
1126
+ /**
1127
+ * Generic pallet event
1128
+ **/
1129
+ [prop: string]: GenericPalletEvent;
1130
+ };
1108
1131
  /**
1109
1132
  * Pallet `Identity`'s events
1110
1133
  **/
@@ -51,7 +51,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
51
51
 
52
52
  /**
53
53
  * @name: WestendPeopleApi
54
- * @specVersion: 1022002
54
+ * @specVersion: 1022003
55
55
  **/
56
56
  export interface WestendPeopleApi extends GenericSubstrateApi {
57
57
  rpc: ChainJsonRpcApis;
@@ -29,6 +29,7 @@ import type {
29
29
  PeopleWestendRuntimeOriginCaller,
30
30
  PalletMultisigTimepoint,
31
31
  PeopleWestendRuntimeProxyType,
32
+ PalletMetaTxMetaTx,
32
33
  PeopleWestendRuntimePeopleIdentityInfo,
33
34
  PalletIdentityJudgement,
34
35
  PalletMigrationsMigrationCursor,
@@ -2692,6 +2693,41 @@ export interface ChainTx<
2692
2693
  **/
2693
2694
  [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
2694
2695
  };
2696
+ /**
2697
+ * Pallet `MetaTx`'s transaction calls
2698
+ **/
2699
+ metaTx: {
2700
+ /**
2701
+ * Dispatch a given meta transaction.
2702
+ *
2703
+ * - `_origin`: Can be any kind of origin.
2704
+ * - `meta_tx`: Meta Transaction with a target call to be dispatched.
2705
+ * - `meta_tx_encoded_len`: The size of the encoded meta transaction in bytes.
2706
+ *
2707
+ * @param {PalletMetaTxMetaTx} metaTx
2708
+ * @param {number} metaTxEncodedLen
2709
+ **/
2710
+ dispatch: GenericTxCall<
2711
+ (
2712
+ metaTx: PalletMetaTxMetaTx,
2713
+ metaTxEncodedLen: number,
2714
+ ) => ChainSubmittableExtrinsic<
2715
+ {
2716
+ pallet: 'MetaTx';
2717
+ palletCall: {
2718
+ name: 'Dispatch';
2719
+ params: { metaTx: PalletMetaTxMetaTx; metaTxEncodedLen: number };
2720
+ };
2721
+ },
2722
+ ChainKnownTypes
2723
+ >
2724
+ >;
2725
+
2726
+ /**
2727
+ * Generic pallet tx call
2728
+ **/
2729
+ [callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
2730
+ };
2695
2731
  /**
2696
2732
  * Pallet `Identity`'s transaction calls
2697
2733
  **/
@@ -11,8 +11,8 @@ import type {
11
11
  AccountId32Like,
12
12
  FixedBytes,
13
13
  FixedArray,
14
- Data,
15
14
  Era,
15
+ Data,
16
16
  Phase,
17
17
  DispatchError,
18
18
  Result,
@@ -35,6 +35,7 @@ export type PeopleWestendRuntimeRuntimeCall =
35
35
  | { pallet: 'Utility'; palletCall: PalletUtilityCall }
36
36
  | { pallet: 'Multisig'; palletCall: PalletMultisigCall }
37
37
  | { pallet: 'Proxy'; palletCall: PalletProxyCall }
38
+ | { pallet: 'MetaTx'; palletCall: PalletMetaTxCall }
38
39
  | { pallet: 'Identity'; palletCall: PalletIdentityCall }
39
40
  | { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCall }
40
41
  | { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCall };
@@ -54,6 +55,7 @@ export type PeopleWestendRuntimeRuntimeCallLike =
54
55
  | { pallet: 'Utility'; palletCall: PalletUtilityCallLike }
55
56
  | { pallet: 'Multisig'; palletCall: PalletMultisigCallLike }
56
57
  | { pallet: 'Proxy'; palletCall: PalletProxyCallLike }
58
+ | { pallet: 'MetaTx'; palletCall: PalletMetaTxCallLike }
57
59
  | { pallet: 'Identity'; palletCall: PalletIdentityCallLike }
58
60
  | { pallet: 'MultiBlockMigrations'; palletCall: PalletMigrationsCallLike }
59
61
  | { pallet: 'IdentityMigrator'; palletCall: PolkadotRuntimeCommonIdentityMigratorPalletCallLike };
@@ -3345,6 +3347,73 @@ export type PeopleWestendRuntimeProxyType =
3345
3347
  | 'IdentityJudgement'
3346
3348
  | 'Collator';
3347
3349
 
3350
+ /**
3351
+ * Contains a variant per dispatchable extrinsic that this pallet has.
3352
+ **/
3353
+ export type PalletMetaTxCall =
3354
+ /**
3355
+ * Dispatch a given meta transaction.
3356
+ *
3357
+ * - `_origin`: Can be any kind of origin.
3358
+ * - `meta_tx`: Meta Transaction with a target call to be dispatched.
3359
+ * - `meta_tx_encoded_len`: The size of the encoded meta transaction in bytes.
3360
+ **/
3361
+ { name: 'Dispatch'; params: { metaTx: PalletMetaTxMetaTx; metaTxEncodedLen: number } };
3362
+
3363
+ export type PalletMetaTxCallLike =
3364
+ /**
3365
+ * Dispatch a given meta transaction.
3366
+ *
3367
+ * - `_origin`: Can be any kind of origin.
3368
+ * - `meta_tx`: Meta Transaction with a target call to be dispatched.
3369
+ * - `meta_tx_encoded_len`: The size of the encoded meta transaction in bytes.
3370
+ **/
3371
+ { name: 'Dispatch'; params: { metaTx: PalletMetaTxMetaTx; metaTxEncodedLen: number } };
3372
+
3373
+ export type PalletMetaTxMetaTx = {
3374
+ call: PeopleWestendRuntimeRuntimeCall;
3375
+ extensionVersion: number;
3376
+ extension: [
3377
+ PalletVerifySignatureExtensionVerifySignature,
3378
+ PalletMetaTxExtensionMetaTxMarker,
3379
+ FrameSystemExtensionsCheckNonZeroSender,
3380
+ FrameSystemExtensionsCheckSpecVersion,
3381
+ FrameSystemExtensionsCheckTxVersion,
3382
+ FrameSystemExtensionsCheckGenesis,
3383
+ FrameSystemExtensionsCheckMortality,
3384
+ FrameSystemExtensionsCheckNonce,
3385
+ FrameMetadataHashExtensionCheckMetadataHash,
3386
+ ];
3387
+ };
3388
+
3389
+ export type PalletVerifySignatureExtensionVerifySignature =
3390
+ | { type: 'Signed'; value: { signature: SpRuntimeMultiSignature; account: AccountId32 } }
3391
+ | { type: 'Disabled' };
3392
+
3393
+ export type SpRuntimeMultiSignature =
3394
+ | { type: 'Ed25519'; value: FixedBytes<64> }
3395
+ | { type: 'Sr25519'; value: FixedBytes<64> }
3396
+ | { type: 'Ecdsa'; value: FixedBytes<65> }
3397
+ | { type: 'Eth'; value: FixedBytes<65> };
3398
+
3399
+ export type PalletMetaTxExtensionMetaTxMarker = {};
3400
+
3401
+ export type FrameSystemExtensionsCheckNonZeroSender = {};
3402
+
3403
+ export type FrameSystemExtensionsCheckSpecVersion = {};
3404
+
3405
+ export type FrameSystemExtensionsCheckTxVersion = {};
3406
+
3407
+ export type FrameSystemExtensionsCheckGenesis = {};
3408
+
3409
+ export type FrameSystemExtensionsCheckMortality = Era;
3410
+
3411
+ export type FrameSystemExtensionsCheckNonce = number;
3412
+
3413
+ export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
3414
+
3415
+ export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
3416
+
3348
3417
  /**
3349
3418
  * Identity pallet declaration.
3350
3419
  **/
@@ -3876,12 +3945,6 @@ export type PalletIdentityJudgement =
3876
3945
  | { type: 'LowQuality' }
3877
3946
  | { type: 'Erroneous' };
3878
3947
 
3879
- export type SpRuntimeMultiSignature =
3880
- | { type: 'Ed25519'; value: FixedBytes<64> }
3881
- | { type: 'Sr25519'; value: FixedBytes<64> }
3882
- | { type: 'Ecdsa'; value: FixedBytes<65> }
3883
- | { type: 'Eth'; value: FixedBytes<65> };
3884
-
3885
3948
  /**
3886
3949
  * Contains a variant per dispatchable extrinsic that this pallet has.
3887
3950
  **/
@@ -3998,26 +4061,10 @@ export type PolkadotRuntimeCommonIdentityMigratorPalletCallLike =
3998
4061
 
3999
4062
  export type FrameSystemExtensionsAuthorizeCall = {};
4000
4063
 
4001
- export type FrameSystemExtensionsCheckNonZeroSender = {};
4002
-
4003
- export type FrameSystemExtensionsCheckSpecVersion = {};
4004
-
4005
- export type FrameSystemExtensionsCheckTxVersion = {};
4006
-
4007
- export type FrameSystemExtensionsCheckGenesis = {};
4008
-
4009
- export type FrameSystemExtensionsCheckMortality = Era;
4010
-
4011
- export type FrameSystemExtensionsCheckNonce = number;
4012
-
4013
4064
  export type FrameSystemExtensionsCheckWeight = {};
4014
4065
 
4015
4066
  export type PalletTransactionPaymentChargeTransactionPayment = bigint;
4016
4067
 
4017
- export type FrameMetadataHashExtensionCheckMetadataHash = { mode: FrameMetadataHashExtensionMode };
4018
-
4019
- export type FrameMetadataHashExtensionMode = 'Disabled' | 'Enabled';
4020
-
4021
4068
  export type FrameSystemAccountInfo = {
4022
4069
  nonce: number;
4023
4070
  consumers: number;
@@ -4057,6 +4104,7 @@ export type PeopleWestendRuntimeRuntimeEvent =
4057
4104
  | { pallet: 'Utility'; palletEvent: PalletUtilityEvent }
4058
4105
  | { pallet: 'Multisig'; palletEvent: PalletMultisigEvent }
4059
4106
  | { pallet: 'Proxy'; palletEvent: PalletProxyEvent }
4107
+ | { pallet: 'MetaTx'; palletEvent: PalletMetaTxEvent }
4060
4108
  | { pallet: 'Identity'; palletEvent: PalletIdentityEvent }
4061
4109
  | { pallet: 'MultiBlockMigrations'; palletEvent: PalletMigrationsEvent }
4062
4110
  | { pallet: 'IdentityMigrator'; palletEvent: PolkadotRuntimeCommonIdentityMigratorPalletEvent };
@@ -4916,6 +4964,31 @@ export type PalletProxyEvent =
4916
4964
 
4917
4965
  export type PalletProxyDepositKind = 'Proxies' | 'Announcements';
4918
4966
 
4967
+ /**
4968
+ * The `Event` enum of this pallet
4969
+ **/
4970
+ export type PalletMetaTxEvent =
4971
+ /**
4972
+ * A meta transaction has been dispatched.
4973
+ *
4974
+ * Contains the dispatch result of the meta transaction along with post-dispatch
4975
+ * information.
4976
+ **/
4977
+ {
4978
+ name: 'Dispatched';
4979
+ data: { result: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo> };
4980
+ };
4981
+
4982
+ export type FrameSupportDispatchPostDispatchInfo = {
4983
+ actualWeight?: SpWeightsWeightV2Weight | undefined;
4984
+ paysFee: FrameSupportDispatchPays;
4985
+ };
4986
+
4987
+ export type SpRuntimeDispatchErrorWithPostInfo = {
4988
+ postInfo: FrameSupportDispatchPostDispatchInfo;
4989
+ error: DispatchError;
4990
+ };
4991
+
4919
4992
  /**
4920
4993
  * The `Event` enum of this pallet
4921
4994
  **/
@@ -5973,6 +6046,39 @@ export type PalletProxyError =
5973
6046
  **/
5974
6047
  | 'NoSelfProxy';
5975
6048
 
6049
+ /**
6050
+ * The `Error` enum of this pallet.
6051
+ **/
6052
+ export type PalletMetaTxError =
6053
+ /**
6054
+ * Invalid proof (e.g. signature).
6055
+ **/
6056
+ | 'BadProof'
6057
+ /**
6058
+ * The meta transaction is not yet valid (e.g. nonce too high).
6059
+ **/
6060
+ | 'Future'
6061
+ /**
6062
+ * The meta transaction is outdated (e.g. nonce too low).
6063
+ **/
6064
+ | 'Stale'
6065
+ /**
6066
+ * The meta transactions's birth block is ancient.
6067
+ **/
6068
+ | 'AncientBirthBlock'
6069
+ /**
6070
+ * The transaction extension did not authorize any origin.
6071
+ **/
6072
+ | 'UnknownOrigin'
6073
+ /**
6074
+ * The meta transaction is invalid.
6075
+ **/
6076
+ | 'Invalid'
6077
+ /**
6078
+ * The meta transaction length is invalid.
6079
+ **/
6080
+ | 'InvalidLength';
6081
+
5976
6082
  export type PalletIdentityRegistration = {
5977
6083
  judgements: Array<[number, PalletIdentityJudgement]>;
5978
6084
  deposit: bigint;
@@ -6218,16 +6324,6 @@ export type XcmRuntimeApisDryRunCallDryRunEffects = {
6218
6324
  forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
6219
6325
  };
6220
6326
 
6221
- export type FrameSupportDispatchPostDispatchInfo = {
6222
- actualWeight?: SpWeightsWeightV2Weight | undefined;
6223
- paysFee: FrameSupportDispatchPays;
6224
- };
6225
-
6226
- export type SpRuntimeDispatchErrorWithPostInfo = {
6227
- postInfo: FrameSupportDispatchPostDispatchInfo;
6228
- error: DispatchError;
6229
- };
6230
-
6231
6327
  export type XcmRuntimeApisDryRunError = 'Unimplemented' | 'VersionedConversionFailed';
6232
6328
 
6233
6329
  export type XcmRuntimeApisDryRunXcmDryRunEffects = {
@@ -6270,5 +6366,6 @@ export type PeopleWestendRuntimeRuntimeError =
6270
6366
  | { pallet: 'Utility'; palletError: PalletUtilityError }
6271
6367
  | { pallet: 'Multisig'; palletError: PalletMultisigError }
6272
6368
  | { pallet: 'Proxy'; palletError: PalletProxyError }
6369
+ | { pallet: 'MetaTx'; palletError: PalletMetaTxError }
6273
6370
  | { pallet: 'Identity'; palletError: PalletIdentityError }
6274
6371
  | { pallet: 'MultiBlockMigrations'; palletError: PalletMigrationsError };