MCPcopy Create free account
hub / github.com/cowprotocol/services / get_sol_input

Method get_sol_input

contracts/src/codegen.rs:450–462  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

448 }
449
450 fn get_sol_input(&self) -> Result<SolInput> {
451 let path = self.path.to_string_lossy().into_owned();
452 let name = proc_macro2::Ident::new(&self.name, Span::call_site());
453 let tokens = quote::quote! {
454 #[sol(ignore_unlinked)]
455 #name,
456 #path
457 };
458
459 let sol_input: SolInput = syn::parse2(tokens).context("failed to parse input")?;
460
461 Ok(sol_input)
462 }
463}

Callers 1

generate_bindingFunction · 0.80

Calls 1

newFunction · 0.50

Tested by

no test coverage detected