@dedot/chaintypes 0.19.0 → 0.20.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.
@@ -33,10 +33,10 @@ import type {
33
33
  PalletNominationPoolsPoolState,
34
34
  PalletNominationPoolsCommissionChangeRate,
35
35
  PalletNominationPoolsCommissionClaimPermission,
36
- PolkadotPrimitivesV6CandidateReceipt,
36
+ PolkadotPrimitivesV7CandidateReceipt,
37
37
  PolkadotParachainPrimitivesPrimitivesHeadData,
38
- PolkadotPrimitivesV6CoreIndex,
39
- PolkadotPrimitivesV6GroupIndex,
38
+ PolkadotPrimitivesV7CoreIndex,
39
+ PolkadotPrimitivesV7GroupIndex,
40
40
  PolkadotParachainPrimitivesPrimitivesId,
41
41
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
42
42
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
@@ -131,6 +131,26 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
131
131
  { task: [number, number]; id?: FixedBytes<32> | undefined; result: Result<[], DispatchError> }
132
132
  >;
133
133
 
134
+ /**
135
+ * Set a retry configuration for some task.
136
+ **/
137
+ RetrySet: GenericPalletEvent<
138
+ Rv,
139
+ 'Scheduler',
140
+ 'RetrySet',
141
+ { task: [number, number]; id?: FixedBytes<32> | undefined; period: number; retries: number }
142
+ >;
143
+
144
+ /**
145
+ * Cancel a retry configuration for some task.
146
+ **/
147
+ RetryCancelled: GenericPalletEvent<
148
+ Rv,
149
+ 'Scheduler',
150
+ 'RetryCancelled',
151
+ { task: [number, number]; id?: FixedBytes<32> | undefined }
152
+ >;
153
+
134
154
  /**
135
155
  * The call for the provided hash was not found so the task has been aborted.
136
156
  **/
@@ -151,6 +171,17 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
151
171
  { task: [number, number]; id?: FixedBytes<32> | undefined }
152
172
  >;
153
173
 
174
+ /**
175
+ * The given task was unable to be retried since the agenda is full at that block or there
176
+ * was not enough weight to reschedule it.
177
+ **/
178
+ RetryFailed: GenericPalletEvent<
179
+ Rv,
180
+ 'Scheduler',
181
+ 'RetryFailed',
182
+ { task: [number, number]; id?: FixedBytes<32> | undefined }
183
+ >;
184
+
154
185
  /**
155
186
  * The given task can never be executed since it is overweight.
156
187
  **/
@@ -560,11 +591,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
560
591
  * Pallet `Treasury`'s events
561
592
  **/
562
593
  treasury: {
563
- /**
564
- * New proposal.
565
- **/
566
- Proposed: GenericPalletEvent<Rv, 'Treasury', 'Proposed', { proposalIndex: number }>;
567
-
568
594
  /**
569
595
  * We have ended a spend period and will now allocate funds.
570
596
  **/
@@ -580,11 +606,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
580
606
  { proposalIndex: number; award: bigint; account: AccountId32 }
581
607
  >;
582
608
 
583
- /**
584
- * A proposal was rejected; funds were slashed.
585
- **/
586
- Rejected: GenericPalletEvent<Rv, 'Treasury', 'Rejected', { proposalIndex: number; slashed: bigint }>;
587
-
588
609
  /**
589
610
  * Some of our funds have been burnt.
590
611
  **/
@@ -1115,142 +1136,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1115
1136
  **/
1116
1137
  [prop: string]: GenericPalletEvent<Rv>;
1117
1138
  };
1118
- /**
1119
- * Pallet `Identity`'s events
1120
- **/
1121
- identity: {
1122
- /**
1123
- * A name was set or reset (which will remove all judgements).
1124
- **/
1125
- IdentitySet: GenericPalletEvent<Rv, 'Identity', 'IdentitySet', { who: AccountId32 }>;
1126
-
1127
- /**
1128
- * A name was cleared, and the given balance returned.
1129
- **/
1130
- IdentityCleared: GenericPalletEvent<Rv, 'Identity', 'IdentityCleared', { who: AccountId32; deposit: bigint }>;
1131
-
1132
- /**
1133
- * A name was removed and the given balance slashed.
1134
- **/
1135
- IdentityKilled: GenericPalletEvent<Rv, 'Identity', 'IdentityKilled', { who: AccountId32; deposit: bigint }>;
1136
-
1137
- /**
1138
- * A judgement was asked from a registrar.
1139
- **/
1140
- JudgementRequested: GenericPalletEvent<
1141
- Rv,
1142
- 'Identity',
1143
- 'JudgementRequested',
1144
- { who: AccountId32; registrarIndex: number }
1145
- >;
1146
-
1147
- /**
1148
- * A judgement request was retracted.
1149
- **/
1150
- JudgementUnrequested: GenericPalletEvent<
1151
- Rv,
1152
- 'Identity',
1153
- 'JudgementUnrequested',
1154
- { who: AccountId32; registrarIndex: number }
1155
- >;
1156
-
1157
- /**
1158
- * A judgement was given by a registrar.
1159
- **/
1160
- JudgementGiven: GenericPalletEvent<
1161
- Rv,
1162
- 'Identity',
1163
- 'JudgementGiven',
1164
- { target: AccountId32; registrarIndex: number }
1165
- >;
1166
-
1167
- /**
1168
- * A registrar was added.
1169
- **/
1170
- RegistrarAdded: GenericPalletEvent<Rv, 'Identity', 'RegistrarAdded', { registrarIndex: number }>;
1171
-
1172
- /**
1173
- * A sub-identity was added to an identity and the deposit paid.
1174
- **/
1175
- SubIdentityAdded: GenericPalletEvent<
1176
- Rv,
1177
- 'Identity',
1178
- 'SubIdentityAdded',
1179
- { sub: AccountId32; main: AccountId32; deposit: bigint }
1180
- >;
1181
-
1182
- /**
1183
- * A sub-identity was removed from an identity and the deposit freed.
1184
- **/
1185
- SubIdentityRemoved: GenericPalletEvent<
1186
- Rv,
1187
- 'Identity',
1188
- 'SubIdentityRemoved',
1189
- { sub: AccountId32; main: AccountId32; deposit: bigint }
1190
- >;
1191
-
1192
- /**
1193
- * A sub-identity was cleared, and the given deposit repatriated from the
1194
- * main identity account to the sub-identity account.
1195
- **/
1196
- SubIdentityRevoked: GenericPalletEvent<
1197
- Rv,
1198
- 'Identity',
1199
- 'SubIdentityRevoked',
1200
- { sub: AccountId32; main: AccountId32; deposit: bigint }
1201
- >;
1202
-
1203
- /**
1204
- * A username authority was added.
1205
- **/
1206
- AuthorityAdded: GenericPalletEvent<Rv, 'Identity', 'AuthorityAdded', { authority: AccountId32 }>;
1207
-
1208
- /**
1209
- * A username authority was removed.
1210
- **/
1211
- AuthorityRemoved: GenericPalletEvent<Rv, 'Identity', 'AuthorityRemoved', { authority: AccountId32 }>;
1212
-
1213
- /**
1214
- * A username was set for `who`.
1215
- **/
1216
- UsernameSet: GenericPalletEvent<Rv, 'Identity', 'UsernameSet', { who: AccountId32; username: Bytes }>;
1217
-
1218
- /**
1219
- * A username was queued, but `who` must accept it prior to `expiration`.
1220
- **/
1221
- UsernameQueued: GenericPalletEvent<
1222
- Rv,
1223
- 'Identity',
1224
- 'UsernameQueued',
1225
- { who: AccountId32; username: Bytes; expiration: number }
1226
- >;
1227
-
1228
- /**
1229
- * A queued username passed its expiration without being claimed and was removed.
1230
- **/
1231
- PreapprovalExpired: GenericPalletEvent<Rv, 'Identity', 'PreapprovalExpired', { whose: AccountId32 }>;
1232
-
1233
- /**
1234
- * A username was set as a primary and can be looked up from `who`.
1235
- **/
1236
- PrimaryUsernameSet: GenericPalletEvent<Rv, 'Identity', 'PrimaryUsernameSet', { who: AccountId32; username: Bytes }>;
1237
-
1238
- /**
1239
- * A dangling username (as in, a username corresponding to an account that has removed its
1240
- * identity) has been removed.
1241
- **/
1242
- DanglingUsernameRemoved: GenericPalletEvent<
1243
- Rv,
1244
- 'Identity',
1245
- 'DanglingUsernameRemoved',
1246
- { who: AccountId32; username: Bytes }
1247
- >;
1248
-
1249
- /**
1250
- * Generic pallet event
1251
- **/
1252
- [prop: string]: GenericPalletEvent<Rv>;
1253
- };
1254
1139
  /**
1255
1140
  * Pallet `Proxy`'s events
1256
1141
  **/
@@ -1472,7 +1357,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1472
1357
  * A solution was stored with the given compute.
1473
1358
  *
1474
1359
  * The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
1475
- * the stored solution was submited in the signed phase by a miner with the `AccountId`.
1360
+ * the stored solution was submitted in the signed phase by a miner with the `AccountId`.
1476
1361
  * Otherwise, the solution was stored either during the unsigned phase or by
1477
1362
  * `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
1478
1363
  * room for this one.
@@ -1790,10 +1675,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1790
1675
  'ParaInclusion',
1791
1676
  'CandidateBacked',
1792
1677
  [
1793
- PolkadotPrimitivesV6CandidateReceipt,
1678
+ PolkadotPrimitivesV7CandidateReceipt,
1794
1679
  PolkadotParachainPrimitivesPrimitivesHeadData,
1795
- PolkadotPrimitivesV6CoreIndex,
1796
- PolkadotPrimitivesV6GroupIndex,
1680
+ PolkadotPrimitivesV7CoreIndex,
1681
+ PolkadotPrimitivesV7GroupIndex,
1797
1682
  ]
1798
1683
  >;
1799
1684
 
@@ -1805,10 +1690,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1805
1690
  'ParaInclusion',
1806
1691
  'CandidateIncluded',
1807
1692
  [
1808
- PolkadotPrimitivesV6CandidateReceipt,
1693
+ PolkadotPrimitivesV7CandidateReceipt,
1809
1694
  PolkadotParachainPrimitivesPrimitivesHeadData,
1810
- PolkadotPrimitivesV6CoreIndex,
1811
- PolkadotPrimitivesV6GroupIndex,
1695
+ PolkadotPrimitivesV7CoreIndex,
1696
+ PolkadotPrimitivesV7GroupIndex,
1812
1697
  ]
1813
1698
  >;
1814
1699
 
@@ -1820,9 +1705,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1820
1705
  'ParaInclusion',
1821
1706
  'CandidateTimedOut',
1822
1707
  [
1823
- PolkadotPrimitivesV6CandidateReceipt,
1708
+ PolkadotPrimitivesV7CandidateReceipt,
1824
1709
  PolkadotParachainPrimitivesPrimitivesHeadData,
1825
- PolkadotPrimitivesV6CoreIndex,
1710
+ PolkadotPrimitivesV7CoreIndex,
1826
1711
  ]
1827
1712
  >;
1828
1713
 
@@ -2051,6 +1936,30 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2051
1936
  **/
2052
1937
  [prop: string]: GenericPalletEvent<Rv>;
2053
1938
  };
1939
+ /**
1940
+ * Pallet `OnDemand`'s events
1941
+ **/
1942
+ onDemand: {
1943
+ /**
1944
+ * An order was placed at some spot price amount by orderer ordered_by
1945
+ **/
1946
+ OnDemandOrderPlaced: GenericPalletEvent<
1947
+ Rv,
1948
+ 'OnDemand',
1949
+ 'OnDemandOrderPlaced',
1950
+ { paraId: PolkadotParachainPrimitivesPrimitivesId; spotPrice: bigint; orderedBy: AccountId32 }
1951
+ >;
1952
+
1953
+ /**
1954
+ * The value of the spot price has likely changed
1955
+ **/
1956
+ SpotPriceSet: GenericPalletEvent<Rv, 'OnDemand', 'SpotPriceSet', { spotPrice: bigint }>;
1957
+
1958
+ /**
1959
+ * Generic pallet event
1960
+ **/
1961
+ [prop: string]: GenericPalletEvent<Rv>;
1962
+ };
2054
1963
  /**
2055
1964
  * Pallet `Registrar`'s events
2056
1965
  **/
@@ -2287,6 +2196,25 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2287
2196
  **/
2288
2197
  [prop: string]: GenericPalletEvent<Rv>;
2289
2198
  };
2199
+ /**
2200
+ * Pallet `Coretime`'s events
2201
+ **/
2202
+ coretime: {
2203
+ /**
2204
+ * The broker chain has asked for revenue information for a specific block.
2205
+ **/
2206
+ RevenueInfoRequested: GenericPalletEvent<Rv, 'Coretime', 'RevenueInfoRequested', { when: number }>;
2207
+
2208
+ /**
2209
+ * A core has received a new assignment from the broker chain.
2210
+ **/
2211
+ CoreAssigned: GenericPalletEvent<Rv, 'Coretime', 'CoreAssigned', { core: PolkadotPrimitivesV7CoreIndex }>;
2212
+
2213
+ /**
2214
+ * Generic pallet event
2215
+ **/
2216
+ [prop: string]: GenericPalletEvent<Rv>;
2217
+ };
2290
2218
  /**
2291
2219
  * Pallet `StateTrieMigration`'s events
2292
2220
  **/
@@ -2749,31 +2677,6 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2749
2677
  { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset; old: FixedU128; new: FixedU128 }
2750
2678
  >;
2751
2679
 
2752
- /**
2753
- * Generic pallet event
2754
- **/
2755
- [prop: string]: GenericPalletEvent<Rv>;
2756
- };
2757
- /**
2758
- * Pallet `IdentityMigrator`'s events
2759
- **/
2760
- identityMigrator: {
2761
- /**
2762
- * The identity and all sub accounts were reaped for `who`.
2763
- **/
2764
- IdentityReaped: GenericPalletEvent<Rv, 'IdentityMigrator', 'IdentityReaped', { who: AccountId32 }>;
2765
-
2766
- /**
2767
- * The deposits held for `who` were updated. `identity` is the new deposit held for
2768
- * identity info, and `subs` is the new deposit held for the sub-accounts.
2769
- **/
2770
- DepositUpdated: GenericPalletEvent<
2771
- Rv,
2772
- 'IdentityMigrator',
2773
- 'DepositUpdated',
2774
- { who: AccountId32; identity: bigint; subs: bigint }
2775
- >;
2776
-
2777
2680
  /**
2778
2681
  * Generic pallet event
2779
2682
  **/
@@ -23,7 +23,7 @@ export interface VersionedPolkadotApi<Rv extends RpcVersion> extends GenericSubs
23
23
 
24
24
  /**
25
25
  * @name: PolkadotApi
26
- * @specVersion: 1002007
26
+ * @specVersion: 1003000
27
27
  **/
28
28
  export interface PolkadotApi {
29
29
  legacy: VersionedPolkadotApi<RpcLegacy>;