I am trying to developing smart contracts let use some Tokens and DeFi protocols like USDC, Compound, Uniswap, etc. Then if I need to testing locally, I need to deploy them in localhost blockchain (Ganache). I currently can’t find a good way to do this. Please help.
Welcome to the community forum
You could test against a fork of mainnet using
ganache-cli --fork so that you can use the actual DeFi contracts.
OpenZeppelin Test Environment supports testing using ganache fork. See the announcement for details:
Very helpful! Thank you.