@dedot/chaintypes 0.203.0 → 0.204.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.
@@ -3087,6 +3087,11 @@ export interface ChainErrors extends GenericChainErrors {
3087
3087
  **/
3088
3088
  InvalidStageTransition: GenericPalletError;
3089
3089
 
3090
+ /**
3091
+ * Unsigned validation failed.
3092
+ **/
3093
+ UnsignedValidationFailed: GenericPalletError;
3094
+
3090
3095
  /**
3091
3096
  * Generic pallet error
3092
3097
  **/
@@ -68,6 +68,7 @@ import type {
68
68
  PalletRcMigratorMigrationStage,
69
69
  XcmV3MaybeErrorCode,
70
70
  PalletRcMigratorQueuePriority,
71
+ PalletRcMigratorMigrationSettings,
71
72
  } from './types.js';
72
73
 
73
74
  export interface ChainEvents extends GenericChainEvents {
@@ -3732,6 +3733,25 @@ export interface ChainEvents extends GenericChainEvents {
3732
3733
  **/
3733
3734
  ManagerMultisigVoted: GenericPalletEvent<'RcMigrator', 'ManagerMultisigVoted', { votes: number }>;
3734
3735
 
3736
+ /**
3737
+ * The migration settings were set.
3738
+ **/
3739
+ MigrationSettingsSet: GenericPalletEvent<
3740
+ 'RcMigrator',
3741
+ 'MigrationSettingsSet',
3742
+ {
3743
+ /**
3744
+ * The old migration settings.
3745
+ **/
3746
+ old?: PalletRcMigratorMigrationSettings | undefined;
3747
+
3748
+ /**
3749
+ * The new migration settings.
3750
+ **/
3751
+ new?: PalletRcMigratorMigrationSettings | undefined;
3752
+ }
3753
+ >;
3754
+
3735
3755
  /**
3736
3756
  * Generic pallet event
3737
3757
  **/
package/kusama/index.d.ts CHANGED
@@ -48,7 +48,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
48
48
 
49
49
  /**
50
50
  * @name: KusamaApi
51
- * @specVersion: 1009002
51
+ * @specVersion: 2000004
52
52
  **/
53
53
  export interface KusamaApi extends GenericSubstrateApi {
54
54
  rpc: ChainJsonRpcApis;
package/kusama/query.d.ts CHANGED
@@ -35,6 +35,7 @@ import type {
35
35
  FrameSupportTokensMiscIdAmount,
36
36
  FrameSupportTokensMiscIdAmountRuntimeFreezeReason,
37
37
  PalletTransactionPaymentReleases,
38
+ FrameSupportStorageNoDrop,
38
39
  PalletStakingStakingLedger,
39
40
  PalletStakingRewardDestination,
40
41
  PalletStakingValidatorPrefs,
@@ -163,7 +164,7 @@ import type {
163
164
  PalletRcMigratorAccountsMigratedBalances,
164
165
  PalletRcMigratorQueuePriority,
165
166
  FrameSupportScheduleDispatchTime,
166
- SpRuntimeMultiSigner,
167
+ PalletRcMigratorMigrationSettings,
167
168
  StagingKusamaRuntimeRuntimeCall,
168
169
  StagingKusamaRuntimeRuntimeCallLike,
169
170
  } from './types.js';
@@ -658,6 +659,15 @@ export interface ChainStorage extends GenericChainStorage {
658
659
  **/
659
660
  storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
660
661
 
662
+ /**
663
+ * The `OnChargeTransaction` stores the withdrawn tx fee here.
664
+ *
665
+ * Use `withdraw_txfee` and `remaining_txfee` to access from outside the crate.
666
+ *
667
+ * @param {Callback<FrameSupportStorageNoDrop | undefined> =} callback
668
+ **/
669
+ txPaymentCredit: GenericStorageQuery<() => FrameSupportStorageNoDrop | undefined>;
670
+
661
671
  /**
662
672
  * Generic pallet storage query
663
673
  **/
@@ -4284,10 +4294,10 @@ export interface ChainStorage extends GenericChainStorage {
4284
4294
  *
4285
4295
  * Unconfirmed messages can be resent by calling the [`Pallet::resend_xcm`] function.
4286
4296
  *
4287
- * @param {H256} arg
4297
+ * @param {[bigint, H256]} arg
4288
4298
  * @param {Callback<StagingXcmV5Xcm | undefined> =} callback
4289
4299
  **/
4290
- pendingXcmMessages: GenericStorageQuery<(arg: H256) => StagingXcmV5Xcm | undefined, H256>;
4300
+ pendingXcmMessages: GenericStorageQuery<(arg: [bigint, H256]) => StagingXcmV5Xcm | undefined, [bigint, H256]>;
4291
4301
 
4292
4302
  /**
4293
4303
  * Counter for the related counted storage map
@@ -4400,21 +4410,42 @@ export interface ChainStorage extends GenericChainStorage {
4400
4410
  coolOffPeriod: GenericStorageQuery<() => FrameSupportScheduleDispatchTime | undefined>;
4401
4411
 
4402
4412
  /**
4413
+ * The migration settings.
4414
+ *
4415
+ * @param {Callback<PalletRcMigratorMigrationSettings | undefined> =} callback
4416
+ **/
4417
+ settings: GenericStorageQuery<() => PalletRcMigratorMigrationSettings | undefined>;
4418
+
4419
+ /**
4420
+ * The multisig AccountIDs that votes to execute a specific call.
4403
4421
  *
4404
4422
  * @param {StagingKusamaRuntimeRuntimeCallLike} arg
4405
- * @param {Callback<Array<SpRuntimeMultiSigner>> =} callback
4423
+ * @param {Callback<Array<AccountId32>> =} callback
4406
4424
  **/
4407
4425
  managerMultisigs: GenericStorageQuery<
4408
- (arg: StagingKusamaRuntimeRuntimeCallLike) => Array<SpRuntimeMultiSigner>,
4426
+ (arg: StagingKusamaRuntimeRuntimeCallLike) => Array<AccountId32>,
4409
4427
  StagingKusamaRuntimeRuntimeCall
4410
4428
  >;
4411
4429
 
4412
4430
  /**
4431
+ * The current round of the multisig voting.
4432
+ *
4433
+ * Votes are only valid for the current round.
4413
4434
  *
4414
4435
  * @param {Callback<number> =} callback
4415
4436
  **/
4416
4437
  managerMultisigRound: GenericStorageQuery<() => number>;
4417
4438
 
4439
+ /**
4440
+ * How often each participant voted in the current round.
4441
+ *
4442
+ * Will be cleared at the end of each round.
4443
+ *
4444
+ * @param {AccountId32Like} arg
4445
+ * @param {Callback<number> =} callback
4446
+ **/
4447
+ managerVotesInCurrentRound: GenericStorageQuery<(arg: AccountId32Like) => number, AccountId32>;
4448
+
4418
4449
  /**
4419
4450
  * Generic pallet storage query
4420
4451
  **/
@@ -16,7 +16,6 @@ import type {
16
16
  AccountId32,
17
17
  } from 'dedot/codecs';
18
18
  import type {
19
- RelayCommonApisInflationInfo,
20
19
  SpRuntimeBlock,
21
20
  SpRuntimeExtrinsicInclusionMode,
22
21
  SpCoreOpaqueMetadata,
@@ -74,6 +73,8 @@ import type {
74
73
  SpConsensusSlotsEquivocationProof,
75
74
  SpAuthorityDiscoveryAppPublic,
76
75
  SpCoreCryptoKeyTypeId,
76
+ FrameSupportViewFunctionsViewFunctionDispatchError,
77
+ FrameSupportViewFunctionsViewFunctionId,
77
78
  PalletTransactionPaymentRuntimeDispatchInfo,
78
79
  PalletTransactionPaymentFeeDetails,
79
80
  SpWeightsWeightV2Weight,
@@ -91,25 +92,6 @@ import type {
91
92
  } from './types.js';
92
93
 
93
94
  export interface RuntimeApis extends GenericRuntimeApis {
94
- /**
95
- * @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
96
- **/
97
- inflation: {
98
- /**
99
- * Return the current estimates of the inflation amount.
100
- *
101
- * This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly
102
- * recommended over trying to read-storage, or re-create the onchain logic.
103
- *
104
- * @callname: Inflation_experimental_inflation_prediction_info
105
- **/
106
- experimentalInflationPredictionInfo: GenericRuntimeApiMethod<() => Promise<RelayCommonApisInflationInfo>>;
107
-
108
- /**
109
- * Generic runtime api call
110
- **/
111
- [method: string]: GenericRuntimeApiMethod;
112
- };
113
95
  /**
114
96
  * @runtimeapi: Core - 0xdf6acb689907609b
115
97
  **/
@@ -1087,6 +1069,29 @@ export interface RuntimeApis extends GenericRuntimeApis {
1087
1069
  **/
1088
1070
  [method: string]: GenericRuntimeApiMethod;
1089
1071
  };
1072
+ /**
1073
+ * @runtimeapi: RuntimeViewFunction - 0xccd9de6396c899ca
1074
+ **/
1075
+ runtimeViewFunction: {
1076
+ /**
1077
+ * Execute a view function query.
1078
+ *
1079
+ * @callname: RuntimeViewFunction_execute_view_function
1080
+ * @param {FrameSupportViewFunctionsViewFunctionId} query_id
1081
+ * @param {BytesLike} input
1082
+ **/
1083
+ executeViewFunction: GenericRuntimeApiMethod<
1084
+ (
1085
+ queryId: FrameSupportViewFunctionsViewFunctionId,
1086
+ input: BytesLike,
1087
+ ) => Promise<Result<Bytes, FrameSupportViewFunctionsViewFunctionDispatchError>>
1088
+ >;
1089
+
1090
+ /**
1091
+ * Generic runtime api call
1092
+ **/
1093
+ [method: string]: GenericRuntimeApiMethod;
1094
+ };
1090
1095
  /**
1091
1096
  * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
1092
1097
  **/
package/kusama/tx.d.ts CHANGED
@@ -96,6 +96,7 @@ import type {
96
96
  StagingXcmV5Response,
97
97
  PalletRcMigratorQueuePriority,
98
98
  PalletRcMigratorManagerMultisigVote,
99
+ PalletRcMigratorMigrationSettings,
99
100
  } from './types.js';
100
101
 
101
102
  export type ChainSubmittableExtrinsic<
@@ -11693,6 +11694,24 @@ export interface ChainTx<
11693
11694
  >
11694
11695
  >;
11695
11696
 
11697
+ /**
11698
+ * Set the migration settings. Can only be done by admin or manager.
11699
+ *
11700
+ * @param {PalletRcMigratorMigrationSettings | undefined} settings
11701
+ **/
11702
+ setSettings: GenericTxCall<
11703
+ (settings: PalletRcMigratorMigrationSettings | undefined) => ChainSubmittableExtrinsic<
11704
+ {
11705
+ pallet: 'RcMigrator';
11706
+ palletCall: {
11707
+ name: 'SetSettings';
11708
+ params: { settings: PalletRcMigratorMigrationSettings | undefined };
11709
+ };
11710
+ },
11711
+ ChainKnownTypes
11712
+ >
11713
+ >;
11714
+
11696
11715
  /**
11697
11716
  * Generic pallet tx call
11698
11717
  **/
package/kusama/types.d.ts CHANGED
@@ -12029,7 +12029,11 @@ export type PalletRcMigratorCall =
12029
12029
  | {
12030
12030
  name: 'VoteManagerMultisig';
12031
12031
  params: { payload: PalletRcMigratorManagerMultisigVote; sig: SpRuntimeMultiSignature };
12032
- };
12032
+ }
12033
+ /**
12034
+ * Set the migration settings. Can only be done by admin or manager.
12035
+ **/
12036
+ | { name: 'SetSettings'; params: { settings?: PalletRcMigratorMigrationSettings | undefined } };
12033
12037
 
12034
12038
  export type PalletRcMigratorCallLike =
12035
12039
  /**
@@ -12147,7 +12151,11 @@ export type PalletRcMigratorCallLike =
12147
12151
  | {
12148
12152
  name: 'VoteManagerMultisig';
12149
12153
  params: { payload: PalletRcMigratorManagerMultisigVote; sig: SpRuntimeMultiSignature };
12150
- };
12154
+ }
12155
+ /**
12156
+ * Set the migration settings. Can only be done by admin or manager.
12157
+ **/
12158
+ | { name: 'SetSettings'; params: { settings?: PalletRcMigratorMigrationSettings | undefined } };
12151
12159
 
12152
12160
  export type PalletRcMigratorMigrationStage =
12153
12161
  | { type: 'Pending' }
@@ -12376,6 +12384,11 @@ export type PalletRcMigratorManagerMultisigVote = {
12376
12384
  round: number;
12377
12385
  };
12378
12386
 
12387
+ export type PalletRcMigratorMigrationSettings = {
12388
+ maxAccountsPerBlock?: number | undefined;
12389
+ maxItemsPerBlock?: number | undefined;
12390
+ };
12391
+
12379
12392
  export type SpRuntimeBlakeTwo256 = {};
12380
12393
 
12381
12394
  export type PalletConvictionVotingTally = { ayes: bigint; nays: bigint; support: bigint };
@@ -14553,7 +14566,24 @@ export type PalletRcMigratorEvent =
14553
14566
  /**
14554
14567
  * The manager multisig received a vote.
14555
14568
  **/
14556
- | { name: 'ManagerMultisigVoted'; data: { votes: number } };
14569
+ | { name: 'ManagerMultisigVoted'; data: { votes: number } }
14570
+ /**
14571
+ * The migration settings were set.
14572
+ **/
14573
+ | {
14574
+ name: 'MigrationSettingsSet';
14575
+ data: {
14576
+ /**
14577
+ * The old migration settings.
14578
+ **/
14579
+ old?: PalletRcMigratorMigrationSettings | undefined;
14580
+
14581
+ /**
14582
+ * The new migration settings.
14583
+ **/
14584
+ new?: PalletRcMigratorMigrationSettings | undefined;
14585
+ };
14586
+ };
14557
14587
 
14558
14588
  export type FrameSystemLastRuntimeUpgradeInfo = { specVersion: number; specName: string };
14559
14589
 
@@ -14812,6 +14842,10 @@ export type PalletBalancesError =
14812
14842
 
14813
14843
  export type PalletTransactionPaymentReleases = 'V1Ancient' | 'V2';
14814
14844
 
14845
+ export type FrameSupportStorageNoDrop = FrameSupportTokensFungibleImbalance;
14846
+
14847
+ export type FrameSupportTokensFungibleImbalance = { amount: bigint };
14848
+
14815
14849
  export type PalletStakingStakingLedger = {
14816
14850
  stash: AccountId32;
14817
14851
  total: bigint;
@@ -17767,9 +17801,11 @@ export type PalletRcMigratorError =
17767
17801
  /**
17768
17802
  * The stage transition is invalid.
17769
17803
  **/
17770
- | 'InvalidStageTransition';
17771
-
17772
- export type RelayCommonApisInflationInfo = { inflation: Perquintill; nextMint: [bigint, bigint] };
17804
+ | 'InvalidStageTransition'
17805
+ /**
17806
+ * Unsigned validation failed.
17807
+ **/
17808
+ | 'UnsignedValidationFailed';
17773
17809
 
17774
17810
  export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';
17775
17811
 
@@ -18000,6 +18036,13 @@ export type SpConsensusBabeEpoch = {
18000
18036
 
18001
18037
  export type SpConsensusBabeOpaqueKeyOwnershipProof = Bytes;
18002
18038
 
18039
+ export type FrameSupportViewFunctionsViewFunctionId = { prefix: FixedBytes<16>; suffix: FixedBytes<16> };
18040
+
18041
+ export type FrameSupportViewFunctionsViewFunctionDispatchError =
18042
+ | { type: 'NotImplemented' }
18043
+ | { type: 'NotFound'; value: FrameSupportViewFunctionsViewFunctionId }
18044
+ | { type: 'Codec' };
18045
+
18003
18046
  export type PalletTransactionPaymentRuntimeDispatchInfo = {
18004
18047
  weight: SpWeightsWeightV2Weight;
18005
18048
  class: FrameSupportDispatchDispatchClass;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.203.0",
3
+ "version": "0.204.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -25,7 +25,7 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "ee93dd874c0e826374e2192b80a8e0028fedb90f",
28
+ "gitHead": "21b69ddd56a1a066ad55aadf895e6a35dc23560a",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {