@dedot/chaintypes 0.0.1-alpha.135 → 0.0.1-alpha.136

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.
@@ -41,6 +41,10 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
41
41
  | 'childstate_getStorageEntries'
42
42
  | 'childstate_getStorageHash'
43
43
  | 'childstate_getStorageSize'
44
+ | 'debug_traceBlockByHash'
45
+ | 'debug_traceBlockByNumber'
46
+ | 'debug_traceCall'
47
+ | 'debug_traceTransaction'
44
48
  | 'eth_accounts'
45
49
  | 'eth_blockNumber'
46
50
  | 'eth_call'
@@ -130,7 +134,11 @@ export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
130
134
  | 'system_syncState'
131
135
  | 'system_unstable_networkState'
132
136
  | 'system_version'
137
+ | 'trace_filter'
133
138
  | 'transactionWatch_unstable_submitAndWatch'
139
+ | 'txpool_content'
140
+ | 'txpool_inspect'
141
+ | 'txpool_status'
134
142
  | 'web3_clientVersion'
135
143
  | 'web3_sha3'
136
144
  > &
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.0.1-alpha.135",
3
+ "version": "0.0.1-alpha.136",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "d51eb03df4455d98b82e5d51daf3ea52826bcdd9",
22
+ "gitHead": "6da41cb5e89af85d79c4f4a710f5bf80e9d583f0",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }
@@ -9,6 +9,7 @@ import type {
9
9
  FrameSupportPalletId,
10
10
  PalletReferendaTrackInfo,
11
11
  SpWeightsWeightV2Weight,
12
+ StagingXcmV4Junctions,
12
13
  } from './types';
13
14
 
14
15
  export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<Rv> {
@@ -285,22 +286,6 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
285
286
  * Pallet `Treasury`'s constants
286
287
  **/
287
288
  treasury: {
288
- /**
289
- * Fraction of a proposal's value that should be bonded in order to place the proposal.
290
- * An accepted proposal gets these back. A rejected proposal does not.
291
- **/
292
- proposalBond: Permill;
293
-
294
- /**
295
- * Minimum amount of funds that should be placed in a deposit for making a proposal.
296
- **/
297
- proposalBondMinimum: bigint;
298
-
299
- /**
300
- * Maximum amount of funds that should be placed in a deposit for making a proposal.
301
- **/
302
- proposalBondMaximum: bigint | undefined;
303
-
304
289
  /**
305
290
  * Period between successive spends.
306
291
  **/
@@ -1145,6 +1130,17 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1145
1130
  **/
1146
1131
  trafficDefaultValue: FixedU128;
1147
1132
 
1133
+ /**
1134
+ * The maximum number of blocks some historical revenue
1135
+ * information stored for.
1136
+ **/
1137
+ maxHistoricalRevenue: number;
1138
+
1139
+ /**
1140
+ * Identifier for the internal revenue balance.
1141
+ **/
1142
+ palletId: FrameSupportPalletId;
1143
+
1148
1144
  /**
1149
1145
  * Generic pallet constant
1150
1146
  **/
@@ -1256,6 +1252,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
1256
1252
  **/
1257
1253
  brokerId: number;
1258
1254
 
1255
+ /**
1256
+ * The coretime chain pot location.
1257
+ **/
1258
+ brokerPotLocation: StagingXcmV4Junctions;
1259
+
1259
1260
  /**
1260
1261
  * Generic pallet constant
1261
1262
  **/
@@ -277,11 +277,6 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
277
277
  * Pallet `Treasury`'s errors
278
278
  **/
279
279
  treasury: {
280
- /**
281
- * Proposer's balance is too low.
282
- **/
283
- InsufficientProposersBalance: GenericPalletError<Rv>;
284
-
285
280
  /**
286
281
  * No proposal, bounty or spend at that index.
287
282
  **/
@@ -546,6 +541,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
546
541
  **/
547
542
  SameMember: GenericPalletError<Rv>;
548
543
 
544
+ /**
545
+ * The max member count for the rank has been reached.
546
+ **/
547
+ TooManyMembers: GenericPalletError<Rv>;
548
+
549
549
  /**
550
550
  * Generic pallet error
551
551
  **/
@@ -1356,6 +1356,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1356
1356
  **/
1357
1357
  TooFew: GenericPalletError<Rv>;
1358
1358
 
1359
+ /**
1360
+ * No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
1361
+ **/
1362
+ NoCost: GenericPalletError<Rv>;
1363
+
1359
1364
  /**
1360
1365
  * Generic pallet error
1361
1366
  **/
@@ -2452,6 +2457,17 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
2452
2457
  **/
2453
2458
  NotBroker: GenericPalletError<Rv>;
2454
2459
 
2460
+ /**
2461
+ * Requested revenue information `when` parameter was in the future from the current
2462
+ * block height.
2463
+ **/
2464
+ RequestedFutureRevenue: GenericPalletError<Rv>;
2465
+
2466
+ /**
2467
+ * Failed to transfer assets to the coretime chain
2468
+ **/
2469
+ AssetTransferFailed: GenericPalletError<Rv>;
2470
+
2455
2471
  /**
2456
2472
  * Generic pallet error
2457
2473
  **/
@@ -373,11 +373,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
373
373
  * Pallet `Treasury`'s events
374
374
  **/
375
375
  treasury: {
376
- /**
377
- * New proposal.
378
- **/
379
- Proposed: GenericPalletEvent<Rv, 'Treasury', 'Proposed', { proposalIndex: number }>;
380
-
381
376
  /**
382
377
  * We have ended a spend period and will now allocate funds.
383
378
  **/
@@ -393,11 +388,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
393
388
  { proposalIndex: number; award: bigint; account: AccountId32 }
394
389
  >;
395
390
 
396
- /**
397
- * A proposal was rejected; funds were slashed.
398
- **/
399
- Rejected: GenericPalletEvent<Rv, 'Treasury', 'Rejected', { proposalIndex: number; slashed: bigint }>;
400
-
401
391
  /**
402
392
  * Some of our funds have been burnt.
403
393
  **/
package/rococo/query.d.ts CHANGED
@@ -30,8 +30,8 @@ import type {
30
30
  PalletBalancesAccountData,
31
31
  PalletBalancesBalanceLock,
32
32
  PalletBalancesReserveData,
33
- PalletBalancesIdAmount,
34
- PalletBalancesIdAmount002,
33
+ FrameSupportTokensMiscIdAmount,
34
+ FrameSupportTokensMiscIdAmount002,
35
35
  RococoRuntimeRuntimeParametersValue,
36
36
  RococoRuntimeRuntimeParametersKey,
37
37
  PalletTransactionPaymentReleases,
@@ -112,8 +112,8 @@ import type {
112
112
  PalletMessageQueueBookState,
113
113
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
114
114
  PalletMessageQueuePage,
115
- PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount,
116
- PolkadotRuntimeParachainsAssignerOnDemandQueueStatusType,
115
+ PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount,
116
+ PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType,
117
117
  BinaryHeapEnqueuedOrder,
118
118
  PolkadotRuntimeParachainsAssignerCoretimeSchedule,
119
119
  PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
@@ -574,17 +574,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
574
574
  * Holds on account balances.
575
575
  *
576
576
  * @param {AccountId32Like} arg
577
- * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
577
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
578
578
  **/
579
- holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
579
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
580
580
 
581
581
  /**
582
582
  * Freeze locks on account balances.
583
583
  *
584
584
  * @param {AccountId32Like} arg
585
- * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
585
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount002>> =} callback
586
586
  **/
587
- freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount002>, AccountId32>;
587
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount002>, AccountId32>;
588
588
 
589
589
  /**
590
590
  * Generic pallet storage query
@@ -1905,17 +1905,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1905
1905
  * Holds on account balances.
1906
1906
  *
1907
1907
  * @param {AccountId32Like} arg
1908
- * @param {Callback<Array<PalletBalancesIdAmount>> =} callback
1908
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount>> =} callback
1909
1909
  **/
1910
- holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount>, AccountId32>;
1910
+ holds: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount>, AccountId32>;
1911
1911
 
1912
1912
  /**
1913
1913
  * Freeze locks on account balances.
1914
1914
  *
1915
1915
  * @param {AccountId32Like} arg
1916
- * @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
1916
+ * @param {Callback<Array<FrameSupportTokensMiscIdAmount002>> =} callback
1917
1917
  **/
1918
- freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<PalletBalancesIdAmount002>, AccountId32>;
1918
+ freezes: GenericStorageQuery<Rv, (arg: AccountId32Like) => Array<FrameSupportTokensMiscIdAmount002>, AccountId32>;
1919
1919
 
1920
1920
  /**
1921
1921
  * Generic pallet storage query
@@ -2887,22 +2887,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2887
2887
  * `ParaId` on two or more `CoreIndex`es.
2888
2888
  *
2889
2889
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
2890
- * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount | undefined> =} callback
2890
+ * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined> =} callback
2891
2891
  **/
2892
2892
  paraIdAffinity: GenericStorageQuery<
2893
2893
  Rv,
2894
2894
  (
2895
2895
  arg: PolkadotParachainPrimitivesPrimitivesId,
2896
- ) => PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount | undefined,
2896
+ ) => PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined,
2897
2897
  PolkadotParachainPrimitivesPrimitivesId
2898
2898
  >;
2899
2899
 
2900
2900
  /**
2901
2901
  * Overall status of queue (both free + affinity entries)
2902
2902
  *
2903
- * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandQueueStatusType> =} callback
2903
+ * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType> =} callback
2904
2904
  **/
2905
- queueStatus: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsAssignerOnDemandQueueStatusType>;
2905
+ queueStatus: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>;
2906
2906
 
2907
2907
  /**
2908
2908
  * Priority queue for all orders which don't yet (or not any more) have any core affinity.
@@ -2923,6 +2923,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2923
2923
  PolkadotPrimitivesV7CoreIndex
2924
2924
  >;
2925
2925
 
2926
+ /**
2927
+ * Keeps track of accumulated revenue from on demand order sales.
2928
+ *
2929
+ * @param {Callback<Array<bigint>> =} callback
2930
+ **/
2931
+ revenue: GenericStorageQuery<Rv, () => Array<bigint>>;
2932
+
2926
2933
  /**
2927
2934
  * Generic pallet storage query
2928
2935
  **/
@@ -5,6 +5,7 @@ import type {
5
5
  RuntimeVersion,
6
6
  Header,
7
7
  Result,
8
+ AccountId32,
8
9
  DispatchError,
9
10
  UncheckedExtrinsicLike,
10
11
  UncheckedExtrinsic,
@@ -18,16 +19,17 @@ import type {
18
19
  SpRuntimeBlock,
19
20
  SpRuntimeExtrinsicInclusionMode,
20
21
  XcmVersionedAssetId,
21
- XcmFeePaymentRuntimeApiFeesError,
22
+ XcmRuntimeApisFeesError,
22
23
  SpWeightsWeightV2Weight,
23
24
  XcmVersionedXcm,
24
25
  XcmVersionedAssets,
25
26
  XcmVersionedLocation,
26
- XcmFeePaymentRuntimeApiDryRunCallDryRunEffects,
27
- XcmFeePaymentRuntimeApiDryRunError,
27
+ XcmRuntimeApisDryRunCallDryRunEffects,
28
+ XcmRuntimeApisDryRunError,
28
29
  RococoRuntimeOriginCaller,
29
30
  RococoRuntimeRuntimeCallLike,
30
- XcmFeePaymentRuntimeApiDryRunXcmDryRunEffects,
31
+ XcmRuntimeApisDryRunXcmDryRunEffects,
32
+ XcmRuntimeApisConversionsError,
31
33
  SpCoreOpaqueMetadata,
32
34
  SpRuntimeTransactionValidityTransactionValidityError,
33
35
  SpInherentsInherentData,
@@ -133,7 +135,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
133
135
  **/
134
136
  queryAcceptablePaymentAssets: GenericRuntimeApiMethod<
135
137
  Rv,
136
- (xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmFeePaymentRuntimeApiFeesError>>
138
+ (xcmVersion: number) => Promise<Result<Array<XcmVersionedAssetId>, XcmRuntimeApisFeesError>>
137
139
  >;
138
140
 
139
141
  /**
@@ -148,7 +150,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
148
150
  **/
149
151
  queryXcmWeight: GenericRuntimeApiMethod<
150
152
  Rv,
151
- (message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmFeePaymentRuntimeApiFeesError>>
153
+ (message: XcmVersionedXcm) => Promise<Result<SpWeightsWeightV2Weight, XcmRuntimeApisFeesError>>
152
154
  >;
153
155
 
154
156
  /**
@@ -165,10 +167,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
165
167
  **/
166
168
  queryWeightToAssetFee: GenericRuntimeApiMethod<
167
169
  Rv,
168
- (
169
- weight: SpWeightsWeightV2Weight,
170
- asset: XcmVersionedAssetId,
171
- ) => Promise<Result<bigint, XcmFeePaymentRuntimeApiFeesError>>
170
+ (weight: SpWeightsWeightV2Weight, asset: XcmVersionedAssetId) => Promise<Result<bigint, XcmRuntimeApisFeesError>>
172
171
  >;
173
172
 
174
173
  /**
@@ -190,7 +189,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
190
189
  (
191
190
  destination: XcmVersionedLocation,
192
191
  message: XcmVersionedXcm,
193
- ) => Promise<Result<XcmVersionedAssets, XcmFeePaymentRuntimeApiFeesError>>
192
+ ) => Promise<Result<XcmVersionedAssets, XcmRuntimeApisFeesError>>
194
193
  >;
195
194
 
196
195
  /**
@@ -214,7 +213,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
214
213
  (
215
214
  origin: RococoRuntimeOriginCaller,
216
215
  call: RococoRuntimeRuntimeCallLike,
217
- ) => Promise<Result<XcmFeePaymentRuntimeApiDryRunCallDryRunEffects, XcmFeePaymentRuntimeApiDryRunError>>
216
+ ) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
218
217
  >;
219
218
 
220
219
  /**
@@ -229,7 +228,27 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
229
228
  (
230
229
  originLocation: XcmVersionedLocation,
231
230
  xcm: XcmVersionedXcm,
232
- ) => Promise<Result<XcmFeePaymentRuntimeApiDryRunXcmDryRunEffects, XcmFeePaymentRuntimeApiDryRunError>>
231
+ ) => Promise<Result<XcmRuntimeApisDryRunXcmDryRunEffects, XcmRuntimeApisDryRunError>>
232
+ >;
233
+
234
+ /**
235
+ * Generic runtime api call
236
+ **/
237
+ [method: string]: GenericRuntimeApiMethod<Rv>;
238
+ };
239
+ /**
240
+ * @runtimeapi: LocationToAccountApi - 0x9ffb505aa738d69c
241
+ **/
242
+ locationToAccountApi: {
243
+ /**
244
+ * Converts `Location` to `AccountId`.
245
+ *
246
+ * @callname: LocationToAccountApi_convert_location
247
+ * @param {XcmVersionedLocation} location
248
+ **/
249
+ convertLocation: GenericRuntimeApiMethod<
250
+ Rv,
251
+ (location: XcmVersionedLocation) => Promise<Result<AccountId32, XcmRuntimeApisConversionsError>>
233
252
  >;
234
253
 
235
254
  /**
package/rococo/tx.d.ts CHANGED
@@ -1108,112 +1108,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1108
1108
  * Pallet `Treasury`'s transaction calls
1109
1109
  **/
1110
1110
  treasury: {
1111
- /**
1112
- * Put forward a suggestion for spending.
1113
- *
1114
- * ## Dispatch Origin
1115
- *
1116
- * Must be signed.
1117
- *
1118
- * ## Details
1119
- * A deposit proportional to the value is reserved and slashed if the proposal is rejected.
1120
- * It is returned once the proposal is awarded.
1121
- *
1122
- * ### Complexity
1123
- * - O(1)
1124
- *
1125
- * ## Events
1126
- *
1127
- * Emits [`Event::Proposed`] if successful.
1128
- *
1129
- * @param {bigint} value
1130
- * @param {MultiAddressLike} beneficiary
1131
- **/
1132
- proposeSpend: GenericTxCall<
1133
- Rv,
1134
- (
1135
- value: bigint,
1136
- beneficiary: MultiAddressLike,
1137
- ) => ChainSubmittableExtrinsic<
1138
- Rv,
1139
- {
1140
- pallet: 'Treasury';
1141
- palletCall: {
1142
- name: 'ProposeSpend';
1143
- params: { value: bigint; beneficiary: MultiAddressLike };
1144
- };
1145
- }
1146
- >
1147
- >;
1148
-
1149
- /**
1150
- * Reject a proposed spend.
1151
- *
1152
- * ## Dispatch Origin
1153
- *
1154
- * Must be [`Config::RejectOrigin`].
1155
- *
1156
- * ## Details
1157
- * The original deposit will be slashed.
1158
- *
1159
- * ### Complexity
1160
- * - O(1)
1161
- *
1162
- * ## Events
1163
- *
1164
- * Emits [`Event::Rejected`] if successful.
1165
- *
1166
- * @param {number} proposalId
1167
- **/
1168
- rejectProposal: GenericTxCall<
1169
- Rv,
1170
- (proposalId: number) => ChainSubmittableExtrinsic<
1171
- Rv,
1172
- {
1173
- pallet: 'Treasury';
1174
- palletCall: {
1175
- name: 'RejectProposal';
1176
- params: { proposalId: number };
1177
- };
1178
- }
1179
- >
1180
- >;
1181
-
1182
- /**
1183
- * Approve a proposal.
1184
- *
1185
- * ## Dispatch Origin
1186
- *
1187
- * Must be [`Config::ApproveOrigin`].
1188
- *
1189
- * ## Details
1190
- *
1191
- * At a later time, the proposal will be allocated to the beneficiary and the original
1192
- * deposit will be returned.
1193
- *
1194
- * ### Complexity
1195
- * - O(1).
1196
- *
1197
- * ## Events
1198
- *
1199
- * No events are emitted from this dispatch.
1200
- *
1201
- * @param {number} proposalId
1202
- **/
1203
- approveProposal: GenericTxCall<
1204
- Rv,
1205
- (proposalId: number) => ChainSubmittableExtrinsic<
1206
- Rv,
1207
- {
1208
- pallet: 'Treasury';
1209
- palletCall: {
1210
- name: 'ApproveProposal';
1211
- params: { proposalId: number };
1212
- };
1213
- }
1214
- >
1215
- >;
1216
-
1217
1111
  /**
1218
1112
  * Propose and approve a spend of treasury funds.
1219
1113
  *
@@ -1354,7 +1248,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1354
1248
  *
1355
1249
  * ## Dispatch Origin
1356
1250
  *
1357
- * Must be signed.
1251
+ * Must be signed
1358
1252
  *
1359
1253
  * ## Details
1360
1254
  *
@@ -9271,6 +9165,28 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9271
9165
  >
9272
9166
  >;
9273
9167
 
9168
+ /**
9169
+ * Request to claim the instantaneous coretime sales revenue starting from the block it was
9170
+ * last claimed until and up to the block specified. The claimed amount value is sent back
9171
+ * to the Coretime chain in a `notify_revenue` message. At the same time, the amount is
9172
+ * teleported to the Coretime chain.
9173
+ *
9174
+ * @param {number} when
9175
+ **/
9176
+ requestRevenueAt: GenericTxCall<
9177
+ Rv,
9178
+ (when: number) => ChainSubmittableExtrinsic<
9179
+ Rv,
9180
+ {
9181
+ pallet: 'Coretime';
9182
+ palletCall: {
9183
+ name: 'RequestRevenueAt';
9184
+ params: { when: number };
9185
+ };
9186
+ }
9187
+ >
9188
+ >;
9189
+
9274
9190
  /**
9275
9191
  * Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is
9276
9192
  * to be used.
@@ -9860,7 +9776,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
9860
9776
  * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
9861
9777
  * fee on the `dest` (and possibly reserve) chains.
9862
9778
  * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
9863
- * - `remote_fees_id`: One of the included `assets` to be be used to pay fees.
9779
+ * - `remote_fees_id`: One of the included `assets` to be used to pay fees.
9864
9780
  * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
9865
9781
  * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
9866
9782
  * transfer, which also determines what happens to the assets on the destination chain.
package/rococo/types.d.ts CHANGED
@@ -377,10 +377,6 @@ export type SpConsensusGrandpaAppPublic = FixedBytes<32>;
377
377
  * The `Event` enum of this pallet
378
378
  **/
379
379
  export type PalletTreasuryEvent =
380
- /**
381
- * New proposal.
382
- **/
383
- | { name: 'Proposed'; data: { proposalIndex: number } }
384
380
  /**
385
381
  * We have ended a spend period and will now allocate funds.
386
382
  **/
@@ -389,10 +385,6 @@ export type PalletTreasuryEvent =
389
385
  * Some funds have been allocated.
390
386
  **/
391
387
  | { name: 'Awarded'; data: { proposalIndex: number; award: bigint; account: AccountId32 } }
392
- /**
393
- * A proposal was rejected; funds were slashed.
394
- **/
395
- | { name: 'Rejected'; data: { proposalIndex: number; slashed: bigint } }
396
388
  /**
397
389
  * Some of our funds have been burnt.
398
390
  **/
@@ -1902,63 +1894,6 @@ export type FinalityGrandpaPrecommit = { targetHash: H256; targetNumber: number
1902
1894
  * Contains a variant per dispatchable extrinsic that this pallet has.
1903
1895
  **/
1904
1896
  export type PalletTreasuryCall =
1905
- /**
1906
- * Put forward a suggestion for spending.
1907
- *
1908
- * ## Dispatch Origin
1909
- *
1910
- * Must be signed.
1911
- *
1912
- * ## Details
1913
- * A deposit proportional to the value is reserved and slashed if the proposal is rejected.
1914
- * It is returned once the proposal is awarded.
1915
- *
1916
- * ### Complexity
1917
- * - O(1)
1918
- *
1919
- * ## Events
1920
- *
1921
- * Emits [`Event::Proposed`] if successful.
1922
- **/
1923
- | { name: 'ProposeSpend'; params: { value: bigint; beneficiary: MultiAddress } }
1924
- /**
1925
- * Reject a proposed spend.
1926
- *
1927
- * ## Dispatch Origin
1928
- *
1929
- * Must be [`Config::RejectOrigin`].
1930
- *
1931
- * ## Details
1932
- * The original deposit will be slashed.
1933
- *
1934
- * ### Complexity
1935
- * - O(1)
1936
- *
1937
- * ## Events
1938
- *
1939
- * Emits [`Event::Rejected`] if successful.
1940
- **/
1941
- | { name: 'RejectProposal'; params: { proposalId: number } }
1942
- /**
1943
- * Approve a proposal.
1944
- *
1945
- * ## Dispatch Origin
1946
- *
1947
- * Must be [`Config::ApproveOrigin`].
1948
- *
1949
- * ## Details
1950
- *
1951
- * At a later time, the proposal will be allocated to the beneficiary and the original
1952
- * deposit will be returned.
1953
- *
1954
- * ### Complexity
1955
- * - O(1).
1956
- *
1957
- * ## Events
1958
- *
1959
- * No events are emitted from this dispatch.
1960
- **/
1961
- | { name: 'ApproveProposal'; params: { proposalId: number } }
1962
1897
  /**
1963
1898
  * Propose and approve a spend of treasury funds.
1964
1899
  *
@@ -2045,7 +1980,7 @@ export type PalletTreasuryCall =
2045
1980
  *
2046
1981
  * ## Dispatch Origin
2047
1982
  *
2048
- * Must be signed.
1983
+ * Must be signed
2049
1984
  *
2050
1985
  * ## Details
2051
1986
  *
@@ -2105,63 +2040,6 @@ export type PalletTreasuryCall =
2105
2040
  | { name: 'VoidSpend'; params: { index: number } };
2106
2041
 
2107
2042
  export type PalletTreasuryCallLike =
2108
- /**
2109
- * Put forward a suggestion for spending.
2110
- *
2111
- * ## Dispatch Origin
2112
- *
2113
- * Must be signed.
2114
- *
2115
- * ## Details
2116
- * A deposit proportional to the value is reserved and slashed if the proposal is rejected.
2117
- * It is returned once the proposal is awarded.
2118
- *
2119
- * ### Complexity
2120
- * - O(1)
2121
- *
2122
- * ## Events
2123
- *
2124
- * Emits [`Event::Proposed`] if successful.
2125
- **/
2126
- | { name: 'ProposeSpend'; params: { value: bigint; beneficiary: MultiAddressLike } }
2127
- /**
2128
- * Reject a proposed spend.
2129
- *
2130
- * ## Dispatch Origin
2131
- *
2132
- * Must be [`Config::RejectOrigin`].
2133
- *
2134
- * ## Details
2135
- * The original deposit will be slashed.
2136
- *
2137
- * ### Complexity
2138
- * - O(1)
2139
- *
2140
- * ## Events
2141
- *
2142
- * Emits [`Event::Rejected`] if successful.
2143
- **/
2144
- | { name: 'RejectProposal'; params: { proposalId: number } }
2145
- /**
2146
- * Approve a proposal.
2147
- *
2148
- * ## Dispatch Origin
2149
- *
2150
- * Must be [`Config::ApproveOrigin`].
2151
- *
2152
- * ## Details
2153
- *
2154
- * At a later time, the proposal will be allocated to the beneficiary and the original
2155
- * deposit will be returned.
2156
- *
2157
- * ### Complexity
2158
- * - O(1).
2159
- *
2160
- * ## Events
2161
- *
2162
- * No events are emitted from this dispatch.
2163
- **/
2164
- | { name: 'ApproveProposal'; params: { proposalId: number } }
2165
2043
  /**
2166
2044
  * Propose and approve a spend of treasury funds.
2167
2045
  *
@@ -2248,7 +2126,7 @@ export type PalletTreasuryCallLike =
2248
2126
  *
2249
2127
  * ## Dispatch Origin
2250
2128
  *
2251
- * Must be signed.
2129
+ * Must be signed
2252
2130
  *
2253
2131
  * ## Details
2254
2132
  *
@@ -8393,6 +8271,13 @@ export type PolkadotRuntimeParachainsCoretimePalletCall =
8393
8271
  * - `count`: total number of cores
8394
8272
  **/
8395
8273
  | { name: 'RequestCoreCount'; params: { count: number } }
8274
+ /**
8275
+ * Request to claim the instantaneous coretime sales revenue starting from the block it was
8276
+ * last claimed until and up to the block specified. The claimed amount value is sent back
8277
+ * to the Coretime chain in a `notify_revenue` message. At the same time, the amount is
8278
+ * teleported to the Coretime chain.
8279
+ **/
8280
+ | { name: 'RequestRevenueAt'; params: { when: number } }
8396
8281
  /**
8397
8282
  * Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is
8398
8283
  * to be used.
@@ -8426,6 +8311,13 @@ export type PolkadotRuntimeParachainsCoretimePalletCallLike =
8426
8311
  * - `count`: total number of cores
8427
8312
  **/
8428
8313
  | { name: 'RequestCoreCount'; params: { count: number } }
8314
+ /**
8315
+ * Request to claim the instantaneous coretime sales revenue starting from the block it was
8316
+ * last claimed until and up to the block specified. The claimed amount value is sent back
8317
+ * to the Coretime chain in a `notify_revenue` message. At the same time, the amount is
8318
+ * teleported to the Coretime chain.
8319
+ **/
8320
+ | { name: 'RequestRevenueAt'; params: { when: number } }
8429
8321
  /**
8430
8322
  * Receive instructions from the `ExternalBrokerOrigin`, detailing how a specific core is
8431
8323
  * to be used.
@@ -8752,7 +8644,7 @@ export type PalletXcmCall =
8752
8644
  * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
8753
8645
  * fee on the `dest` (and possibly reserve) chains.
8754
8646
  * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
8755
- * - `remote_fees_id`: One of the included `assets` to be be used to pay fees.
8647
+ * - `remote_fees_id`: One of the included `assets` to be used to pay fees.
8756
8648
  * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
8757
8649
  * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
8758
8650
  * transfer, which also determines what happens to the assets on the destination chain.
@@ -9064,7 +8956,7 @@ export type PalletXcmCallLike =
9064
8956
  * - `assets`: The assets to be withdrawn. This should include the assets used to pay the
9065
8957
  * fee on the `dest` (and possibly reserve) chains.
9066
8958
  * - `assets_transfer_type`: The XCM `TransferType` used to transfer the `assets`.
9067
- * - `remote_fees_id`: One of the included `assets` to be be used to pay fees.
8959
+ * - `remote_fees_id`: One of the included `assets` to be used to pay fees.
9068
8960
  * - `fees_transfer_type`: The XCM `TransferType` used to transfer the `fees` assets.
9069
8961
  * - `custom_xcm_on_dest`: The XCM to be executed on `dest` chain as the last step of the
9070
8962
  * transfer, which also determines what happens to the assets on the destination chain.
@@ -12057,7 +11949,7 @@ export type PalletBalancesReasons = 'Fee' | 'Misc' | 'All';
12057
11949
 
12058
11950
  export type PalletBalancesReserveData = { id: FixedBytes<8>; amount: bigint };
12059
11951
 
12060
- export type PalletBalancesIdAmount = { id: RococoRuntimeRuntimeHoldReason; amount: bigint };
11952
+ export type FrameSupportTokensMiscIdAmount = { id: RococoRuntimeRuntimeHoldReason; amount: bigint };
12061
11953
 
12062
11954
  export type RococoRuntimeRuntimeHoldReason =
12063
11955
  | { type: 'Preimage'; value: PalletPreimageHoldReason }
@@ -12070,7 +11962,7 @@ export type PalletNisHoldReason = 'NftReceipt';
12070
11962
 
12071
11963
  export type PalletStateTrieMigrationHoldReason = 'SlashForMigrate';
12072
11964
 
12073
- export type PalletBalancesIdAmount002 = { id: []; amount: bigint };
11965
+ export type FrameSupportTokensMiscIdAmount002 = { id: []; amount: bigint };
12074
11966
 
12075
11967
  /**
12076
11968
  * The `Error` enum of this pallet.
@@ -12226,10 +12118,6 @@ export type FrameSupportPalletId = FixedBytes<8>;
12226
12118
  * Error for the treasury pallet.
12227
12119
  **/
12228
12120
  export type PalletTreasuryError =
12229
- /**
12230
- * Proposer's balance is too low.
12231
- **/
12232
- | 'InsufficientProposersBalance'
12233
12121
  /**
12234
12122
  * No proposal, bounty or spend at that index.
12235
12123
  **/
@@ -12501,7 +12389,11 @@ export type PalletRankedCollectiveError =
12501
12389
  /**
12502
12390
  * The new member to exchange is the same as the old member
12503
12391
  **/
12504
- | 'SameMember';
12392
+ | 'SameMember'
12393
+ /**
12394
+ * The max member count for the rank has been reached.
12395
+ **/
12396
+ | 'TooManyMembers';
12505
12397
 
12506
12398
  export type PalletReferendaReferendumInfoTally =
12507
12399
  | { type: 'Ongoing'; value: PalletReferendaReferendumStatusTally }
@@ -13175,7 +13067,11 @@ export type PalletPreimageError =
13175
13067
  /**
13176
13068
  * Too few hashes were requested to be upgraded (i.e. zero).
13177
13069
  **/
13178
- | 'TooFew';
13070
+ | 'TooFew'
13071
+ /**
13072
+ * No ticket with a cost was returned by [`Config::Consideration`] to store the preimage.
13073
+ **/
13074
+ | 'NoCost';
13179
13075
 
13180
13076
  /**
13181
13077
  * The `Error` enum of this pallet.
@@ -13959,29 +13855,29 @@ export type PalletMessageQueueError =
13959
13855
  **/
13960
13856
  | 'RecursiveDisallowed';
13961
13857
 
13962
- export type PolkadotRuntimeParachainsAssignerOnDemandCoreAffinityCount = {
13858
+ export type PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount = {
13963
13859
  coreIndex: PolkadotPrimitivesV7CoreIndex;
13964
13860
  count: number;
13965
13861
  };
13966
13862
 
13967
- export type PolkadotRuntimeParachainsAssignerOnDemandQueueStatusType = {
13863
+ export type PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType = {
13968
13864
  traffic: FixedU128;
13969
- nextIndex: PolkadotRuntimeParachainsAssignerOnDemandQueueIndex;
13970
- smallestIndex: PolkadotRuntimeParachainsAssignerOnDemandQueueIndex;
13865
+ nextIndex: PolkadotRuntimeParachainsAssignerOnDemandTypesQueueIndex;
13866
+ smallestIndex: PolkadotRuntimeParachainsAssignerOnDemandTypesQueueIndex;
13971
13867
  freedIndices: BinaryHeap;
13972
13868
  };
13973
13869
 
13974
- export type PolkadotRuntimeParachainsAssignerOnDemandQueueIndex = number;
13870
+ export type PolkadotRuntimeParachainsAssignerOnDemandTypesQueueIndex = number;
13975
13871
 
13976
- export type BinaryHeap = Array<PolkadotRuntimeParachainsAssignerOnDemandReverseQueueIndex>;
13872
+ export type BinaryHeap = Array<PolkadotRuntimeParachainsAssignerOnDemandTypesReverseQueueIndex>;
13977
13873
 
13978
- export type PolkadotRuntimeParachainsAssignerOnDemandReverseQueueIndex = number;
13874
+ export type PolkadotRuntimeParachainsAssignerOnDemandTypesReverseQueueIndex = number;
13979
13875
 
13980
- export type BinaryHeapEnqueuedOrder = Array<PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder>;
13876
+ export type BinaryHeapEnqueuedOrder = Array<PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder>;
13981
13877
 
13982
- export type PolkadotRuntimeParachainsAssignerOnDemandEnqueuedOrder = {
13878
+ export type PolkadotRuntimeParachainsAssignerOnDemandTypesEnqueuedOrder = {
13983
13879
  paraId: PolkadotParachainPrimitivesPrimitivesId;
13984
- idx: PolkadotRuntimeParachainsAssignerOnDemandQueueIndex;
13880
+ idx: PolkadotRuntimeParachainsAssignerOnDemandTypesQueueIndex;
13985
13881
  };
13986
13882
 
13987
13883
  /**
@@ -14292,7 +14188,16 @@ export type PolkadotRuntimeParachainsCoretimePalletError =
14292
14188
  /**
14293
14189
  * The paraid making the call is not the coretime brokerage system parachain.
14294
14190
  **/
14295
- 'NotBroker';
14191
+ | 'NotBroker'
14192
+ /**
14193
+ * Requested revenue information `when` parameter was in the future from the current
14194
+ * block height.
14195
+ **/
14196
+ | 'RequestedFutureRevenue'
14197
+ /**
14198
+ * Failed to transfer assets to the coretime chain
14199
+ **/
14200
+ | 'AssetTransferFailed';
14296
14201
 
14297
14202
  export type PalletXcmQueryStatus =
14298
14203
  | {
@@ -14574,7 +14479,7 @@ export type SpRuntimeBlock = { header: Header; extrinsics: Array<UncheckedExtrin
14574
14479
 
14575
14480
  export type SpRuntimeExtrinsicInclusionMode = 'AllExtrinsics' | 'OnlyInherents';
14576
14481
 
14577
- export type XcmFeePaymentRuntimeApiFeesError =
14482
+ export type XcmRuntimeApisFeesError =
14578
14483
  | 'Unimplemented'
14579
14484
  | 'VersionedConversionFailed'
14580
14485
  | 'WeightNotComputable'
@@ -14582,21 +14487,23 @@ export type XcmFeePaymentRuntimeApiFeesError =
14582
14487
  | 'AssetNotFound'
14583
14488
  | 'Unroutable';
14584
14489
 
14585
- export type XcmFeePaymentRuntimeApiDryRunCallDryRunEffects = {
14490
+ export type XcmRuntimeApisDryRunCallDryRunEffects = {
14586
14491
  executionResult: Result<FrameSupportDispatchPostDispatchInfo, SpRuntimeDispatchErrorWithPostInfo>;
14587
14492
  emittedEvents: Array<RococoRuntimeRuntimeEvent>;
14588
14493
  localXcm?: XcmVersionedXcm | undefined;
14589
14494
  forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
14590
14495
  };
14591
14496
 
14592
- export type XcmFeePaymentRuntimeApiDryRunError = 'Unimplemented' | 'VersionedConversionFailed';
14497
+ export type XcmRuntimeApisDryRunError = 'Unimplemented' | 'VersionedConversionFailed';
14593
14498
 
14594
- export type XcmFeePaymentRuntimeApiDryRunXcmDryRunEffects = {
14499
+ export type XcmRuntimeApisDryRunXcmDryRunEffects = {
14595
14500
  executionResult: StagingXcmV4TraitsOutcome;
14596
14501
  emittedEvents: Array<RococoRuntimeRuntimeEvent>;
14597
14502
  forwardedXcms: Array<[XcmVersionedLocation, Array<XcmVersionedXcm>]>;
14598
14503
  };
14599
14504
 
14505
+ export type XcmRuntimeApisConversionsError = 'Unsupported' | 'VersionedConversionFailed';
14506
+
14600
14507
  export type SpCoreOpaqueMetadata = Bytes;
14601
14508
 
14602
14509
  export type SpRuntimeTransactionValidityTransactionValidityError =