-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates for web3py v7.6. Includes version bump to v0.0.48 (#151)
This PR updates pypechain to work with web3py v7.6. Solves both #149 and #150. Includes version bump to v0.0.48. ## Breaking Changes - `my_contract.events.MyEvent` is no longer a type, but instead the instantiated object. This means calls to e.g., `events.MyEvent().process_receipt_typed()` will now be `events.MyEvent.process_receipt_typed()`. ## Major changes - Changing handling of `my_contract.events`. Note overloaded events still are not implemented. - Adding new pypechain class `PypechainOverloadedFunctions` that acts as a wrapper to the underlying overloaded functions. - Delay calling the overloaded function factory until the arguments gets bound to the contract function. ## Minor changes - Pin web3py to v7.6 for futureproofing. - Separate makefile builds to test and example. - Using solidity compiler 0.8.24 for test gen.
- Loading branch information
Showing
119 changed files
with
1,610 additions
and
949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,40 @@ | ||
.PHONY: build build-test build-test-sol build-test-types clean | ||
.PHONY: build clean build-test build-sol-test build-types-test clean-test build-example build-sol-example build-types-example clean-example | ||
|
||
build: | ||
make build-test | ||
make build-example | ||
|
||
clean: | ||
make clean-test | ||
make clean-example | ||
|
||
build-test: | ||
make build-test-sol | ||
make build-test-types | ||
make build-test-format-abi | ||
make build-sol-test | ||
make build-types-test | ||
|
||
build-test-sol: | ||
sh scripts/rebuild_sol.sh | ||
build-sol-test: | ||
sh scripts/build_sol_test.sh | ||
python scripts/format_json_dir_test.py | ||
|
||
build-test-format-abi: | ||
python scripts/format_json_dir.py | ||
build-types-test: | ||
sh scripts/generate_types_test.sh | ||
|
||
build-test-types: | ||
sh scripts/regenerate_types.sh | ||
clean-test: | ||
rm -rf rm -rf pypechain/test/*/abis/* && rm -rf pypechain/test/*/types/* | ||
|
||
clean: | ||
rm -rf example/abis/* && rm -rf example/types/* && rm -rf pypechain/test/*/abis/* && rm -rf pypechain/test/*/types/* | ||
build-example: | ||
make build-sol-example | ||
make build-types-example | ||
|
||
build-sol-example: | ||
sh scripts/build_sol_example.sh | ||
python scripts/format_json_dir_example.py | ||
|
||
build-types-example: | ||
sh scripts/generate_types_example.sh | ||
|
||
clean-example: | ||
rm -rf example/abis/* && rm -rf example/types/* | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...nfo/bf01bce3e74185365517745b4f71bf07.json → ...nfo/54eb1770cae4968bdb277915aa91b04b.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.