@dedot/chaintypes 0.0.1-alpha.24 → 0.0.1-alpha.26

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.
Files changed (277) hide show
  1. package/aleph/consts.d.ts +590 -528
  2. package/aleph/errors.d.ts +981 -818
  3. package/aleph/events.d.ts +924 -937
  4. package/aleph/index.d.ts +11 -8
  5. package/aleph/query.d.ts +1477 -1268
  6. package/aleph/rpc.d.ts +725 -573
  7. package/aleph/runtime.d.ts +541 -406
  8. package/aleph/tx.d.ts +2664 -2202
  9. package/aleph/types.d.ts +3474 -5388
  10. package/astar/consts.d.ts +753 -674
  11. package/astar/errors.d.ts +1576 -1313
  12. package/astar/events.d.ts +1709 -1628
  13. package/astar/index.d.ts +11 -8
  14. package/astar/query.d.ts +1756 -1471
  15. package/astar/rpc.d.ts +972 -773
  16. package/astar/runtime.d.ts +310 -258
  17. package/astar/tx.d.ts +5474 -4806
  18. package/astar/types.d.ts +8848 -12108
  19. package/index.ts +10 -0
  20. package/kusama/consts.d.ts +1573 -1422
  21. package/kusama/errors.d.ts +2995 -2490
  22. package/kusama/events.d.ts +2996 -2723
  23. package/kusama/index.d.ts +11 -8
  24. package/kusama/query.d.ts +3828 -3248
  25. package/kusama/rpc.d.ts +902 -724
  26. package/kusama/runtime.d.ts +1130 -840
  27. package/kusama/tx.d.ts +7073 -6010
  28. package/kusama/types.d.ts +10151 -15344
  29. package/kusamaAssetHub/consts.d.ts +714 -627
  30. package/kusamaAssetHub/errors.d.ts +1405 -1160
  31. package/kusamaAssetHub/events.d.ts +2149 -2060
  32. package/kusamaAssetHub/index.d.ts +11 -8
  33. package/kusamaAssetHub/query.d.ts +1551 -1298
  34. package/kusamaAssetHub/rpc.d.ts +744 -588
  35. package/kusamaAssetHub/runtime.d.ts +510 -398
  36. package/kusamaAssetHub/tx.d.ts +5050 -4212
  37. package/kusamaAssetHub/types.d.ts +5976 -10009
  38. package/moonbeam/consts.d.ts +1075 -956
  39. package/moonbeam/errors.d.ts +2131 -1793
  40. package/moonbeam/events.d.ts +2932 -2681
  41. package/moonbeam/index.d.ts +11 -8
  42. package/moonbeam/query.d.ts +2391 -2024
  43. package/moonbeam/rpc.d.ts +1013 -807
  44. package/moonbeam/runtime.d.ts +665 -502
  45. package/moonbeam/tx.d.ts +6152 -5201
  46. package/moonbeam/types.d.ts +7731 -12035
  47. package/package.json +9 -8
  48. package/packageInfo.js +1 -1
  49. package/packageInfo.ts +3 -0
  50. package/polkadot/consts.d.ts +1272 -1155
  51. package/polkadot/errors.d.ts +2420 -2016
  52. package/polkadot/events.d.ts +2314 -2092
  53. package/polkadot/index.d.ts +11 -8
  54. package/polkadot/query.d.ts +3319 -2808
  55. package/polkadot/rpc.d.ts +902 -724
  56. package/polkadot/runtime.d.ts +1130 -840
  57. package/polkadot/tx.d.ts +5909 -5005
  58. package/polkadot/types.d.ts +8742 -13290
  59. package/polkadotAssetHub/consts.d.ts +586 -519
  60. package/polkadotAssetHub/errors.d.ts +1115 -921
  61. package/polkadotAssetHub/events.d.ts +1850 -1782
  62. package/polkadotAssetHub/index.d.ts +11 -8
  63. package/polkadotAssetHub/query.d.ts +1457 -1219
  64. package/polkadotAssetHub/rpc.d.ts +744 -588
  65. package/polkadotAssetHub/runtime.d.ts +447 -355
  66. package/polkadotAssetHub/tx.d.ts +4184 -3487
  67. package/polkadotAssetHub/types.d.ts +5183 -8808
  68. package/rococoAssetHub/consts.d.ts +745 -653
  69. package/rococoAssetHub/errors.d.ts +1490 -1227
  70. package/rococoAssetHub/events.d.ts +2127 -2047
  71. package/rococoAssetHub/index.d.ts +11 -8
  72. package/rococoAssetHub/query.d.ts +1513 -1266
  73. package/rococoAssetHub/rpc.d.ts +744 -588
  74. package/rococoAssetHub/runtime.d.ts +538 -424
  75. package/rococoAssetHub/tx.d.ts +5164 -4302
  76. package/rococoAssetHub/types.d.ts +6321 -10636
  77. package/substrate/consts.d.ts +2218 -1966
  78. package/substrate/errors.d.ts +4019 -3333
  79. package/substrate/events.d.ts +4585 -4255
  80. package/substrate/index.d.ts +11 -8
  81. package/substrate/query.d.ts +3887 -3347
  82. package/substrate/rpc.d.ts +892 -716
  83. package/substrate/runtime.d.ts +937 -704
  84. package/substrate/tx.d.ts +10387 -8796
  85. package/substrate/types.d.ts +12809 -19761
  86. package/westendAssetHub/consts.d.ts +745 -653
  87. package/westendAssetHub/errors.d.ts +1490 -1227
  88. package/westendAssetHub/events.d.ts +2127 -2047
  89. package/westendAssetHub/index.d.ts +11 -8
  90. package/westendAssetHub/query.d.ts +1513 -1266
  91. package/westendAssetHub/rpc.d.ts +744 -588
  92. package/westendAssetHub/runtime.d.ts +577 -452
  93. package/westendAssetHub/tx.d.ts +5164 -4302
  94. package/westendAssetHub/types.d.ts +6321 -10633
  95. package/aleph/consts.js +0 -2
  96. package/aleph/errors.js +0 -2
  97. package/aleph/events.js +0 -2
  98. package/aleph/index.js +0 -3
  99. package/aleph/query.js +0 -2
  100. package/aleph/rpc.js +0 -2
  101. package/aleph/runtime.js +0 -2
  102. package/aleph/tx.js +0 -2
  103. package/aleph/types.js +0 -2
  104. package/astar/consts.js +0 -2
  105. package/astar/errors.js +0 -2
  106. package/astar/events.js +0 -2
  107. package/astar/index.js +0 -3
  108. package/astar/query.js +0 -2
  109. package/astar/rpc.js +0 -2
  110. package/astar/runtime.js +0 -2
  111. package/astar/tx.js +0 -2
  112. package/astar/types.js +0 -2
  113. package/cjs/aleph/consts.js +0 -3
  114. package/cjs/aleph/errors.js +0 -3
  115. package/cjs/aleph/events.js +0 -3
  116. package/cjs/aleph/index.js +0 -19
  117. package/cjs/aleph/query.js +0 -3
  118. package/cjs/aleph/rpc.js +0 -3
  119. package/cjs/aleph/runtime.js +0 -3
  120. package/cjs/aleph/tx.js +0 -3
  121. package/cjs/aleph/types.js +0 -3
  122. package/cjs/astar/consts.js +0 -3
  123. package/cjs/astar/errors.js +0 -3
  124. package/cjs/astar/events.js +0 -3
  125. package/cjs/astar/index.js +0 -19
  126. package/cjs/astar/query.js +0 -3
  127. package/cjs/astar/rpc.js +0 -3
  128. package/cjs/astar/runtime.js +0 -3
  129. package/cjs/astar/tx.js +0 -3
  130. package/cjs/astar/types.js +0 -3
  131. package/cjs/index.js +0 -2
  132. package/cjs/kusama/consts.js +0 -3
  133. package/cjs/kusama/errors.js +0 -3
  134. package/cjs/kusama/events.js +0 -3
  135. package/cjs/kusama/index.js +0 -19
  136. package/cjs/kusama/query.js +0 -3
  137. package/cjs/kusama/rpc.js +0 -3
  138. package/cjs/kusama/runtime.js +0 -3
  139. package/cjs/kusama/tx.js +0 -3
  140. package/cjs/kusama/types.js +0 -3
  141. package/cjs/kusamaAssetHub/consts.js +0 -3
  142. package/cjs/kusamaAssetHub/errors.js +0 -3
  143. package/cjs/kusamaAssetHub/events.js +0 -3
  144. package/cjs/kusamaAssetHub/index.js +0 -19
  145. package/cjs/kusamaAssetHub/query.js +0 -3
  146. package/cjs/kusamaAssetHub/rpc.js +0 -3
  147. package/cjs/kusamaAssetHub/runtime.js +0 -3
  148. package/cjs/kusamaAssetHub/tx.js +0 -3
  149. package/cjs/kusamaAssetHub/types.js +0 -3
  150. package/cjs/moonbeam/consts.js +0 -3
  151. package/cjs/moonbeam/errors.js +0 -3
  152. package/cjs/moonbeam/events.js +0 -3
  153. package/cjs/moonbeam/index.js +0 -19
  154. package/cjs/moonbeam/query.js +0 -3
  155. package/cjs/moonbeam/rpc.js +0 -3
  156. package/cjs/moonbeam/runtime.js +0 -3
  157. package/cjs/moonbeam/tx.js +0 -3
  158. package/cjs/moonbeam/types.js +0 -3
  159. package/cjs/package.json +0 -1
  160. package/cjs/packageInfo.js +0 -5
  161. package/cjs/polkadot/consts.js +0 -3
  162. package/cjs/polkadot/errors.js +0 -3
  163. package/cjs/polkadot/events.js +0 -3
  164. package/cjs/polkadot/index.js +0 -19
  165. package/cjs/polkadot/query.js +0 -3
  166. package/cjs/polkadot/rpc.js +0 -3
  167. package/cjs/polkadot/runtime.js +0 -3
  168. package/cjs/polkadot/tx.js +0 -3
  169. package/cjs/polkadot/types.js +0 -3
  170. package/cjs/polkadotAssetHub/consts.js +0 -3
  171. package/cjs/polkadotAssetHub/errors.js +0 -3
  172. package/cjs/polkadotAssetHub/events.js +0 -3
  173. package/cjs/polkadotAssetHub/index.js +0 -19
  174. package/cjs/polkadotAssetHub/query.js +0 -3
  175. package/cjs/polkadotAssetHub/rpc.js +0 -3
  176. package/cjs/polkadotAssetHub/runtime.js +0 -3
  177. package/cjs/polkadotAssetHub/tx.js +0 -3
  178. package/cjs/polkadotAssetHub/types.js +0 -3
  179. package/cjs/rococoAssetHub/consts.js +0 -3
  180. package/cjs/rococoAssetHub/errors.js +0 -3
  181. package/cjs/rococoAssetHub/events.js +0 -3
  182. package/cjs/rococoAssetHub/index.js +0 -19
  183. package/cjs/rococoAssetHub/query.js +0 -3
  184. package/cjs/rococoAssetHub/rpc.js +0 -3
  185. package/cjs/rococoAssetHub/runtime.js +0 -3
  186. package/cjs/rococoAssetHub/tx.js +0 -3
  187. package/cjs/rococoAssetHub/types.js +0 -3
  188. package/cjs/substrate/consts.js +0 -3
  189. package/cjs/substrate/errors.js +0 -3
  190. package/cjs/substrate/events.js +0 -3
  191. package/cjs/substrate/index.js +0 -19
  192. package/cjs/substrate/query.js +0 -3
  193. package/cjs/substrate/rpc.js +0 -3
  194. package/cjs/substrate/runtime.js +0 -3
  195. package/cjs/substrate/tx.js +0 -3
  196. package/cjs/substrate/types.js +0 -3
  197. package/cjs/westendAssetHub/consts.js +0 -3
  198. package/cjs/westendAssetHub/errors.js +0 -3
  199. package/cjs/westendAssetHub/events.js +0 -3
  200. package/cjs/westendAssetHub/index.js +0 -19
  201. package/cjs/westendAssetHub/query.js +0 -3
  202. package/cjs/westendAssetHub/rpc.js +0 -3
  203. package/cjs/westendAssetHub/runtime.js +0 -3
  204. package/cjs/westendAssetHub/tx.js +0 -3
  205. package/cjs/westendAssetHub/types.js +0 -3
  206. package/kusama/consts.js +0 -2
  207. package/kusama/errors.js +0 -2
  208. package/kusama/events.js +0 -2
  209. package/kusama/index.js +0 -3
  210. package/kusama/query.js +0 -2
  211. package/kusama/rpc.js +0 -2
  212. package/kusama/runtime.js +0 -2
  213. package/kusama/tx.js +0 -2
  214. package/kusama/types.js +0 -2
  215. package/kusamaAssetHub/consts.js +0 -2
  216. package/kusamaAssetHub/errors.js +0 -2
  217. package/kusamaAssetHub/events.js +0 -2
  218. package/kusamaAssetHub/index.js +0 -3
  219. package/kusamaAssetHub/query.js +0 -2
  220. package/kusamaAssetHub/rpc.js +0 -2
  221. package/kusamaAssetHub/runtime.js +0 -2
  222. package/kusamaAssetHub/tx.js +0 -2
  223. package/kusamaAssetHub/types.js +0 -2
  224. package/moonbeam/consts.js +0 -2
  225. package/moonbeam/errors.js +0 -2
  226. package/moonbeam/events.js +0 -2
  227. package/moonbeam/index.js +0 -3
  228. package/moonbeam/query.js +0 -2
  229. package/moonbeam/rpc.js +0 -2
  230. package/moonbeam/runtime.js +0 -2
  231. package/moonbeam/tx.js +0 -2
  232. package/moonbeam/types.js +0 -2
  233. package/polkadot/consts.js +0 -2
  234. package/polkadot/errors.js +0 -2
  235. package/polkadot/events.js +0 -2
  236. package/polkadot/index.js +0 -3
  237. package/polkadot/query.js +0 -2
  238. package/polkadot/rpc.js +0 -2
  239. package/polkadot/runtime.js +0 -2
  240. package/polkadot/tx.js +0 -2
  241. package/polkadot/types.js +0 -2
  242. package/polkadotAssetHub/consts.js +0 -2
  243. package/polkadotAssetHub/errors.js +0 -2
  244. package/polkadotAssetHub/events.js +0 -2
  245. package/polkadotAssetHub/index.js +0 -3
  246. package/polkadotAssetHub/query.js +0 -2
  247. package/polkadotAssetHub/rpc.js +0 -2
  248. package/polkadotAssetHub/runtime.js +0 -2
  249. package/polkadotAssetHub/tx.js +0 -2
  250. package/polkadotAssetHub/types.js +0 -2
  251. package/rococoAssetHub/consts.js +0 -2
  252. package/rococoAssetHub/errors.js +0 -2
  253. package/rococoAssetHub/events.js +0 -2
  254. package/rococoAssetHub/index.js +0 -3
  255. package/rococoAssetHub/query.js +0 -2
  256. package/rococoAssetHub/rpc.js +0 -2
  257. package/rococoAssetHub/runtime.js +0 -2
  258. package/rococoAssetHub/tx.js +0 -2
  259. package/rococoAssetHub/types.js +0 -2
  260. package/substrate/consts.js +0 -2
  261. package/substrate/errors.js +0 -2
  262. package/substrate/events.js +0 -2
  263. package/substrate/index.js +0 -3
  264. package/substrate/query.js +0 -2
  265. package/substrate/rpc.js +0 -2
  266. package/substrate/runtime.js +0 -2
  267. package/substrate/tx.js +0 -2
  268. package/substrate/types.js +0 -2
  269. package/westendAssetHub/consts.js +0 -2
  270. package/westendAssetHub/errors.js +0 -2
  271. package/westendAssetHub/events.js +0 -2
  272. package/westendAssetHub/index.js +0 -3
  273. package/westendAssetHub/query.js +0 -2
  274. package/westendAssetHub/rpc.js +0 -2
  275. package/westendAssetHub/runtime.js +0 -2
  276. package/westendAssetHub/tx.js +0 -2
  277. package/westendAssetHub/types.js +0 -2
package/aleph/events.d.ts CHANGED
@@ -1,997 +1,984 @@
1
+ // Generated by @dedot/codegen
2
+
1
3
  import type { GenericChainEvents, GenericPalletEvent } from '@dedot/types';
2
4
  import type { DispatchInfo, DispatchError, AccountId32, H256, FixedBytes, Result, Perbill, Bytes } from '@dedot/codecs';
3
- import type { FrameSupportTokensMiscBalanceStatus, PalletStakingValidatorPrefs, PalletStakingForcing, PrimitivesAppPublic, PrimitivesVersionChange, PrimitivesCommitteeSeats, PalletMultisigTimepoint, PalletContractsOrigin, PalletNominationPoolsPoolState, PalletNominationPoolsCommissionChangeRate, PrimitivesBanConfig, PrimitivesBanInfo } from './types';
5
+ import type {
6
+ FrameSupportTokensMiscBalanceStatus,
7
+ PalletStakingValidatorPrefs,
8
+ PalletStakingForcing,
9
+ PrimitivesAppPublic,
10
+ PrimitivesVersionChange,
11
+ PrimitivesCommitteeSeats,
12
+ PalletMultisigTimepoint,
13
+ PalletContractsOrigin,
14
+ PalletNominationPoolsPoolState,
15
+ PalletNominationPoolsCommissionChangeRate,
16
+ PrimitivesBanConfig,
17
+ PrimitivesBanInfo,
18
+ } from './types';
19
+
4
20
  export interface ChainEvents extends GenericChainEvents {
21
+ /**
22
+ * Pallet `System`'s events
23
+ **/
24
+ system: {
5
25
  /**
6
- * Pallet `System`'s events
26
+ * An extrinsic completed successfully.
7
27
  **/
8
- system: {
9
- /**
10
- * An extrinsic completed successfully.
11
- **/
12
- ExtrinsicSuccess: GenericPalletEvent<'System', 'ExtrinsicSuccess', {
13
- dispatchInfo: DispatchInfo;
14
- }>;
15
- /**
16
- * An extrinsic failed.
17
- **/
18
- ExtrinsicFailed: GenericPalletEvent<'System', 'ExtrinsicFailed', {
19
- dispatchError: DispatchError;
20
- dispatchInfo: DispatchInfo;
21
- }>;
22
- /**
23
- * `:code` was updated.
24
- **/
25
- CodeUpdated: GenericPalletEvent<'System', 'CodeUpdated', null>;
26
- /**
27
- * A new account was created.
28
- **/
29
- NewAccount: GenericPalletEvent<'System', 'NewAccount', {
30
- account: AccountId32;
31
- }>;
32
- /**
33
- * An account was reaped.
34
- **/
35
- KilledAccount: GenericPalletEvent<'System', 'KilledAccount', {
36
- account: AccountId32;
37
- }>;
38
- /**
39
- * On on-chain remark happened.
40
- **/
41
- Remarked: GenericPalletEvent<'System', 'Remarked', {
42
- sender: AccountId32;
43
- hash: H256;
44
- }>;
45
- /**
46
- * Generic pallet event
47
- **/
48
- [prop: string]: GenericPalletEvent;
49
- };
28
+ ExtrinsicSuccess: GenericPalletEvent<'System', 'ExtrinsicSuccess', { dispatchInfo: DispatchInfo }>;
29
+
50
30
  /**
51
- * Pallet `Scheduler`'s events
31
+ * An extrinsic failed.
52
32
  **/
53
- scheduler: {
54
- /**
55
- * Scheduled some task.
56
- **/
57
- Scheduled: GenericPalletEvent<'Scheduler', 'Scheduled', {
58
- when: number;
59
- index: number;
60
- }>;
61
- /**
62
- * Canceled some task.
63
- **/
64
- Canceled: GenericPalletEvent<'Scheduler', 'Canceled', {
65
- when: number;
66
- index: number;
67
- }>;
68
- /**
69
- * Dispatched some task.
70
- **/
71
- Dispatched: GenericPalletEvent<'Scheduler', 'Dispatched', {
72
- task: [number, number];
73
- id?: FixedBytes<32> | undefined;
74
- result: Result<[], DispatchError>;
75
- }>;
76
- /**
77
- * The call for the provided hash was not found so the task has been aborted.
78
- **/
79
- CallUnavailable: GenericPalletEvent<'Scheduler', 'CallUnavailable', {
80
- task: [number, number];
81
- id?: FixedBytes<32> | undefined;
82
- }>;
83
- /**
84
- * The given task was unable to be renewed since the agenda is full at that block.
85
- **/
86
- PeriodicFailed: GenericPalletEvent<'Scheduler', 'PeriodicFailed', {
87
- task: [number, number];
88
- id?: FixedBytes<32> | undefined;
89
- }>;
90
- /**
91
- * The given task can never be executed since it is overweight.
92
- **/
93
- PermanentlyOverweight: GenericPalletEvent<'Scheduler', 'PermanentlyOverweight', {
94
- task: [number, number];
95
- id?: FixedBytes<32> | undefined;
96
- }>;
97
- /**
98
- * Generic pallet event
99
- **/
100
- [prop: string]: GenericPalletEvent;
101
- };
33
+ ExtrinsicFailed: GenericPalletEvent<
34
+ 'System',
35
+ 'ExtrinsicFailed',
36
+ { dispatchError: DispatchError; dispatchInfo: DispatchInfo }
37
+ >;
38
+
102
39
  /**
103
- * Pallet `Balances`'s events
40
+ * `:code` was updated.
104
41
  **/
105
- balances: {
106
- /**
107
- * An account was created with some free balance.
108
- **/
109
- Endowed: GenericPalletEvent<'Balances', 'Endowed', {
110
- account: AccountId32;
111
- freeBalance: bigint;
112
- }>;
113
- /**
114
- * An account was removed whose balance was non-zero but below ExistentialDeposit,
115
- * resulting in an outright loss.
116
- **/
117
- DustLost: GenericPalletEvent<'Balances', 'DustLost', {
118
- account: AccountId32;
119
- amount: bigint;
120
- }>;
121
- /**
122
- * Transfer succeeded.
123
- **/
124
- Transfer: GenericPalletEvent<'Balances', 'Transfer', {
125
- from: AccountId32;
126
- to: AccountId32;
127
- amount: bigint;
128
- }>;
129
- /**
130
- * A balance was set by root.
131
- **/
132
- BalanceSet: GenericPalletEvent<'Balances', 'BalanceSet', {
133
- who: AccountId32;
134
- free: bigint;
135
- }>;
136
- /**
137
- * Some balance was reserved (moved from free to reserved).
138
- **/
139
- Reserved: GenericPalletEvent<'Balances', 'Reserved', {
140
- who: AccountId32;
141
- amount: bigint;
142
- }>;
143
- /**
144
- * Some balance was unreserved (moved from reserved to free).
145
- **/
146
- Unreserved: GenericPalletEvent<'Balances', 'Unreserved', {
147
- who: AccountId32;
148
- amount: bigint;
149
- }>;
150
- /**
151
- * Some balance was moved from the reserve of the first account to the second account.
152
- * Final argument indicates the destination balance type.
153
- **/
154
- ReserveRepatriated: GenericPalletEvent<'Balances', 'ReserveRepatriated', {
155
- from: AccountId32;
156
- to: AccountId32;
157
- amount: bigint;
158
- destinationStatus: FrameSupportTokensMiscBalanceStatus;
159
- }>;
160
- /**
161
- * Some amount was deposited (e.g. for transaction fees).
162
- **/
163
- Deposit: GenericPalletEvent<'Balances', 'Deposit', {
164
- who: AccountId32;
165
- amount: bigint;
166
- }>;
167
- /**
168
- * Some amount was withdrawn from the account (e.g. for transaction fees).
169
- **/
170
- Withdraw: GenericPalletEvent<'Balances', 'Withdraw', {
171
- who: AccountId32;
172
- amount: bigint;
173
- }>;
174
- /**
175
- * Some amount was removed from the account (e.g. for misbehavior).
176
- **/
177
- Slashed: GenericPalletEvent<'Balances', 'Slashed', {
178
- who: AccountId32;
179
- amount: bigint;
180
- }>;
181
- /**
182
- * Some amount was minted into an account.
183
- **/
184
- Minted: GenericPalletEvent<'Balances', 'Minted', {
185
- who: AccountId32;
186
- amount: bigint;
187
- }>;
188
- /**
189
- * Some amount was burned from an account.
190
- **/
191
- Burned: GenericPalletEvent<'Balances', 'Burned', {
192
- who: AccountId32;
193
- amount: bigint;
194
- }>;
195
- /**
196
- * Some amount was suspended from an account (it can be restored later).
197
- **/
198
- Suspended: GenericPalletEvent<'Balances', 'Suspended', {
199
- who: AccountId32;
200
- amount: bigint;
201
- }>;
202
- /**
203
- * Some amount was restored into an account.
204
- **/
205
- Restored: GenericPalletEvent<'Balances', 'Restored', {
206
- who: AccountId32;
207
- amount: bigint;
208
- }>;
209
- /**
210
- * An account was upgraded.
211
- **/
212
- Upgraded: GenericPalletEvent<'Balances', 'Upgraded', {
213
- who: AccountId32;
214
- }>;
215
- /**
216
- * Total issuance was increased by `amount`, creating a credit to be balanced.
217
- **/
218
- Issued: GenericPalletEvent<'Balances', 'Issued', {
219
- amount: bigint;
220
- }>;
221
- /**
222
- * Total issuance was decreased by `amount`, creating a debt to be balanced.
223
- **/
224
- Rescinded: GenericPalletEvent<'Balances', 'Rescinded', {
225
- amount: bigint;
226
- }>;
227
- /**
228
- * Some balance was locked.
229
- **/
230
- Locked: GenericPalletEvent<'Balances', 'Locked', {
231
- who: AccountId32;
232
- amount: bigint;
233
- }>;
234
- /**
235
- * Some balance was unlocked.
236
- **/
237
- Unlocked: GenericPalletEvent<'Balances', 'Unlocked', {
238
- who: AccountId32;
239
- amount: bigint;
240
- }>;
241
- /**
242
- * Some balance was frozen.
243
- **/
244
- Frozen: GenericPalletEvent<'Balances', 'Frozen', {
245
- who: AccountId32;
246
- amount: bigint;
247
- }>;
248
- /**
249
- * Some balance was thawed.
250
- **/
251
- Thawed: GenericPalletEvent<'Balances', 'Thawed', {
252
- who: AccountId32;
253
- amount: bigint;
254
- }>;
255
- /**
256
- * Generic pallet event
257
- **/
258
- [prop: string]: GenericPalletEvent;
259
- };
42
+ CodeUpdated: GenericPalletEvent<'System', 'CodeUpdated', null>;
43
+
260
44
  /**
261
- * Pallet `TransactionPayment`'s events
45
+ * A new account was created.
262
46
  **/
263
- transactionPayment: {
264
- /**
265
- * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
266
- * has been paid by `who`.
267
- **/
268
- TransactionFeePaid: GenericPalletEvent<'TransactionPayment', 'TransactionFeePaid', {
269
- who: AccountId32;
270
- actualFee: bigint;
271
- tip: bigint;
272
- }>;
273
- /**
274
- * Generic pallet event
275
- **/
276
- [prop: string]: GenericPalletEvent;
277
- };
47
+ NewAccount: GenericPalletEvent<'System', 'NewAccount', { account: AccountId32 }>;
48
+
278
49
  /**
279
- * Pallet `Staking`'s events
50
+ * An account was reaped.
280
51
  **/
281
- staking: {
282
- /**
283
- * The era payout has been set; the first balance is the validator-payout; the second is
284
- * the remainder from the maximum amount of reward.
285
- **/
286
- EraPaid: GenericPalletEvent<'Staking', 'EraPaid', {
287
- eraIndex: number;
288
- validatorPayout: bigint;
289
- remainder: bigint;
290
- }>;
291
- /**
292
- * The nominator has been rewarded by this amount.
293
- **/
294
- Rewarded: GenericPalletEvent<'Staking', 'Rewarded', {
295
- stash: AccountId32;
296
- amount: bigint;
297
- }>;
298
- /**
299
- * A staker (validator or nominator) has been slashed by the given amount.
300
- **/
301
- Slashed: GenericPalletEvent<'Staking', 'Slashed', {
302
- staker: AccountId32;
303
- amount: bigint;
304
- }>;
305
- /**
306
- * A slash for the given validator, for the given percentage of their stake, at the given
307
- * era as been reported.
308
- **/
309
- SlashReported: GenericPalletEvent<'Staking', 'SlashReported', {
310
- validator: AccountId32;
311
- fraction: Perbill;
312
- slashEra: number;
313
- }>;
314
- /**
315
- * An old slashing report from a prior era was discarded because it could
316
- * not be processed.
317
- **/
318
- OldSlashingReportDiscarded: GenericPalletEvent<'Staking', 'OldSlashingReportDiscarded', {
319
- sessionIndex: number;
320
- }>;
321
- /**
322
- * A new set of stakers was elected.
323
- **/
324
- StakersElected: GenericPalletEvent<'Staking', 'StakersElected', null>;
325
- /**
326
- * An account has bonded this amount. \[stash, amount\]
327
- *
328
- * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
329
- * it will not be emitted for staking rewards when they are added to stake.
330
- **/
331
- Bonded: GenericPalletEvent<'Staking', 'Bonded', {
332
- stash: AccountId32;
333
- amount: bigint;
334
- }>;
335
- /**
336
- * An account has unbonded this amount.
337
- **/
338
- Unbonded: GenericPalletEvent<'Staking', 'Unbonded', {
339
- stash: AccountId32;
340
- amount: bigint;
341
- }>;
342
- /**
343
- * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
344
- * from the unlocking queue.
345
- **/
346
- Withdrawn: GenericPalletEvent<'Staking', 'Withdrawn', {
347
- stash: AccountId32;
348
- amount: bigint;
349
- }>;
350
- /**
351
- * A nominator has been kicked from a validator.
352
- **/
353
- Kicked: GenericPalletEvent<'Staking', 'Kicked', {
354
- nominator: AccountId32;
355
- stash: AccountId32;
356
- }>;
357
- /**
358
- * The election failed. No new era is planned.
359
- **/
360
- StakingElectionFailed: GenericPalletEvent<'Staking', 'StakingElectionFailed', null>;
361
- /**
362
- * An account has stopped participating as either a validator or nominator.
363
- **/
364
- Chilled: GenericPalletEvent<'Staking', 'Chilled', {
365
- stash: AccountId32;
366
- }>;
367
- /**
368
- * The stakers' rewards are getting paid.
369
- **/
370
- PayoutStarted: GenericPalletEvent<'Staking', 'PayoutStarted', {
371
- eraIndex: number;
372
- validatorStash: AccountId32;
373
- }>;
374
- /**
375
- * A validator has set their preferences.
376
- **/
377
- ValidatorPrefsSet: GenericPalletEvent<'Staking', 'ValidatorPrefsSet', {
378
- stash: AccountId32;
379
- prefs: PalletStakingValidatorPrefs;
380
- }>;
381
- /**
382
- * A new force era mode was set.
383
- **/
384
- ForceEra: GenericPalletEvent<'Staking', 'ForceEra', {
385
- mode: PalletStakingForcing;
386
- }>;
387
- /**
388
- * Generic pallet event
389
- **/
390
- [prop: string]: GenericPalletEvent;
391
- };
52
+ KilledAccount: GenericPalletEvent<'System', 'KilledAccount', { account: AccountId32 }>;
53
+
392
54
  /**
393
- * Pallet `Session`'s events
55
+ * On on-chain remark happened.
394
56
  **/
395
- session: {
396
- /**
397
- * New session has happened. Note that the argument is the session index, not the
398
- * block number as the type might suggest.
399
- **/
400
- NewSession: GenericPalletEvent<'Session', 'NewSession', {
401
- sessionIndex: number;
402
- }>;
403
- /**
404
- * Generic pallet event
405
- **/
406
- [prop: string]: GenericPalletEvent;
407
- };
57
+ Remarked: GenericPalletEvent<'System', 'Remarked', { sender: AccountId32; hash: H256 }>;
58
+
408
59
  /**
409
- * Pallet `Aleph`'s events
60
+ * Generic pallet event
410
61
  **/
411
- aleph: {
412
- ChangeEmergencyFinalizer: GenericPalletEvent<'Aleph', 'ChangeEmergencyFinalizer', PrimitivesAppPublic>;
413
- ScheduleFinalityVersionChange: GenericPalletEvent<'Aleph', 'ScheduleFinalityVersionChange', PrimitivesVersionChange>;
414
- FinalityVersionChange: GenericPalletEvent<'Aleph', 'FinalityVersionChange', PrimitivesVersionChange>;
415
- /**
416
- * Generic pallet event
417
- **/
418
- [prop: string]: GenericPalletEvent;
419
- };
62
+ [prop: string]: GenericPalletEvent;
63
+ };
64
+ /**
65
+ * Pallet `Scheduler`'s events
66
+ **/
67
+ scheduler: {
420
68
  /**
421
- * Pallet `Elections`'s events
69
+ * Scheduled some task.
422
70
  **/
423
- elections: {
424
- /**
425
- * Committee for the next era has changed
426
- **/
427
- ChangeValidators: GenericPalletEvent<'Elections', 'ChangeValidators', [
428
- Array<AccountId32>,
429
- Array<AccountId32>,
430
- PrimitivesCommitteeSeats
431
- ]>;
432
- /**
433
- * Generic pallet event
434
- **/
435
- [prop: string]: GenericPalletEvent;
436
- };
71
+ Scheduled: GenericPalletEvent<'Scheduler', 'Scheduled', { when: number; index: number }>;
72
+
437
73
  /**
438
- * Pallet `Treasury`'s events
74
+ * Canceled some task.
439
75
  **/
440
- treasury: {
441
- /**
442
- * New proposal.
443
- **/
444
- Proposed: GenericPalletEvent<'Treasury', 'Proposed', {
445
- proposalIndex: number;
446
- }>;
447
- /**
448
- * We have ended a spend period and will now allocate funds.
449
- **/
450
- Spending: GenericPalletEvent<'Treasury', 'Spending', {
451
- budgetRemaining: bigint;
452
- }>;
453
- /**
454
- * Some funds have been allocated.
455
- **/
456
- Awarded: GenericPalletEvent<'Treasury', 'Awarded', {
457
- proposalIndex: number;
458
- award: bigint;
459
- account: AccountId32;
460
- }>;
461
- /**
462
- * A proposal was rejected; funds were slashed.
463
- **/
464
- Rejected: GenericPalletEvent<'Treasury', 'Rejected', {
465
- proposalIndex: number;
466
- slashed: bigint;
467
- }>;
468
- /**
469
- * Some of our funds have been burnt.
470
- **/
471
- Burnt: GenericPalletEvent<'Treasury', 'Burnt', {
472
- burntFunds: bigint;
473
- }>;
474
- /**
475
- * Spending has finished; this is the amount that rolls over until next spend.
476
- **/
477
- Rollover: GenericPalletEvent<'Treasury', 'Rollover', {
478
- rolloverBalance: bigint;
479
- }>;
480
- /**
481
- * Some funds have been deposited.
482
- **/
483
- Deposit: GenericPalletEvent<'Treasury', 'Deposit', {
484
- value: bigint;
485
- }>;
486
- /**
487
- * A new spend proposal has been approved.
488
- **/
489
- SpendApproved: GenericPalletEvent<'Treasury', 'SpendApproved', {
490
- proposalIndex: number;
491
- amount: bigint;
492
- beneficiary: AccountId32;
493
- }>;
494
- /**
495
- * The inactive funds of the pallet have been updated.
496
- **/
497
- UpdatedInactive: GenericPalletEvent<'Treasury', 'UpdatedInactive', {
498
- reactivated: bigint;
499
- deactivated: bigint;
500
- }>;
501
- /**
502
- * Generic pallet event
503
- **/
504
- [prop: string]: GenericPalletEvent;
505
- };
76
+ Canceled: GenericPalletEvent<'Scheduler', 'Canceled', { when: number; index: number }>;
77
+
506
78
  /**
507
- * Pallet `Vesting`'s events
79
+ * Dispatched some task.
508
80
  **/
509
- vesting: {
510
- /**
511
- * The amount vested has been updated. This could indicate a change in funds available.
512
- * The balance given is the amount which is left unvested (and thus locked).
513
- **/
514
- VestingUpdated: GenericPalletEvent<'Vesting', 'VestingUpdated', {
515
- account: AccountId32;
516
- unvested: bigint;
517
- }>;
518
- /**
519
- * An \[account\] has become fully vested.
520
- **/
521
- VestingCompleted: GenericPalletEvent<'Vesting', 'VestingCompleted', {
522
- account: AccountId32;
523
- }>;
524
- /**
525
- * Generic pallet event
526
- **/
527
- [prop: string]: GenericPalletEvent;
528
- };
81
+ Dispatched: GenericPalletEvent<
82
+ 'Scheduler',
83
+ 'Dispatched',
84
+ { task: [number, number]; id?: FixedBytes<32> | undefined; result: Result<[], DispatchError> }
85
+ >;
86
+
529
87
  /**
530
- * Pallet `Utility`'s events
88
+ * The call for the provided hash was not found so the task has been aborted.
531
89
  **/
532
- utility: {
533
- /**
534
- * Batch of dispatches did not complete fully. Index of first failing dispatch given, as
535
- * well as the error.
536
- **/
537
- BatchInterrupted: GenericPalletEvent<'Utility', 'BatchInterrupted', {
538
- index: number;
539
- error: DispatchError;
540
- }>;
541
- /**
542
- * Batch of dispatches completed fully with no error.
543
- **/
544
- BatchCompleted: GenericPalletEvent<'Utility', 'BatchCompleted', null>;
545
- /**
546
- * Batch of dispatches completed but has errors.
547
- **/
548
- BatchCompletedWithErrors: GenericPalletEvent<'Utility', 'BatchCompletedWithErrors', null>;
549
- /**
550
- * A single item within a Batch of dispatches has completed with no error.
551
- **/
552
- ItemCompleted: GenericPalletEvent<'Utility', 'ItemCompleted', null>;
553
- /**
554
- * A single item within a Batch of dispatches has completed with error.
555
- **/
556
- ItemFailed: GenericPalletEvent<'Utility', 'ItemFailed', {
557
- error: DispatchError;
558
- }>;
559
- /**
560
- * A call was dispatched.
561
- **/
562
- DispatchedAs: GenericPalletEvent<'Utility', 'DispatchedAs', {
563
- result: Result<[], DispatchError>;
564
- }>;
565
- /**
566
- * Generic pallet event
567
- **/
568
- [prop: string]: GenericPalletEvent;
569
- };
90
+ CallUnavailable: GenericPalletEvent<
91
+ 'Scheduler',
92
+ 'CallUnavailable',
93
+ { task: [number, number]; id?: FixedBytes<32> | undefined }
94
+ >;
95
+
570
96
  /**
571
- * Pallet `Multisig`'s events
97
+ * The given task was unable to be renewed since the agenda is full at that block.
572
98
  **/
573
- multisig: {
574
- /**
575
- * A new multisig operation has begun.
576
- **/
577
- NewMultisig: GenericPalletEvent<'Multisig', 'NewMultisig', {
578
- approving: AccountId32;
579
- multisig: AccountId32;
580
- callHash: FixedBytes<32>;
581
- }>;
582
- /**
583
- * A multisig operation has been approved by someone.
584
- **/
585
- MultisigApproval: GenericPalletEvent<'Multisig', 'MultisigApproval', {
586
- approving: AccountId32;
587
- timepoint: PalletMultisigTimepoint;
588
- multisig: AccountId32;
589
- callHash: FixedBytes<32>;
590
- }>;
591
- /**
592
- * A multisig operation has been executed.
593
- **/
594
- MultisigExecuted: GenericPalletEvent<'Multisig', 'MultisigExecuted', {
595
- approving: AccountId32;
596
- timepoint: PalletMultisigTimepoint;
597
- multisig: AccountId32;
598
- callHash: FixedBytes<32>;
599
- result: Result<[], DispatchError>;
600
- }>;
601
- /**
602
- * A multisig operation has been cancelled.
603
- **/
604
- MultisigCancelled: GenericPalletEvent<'Multisig', 'MultisigCancelled', {
605
- cancelling: AccountId32;
606
- timepoint: PalletMultisigTimepoint;
607
- multisig: AccountId32;
608
- callHash: FixedBytes<32>;
609
- }>;
610
- /**
611
- * Generic pallet event
612
- **/
613
- [prop: string]: GenericPalletEvent;
614
- };
99
+ PeriodicFailed: GenericPalletEvent<
100
+ 'Scheduler',
101
+ 'PeriodicFailed',
102
+ { task: [number, number]; id?: FixedBytes<32> | undefined }
103
+ >;
104
+
615
105
  /**
616
- * Pallet `Sudo`'s events
106
+ * The given task can never be executed since it is overweight.
617
107
  **/
618
- sudo: {
619
- /**
620
- * A sudo just took place. \[result\]
621
- **/
622
- Sudid: GenericPalletEvent<'Sudo', 'Sudid', {
623
- sudoResult: Result<[], DispatchError>;
624
- }>;
625
- /**
626
- * The \[sudoer\] just switched identity; the old key is supplied if one existed.
627
- **/
628
- KeyChanged: GenericPalletEvent<'Sudo', 'KeyChanged', {
629
- oldSudoer?: AccountId32 | undefined;
630
- }>;
631
- /**
632
- * A sudo just took place. \[result\]
633
- **/
634
- SudoAsDone: GenericPalletEvent<'Sudo', 'SudoAsDone', {
635
- sudoResult: Result<[], DispatchError>;
636
- }>;
637
- /**
638
- * Generic pallet event
639
- **/
640
- [prop: string]: GenericPalletEvent;
641
- };
108
+ PermanentlyOverweight: GenericPalletEvent<
109
+ 'Scheduler',
110
+ 'PermanentlyOverweight',
111
+ { task: [number, number]; id?: FixedBytes<32> | undefined }
112
+ >;
113
+
642
114
  /**
643
- * Pallet `Contracts`'s events
115
+ * Generic pallet event
644
116
  **/
645
- contracts: {
646
- /**
647
- * Contract deployed by address at the specified address.
648
- **/
649
- Instantiated: GenericPalletEvent<'Contracts', 'Instantiated', {
650
- deployer: AccountId32;
651
- contract: AccountId32;
652
- }>;
653
- /**
654
- * Contract has been removed.
655
- *
656
- * # Note
657
- *
658
- * The only way for a contract to be removed and emitting this event is by calling
659
- * `seal_terminate`.
660
- **/
661
- Terminated: GenericPalletEvent<'Contracts', 'Terminated', {
662
- /**
663
- * The contract that was terminated.
664
- **/
665
- contract: AccountId32;
666
- /**
667
- * The account that received the contracts remaining balance
668
- **/
669
- beneficiary: AccountId32;
670
- }>;
671
- /**
672
- * Code with the specified hash has been stored.
673
- **/
674
- CodeStored: GenericPalletEvent<'Contracts', 'CodeStored', {
675
- codeHash: H256;
676
- }>;
677
- /**
678
- * A custom event emitted by the contract.
679
- **/
680
- ContractEmitted: GenericPalletEvent<'Contracts', 'ContractEmitted', {
681
- /**
682
- * The contract that emitted the event.
683
- **/
684
- contract: AccountId32;
685
- /**
686
- * Data supplied by the contract. Metadata generated during contract compilation
687
- * is needed to decode it.
688
- **/
689
- data: Bytes;
690
- }>;
691
- /**
692
- * A code with the specified hash was removed.
693
- **/
694
- CodeRemoved: GenericPalletEvent<'Contracts', 'CodeRemoved', {
695
- codeHash: H256;
696
- }>;
697
- /**
698
- * A contract's code was updated.
699
- **/
700
- ContractCodeUpdated: GenericPalletEvent<'Contracts', 'ContractCodeUpdated', {
701
- /**
702
- * The contract that has been updated.
703
- **/
704
- contract: AccountId32;
705
- /**
706
- * New code hash that was set for the contract.
707
- **/
708
- newCodeHash: H256;
709
- /**
710
- * Previous code hash of the contract.
711
- **/
712
- oldCodeHash: H256;
713
- }>;
714
- /**
715
- * A contract was called either by a plain account or another contract.
716
- *
717
- * # Note
718
- *
719
- * Please keep in mind that like all events this is only emitted for successful
720
- * calls. This is because on failure all storage changes including events are
721
- * rolled back.
722
- **/
723
- Called: GenericPalletEvent<'Contracts', 'Called', {
724
- /**
725
- * The caller of the `contract`.
726
- **/
727
- caller: PalletContractsOrigin;
728
- /**
729
- * The contract that was called.
730
- **/
731
- contract: AccountId32;
732
- }>;
733
- /**
734
- * A contract delegate called a code hash.
735
- *
736
- * # Note
737
- *
738
- * Please keep in mind that like all events this is only emitted for successful
739
- * calls. This is because on failure all storage changes including events are
740
- * rolled back.
741
- **/
742
- DelegateCalled: GenericPalletEvent<'Contracts', 'DelegateCalled', {
743
- /**
744
- * The contract that performed the delegate call and hence in whose context
745
- * the `code_hash` is executed.
746
- **/
747
- contract: AccountId32;
748
- /**
749
- * The code hash that was delegate called.
750
- **/
751
- codeHash: H256;
752
- }>;
753
- /**
754
- * Generic pallet event
755
- **/
756
- [prop: string]: GenericPalletEvent;
757
- };
117
+ [prop: string]: GenericPalletEvent;
118
+ };
119
+ /**
120
+ * Pallet `Balances`'s events
121
+ **/
122
+ balances: {
758
123
  /**
759
- * Pallet `NominationPools`'s events
124
+ * An account was created with some free balance.
760
125
  **/
761
- nominationPools: {
762
- /**
763
- * A pool has been created.
764
- **/
765
- Created: GenericPalletEvent<'NominationPools', 'Created', {
766
- depositor: AccountId32;
767
- poolId: number;
768
- }>;
769
- /**
770
- * A member has became bonded in a pool.
771
- **/
772
- Bonded: GenericPalletEvent<'NominationPools', 'Bonded', {
773
- member: AccountId32;
774
- poolId: number;
775
- bonded: bigint;
776
- joined: boolean;
777
- }>;
778
- /**
779
- * A payout has been made to a member.
780
- **/
781
- PaidOut: GenericPalletEvent<'NominationPools', 'PaidOut', {
782
- member: AccountId32;
783
- poolId: number;
784
- payout: bigint;
785
- }>;
786
- /**
787
- * A member has unbonded from their pool.
788
- *
789
- * - `balance` is the corresponding balance of the number of points that has been
790
- * requested to be unbonded (the argument of the `unbond` transaction) from the bonded
791
- * pool.
792
- * - `points` is the number of points that are issued as a result of `balance` being
793
- * dissolved into the corresponding unbonding pool.
794
- * - `era` is the era in which the balance will be unbonded.
795
- * In the absence of slashing, these values will match. In the presence of slashing, the
796
- * number of points that are issued in the unbonding pool will be less than the amount
797
- * requested to be unbonded.
798
- **/
799
- Unbonded: GenericPalletEvent<'NominationPools', 'Unbonded', {
800
- member: AccountId32;
801
- poolId: number;
802
- balance: bigint;
803
- points: bigint;
804
- era: number;
805
- }>;
806
- /**
807
- * A member has withdrawn from their pool.
808
- *
809
- * The given number of `points` have been dissolved in return of `balance`.
810
- *
811
- * Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance
812
- * will be 1.
813
- **/
814
- Withdrawn: GenericPalletEvent<'NominationPools', 'Withdrawn', {
815
- member: AccountId32;
816
- poolId: number;
817
- balance: bigint;
818
- points: bigint;
819
- }>;
820
- /**
821
- * A pool has been destroyed.
822
- **/
823
- Destroyed: GenericPalletEvent<'NominationPools', 'Destroyed', {
824
- poolId: number;
825
- }>;
826
- /**
827
- * The state of a pool has changed
828
- **/
829
- StateChanged: GenericPalletEvent<'NominationPools', 'StateChanged', {
830
- poolId: number;
831
- newState: PalletNominationPoolsPoolState;
832
- }>;
833
- /**
834
- * A member has been removed from a pool.
835
- *
836
- * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
837
- **/
838
- MemberRemoved: GenericPalletEvent<'NominationPools', 'MemberRemoved', {
839
- poolId: number;
840
- member: AccountId32;
841
- }>;
842
- /**
843
- * The roles of a pool have been updated to the given new roles. Note that the depositor
844
- * can never change.
845
- **/
846
- RolesUpdated: GenericPalletEvent<'NominationPools', 'RolesUpdated', {
847
- root?: AccountId32 | undefined;
848
- bouncer?: AccountId32 | undefined;
849
- nominator?: AccountId32 | undefined;
850
- }>;
851
- /**
852
- * The active balance of pool `pool_id` has been slashed to `balance`.
853
- **/
854
- PoolSlashed: GenericPalletEvent<'NominationPools', 'PoolSlashed', {
855
- poolId: number;
856
- balance: bigint;
857
- }>;
858
- /**
859
- * The unbond pool at `era` of pool `pool_id` has been slashed to `balance`.
860
- **/
861
- UnbondingPoolSlashed: GenericPalletEvent<'NominationPools', 'UnbondingPoolSlashed', {
862
- poolId: number;
863
- era: number;
864
- balance: bigint;
865
- }>;
866
- /**
867
- * A pool's commission setting has been changed.
868
- **/
869
- PoolCommissionUpdated: GenericPalletEvent<'NominationPools', 'PoolCommissionUpdated', {
870
- poolId: number;
871
- current?: [Perbill, AccountId32] | undefined;
872
- }>;
873
- /**
874
- * A pool's maximum commission setting has been changed.
875
- **/
876
- PoolMaxCommissionUpdated: GenericPalletEvent<'NominationPools', 'PoolMaxCommissionUpdated', {
877
- poolId: number;
878
- maxCommission: Perbill;
879
- }>;
880
- /**
881
- * A pool's commission `change_rate` has been changed.
882
- **/
883
- PoolCommissionChangeRateUpdated: GenericPalletEvent<'NominationPools', 'PoolCommissionChangeRateUpdated', {
884
- poolId: number;
885
- changeRate: PalletNominationPoolsCommissionChangeRate;
886
- }>;
887
- /**
888
- * Pool commission has been claimed.
889
- **/
890
- PoolCommissionClaimed: GenericPalletEvent<'NominationPools', 'PoolCommissionClaimed', {
891
- poolId: number;
892
- commission: bigint;
893
- }>;
894
- /**
895
- * Generic pallet event
896
- **/
897
- [prop: string]: GenericPalletEvent;
898
- };
126
+ Endowed: GenericPalletEvent<'Balances', 'Endowed', { account: AccountId32; freeBalance: bigint }>;
127
+
899
128
  /**
900
- * Pallet `Identity`'s events
129
+ * An account was removed whose balance was non-zero but below ExistentialDeposit,
130
+ * resulting in an outright loss.
901
131
  **/
902
- identity: {
903
- /**
904
- * A name was set or reset (which will remove all judgements).
905
- **/
906
- IdentitySet: GenericPalletEvent<'Identity', 'IdentitySet', {
907
- who: AccountId32;
908
- }>;
909
- /**
910
- * A name was cleared, and the given balance returned.
911
- **/
912
- IdentityCleared: GenericPalletEvent<'Identity', 'IdentityCleared', {
913
- who: AccountId32;
914
- deposit: bigint;
915
- }>;
132
+ DustLost: GenericPalletEvent<'Balances', 'DustLost', { account: AccountId32; amount: bigint }>;
133
+
134
+ /**
135
+ * Transfer succeeded.
136
+ **/
137
+ Transfer: GenericPalletEvent<'Balances', 'Transfer', { from: AccountId32; to: AccountId32; amount: bigint }>;
138
+
139
+ /**
140
+ * A balance was set by root.
141
+ **/
142
+ BalanceSet: GenericPalletEvent<'Balances', 'BalanceSet', { who: AccountId32; free: bigint }>;
143
+
144
+ /**
145
+ * Some balance was reserved (moved from free to reserved).
146
+ **/
147
+ Reserved: GenericPalletEvent<'Balances', 'Reserved', { who: AccountId32; amount: bigint }>;
148
+
149
+ /**
150
+ * Some balance was unreserved (moved from reserved to free).
151
+ **/
152
+ Unreserved: GenericPalletEvent<'Balances', 'Unreserved', { who: AccountId32; amount: bigint }>;
153
+
154
+ /**
155
+ * Some balance was moved from the reserve of the first account to the second account.
156
+ * Final argument indicates the destination balance type.
157
+ **/
158
+ ReserveRepatriated: GenericPalletEvent<
159
+ 'Balances',
160
+ 'ReserveRepatriated',
161
+ { from: AccountId32; to: AccountId32; amount: bigint; destinationStatus: FrameSupportTokensMiscBalanceStatus }
162
+ >;
163
+
164
+ /**
165
+ * Some amount was deposited (e.g. for transaction fees).
166
+ **/
167
+ Deposit: GenericPalletEvent<'Balances', 'Deposit', { who: AccountId32; amount: bigint }>;
168
+
169
+ /**
170
+ * Some amount was withdrawn from the account (e.g. for transaction fees).
171
+ **/
172
+ Withdraw: GenericPalletEvent<'Balances', 'Withdraw', { who: AccountId32; amount: bigint }>;
173
+
174
+ /**
175
+ * Some amount was removed from the account (e.g. for misbehavior).
176
+ **/
177
+ Slashed: GenericPalletEvent<'Balances', 'Slashed', { who: AccountId32; amount: bigint }>;
178
+
179
+ /**
180
+ * Some amount was minted into an account.
181
+ **/
182
+ Minted: GenericPalletEvent<'Balances', 'Minted', { who: AccountId32; amount: bigint }>;
183
+
184
+ /**
185
+ * Some amount was burned from an account.
186
+ **/
187
+ Burned: GenericPalletEvent<'Balances', 'Burned', { who: AccountId32; amount: bigint }>;
188
+
189
+ /**
190
+ * Some amount was suspended from an account (it can be restored later).
191
+ **/
192
+ Suspended: GenericPalletEvent<'Balances', 'Suspended', { who: AccountId32; amount: bigint }>;
193
+
194
+ /**
195
+ * Some amount was restored into an account.
196
+ **/
197
+ Restored: GenericPalletEvent<'Balances', 'Restored', { who: AccountId32; amount: bigint }>;
198
+
199
+ /**
200
+ * An account was upgraded.
201
+ **/
202
+ Upgraded: GenericPalletEvent<'Balances', 'Upgraded', { who: AccountId32 }>;
203
+
204
+ /**
205
+ * Total issuance was increased by `amount`, creating a credit to be balanced.
206
+ **/
207
+ Issued: GenericPalletEvent<'Balances', 'Issued', { amount: bigint }>;
208
+
209
+ /**
210
+ * Total issuance was decreased by `amount`, creating a debt to be balanced.
211
+ **/
212
+ Rescinded: GenericPalletEvent<'Balances', 'Rescinded', { amount: bigint }>;
213
+
214
+ /**
215
+ * Some balance was locked.
216
+ **/
217
+ Locked: GenericPalletEvent<'Balances', 'Locked', { who: AccountId32; amount: bigint }>;
218
+
219
+ /**
220
+ * Some balance was unlocked.
221
+ **/
222
+ Unlocked: GenericPalletEvent<'Balances', 'Unlocked', { who: AccountId32; amount: bigint }>;
223
+
224
+ /**
225
+ * Some balance was frozen.
226
+ **/
227
+ Frozen: GenericPalletEvent<'Balances', 'Frozen', { who: AccountId32; amount: bigint }>;
228
+
229
+ /**
230
+ * Some balance was thawed.
231
+ **/
232
+ Thawed: GenericPalletEvent<'Balances', 'Thawed', { who: AccountId32; amount: bigint }>;
233
+
234
+ /**
235
+ * Generic pallet event
236
+ **/
237
+ [prop: string]: GenericPalletEvent;
238
+ };
239
+ /**
240
+ * Pallet `TransactionPayment`'s events
241
+ **/
242
+ transactionPayment: {
243
+ /**
244
+ * A transaction fee `actual_fee`, of which `tip` was added to the minimum inclusion fee,
245
+ * has been paid by `who`.
246
+ **/
247
+ TransactionFeePaid: GenericPalletEvent<
248
+ 'TransactionPayment',
249
+ 'TransactionFeePaid',
250
+ { who: AccountId32; actualFee: bigint; tip: bigint }
251
+ >;
252
+
253
+ /**
254
+ * Generic pallet event
255
+ **/
256
+ [prop: string]: GenericPalletEvent;
257
+ };
258
+ /**
259
+ * Pallet `Staking`'s events
260
+ **/
261
+ staking: {
262
+ /**
263
+ * The era payout has been set; the first balance is the validator-payout; the second is
264
+ * the remainder from the maximum amount of reward.
265
+ **/
266
+ EraPaid: GenericPalletEvent<'Staking', 'EraPaid', { eraIndex: number; validatorPayout: bigint; remainder: bigint }>;
267
+
268
+ /**
269
+ * The nominator has been rewarded by this amount.
270
+ **/
271
+ Rewarded: GenericPalletEvent<'Staking', 'Rewarded', { stash: AccountId32; amount: bigint }>;
272
+
273
+ /**
274
+ * A staker (validator or nominator) has been slashed by the given amount.
275
+ **/
276
+ Slashed: GenericPalletEvent<'Staking', 'Slashed', { staker: AccountId32; amount: bigint }>;
277
+
278
+ /**
279
+ * A slash for the given validator, for the given percentage of their stake, at the given
280
+ * era as been reported.
281
+ **/
282
+ SlashReported: GenericPalletEvent<
283
+ 'Staking',
284
+ 'SlashReported',
285
+ { validator: AccountId32; fraction: Perbill; slashEra: number }
286
+ >;
287
+
288
+ /**
289
+ * An old slashing report from a prior era was discarded because it could
290
+ * not be processed.
291
+ **/
292
+ OldSlashingReportDiscarded: GenericPalletEvent<'Staking', 'OldSlashingReportDiscarded', { sessionIndex: number }>;
293
+
294
+ /**
295
+ * A new set of stakers was elected.
296
+ **/
297
+ StakersElected: GenericPalletEvent<'Staking', 'StakersElected', null>;
298
+
299
+ /**
300
+ * An account has bonded this amount. \[stash, amount\]
301
+ *
302
+ * NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably,
303
+ * it will not be emitted for staking rewards when they are added to stake.
304
+ **/
305
+ Bonded: GenericPalletEvent<'Staking', 'Bonded', { stash: AccountId32; amount: bigint }>;
306
+
307
+ /**
308
+ * An account has unbonded this amount.
309
+ **/
310
+ Unbonded: GenericPalletEvent<'Staking', 'Unbonded', { stash: AccountId32; amount: bigint }>;
311
+
312
+ /**
313
+ * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance`
314
+ * from the unlocking queue.
315
+ **/
316
+ Withdrawn: GenericPalletEvent<'Staking', 'Withdrawn', { stash: AccountId32; amount: bigint }>;
317
+
318
+ /**
319
+ * A nominator has been kicked from a validator.
320
+ **/
321
+ Kicked: GenericPalletEvent<'Staking', 'Kicked', { nominator: AccountId32; stash: AccountId32 }>;
322
+
323
+ /**
324
+ * The election failed. No new era is planned.
325
+ **/
326
+ StakingElectionFailed: GenericPalletEvent<'Staking', 'StakingElectionFailed', null>;
327
+
328
+ /**
329
+ * An account has stopped participating as either a validator or nominator.
330
+ **/
331
+ Chilled: GenericPalletEvent<'Staking', 'Chilled', { stash: AccountId32 }>;
332
+
333
+ /**
334
+ * The stakers' rewards are getting paid.
335
+ **/
336
+ PayoutStarted: GenericPalletEvent<'Staking', 'PayoutStarted', { eraIndex: number; validatorStash: AccountId32 }>;
337
+
338
+ /**
339
+ * A validator has set their preferences.
340
+ **/
341
+ ValidatorPrefsSet: GenericPalletEvent<
342
+ 'Staking',
343
+ 'ValidatorPrefsSet',
344
+ { stash: AccountId32; prefs: PalletStakingValidatorPrefs }
345
+ >;
346
+
347
+ /**
348
+ * A new force era mode was set.
349
+ **/
350
+ ForceEra: GenericPalletEvent<'Staking', 'ForceEra', { mode: PalletStakingForcing }>;
351
+
352
+ /**
353
+ * Generic pallet event
354
+ **/
355
+ [prop: string]: GenericPalletEvent;
356
+ };
357
+ /**
358
+ * Pallet `Session`'s events
359
+ **/
360
+ session: {
361
+ /**
362
+ * New session has happened. Note that the argument is the session index, not the
363
+ * block number as the type might suggest.
364
+ **/
365
+ NewSession: GenericPalletEvent<'Session', 'NewSession', { sessionIndex: number }>;
366
+
367
+ /**
368
+ * Generic pallet event
369
+ **/
370
+ [prop: string]: GenericPalletEvent;
371
+ };
372
+ /**
373
+ * Pallet `Aleph`'s events
374
+ **/
375
+ aleph: {
376
+ ChangeEmergencyFinalizer: GenericPalletEvent<'Aleph', 'ChangeEmergencyFinalizer', PrimitivesAppPublic>;
377
+ ScheduleFinalityVersionChange: GenericPalletEvent<
378
+ 'Aleph',
379
+ 'ScheduleFinalityVersionChange',
380
+ PrimitivesVersionChange
381
+ >;
382
+ FinalityVersionChange: GenericPalletEvent<'Aleph', 'FinalityVersionChange', PrimitivesVersionChange>;
383
+
384
+ /**
385
+ * Generic pallet event
386
+ **/
387
+ [prop: string]: GenericPalletEvent;
388
+ };
389
+ /**
390
+ * Pallet `Elections`'s events
391
+ **/
392
+ elections: {
393
+ /**
394
+ * Committee for the next era has changed
395
+ **/
396
+ ChangeValidators: GenericPalletEvent<
397
+ 'Elections',
398
+ 'ChangeValidators',
399
+ [Array<AccountId32>, Array<AccountId32>, PrimitivesCommitteeSeats]
400
+ >;
401
+
402
+ /**
403
+ * Generic pallet event
404
+ **/
405
+ [prop: string]: GenericPalletEvent;
406
+ };
407
+ /**
408
+ * Pallet `Treasury`'s events
409
+ **/
410
+ treasury: {
411
+ /**
412
+ * New proposal.
413
+ **/
414
+ Proposed: GenericPalletEvent<'Treasury', 'Proposed', { proposalIndex: number }>;
415
+
416
+ /**
417
+ * We have ended a spend period and will now allocate funds.
418
+ **/
419
+ Spending: GenericPalletEvent<'Treasury', 'Spending', { budgetRemaining: bigint }>;
420
+
421
+ /**
422
+ * Some funds have been allocated.
423
+ **/
424
+ Awarded: GenericPalletEvent<'Treasury', 'Awarded', { proposalIndex: number; award: bigint; account: AccountId32 }>;
425
+
426
+ /**
427
+ * A proposal was rejected; funds were slashed.
428
+ **/
429
+ Rejected: GenericPalletEvent<'Treasury', 'Rejected', { proposalIndex: number; slashed: bigint }>;
430
+
431
+ /**
432
+ * Some of our funds have been burnt.
433
+ **/
434
+ Burnt: GenericPalletEvent<'Treasury', 'Burnt', { burntFunds: bigint }>;
435
+
436
+ /**
437
+ * Spending has finished; this is the amount that rolls over until next spend.
438
+ **/
439
+ Rollover: GenericPalletEvent<'Treasury', 'Rollover', { rolloverBalance: bigint }>;
440
+
441
+ /**
442
+ * Some funds have been deposited.
443
+ **/
444
+ Deposit: GenericPalletEvent<'Treasury', 'Deposit', { value: bigint }>;
445
+
446
+ /**
447
+ * A new spend proposal has been approved.
448
+ **/
449
+ SpendApproved: GenericPalletEvent<
450
+ 'Treasury',
451
+ 'SpendApproved',
452
+ { proposalIndex: number; amount: bigint; beneficiary: AccountId32 }
453
+ >;
454
+
455
+ /**
456
+ * The inactive funds of the pallet have been updated.
457
+ **/
458
+ UpdatedInactive: GenericPalletEvent<'Treasury', 'UpdatedInactive', { reactivated: bigint; deactivated: bigint }>;
459
+
460
+ /**
461
+ * Generic pallet event
462
+ **/
463
+ [prop: string]: GenericPalletEvent;
464
+ };
465
+ /**
466
+ * Pallet `Vesting`'s events
467
+ **/
468
+ vesting: {
469
+ /**
470
+ * The amount vested has been updated. This could indicate a change in funds available.
471
+ * The balance given is the amount which is left unvested (and thus locked).
472
+ **/
473
+ VestingUpdated: GenericPalletEvent<'Vesting', 'VestingUpdated', { account: AccountId32; unvested: bigint }>;
474
+
475
+ /**
476
+ * An \[account\] has become fully vested.
477
+ **/
478
+ VestingCompleted: GenericPalletEvent<'Vesting', 'VestingCompleted', { account: AccountId32 }>;
479
+
480
+ /**
481
+ * Generic pallet event
482
+ **/
483
+ [prop: string]: GenericPalletEvent;
484
+ };
485
+ /**
486
+ * Pallet `Utility`'s events
487
+ **/
488
+ utility: {
489
+ /**
490
+ * Batch of dispatches did not complete fully. Index of first failing dispatch given, as
491
+ * well as the error.
492
+ **/
493
+ BatchInterrupted: GenericPalletEvent<'Utility', 'BatchInterrupted', { index: number; error: DispatchError }>;
494
+
495
+ /**
496
+ * Batch of dispatches completed fully with no error.
497
+ **/
498
+ BatchCompleted: GenericPalletEvent<'Utility', 'BatchCompleted', null>;
499
+
500
+ /**
501
+ * Batch of dispatches completed but has errors.
502
+ **/
503
+ BatchCompletedWithErrors: GenericPalletEvent<'Utility', 'BatchCompletedWithErrors', null>;
504
+
505
+ /**
506
+ * A single item within a Batch of dispatches has completed with no error.
507
+ **/
508
+ ItemCompleted: GenericPalletEvent<'Utility', 'ItemCompleted', null>;
509
+
510
+ /**
511
+ * A single item within a Batch of dispatches has completed with error.
512
+ **/
513
+ ItemFailed: GenericPalletEvent<'Utility', 'ItemFailed', { error: DispatchError }>;
514
+
515
+ /**
516
+ * A call was dispatched.
517
+ **/
518
+ DispatchedAs: GenericPalletEvent<'Utility', 'DispatchedAs', { result: Result<[], DispatchError> }>;
519
+
520
+ /**
521
+ * Generic pallet event
522
+ **/
523
+ [prop: string]: GenericPalletEvent;
524
+ };
525
+ /**
526
+ * Pallet `Multisig`'s events
527
+ **/
528
+ multisig: {
529
+ /**
530
+ * A new multisig operation has begun.
531
+ **/
532
+ NewMultisig: GenericPalletEvent<
533
+ 'Multisig',
534
+ 'NewMultisig',
535
+ { approving: AccountId32; multisig: AccountId32; callHash: FixedBytes<32> }
536
+ >;
537
+
538
+ /**
539
+ * A multisig operation has been approved by someone.
540
+ **/
541
+ MultisigApproval: GenericPalletEvent<
542
+ 'Multisig',
543
+ 'MultisigApproval',
544
+ { approving: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> }
545
+ >;
546
+
547
+ /**
548
+ * A multisig operation has been executed.
549
+ **/
550
+ MultisigExecuted: GenericPalletEvent<
551
+ 'Multisig',
552
+ 'MultisigExecuted',
553
+ {
554
+ approving: AccountId32;
555
+ timepoint: PalletMultisigTimepoint;
556
+ multisig: AccountId32;
557
+ callHash: FixedBytes<32>;
558
+ result: Result<[], DispatchError>;
559
+ }
560
+ >;
561
+
562
+ /**
563
+ * A multisig operation has been cancelled.
564
+ **/
565
+ MultisigCancelled: GenericPalletEvent<
566
+ 'Multisig',
567
+ 'MultisigCancelled',
568
+ { cancelling: AccountId32; timepoint: PalletMultisigTimepoint; multisig: AccountId32; callHash: FixedBytes<32> }
569
+ >;
570
+
571
+ /**
572
+ * Generic pallet event
573
+ **/
574
+ [prop: string]: GenericPalletEvent;
575
+ };
576
+ /**
577
+ * Pallet `Sudo`'s events
578
+ **/
579
+ sudo: {
580
+ /**
581
+ * A sudo just took place. \[result\]
582
+ **/
583
+ Sudid: GenericPalletEvent<'Sudo', 'Sudid', { sudoResult: Result<[], DispatchError> }>;
584
+
585
+ /**
586
+ * The \[sudoer\] just switched identity; the old key is supplied if one existed.
587
+ **/
588
+ KeyChanged: GenericPalletEvent<'Sudo', 'KeyChanged', { oldSudoer?: AccountId32 | undefined }>;
589
+
590
+ /**
591
+ * A sudo just took place. \[result\]
592
+ **/
593
+ SudoAsDone: GenericPalletEvent<'Sudo', 'SudoAsDone', { sudoResult: Result<[], DispatchError> }>;
594
+
595
+ /**
596
+ * Generic pallet event
597
+ **/
598
+ [prop: string]: GenericPalletEvent;
599
+ };
600
+ /**
601
+ * Pallet `Contracts`'s events
602
+ **/
603
+ contracts: {
604
+ /**
605
+ * Contract deployed by address at the specified address.
606
+ **/
607
+ Instantiated: GenericPalletEvent<'Contracts', 'Instantiated', { deployer: AccountId32; contract: AccountId32 }>;
608
+
609
+ /**
610
+ * Contract has been removed.
611
+ *
612
+ * # Note
613
+ *
614
+ * The only way for a contract to be removed and emitting this event is by calling
615
+ * `seal_terminate`.
616
+ **/
617
+ Terminated: GenericPalletEvent<
618
+ 'Contracts',
619
+ 'Terminated',
620
+ {
916
621
  /**
917
- * A name was removed and the given balance slashed.
622
+ * The contract that was terminated.
918
623
  **/
919
- IdentityKilled: GenericPalletEvent<'Identity', 'IdentityKilled', {
920
- who: AccountId32;
921
- deposit: bigint;
922
- }>;
624
+ contract: AccountId32;
625
+
923
626
  /**
924
- * A judgement was asked from a registrar.
627
+ * The account that received the contracts remaining balance
925
628
  **/
926
- JudgementRequested: GenericPalletEvent<'Identity', 'JudgementRequested', {
927
- who: AccountId32;
928
- registrarIndex: number;
929
- }>;
629
+ beneficiary: AccountId32;
630
+ }
631
+ >;
632
+
633
+ /**
634
+ * Code with the specified hash has been stored.
635
+ **/
636
+ CodeStored: GenericPalletEvent<'Contracts', 'CodeStored', { codeHash: H256 }>;
637
+
638
+ /**
639
+ * A custom event emitted by the contract.
640
+ **/
641
+ ContractEmitted: GenericPalletEvent<
642
+ 'Contracts',
643
+ 'ContractEmitted',
644
+ {
930
645
  /**
931
- * A judgement request was retracted.
646
+ * The contract that emitted the event.
932
647
  **/
933
- JudgementUnrequested: GenericPalletEvent<'Identity', 'JudgementUnrequested', {
934
- who: AccountId32;
935
- registrarIndex: number;
936
- }>;
648
+ contract: AccountId32;
649
+
937
650
  /**
938
- * A judgement was given by a registrar.
651
+ * Data supplied by the contract. Metadata generated during contract compilation
652
+ * is needed to decode it.
939
653
  **/
940
- JudgementGiven: GenericPalletEvent<'Identity', 'JudgementGiven', {
941
- target: AccountId32;
942
- registrarIndex: number;
943
- }>;
654
+ data: Bytes;
655
+ }
656
+ >;
657
+
658
+ /**
659
+ * A code with the specified hash was removed.
660
+ **/
661
+ CodeRemoved: GenericPalletEvent<'Contracts', 'CodeRemoved', { codeHash: H256 }>;
662
+
663
+ /**
664
+ * A contract's code was updated.
665
+ **/
666
+ ContractCodeUpdated: GenericPalletEvent<
667
+ 'Contracts',
668
+ 'ContractCodeUpdated',
669
+ {
944
670
  /**
945
- * A registrar was added.
671
+ * The contract that has been updated.
946
672
  **/
947
- RegistrarAdded: GenericPalletEvent<'Identity', 'RegistrarAdded', {
948
- registrarIndex: number;
949
- }>;
673
+ contract: AccountId32;
674
+
950
675
  /**
951
- * A sub-identity was added to an identity and the deposit paid.
676
+ * New code hash that was set for the contract.
952
677
  **/
953
- SubIdentityAdded: GenericPalletEvent<'Identity', 'SubIdentityAdded', {
954
- sub: AccountId32;
955
- main: AccountId32;
956
- deposit: bigint;
957
- }>;
678
+ newCodeHash: H256;
679
+
958
680
  /**
959
- * A sub-identity was removed from an identity and the deposit freed.
681
+ * Previous code hash of the contract.
960
682
  **/
961
- SubIdentityRemoved: GenericPalletEvent<'Identity', 'SubIdentityRemoved', {
962
- sub: AccountId32;
963
- main: AccountId32;
964
- deposit: bigint;
965
- }>;
683
+ oldCodeHash: H256;
684
+ }
685
+ >;
686
+
687
+ /**
688
+ * A contract was called either by a plain account or another contract.
689
+ *
690
+ * # Note
691
+ *
692
+ * Please keep in mind that like all events this is only emitted for successful
693
+ * calls. This is because on failure all storage changes including events are
694
+ * rolled back.
695
+ **/
696
+ Called: GenericPalletEvent<
697
+ 'Contracts',
698
+ 'Called',
699
+ {
966
700
  /**
967
- * A sub-identity was cleared, and the given deposit repatriated from the
968
- * main identity account to the sub-identity account.
701
+ * The caller of the `contract`.
969
702
  **/
970
- SubIdentityRevoked: GenericPalletEvent<'Identity', 'SubIdentityRevoked', {
971
- sub: AccountId32;
972
- main: AccountId32;
973
- deposit: bigint;
974
- }>;
703
+ caller: PalletContractsOrigin;
704
+
975
705
  /**
976
- * Generic pallet event
706
+ * The contract that was called.
977
707
  **/
978
- [prop: string]: GenericPalletEvent;
979
- };
708
+ contract: AccountId32;
709
+ }
710
+ >;
711
+
980
712
  /**
981
- * Pallet `CommitteeManagement`'s events
713
+ * A contract delegate called a code hash.
714
+ *
715
+ * # Note
716
+ *
717
+ * Please keep in mind that like all events this is only emitted for successful
718
+ * calls. This is because on failure all storage changes including events are
719
+ * rolled back.
982
720
  **/
983
- committeeManagement: {
984
- /**
985
- * Ban thresholds for the next era has changed
986
- **/
987
- SetBanConfig: GenericPalletEvent<'CommitteeManagement', 'SetBanConfig', PrimitivesBanConfig>;
721
+ DelegateCalled: GenericPalletEvent<
722
+ 'Contracts',
723
+ 'DelegateCalled',
724
+ {
988
725
  /**
989
- * Validators have been banned from the committee
726
+ * The contract that performed the delegate call and hence in whose context
727
+ * the `code_hash` is executed.
990
728
  **/
991
- BanValidators: GenericPalletEvent<'CommitteeManagement', 'BanValidators', Array<[AccountId32, PrimitivesBanInfo]>>;
729
+ contract: AccountId32;
730
+
992
731
  /**
993
- * Generic pallet event
732
+ * The code hash that was delegate called.
994
733
  **/
995
- [prop: string]: GenericPalletEvent;
996
- };
734
+ codeHash: H256;
735
+ }
736
+ >;
737
+
738
+ /**
739
+ * Generic pallet event
740
+ **/
741
+ [prop: string]: GenericPalletEvent;
742
+ };
743
+ /**
744
+ * Pallet `NominationPools`'s events
745
+ **/
746
+ nominationPools: {
747
+ /**
748
+ * A pool has been created.
749
+ **/
750
+ Created: GenericPalletEvent<'NominationPools', 'Created', { depositor: AccountId32; poolId: number }>;
751
+
752
+ /**
753
+ * A member has became bonded in a pool.
754
+ **/
755
+ Bonded: GenericPalletEvent<
756
+ 'NominationPools',
757
+ 'Bonded',
758
+ { member: AccountId32; poolId: number; bonded: bigint; joined: boolean }
759
+ >;
760
+
761
+ /**
762
+ * A payout has been made to a member.
763
+ **/
764
+ PaidOut: GenericPalletEvent<'NominationPools', 'PaidOut', { member: AccountId32; poolId: number; payout: bigint }>;
765
+
766
+ /**
767
+ * A member has unbonded from their pool.
768
+ *
769
+ * - `balance` is the corresponding balance of the number of points that has been
770
+ * requested to be unbonded (the argument of the `unbond` transaction) from the bonded
771
+ * pool.
772
+ * - `points` is the number of points that are issued as a result of `balance` being
773
+ * dissolved into the corresponding unbonding pool.
774
+ * - `era` is the era in which the balance will be unbonded.
775
+ * In the absence of slashing, these values will match. In the presence of slashing, the
776
+ * number of points that are issued in the unbonding pool will be less than the amount
777
+ * requested to be unbonded.
778
+ **/
779
+ Unbonded: GenericPalletEvent<
780
+ 'NominationPools',
781
+ 'Unbonded',
782
+ { member: AccountId32; poolId: number; balance: bigint; points: bigint; era: number }
783
+ >;
784
+
785
+ /**
786
+ * A member has withdrawn from their pool.
787
+ *
788
+ * The given number of `points` have been dissolved in return of `balance`.
789
+ *
790
+ * Similar to `Unbonded` event, in the absence of slashing, the ratio of point to balance
791
+ * will be 1.
792
+ **/
793
+ Withdrawn: GenericPalletEvent<
794
+ 'NominationPools',
795
+ 'Withdrawn',
796
+ { member: AccountId32; poolId: number; balance: bigint; points: bigint }
797
+ >;
798
+
799
+ /**
800
+ * A pool has been destroyed.
801
+ **/
802
+ Destroyed: GenericPalletEvent<'NominationPools', 'Destroyed', { poolId: number }>;
803
+
804
+ /**
805
+ * The state of a pool has changed
806
+ **/
807
+ StateChanged: GenericPalletEvent<
808
+ 'NominationPools',
809
+ 'StateChanged',
810
+ { poolId: number; newState: PalletNominationPoolsPoolState }
811
+ >;
812
+
813
+ /**
814
+ * A member has been removed from a pool.
815
+ *
816
+ * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked).
817
+ **/
818
+ MemberRemoved: GenericPalletEvent<'NominationPools', 'MemberRemoved', { poolId: number; member: AccountId32 }>;
819
+
820
+ /**
821
+ * The roles of a pool have been updated to the given new roles. Note that the depositor
822
+ * can never change.
823
+ **/
824
+ RolesUpdated: GenericPalletEvent<
825
+ 'NominationPools',
826
+ 'RolesUpdated',
827
+ { root?: AccountId32 | undefined; bouncer?: AccountId32 | undefined; nominator?: AccountId32 | undefined }
828
+ >;
829
+
830
+ /**
831
+ * The active balance of pool `pool_id` has been slashed to `balance`.
832
+ **/
833
+ PoolSlashed: GenericPalletEvent<'NominationPools', 'PoolSlashed', { poolId: number; balance: bigint }>;
834
+
835
+ /**
836
+ * The unbond pool at `era` of pool `pool_id` has been slashed to `balance`.
837
+ **/
838
+ UnbondingPoolSlashed: GenericPalletEvent<
839
+ 'NominationPools',
840
+ 'UnbondingPoolSlashed',
841
+ { poolId: number; era: number; balance: bigint }
842
+ >;
843
+
844
+ /**
845
+ * A pool's commission setting has been changed.
846
+ **/
847
+ PoolCommissionUpdated: GenericPalletEvent<
848
+ 'NominationPools',
849
+ 'PoolCommissionUpdated',
850
+ { poolId: number; current?: [Perbill, AccountId32] | undefined }
851
+ >;
852
+
853
+ /**
854
+ * A pool's maximum commission setting has been changed.
855
+ **/
856
+ PoolMaxCommissionUpdated: GenericPalletEvent<
857
+ 'NominationPools',
858
+ 'PoolMaxCommissionUpdated',
859
+ { poolId: number; maxCommission: Perbill }
860
+ >;
861
+
862
+ /**
863
+ * A pool's commission `change_rate` has been changed.
864
+ **/
865
+ PoolCommissionChangeRateUpdated: GenericPalletEvent<
866
+ 'NominationPools',
867
+ 'PoolCommissionChangeRateUpdated',
868
+ { poolId: number; changeRate: PalletNominationPoolsCommissionChangeRate }
869
+ >;
870
+
871
+ /**
872
+ * Pool commission has been claimed.
873
+ **/
874
+ PoolCommissionClaimed: GenericPalletEvent<
875
+ 'NominationPools',
876
+ 'PoolCommissionClaimed',
877
+ { poolId: number; commission: bigint }
878
+ >;
879
+
880
+ /**
881
+ * Generic pallet event
882
+ **/
883
+ [prop: string]: GenericPalletEvent;
884
+ };
885
+ /**
886
+ * Pallet `Identity`'s events
887
+ **/
888
+ identity: {
889
+ /**
890
+ * A name was set or reset (which will remove all judgements).
891
+ **/
892
+ IdentitySet: GenericPalletEvent<'Identity', 'IdentitySet', { who: AccountId32 }>;
893
+
894
+ /**
895
+ * A name was cleared, and the given balance returned.
896
+ **/
897
+ IdentityCleared: GenericPalletEvent<'Identity', 'IdentityCleared', { who: AccountId32; deposit: bigint }>;
898
+
899
+ /**
900
+ * A name was removed and the given balance slashed.
901
+ **/
902
+ IdentityKilled: GenericPalletEvent<'Identity', 'IdentityKilled', { who: AccountId32; deposit: bigint }>;
903
+
904
+ /**
905
+ * A judgement was asked from a registrar.
906
+ **/
907
+ JudgementRequested: GenericPalletEvent<
908
+ 'Identity',
909
+ 'JudgementRequested',
910
+ { who: AccountId32; registrarIndex: number }
911
+ >;
912
+
913
+ /**
914
+ * A judgement request was retracted.
915
+ **/
916
+ JudgementUnrequested: GenericPalletEvent<
917
+ 'Identity',
918
+ 'JudgementUnrequested',
919
+ { who: AccountId32; registrarIndex: number }
920
+ >;
921
+
922
+ /**
923
+ * A judgement was given by a registrar.
924
+ **/
925
+ JudgementGiven: GenericPalletEvent<'Identity', 'JudgementGiven', { target: AccountId32; registrarIndex: number }>;
926
+
927
+ /**
928
+ * A registrar was added.
929
+ **/
930
+ RegistrarAdded: GenericPalletEvent<'Identity', 'RegistrarAdded', { registrarIndex: number }>;
931
+
932
+ /**
933
+ * A sub-identity was added to an identity and the deposit paid.
934
+ **/
935
+ SubIdentityAdded: GenericPalletEvent<
936
+ 'Identity',
937
+ 'SubIdentityAdded',
938
+ { sub: AccountId32; main: AccountId32; deposit: bigint }
939
+ >;
940
+
941
+ /**
942
+ * A sub-identity was removed from an identity and the deposit freed.
943
+ **/
944
+ SubIdentityRemoved: GenericPalletEvent<
945
+ 'Identity',
946
+ 'SubIdentityRemoved',
947
+ { sub: AccountId32; main: AccountId32; deposit: bigint }
948
+ >;
949
+
950
+ /**
951
+ * A sub-identity was cleared, and the given deposit repatriated from the
952
+ * main identity account to the sub-identity account.
953
+ **/
954
+ SubIdentityRevoked: GenericPalletEvent<
955
+ 'Identity',
956
+ 'SubIdentityRevoked',
957
+ { sub: AccountId32; main: AccountId32; deposit: bigint }
958
+ >;
959
+
960
+ /**
961
+ * Generic pallet event
962
+ **/
963
+ [prop: string]: GenericPalletEvent;
964
+ };
965
+ /**
966
+ * Pallet `CommitteeManagement`'s events
967
+ **/
968
+ committeeManagement: {
969
+ /**
970
+ * Ban thresholds for the next era has changed
971
+ **/
972
+ SetBanConfig: GenericPalletEvent<'CommitteeManagement', 'SetBanConfig', PrimitivesBanConfig>;
973
+
974
+ /**
975
+ * Validators have been banned from the committee
976
+ **/
977
+ BanValidators: GenericPalletEvent<'CommitteeManagement', 'BanValidators', Array<[AccountId32, PrimitivesBanInfo]>>;
978
+
979
+ /**
980
+ * Generic pallet event
981
+ **/
982
+ [prop: string]: GenericPalletEvent;
983
+ };
997
984
  }