@@ -285,9 +285,29 @@ export type RESULT_PAGE_REQUEST = {
285285} ;
286286
287287export type EMITTED_EVENT = EVENT & {
288- block_hash : BLOCK_HASH ;
289- block_number : BLOCK_NUMBER ;
288+ /**
289+ * The transaction that emitted the event
290+ */
290291 transaction_hash : TXN_HASH ;
292+ /**
293+ * The index of the transaction in the block by which the event was emitted
294+ * @minimum 0
295+ */
296+ transaction_index : number ;
297+ /**
298+ * The index of the event in the transaction by which it was emitted
299+ * @minimum 0
300+ */
301+ event_index : number ;
302+ /**
303+ * The hash of the block in which the event was emitted
304+ */
305+ block_hash ?: BLOCK_HASH ;
306+ /**
307+ * The number of the block in which the event was emitted
308+ * @minimum 0
309+ */
310+ block_number ?: BLOCK_NUMBER ;
291311} ;
292312
293313export type EVENT = {
@@ -357,20 +377,51 @@ export type NONCE_UPDATE = {
357377 * The change in state applied in this block
358378 */
359379export type STATE_DIFF = {
380+ /**
381+ * The changes in storage per contract address
382+ */
360383 storage_diffs : CONTRACT_STORAGE_DIFF_ITEM [ ] ;
384+ /**
385+ * Deprecated classes declared in this block
386+ */
361387 deprecated_declared_classes : FELT [ ] ;
388+ /**
389+ * New classes declared in this block, with their declared class hash and compiled class hash
390+ */
362391 declared_classes : NEW_CLASSES [ ] ;
392+ /**
393+ * A new contract deployed as part of the state update
394+ */
363395 deployed_contracts : DEPLOYED_CONTRACT_ITEM [ ] ;
396+ /**
397+ * The list of contracts whose class was replaced
398+ */
364399 replaced_classes : REPLACED_CLASS [ ] ;
400+ /**
401+ * The updated nonce per contract address
402+ */
365403 nonces : NONCE_UPDATE [ ] ;
404+ /**
405+ * The list of class hash and the new Blake-migrated compiled class hash pair
406+ */
407+ migrated_compiled_classes ?: {
408+ class_hash : FELT ;
409+ compiled_class_hash : FELT ;
410+ } [ ] ;
366411} ;
367412
368413/**
369414 * Pre-confirmed block state update
370415 */
371416export type PRE_CONFIRMED_STATE_UPDATE = {
372- old_root : FELT ;
417+ /**
418+ * The state diff of the pre-confirmed block
419+ */
373420 state_diff : STATE_DIFF ;
421+ /**
422+ * The previous global state root
423+ */
424+ old_root ?: FELT ;
374425 block_hash : never ; // diverge: this makes it distinct
375426} ;
376427
@@ -1258,5 +1309,5 @@ export type TXN_STATUS_RESULT = {
12581309 */
12591310export type CONTRACT_STORAGE_KEYS = {
12601311 contract_address : ADDRESS ;
1261- storage_keys : FELT [ ] ;
1312+ storage_keys : STORAGE_KEY [ ] ;
12621313} ;
0 commit comments