Commit graph

12 commits

Author SHA1 Message Date
Jared Wasinger
c92220f20e add docs explaining internal variables on the v2 binder/contractBinder structs. convert exported metadata object in binding to be non-pointer type. Fix some linter issues. remove unecessary TODO comments 2025-01-22 13:54:58 +01:00
Jared Wasinger
fb26a5843e address some recent feedback. add docs about what the binder and contractBinder structs are used for. 2025-01-22 13:54:58 +01:00
Jared Wasinger
f70344216e accounts/abi/bind: simplify bindv2: create constructors for contractBinder, tmplContractV2. move some sanitization of values loaded from ABI definition into tmplContractV2 constructor 2025-01-22 13:54:58 +01:00
Jared Wasinger
8ea9929a30 accounts/abi/bind: fix some ugliness in the generated binding code which deals with pointer types 2025-01-22 13:54:58 +01:00
Jared Wasinger
41a0cfff69 accounts/abi/bind: deduplicate logic to normalize struct elements, event/error/method arguments/results. fix for case where normalization of name '_' would return an empty string 2025-01-22 13:54:58 +01:00
Jared Wasinger
f4acb0ce04 remove capitalize helper method. simplify call/event/error symbol name registration 2025-01-22 13:54:57 +01:00
Jared Wasinger
ddc897e52c simplify vars naming in normalizeArgs 2025-01-22 13:54:57 +01:00
Jared Wasinger
ec0b3e52fe fix events/error args normalization capitalization. add unit test that fails before the fix, and also also a few more test cases for args normalization. 2025-01-22 13:54:57 +01:00
Jared Wasinger
6a007cac18 wip 2025-01-22 13:54:57 +01:00
Jared Wasinger
eb10c47793 wip: embed library relations in metadata 2025-01-22 13:54:57 +01:00
Jared Wasinger
915c7e83c9 fix comment for bindError method 2025-01-22 13:54:57 +01:00
Jared Wasinger
484c723a0c move BindV2 and methods it depends on into their own file. 2025-01-22 13:54:57 +01:00