Brownie 2.0.0 breaking changes #399
Labels
code structure
Refactoring, reformatting, cleanup
Discussion
Under discussion - not yet ready for implementation
Milestone
This is a list of breaking changes planned for Brownie 2.0.0 that aren't big enough to warrant their own issues. It is not exhaustive or final. Feel free to comment if you have ideas for other minor changes.
Change
Account.balance
to a@property
methodAccount.transfer
toAccount.transact
ContractMethod.signature
toselector
and expose the human-readable function signature assignature
browne.network.contract
to refer to contract functions instead of contract methods_ContractBase.get_method
and_DeployedContractBase.get_method_object
compile_source
intocompile_solidity
andcompile_vyper
explorer
should only be declared once per chain ID (enableContract.from_explorer
when using a forked mainnet #435)gas_limit
setting should be calledblock_gas_limit
. Thegas_limit
setting withinbrownie-config.yaml
can betx_gas_limit
.HexBytes
everywherebytecode
/deployedBytecode
tocreationBytecode
/runtimeBytecode
Wei
should not implicitly convertNone
to0
(why is this even a thing?!)Remove
a
as a fixture - in the console the shorthand is fine, but in tests it feels sloppypytest.reverts
(Move pytest.reverts to brownie.reverts #329)config
in the public APIARGV
dict was originally meant to hold commandline args, but morphed into a sort-of "internal config" to hold settings that should not be exposed to the user. Withconfig
gone from the public API, it will be possible to refactoring how config settings are handled in general. The current implementation is not very intuitive at times.offset
andsourcePath
fields from compiler artifactinterface_sources
as a kwarg in the compiler functions (Adjust compile path #427)project.main.new
, remove theignore_subfolder
kwarg_ContractBase.signatures
The text was updated successfully, but these errors were encountered: