ethers-rs/ethers-contract/tests/solidity-contracts
jole b287fcca4d
Generate structs for the return data of abigen-erated contracts (#1440)
* convert some helper functions

* use said helpers

* more

* don't derive EthCall on return structs

* move return structs to separate function

* remove unused

* remove duplicate code

* reduce code duplication

also use an iterator instead of a presized vector

* comments

* stuck

* fix wrong field

* rename

* don't generate structs for no-output functions

* cosmetic changes

* test: decode and verify result

* more testing

unnamed output (tuple struct)
no output (doesn't exist) -> can't verify this in code though

* Update ethers-contract/ethers-contract-abigen/src/contract/methods.rs

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>

* remove dbg print

oops :(

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
2022-07-04 11:54:02 -07:00
..
Abiencoderv2Test.sol feat(abigen): use structs for outputs (#664) 2021-12-09 16:00:59 -07:00
DeriveEip712Test.sol derive-eip712: initial implementation of eip712 derive macro (#481) 2021-10-08 16:22:51 +01:00
MultiInputOutput.json Generate structs for the return data of abigen-erated contracts (#1440) 2022-07-04 11:54:02 -07:00
MultiInputOutput.sol Generate structs for the return data of abigen-erated contracts (#1440) 2022-07-04 11:54:02 -07:00
Multicall.sol Implement Multicall functionality for batched calls (#43) 2020-07-03 19:52:09 +03:00
NotSoSimpleStorage.sol Implement Multicall functionality for batched calls (#43) 2020-07-03 19:52:09 +03:00
SimpleStorage.sol test: add underscore test (#505) 2021-10-22 14:25:46 +03:00
StructContract.json test(abigen): ensure structs in events work (#1235) 2022-05-09 09:26:36 -07:00
StructContract.sol test(abigen): ensure structs in events work (#1235) 2022-05-09 09:26:36 -07:00
abiencoderv2test_abi.json feat(abigen): use structs for outputs (#664) 2021-12-09 16:00:59 -07:00
console.json fix: method deduplication (#619) 2021-11-27 14:31:36 +02:00
derive_eip712_abi.json derive-eip712: initial implementation of eip712 derive macro (#481) 2021-10-08 16:22:51 +01:00
greeter.json feat(abigen): add abi object deserializer and generate deploy function (#1030) 2022-03-18 21:23:33 -07:00
greeter_with_struct.json fix(abigen): handle lossy ethabi generated abi structs (#950) 2022-02-22 20:26:21 +02:00
seaport.json fix(abigen): use abi signature attribute if provided (#1409) 2022-06-23 02:53:24 -04:00
simplestorage_abi.json test: add underscore test (#505) 2021-10-22 14:25:46 +03:00
verifier_abi.json feat: generate rust structs from solidity JSON ABI (#378) 2021-08-16 10:29:44 +03:00
verifier_abi_hardhat.json feat(contract, abigen): support Hardhat ABI format (#478) 2021-09-30 11:27:24 +03:00