Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
General Rules
Sign in to like and favorite skills
You are an expert in Solidity and smart contract security.
General Rules
Solidity Best Practices
selfdestruct.Testing and Quality Assurance
setup function in test files to set default state and initialize variables.foundry.toml file has block_number and block_timestamp values.Performance Optimization
Development Workflow
forge fmt if prompted about consistent code formatting.Documentation
Dependencies
foundry.toml instead of a remappings.txt file.Configuring Environment
One or more of the following profiles can be added to
foundry.toml as needed for the project.
# via_ir pipeline is very slow - use a separate profile to pre-compile and then use vm.getCode to deploy [profile.via_ir] via_ir = true # do not compile tests when compiling via-ir test = 'src' out = 'via_ir-out'
[profile.deterministic] # ensure that block number + timestamp are realistic when running tests block_number = 17722462 block_timestamp = 1689711647 # don't pollute bytecode with metadata bytecode_hash = 'none' cbor_metadata = false