High-level API for deterministic contract deployment and testing
SmartContractManager
is a high-level manager for deploying contracts using CREATE2, executing contract calls, and orchestrating contract state for tests. It handles the complexity of contract deployment and interaction, allowing you to focus on test logic rather than blockchain plumbing.
initialize
)initialize
)out/
directoryartifacts/
directoryInitialize before use
initialize()
before using other methodsUse deterministic salts
Handle deployment errors
Clean up resources
predictContractAddress
method to get addresses before deployment. This is useful for setting up circular dependencies.