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

Function to_dir_name

contracts/src/codegen.rs:57–59  ·  view source on GitHub ↗

Convert a contract name to a directory name under contracts-generated/.

(contract_name: &str)

Source from the content-addressed store, hash-verified

55
56/// Convert a contract name to a directory name under contracts-generated/.
57fn to_dir_name(contract_name: &str) -> String {
58 contract_name.to_lowercase()
59}
60
61/// Convert a crate name (kebab-case) to a Rust identifier (underscore_case).
62fn to_rust_ident(crate_name: &str) -> String {

Callers 2

generateMethod · 0.85
write_crateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected