Repository navigation
v3.0.0: Deployment
Breaking changes:
- transaction calls (
request_type="tx", default for non-pure non-view functions) now always return a transaction object, this behavior cannot be changed- this does not apply to the
.deploy()method that still returns a contract instance and a transaction object can be requested usingreturn_tx=True
- this does not apply to the
- the latest available transaction type is now used instead of type 0 (legacy) transactions
ContractType.deployment_code()was renamed toContractType.get_creation_code()
New features:
- implemented
woke.deploymentmodule that automatically sets transaction fees, gas limit and prompts users to confirm transactions and interactively shows sent transactions - added support for Geth
chain.connectcontext manager now acceptsgas_priceandblock_base_fee_per_gaskwargs- implemented
chain.set_min_gas_price() - added support for type 1 (EIP-2930) and type 2 (EIP-1559) transactions
- added
effective_gas_priceproperty toTransactionAbc - added support for access lists
- access lists can be passed as kwargs to transaction calls or generated using the
access_listrequest type
- access lists can be passed as kwargs to transaction calls or generated using the
callrequests now acceptblockkwarg to set execution context of the call.deploy()methods now support request types- implemented
woke accountsCLI commands - implemented
Account.new()to create a new account with a random private key - implemented support for importing accounts from private keys, mnemonics and aliases
- implemented raw message signing, structured message signing and message hash signing
- implemented
__bytes__onAddress - functions accepting Wei argument now also accept string literals with units (e.g.
10 gwei) - added
txfield toTransactionRevertedErrorto access a transaction object of the transaction that caused the revert
Fixes:
estimaterequest now by default usespendingblock execution context instead oflatest- fixed
@overloaddeclarations in pytypes typefield is not longer set in type 0 transactionstx.blockandtx.tx_indexare now always fetched from a transaction receipt- fixed
Addresscomparison and hashing