@@ -44,27 +44,6 @@ import { IEnumTypeRegistry, IMessageTypeRegistry, IServiceTypeRegistry } from "@
44
44
import { parseAuthorization } from './authorization' ;
45
45
export type Registry = IMessageTypeRegistry & IEnumTypeRegistry & IServiceTypeRegistry ;
46
46
47
- // export interface MapOutput extends MapModuleOutput {
48
- // data: {
49
- // case: "output"
50
- // value: Any;
51
- // }
52
- // }
53
-
54
- // export interface StoreDelta extends StoreModuleOutput {
55
- // data: {
56
- // case: "debug_store_outputs"
57
- // value: StoreModuleOutput;
58
- // }
59
- // }
60
-
61
- // { no: 1, name: "output", kind: "message", T: MapModuleOutput },
62
- // { no: 2, name: "clock", kind: "message", T: Clock },
63
- // { no: 3, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
64
- // { no: 4, name: "final_block_height", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
65
- // { no: 10, name: "debug_map_outputs", kind: "message", T: MapModuleOutput, repeated: true },
66
- // { no: 11, name: "debug_store_outputs", kind: "message", T: StoreModuleOutput, repeated: true },
67
-
68
47
export const DEFAULT_HOST = "https://mainnet.eth.streamingfast.io:443" ;
69
48
export const DEFAULT_AUTH = "https://auth.streamingfast.io/v1/auth/issue" ;
70
49
export const DEFAULT_IPFS = "https://ipfs.pinax.network/ipfs/" ;
@@ -81,8 +60,8 @@ type MessageEvents = {
81
60
// V2 updates
82
61
// new
83
62
output : ( output : MapModuleOutput , clock : Clock ) => void ;
84
- debugStoreOutputs : ( output : StoreModuleOutput , clock : Clock ) => void ;
85
- debugMapOutputs : ( output : MapModuleOutput , clock : Clock ) => void ;
63
+ debugStoreOutputs : ( output : StoreModuleOutput [ ] , clock : Clock ) => void ;
64
+ debugMapOutputs : ( output : MapModuleOutput [ ] , clock : Clock ) => void ;
86
65
finalBlockHeight : ( block_height : bigint , clock : Clock ) => void ;
87
66
// deprecated
88
67
// mapOutput: (output: MapModuleOutput, clock: Clock) => void;
@@ -235,6 +214,11 @@ export class Substreams extends (EventEmitter as new () => TypedEmitter<MessageE
235
214
if ( ! decoded ) continue ;
236
215
this . emit ( "anyMessage" , decoded , clock , typeName ) ;
237
216
}
217
+ // Debug
218
+ this . emit ( "debugStoreOutputs" , block . debugStoreOutputs , clock ) ;
219
+ this . emit ( "debugMapOutputs" , block . debugMapOutputs , clock ) ;
220
+
221
+ // Final
238
222
this . emit ( "cursor" , block . cursor , clock ) ;
239
223
this . emit ( "finalBlockHeight" , finalBlockHeight , clock ) ;
240
224
last_cursor = block . cursor ;
0 commit comments