@@ -11,6 +11,7 @@ use super::{
1111 } ,
1212 networks_bindings:: generate_networks_code,
1313} ;
14+ use crate :: manifest:: contract:: Contract ;
1415use crate :: {
1516 generator:: {
1617 database_bindings:: generate_database_code,
@@ -30,7 +31,6 @@ use crate::{
3031 manifest:: {
3132 contract:: ParseAbiError ,
3233 core:: Manifest ,
33- global:: Global ,
3434 network:: Network ,
3535 storage:: Storage ,
3636 yaml:: { read_manifest, ReadManifestError , YAML_CONFIG_NAME } ,
@@ -68,15 +68,15 @@ pub enum WriteGlobalError {
6868
6969fn write_global (
7070 output : & Path ,
71- global : & Global ,
71+ global_contracts : & [ Contract ] ,
7272 networks : & [ Network ] ,
7373) -> Result < ( ) , WriteGlobalError > {
7474 let global_contract_file_path = generate_file_location ( output, "global_contracts" ) ;
7575 if global_contract_file_path. exists ( ) {
7676 fs:: remove_file ( & global_contract_file_path) ?;
7777 }
7878
79- let context_code = generate_context_code ( & global . contracts , networks) ;
79+ let context_code = generate_context_code ( global_contracts , networks) ;
8080 write_file ( & global_contract_file_path, context_code. as_str ( ) ) ?;
8181
8282 Ok ( ( ) )
@@ -138,7 +138,6 @@ fn write_indexer_events(
138138 use alloy::sol;
139139
140140 sol!(
141- #[derive(Debug)]
142141 #[sol(rpc, all_derives)]
143142 {contract_name},
144143 r#"{contract_path}"#
@@ -188,7 +187,6 @@ fn write_indexer_events(
188187 use alloy::sol;
189188
190189 sol!(
191- #[derive(Debug)]
192190 #[sol(rpc, all_derives)]
193191 {abigen_contract_name},
194192 r#"{abi_string}"#
@@ -247,8 +245,8 @@ pub fn generate_rindexer_typings(
247245
248246 write_networks ( & output, & manifest. networks ) ?;
249247
250- if let Some ( global ) = & manifest. global {
251- write_global ( & output, global , & manifest. networks ) ?;
248+ if let Some ( global_contracts ) = & manifest. global . contracts {
249+ write_global ( & output, global_contracts , & manifest. networks ) ?;
252250 }
253251
254252 if manifest. storage . postgres_enabled ( ) {
@@ -497,7 +495,7 @@ edition = "2021"
497495[dependencies]
498496rindexer = {{ git = "https://github.com/joshstevens19/rindexer", branch = "master" {reth_dep}}}
499497tokio = {{ version = "1", features = ["full"] }}
500- alloy = {{ version = "1.0.30 ", features = ["full"] }}
498+ alloy = {{ version = "1.0.37 ", features = ["full"] }}
501499serde = {{ version = "1.0", features = ["derive"] }}
502500"# ,
503501 project_name = manifest. name,
0 commit comments