dapptools
dapptools copied to clipboard
Dapp, Seth, Hevm, and more
## Description Deploying libraries can take a long time. One can easily skip this stage if we make it possible to save the deployed library state and pass it to...
convience methods for skipping library deployment
deploying libraries can take a long time. One can easily skip this stage if we make it possible to save the deployed library state and pass it to `dapp test`:...
I think its not strictly sound to ignore the revert reasons if we want to think of things as composable....
seth sig / seth calldata: handle tuple types
The abi parser in hevm does not currenlty support tuple types ([ref](https://github.com/dapphub/dapptools/blob/1729e1d87319fc0112e18536d9bc600cb1f3f623/src/hevm/src/EVM/ABI.hs#L511)). We need to implement this to be able to handle tuple types for `seth sig` and `seth calldata`.
Test function that takes a struct argument breaks fuzzer/symbolic executor
I have a small test contract like this: ```solidity pragma solidity 0.7.6; pragma abicoder v2; import {DSTestPlus} from "solmate/src/tests/utils/DSTestPlus.sol"; import {MockCrossDomainMessenger} from "nova/contracts/mocks/MockCrossDomainMessenger.sol"; import {L1_NovaExecutionManager} from "nova/contracts/L1_NovaExecutionManager.sol"; contract ExecutionManagerTest is...
``` curl https://dapp.tools/install | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 857 100 857 0 0 872...
`unexpected symbolic argument` for prove test with single `address` argument
I have a simple test function that takes a single address arg: ```solidity function proveConnectingExecutionManager(address newExecutionManager) public { registry.connectExecutionManager(newExecutionManager); assertEq(registry.L1_NovaExecutionManagerAddress(), newExecutionManager); } ``` https://github.com/Rari-Capital/nova-invariants/blob/4d1a9c9a4aa929314e82da79b6d52c980506c57e/src/Registry.t.sol#L31 The `connectExecutionManager()` function is simple: ```solidity...
I see this error running `dapp test --coverage` in the [Solmate repo](https://github.com/rari-capital/solmate) ``` hevm: internal error: op ix CallStack (from HasCallStack): error, called at src/EVM/UnitTest.hs:249:21 in hevm-0.48.1-68JBNYehi12HotjGf8Zowl:EVM.UnitTest hevm: internal error:...
automatic gas estimation
## Description Adds automatic gas estimation to `seth mktx` if `ETH_GAS` is not set. Since `seth mktx` is the underlying for `seth send` and `dapp create`, dapptools users will likely...
Do not auto commit on init
The commit during `dapp init` causes the process to fail if the user does not have a global git user and email defined. This prevents `ds-test` from being installed. I...